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