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-seo.om

2103 lines · 48357 bytes Raw Blame History
1note verify-seo.om: page-level gates of the oracle (oracle.rs, seo.rs verify, contact.rs, voice.rs):
2note O1 registry both ways (PAGES and the engineer record), O2 every head,
3note O3 the six destinations, O4 the root door, O5 assets resolve, O6 sitemap lists the registry,
4note O8 no translated copy,
5note C1-C8 the machine surface, G contact on every page, F singular voice with the sourced quotes.
6text vro1 "O1"
7text vro2 "O2"
8text vro3 "O3"
9text vro4 "O4"
10text vro5 "O5"
11text vro6 "O6"
12text vro7 "O7"
13text vrc1 "C1"
14text vrc2 "C2"
15text vrc3 "C3"
16text vrc4 "C4"
17text vrc5 "C5"
18text vrc6 "C6"
19text vrc7 "C7"
20text vrc8 "C8"
21text vrg "G"
22text vrf "F"
23text vclas "/classic/"
24text vixh "index.html"
25text vixs "/index.html"
26text v404 "404.html"
27text veng "/engineer/"
28text vkpages2 "pages"
29text vkold "old"
30text vkkind "kind"
31text vekinds "home\npage\ncollection\nwork\ninfographic\n"
32text vkhome "home"
33text vtregx "written but not in seo::PAGES or the engineer record"
34text vtregm "the registry lists this page but it was not written"
35text vtengp "engineer.json path must be /engineer/ lowercase a-z 0-9 - segments ending in /"
36text vtengd "engineer.json path listed twice or collides with seo::PAGES"
37text vtengf "engineer.json entry lacks a name, title or description"
38text vtengk "engineer.json unknown kind"
39text vtengh "engineer.json needs exactly one home, at /engineer/"
40text vtengo "engineer.json old paths must be root-relative"
41text vtengn "engineer.json has no pages"
42text vthead "no <head> or no </head>"
43text vthtag "malformed head (unterminated tag or unclosed title/script/style)"
44text vtht2 "more than one <title>"
45text vttitle "no <title>"
46text vtdesc "no meta description"
47text vtogt "no og:title"
48text vtogd "no og:description"
49text vtcan "needs exactly one canonical on https://www.aienos.com for this path"
50text vtogu "og:url must equal the canonical"
51text vtlang "<html lang> is not the language of the page"
52text vthrx "hreflang alternate on a site with no translations"
53text vtdest "destination missing, hidden or out of order"
54text vtrid "the root has no element with id allen and site-door"
55text vtrcl "the root must link /classic/ where a reader can reach it"
56text vtrns "the root must link /classic/ inside <noscript>"
57text vtasset "script or stylesheet does not resolve to a regular file in dist"
58text vtsmap "sitemap.xml must list every registered page"
59text vtxpx "X bootstrap must live only in /js/allen-intro.js"
60text vtfont "outside fonts are forbidden"
61text vtscr "outside, ambiguous or unquoted script source"
62text vtunt "unterminated script tag"
63text vtload "must have exactly one first-party consent loader"
64text vtdlg "must have exactly one consent dialog"
65text vtpriv "must link /privacy/"
66text vtjsx "only js/allen-intro.js may initialize the X pixel"
67text vtrfr "retired introduction script must not load the advertising pixel"
68text vtrob "robots.txt must allow the named agents and point at the sitemap"
69text vtapex "sitemap must use the www host"
70text vtsmd "sitemap.md needs its H1, H2 sections and the glossary link"
71text vtagm "AGENTS.md must carry Installation, Configuration and Usage"
72text vtgl "must link the glossary"
73text vtbc "the homepage JSON-LD must carry a BreadcrumbList"
74text vtdf "data file missing or not linked from llms.txt"
75text vtdfn "data/index.json files must have one entry per data file"
76text vtsml "sitemap must list the page"
77text vtllm "llms.txt must link the page"
78text vtcanx "canonical link must be exactly <link rel=\"canonical\" href=\"https://www.aienos.com/...\">"
79text vtld "must carry JSON-LD and twitter:site"
80text vtmdl "must link its markdown mirror exactly"
81text vtdby "must declare llms.txt via describedby"
82text vtsnip "must carry max-snippet:-1 and max-image-preview:large"
83text vtmdm "markdown mirror missing or without frontmatter, canonical_url or Sitemap section"
84text vtmdd "markdown directory mirror missing"
85text vtldg "JSON-LD @graph must have at least 4 nodes"
86text vtmach "machine file missing"
87text vtnox "no visible X link"
88text vtmain "needs exactly one visible <main>"
89text vtxbm "the X link must come before the page's <main>"
90text vtnoc "no link to the contact page"
91text vtnom "no email link"
92text vtnoh "no link home"
93text vtnof "no contact line (aien-reach-foot) with the X link and the email"
94text vtvoice "first person plural in site copy (write I, me, my)"
95text vtquo "data-quote-id is unknown, never closes, or its text is not verbatim"
96text vsx "https://x.com/drakestapleton"
97text vscon "/contact/"
98text vsmail "mailto:drake@aienos.com"
99text vshome "/"
100text vsfoot "aien-reach-foot"
101text vsallen "allen"
102text vsdoor "site-door"
103text vdlab "SI\nOmega\nMachine\nDiscoveries\nLearn\nAien\n"
104text vdhref "/classic/\n/omega/\n/machine/\n/discoveries/\n/learn/\n/aien/\n"
105text vxhead "<head"
106text vxheadc "</head>"
107text vxtitle "title"
108text vxmeta "meta"
109text vxlink "link"
110text vxname "name"
111text vxprop "property"
112text vxcont "content"
113text vxrel "rel"
114text vxhl "hreflang"
115text vxlng "lang"
116text vxhtml "<html"
117text vxcanon "canonical"
118text vxalt "alternate"
119text vxdesc "description"
120text vxogd "og:description"
121text vxogt "og:title"
122text vxogu "og:url"
123text vxen "en"
124text vxenx "en-"
125text vxsrc "src"
126text vxscro "<script"
127text vxsheet "stylesheet"
128text vxuwt "uwt.js"
129text vxtwq "twq("
130text vxfg "fonts.googleapis.com"
131text vxfs "fonts.gstatic.com"
132text vxload "src=\"/js/allen-intro.js\""
133text vxdlg "id=\"aien-allen-intro\""
134text vxprv "href=\"/privacy/\""
135text vxaij "js/allen-intro.js"
136text vxaijs "/js/allen-intro.js"
137text vxjs ".js"
138text vxhtm ".html"
139text vxmd ".md"
140text vxtxt ".txt"
141text vxuwtu "https://static.ads-twitter.com/uwt.js"
142text vxrfr "twq('config','rfrlz')"
143text vxbots "GPTBot\nClaudeBot\nPerplexityBot\nGoogle-Extended\nCCBot\n"
144text vxua "User-agent: "
145text vxallow "\nAllow: /"
146text vxsmap "Sitemap: https://www.aienos.com/sitemap.xml"
147text vxapex "https://aienos.com/"
148text vxsmh "# Sitemap\n"
149text vxh2 "\n## "
150text vxglmd "](https://www.aienos.com/glossary/)"
151text vxagm "## Installation\n## Configuration\n## Usage\n"
152text vxgl "href=\"/glossary/\""
153text vxbcl "\"BreadcrumbList\""
154text vxloc "<loc>"
155text vxlocc "</loc>"
156text vxmdo "]("
157text vxcano "<link rel=\"canonical\" href=\""
158text vxtagc "\">"
159text vxldj "application/ld+json"
160text vxtws "twitter:site"
161text vxmdl "<link rel=\"alternate\" type=\"text/markdown\" href=\""
162text vxdby "<link rel=\"describedby\" href=\"https://www.aienos.com/llms.txt\">"
163text vxsn1 "max-snippet:-1"
164text vxsn2 "max-image-preview:large"
165text vxfm "---\n"
166text vxcu "canonical_url:"
167text vxsms "\n## Sitemap\n"
168text vxldo "<script type=\"application/ld+json\">"
169text vxsce "</script>"
170text vxgraph "@graph"
171text vxmach7 "feed.xml\nnow/feed.xml\nllms.txt\nllms-full.txt\nhumans.txt\ndata/index.json\n404.html\nlogo.png\nog.png\n"
172text vxdash8 "feed.xml\nnow/feed.xml\nllms.txt\nllms-full.txt\nhumans.txt\ndata/index.json\nsitemap.xml\nsitemap.md\nAGENTS.md\nindex.md\nrobots.txt\n404.html\n"
173text vfsmap "sitemap.xml"
174text vfrob "robots.txt"
175text vfllms "llms.txt"
176text vfsmd "sitemap.md"
177text vfagm "AGENTS.md"
178text vfidx "data/index.json"
179text vkfiles2 "files"
180text vxqattr "data-quote-id=\""
181text vledp "now/index.html\nnow/index.md\nnow.md\nllms-full.txt\n"
182text vfnow "data/now.tsv"
183global vego ulong 512
184global vegc ulong 1
185
186note ---------------------------------------------------------------- registry
187note sv_rgall: entry k of the registry as (slot, offset, length) in vax[0..2]: the PAGES table
188note first (offsets into vpages are reported with slot 0), then the engineer paths.
189fn sv_regn to ulong
190ret add sv_tcount vpages get vegc 0
191end
192note sv_rgeq: registry entry k equals bytes [a, a+n) of slot s.
193fn sv_rgeq k ulong s ulong a ulong n ulong to bool
194wp = sv_tcount vpages
195if lt k wp
196wo = sv_tat vpages k
197if ne sv_tlen vpages wo n
198ret false
199end
200ret sv_eqm add sv_off s a part vpages wo n
201end
202we = get vego sub k wp
203if ne sv_n we n
204ret false
205end
206for wj ulong n
207if ne sv_b we wj sv_b s add a wj
208ret false
209end
210end
211ret true
212end
213fn sv_inreg s ulong a ulong n ulong to bool
214for wk ulong sv_regn
215if sv_rgeq wk s a n
216ret true
217end
218end
219ret false
220end
221note sv_rgpush: push registry entry k onto the newest slot.
222fn sv_rgpush k ulong to void
223wp = sv_tcount vpages
224if lt k wp
225wo = sv_tat vpages k
226sv_pusht part vpages wo sv_tlen vpages wo
227ret
228end
229we = get vego sub k wp
230sv_pusha sv_off we sv_n we
231end
232
233note ---------------------------------------------------------------- engineer record (O7)
234note oracle.rs engineer_paths over the committed public/data/engineer.json (a repository input, like
235note data/quotes.json, never the generator's output). Valid paths are kept as persistent slots.
236fn sv_engpath ws ulong to bool
237wn = sv_n ws
238if not sv_starts ws veng
239ret false
240end
241if ne sv_b ws sub wn 1 47
242ret false
243end
244wi = len veng
245wseg = ulong 0
246while lt wi wn bound 999999
247c = sv_b ws wi
248if eq c 47
249if eq wseg 0
250ret false
251end
252wseg = 0
253else
254if not or or sv_isdig c and ge c 97 le c 122 eq c 45
255ret false
256end
257wseg = add wseg 1
258end
259wi = add wi 1
260end
261ret true
262end
263fn sv_engone wc ulong wk ulong to ulong
264wp = sj_find wc vkpath
265ws = sv_jsl wp
266if eq ws 0
267sv_fail vro7 vtengp
268ret 0
269end
270if not sv_engpath ws
271sv_failx vro7 vtengp sv_off ws sv_n ws
272end
273if sv_inreg ws 0 sv_n ws
274sv_failx vro7 vtengd sv_off ws sv_n ws
275end
276if or or sv_blank sj_find wc vkname sv_blank sj_find wc vktitle sv_blank sj_find wc vkdesc
277sv_failx vro7 vtengf sv_off ws sv_n ws
278end
279wkd = sj_find wc vkkind
280if not sv_tin wkd vekinds
281sv_failx vro7 vtengk sv_off ws sv_n ws
282end
283if sj_eq wkd vkhome
284if not sj_eq wp veng
285sv_fail vro7 vtengh
286end
287end
288wo = sj_find wc vkold
289if ne sj_kind wo 2
290sv_failx vro7 vtengo sv_off ws sv_n ws
291else
292wx = sj_first wo
293while ne wx 0 bound 65536
294wok = sj_prefix wx vshome
295if wok
296if gt sj_size wx 1
297wok = ne sj_byte wx 1 47
298end
299end
300if not wok
301sv_failx vro7 vtengo sv_off ws sv_n ws
302end
303wx = sj_next wx
304end
305end
306put vego wk ws
307put vegc 0 add wk 1
308ret ws
309end
310fn sv_vengine to bool
311wf = get vfail 0
312sv_ctxp
313wr = sv_jload
314if ne sj_kind wr 1
315sv_fail vro7 vtengn
316ret false
317end
318wpg = sj_find wr vkpages2
319if or ne sj_kind wpg 2 eq sj_len wpg 0
320sv_fail vro7 vtengn
321ret false
322end
323put vegc 0 0
324wh = ulong 0
325wc = sj_first wpg
326wk = ulong 0
327while ne wc 0 bound 512
328if sj_eq sj_find wc vkkind vkhome
329wh = add wh 1
330end
331wk = sv_engk wc wk
332wc = sj_next wc
333end
334if ne wh 1
335sv_fail vro7 vtengh
336end
337ret eq get vfail 0 wf
338end
339fn sv_engk wc ulong wk ulong to ulong
340note duplicates within the record: compared against the paths already kept
341ws = sv_engone wc wk
342if eq ws 0
343ret wk
344end
345for wj ulong wk
346we = get vego wj
347if eq sv_n we sv_n ws
348wsm = true
349for wi ulong sv_n ws
350if ne sv_b we wi sv_b ws wi
351wsm = false
352end
353end
354if wsm
355sv_failx vro7 vtengd sv_off ws sv_n ws
356end
357end
358end
359ret add wk 1
360end
361
362note ---------------------------------------------------------------- paths
363note sv_ppath: the site path of index file q ("index.html" -> "/", "a/b/index.html" -> "/a/b/") as
364note a new slot; 0 when q is not an index.html.
365text vredold "/allen/"
366fn sv_ppath q ulong to ulong
367wo = get vfo q
368wl = get vfl q
369if lt wl len vixh
370ret 0
371end
372wb = sub wl len vixh
373for wj ulong len vixh
374if ne get vfp add add wo wb wj get vixh wj
375ret 0
376end
377end
378if gt wb 0
379if ne get vfp add wo sub wb 1 47
380ret 0
381end
382end
383ws = sv_snew
384sv_push 47
385for wj ulong wb
386sv_push get vfp add wo wj
387end
388if and eq sv_n ws len vredold sv_eqat ws 0 vredold
389sv_drop ws
390ret 0
391end
392ret ws
393end
394note ---------------------------------------------------------------- redirect stubs
395note main's seo::REDIRECTS: /allen/ forwards to /aien/. The stub is not a page (sv_ppath skips it);
396note it must exist, stay out of search and forward with and without scripts.
397text vredrel "allen/index.html"
398note seo.rs consent boundary: the program runner (csp::RUNNER_PATH) is replaced by what it runs in an
399note opaque origin, so like a redirect stub it loads no consent dialog and no pixel.
400text vrunrel "aien/run.html"
401text vrrd "R1"
402text vtrdmiss "redirect stub /allen/ was not written"
403text vtrdlack "redirect stub /allen/ lacks noindex, the refresh or the scripted forward to /aien/"
404text vrdn1 "<meta name=\"robots\" content=\"noindex\">"
405text vrdn2 "<meta http-equiv=\"refresh\" content=\"0; url=/aien/\">"
406text vrdn3 "<script src=\"/js/redirect.js\" data-to=\"/aien/\"></script>"
407text vrdn4 "<a href=\"/aien/\">"
408fn sv_rdhas s ulong pat view uchar * to bool
409ret ne sv_findx s pat 0 sv_n s false VNONE
410end
411fn sv_vredir to void
412sv_prel vredrel
413ws = sv_load
414if eq ws 0
415sv_fail vrrd vtrdmiss
416ret
417end
418if not and and sv_rdhas ws vrdn1 sv_rdhas ws vrdn2 and sv_rdhas ws vrdn3 sv_rdhas ws vrdn4
419sv_fail vrrd vtrdlack
420end
421sv_drop ws
422end
423note sv_pagefile: vpath = root + the site path (without its leading '/') + index.html.
424fn sv_pagefile s ulong to void
425sv_proot
426sv_pva add sv_off s 1 sub sv_n s 1
427sv_padd vixh
428sv_ctxp
429end
430fn sv_written s ulong to bool
431sv_pagefile s
432ret sv_isreg
433end
434note ---------------------------------------------------------------- O2 head
435note The head is [vax2 start, end) found as oracle read_head does: the first "<head" (any case) must
436note be followed by '>' or whitespace; the head ends at the next "</head>".
437global vhd ulong 4
438fn sv_hbounds h ulong to bool
439wo = sv_findc h vxhead 0
440if eq wo VNONE
441ret false
442end
443if not sv_awsr sv_lc sv_bat h add wo 5
444ret false
445end
446wg = sv_tagend h wo
447if eq wg VNONE
448ret false
449end
450we = sv_findx h vxheadc add wg 1 sv_n h true
451if eq we VNONE
452ret false
453end
454put vhd 0 add wg 1
455put vhd 1 we
456ret true
457end
458text vtgt ">"
459note sv_hnext: the next head tag at or after i (oracle read_head's tag list), its '<'; vax[0] its '>',
460note vax[1] where the scan resumes. Title, script and style bodies are skipped to "</name".
461note VNONE at the end, or when the head is malformed (vhd[2] = 1).
462fn sv_hnext h ulong i ulong to ulong
463we = get vhd 1
464while true bound 999999
465wl = sv_findx h vxlt i we false
466if eq wl VNONE
467ret VNONE
468end
469wg = sv_findx h vtgt wl we false
470if eq wg VNONE
471put vhd 2 1
472ret VNONE
473end
474wc = sv_bat h add wl 1
475wtn = sv_tname h wl
476wsk = and ne wc 47 or or sv_tnis vxtitle sv_tnis vxscr sv_tnis vxsty
477if wsk
478wz = sv_hclose h add wg 1
479if eq wz VNONE
480put vhd 2 1
481ret VNONE
482end
483put vax 0 wg
484put vax 1 add add wz 2 get vtnn 0
485ret wl
486end
487if not or eq wc 47 eq wc 33
488put vax 0 wg
489put vax 1 add wg 1
490ret wl
491end
492i = add wg 1
493end
494ret VNONE
495end
496fn sv_hclose h ulong from ulong to ulong
497we = get vhd 1
498wi = from
499while true bound 999999
500wl = sv_findx h vxclo wi we false
501if eq wl VNONE
502ret VNONE
503end
504if sv_vtnat h add wl 2
505ret wl
506end
507wi = add wl 1
508end
509ret VNONE
510end
511note sv_hrange_blank: [a, b) of h is empty or only Unicode whitespace (str::trim().is_empty()).
512fn sv_rblank h ulong a ulong b ulong to bool
513wi = a
514while lt wi b bound 999999
515if not sv_ins sv_cp h wi
516ret false
517end
518wi = add wi sv_cpl h wi
519end
520ret true
521end
522note sv_htitle: exactly one title tag in the head (else a failure) and its text is not blank.
523fn sv_htitle h ulong to bool
524wn = ulong 0
525wb = false
526wi = get vhd 0
527while true bound 999999
528wl = sv_hnext h wi
529if eq wl VNONE
530break
531end
532wtn = sv_tname h wl
533if and ne sv_bat h add wl 1 47 sv_tnis vxtitle
534wn = add wn 1
535wz = sv_hclose h add get vax 0 1
536wb = sv_rblank h add get vax 0 1 wz
537end
538wi = get vax 1
539end
540if ne get vhd 2 0
541sv_fail vro2 vthtag
542ret false
543end
544if gt wn 1
545sv_fail vro2 vtht2
546ret false
547end
548if or eq wn 0 wb
549sv_fail vro2 vttitle
550ret false
551end
552ret true
553end
554note sv_hmeta: oracle check_head meta(key): the first meta tag whose name (else property) equals key
555note and whose content is not blank; its content offset (vav[0] its length) or VNONE.
556fn sv_hmeta h ulong key view uchar * to ulong
557wi = get vhd 0
558while true bound 999999
559wl = sv_hnext h wi
560if eq wl VNONE
561ret VNONE
562end
563wg = get vax 0
564wi = get vax 1
565wtn = sv_tname h wl
566if sv_tnis vxmeta
567wk = sv_attr h wl wg vxname
568if eq wk VNONE
569wk = sv_attr h wl wg vxprop
570end
571if ne wk VNONE
572if and eq get vav 0 len key sv_eqat h wk key
573wc = sv_attr h wl wg vxcont
574if ne wc VNONE
575wcl = get vav 0
576if not sv_rblank h wc add wc wcl
577put vav 0 wcl
578ret wc
579end
580end
581end
582end
583end
584put vax 1 wi
585end
586ret VNONE
587end
588fn sv_heq h ulong off ulong n ulong u ulong to bool
589if or eq off VNONE ne n sv_n u
590ret false
591end
592for wj ulong n
593if ne sv_b h add off wj sv_b u wj
594ret false
595end
596end
597ret true
598end
599note sv_hcanon: walk the link tags with rel == canonical: count the hrefs and whether every one
600note equals u.
601fn sv_hcanon h ulong u ulong to bool
602wn = ulong 0
603wok = true
604wi = get vhd 0
605while true bound 999999
606wl = sv_hnext h wi
607if eq wl VNONE
608break
609end
610wg = get vax 0
611wi = get vax 1
612wtn = sv_tname h wl
613if and sv_tnis vxlink sv_aeq h sv_attr h wl wg vxrel vxcanon
614wv = sv_attr h wl wg vxhref
615if ne wv VNONE
616wn = add wn 1
617if not sv_heq h wv get vav 0 u
618wok = false
619end
620end
621end
622end
623ret and wok eq wn 1
624end
625note sv_url: "https://www.aienos.com" followed by site path slot p, as a new slot.
626fn sv_url p ulong to ulong
627ws = sv_snew
628sv_pusht vhost
629sv_pusha sv_off p sv_n p
630ret ws
631end
632fn sv_hlangok h ulong to bool
633wh = sv_find h vxhtml 0
634if eq wh VNONE
635ret false
636end
637wg = sv_tagend h wh
638if eq wg VNONE
639ret false
640end
641wv = sv_attr h wh wg vxlng
642if eq wv VNONE
643ret false
644end
645wn = get vav 0
646if and eq wn 2 sv_eqat h wv vxen
647ret true
648end
649ret sv_eqat h wv vxenx
650end
651note sv_hnolang: the site has no translations (Drake, 2026-11-11), so no link in the head carries an
652note hreflang alternate, whatever the language (oracle.rs check_head).
653fn sv_hnolang h ulong to bool
654wi = get vhd 0
655while true bound 999999
656wl = sv_hnext h wi
657if eq wl VNONE
658ret true
659end
660wg = get vax 0
661wi = get vax 1
662wtn = sv_tname h wl
663if and sv_tnis vxlink ne sv_attr h wl wg vxhl VNONE
664ret false
665end
666end
667ret true
668end
669fn sv_chead h ulong p ulong to void
670put vhd 2 0
671if not sv_hbounds h
672sv_fail vro2 vthead
673ret
674end
675if not sv_htitle h
676ret
677end
678wd = sv_hmeta h vxdesc
679if and eq wd VNONE eq sv_hmeta h vxogd VNONE
680sv_fail vro2 vtdesc
681end
682if eq sv_hmeta h vxogt VNONE
683sv_fail vro2 vtogt
684end
685if eq sv_hmeta h vxogd VNONE
686sv_fail vro2 vtogd
687end
688wu = sv_url p
689if not sv_hcanon h wu
690sv_fail vro2 vtcan
691end
692wo = sv_hmeta h vxogu
693if not sv_heq h wo get vav 0 wu
694sv_fail vro2 vtogu
695end
696if not sv_hlangok h
697sv_fail vro2 vtlang
698end
699if not sv_hnolang h
700sv_fail vro2 vthrx
701end
702sv_drop wu
703end
704
705note ---------------------------------------------------------------- O3 destinations, O4 root
706fn sv_dests h ulong to void
707wr = sv_strip h 31
708wi = ulong 0
709for wk ulong sv_tcount vdlab
710wa = sv_tat vdhref wk
711wb = sv_tat vdlab wk
712sv_setlab part vdlab wb sv_tlen vdlab wb
713wi = sv_alink wr wi sv_n wr part vdhref wa sv_tlen vdhref wa 2
714if eq wi VNONE
715sv_failt vro3 vtdest part vdlab wb sv_tlen vdlab wb
716sv_drop wr
717ret
718end
719end
720sv_drop wr
721end
722fn sv_aien_intro h ulong to void
723wm = sv_strip h 7
724if not and sv_hasid wm vsallen sv_hasid wm vsdoor
725sv_fail vro4 vtrid
726end
727sv_drop wm
728wr = sv_strip h 31
729if eq sv_alink wr 0 sv_n wr vclas 0 VNONE
730sv_fail vro4 vtrcl
731end
732sv_drop wr
733if not sv_nosc h
734sv_fail vro4 vtrns
735end
736end
737note The homepage is the live floor plus short routes (Drake, 2026-11-09); the machines and
738note speeds it used to carry are required, readable, on /record/ (sv_record, oracle check_record).
739text vrhome "main-content\nroot\nfactory-floor\nfollow\n"
740text vrpaths "/aien/\n/engineer/\n/machine/\n/evidence/\n/record/\n"
741text vrhomerr "readable homepage is missing content or links, or contains the Aien entrance"
742text vrrec "main-content\nroot\nmachines\nspeed\n"
743text vrrecerr "readable record is missing the machines or speeds, or contains the Aien entrance"
744fn sv_rids wm ulong ids view uchar * err view uchar * to void
745for wi ulong sv_tcount ids
746wa = sv_tat ids wi
747if not sv_hasid wm part ids wa sv_tlen ids wa
748sv_fail vro4 err
749end
750end
751end
752fn sv_noentr h ulong err view uchar * to void
753wm = sv_strip h 7
754if or sv_hasid wm vsdoor sv_hasid wm vsallen
755sv_fail vro4 err
756end
757sv_drop wm
758end
759fn sv_root h ulong to void
760wm = sv_strip h 31
761sv_rids wm vrhome vrhomerr
762for wi ulong sv_tcount vrpaths
763wa = sv_tat vrpaths wi
764if eq sv_alink wm 0 sv_n wm part vrpaths wa sv_tlen vrpaths wa 0 VNONE
765sv_fail vro4 vrhomerr
766end
767end
768sv_drop wm
769sv_noentr h vrhomerr
770end
771fn sv_record h ulong to void
772wm = sv_strip h 31
773sv_rids wm vrrec vrrecerr
774sv_drop wm
775sv_noentr h vrrecerr
776end
777note sv_nosc: some <noscript> outside hidden elements (oracle noscript) links /classic/ with text.
778fn sv_nosc h ulong to bool
779wm = sv_strip h 23
780wi = ulong 0
781while true bound 999999
782wa = sv_findc wm vxnoso wi
783if eq wa VNONE
784sv_drop wm
785ret false
786end
787wi = add wa 1
788if sv_awsr sv_lc sv_bat wm add wa 9
789wg = sv_tagend wm wa
790if ne wg VNONE
791if sv_nosc1 wm add wg 1
792sv_drop wm
793ret true
794end
795end
796end
797end
798ret false
799end
800fn sv_nosc1 wm ulong body ulong to bool
801wtn = sv_tname wm sub body 1
802note vtn must hold "noscript" for sv_eend: set it from the opening tag
803put vtnn 0 8
804for wj ulong 8
805put vtn wj get vxnos wj
806end
807we = sv_eend wm body
808if eq we VNONE
809we = sv_n wm
810else
811we = sub we len vxnosc
812end
813wf = sv_slot1 body we wm
814wg = sv_strip wf 16
815wr = sv_alink wg 0 sv_n wg vclas 0
816sv_drop wf
817ret ne wr VNONE
818end
819
820note ---------------------------------------------------------------- O5 assets
821fn sv_lmode to ulong
822wk = lstat vpath 0 get vpn 0 vst 0 128
823if lt wk 0
824ret 0
825end
826wm = or ulong get vst 16 shl ulong get vst 17 8
827ret or wm or shl ulong get vst 18 16 shl ulong get vst 19 24
828end
829note sv_resolve: oracle resolve_asset for the URL [a, a+n) of slot s.
830fn sv_resolve s ulong a ulong n ulong to bool
831wl = ulong 0
832while lt wl n bound 999999
833c = sv_b s add a wl
834if or eq c 63 eq c 35
835break
836end
837wl = add wl 1
838end
839if or eq wl 0 eq sv_b s add a sub wl 1 47
840ret false
841end
842wi = ulong 0
843while and lt wi wl eq sv_b s add a wi 47 bound 999999
844wi = add wi 1
845end
846if eq wi wl
847ret false
848end
849wseg = ulong 0
850wdot = ulong 0
851for wj ulong sub wl wi
852c = sv_b s add add a wi wj
853if eq c 47
854if or eq wseg 0 and le wseg 2 eq wdot wseg
855ret false
856end
857wseg = 0
858wdot = 0
859else
860if eq c 92
861ret false
862end
863if eq c 46
864wdot = add wdot 1
865end
866wseg = add wseg 1
867end
868end
869if and le wseg 2 eq wdot wseg
870ret false
871end
872sv_proot
873sv_pva add add sv_off s a wi sub wl wi
874ret eq and sv_lmode 61440 32768
875end
876fn sv_assets h ulong to void
877wm = sv_strip h 0
878wi = ulong 0
879while true bound 999999
880wl = sv_findb2 wm 60 wi
881if eq wl VNONE
882break
883end
884wg = sv_tagend wm wl
885if eq wg VNONE
886break
887end
888wi = add wg 1
889if ne sv_bat wm add wl 1 47
890wi = sv_asset1 wm wl wg
891end
892end
893sv_drop wm
894end
895fn sv_asset1 wm ulong wl ulong wg ulong to ulong
896wtn = sv_tname wm wl
897wv = VNONE
898wscr = sv_tnis vxscr
899if wscr
900wv = sv_attr wm wl wg vxsrc
901end
902if sv_tnis vxlink
903wr = sv_attr wm wl wg vxrel
904if ne wr VNONE
905if sv_hastokc wm wr get vav 0 vxsheet
906wv = sv_attr wm wl wg vxhref
907end
908end
909end
910if ne wv VNONE
911wn = get vav 0
912if and ge wn 1 eq sv_b wm wv 47
913if not and ge wn 2 eq sv_b wm add wv 1 47
914if not sv_resolve wm wv wn
915sv_failx vro5 vtasset add sv_off wm wv wn
916end
917end
918end
919end
920wtn = sv_tname wm wl
921if or wscr sv_tnis vxsty
922wz = sv_eend wm add wg 1
923if eq wz VNONE
924ret sv_n wm
925end
926ret wz
927end
928ret add wg 1
929end
930note sv_hastokc: ASCII-whitespace-separated token equal to tok ignoring ASCII case.
931fn sv_hastokc s ulong v ulong n ulong tok view uchar * to bool
932wi = v
933we = add v n
934while lt wi we bound 999999
935while and lt wi we sv_aws sv_b s wi bound 999999
936wi = add wi 1
937end
938wst = wi
939while and lt wi we not sv_aws sv_b s wi bound 999999
940wi = add wi 1
941end
942if and gt wi wst eq sub wi wst len tok
943if sv_eqatc s wst tok
944ret true
945end
946end
947end
948ret false
949end
950
951note ---------------------------------------------------------------- C1 consent boundary (per .html)
952fn sv_lower s ulong to ulong
953ws = sv_snew
954for wj ulong sv_n s
955sv_push sv_lc sv_b s wj
956end
957ret ws
958end
959note sv_c1: con is the expected consent count, 1 on a page and 0 on a seo REDIRECTS stub (seo.rs).
960fn sv_c1 h ulong con ulong to void
961wl = sv_lower h
962if or sv_has wl vxuwt sv_has wl vxtwq
963sv_fail vrc1 vtxpx
964end
965if or sv_has wl vxfg sv_has wl vxfs
966sv_fail vrc1 vtfont
967end
968wi = ulong 0
969while true bound 999999
970wa = sv_find wl vxscro wi
971if eq wa VNONE
972break
973end
974wg = sv_tagend wl wa
975if eq wg VNONE
976sv_fail vrc1 vtunt
977break
978end
979wv = sv_attr wl wa wg vxsrc
980if ne wv VNONE
981if not sv_srcok wl wv get vav 0
982sv_failx vrc1 vtscr add sv_off wl wa sub add wg 1 wa
983end
984else
985if sv_hasn wl vxsrc wa add wg 1
986sv_failx vrc1 vtscr add sv_off wl wa sub add wg 1 wa
987end
988end
989wi = add wg 1
990end
991sv_drop wl
992if ne sv_count h vxload 0
993sv_fail vrc1 vtload
994end
995if ne sv_count h vxdlg 0
996sv_fail vrc1 vtdlg
997end
998if and eq con 1 not sv_has h vxprv
999sv_fail vrc1 vtpriv
1000end
1001end
1002fn sv_srcok s ulong v ulong n ulong to bool
1003if or eq n 0 ne sv_b s v 47
1004ret false
1005end
1006if and ge n 2 eq sv_b s add v 1 47
1007ret false
1008end
1009wi = v
1010while lt wi add v n bound 999999
1011if or eq sv_b s wi 92 sv_ins sv_cp s wi
1012ret false
1013end
1014wi = add wi sv_cpl s wi
1015end
1016ret true
1017end
1018fn sv_c1js q ulong h ulong to void
1019if or sv_has h vxuwt sv_has h vxtwq
1020sv_fail vrc2 vtjsx
1021end
1022end
1023fn sv_c2 to void
1024wj = sv_loadrel vxaij
1025if eq wj 0
1026sv_fail vrc2 vtrfr
1027ret
1028end
1029if or sv_has wj vxuwt sv_has wj vxtwq
1030sv_fail vrc2 vtrfr
1031end
1032sv_drop wj
1033end
1034
1035note ---------------------------------------------------------------- G contact (per .html)
1036fn sv_contact q ulong h ulong to void
1037wr = sv_strip h 31
1038if eq sv_alink wr 0 sv_n wr vsx 1 VNONE
1039sv_fail vrg vtnox
1040sv_drop wr
1041ret
1042end
1043if ne sv_mains wr 1
1044sv_fail vrg vtmain
1045else
1046if eq sv_alink wr 0 get vax 0 vsx 1 VNONE
1047sv_fail vrg vtxbm
1048end
1049end
1050if eq sv_alink wr 0 sv_n wr vscon 0 VNONE
1051sv_fail vrg vtnoc
1052end
1053if eq sv_alink wr 0 sv_n wr vsmail 0 VNONE
1054sv_fail vrg vtnom
1055end
1056wroot = or sv_fis q vixh sv_fis q v404
1057if not wroot
1058wh = ne sv_alink wr 0 sv_n wr vshome 0 VNONE
1059if not wh
1060sv_fail vrg vtnoh
1061end
1062end
1063sv_cfoot wr
1064sv_drop wr
1065end
1066fn sv_cfoot wr ulong to void
1067wlast = VNONE
1068wi = ulong 0
1069while true bound 999999
1070wa = sv_fclass wr wi vsfoot
1071if eq wa VNONE
1072break
1073end
1074wlast = wa
1075wi = add get vax 0 1
1076end
1077if eq wlast VNONE
1078sv_fail vrg vtnof
1079ret
1080end
1081wx = ne sv_alink wr wlast sv_n wr vsx 1 VNONE
1082wm = ne sv_alink wr wlast sv_n wr vsmail 0 VNONE
1083if not and wx wm
1084sv_fail vrg vtnof
1085end
1086end
1087
1088note ---------------------------------------------------------------- F singular voice
1089note voice.rs verify_singular_voice with the sourced-quote exemption (RustOracle lane): every .html,
1090note .md and .txt in dist. HTML: each element whose opening tag carries data-quote-id="qNN" (the
1091note attribute preceded by ASCII whitespace inside the tag) must show exactly the squashed text of qNN
1092note from data/quotes.json, and only that element is removed before the check; an unknown id, an
1093note element that never closes or a changed text fails. Markdown and text: only the exact raw quote
1094note strings are removed. data-speaker="allen" is NOT an exemption here until PR #119 lands in the
1095note Rust oracle (RustOracle decision); the generator must not rely on it.
1096note vallowt: voice.rs ALLOW as file / phrase line pairs, in its order.
1097text vallowt "post-llm-case/index.html\nWe need the real world.\npost-llm-case/index.md\nWe need the real world.\npost-llm-case.md\nWe need the real world.\nllms-full.txt\nWe need the real world.\nengineer/works/the-continuation-test/index.html\nIt only does what we tell it.\nengineer/works/the-continuation-test/index.md\nIt only does what we tell it.\nengineer/works/the-continuation-test.md\nIt only does what we tell it.\nengineer/papers/the-continuation-test.md\nIt only does what we tell it.\nllms-full.txt\nIt only does what we tell it.\nengineer/works/the-continuation-test/index.html\nIf we can't write down the rules for good thinking\nengineer/works/the-continuation-test/index.md\nIf we can't write down the rules for good thinking\nengineer/works/the-continuation-test.md\nIf we can't write down the rules for good thinking\nengineer/papers/the-continuation-test.md\nIf we can't write down the rules for good thinking\nllms-full.txt\nIf we can't write down the rules for good thinking\nengineer/works/atlas-symphony/index.html\nWhat's left in our development plan?\nengineer/works/atlas-symphony/index.md\nWhat's left in our development plan?\nengineer/works/atlas-symphony.md\nWhat's left in our development plan?\nllms-full.txt\nWhat's left in our development plan?\nengineer/works/atlas-symphony/index.html\nPlease proceed with our Symphony.\nengineer/works/atlas-symphony/index.md\nPlease proceed with our Symphony.\nengineer/works/atlas-symphony.md\nPlease proceed with our Symphony.\nllms-full.txt\nPlease proceed with our Symphony.\n"
1098text vxscr2 "<script"
1099text vxscc "</script>"
1100text vxsty2 "<style"
1101text vxstc "</style>"
1102text vxlk1 "]("
1103text vxhttps "https://"
1104text vxhttp "http://"
1105text vpw "we\nus\nour\nours\nourselves\n"
1106text vxus "US"
1107text vxus2 "us"
1108text vjoin "-_/.#"
1109global vrec ulong 1
1110note sv_cut: in the newest slot s replace [a, b) by one space.
1111fn sv_cut s ulong a ulong b ulong to void
1112wo = sv_off s
1113wn = sv_n s
1114put va add wo a 32
1115wd = add a 1
1116sv_amove add wo wd add wo b sub wn b
1117sv_trunc s add wd sub wn b
1118end
1119note sv_sleq: slots a and b hold the same bytes (split out of sv_quote1 for registers).
1120fn sv_sleq a ulong b ulong to bool
1121if ne sv_n a sv_n b
1122ret false
1123end
1124for wj ulong sv_n a
1125if ne sv_b a wj sv_b b wj
1126ret false
1127end
1128end
1129ret true
1130end
1131fn sv_rlt s ulong wpos ulong to ulong
1132wi = wpos
1133while gt wi 0 bound 999999
1134wi = sub wi 1
1135if eq sv_b s wi 60
1136ret wi
1137end
1138end
1139ret VNONE
1140end
1141note sv_quotes: without_sourced_quotes on the newest slot s, in place. False on a quote failure.
1142fn sv_quotes s ulong to bool
1143wfrom = ulong 0
1144while true bound 999999
1145wat = sv_find s vxqattr wfrom
1146if eq wat VNONE
1147ret true
1148end
1149wop = sv_rlt s wat
1150wg = VNONE
1151if ne wop VNONE
1152wg = sv_tagend s wop
1153end
1154wskip = or eq wop VNONE eq wg VNONE
1155if not wskip
1156wskip = or lt wg wat not sv_aws sv_b s sub wat 1
1157end
1158if wskip
1159wfrom = add wat len vxqattr
1160else
1161if not sv_quote1 s wop wg wat
1162ret false
1163end
1164wfrom = wop
1165end
1166end
1167ret true
1168end
1169fn sv_quote1 s ulong wop ulong wg ulong wat ulong to bool
1170wid = add wat len vxqattr
1171wq = sv_findb2 s 34 wid
1172if eq wq VNONE
1173sv_fail vrf vtquo
1174ret false
1175end
1176wk = sv_qfind s wid sub wq wid
1177if eq wk VNONE
1178sv_failx vrf vtquo add sv_off s wid sub wq wid
1179ret false
1180end
1181wtn = sv_tname s wop
1182wnl = get vtnn 0
1183we = sv_eend s add wg 1
1184if eq we VNONE
1185sv_failx vrf vtquo add sv_off s wid sub wq wid
1186ret false
1187end
1188wt = sv_rtext s add wg 1 sub we add wnl 3
1189wqs = get vqo wk
1190wok = sv_sleq wt wqs
1191sv_drop wt
1192if not wok
1193sv_failx vrf vtquo add sv_off s wid sub wq wid
1194ret false
1195end
1196sv_cut s wop we
1197ret true
1198end
1199fn sv_qfind s ulong a ulong n ulong to ulong
1200for wk ulong get vqc 0
1201wi = get vqio wk
1202if eq sv_n wi n
1203wm = true
1204for wj ulong n
1205if ne sv_b wi wj sv_b s add a wj
1206wm = false
1207end
1208end
1209if wm
1210ret wk
1211end
1212end
1213end
1214ret VNONE
1215end
1216note sv_qstr: without_quote_strings on the newest slot s: every raw quote string becomes one space.
1217fn sv_qstr s ulong to void
1218for wk ulong get vqc 0
1219wq = get vqin wk
1220wn = sv_n wq
1221while true bound 999999
1222wf = sv_finda s 0 sv_n s sv_off wq wn
1223if eq wf VNONE
1224break
1225end
1226sv_cut s wf add wf wn
1227end
1228end
1229end
1230note sv_vis: voice.rs visible_text on the newest slot s, in place: script and style blocks
1231note (`<script\b.*?</script>` / `<style\b.*?</style>`, any case), then `<[^>]*>`, each to one space;
1232note then the seven entities in voice.rs order.
1233fn sv_vis s ulong to void
1234sv_vblocks s
1235sv_vtags s
1236sv_ents s vxent2
1237end
1238fn sv_vblk s ulong i ulong to ulong
1239note end of a script or style block starting at i, or VNONE
1240we = VNONE
1241if sv_eqatc s i vxscr2
1242if not sv_wat s add i 7
1243we = sv_findc s vxscc add i 7
1244if ne we VNONE
1245we = add we 9
1246end
1247end
1248ret we
1249end
1250if sv_eqatc s i vxsty2
1251if not sv_wat s add i 6
1252we = sv_findc s vxstc add i 6
1253if ne we VNONE
1254we = add we 8
1255end
1256end
1257end
1258ret we
1259end
1260fn sv_vblocks s ulong to void
1261wi = ulong 0
1262while true bound 999999
1263wl = sv_findb2 s 60 wi
1264if eq wl VNONE
1265ret
1266end
1267we = sv_vblk s wl
1268if eq we VNONE
1269wi = add wl 1
1270else
1271sv_cut s wl we
1272wi = add wl 1
1273end
1274end
1275end
1276fn sv_vtags s ulong to void
1277wi = ulong 0
1278while true bound 999999
1279wl = sv_findb2 s 60 wi
1280if eq wl VNONE
1281ret
1282end
1283wg = sv_findb2 s 62 add wl 1
1284if eq wg VNONE
1285ret
1286end
1287sv_cut s wl add wg 1
1288wi = add wl 1
1289end
1290end
1291note sv_lend: the end of a `\]\([^)\s]*\)` or `https?://\S+` match at i in s, or VNONE
1292note (split out of sv_links for registers).
1293fn sv_lend s ulong wi ulong to ulong
1294we = VNONE
1295if sv_eqat s wi vxlk1
1296wj = add wi 2
1297while and lt wj sv_n s not or eq sv_b s wj 41 sv_ins sv_cp s wj bound 999999
1298wj = add wj sv_cpl s wj
1299end
1300if and lt wj sv_n s eq sv_bat s wj 41
1301we = add wj 1
1302end
1303ret we
1304end
1305wj = VNONE
1306if sv_eqat s wi vxhttps
1307wj = add wi 8
1308end
1309if and eq wj VNONE sv_eqat s wi vxhttp
1310wj = add wi 7
1311end
1312if ne wj VNONE
1313if and lt wj sv_n s not sv_sat s wj
1314while and lt wj sv_n s not sv_sat s wj bound 999999
1315wj = add wj sv_cpl s wj
1316end
1317we = wj
1318end
1319end
1320ret we
1321end
1322note sv_links: `\]\([^)\s]*\)|https?://\S+` each to one space, in place.
1323fn sv_links s ulong to void
1324wi = ulong 0
1325while lt wi sv_n s bound 64
1326wk = ulong 0
1327while and lt wi sv_n s lt wk 262144 bound 262144
1328wk = add wk 1
1329we = sv_lend s wi
1330if eq we VNONE
1331wi = add wi sv_cpl s wi
1332else
1333sv_cut s wi we
1334wi = add wi 1
1335end
1336end
1337end
1338end
1339note sv_pmatch: a plural word starts at i (\b on both sides); its end or VNONE.
1340fn sv_pmatch t ulong i ulong to ulong
1341if not sv_wb t i
1342ret VNONE
1343end
1344for wk ulong sv_tcount vpw
1345wa = sv_tat vpw wk
1346put vlx 0 0
1347put vlx 1 sv_n t
1348put vlx 2 t
1349we = sv_lmc i part vpw wa sv_tlen vpw wa
1350if ne we VNONE
1351if sv_wb t we
1352ret we
1353end
1354end
1355end
1356ret VNONE
1357end
1358fn sv_joined t ulong i ulong to bool
1359if ge i sv_n t
1360ret false
1361end
1362c = sv_b t i
1363for wj ulong len vjoin
1364if eq c get vjoin wj
1365ret true
1366end
1367end
1368ret false
1369end
1370note sv_pskip: voice.rs filters for the match [i, e) of t.
1371fn sv_pskip t ulong i ulong e ulong rec ulong to bool
1372if and eq sub e i 2 sv_eqat t i vxus
1373ret true
1374end
1375if gt i 0
1376if sv_joined t sv_pv t i
1377ret true
1378end
1379end
1380if sv_joined t e
1381ret true
1382end
1383if and eq sub e i 2 sv_eqatc t i vxus2
1384wj = i
1385while gt wj 0 bound 999999
1386wp = sv_pv t wj
1387if not sv_ins sv_cp t wp
1388if sv_isdig sv_b t wp
1389ret true
1390end
1391break
1392end
1393wj = wp
1394end
1395end
1396if ne rec 0
1397ret sv_inrec t i e rec
1398end
1399ret false
1400end
1401fn sv_inrec t ulong i ulong e ulong rec ulong to bool
1402ws = i
1403for wk ulong 12
1404if eq ws 0
1405break
1406end
1407ws = sv_pv t ws
1408end
1409we = e
1410for wk ulong 12
1411if ge we sv_n t
1412break
1413end
1414we = add we sv_cpl t we
1415end
1416if ne sv_finda rec 0 sv_n rec add sv_off t ws sub e ws VNONE
1417ret true
1418end
1419ret ne sv_finda rec 0 sv_n rec add sv_off t i sub we i VNONE
1420end
1421fn sv_plural t ulong rec ulong to void
1422wi = ulong 0
1423while lt wi sv_n t bound 64
1424wc = ulong 0
1425while and lt wi sv_n t lt wc 262144 bound 262144
1426wc = add wc 1
1427we = sv_pmatch t wi
1428if eq we VNONE
1429wi = add wi sv_cpl t wi
1430else
1431if not sv_pskip t wi we rec
1432ws = wi
1433for wk ulong 50
1434if eq ws 0
1435break
1436end
1437ws = sv_pv t ws
1438end
1439sv_failx vrf vtvoice add sv_off t ws sub we ws
1440end
1441wi = we
1442end
1443end
1444end
1445end
1446note sv_voice1: one file q whose bytes are slot h.
1447fn sv_voice1 q ulong h ulong to void
1448if sv_ledpage q
1449sv_wdnote q h
1450end
1451sv_rfclaim q h
1452wt = sv_slot1 0 sv_n h h
1453if sv_fext q vxhtm
1454if not sv_quotes wt
1455sv_drop wt
1456ret
1457end
1458sv_vis wt
1459else
1460sv_qstr wt
1461end
1462sv_allow q wt
1463sv_links wt
1464sv_squash wt
1465wrec = ulong 0
1466if sv_ledpage q
1467wrec = get vrec 0
1468end
1469sv_plural wt wrec
1470sv_drop wt
1471end
1472note sv_allow: every vallowt phrase listed for file q, each occurrence to one space.
1473fn sv_allow q ulong s ulong to void
1474wn = sv_tcount vallowt
1475wk = ulong 0
1476while lt add wk 1 wn bound 64
1477wa = sv_tat vallowt wk
1478if sv_fis q part vallowt wa sv_tlen vallowt wa
1479wb = sv_tat vallowt add wk 1
1480sv_qrep s part vallowt wb sv_tlen vallowt wb
1481end
1482wk = add wk 2
1483end
1484end
1485fn sv_qrep s ulong p view uchar * to void
1486while true bound 999999
1487wf = sv_find s p 0
1488if eq wf VNONE
1489ret
1490end
1491sv_cut s wf add wf len p
1492end
1493end
1494fn sv_ledpage q ulong to bool
1495for wk ulong sv_tcount vledp
1496wa = sv_tat vledp wk
1497if sv_fis q part vledp wa sv_tlen vledp wa
1498ret true
1499end
1500end
1501ret false
1502end
1503note sv_wdnote: Rust now::verify_withdrawn_notes. Ledger rows keep their historical wording; on
1504note /now/ HTML each box holding a withdrawn phrase holds the note, and on the text copies (now.md,
1505note now/index.md, the /now/ section of llms-full.txt) the note follows each phrase before the box
1506note ends at its "[Ledger line " link or the next "\n- L<digit>" row.
1507text vwdph "drop-in\nfirst ever\nreplaced cuda\nfaster than cuda\nno nvidia software\nworks on any nvidia gpu\n"
1508text vwdbx "<article class=\"now-card\n<li class=\"now-queue-row\n<li class=\"now-tl \n"
1509text vwdnt "Wording withdrawn 2026-11-07: this phrase is not a supported claim; see the hardware scope."
1510text vwdlf "[Ledger line "
1511text vwdrw "\n- L"
1512text vwdsrc "\nSource: https://www.aienos.com/now/\n"
1513text vwdsec "\n---\n\n# "
1514text vwdllm "llms-full.txt"
1515text vwdwhy "withdrawn wording without the 2026-11-07 note"
1516text vwdnos "no /now/ section"
1517global vwdc ulong 3
1518fn sv_wdnote q ulong h ulong to void
1519if sv_fext q vxhtm
1520sv_wdhtml h
1521ret
1522end
1523if not sv_fis q vwdllm
1524sv_wdtext h 0 sv_n h
1525ret
1526end
1527wa = sv_findx h vwdsrc 0 sv_n h false
1528if eq wa VNONE
1529sv_fail vrf vwdnos
1530ret
1531end
1532wb = sv_findx h vwdsec add wa 1 sv_n h false
1533if eq wb VNONE
1534wb = sv_n h
1535end
1536sv_wdtext h wa add wb 1
1537end
1538note sv_wdtext: every phrase occurrence in [a, b) of slot s has the note before its box ends.
1539fn sv_wdtext s ulong a ulong b ulong to void
1540for wk ulong sv_tcount vwdph
1541wp = sv_tat vwdph wk
1542wi = a
1543while lt wi b bound 999999
1544wf = sv_findx s part vwdph wp sv_tlen vwdph wp wi b true
1545if eq wf VNONE
1546wi = b
1547else
1548if eq sv_findx s vwdnt wf sv_wdend s wf b false VNONE
1549sv_failx vrf vwdwhy add sv_off s wf sv_tlen vwdph wp
1550end
1551wi = add wf 1
1552end
1553end
1554end
1555end
1556note sv_rfclaim: Rust voice::verify_no_refresh_claims. The site is published only with a reviewed
1557note release, so outside the ledger surfaces no file claims an hourly or GitHub refresh. Ledger rows
1558note keep their historical wording; on llms-full.txt only the /now/ section is skipped.
1559text vrfph "refreshed hourly\nrefreshes hourly\nupdated: hourly\nat most hourly\nruns hourly\nevery hour\nwithin the hour\nserved by github pages\nsites are on github pages\ngithub pages serves the output\ndeploys it on every push\n"
1560text vrfwhy "hourly or GitHub refresh claim; the site is published only with reviewed releases"
1561fn sv_rfclaim q ulong h ulong to void
1562if sv_fis q vwdllm
1563wa = sv_findx h vwdsrc 0 sv_n h false
1564if eq wa VNONE
1565sv_rfin h 0 sv_n h
1566ret
1567end
1568wb = sv_findx h vwdsec add wa 1 sv_n h false
1569if eq wb VNONE
1570wb = sv_n h
1571end
1572sv_rfin h 0 wa
1573sv_rfin h wb sv_n h
1574ret
1575end
1576if sv_ledpage q
1577ret
1578end
1579sv_rfin h 0 sv_n h
1580end
1581note sv_rfin: each refresh phrase occurrence in [a, b) of slot s fails.
1582fn sv_rfin s ulong a ulong b ulong to void
1583for wk ulong sv_tcount vrfph
1584wp = sv_tat vrfph wk
1585wi = a
1586while lt wi b bound 999999
1587wf = sv_findx s part vrfph wp sv_tlen vrfph wp wi b true
1588if eq wf VNONE
1589wi = b
1590else
1591sv_failx vrf vrfwhy add sv_off s wf sv_tlen vrfph wp
1592wi = add wf 1
1593end
1594end
1595end
1596end
1597note sv_wdend: where the box holding offset i ends, at or before b.
1598fn sv_wdend s ulong i ulong b ulong to ulong
1599we = sv_findx s vwdlf i b false
1600if eq we VNONE
1601we = b
1602end
1603wr = i
1604while lt wr we bound 999999
1605wf = sv_findx s vwdrw wr b false
1606if or eq wf VNONE ge wf we
1607wr = we
1608else
1609if and lt add wf 4 b sv_isdig sv_b s add wf 4
1610we = wf
1611end
1612wr = add wf 1
1613end
1614end
1615ret we
1616end
1617note sv_wdhtml: the box chunks of a rendered /now/ page; text before the first box counts too.
1618fn sv_wdhtml s ulong to void
1619for wk ulong 3
1620put vwdc wk 0
1621end
1622wc = ulong 0
1623while lt wc sv_n s bound 999999
1624wn = sv_wdnext s wc
1625for wk ulong sv_tcount vwdph
1626wp = sv_tat vwdph wk
1627if ne sv_findx s part vwdph wp sv_tlen vwdph wp wc wn true VNONE
1628if eq sv_findx s vwdnt wc wn false VNONE
1629sv_failx vrf vwdwhy add sv_off s wc sub wn wc
1630end
1631end
1632end
1633wc = wn
1634end
1635end
1636note sv_wdnext: the next box start after c (else the end); each marker's next start is cached in
1637note vwdc so every marker is scanned once over the page.
1638fn sv_wdnext s ulong c ulong to ulong
1639wm = sv_n s
1640for wk ulong 3
1641wa = sv_tat vwdbx wk
1642if le get vwdc wk c
1643wf = sv_findx s part vwdbx wa sv_tlen vwdbx wa add c 1 sv_n s false
1644if eq wf VNONE
1645wf = sv_n s
1646end
1647put vwdc wk wf
1648end
1649if lt get vwdc wk wm
1650wm = get vwdc wk
1651end
1652end
1653ret wm
1654end
1655note sv_vrec: the squashed ledger record (tabs as spaces) as a persistent slot; empty when absent.
1656fn sv_vrec to void
1657sv_prel vfnow
1658ws = sv_load
1659if eq ws 0
1660ws = sv_snew
1661end
1662note A for loop traps 4 past 1000000 passes; the ledger passed 1.1 MB on 2026-11-06, so scan in blocks.
1663wn = sv_n ws
1664wj = ulong 0
1665while lt wj wn bound 64
1666wk = ulong 0
1667while and lt wj wn lt wk 262144 bound 262144
1668if eq sv_b ws wj 9
1669put va add sv_off ws wj 32
1670end
1671wj = add wj 1
1672wk = add wk 1
1673end
1674end
1675sv_squash ws
1676put vrec 0 ws
1677if eq sv_n ws 0
1678put vrec 0 0
1679end
1680end
1681
1682note ---------------------------------------------------------------- O1 registry, O2 heads, O3
1683fn sv_regw to void
1684note every written index.html is registered
1685for wq ulong get vfc 0
1686wp = sv_ppath wq
1687if ne wp 0
1688if not sv_inreg wp 0 sv_n wp
1689sv_pfile wq
1690sv_failx vro1 vtregx sv_off wp sv_n wp
1691end
1692sv_drop wp
1693end
1694end
1695note every registry entry was written
1696for wk ulong sv_regn
1697ws = sv_snew
1698sv_rgpush wk
1699if not sv_written ws
1700sv_ctxt vtregm
1701sv_failx vro1 vtregm sv_off ws sv_n ws
1702end
1703sv_drop ws
1704end
1705end
1706fn sv_pages to void
1707for wq ulong get vfc 0
1708wp = sv_ppath wq
1709if ne wp 0
1710sv_pfile wq
1711wh = sv_load
1712if eq wh 0
1713sv_fail vro2 vtnf
1714else
1715sv_chead wh wp
1716sv_dests wh
1717end
1718sv_drop wp
1719end
1720end
1721end
1722fn sv_sitemap to void
1723sv_prel vfsmap
1724wsm = sv_load
1725if eq wsm 0
1726sv_fail vro6 vtnf
1727ret
1728end
1729for wk ulong sv_regn
1730wn = sv_snew
1731sv_pusht vxloc
1732sv_pusht vhost
1733sv_rgpush wk
1734sv_pusht vxlocc
1735if eq sv_finda wsm 0 sv_n wsm sv_off wn sv_n wn VNONE
1736sv_failx vro6 vtsmap sv_off wn sv_n wn
1737end
1738sv_drop wn
1739end
1740sv_drop wsm
1741end
1742
1743note ---------------------------------------------------------------- O8 no translated copies
1744note Drake, 2026-11-11: readers translate pages with their own tools, so the site publishes no
1745note translated copy (oracle.rs check_no_translations). No dist path starts with zh-CN/, and no file
1746note links a /zh-CN/ route (href in any quoting, a markdown link, or any URL on aienos.com, which covers
1747note the sitemap) or names a zh hreflang or <html lang> (any quoting; ASCII case-insensitive). Text that
1748note only mentions zh-CN, even /zh-CN/ in prose, is not a copy and passes.
1749text vro8 "O8"
1750text vo8dir "zh-CN/"
1751text vo8pat "href=\"/zh-cn/\nhref='/zh-cn/\nhref=/zh-cn/\n](/zh-cn/\naienos.com/zh-cn/\nhreflang=\"zh\nhreflang='zh\nhreflang=zh\n<html lang=\"zh\n<html lang='zh\n<html lang=zh\n"
1752text vto8d "a translated copy is published under zh-CN/"
1753text vto8p "names a translated copy"
1754fn sv_o8dir q ulong to bool
1755if lt get vfl q len vo8dir
1756ret false
1757end
1758for wj ulong len vo8dir
1759if ne get vfp add get vfo q wj get vo8dir wj
1760ret false
1761end
1762end
1763ret true
1764end
1765fn sv_o8 to void
1766for wq ulong get vfc 0
1767if sv_o8dir wq
1768sv_pfile wq
1769sv_fail vro8 vto8d
1770end
1771if eq get vfk wq 1
1772sv_pfile wq
1773ws = sv_rawload
1774if ne ws 0
1775for wk ulong sv_tcount vo8pat
1776wa = sv_tat vo8pat wk
1777if sv_hasc ws part vo8pat wa sv_tlen vo8pat wa
1778sv_failt vro8 vto8p part vo8pat wa sv_tlen vo8pat wa
1779end
1780end
1781sv_drop ws
1782end
1783end
1784end
1785end
1786
1787note ---------------------------------------------------------------- C3-C8 machine surface
1788fn sv_c3 to void
1789wr = sv_loadrel vfrob
1790if eq wr 0
1791sv_fail vrc3 vtrob
1792ret
1793end
1794for wk ulong sv_tcount vxbots
1795wn = sv_snew
1796sv_pusht vxua
1797wa = sv_tat vxbots wk
1798sv_pusht part vxbots wa sv_tlen vxbots wa
1799sv_pusht vxallow
1800if eq sv_finda wr 0 sv_n wr sv_off wn sv_n wn VNONE
1801sv_failx vrc3 vtrob sv_off wn sv_n wn
1802end
1803sv_drop wn
1804end
1805if not sv_has wr vxsmap
1806sv_fail vrc3 vtrob
1807end
1808sv_drop wr
1809ws = sv_loadrel vfsmap
1810if eq ws 0
1811sv_fail vrc3 vtnf
1812ret
1813end
1814if sv_has ws vxapex
1815sv_fail vrc3 vtapex
1816end
1817sv_drop ws
1818end
1819fn sv_c4 to void
1820wm = sv_loadrel vfsmd
1821if eq wm 0
1822sv_fail vrc4 vtsmd
1823else
1824if not and sv_starts wm vxsmh and sv_has wm vxh2 sv_has wm vxglmd
1825sv_fail vrc4 vtsmd
1826end
1827sv_drop wm
1828end
1829wa = sv_loadrel vfagm
1830if eq wa 0
1831sv_fail vrc4 vtagm
1832else
1833for wk ulong sv_tcount vxagm
1834wo = sv_tat vxagm wk
1835if not sv_has wa part vxagm wo sv_tlen vxagm wo
1836sv_failt vrc4 vtagm part vxagm wo sv_tlen vxagm wo
1837end
1838end
1839sv_drop wa
1840end
1841wi = sv_loadrel vixh
1842if eq wi 0
1843sv_fail vrc4 vtnf
1844ret
1845end
1846if not sv_has wi vxgl
1847sv_fail vrc4 vtgl
1848end
1849if not sv_has wi vxbcl
1850sv_fail vrc4 vtbc
1851end
1852sv_drop wi
1853end
1854fn sv_c5 to void
1855wl = sv_loadrel vfllms
1856if eq wl 0
1857sv_fail vrc5 vtnf
1858ret
1859end
1860for wk ulong sv_tcount vdfiles
1861wa = sv_tat vdfiles wk
1862wn = sv_tlen vdfiles wa
1863sv_proot
1864sv_pva 0 0
1865sv_padd part vdfiles add wa 1 sub wn 1
1866sv_ctxp
1867wok = sv_exists
1868wok = and wok sv_has wl part vdfiles wa wn
1869if not wok
1870sv_failt vrc5 vtdf part vdfiles wa wn
1871end
1872end
1873sv_drop wl
1874sv_prel vfidx
1875if not sv_exists
1876sv_fail vrc5 vtdfn
1877ret
1878end
1879wr = sv_jload
1880if ne sj_len sj_find wr vkfiles2 sv_tcount vdfiles
1881sv_fail vrc5 vtdfn
1882end
1883end
1884text vxtmd "index.md"
1885note sv_mdpath: seo.rs md_path of site path slot p, as a new slot ("/" -> "/index.md", "/a/" -> "/a.md").
1886fn sv_mdpath p ulong to ulong
1887ws = sv_snew
1888if eq sv_n p 1
1889sv_push 47
1890sv_pusht vxtmd
1891ret ws
1892end
1893wn = sv_n p
1894while and gt wn 0 eq sv_b p sub wn 1 47 bound 4096
1895wn = sub wn 1
1896end
1897sv_pusha sv_off p wn
1898sv_pusht vxmd
1899ret ws
1900end
1901note sv_c6: one PAGES entry k (its path pushed into slot p).
1902fn sv_c6 p ulong wsm ulong wll ulong to void
1903wn = sv_snew
1904sv_pusht vxloc
1905sv_pusht vhost
1906sv_pusha sv_off p sv_n p
1907sv_pusht vxlocc
1908if eq sv_finda wsm 0 sv_n wsm sv_off wn sv_n wn VNONE
1909sv_failx vrc6 vtsml sv_off p sv_n p
1910end
1911sv_drop wn
1912wn = sv_snew
1913sv_pusht vxmdo
1914sv_pusht vhost
1915sv_pusha sv_off p sv_n p
1916sv_push 41
1917if eq sv_finda wll 0 sv_n wll sv_off wn sv_n wn VNONE
1918sv_failx vrc6 vtllm sv_off p sv_n p
1919end
1920sv_drop wn
1921sv_pagefile p
1922wh = sv_load
1923if eq wh 0
1924sv_failx vrc6 vtnf sv_off p sv_n p
1925ret
1926end
1927sv_c6page p wh
1928sv_c6ld wh
1929if sv_dash wh
1930sv_failx vrc6 vtdsh sv_off p sv_n p
1931end
1932sv_drop wh
1933sv_c6md p
1934end
1935fn sv_c6page p ulong wh ulong to void
1936wn = sv_snew
1937sv_pusht vxcano
1938sv_pusht vhost
1939sv_pusha sv_off p sv_n p
1940sv_pusht vxtagc
1941if eq sv_finda wh 0 sv_n wh sv_off wn sv_n wn VNONE
1942sv_fail vrc6 vtcanx
1943end
1944sv_drop wn
1945if not and sv_has wh vxldj sv_has wh vxtws
1946sv_fail vrc6 vtld
1947end
1948wm = sv_mdpath p
1949wn = sv_snew
1950sv_pusht vxmdl
1951sv_pusha sv_off wm sv_n wm
1952sv_pusht vxtagc
1953if eq sv_finda wh 0 sv_n wh sv_off wn sv_n wn VNONE
1954sv_fail vrc6 vtmdl
1955end
1956sv_drop wm
1957if not sv_has wh vxdby
1958sv_fail vrc6 vtdby
1959end
1960if not and sv_has wh vxsn1 sv_has wh vxsn2
1961sv_fail vrc6 vtsnip
1962end
1963if not sv_has wh vxgl
1964sv_fail vrc6 vtgl
1965end
1966end
1967fn sv_c6md p ulong to void
1968wm = sv_mdpath p
1969sv_proot
1970sv_pva add sv_off wm 1 sub sv_n wm 1
1971sv_ctxp
1972wd = sv_load
1973if eq wd 0
1974sv_fail vrc6 vtmdm
1975else
1976if not and sv_starts wd vxfm and sv_has wd vxcu sv_has wd vxsms
1977sv_fail vrc6 vtmdm
1978end
1979end
1980sv_drop wm
1981if gt sv_n p 1
1982sv_proot
1983sv_pva add sv_off p 1 sub sv_n p 1
1984sv_padd vxtmd
1985sv_ctxp
1986if not sv_exists
1987sv_fail vrc6 vtmdd
1988end
1989end
1990end
1991note sv_c6ld: the first `<script type="application/ld+json">` block parses as JSON whose @graph is an
1992note array of at least four nodes (json.om sj_loadat reads exactly that slice of the page file).
1993fn sv_c6ld wh ulong to void
1994wa = sv_find wh vxldo 0
1995if eq wa VNONE
1996sv_fail vrc6 vtld
1997ret
1998end
1999wa = add wa len vxldo
2000wb = sv_find wh vxsce wa
2001if eq wb VNONE
2002sv_fail vrc6 vtld
2003ret
2004end
2005wp = new uchar 4352 0
2006for wj ulong get vpn 0
2007put wp wj get vpath wj
2008end
2009wr = sj_loadat view part wp 0 get vpn 0 wa sub wb wa
2010wg = ulong 0
2011if eq sj_kind wr 1
2012wg = sj_find wr vxgraph
2013end
2014if or ne sj_kind wg 2 lt sj_len wg 4
2015sv_fail vrc6 vtldg
2016end
2017end
2018fn sv_c78 to void
2019for wk ulong sv_tcount vxmach7
2020wa = sv_tat vxmach7 wk
2021sv_prel part vxmach7 wa sv_tlen vxmach7 wa
2022if not sv_exists
2023sv_failt vrc7 vtmach part vxmach7 wa sv_tlen vxmach7 wa
2024end
2025end
2026for wk ulong sv_tcount vxdash8
2027wa = sv_tat vxdash8 wk
2028sv_prel part vxdash8 wa sv_tlen vxdash8 wa
2029ws = sv_load
2030if eq ws 0
2031sv_failt vrc8 vtnf part vxdash8 wa sv_tlen vxdash8 wa
2032else
2033if sv_dash ws
2034sv_failt vrc8 vtdsh part vxdash8 wa sv_tlen vxdash8 wa
2035end
2036sv_drop ws
2037end
2038end
2039end
2040fn sv_cseo to void
2041sv_c3
2042sv_c4
2043sv_c5
2044wsm = sv_loadrel vfsmap
2045if eq wsm 0
2046ret
2047end
2048wll = sv_loadrel vfllms
2049if eq wll 0
2050sv_drop wsm
2051ret
2052end
2053for wk ulong sv_tcount vpages
2054wp = sv_snew
2055wa = sv_tat vpages wk
2056sv_pusht part vpages wa sv_tlen vpages wa
2057sv_c6 wp wsm wll
2058sv_drop wp
2059end
2060sv_drop wsm
2061sv_c78
2062end
2063
2064note ---------------------------------------------------------------- D4 data/pages.json against the registry
2065fn sv_nodeis node ulong s ulong to bool
2066if ne sj_size node sv_n s
2067ret false
2068end
2069for wj ulong sv_n s
2070if ne sj_byte node wj sv_b s wj
2071ret false
2072end
2073end
2074ret true
2075end
2076fn sv_regset n ulong to void
2077for wi ulong n
2078for wj ulong wi
2079if sj_same get vseen wj get vseen wi
2080sv_failt vrd4 vtixd vtpgm
2081end
2082end
2083ws = sv_jsl get vseen wi
2084if not sv_inreg ws 0 sv_n ws
2085sv_failx vrd4 vtpgm sv_off ws sv_n ws
2086end
2087sv_drop ws
2088end
2089for wk ulong sv_regn
2090ws = sv_snew
2091sv_rgpush wk
2092wf = false
2093for wi ulong n
2094if sv_nodeis get vseen wi ws
2095wf = true
2096end
2097end
2098if not wf
2099sv_failx vrd4 vtpgm sv_off ws sv_n ws
2100end
2101sv_drop ws
2102end
2103end