interplane.Get Omega
Read in your language

aienos.com

Source of www.aienos.com, served from my own hardware

Brought by drakestapleton

branch main Branches Tags History

aienos.com / om / site / verify-site.om

947 lines · 23613 bytes Raw Blame History
1note verify-site.om: main.rs verify_site rules V1-V19, the hub gates H (hubs.rs), box links E
2note (boxlink.rs), the /now/ body rule N1 (now.rs page_holds_invariants), the published-path rule P1, the file loop that runs
3note C1/C2/G/O5/F on every file, the pre-generation gate (B1-B4) and the CLI entry point.
4text vbnone "box-none"
5text vrtree "/tree/"
6text vrnet "https://radicle.network/nodes/rosa.radicle.network/rad:z"
7text vrv3 "V3"
8text vrv4 "V4"
9text vrv5 "V5"
10text vrv6 "V6"
11text vrv7 "V7"
12text vrv8 "V8"
13text vrv9 "V9"
14text vrv10 "V10"
15text vrv11 "V11"
16text vrv12 "V12"
17text vrv13 "V13"
18text vrv15 "V15"
19text vrv16 "V16"
20text vrv17 "V17"
21text vrv18 "V18"
22text vrv19 "V19"
23text vrh "H"
24text vre "E"
25text vrn1 "N1"
26text vrr0 "R0"
27text vtmisspg "missing or unreadable"
28text vtneed "missing required text"
29text vtnot "carries forbidden text"
30text vtbrace "assets/style.css braces do not balance"
31text vtcrumb "local coordination file is published"
32text vtorder "real-machines must come before the loop"
33text vtfloor "fewer boxes than its floor"
34text vtnobox "box without a GitHub link"
35text vtoffgh "box-link off Interplane"
36text vtstatw "status word on a hub that must carry none"
37text vtrow "experiment card missing or not from data"
38text vtnowb "the /now/ body must carry no script and no Renda dial"
39text vfcls "classic/index.html"
40text vfroot "index.html"
41text vfrec "record/index.html"
42text vfaien "aien/index.html"
43text vfmach "machine/index.html"
44text vfdisc "discovery/index.html"
45text vfown "owned/index.html"
46text vfstart "start/index.html"
47text vfomega "omega/index.html"
48text vfcuda "cudaplusplus/index.html"
49text vfnowp "now/index.html"
50text vftl "assets/turing-look.css"
51text vfsty "assets/style.css"
52text vfrsj "research-status.json"
53text vfont "fonts.googleapis.com"
54text vv3 "<div id=\"root\"\n<main id=\"main-content\"\nid=\"terminal-output\"\nid=\"follow\"\nhref=\"/now/\"\nid=\"receipt\"\nid=\"live\"\n"
55text vv4 "AienOS is an owned experimental machine for turning search into verified understanding.\nWeights suggest. Programs explain. Verification decides. Evidence teaches. The Turing keeps score.\nDid it learn anything?\nWhat did it cost to learn?\nDid what it learned make future discovery easier?\n<ol class=\"loop-stages\"\n"
56text vv5 "id=\"machines\"\nid=\"speed\"\nid=\"machine-spark\"\nid=\"machine-imac\"\nid=\"machine-pi5\"\nid=\"machine-qemu\"\nid=\"machine-rig\"\nid=\"speed-27b-live\"\n7.63 tok/s\n"
57text vv5f "facts.json\nassets/machines.css\nmachines.json\nassets/style.css\njs/terminal.js\nprogress/index.html\ndata/project-progress.json\nsitemap.xml\nrobots.txt\nblog/index.html\nblog/aien-v3-research-plan/index.html\nresearch/status/index.html\nnow/index.html\nnow.json\nassets/now.css\nresearch-status.json\nomega/index.html\nomega.json\nassets/omega.css\ncudaplusplus/index.html\ncudaplusplus.json\nassets/cudaplusplus.css\n"
58text vv6 ".aien-footer\n.aien-footer-row\n.aien-footer-brand\n.aien-footer-links\n.aien-footer-legal\n"
59text vcrumb "data/.crumb.local"
60text vv11 "Omega does not yet cover every GPU layer above the kernel driver\nid=\"seed-birth\"\nid=\"cuda-map\"\nid=\"today\"\nid=\"not-yet\"\nid=\"bar\"\nevidence/WHAT-OMEGA-IS-20261021/live-serve-no-cuda.txt\n"
61text vv11a "Omega is Aien&#39;s language for all computing, GPU to CPU."
62text vv11b "Omega is Aien's language for all computing, GPU to CPU."
63text vv12 "CUDA++ is the GPU half of Omega\nUseful work on a machine I own.\nid=\"path\"\nid=\"how\"\nid=\"pain-points\"\nid=\"swap\"\nhttps://interplane.io/drakestapleton/CUDApp\n"
64text vcpl "href=\"/cudaplusplus/\""
65text vomh "href=\"/omega/\""
66text vsbh "href=\"/omega/#seed-birth\""
67text vv13 "blog/index.html\nblog/aien-v3-research-plan/index.html\nresearch/status/index.html\nnow/index.html\nomega/index.html\ncudaplusplus/index.html\n"
68text vogt "og:title"
69text vrsb "rs-badge"
70text vstb "status-badge"
71text vthes "Intelligence should be owned by the people who made it."
72text vsign "Drake Stapleton"
73text vv17 "Weights suggest. Programs explain. Verification decides. Evidence teaches. The Turing keeps score.\nT(M; B, D, P) = [L(B) + L(D | B)] - [L(M) + L(D | M)]\nid=\"real-machines\"\nid=\"research-ladder\"\nclass=\"rs-ladder\"\nclass=\"rs-impl\"\n"
74text vrm "id=\"real-machines\""
75text vloop "id=\"loop\""
76text vv18 "/machine/#today\n/research/status/#implementation\n/evidence/\n/AGENTS.md\nhttps://www.drakestapleton.com\nhttps://interplane.io/\n"
77text vblafter ".box-link::after"
78note main.rs GENERATED_PAGES (RustOracle lane) with each page's least number of boxes.
79text vgen "index.html\nclassic/index.html\ndiscoveries/index.html\naien/index.html\nalpha/index.html\nresearch/computing-machinery-and-understanding/profiles/index.html\nstart/index.html\nprivacy/index.html\ncontact/index.html\nmachine/index.html\ndiscovery/index.html\nexperiments/index.html\nevidence/index.html\nphilosophy/index.html\nowned/index.html\nresearch/status/index.html\nnow/index.html\ndash/index.html\nhive/index.html\nlearn/index.html\nomega/index.html\ncudaplusplus/index.html\nprogress/index.html\nagents/index.html\nblog/index.html\nblog/aien-v3-research-plan/index.html\n"
80text vgenf "0\n30\n0\n0\n0\n0\n0\n0\n0\n15\n0\n15\n7\n4\n7\n40\n0\n0\n0\n0\n30\n12\n0\n10\n2\n0\n"
81note boxlink.rs BOX_CLASSES
82text vboxc "mx-card\nmx-row\nglow-box\nlineage-card\nlineage-role\nstatus-row\nlive-row\nreceipt\nrs-card\nrs-step\nrs-impl-item\nhub-card\nnarr-card\nblog-card\nnow-card\nnow-queue-row\nnow-tl\nnow-usage\nom-part\nom-layer\nom-receipt\nom-gap\nom-bar-row\nom-beyond\ncp-hop\ncp-card\ncp-row\ndash-card\n"
83text vbcls "class=\""
84text vbhref "href=\""
85text vbla "<a "
86text vblink "box-link"
87text vgh "https://interplane.io/drakestapleton/"
88text vhubs "experiments/index.html\nevidence/index.html\nphilosophy/index.html\n"
89text vhub0 "<section id=\"experiment-cards\"\n<div class=\"rs-cards\">\n<a class=\"hub-button\" href=\"/research/status/\">\n"
90text vhub1 "Failure is evidence.\nhref=\"/research/status/\"\nhref=\"/research-status.json\"\n"
91text vhub2 "Position, not evidence\n"
92text vfooter "<footer"
93text vdrow "data-row=\""
94text vdst "\" data-status=\""
95text vxquote "\""
96text vrenda "renda"
97text vnidq "id=\""
98text vxmainc "</main>"
99
100note ---------------------------------------------------------------- helpers
101fn sv_pg rel view uchar * rule view uchar * to ulong
102ws = sv_loadrel rel
103if eq ws 0
104sv_fail rule vtmisspg
105end
106ret ws
107end
108fn sv_must s ulong t view uchar * rule view uchar * to void
109for wk ulong sv_tcount t
110wa = sv_tat t wk
111if not sv_has s part t wa sv_tlen t wa
112sv_failt rule vtneed part t wa sv_tlen t wa
113end
114end
115end
116fn sv_must1 s ulong n view uchar * rule view uchar * to void
117if not sv_has s n
118sv_failt rule vtneed n
119end
120end
121fn sv_mustno s ulong n view uchar * rule view uchar * to void
122if sv_has s n
123sv_failt rule vtnot n
124end
125end
126fn sv_files t view uchar * rule view uchar * to void
127for wk ulong sv_tcount t
128wa = sv_tat t wk
129sv_prel part t wa sv_tlen t wa
130if not sv_exists
131sv_failt rule vtmisspg part t wa sv_tlen t wa
132end
133end
134end
135fn sv_nodash s ulong rule view uchar * to void
136if sv_dash s
137sv_fail rule vtdsh
138end
139end
140fn sv_forbid s ulong rule view uchar * to void
141for wk ulong sv_tcount vforbid
142wa = sv_tat vforbid wk
143if sv_hasc s part vforbid wa sv_tlen vforbid wa
144sv_failt rule vtfor part vforbid wa sv_tlen vforbid wa
145end
146end
147end
148
149note ---------------------------------------------------------------- V1-V18
150fn sv_v1 to void
151if sv_there vfnow
152sv_prel vfnow
153wled = sv_vledger
154end
155end
156fn sv_vroot to void
157wr = sv_pg vfroot vrr0
158if eq wr 0
159ret
160end
161sv_mustno wr vfont vrr0
162sv_nodash wr vrr0
163sv_forbid wr vrv5
164sv_root wr
165sv_drop wr
166wr = sv_pg vfrec vrr0
167if ne wr 0
168sv_mustno wr vfont vrr0
169sv_nodash wr vrr0
170sv_forbid wr vrv5
171sv_record wr
172sv_must1 wr vsbh vrv11
173sv_drop wr
174end
175wa = sv_pg vfaien vro4
176if ne wa 0
177sv_aien_intro wa
178sv_drop wa
179end
180end
181fn sv_vclassic to void
182wc = sv_pg vfcls vrv3
183if eq wc 0
184ret
185end
186sv_must wc vv3 vrv3
187sv_mustno wc vfont vrv3
188sv_must wc vv4 vrv4
189sv_must wc vv5 vrv5
190sv_forbid wc vrv5
191sv_nodash wc vrv7
192sv_must1 wc vomh vrv11
193sv_must1 wc vsbh vrv11
194sv_must1 wc vcpl vrv12
195sv_drop wc
196end
197fn sv_v6 to void
198ws = sv_pg vfsty vrv6
199if eq ws 0
200ret
201end
202wd = long 0
203wneg = false
204for wj ulong sv_n ws
205c = sv_b ws wj
206if eq c 123
207wd = add wd 1
208end
209if eq c 125
210wd = sub wd 1
211end
212if lt wd 0
213wneg = true
214end
215end
216if or wneg ne wd 0
217sv_fail vrv6 vtbrace
218end
219sv_must ws vv6 vrv6
220sv_drop ws
221end
222fn sv_v8 to void
223if sv_there vcrumb
224sv_fail vrv8 vtcrumb
225end
226end
227fn sv_v11 to void
228wo = sv_pg vfomega vrv11
229if eq wo 0
230ret
231end
232if not or sv_has wo vv11a sv_has wo vv11b
233sv_failt vrv11 vtneed vv11a
234end
235sv_must wo vv11 vrv11
236sv_must1 wo vcpl vrv12
237sv_drop wo
238wc = sv_pg vfcuda vrv12
239if eq wc 0
240ret
241end
242sv_must wc vv12 vrv12
243sv_drop wc
244end
245fn sv_v13 to void
246for wk ulong sv_tcount vv13
247wa = sv_tat vv13 wk
248ws = sv_pg part vv13 wa sv_tlen vv13 wa vrv13
249if ne ws 0
250sv_nodash ws vrv13
251sv_must1 ws vogt vrv13
252sv_drop ws
253end
254end
255end
256fn sv_v15 rel view uchar * to void
257ws = sv_pg rel vrv15
258if eq ws 0
259ret
260end
261sv_nodash ws vrv15
262sv_must1 ws vogt vrv15
263sv_must1 ws vrsb vrv15
264sv_mustno ws vstb vrv15
265if sv_fis0 rel vfmach
266sv_must ws vv17 vrv17
267wa = sv_find ws vrm 0
268wb = sv_find ws vloop 0
269if or eq wb VNONE ge wa wb
270sv_fail vrv17 vtorder
271end
272end
273sv_drop ws
274end
275fn sv_fis0 a view uchar * b view uchar * to bool
276ret sr_equal a b
277end
278fn sv_v16 to void
279ws = sv_pg vfown vrv16
280if eq ws 0
281ret
282end
283sv_must1 ws vthes vrv16
284sv_must1 ws vsign vrv16
285sv_must1 ws vogt vrv16
286sv_nodash ws vrv16
287sv_mustno ws vrsb vrv16
288sv_drop ws
289end
290fn sv_v18 to void
291ws = sv_pg vfstart vrv18
292if eq ws 0
293ret
294end
295sv_must ws vv18 vrv18
296sv_drop ws
297end
298fn sv_v19 to void
299for wk ulong sv_tcount vgen
300wa = sv_tat vgen wk
301wf = sv_tat vgenf wk
302wfl = ulong 0
303for wj ulong sv_tlen vgenf wf
304wfl = add mul wfl 10 ulong sub get vgenf add wf wj 48
305end
306ws = sv_pg part vgen wa sv_tlen vgen wa vrv19
307if ne ws 0
308wn = sv_boxes ws vrv19
309if lt wn wfl
310sv_failn vrv19 vtfloor wn
311end
312sv_drop ws
313end
314end
315wt = sv_pg vftl vrv19
316if ne wt 0
317sv_must1 wt vblafter vrv19
318sv_drop wt
319end
320end
321note N1: now.rs page_holds_invariants, on the published page: inside the <main> element (the
322note rendered /now/ body; the shared head, JSON-LD and consent loader stay outside it) no <script
323note and no Renda dial: no "renda" in any class or id value (the retired dial was class="renda-..."
324note markup). The unit test holds its fixture to no "renda" at all; the published page carries the
325note live ledger, whose notes and evidence links may name the retired renda scripts.
326fn sv_n1 to void
327ws = sv_pg vfnowp vrn1
328if eq ws 0
329ret
330end
331wa = sv_findc ws vxmain 0
332wb = VNONE
333if ne wa VNONE
334wb = sv_findx ws vxmainc wa sv_n ws true
335end
336if or eq wa VNONE eq wb VNONE
337sv_fail vrn1 vtnowb
338else
339wl = sv_lower ws
340if or sv_hasn wl vxscro wa wb or sv_rdial wl wa wb vbcls sv_rdial wl wa wb vnidq
341sv_fail vrn1 vtnowb
342end
343sv_drop wl
344end
345sv_drop ws
346end
347note P1: no published file, text or binary, carries a builder's home directory ("/home/" or
348note "/Users/", raw bytes, case as written), and no LaTeX build file (.log .aux .out .toc) is
349note published at all: those record the build machine's paths. 2026-11-07, after paper.log and
350note paper.tex under /research/ shipped /home paths.
351text vrp1 "P1"
352text vp1h "/home/"
353text vp1u "/Users/"
354text vp1x ".log\n.aux\n.out\n.toc\n"
355text vtp1h "carries a home directory path"
356text vtp1x "LaTeX build file is published"
357fn sv_p1 to void
358for wq ulong get vfc 0
359if eq get vfk wq 1
360sv_pfile wq
361for wk ulong sv_tcount vp1x
362wa = sv_tat vp1x wk
363if sv_fext wq part vp1x wa sv_tlen vp1x wa
364sv_fail vrp1 vtp1x
365end
366end
367ws = sv_rawload
368if ne ws 0
369if or sv_has ws vp1h sv_has ws vp1u
370sv_fail vrp1 vtp1h
371end
372sv_drop ws
373end
374end
375end
376end
377note sv_rdial: true when some attr value (attr is class=" or id=") in s[a, b) holds "renda" or never closes.
378fn sv_rdial s ulong a ulong b ulong attr view uchar * to bool
379wi = a
380while true bound 999999
381wf = sv_findn s attr wi b
382if eq wf VNONE
383ret false
384end
385wv = add wf len attr
386we = sv_findn s vxquote wv b
387if eq we VNONE
388ret true
389end
390if sv_hasn s vrenda wv we
391ret true
392end
393wi = add we 1
394end
395ret false
396end
397
398note ---------------------------------------------------------------- E box links
399note sv_boxes: boxlink.rs check_boxes over page slot s; returns the number of boxes, failures reported.
400fn sv_cval s ulong t0 ulong t1 ulong to ulong
401wv = sv_findn s vbcls t0 add t1 1
402if eq wv VNONE
403ret VNONE
404end
405wv = add wv len vbcls
406wz = sv_findb2 s 34 wv
407if or eq wz VNONE gt wz t1
408ret VNONE
409end
410put vav 0 sub wz wv
411ret wv
412end
413fn sv_isbox s ulong t0 ulong t1 ulong to bool
414wv = sv_cval s t0 t1
415if eq wv VNONE
416ret false
417end
418wn = get vav 0
419for wk ulong sv_tcount vboxc
420wa = sv_tat vboxc wk
421if sv_hastok s wv wn part vboxc wa sv_tlen vboxc wa true
422ret true
423end
424end
425ret false
426end
427fn sv_islink s ulong t0 ulong t1 ulong to bool
428if not sv_eqat s t0 vbla
429ret false
430end
431wv = sv_cval s t0 t1
432if eq wv VNONE
433ret false
434end
435ret sv_hastok s wv get vav 0 vblink true
436end
437fn sv_linkok s ulong t0 ulong t1 ulong to bool
438wv = sv_findn s vbhref t0 add t1 1
439if eq wv VNONE
440ret false
441end
442wv = add wv len vbhref
443wz = sv_findb2 s 34 wv
444if or eq wz VNONE gt wz t1
445ret false
446end
447wn = sub wz wv
448if and ge wn len vgh sv_eqat s wv vgh
449ret true
450end
451if not and gt wn len vrnet sv_eqat s wv vrnet
452ret false
453end
454wi = add wv len vrnet
455while lt wi wz bound 999999
456wc = sv_bat s wi
457if eq wc 47
458note Rust boxlink rule: only /tree/... may follow the Radicle repository id.
459if not gt wi add wv len vrnet
460ret false
461end
462if lt sub wz wi len vrtree
463ret false
464end
465ret sv_eqat s wi vrtree
466end
467if not sv_alnum wc
468ret false
469end
470wi = add wi 1
471end
472ret true
473end
474fn sv_isnone s ulong t0 ulong t1 ulong to bool
475wv = sv_cval s t0 t1
476if eq wv VNONE
477ret false
478end
479ret sv_hastok s wv get vav 0 vbnone true
480end
481fn sv_alnum c uchar to bool
482if and ge c 48 le c 57
483ret true
484end
485if and ge c 65 le c 90
486ret true
487end
488ret and ge c 97 le c 122
489end
490fn sv_boxes s ulong rule view uchar * to ulong
491wn = ulong 0
492wopen = false
493wres = true
494wbx = ulong 0
495wi = ulong 0
496while true bound 999999
497wl = sv_findb2 s 60 wi
498if eq wl VNONE
499break
500end
501wg = sv_tagend s wl
502if eq wg VNONE
503break
504end
505wi = add wg 1
506wc = sv_bat s add wl 1
507if not or eq wc 47 eq wc 33
508if sv_isbox s wl wg
509if and wopen not wres
510sv_boxfail s wbx vtnobox rule
511end
512wopen = true
513wres = false
514wbx = wl
515wn = add wn 1
516else
517if and wopen not wres
518if sv_islink s wl wg
519wres = true
520if not sv_linkok s wl wg
521sv_boxfail s wbx vtoffgh rule
522end
523else
524if sv_isnone s wl wg
525wres = true
526end
527end
528end
529end
530end
531end
532if and wopen not wres
533sv_boxfail s wbx vtnobox rule
534end
535ret wn
536end
537fn sv_boxfail s ulong wpos ulong why view uchar * rule view uchar * to void
538wg = sv_tagend s wpos
539wn = sub add wg 1 wpos
540if gt wn 90
541wn = 90
542end
543sv_failx rule why add sv_off s wpos wn
544end
545
546note ---------------------------------------------------------------- H hubs
547fn sv_hub k ulong to void
548wa = sv_tat vhubs k
549ws = sv_pg part vhubs wa sv_tlen vhubs wa vrh
550if eq ws 0
551ret
552end
553wf = sv_find ws vfooter 0
554if eq wf VNONE
555wf = sv_n ws
556end
557if eq k 0
558sv_hubreq ws vhub0 wf
559sv_hubrows ws
560end
561if eq k 1
562sv_hubreq ws vhub1 wf
563sv_hubnost ws
564end
565if eq k 2
566sv_hubreq ws vhub2 wf
567sv_hubnost ws
568end
569sv_nodash ws vrh
570wb = sv_boxes ws vrh
571sv_dests ws
572sv_drop ws
573end
574fn sv_hubreq s ulong t view uchar * wf ulong to void
575for wk ulong sv_tcount t
576wa = sv_tat t wk
577if not sv_hasn s part t wa sv_tlen t wa 0 wf
578sv_failt vrh vtneed part t wa sv_tlen t wa
579end
580end
581end
582fn sv_hubnost s ulong to void
583for wk ulong sv_tcount vrstat
584wa = sv_tat vrstat wk
585if sv_has s part vrstat wa sv_tlen vrstat wa
586sv_failt vrh vtstatw part vrstat wa sv_tlen vrstat wa
587end
588end
589end
590note sv_hubrows: every turing row of the published research-status.json has its card,
591note data-row="ID" data-status="STATUS" (the hub renders from the same data).
592fn sv_hubrows s ulong to void
593sv_prel vfrsj
594if not sv_exists
595sv_fail vrh vtrow
596ret
597end
598wr = sv_jload
599wc = sj_first sj_find wr vktrows
600while ne wc 0 bound 65536
601wn = sv_snew
602sv_pusht vdrow
603sv_pushn sj_find wc vkid
604sv_pusht vdst
605sv_pushn sj_find wc vkstatus
606sv_pusht vxquote
607if eq sv_finda s 0 sv_n s sv_off wn sv_n wn VNONE
608sv_failx vrh vtrow sv_off wn sv_n wn
609end
610sv_drop wn
611wc = sj_next wc
612end
613end
614fn sv_pushn node ulong to void
615if ne sj_kind node 3
616ret
617end
618for wj ulong sj_size node
619sv_push sj_byte node wj
620end
621end
622
623note ---------------------------------------------------------------- A1 accessibility
624note A1 (ledger L501, 2026-11-09): the two axe rules Lighthouse failed on /omega/ on 2026-10-22,
625note on every published .html page. Row: each child element of a role="row" element carries role
626note cell, columnheader, rowheader or gridcell (aria-required-children; the CUDA map rows held
627note their source links directly). Name: an <a> or <button> with an aria-label holds its own
628note text. That text is the element's content with tags removed and nothing put between them
629note (script, style, template and hidden or aria-hidden content dropped, entities decoded,
630note whitespace squashed); it is empty or, ignoring ASCII case, inside the squashed label
631note (label-content-name-mismatch: the header brand read "AienOSPERSISTENT ..."). Stricter than
632note axe, which skips text CSS hides: here hidden-by-CSS text still counts.
633text vra1 "A1"
634text va1role "role"
635text va1row "row"
636text va1cell "cell\ncolumnheader\nrowheader\ngridcell\n"
637text va1lab "aria-label"
638text va1a "a"
639text va1btn "button"
640text vta1row "role=row child without a cell role"
641text vta1nam "aria-label does not hold the element's text"
642text vta1unt "unterminated tag or element"
643fn sv_a1 s ulong to void
644wi = ulong 0
645while lt wi sv_n s bound 999999
646wl = sv_findb2 s 60 wi
647if eq wl VNONE
648ret
649end
650wi = sv_a1tag s wl
651end
652end
653note sv_a1tag: one '<' at wl; checks an opening tag and returns where scanning resumes.
654fn sv_a1tag s ulong wl ulong to ulong
655wn = sv_n s
656if sv_eqat s wl vxcom
657wz = sv_find s vxcomx wl
658if eq wz VNONE
659ret wn
660end
661ret add wz 3
662end
663c = sv_bat s add wl 1
664if or eq c 47 eq c 33
665ret add wl 1
666end
667wnl = sv_tname s wl
668wg = sv_tagend s wl
669if or eq wnl 0 eq wg VNONE
670ret add wl 1
671end
672if or sv_tnis vxscr sv_tnis vxsty
673wz = sv_eend s add wg 1
674if eq wz VNONE
675ret wn
676end
677ret wz
678end
679wab = or sv_tnis va1a sv_tnis va1btn
680wv = sv_attr s wl wg va1role
681if sv_aeq s wv va1row
682sv_a1row s add wg 1
683end
684if wab
685wv = sv_attr s wl wg va1lab
686if ne wv VNONE
687sv_a1nam s wl wg wv
688end
689end
690ret add wg 1
691end
692note sv_a1row: the children of the row whose content starts at from, up to its close tag.
693fn sv_a1row s ulong from ulong to void
694wd = ulong 0
695wi = from
696while true bound 999999
697wl = sv_findb2 s 60 wi
698if eq wl VNONE
699sv_fail vra1 vta1unt
700ret
701end
702wg = sv_tagend s wl
703if eq wg VNONE
704sv_fail vra1 vta1unt
705ret
706end
707if eq sv_bat s add wl 1 47
708if eq wd 0
709ret
710end
711wd = sub wd 1
712else
713if ne sv_bat s add wl 1 33
714wnl = sv_tname s wl
715if eq wd 0
716if not sv_a1cell s sv_attr s wl wg va1role
717sv_failx vra1 vta1row add sv_off s wl add sub wg wl 1
718end
719end
720if not or sv_tnin vxvoid eq sv_b s sub wg 1 47
721wd = add wd 1
722end
723end
724end
725wi = add wg 1
726end
727end
728note sv_a1cell: the role value at v (length vav[0], from sv_attr) is one of the cell roles.
729fn sv_a1cell s ulong v ulong to bool
730for wk ulong sv_tcount va1cell
731wa = sv_tat va1cell wk
732if sv_aeq s v part va1cell wa sv_tlen va1cell wa
733ret true
734end
735end
736ret false
737end
738note sv_a1nam: the <a> or <button> opening at wl ('>' at wg) whose aria-label value is at wv.
739fn sv_a1nam s ulong wl ulong wg ulong wv ulong to void
740wln = get vav 0
741wnl = sv_tname s wl
742wz = sv_eend s add wg 1
743if eq wz VNONE
744sv_fail vra1 vta1unt
745ret
746end
747wf = sv_slot1 wv add wv wln s
748sv_ents wf vxent1
749sv_squash wf
750wt = sv_slot1 add wg 1 sub wz add 3 wnl s
751wh = sv_strip wt 23
752sv_a1untag wh
753sv_ents wh vxent1
754sv_squash wh
755if not sv_a1in wh wf
756sv_failx vra1 vta1nam add sv_off s wl add sub wg wl 1
757end
758sv_drop wf
759end
760note sv_a1untag: the newest slot s in place, every tag removed and nothing put in its place.
761fn sv_a1untag s ulong to void
762wo = sv_off s
763wout = ulong 0
764win = false
765for wi ulong sv_n s
766c = get va add wo wi
767if eq c 60
768win = true
769else
770if and eq c 62 win
771win = false
772else
773if not win
774put va add wo wout c
775wout = add wout 1
776end
777end
778end
779end
780sv_trunc s wout
781end
782note sv_a1in: slot t is empty or occurs in slot l, ASCII case ignored.
783fn sv_a1in t ulong l ulong to bool
784wn = sv_n t
785wm = sv_n l
786if eq wn 0
787ret true
788end
789if gt wn wm
790ret false
791end
792wi = ulong 0
793while le add wi wn wm bound 999999
794wj = ulong 0
795while and lt wj wn eq sv_lc sv_bat l add wi wj sv_lc sv_bat t wj bound 999999
796wj = add wj 1
797end
798if eq wj wn
799ret true
800end
801wi = add wi 1
802end
803ret false
804end
805
806note ---------------------------------------------------------------- file loop
807fn sv_each1 q ulong to void
808if eq get vfk q 2
809ret
810end
811wh = ulong 0
812if sv_fext q vxhtm
813wh = sv_fload q
814if eq wh 0
815ret
816end
817wcon = ulong 1
818if or sv_fis q vredrel sv_fis q vrunrel
819wcon = 0
820end
821sv_c1 wh wcon
822sv_contact q wh
823sv_assets wh
824sv_voice1 q wh
825sv_a1 wh
826sv_drop wh
827ret
828end
829if or sv_fext q vxmd sv_fext q vxtxt
830wh = sv_fload q
831if ne wh 0
832sv_voice1 q wh
833sv_drop wh
834end
835ret
836end
837if sv_fext q vxjs
838wh = sv_fload q
839if ne wh 0
840sv_c1js q wh
841sv_drop wh
842end
843end
844end
845fn sv_eachf to void
846for wq ulong get vfc 0
847sv_pfile wq
848sv_each1 wq
849end
850end
851
852note ---------------------------------------------------------------- whole runs
853text vkmach2 "machines"
854text vfmj "machines.json"
855text vfoj "omega.json"
856text vfcj "cudaplusplus.json"
857text vfsj "status.json"
858text vfpp "data/project-progress.json"
859text vfdi "data/index.json"
860text vfdp "data/pages.json"
861text vfnj "now.json"
862text vffj "facts.json"
863text vfar "data/agent-repos.json"
864fn sv_dgates to bool
865wok = sv_vdist vkmach vfmj
866wok = and sv_vdist vkomega vfoj wok
867wok = and sv_vdist vkcuda vfcj wok
868wok = and sv_vdist vkres vfrsj wok
869wok = and sv_vdist vkstat vfsj wok
870wok = and sv_vdist vkprog vfpp wok
871wok = and sv_vdist vkindex vfdi wok
872wok = and sv_vdist vkpages vfdp wok
873wok = and sv_vdist vknow vfnj wok
874wok = and sv_vdist vkfacts vffj wok
875ret and sv_vdist vkagent vfar wok
876end
877note sv_dist: the whole dist verification. dist, quotes and engineer are paths as given.
878fn sv_dist dist view uchar * quotes view uchar * engr view uchar * to bool
879sv_vinit
880sv_setroot dist
881wok = sv_vdata vkquote quotes
882wok = and sv_vdata vkengr engr wok
883sv_vrec
884sv_walk
885sv_regw
886sv_vredir
887sv_pages
888sv_sitemap
889wok = and sv_dgates wok
890sv_eachf
891sv_c2
892sv_cseo
893sv_v1
894sv_vroot
895sv_vclassic
896sv_files vv5f vrv10
897sv_v6
898sv_v8
899sv_v11
900sv_v13
901for wk ulong 3
902sv_hub wk
903end
904sv_v15 vfmach
905sv_v15 vfdisc
906sv_v16
907sv_v18
908sv_v19
909sv_n1
910sv_p1
911sv_o8
912ret and wok eq get vfail 0 0
913end
914note sv_pregen: B1-B4 over the repository before any output is written (paths relative to the
915note current directory: the repository root). The generator calls this first and stops on false.
916text vsnow "public/data/now.tsv"
917text vsfacts "facts.json"
918text vsagent "public/data/agent-repos.json"
919text vsmach "crates/site-builder/data/machines.json"
920text vsomega "crates/site-builder/data/omega.json"
921text vscuda "crates/site-builder/data/cudaplusplus.json"
922text vsres "crates/site-builder/data/research_status.json"
923text vsstat "crates/site-builder/data/status.json"
924text vsprog "public/data/project-progress.json"
925text vsquote "data/quotes.json"
926text vsengr "public/data/engineer.json"
927fn sv_pregen to bool
928sv_vinit
929wok = true
930put vpn 0 0
931sv_padd vsnow
932sv_ctxp
933if sv_exists
934wok = sv_vdata vkledg vsnow
935end
936wok = and sv_vdata vkfacts vsfacts wok
937wok = and sv_vdata vkagent vsagent wok
938wok = and sv_vdata vkmach vsmach wok
939wok = and sv_vdata vkomega vsomega wok
940wok = and sv_vdata vkcuda vscuda wok
941wok = and sv_vdata vkres vsres wok
942wok = and sv_vdata vkstat vsstat wok
943wok = and sv_vdata vkprog vsprog wok
944wok = and sv_vdata vkquote vsquote wok
945wok = and sv_vdata vkengr vsengr wok
946ret and wok eq get vfail 0 0
947end