CodeQL / Improper code sanitization
Code construction depends on an improperly sanitized value.
Source of www.aienos.com, served from my own hardware
Brought by drakestapleton
Code construction depends on an improperly sanitized value.
Code construction depends on an improperly sanitized value.
git checkout -b patch-c099acf4a4f3ccd0 7b749dfc2428b3d704f76485d8bb7c7b750d4baf curl -fsSL https://interplane.io/drakestapleton/aienos.com/patches/c099acf4a4f3ccd0.patch | git am
github-import 1
aien-dev/aienos.com
200
b91336f706a534182de085a2953379b92dc2141d
{"kind":"github-import","owner":"aien-dev","repo":"aienos.com","number":200,"url":"https://github.com/aien-dev/aienos.com/pull/200","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:36Z","metadata":"unavailable","state_derived":true}
diff --git a/.crumb b/.crumb index 87d132ac..2fefcc81 100644 --- a/.crumb +++ b/.crumb @@ -17,27 +17,81 @@ "generated": { "children": [ { - "digest": "bdb436a8f213ba5699ca0a3f1893219c23ffb25e80efd9a55b58bdacaed6fc60", + "digest": "14bbf10b06b9589d6d11e73a4c17ae3ab8945c4f46deedf11bb0c84d7928bf96", + "last_commit": "62b40b87", + "name": ".github", + "purpose": "GitHub automation configuration" + }, + { + "digest": "664467ae042aae083e64a0353998731047af448f5e8d5dd1815131db6fb43302", "last_commit": "62b40b87", "name": "crates", "purpose": "Native Rust website crates" }, { - "digest": "6050e51f48df85c42a6211c223f807fb3df373d0b6bfcf1b5e7ce44ee6380f9e", + "digest": "bb5b1f96cff14056a492f498929d784e8648a655c985da0d1ae96c580b47a2f0", + "last_commit": "0a2c6e43", + "name": "om/agora/tls", + "purpose": "Verbatim pinned Omega TLS 1.3 client units for verified Agora peer pulls" + }, + { + "digest": "b2255e3fb36241b5fe4a87f595ab384f559aaf4b6d04a62831ccfc3a7b9444da", + "last_commit": "22e46dbe", + "name": "om/allen-scene", + "purpose": "Native Allen scene reuse, Omega browser controller and independent frame oracle" + }, + { + "digest": "7e8d6412f116296354d537f1cf123c33f266e3ef74546b5862a579c077429176", + "last_commit": "0804a190", + "name": "om/alpha-page", + "purpose": "Seeded Omega alpha landing page and client, with pinned wizard source and real terminal capture" + }, + { + "digest": "c4e1b4fdfa83e5b9685aab9883ee681e3f5c1042baf104601afd85712e17b45c", + "last_commit": "a9c5dbbc", + "name": "om/hive-render", + "purpose": "Seeded Omega edge rendering of validated canonical Hive JSON with fail-closed escaping and deter" + }, + { + "digest": "679153341779296d8c4d44f67d95e31e66dcb182a966817e280a37eec60cc743", + "last_commit": "21c485cd", + "name": "om/omega-reference", + "purpose": "Seeded Omega generator of /omega/reference/ from a pinned, hash-recorded omega-harness vendor tr" + }, + { + "digest": "17a80e35523a9a19f3bb7141a0d4e85efeb237e85fe970e4aa044bf7ef7266b0", + "last_commit": "6c0ca8df", + "name": "om/still-building-page", + "purpose": "Seeded Omega #StillBuilding campaign page and CSS with deterministic artifact checks" + }, + { + "digest": "4be63f429e62b1989d6d30278b73736799d98a502befadd033c19035ec3d168a", + "last_commit": "cd9efd98", + "name": "om/support-page", + "purpose": "Seeded Omega support page, shared invitation and CSS with deterministic artifact checks" + }, + { + "digest": "ce96f6fd66eb35bd3e08d2023dcdbc3b161ac4d85c1b28da277fa6231ce6597a", "last_commit": "62b40b87", "name": "public", "purpose": "Static public website assets" + }, + { + "digest": "b77336127516b827d0e7a19a214d6bd15665865f7fd2f2d4eb323c6eca9c3893", + "last_commit": "11313098", + "name": "scripts/allen/science", + "purpose": "Isolated compute-only Allen tools and versioned glass-pane protocol; temporary host transport ar" } ], - "children_root": "sha256:17efcb328ba07b8f8209b466fe34de5882518a2d58832da148436cb9fdf201ee", - "compiled_at": "2026-11-06T16:09:55Z", + "children_root": "sha256:f282874910c3174318ee66348fa4f359e0ab49ae256dce43483a25876a431d2f", + "compiled_at": "2026-11-06T18:13:07Z", "compiler": "crumb-compile/1", - "digest": "sha256:b93ce06c9213db498ddada7a6f5640300e8cc3c4a1d1a6d1a3410bef13309e79", + "digest": "sha256:f7dd6c37a3aec543d9398987dcfd8b039154d7bcd15232e8fa360c3f2c22adb7", "evidence_files": 6, "evidence_root": "sha256:7fde48972a09dd4b0f7206aca4e313cd02c8cd195ec602e3924e59246c016aa5", "files": 1461, - "generated_at_commit": "62b40b87bceae0056dc497a4d64397b3e15f859a", - "source_tree": "sha256:70f5a1b4ae37880aa4eac4ee257b1362eabd4648baed617cde5bb3f41da07e29" + "generated_at_commit": "7b749dfc2428b3d704f76485d8bb7c7b750d4baf", + "source_tree": "sha256:32d58bf4834cc96b66ed7c9992ff890b513bcc78871265523a06c40abe68d663" }, "progress": { "initial_edits": "Dashboard draft predates explicit Crumb reminder; subsequent integration is claimed and recorded.", diff --git a/AGENTS.md b/AGENTS.md index 84051a82..05a50c01 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -15,7 +15,7 @@ Shared rules: read https://www.aienos.com/agents/RULES.md first. This file adds `om/site/` is the deployed build: `pages.yml` compiles it with the pinned `om/site/omc` and publishes its output only after `build/verify --sources`, `build/verify dist …` and the independent Rust oracle (`site-builder verify dist`) pass. The `browser` job in `generated-allen.yml` serves that output and runs the old-sitemap HTTP crawl (`scripts/test-site-routes.py`) and real-browser acceptance (`scripts/test-site-browser.mjs`). Never weaken these gates; compilation alone is not release evidence. -The approved experience is Allen-first: `/` presents the native Allen scene, with no navigation bar. `/classic/` retains the full source-backed homepage, and all existing pages remain readable at their URLs. Classic pages use a quiet index, not a top navigation bar. The native first-visit intro is silent on load; sound starts only from the first tap or Enter. Skip and Escape remain available, returning visitors skip the intro, and a quiet replay control is retained. The remembered interface choice is separate from memory and X-pixel consent. +The approved experience (Drake, 2026-11-06: "Restore the readable website as the homepage") puts the readable site at `/`, with a responsive navigation header. `/classic/` retains its existing readable copy and all old URLs stay available. The native Aien experience and its optional introduction live at `/aien/`; no stored interface preference may redirect the homepage into that experience. The introduction stays silent until a visitor enters with sound; Skip and Escape remain silent. On `/engineer/`, phone navigation must expose every topic without horizontal panning. Keep both browser regressions covered. Remembered interface choices remain separate from memory and X-pixel consent. `om/site/pages.json` is the authored Omega page registry. `/data/pages.json` is the complete generated catalog, including imported engineer pages. The Rust oracle keeps its own explicit registry and validators: never make it trust the candidate registry as its expected result. The captured `om/site/old-sitemap.xml` is the pre-cutover URL set; never regenerate it from candidate output. diff --git a/crates/.crumb b/crates/.crumb index f30025fd..384904e2 100644 --- a/crates/.crumb +++ b/crates/.crumb @@ -7,21 +7,21 @@ "generated": { "children": [ { - "digest": "3c2e70eeef0c9c8dafd0aa3c086208562bf215ac8041e3f9695cf5fb5b7a6f11", - "last_commit": "da1720ca", + "digest": "94c1d7d8ecd627901f9166e9c0043a98e6543710cd2540e2dd9c9a96443e0c65", + "last_commit": "62b40b87", "name": "site-builder", "purpose": "Rust static site generator" } ], - "children_root": "sha256:d94b36d14f74ec438d209bd7951783685cdbf4fa99fb42df5651fbb2518f1d68", - "compiled_at": "2026-11-06T15:41:33Z", + "children_root": "sha256:f97a786dc75fb8294c9df575bea8fa33471b3cd285eebb75431a56582d275926", + "compiled_at": "2026-11-06T18:10:50Z", "compiler": "crumb-compile/1", - "digest": "sha256:bdb436a8f213ba5699ca0a3f1893219c23ffb25e80efd9a55b58bdacaed6fc60", + "digest": "sha256:664467ae042aae083e64a0353998731047af448f5e8d5dd1815131db6fb43302", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 78, - "generated_at_commit": "da1720ca72dae87cb20ca0219820287e40675d49", - "source_tree": "sha256:3befde440c38b0f0837533e1070cdd88513606428458eb8e43c81966c648b954" + "generated_at_commit": "7b749dfc2428b3d704f76485d8bb7c7b750d4baf", + "source_tree": "sha256:800c135d75c94db25a35cd99f379c8fd738cdca954ad4b5cd914c0f387bbd552" } }, "invariants": [ diff --git a/crates/site-builder/.crumb b/crates/site-builder/.crumb index 3cd2a565..037c5a65 100644 --- a/crates/site-builder/.crumb +++ b/crates/site-builder/.crumb @@ -7,8 +7,8 @@ "generated": { "children": [ { - "digest": "15e3d3690462544bed279d17c95fd8f350d307dd7bdaeee56cf4e1929c86f1c3", - "last_commit": "b624de3e", + "digest": "cb1d7b4ea699c42f0289599e72955d617092624b96b3933bad673b749cc2dc7d", + "last_commit": "62b40b87", "name": "src", "purpose": "Page assembly and site build verification" }, @@ -19,15 +19,15 @@ "purpose": "Reviewed HTML templates for source-backed pages" } ], - "children_root": "sha256:6b2bd49e3b03aebf0e79a1a790881fc41589079c9fdf2c4833620e0bd4702e29", - "compiled_at": "2026-11-06T15:41:33Z", + "children_root": "sha256:99b05eea084b382ae1532a6f55275f0ca2027d794afedb491c5802719230281f", + "compiled_at": "2026-11-06T18:10:50Z", "compiler": "crumb-compile/1", - "digest": "sha256:3c2e70eeef0c9c8dafd0aa3c086208562bf215ac8041e3f9695cf5fb5b7a6f11", + "digest": "sha256:94c1d7d8ecd627901f9166e9c0043a98e6543710cd2540e2dd9c9a96443e0c65", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 68, - "generated_at_commit": "da1720ca72dae87cb20ca0219820287e40675d49", - "source_tree": "sha256:671b1827918f2cc3a75954f25cc53179149fcf1441cf4b58e6d44ee76c52508c" + "generated_at_commit": "7b749dfc2428b3d704f76485d8bb7c7b750d4baf", + "source_tree": "sha256:2474d1af745fd60dfd38e0122e6046d86ec6df4b9027f7716d319cd3f2f31e32" } }, "invariants": [ diff --git a/crates/site-builder/src/.crumb b/crates/site-builder/src/.crumb index 63aa4c4c..1c63b0fb 100644 --- a/crates/site-builder/src/.crumb +++ b/crates/site-builder/src/.crumb @@ -11,20 +11,20 @@ "children": [ { "digest": "3802977f5740b41fecd4ccf0b574e17f38b6dae8320052e6af98c74b5ef22d1a", - "last_commit": "7902fc2f", + "last_commit": "62b40b87", "name": "components", "purpose": "Reusable page content and navigation" } ], "children_root": "sha256:84a3140b7abd4e49e05e5bbb279690fdb66bc489c46f9949b785c29a8f235fd1", - "compiled_at": "2026-11-06T15:10:17Z", + "compiled_at": "2026-11-06T18:10:50Z", "compiler": "crumb-compile/1", - "digest": "sha256:15e3d3690462544bed279d17c95fd8f350d307dd7bdaeee56cf4e1929c86f1c3", + "digest": "sha256:cb1d7b4ea699c42f0289599e72955d617092624b96b3933bad673b749cc2dc7d", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 58, - "generated_at_commit": "7902fc2fa080002d26ba6b347d3c62e4ec13326f", - "source_tree": "sha256:051fefcd426ed324c68d2a58ead0ba832025e2daa3945bc9119234646b8a01c6" + "generated_at_commit": "7b749dfc2428b3d704f76485d8bb7c7b750d4baf", + "source_tree": "sha256:efc9971b6320a9aefad96f698b9df27d6ef0ff34051186c6952f47f3ccb40728" } }, "invariants": [ diff --git a/crates/site-builder/src/oracle.rs b/crates/site-builder/src/oracle.rs index 3fe7345c..5e56e252 100644 --- a/crates/site-builder/src/oracle.rs +++ b/crates/site-builder/src/oracle.rs @@ -715,11 +715,11 @@ pub fn verify_data(dist: &Path) -> Result<(), String> { Ok(()) } -/// The root is Allen's native front door. Real elements (not text in a +/// Aien's own page retains the native introduction. Real elements (not text in a /// comment or a script) carry `id="allen"` and `id="site-door"`; a reader /// with scripts reaches a link to the classic site, and so does a reader /// without them, through a `<noscript>` link of its own. -pub fn check_root(html: &str) -> Result<(), String> { +pub fn check_aien_intro(html: &str) -> Result<(), String> { for id in ["allen", "site-door"] { if !has_id(html, id) { return Err(format!("the root has no element with id=\"{id}\"")); @@ -735,6 +735,25 @@ pub fn check_root(html: &str) -> Result<(), String> { Ok(()) } +/// The homepage is readable without entering the animated Aien experience. +pub fn check_root(html: &str) -> Result<(), String> { + let visible = reachable(html); + for id in ["main-content", "root", "machines", "speed", "follow"] { + if !has_id(&visible, id) { + return Err(format!("readable homepage is missing {id}")); + } + } + if has_id(html, "site-door") || has_id(html, "allen") { + return Err("the homepage must not contain the Aien entrance".into()); + } + for path in ["/aien/", "/engineer/", "/machine/", "/evidence/"] { + if !anchors(&visible).iter().any(|(h, t)| h == path && !t.is_empty()) { + return Err(format!("homepage must link {path}")); + } + } + Ok(()) +} + /// Every root-relative script source and stylesheet that `html` loads, in /// real markup (comments skipped; script and style bodies are not markup). pub fn page_assets(html: &str) -> Vec<String> { @@ -821,6 +840,8 @@ pub fn verify(dist: &Path) { check_sitemap(&sitemap).unwrap_or_else(|e| panic!("{e}")); let root = fs::read_to_string(dist.join("index.html")).unwrap_or_else(|e| panic!("read index.html: {e}")); check_root(&root).unwrap_or_else(|e| panic!("index.html: {e}")); + let aien = fs::read_to_string(dist.join("aien/index.html")).expect("Aien page"); + check_aien_intro(&aien).unwrap_or_else(|e| panic!("aien/index.html: {e}")); let assets = verify_assets(dist).unwrap_or_else(|e| panic!("{e}")); verify_data(dist).unwrap_or_else(|e| panic!("{e}")); println!(" Registry, heads and translation pairs: {n} pages; {assets} script and stylesheet loads resolve; published data files validated"); @@ -933,7 +954,7 @@ mod tests { #[test] fn the_root_door_passes() { - check_root(ROOT).expect("real Allen and door, classic linked with and without scripts"); + check_aien_intro(ROOT).expect("real Allen and door, classic linked with and without scripts"); } #[test] @@ -952,8 +973,19 @@ mod tests { ("noscript route without text", ROOT.replace("Read the classic site", "")), ]; for (what, html) in cases { - assert!(check_root(&html).is_err(), "must reject: {what}"); + assert!(check_aien_intro(&html).is_err(), "must reject: {what}"); + } + } + + #[test] + fn readable_home_rejects_hidden_content_and_the_old_entrance() { + let home = r#"<main id="main-content"><div id="root"><section id="machines"></section><section id="speed"></section><section id="follow"></section><a href="/aien/">Aien</a><a href="/engineer/">Engineer</a><a href="/machine/">Machine</a><a href="/evidence/">Evidence</a></div></main>"#; + check_root(home).unwrap(); + for id in ["main-content", "root", "machines", "speed", "follow"] { + assert!(check_root(&home.replace(&format!("id=\"{id}\""), "hidden")).is_err()); } + assert!(check_root(&format!("{home}<div id=\"site-door\"></div>")).is_err()); + assert!(check_root(&home.replace("href=\"/engineer/\"", "href=\"/engineer/\" hidden")).is_err()); } #[test] diff --git a/om/site/chrome.om b/om/site/chrome.om index 2db9142b..587e9383 100644 --- a/om/site/chrome.om +++ b/om/site/chrome.om @@ -1,4 +1,5 @@ -note Aien-first chrome. No top navigation bar. Classic documents remain complete readable pages. +note Readable homepage restored at Drake's request, 2026-11-06. Aien stays at /aien/. +note Readable site chrome. The homepage has navigation; the optional Aien scene has quiet controls. note sc_begin stores metadata; sc_route emits head and opens main; sc_end finishes the document. note Core sc_extrahead owns registry-aware JSONLD, hreflang, citations and route assets. note Native root and Aien scripts come from Core. The consent dialog mirrors main's allen_intro.rs dialog(). @@ -7,6 +8,8 @@ global scdesc uchar 8192 global sclens ulong 2 global scstate uchar 2 global scarea ulong 1 +text scnav "<header class=\"aien-header\"><div class=\"aien-header-inner\"><a class=\"aien-brand\" href=\"/\" aria-label=\"AienOS: home\"><span class=\"aien-brand-copy\"><span class=\"aien-brand-name\">AienOS</span><span class=\"aien-brand-tag\">PERSISTENT MACHINE INTELLIGENCE</span></span></a><nav class=\"aien-nav aien-nav-bar\" aria-label=\"Primary navigation\"><ul class=\"aien-nav-primary\"><li><a class=\"aien-nav-link\" href=\"/machine/\">The Machine</a></li><li><a class=\"aien-nav-link\" href=\"/turing/\">The Turing</a></li><li><a class=\"aien-nav-link\" href=\"/experiments/\">Experiments</a></li><li><a class=\"aien-nav-link\" href=\"/discovery/\">Scientific Discovery</a></li><li><a class=\"aien-nav-link\" href=\"/evidence/\">Evidence</a></li><li><a class=\"aien-nav-link\" href=\"/philosophy/\">Philosophy</a></li></ul><details class=\"aien-nav-more\"><summary class=\"aien-nav-more-button\"><span class=\"aien-nav-more-wide\">More</span><span class=\"aien-nav-more-narrow\">Menu</span></summary><div class=\"aien-nav-panel\"><ul class=\"aien-nav-sections\"><li><a class=\"aien-nav-minor\" href=\"/machine/\">The Machine</a></li><li><a class=\"aien-nav-minor\" href=\"/turing/\">The Turing</a></li><li><a class=\"aien-nav-minor\" href=\"/experiments/\">Experiments</a></li><li><a class=\"aien-nav-minor\" href=\"/discovery/\">Scientific Discovery</a></li><li><a class=\"aien-nav-minor\" href=\"/evidence/\">Evidence</a></li><li><a class=\"aien-nav-minor\" href=\"/philosophy/\">Philosophy</a></li></ul><ul class=\"aien-nav-secondary\"><li><a href=\"https://x.com/mdrakestapleton\">X @mdrakestapleton</a></li><li><a href=\"/contact/\">Contact</a></li><li><a class=\"aien-nav-minor\" href=\"/engineer/\">Meet the Engineer</a></li><li><a class=\"aien-nav-minor\" href=\"/aien/\">Meet Aien</a></li><li><a class=\"aien-nav-minor\" href=\"/alpha/\">Sovereign Intelligence</a></li><li><a class=\"aien-nav-minor\" href=\"/omega/\">Omega</a></li><li><a class=\"aien-nav-minor\" href=\"/cudaplusplus/\">CUDA++</a></li><li><a class=\"aien-nav-minor\" href=\"/lab/\">Lab</a></li><li><a class=\"aien-nav-minor\" href=\"/start/\">Start here</a></li><li><a class=\"aien-nav-minor\" href=\"/agora/\">Agora</a></li><li><a class=\"aien-nav-minor\" href=\"/agents/\">Agents</a></li><li><a class=\"aien-nav-minor\" href=\"/now/\">Now</a></li><li><a class=\"aien-nav-minor\" href=\"/progress/\">Progress</a></li><li><a class=\"aien-nav-minor\" href=\"/blog/\">Blog</a></li><li><a class=\"aien-nav-minor\" href=\"https://github.com/aien-dev\">GitHub</a></li></ul></div></details><a class=\"aien-support-button\" href=\"/support/\">Support</a></nav></div></header>" +text scnavss "<link rel=\"stylesheet\" href=\"/assets/site-nav.css\"><link rel=\"stylesheet\" href=\"/assets/home-restored.css\">" text scroot "/" text sclass "/classic/" text scallen "/aien/" @@ -49,11 +52,11 @@ text scclient "<script defer src=\"/js/site.js\"></script>" text scbody "</head><body class=\"site\" data-site-area=\"" text scendat "\">" text scskip "<a class=\"skip-link\" href=\"#main-content\">Skip to content</a>" -text scutil0 "<div class=\"site-utility\"><a href=\"https://x.com/mdrakestapleton\" rel=\"noopener noreferrer\">Follow me on X</a><a href=\"/contact/\">Contact</a><a class=\"aien-support-button\" href=\"/support/\">Support</a>" +text scutil0 "<div class=\"site-utility\"><a href=\"/\">Home</a><a href=\"https://x.com/mdrakestapleton\" rel=\"noopener noreferrer\">Follow me on X</a><a href=\"/contact/\">Contact</a><a class=\"aien-support-button\" href=\"/support/\">Support</a>" text scutnat "<a href=\"/classic/\" data-site-mode=\"classic\">Classic site</a>" -text scutcls "<a href=\"/\" data-site-mode=\"allen\">Switch to Aien</a>" +text scutcls "<a href=\"/aien/\" data-site-mode=\"allen\">Switch to Aien</a>" text scutile "</div>" -text scind0 "<details class=\"site-index\"><summary>Site index</summary><div class=\"site-index-links\"><a href=\"/classic/\">SI</a><a href=\"/omega/\">Omega</a><a href=\"/machine/\">Machine</a><a href=\"/discoveries/\">Discoveries</a><a href=\"/learn/\">Learn</a><a href=\"/aien/\">Aien</a><a href=\"/glossary/\">Glossary</a></div><p class=\"aien-reach-foot\"><a href=\"https://x.com/mdrakestapleton\">X @mdrakestapleton</a> <a href=\"mailto:drake@aienos.com\">drake@aienos.com</a> <a href=\"/\" data-site-mode=\"allen\">Aien home</a></p><p><a href=\"/#site-door\" data-site-replay data-site-mode=\"allen\">Replay introduction</a> · <a href=\"/privacy/\">Privacy & choices</a></p></details>" +text scind0 "<details class=\"site-index\"><summary>Site index</summary><div class=\"site-index-links\"><a href=\"/classic/\">SI</a><a href=\"/omega/\">Omega</a><a href=\"/machine/\">Machine</a><a href=\"/discoveries/\">Discoveries</a><a href=\"/learn/\">Learn</a><a href=\"/aien/\">Aien</a><a href=\"/glossary/\">Glossary</a></div><p class=\"aien-reach-foot\"><a href=\"https://x.com/mdrakestapleton\">X @mdrakestapleton</a> <a href=\"mailto:drake@aienos.com\">drake@aienos.com</a> <a href=\"/aien/\" data-site-mode=\"allen\">Aien home</a></p><p><a href=\"/aien/#site-door\" data-site-replay data-site-mode=\"allen\">Replay introduction</a> · <a href=\"/privacy/\">Privacy & choices</a></p></details>" text sccrumb "<div class=\"breadcrumbs container\" aria-label=\"Page context\"><a href=\"/classic/\">SI</a> / <a href=\"" text sccruma "\">" text sccrumbb "</a> / <span>" @@ -63,7 +66,7 @@ text scnmain "<main id=\"main-content\" class=\"site-native\" tabindex=\"-1\">" text schmain "<main id=\"main-content\" class=\"site-native\" data-home-door=\"true\" tabindex=\"-1\">" text scclose "</main>" text scfoot0 "<footer class=\"aien-footer\"><div class=\"container\"><div class=\"footer-intro\"><a class=\"site-brand\" href=\"/classic/\">Sovereign Intelligence</a><p>Built on AienOS. Made by Drake Stapleton.</p><p class=\"aien-reach-foot\"><a href=\"https://x.com/mdrakestapleton\" rel=\"noopener noreferrer\">X @mdrakestapleton</a> <a href=\"mailto:drake@aienos.com\">drake@aienos.com</a> <a href=\"/aien/\">Speak to Aien</a> <a href=\"https://github.com/aien-dev\">GitHub</a></p></div>" -text scfoot1 "<div class=\"footer-links\"><a href=\"/turing/\">The Turing</a><a href=\"/experiments/\">Experiments</a><a href=\"/research/\">Research</a><a href=\"/evidence/\">Evidence</a><a href=\"/research/status/\">Research status</a><a href=\"/philosophy/\">Philosophy</a><a href=\"/post-llm-case/\">The Post-LLM Case</a><a href=\"/start/\">Start here</a><a href=\"/progress/\">Progress</a><a href=\"/blog/\">Blog</a><a href=\"/glossary/\">Glossary</a><a href=\"/contact/\">Contact</a><a href=\"/agents/\">Agent instructions</a><a href=\"https://interplane.io/\">Interplane</a><a href=\"https://www.drakestapleton.com\">Drake Stapleton</a></div><p class=\"aien-footer-machines\">For machines: <a href=\"/data/index.json\">data index</a> · <a href=\"/llms.txt\">llms.txt</a> · <a href=\"/llms-full.txt\">full text</a> · <a href=\"/sitemap.md\">sitemap.md</a> · <a href=\"/AGENTS.md\">AGENTS.md</a> · <a href=\"/feed.xml\">feed</a> · <a href=\"/now/feed.xml\">ledger feed</a></p><p class=\"footer-quiet\"><a href=\"/#site-door\" data-site-replay data-site-mode=\"allen\">Replay the introduction</a> <a href=\"/\" data-site-mode=\"allen\">Switch to Aien</a> <a href=\"/privacy/\">Privacy & choices</a> <a href=\"/licensing/\">Apache-2.0 WITH LLVM-exception</a></p><p class=\"muted\">Aien © 2026. No outside fonts. X tracking and Aien memory each need their own choice. Reading does not require either.</p></div></footer>" +text scfoot1 "<div class=\"footer-links\"><a href=\"/turing/\">The Turing</a><a href=\"/experiments/\">Experiments</a><a href=\"/research/\">Research</a><a href=\"/evidence/\">Evidence</a><a href=\"/research/status/\">Research status</a><a href=\"/philosophy/\">Philosophy</a><a href=\"/post-llm-case/\">The Post-LLM Case</a><a href=\"/start/\">Start here</a><a href=\"/progress/\">Progress</a><a href=\"/blog/\">Blog</a><a href=\"/glossary/\">Glossary</a><a href=\"/contact/\">Contact</a><a href=\"/agents/\">Agent instructions</a><a href=\"https://interplane.io/\">Interplane</a><a href=\"https://www.drakestapleton.com\">Drake Stapleton</a></div><p class=\"aien-footer-machines\">For machines: <a href=\"/data/index.json\">data index</a> · <a href=\"/llms.txt\">llms.txt</a> · <a href=\"/llms-full.txt\">full text</a> · <a href=\"/sitemap.md\">sitemap.md</a> · <a href=\"/AGENTS.md\">AGENTS.md</a> · <a href=\"/feed.xml\">feed</a> · <a href=\"/now/feed.xml\">ledger feed</a></p><p class=\"footer-quiet\"><a href=\"/aien/#site-door\" data-site-replay data-site-mode=\"allen\">Replay the introduction</a> <a href=\"/aien/\" data-site-mode=\"allen\">Switch to Aien</a> <a href=\"/privacy/\">Privacy & choices</a> <a href=\"/licensing/\">Apache-2.0 WITH LLVM-exception</a></p><p class=\"muted\">Aien © 2026. No outside fonts. X tracking and Aien memory each need their own choice. Reading does not require either.</p></div></footer>" text sccons "<dialog id=\"aien-allen-intro\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"allen-intro-title\" aria-describedby=\"allen-intro-intro allen-intro-consent\"><h2 id=\"allen-intro-title\">Say hello to Aien?</h2><p id=\"allen-intro-intro\">Hey, you just clicked an ad. I just want you to know that if you didn't intend to click an ad, that's cool. Just click No and this popup will close. Nothing will be tracked by my X pixel. Your browser may not let me close a page I didn't open.</p><p id=\"allen-intro-consent\">But if you did want to see it, do you mind if I track you and know you were here? Aien is my AI. Introduce yourself to Aien by saying hello below. Saying hello means you consent to the X conversion pixel, so X receives information about your visit and helps me reach the right people. This doesn't open a chat or publish your identity.</p><div class=\"allen-intro-actions\"><button id=\"allen-intro-no\" type=\"button\" autofocus>No</button><button id=\"allen-intro-yes\" type=\"button\">Introduce yourself to Aien</button></div><p id=\"allen-intro-memory\">Saying hello covers only the X pixel. Whether Aien remembers you is a separate choice that only the chat asks, and saying hello never makes it for you: <a href=\"/aien/?mode=remember\">Tell Aien my name</a> or <a href=\"/aien/?mode=anonymous\">chat with Aien anonymously</a>.</p><details id=\"allen-intro-who\" class=\"allen-intro-who\"><summary>Who can see me right now?</summary><p>This panel reads only this page and your browser. It sends nothing and stores nothing.</p><h3>Outside sites this page has loaded: <span id=\"allen-intro-tracker-count\">checking</span></h3><ul id=\"allen-intro-trackers\"></ul><p id=\"allen-intro-trackers-none\" hidden>None. Only this site's own files have loaded on this page.</p><h3>What your browser tells every website</h3><dl id=\"allen-intro-facts\"></dl><p>Any site you visit can read these. I don't keep them. Your IP address and browser name also reach this site's hosting providers with every request, as on any site.</p><h3>What this page can't see</h3><p>Trackers on other sites, in other tabs or inside embedded frames, tracking by your internet provider or network, and your browser extensions. These tools check more:</p><ul><li><a href=\"https://coveryourtracks.eff.org/\" rel=\"noopener noreferrer\">EFF Cover Your Tracks</a></li><li><a href=\"https://themarkup.org/blacklight\" rel=\"noopener noreferrer\">The Markup's Blacklight</a></li></ul></details><p><a href=\"/privacy/\">Privacy, what X receives, and your choice</a></p></dialog>" text sccontct "/contact/" text scalph "/alpha/" @@ -201,7 +204,7 @@ put scstate 1 0 if sr_equal route scroot put scstate 0 1 end -if or sr_equal route scroot sr_equal route scallen +if sr_equal route scallen put scstate 1 1 end put scarea 0 1 @@ -223,6 +226,9 @@ sr_raw sctokens else sr_raw scstyles end +if eq get scstate 0 1 +sr_raw scnavss +end sr_raw scclient sr_raw scconsjs sc_extrahead route @@ -233,6 +239,9 @@ sr_raw scbody sr_esc area sr_raw scendat sr_raw scskip +if eq get scstate 0 1 +sr_raw scnav +else sr_raw scutil0 if eq get scstate 1 1 sr_raw scutnat @@ -240,14 +249,12 @@ else sr_raw scutcls end sr_raw scutile +end if eq get scstate 1 1 sr_raw scind0 -if eq get scstate 0 1 sr_raw schmain else -sr_raw scnmain -end -else +if ne get scstate 0 1 sr_raw sccrumb sc_areaurl sr_raw sccruma @@ -255,6 +262,7 @@ sr_esc area sr_raw sccrumbb sc_title sr_raw sccrumbe +end sr_raw scmain end end diff --git a/om/site/client.om b/om/site/client.om index 13cc2d5d..46868f90 100644 --- a/om/site/client.om +++ b/om/site/client.om @@ -1,8 +1,8 @@ note Aien-first progressive experience. No navigation bar, synthetic chat, tracking request or automatic relay. note Scene readiness, the opening and the chirp belong to aien-universe.js (data-sky, data-formed, #aien-replay); transport to AllenChat. note Draft interface agreed with AllenChat: /aien/#draft=<encoded text>, max 2000 characters, never auto-send. -text sjsite0 "/* Generated by om/site/client.om. Do not edit the generated asset. */\n(() => {\n'use strict';\nconst byId = id => document.getElementById(id);\nconst reduced = matchMedia('(prefers-reduced-motion: reduce)');\nfunction loadLocal(key) {\n for (const kind of ['localStorage', 'sessionStorage']) {\n try { const value = window[kind].getItem(key); if (value !== null) return value; } catch (_) {}\n }\n return null;\n}\nfunction saveLocal(key, value) {\n let saved = false;\n for (const kind of ['localStorage', 'sessionStorage']) {\n try { window[kind].setItem(key, value); saved = true; } catch (_) {}\n }\n return saved;\n}\nfunction eraseLocal(key) {\n for (const kind of ['localStorage', 'sessionStorage']) { try { window[kind].removeItem(key); } catch (_) {} }\n}\nfunction navigation() {\n document.querySelectorAll('[data-site-mode]').forEach(link => {\n link.addEventListener('click', () => {\n const mode = link.dataset.siteMode;\n if (mode === 'allen' || mode === 'classic') saveLocal('aienos-site-mode', mode);\n });\n });\n document.querySelectorAll('.site-index').forEach(index => {\n index.addEventListener('keydown', event => {\n if (event.key === 'Escape' && index.open) { event.preventDefault(); index.open = false; index.querySelector('summary').focus(); }\n });\n });\n}\nfunction legacyAnchor() {\n if (location.pathname !== '/') return false;\n const named = new Set(['top','home-lead','loop-title','story','machines','machines-title','speed','speed-title','evidence','architecture','research','turing-game','tg-round','tg-stream','tg-zero','tg-one','tg-score','tg-reset','tg-msg','terminal','terminal-clear-btn','terminal-output','terminal-form','terminal-input','status','live','follow','follow-reach']);\n const id = location.hash.slice(1);\n if (!named.has(id) && !/^(machine|speed)-[a-z0-9-]+$/.test(id)) return false;\n location.replace('/classic/' + location.hash);\n return true;\n}\nif (legacyAnchor()) return;\n" -text sjsite1 "function homeDoor() {\n const door = byId('site-door');\n if (!door) return;\n const enter = byId('site-door-enter'), skip = byId('site-door-skip');\n const status = byId('site-door-status'), choice = byId('site-mode-choice');\n const stay = byId('site-stay-allen'), welcome = byId('site-welcome-status');\n const root = byId('allen'), opening = byId('aien-replay');\n const key = 'aienos-intro-seen', modeKey = 'aienos-site-mode';\n const replay = location.hash === '#site-door';\n const savedMode = loadLocal(modeKey);\n if (savedMode === 'classic' && !location.hash) { location.replace('/classic/'); return; }\n let ready = false, done = false, playing = false, returnFocus = null;\n // aien-universe.js owns the sky (#aien-sky) and the chirp: it marks\n // #allen data-sky on or off once the native scene loads, data-formed yes when\n // the opening ends, and its replay control plays the opening from the tube\n // with sound armed by the activating click.\n function activate() {\n if (!choice.hidden) stay.focus({preventScroll:true});\n else if (returnFocus && returnFocus.isConnected) returnFocus.focus({preventScroll:true});\n returnFocus = null;\n }\n function finish(skipped = false, message = '') {\n if (done) return;\n done = true; playing = false;\n if (skipped && window.AllenAudio) window.AllenAudio.stop();\n saveLocal(key, '1'); door.hidden = true;\n const selected = loadLocal(modeKey);\n choice.hidden = selected === 'allen' || selected === 'classic';\n welcome.textContent = message;\n welcome.hidden = !message;\n activate();\n }\n function unavailable() {\n ready = false; enter.disabled = true;\n finish(true, 'The opening is unavailable. Aien and the complete classic site are still here.');\n }\n function offer() {\n if (ready || !root) return;\n if (root.dataset.sky === 'off' || !opening) { unavailable(); return; }\n if (root.dataset.sky !== 'on') return;\n if (!window.AllenAudio) { unavailable(); return; }\n ready = true;\n if (!done) { enter.disabled = false; status.textContent = 'An optional native introduction. Enter with sound, or skip.'; }\n }\n function reset() {\n done = false; playing = false;\n welcome.hidden = true; choice.hidden = true; door.hidden = false;\n door.dataset.playing = 'false'; enter.hidden = false; enter.disabled = !ready;\n status.textContent = ready ? 'An optional native introduction. Enter with sound, or skip.' : 'Aien is loading. Skip is always available.';\n if (reduced.matches) finish(true, 'Reduced motion is on. Welcome to Aien.');\n }\n enter.addEventListener('click', () => {\n if (!ready || done || playing || reduced.matches) return;\n playing = true; door.dataset.playing = 'true'; enter.hidden = true;\n status.textContent = 'Skip or press Escape at any time.'; skip.focus({preventScroll:true});\n // Still inside this click: the replay arms the chirp, so audio starts here and nowhere else.\n opening.click();\n });\n skip.addEventListener('click', event => { event.preventDefault(); finish(true); });\n stay.addEventListener('click', () => {\n saveLocal(modeKey, 'allen'); choice.hidden = true; welcome.hidden = true;\n activate();\n });\n // The universe arms sound on the first pointer or key press anywhere. A press\n // on the door's own controls is the door's to answer, so it stops at window.\n for (const kind of ['pointerdown', 'keydown']) {\n window.addEventListener(kind, event => {\n if (event.key === 'Escape' && !done) {\n event.preventDefault(); event.stopImmediatePropagation(); finish(true);\n } else if (event.key === 'Escape' && !choice.hidden) {\n event.preventDefault(); choice.hidden = true; activate();\n } else if (!door.hidden && door.contains(event.target)) event.stopPropagation();\n }, true);\n }\n document.querySelectorAll('[data-site-replay]').forEach(link => {\n link.addEventListener('click', event => {\n if (event.button || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;\n event.preventDefault(); returnFocus = link; reset(); skip.focus({preventScroll:true});\n });\n });\n if (root) new MutationObserver(() => {\n offer();\n if (playing && root.dataset.formed === 'yes') finish();\n }).observe(root, {attributes: true, attributeFilter: ['data-sky', 'data-formed']});\n reduced.addEventListener('change', () => {\n if (reduced.matches && !done) finish(true, 'Reduced motion is on. Welcome to Aien.');\n });\n window.addEventListener('pagehide', () => { if (window.AllenAudio) window.AllenAudio.stop(); });\n reset(); offer();\n if (!replay && loadLocal(key) === '1' && !done) finish(true, 'Welcome back. Aien is here.');\n}\n" +text sjsite0 "/* Generated by om/site/client.om. Do not edit the generated asset. */\n(() => {\n'use strict';\nconst byId = id => document.getElementById(id);\nconst reduced = matchMedia('(prefers-reduced-motion: reduce)');\nfunction loadLocal(key) {\n for (const kind of ['localStorage', 'sessionStorage']) {\n try { const value = window[kind].getItem(key); if (value !== null) return value; } catch (_) {}\n }\n return null;\n}\nfunction saveLocal(key, value) {\n let saved = false;\n for (const kind of ['localStorage', 'sessionStorage']) {\n try { window[kind].setItem(key, value); saved = true; } catch (_) {}\n }\n return saved;\n}\nfunction eraseLocal(key) {\n for (const kind of ['localStorage', 'sessionStorage']) { try { window[kind].removeItem(key); } catch (_) {} }\n}\nfunction navigation() {\n document.querySelectorAll('[data-site-mode]').forEach(link => {\n link.addEventListener('click', () => {\n const mode = link.dataset.siteMode;\n if (mode === 'allen' || mode === 'classic') saveLocal('aienos-site-mode', mode);\n });\n });\n document.querySelectorAll('.site-index').forEach(index => {\n index.addEventListener('keydown', event => {\n if (event.key === 'Escape' && index.open) { event.preventDefault(); index.open = false; index.querySelector('summary').focus(); }\n });\n });\n}\n" +text sjsite1 "function homeDoor() {\n const door = byId('site-door');\n if (!door) return;\n const enter = byId('site-door-enter'), skip = byId('site-door-skip');\n const status = byId('site-door-status'), choice = byId('site-mode-choice');\n const stay = byId('site-stay-allen'), welcome = byId('site-welcome-status');\n const root = byId('allen'), opening = byId('aien-replay');\n const key = 'aienos-intro-seen', modeKey = 'aienos-site-mode';\n const replay = location.hash === '#site-door';\n const savedMode = loadLocal(modeKey);\n // Visiting /aien/ is an explicit choice, regardless of an old homepage preference.\n let ready = false, done = false, playing = false, returnFocus = null;\n // aien-universe.js owns the sky (#aien-sky) and the chirp: it marks\n // #allen data-sky on or off once the native scene loads, data-formed yes when\n // the opening ends, and its replay control plays the opening from the tube\n // with sound armed by the activating click.\n function activate() {\n if (!choice.hidden) stay.focus({preventScroll:true});\n else if (returnFocus && returnFocus.isConnected) returnFocus.focus({preventScroll:true});\n returnFocus = null;\n }\n function finish(skipped = false, message = '') {\n if (done) return;\n done = true; playing = false;\n if (skipped && window.AllenAudio) window.AllenAudio.stop();\n saveLocal(key, '1'); door.hidden = true;\n const selected = loadLocal(modeKey);\n choice.hidden = selected === 'allen' || selected === 'classic';\n welcome.textContent = message;\n welcome.hidden = !message;\n activate();\n }\n function unavailable() {\n ready = false; enter.disabled = true;\n finish(true, 'The opening is unavailable. Aien and the complete classic site are still here.');\n }\n function offer() {\n if (ready || !root) return;\n if (root.dataset.sky === 'off' || !opening) { unavailable(); return; }\n if (root.dataset.sky !== 'on') return;\n if (!window.AllenAudio) { unavailable(); return; }\n ready = true;\n if (!done) { enter.disabled = false; status.textContent = 'An optional native introduction. Enter with sound, or skip.'; }\n }\n function reset() {\n done = false; playing = false;\n welcome.hidden = true; choice.hidden = true; door.hidden = false;\n door.dataset.playing = 'false'; enter.hidden = false; enter.disabled = !ready;\n status.textContent = ready ? 'An optional native introduction. Enter with sound, or skip.' : 'Aien is loading. Skip is always available.';\n if (reduced.matches) finish(true, 'Reduced motion is on. Welcome to Aien.');\n }\n enter.addEventListener('click', () => {\n if (!ready || done || playing || reduced.matches) return;\n playing = true; door.dataset.playing = 'true'; enter.hidden = true;\n status.textContent = 'Skip or press Escape at any time.'; skip.focus({preventScroll:true});\n // Still inside this click: the replay arms the chirp, so audio starts here and nowhere else.\n opening.click();\n });\n skip.addEventListener('click', event => { event.preventDefault(); finish(true); });\n stay.addEventListener('click', () => {\n saveLocal(modeKey, 'allen'); choice.hidden = true; welcome.hidden = true;\n activate();\n });\n // The universe arms sound on the first pointer or key press anywhere. A press\n // on the door's own controls is the door's to answer, so it stops at window.\n for (const kind of ['pointerdown', 'keydown']) {\n window.addEventListener(kind, event => {\n if (event.key === 'Escape' && !done) {\n event.preventDefault(); event.stopImmediatePropagation(); finish(true);\n } else if (event.key === 'Escape' && !choice.hidden) {\n event.preventDefault(); choice.hidden = true; activate();\n } else if (!door.hidden && door.contains(event.target)) event.stopPropagation();\n }, true);\n }\n document.querySelectorAll('[data-site-replay]').forEach(link => {\n link.addEventListener('click', event => {\n if (event.button || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;\n event.preventDefault(); returnFocus = link; reset(); skip.focus({preventScroll:true});\n });\n });\n if (root) new MutationObserver(() => {\n offer();\n if (playing && root.dataset.formed === 'yes') finish();\n }).observe(root, {attributes: true, attributeFilter: ['data-sky', 'data-formed']});\n reduced.addEventListener('change', () => {\n if (reduced.matches && !done) finish(true, 'Reduced motion is on. Welcome to Aien.');\n });\n window.addEventListener('pagehide', () => { if (window.AllenAudio) window.AllenAudio.stop(); });\n reset(); offer();\n if (!replay && loadLocal(key) === '1' && !done) finish(true, 'Welcome back. Aien is here.');\n}\n" text sjsite2 "function localTrail() {\n const panel = byId('site-trail');\n if (!panel) return;\n const enable = byId('site-trail-enable'), list = byId('site-trail-list');\n const status = byId('site-trail-status'), clear = byId('site-trail-clear');\n const report = byId('site-trail-report'), draft = byId('site-trail-draft');\n const message = byId('site-trail-message'), take = byId('site-trail-send');\n const key = 'aienos-local-trail';\n let pages = [], on = false, persistent = false;\n function validPage(row) {\n if (!row || typeof row.path !== 'string' || typeof row.title !== 'string') return false;\n try {\n const url = new URL(row.path, location.origin);\n return url.origin === location.origin && url.pathname === row.path && !url.search && !url.hash && row.path.length <= 256 && row.title.length <= 160;\n } catch (_) { return false; }\n }\n try {\n const state = JSON.parse(loadLocal(key) || 'null');\n if (state && state.on === true && Array.isArray(state.pages)) {\n on = true; pages = state.pages.filter(validPage).slice(-20); persistent = true;\n }\n } catch (_) {}\n function remember() {\n if (!on) return;\n const row = {path:location.pathname, title:(document.querySelector('main h1')?.textContent || document.title).trim().slice(0,160)};\n if (validPage(row)) { pages = pages.filter(item => item.path !== row.path); pages.push(row); pages = pages.slice(-20); }\n persistent = saveLocal(key, JSON.stringify({on:true,pages}));\n }\n function paint() {\n enable.checked = on; list.replaceChildren();\n for (const row of pages) {\n const li = document.createElement('li'), anchor = document.createElement('a');\n anchor.href = row.path; anchor.textContent = row.title;\n if (row.path === location.pathname) anchor.setAttribute('aria-current','page');\n li.append(anchor); list.append(li);\n }\n status.textContent = !on ? 'Trail is off. No visits are being saved.' : persistent ? 'Your trail is saved only in this browser. No trail data is sent to a server.' : 'Browser storage is unavailable. This trail lasts only while this page is open.';\n clear.disabled = pages.length === 0 && !on;\n }\n function dismiss() { draft.hidden = true; message.value = ''; take.href = '/aien/'; report.focus(); }\n enable.addEventListener('change', () => {\n on = enable.checked;\n if (on) remember(); else { pages = []; eraseLocal(key); }\n draft.hidden = true; message.value = ''; take.href = '/aien/'; paint();\n });\n clear.addEventListener('click', () => {\n on = false; pages = []; eraseLocal(key); draft.hidden = true; message.value = ''; take.href = '/aien/'; paint(); enable.focus();\n });\n report.addEventListener('click', () => {\n const entries = pages.length ? pages : [{path:location.pathname,title:document.title}];\n message.value = ('I explored these pages and would like to talk about them:\\n' + entries.map(row => '- ' + row.title + ': ' + row.path).join('\\n')).slice(0,2000);\n draft.hidden = false; message.focus();\n });\n take.addEventListener('click', () => {\n // The fragment is local navigation data, not an HTTP query. The Aien page\n // clears it after prefilling its editable input. Only its Send button sends.\n take.href = '/aien/#draft=' + encodeURIComponent(message.value.slice(0,2000));\n });\n byId('site-trail-cancel').addEventListener('click', dismiss);\n draft.addEventListener('keydown', event => { if (event.key === 'Escape') { event.preventDefault(); dismiss(); } });\n window.addEventListener('storage', event => {\n if (event.key !== key && event.key !== null) return;\n let state = null; try { state = JSON.parse(event.newValue); } catch (_) {}\n on = Boolean(state && state.on === true && Array.isArray(state.pages));\n pages = on ? state.pages.filter(validPage).slice(-20) : [];\n if (!on) eraseLocal(key);\n draft.hidden = true; message.value = ''; take.href = '/aien/'; paint();\n });\n remember(); paint(); panel.hidden = false;\n}\nnavigation(); homeDoor(); localTrail();\n})();\n" fn client_emit to void sr_raw sjsite0 diff --git a/om/site/css.om b/om/site/css.om index de02d41b..350f14fa 100644 --- a/om/site/css.om +++ b/om/site/css.om @@ -32,3 +32,16 @@ fn door_css to void sr_raw sstutils sr_raw ssdoor end + +text semobile "/* Generated by om/site/css.om. Phone navigation needs no horizontal panning. */\n@media(max-width:1100px){\n.engineer .uni-scroll{overflow:visible;padding:1rem var(--gutter,20px)}\n.engineer .uni-map{min-width:0;width:100%;aspect-ratio:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}\n.engineer .uni-sky{display:none}\n.engineer .planet{position:static;inset:auto;transform:none;width:auto;min-width:0;min-height:6.5rem;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:.65rem;padding:.75rem;border:1px solid var(--line-strong);border-radius:1rem;background:var(--u-card)}\n.engineer .planet-disc{width:2.5rem;height:2.5rem;flex:0 0 2.5rem;margin:0}\n.engineer .planet-name{white-space:normal;max-width:none;text-align:left;font-size:.9rem;overflow-wrap:anywhere}\n.engineer .planet:focus-visible{outline:3px solid var(--u-gold);outline-offset:3px}\n.engineer .uni-panel{min-width:0;overflow:visible}\n.engineer .uni-cta{display:grid;grid-template-columns:1fr;width:100%}\n.engineer .uni-btn,.engineer .world-go,.engineer .world-close{min-height:44px;display:inline-flex;align-items:center;justify-content:center;white-space:normal;line-height:1.4}\n.engineer .world-nav{flex-wrap:wrap}\n.engineer .world-nav a{min-height:44px;display:flex;align-items:center}\n.engineer .uni-hint{display:none}\n.engineer .uni-legend::after{content:\"Tap a topic to read more.\";display:block;width:100%}\n}\n@media(max-width:360px){.engineer .uni-map{grid-template-columns:minmax(0,1fr)}}\n" +text sempath "assets/engineer-mobile.css" +text shrestor "/* Generated by om/site/css.om. Restore the site's familiar header. */\n.aien-header details{padding:0;border:0;border-radius:0;background:transparent}\n.aien-header summary{min-height:0;padding:0;font-weight:inherit}\n.aien-header details[open]>summary{margin-bottom:0}\n.aien-header .aien-nav-more-button{padding:8px 12px}\n.aien-header .aien-nav-panel{max-height:75vh;overflow-y:auto}\n.aien-header .aien-nav-panel ul{margin:0;padding:0;list-style:none}\n.aien-header .aien-brand{min-width:0}\n@media(max-width:600px){.aien-header .aien-brand-tag{display:none}.aien-header .aien-header-inner{gap:8px}.aien-header .aien-brand-name{font-size:1rem}.aien-header .aien-nav-panel{position:fixed;top:4.5rem;left:1rem;right:1rem;width:auto;max-width:none}}\n" +text shrpath "assets/home-restored.css" +fn css_repairs to void +st_open sempath +sr_raw semobile +sr_close +st_open shrpath +sr_raw shrestor +sr_close +end diff --git a/om/site/engineer.om b/om/site/engineer.om index 99c3bde2..80b10868 100644 --- a/om/site/engineer.om +++ b/om/site/engineer.om @@ -22,6 +22,7 @@ text egroot "/engineer/" text eglive "<!--engineer:live-->" text egverd "<!--engineer:verdict-->" text egcss "<link rel=\"stylesheet\" href=\"/assets/engineer.css\">" +text egmobcss "<link rel=\"stylesheet\" href=\"/assets/engineer-mobile.css\">" text egigcss "<link rel=\"stylesheet\" href=\"/assets/engineer-infographic.css\">" text eguni "<script defer src=\"/js/engineer-universe.js\"></script>" text egopen "<div class=\"engineer\">" @@ -349,6 +350,7 @@ kind = sj_find page egkind home = sj_eq kind eghome info = sj_eq kind eginfo sr_raw egcss +sr_raw egmobcss if info sr_raw egigcss end diff --git a/om/site/pages.json b/om/site/pages.json index 2cb903a4..22c8bca2 100644 --- a/om/site/pages.json +++ b/om/site/pages.json @@ -2,10 +2,10 @@ { "path": "/", "title": "Sovereign Intelligence™", - "description": "Meet Aien through his native universe, or open the fully readable Classic site for the complete Sovereign Intelligence stack, evidence and research.", - "area": "Aien", - "mode": "front", - "source": "om/allen-page/main.html", + "description": "Sovereign Intelligence, built on AienOS: the project, its machines, research and public evidence.", + "area": "SI", + "mode": "render", + "source": "", "kind": "Home", "published": "2026-09-23", "image": "/og.png", @@ -511,7 +511,7 @@ "title": "Aien", "description": "Meet Aien, explore the universe and talk with him anonymously by default.", "area": "Aien", - "mode": "artifact", + "mode": "front", "source": "om/allen-page/main.html", "kind": "Collection", "published": "2026-10-26", diff --git a/om/site/route-assets.om b/om/site/route-assets.om index 3986effe..98a83ef8 100644 --- a/om/site/route-assets.om +++ b/om/site/route-assets.om @@ -43,7 +43,7 @@ fn ss_route_assets row ulong to void if st_match row 4 sthtml ret end -if or st_match row 0 stroot st_match row 0 srallen +if st_match row 0 srallen sr_raw srnative ret end @@ -81,7 +81,7 @@ end if st_match row 0 srcuda sr_raw srcucss end -if or st_match row 0 srmach st_match row 0 stclass +if or st_match row 0 stroot or st_match row 0 srmach st_match row 0 stclass sr_raw srmccss end if st_match row 0 srlearn diff --git a/om/site/site.om b/om/site/site.om index c3528b64..5e4df9ee 100644 --- a/om/site/site.om +++ b/om/site/site.om @@ -330,6 +330,7 @@ sr_close end fn st_assets to void +css_repairs st_open stdoor door_css sr_close diff --git a/om/site/verify-mutations.jsonl b/om/site/verify-mutations.jsonl index 426ec6f1..3dd9bdd2 100644 --- a/om/site/verify-mutations.jsonl +++ b/om/site/verify-mutations.jsonl @@ -122,10 +122,10 @@ {"id": "O2-i", "mode": "dist", "rule": "B6", "expect": "O2", "ops": [["ins", "index.html", "</head>", "<link rel=\"alternate\" hreflang=\"zh-CN\" href=\"https://www.aienos.com/zh-CN/\">"]], "oracle": "yes", "note": "the root has no translation of its own"} {"id": "O3-a", "mode": "dist", "rule": "H/V14", "expect": "O3", "ops": [["suball", "omega/index.html", "href=\"/discoveries/\"", "href=\"/discoverie/\""]], "oracle": "yes", "note": ""} {"id": "O3-b", "mode": "dist", "rule": "H/V14", "expect": "O3", "ops": [["hide_destinations", "learn/index.html"]], "oracle": "yes", "note": "destinations present only inside aria-hidden"} -{"id": "O4-a", "mode": "dist", "rule": "R0", "expect": "O4", "ops": [["suball", "index.html", "id=\"site-door\"", "id=\"site-dorr\""]], "oracle": "yes", "note": ""} -{"id": "O4-b", "mode": "dist", "rule": "R0", "expect": "O4", "ops": [["suball", "index.html", "<noscript", "<noscripx"]], "oracle": "yes", "note": ""} -{"id": "O4-c", "mode": "dist", "rule": "R0", "expect": "O4", "ops": [["suball", "index.html", "href=\"/classic/\"", "href=\"/classix/\""]], "oracle": "yes", "note": ""} -{"id": "O4-d", "mode": "dist", "rule": "R0", "expect": "O4", "ops": [["suball", "index.html", "id=\"allen\"", "data-id=\"allen\""], ["ins", "index.html", "</body>", "<!-- <div id=\"allen\"></div> --><script>var s='<div id=\"allen\">';</script>"]], "oracle": "yes", "note": "ids in comments or scripts are not elements"} +{"id": "O4-a", "mode": "dist", "rule": "R0", "expect": "O4", "ops": [["suball", "aien/index.html", "id=\"site-door\"", "id=\"site-dorr\""]], "oracle": "yes", "note": ""} +{"id": "O4-b", "mode": "dist", "rule": "R0", "expect": "O4", "ops": [["suball", "aien/index.html", "<noscript", "<noscripx"]], "oracle": "yes", "note": ""} +{"id": "O4-c", "mode": "dist", "rule": "R0", "expect": "O4", "ops": [["suball", "aien/index.html", "href=\"/classic/\"", "href=\"/classix/\""]], "oracle": "yes", "note": ""} +{"id": "O4-d", "mode": "dist", "rule": "R0", "expect": "O4", "ops": [["suball", "aien/index.html", "id=\"allen\"", "data-id=\"allen\""], ["ins", "aien/index.html", "</body>", "<!-- <div id=\"allen\"></div> --><script>var s='<div id=\"allen\">';</script>"]], "oracle": "yes", "note": "ids in comments or scripts are not elements"} {"id": "O5-a", "mode": "dist", "rule": "O5", "expect": "O5", "ops": [["ins", "index.html", "</head>", "<script defer src=\"/js/missing-scene.js\"></script>"]], "oracle": "yes", "note": ""} {"id": "O5-b", "mode": "dist", "rule": "O5", "expect": "O5", "ops": [["ins", "start/index.html", "</head>", "<link rel=\"stylesheet\" href=\"/assets/\">"]], "oracle": "yes", "note": ""} {"id": "O5-c", "mode": "dist", "rule": "O5", "expect": "O5", "ops": [["ins", "start/index.html", "</head>", "<script defer src=\"/js/../js/allen-intro.js\"></script>"]], "oracle": "yes", "note": ""} @@ -241,3 +241,6 @@ {"id": "C8-a", "mode": "dist", "rule": "C8", "expect": "C8", "ops": [["app", "humans.txt", "—"]], "oracle": "yes", "note": ""} {"id": "B8-a", "mode": "dist", "rule": "B8", "expect": "HASH", "ops": [["flipbyte", "js/hive.js"]], "oracle": "n/a", "note": "runner hash gate (pinned sha256sum)"} {"id": "B8-b", "mode": "dist", "rule": "B8", "expect": "HASH", "ops": [["flipbyte", "wasm/hive-fresh.wasm"]], "oracle": "n/a", "note": ""} +{"id": "O4-home-a", "mode": "dist", "rule": "R0", "expect": "O4", "ops": [["suball", "index.html", "id=\"machines\"", "id=\"missing-machines\""]], "oracle": "yes", "note": "Readable homepage must retain its actual content"} +{"id": "O4-home-b", "mode": "dist", "rule": "R0", "expect": "O4", "ops": [["ins", "index.html", "</body>", "<section id=\"site-door\">Enter</section>"]], "oracle": "yes", "note": "The homepage must not become the animated entrance again"} +{"id": "O4-home-c", "mode": "dist", "rule": "R0", "expect": "O4", "ops": [["suball", "index.html", "href=\"/engineer/\"", "href=\"/missing-engineer/\""]], "oracle": "yes", "note": "Meet the Engineer remains reachable from the homepage"} diff --git a/om/site/verify-seo.om b/om/site/verify-seo.om index 37d1cdf2..feb301f4 100644 --- a/om/site/verify-seo.om +++ b/om/site/verify-seo.om @@ -806,7 +806,7 @@ end end sv_drop wr end -fn sv_root h ulong to void +fn sv_aien_intro h ulong to void wm = sv_strip h 7 if not and sv_hasid wm vsallen sv_hasid wm vsdoor sv_fail vro4 vtrid @@ -821,6 +821,30 @@ if not sv_nosc h sv_fail vro4 vtrns end end +text vrhome "main-content\nroot\nmachines\nspeed\nfollow\n" +text vrpaths "/aien/\n/engineer/\n/machine/\n/evidence/\n" +text vrhomerr "readable homepage is missing content or links, or contains the Aien entrance" +fn sv_root h ulong to void +wm = sv_strip h 31 +for wi ulong sv_tcount vrhome +wa = sv_tat vrhome wi +if not sv_hasid wm part vrhome wa sv_tlen vrhome wa +sv_fail vro4 vrhomerr +end +end +for wi ulong sv_tcount vrpaths +wa = sv_tat vrpaths wi +if eq sv_alink wm 0 sv_n wm part vrpaths wa sv_tlen vrpaths wa 0 VNONE +sv_fail vro4 vrhomerr +end +end +sv_drop wm +wm = sv_strip h 7 +if or sv_hasid wm vsdoor sv_hasid wm vsallen +sv_fail vro4 vrhomerr +end +sv_drop wm +end note sv_nosc: some <noscript> outside hidden elements (oracle noscript) links /classic/ with text. fn sv_nosc h ulong to bool wm = sv_strip h 23 diff --git a/om/site/verify-site.om b/om/site/verify-site.om index 126ed4a0..659d4384 100644 --- a/om/site/verify-site.om +++ b/om/site/verify-site.om @@ -37,6 +37,7 @@ text vtnowb "the /now/ body must carry no script and no Renda dial" text vfcls "classic/index.html" text vfzhp "zh-CN/progress/index.html" text vfroot "index.html" +text vfaien "aien/index.html" text vfmach "machine/index.html" text vfdisc "discovery/index.html" text vfown "owned/index.html" @@ -165,6 +166,11 @@ sv_nodash wr vrr0 sv_forbid wr vrv5 sv_root wr sv_drop wr +wa = sv_pg vfaien vro4 +if ne wa 0 +sv_aien_intro wa +sv_drop wa +end end fn sv_vclassic to void wc = sv_pg vfcls vrv3 diff --git a/public/.crumb b/public/.crumb index 9f9342d5..62012999 100644 --- a/public/.crumb +++ b/public/.crumb @@ -6,6 +6,12 @@ "extensions": { "generated": { "children": [ + { + "digest": "84de3543c35930377dae0135a5868c73ec767840978c35823c3c906044a9472a", + "last_commit": "3469a50a", + "name": "aien/voice", + "purpose": "Aien's pre-recorded voice clips (ElevenLabs Output, voice Aien Cosmic 1) and catalog.json listin" + }, { "digest": "937ca48aa52a1bcdaea3533e8e508e7c154415294449fe8ff99c65be0eea2c1d", "last_commit": "0804a190", @@ -14,13 +20,13 @@ }, { "digest": "f62e6779ef6ab377f430a9dac4d288584c777d0cc9c77e96aebce0bf6bf9e6f4", - "last_commit": "9a995012", + "last_commit": "62b40b87", "name": "assets", "purpose": "Website styles including the project dashboard" }, { "digest": "67c0ae6a2f592430eb1982fa02894f296f6ea2a3d1574a8fc46e9dca15fb5c40", - "last_commit": "cd9efd98", + "last_commit": "62b40b87", "name": "data", "purpose": "Published generated project measurements with pinned sources" }, @@ -49,14 +55,14 @@ "purpose": "Public static research or licensing pages using the shared website navigation" } ], - "children_root": "sha256:0dec4b73c885f532daf2a5f3ca8f252ff57872cac8dfd7f76b8bfca326b09173", - "compiled_at": "2026-11-06T15:10:17Z", + "children_root": "sha256:0f040797b7a5019a547ec09c17e15f1b533c20ebab724499051de73732552ba9", + "compiled_at": "2026-11-06T18:10:50Z", "compiler": "crumb-compile/1", - "digest": "sha256:6050e51f48df85c42a6211c223f807fb3df373d0b6bfcf1b5e7ce44ee6380f9e", + "digest": "sha256:ce96f6fd66eb35bd3e08d2023dcdbc3b161ac4d85c1b28da277fa6231ce6597a", "evidence_files": 1, "evidence_root": "sha256:63bece7cb299b29d19622dcb0de4cbaa623357b117d8c7643a562de286c4b2fb", "files": 733, - "generated_at_commit": "7902fc2fa080002d26ba6b347d3c62e4ec13326f", + "generated_at_commit": "7b749dfc2428b3d704f76485d8bb7c7b750d4baf", "source_tree": "sha256:5ada14d027a9a1162fe6628ffad9030ff1c7d726ff89858de0b1c5e74fa4d11a" } }, diff --git a/scripts/test-site-browser.mjs b/scripts/test-site-browser.mjs index f90d03e1..4b0bec96 100755 --- a/scripts/test-site-browser.mjs +++ b/scripts/test-site-browser.mjs @@ -23,7 +23,7 @@ const LIVE_ONLY = ['/aien/api/', '/hive/board/']; const liveOnly = u => { const x = new URL(u); return x.origin === BASE && LIVE_ONLY.some(p => x.pathname.startsWith(p)); }; // A site navigation bar, as opposed to in-page jump lists or chat controls. const TOPNAV = '.navbar, .aien-nav, nav[aria-label="Primary navigation"], body > header nav'; -const PAGES = ['/', '/classic/', '/omega/', '/machine/', '/discoveries/', '/learn/', '/aien/', '/hive/', '/contact/', '/privacy/', '/zh-CN/', '/404.html']; +const PAGES = ['/', '/classic/', '/omega/', '/machine/', '/discoveries/', '/learn/', '/aien/', '/engineer/', '/hive/', '/contact/', '/privacy/', '/zh-CN/', '/404.html']; const DESTINATIONS = ['/classic/', '/omega/', '/machine/', '/discoveries/', '/learn/']; const WIDTHS = [[1365, 900], [390, 844]]; // Lighthouse's simulated slow-4G mobile profile, applied as DevTools throttling: @@ -142,7 +142,7 @@ async function page(cdp, ctx, { width = 1365, height = 900, throttle = null } = await pause(400); }; const click = async selector => { - const box = await evaluate(`(() => { const e = document.querySelector(${JSON.stringify(selector)}); if (!e) return null; e.scrollIntoView({block:'center'}); const r = e.getBoundingClientRect(); return [r.x + r.width / 2, r.y + r.height / 2]; })()`); + const box = await evaluate(`(() => { const e = document.querySelector(${JSON.stringify(selector)}); if (!e) return null; e.scrollIntoView({block:'center',behavior:'instant'}); const r = e.getBoundingClientRect(); return [r.x + r.width / 2, r.y + r.height / 2]; })()`); if (!box) throw new Error(`no element ${selector}`); for (const type of ['mousePressed', 'mouseReleased']) await s('Input.dispatchMouseEvent', { type, x: box[0], y: box[1], button: 'left', clickCount: 1 }); await pause(600); @@ -191,7 +191,7 @@ async function pagePass(cdp) { if (p.st.offsite.length) fail(where, `off-site requests before consent ${p.st.offsite.slice(0, 3).join(' ')}`); if (p.st.bad.length) fail(where, `HTTP errors ${p.st.bad.slice(0, 3).join(' ')}`); if (p.st.errors.length) fail(where, `errors ${p.st.errors.slice(0, 3).join(' | ')}`); - if (path === '/' && dom.nav) fail(where, 'root shows a site navigation bar; the Aien-first root has none'); + if (path === '/' && !dom.nav) fail(where, 'readable homepage navigation is missing'); if (DESTINATIONS.includes(path)) { if (dom.nav) fail(where, 'top navigation bar visible; classic pages use the quiet index'); if (!dom.index) fail(where, 'quiet site index missing'); @@ -207,7 +207,7 @@ async function doorPass(cdp) { enter: !document.getElementById('site-door-enter')?.disabled, audio: window.__chk.audio, play: window.__chk.play }; })()`); await withContext(cdp, async ctx => { const p = await page(cdp, ctx); - await p.go('/', 2500); + await p.go('/aien/', 2500); door.first = await state(p); if (!door.first.door) fail('door', 'first visit does not show the door'); if (door.first.audio || door.first.play) fail('door', 'sound before any gesture'); @@ -224,7 +224,7 @@ async function doorPass(cdp) { door.replayClick = await state(p); if (!door.replayClick.door) fail('door', 'quiet replay control does not reopen the door'); await p.go('/classic/'); - await p.go('/#site-door', 2000); + await p.go('/aien/#site-door', 2000); door.replayLink = await state(p); if (!door.replayLink.door) fail('door', 'replay link from another page does not reopen the door'); door.errors = p.st.errors; door.offsite = p.st.offsite; @@ -233,7 +233,7 @@ async function doorPass(cdp) { }); await withContext(cdp, async ctx => { const p = await page(cdp, ctx); - await p.go('/', 2500); + await p.go('/aien/', 2500); await p.click('#site-door-skip'); door.skip = await state(p); if (door.skip.door || door.skip.audio) fail('door', `Skip did not dismiss silently (${JSON.stringify(door.skip)})`); @@ -241,7 +241,7 @@ async function doorPass(cdp) { }); await withContext(cdp, async ctx => { const p = await page(cdp, ctx); - await p.go('/', 3000); + await p.go('/aien/', 3000); door.beforeEnter = await state(p); if (!door.beforeEnter.enter) fail('door', 'Enter never became available (scene not ready)'); else { @@ -307,6 +307,51 @@ async function consentPass(cdp) { }); } +async function restoredHomePass(cdp) { + for (const scripts of [true, false]) await withContext(cdp, async ctx => { + const p = await page(cdp, ctx, {width:390,height:844}); + if (!scripts) await p.s('Emulation.setScriptExecutionDisabled', {value:true}); + else await p.s('Page.addScriptToEvaluateOnNewDocument', {source:`localStorage.setItem('aienos-site-mode','allen');localStorage.setItem('aienos-intro-seen','1');`}); + await p.go('/'); + if (scripts) await p.key('Escape'); + const state = await p.evaluate(`(() => { ${VISIBLE} + return {path:location.pathname, door:!!document.getElementById('site-door'), + main:shown(document.querySelector('main')), heading:shown(document.querySelector('main h1')), + menu:shown(document.querySelector('.aien-nav-more-button')), + engineer:!!document.querySelector('a[href="/engineer/"]')}; })()`); + if (state.path !== '/' || state.door || !state.main || !state.heading || !state.menu || !state.engineer) + fail('restored homepage scripts='+scripts, JSON.stringify(state)); + await p.click('.aien-nav-more-button'); + const menu = await p.evaluate(`(() => { const a=document.querySelector('.aien-nav-panel a[href="/engineer/"]'); const r=a.getBoundingClientRect(); return a.checkVisibility() && r.left>=0 && r.right<=innerWidth; })()`); + if (!menu) fail('restored homepage', 'mobile menu does not expose Meet the Engineer within the viewport'); + await p.close(); + }); +} + +async function engineerPass(cdp) { + report.engineer = []; + for (const width of [320,390,768]) await withContext(cdp, async ctx => { + const p = await page(cdp, ctx, {width,height:844}); + await p.go('/engineer/'); await p.key('Escape'); + const state = await p.evaluate(`(() => { + const sc=document.querySelector('.uni-scroll'); + const links=[...document.querySelectorAll('.planet')]; + return {overflow:sc.scrollWidth>sc.clientWidth+1, + outside:links.filter(e=>{const r=e.getBoundingClientRect();return r.left<0 || r.right>innerWidth;}).map(e=>e.textContent.trim()), + small:links.filter(e=>e.getBoundingClientRect().height<44).map(e=>e.textContent.trim()), + topics:links.map(e=>e.getAttribute('href'))}; })()`); + report.engineer.push({width,...state}); + if (state.overflow || state.outside.length || state.small.length) fail('engineer '+width, JSON.stringify(state)); + for (const href of state.topics) { + await p.click('.planet[href="'+href+'"]'); + const shown = await p.evaluate(`(() => {const e=document.querySelector(${JSON.stringify(href)}); const r=e.getBoundingClientRect();return e.checkVisibility() && r.left>=0 && r.right<=innerWidth;})()`); + if (!shown) fail('engineer '+width, href+' panel is not readable within the screen'); + await p.click(href+' .world-close'); + } + await p.close(); + }); +} + async function perfPass(cdp) { for (const path of PERF_PAGES) await withContext(cdp, async ctx => { const p = await page(cdp, ctx, { width: 390, height: 844, throttle: PERF }); @@ -327,6 +372,8 @@ try { cdp = new Cdp(chrome.ws); await cdp.open(); report.browser = (await cdp.send('Browser.getVersion')).product; await pagePass(cdp); + await restoredHomePass(cdp); + await engineerPass(cdp); await doorPass(cdp); await consentPass(cdp); await perfPass(cdp);