diff --git a/crates/site-builder/src/components/machine.rs b/crates/site-builder/src/components/machine.rs index f0b61a9d..7980cc94 100644 --- a/crates/site-builder/src/components/machine.rs +++ b/crates/site-builder/src/components/machine.rs @@ -122,7 +122,7 @@ fn section_turing() -> Markup { "For a baseline B, a candidate explanation M, sealed observations D and a scoring profile P, with L meaning description length:" } figure class="narr-formula" aria-label="The Turing formula" { - pre { code { (TURING_FORMULA) } } + pre { code class="language-text" { (TURING_FORMULA) } } } p { "A candidate earns positive Turings only if it shrinks the description of unseen data by more than its own complexity costs." diff --git a/crates/site-builder/src/components/terminal.rs b/crates/site-builder/src/components/terminal.rs index fa087adb..bec06146 100644 --- a/crates/site-builder/src/components/terminal.rs +++ b/crates/site-builder/src/components/terminal.rs @@ -75,7 +75,7 @@ pub fn render_terminal() -> Markup { form id="terminal-form" style="padding: 12px 16px; background: rgba(14, 18, 25, 0.95); border-top: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 8px;" { span style="color: var(--accent-green); font-family: var(--font-mono); font-size: 14px; font-weight: 700;" { "$" } - input id="terminal-input" type="text" aria-label="Terminal command: Type a syscall (sys_telemetry, sys_alloc_kv, sys_vault, help)..." placeholder="Type a syscall (sys_telemetry, sys_alloc_kv, sys_vault, help)..." autocomplete="off" style="flex: 1; background: transparent; border: none; outline: none; color: var(--text-primary); font-family: var(--font-mono); font-size: 13px;" {} + input id="terminal-input" type="text" aria-label="Type a syscall (sys_telemetry, sys_alloc_kv, sys_vault, help)..." placeholder="Type a syscall (sys_telemetry, sys_alloc_kv, sys_vault, help)..." autocomplete="off" style="flex: 1; background: transparent; border: none; outline: none; color: var(--text-primary); font-family: var(--font-mono); font-size: 13px;" {} button type="submit" style="background: var(--accent-green); color: var(--bg-base); border: none; border-radius: 4px; padding: 6px 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; cursor: pointer;" { "RUN" } diff --git a/crates/site-builder/src/seo.rs b/crates/site-builder/src/seo.rs index 718c08cd..83a9d63d 100644 --- a/crates/site-builder/src/seo.rs +++ b/crates/site-builder/src/seo.rs @@ -668,12 +668,37 @@ fn markdown_mirror(page: &Emitted, facts: &HeadFacts, html: &str) -> String { /// Writes the mirror next to the page: `/index.md` for `/`, `/machine.md` /// for `/machine/`, and the same shape under `/zh-CN/`. fn write_markdown_mirror(dist: &Path, page: &Emitted, facts: &HeadFacts, html: &str) { - let rel = md_path(&page.path); - let file = dist.join(rel.trim_start_matches('/')); - if let Some(parent) = file.parent() { - fs::create_dir_all(parent).unwrap_or_else(|e| panic!("create {}: {e}", parent.display())); + let body = markdown_mirror(page, facts, html); + // Both conventions agents use: the sibling file (`/machine.md`) and the + // directory index (`/machine/index.md`). The head points at the sibling. + let mut paths = vec![md_path(&page.path)]; + if page.path != "/" && page.path != "/zh-CN/" { + paths.push(format!("{}index.md", page.path)); + } + for rel in paths { + let file = dist.join(rel.trim_start_matches('/')); + if let Some(parent) = file.parent() { + fs::create_dir_all(parent).unwrap_or_else(|e| panic!("create {}: {e}", parent.display())); + } + fs::write(&file, &body).unwrap_or_else(|e| panic!("write {}: {e}", file.display())); + } +} + +/// Every page links the glossary. Generated pages already do through the +/// footer; hand-written pages under public/ get one small link before +/// , so the term page is reachable from every scanned URL. +fn ensure_glossary_link(mut html: String) -> String { + if html.contains("href=\"/glossary/\"") { + return html; + } + let block = "
Glossary
"; + match html.rfind("") { + Some(i) => { + html.insert_str(i, block); + html + } + None => html, } - fs::write(&file, markdown_mirror(page, facts, html)).unwrap_or_else(|e| panic!("write {}: {e}", file.display())); } /// Rewrites the head of every page in dist. Returns the pages, for the sitemap and feeds. @@ -698,6 +723,7 @@ pub fn enrich(dist: &Path, ctx: &BuildCtx) -> Vec { out.push('\n'); out.push_str(&block); out.push_str(&html[head_end..]); + let out = ensure_glossary_link(out); write_markdown_mirror(dist, page, &facts, &out); fs::write(&page.file, out).unwrap_or_else(|e| panic!("write {}: {e}", page.file.display())); } @@ -1070,6 +1096,11 @@ pub fn verify(dist: &Path) { assert!(md.starts_with("---\n"), "{} markdown mirror must open with frontmatter", info.path); assert!(md.contains("canonical_url:"), "{} markdown mirror must carry canonical_url", info.path); assert!(md.contains("\n## Sitemap\n"), "{} markdown mirror must carry a Sitemap section", info.path); + if info.path != "/" { + let dir_md = format!("{}index.md", info.path); + assert!(dist.join(dir_md.trim_start_matches('/')).exists(), "{} markdown directory mirror {dir_md} missing", info.path); + } + assert!(page.contains("href=\"/glossary/\""), "{} must link the glossary", info.path); let ld_start = page.find("").expect("ld end"); let v: Value = serde_json::from_str(&page[ld_start..ld_end]).unwrap_or_else(|e| panic!("{} JSON-LD does not parse: {e}", info.path)); diff --git a/public/research/index.html b/public/research/index.html index 39ad9a85..f6192776 100644 --- a/public/research/index.html +++ b/public/research/index.html @@ -51,6 +51,7 @@ div.entry.future{cursor:default}

AIEN Research

Preprints, experiments, and public evidence from the AIEN project. The central thread: the Turing (T), a protocol-bound measure of net held-out explanatory compression — one measurable component of understanding, with Turing yield (T/J) normalizing it by energy. All preprints; none peer reviewed yet.

+

Papers and field guides

Interactive
The Turing: A Field Guide
@@ -184,6 +185,7 @@ div.entry.future{cursor:default} +

Forthcoming

Forthcoming
Stochastic Law Discovery
@@ -192,6 +194,7 @@ div.entry.future{cursor:default}

EXP-002 of the experiment ladder: a hidden evaluator generates quantized trajectories from an undisclosed stochastic law: pure diffusion, diffusion with drift, or mean reversion. The candidate must earn complexity on sealed held-out trajectories without inventing structure inside noise. EXP-002 A, B and C passed as instrument certification on known Brownian cases; EXP-002D is incomplete. The full experiment ladder, with failed runs kept, is on the paper page.

+

Versions and evidence