diff --git a/crates/site-builder/src/components/footer.rs b/crates/site-builder/src/components/footer.rs
index 1829311..d32fbc3 100644
--- a/crates/site-builder/src/components/footer.rs
+++ b/crates/site-builder/src/components/footer.rs
@@ -1,57 +1,127 @@
use maud::{html, Markup, PreEscaped};
+/// One footer link: (label, href, opens in a new tab).
+pub type FooterLink = (&'static str, &'static str, bool);
+
+/// Footer link groups, one per top-level section (handoff section 21),
+/// in the same order as the primary nav. Each group links its hub first.
+pub const FOOTER_GROUPS: [(&str, &[FooterLink]); 6] = [
+ (
+ "The Machine",
+ &[
+ ("The Machine", "/machine/", false),
+ ("AIENOS source", "https://github.com/aien-dev/aienos", true),
+ ("Omega source", "https://github.com/aien-dev/omega", true),
+ ("Architecture", "https://github.com/aien-dev/aien-architecture", true),
+ ("Physics", "https://github.com/aien-dev/physics", true),
+ ],
+ ),
+ (
+ "The Turing",
+ &[
+ ("The Turing", "/turing/", false),
+ ("The Turing paper", "/research/computing-machinery-and-understanding/", false),
+ ],
+ ),
+ (
+ "Experiments",
+ &[
+ ("Experiments", "/experiments/", false),
+ ("Research index", "/research/", false),
+ ],
+ ),
+ (
+ "Scientific Discovery",
+ &[("Scientific Discovery", "/discovery/", false)],
+ ),
+ (
+ "Evidence",
+ &[
+ ("Evidence", "/evidence/", false),
+ ("Research status", "/research/status/", false),
+ ("Status data (JSON)", "/research-status.json", false),
+ (
+ "Qualification record",
+ "https://github.com/aien-dev/omega/blob/main/docs/turing/TURING_SCIENTIFIC_QUALIFICATION_STATE.md",
+ true,
+ ),
+ ],
+ ),
+ (
+ "Philosophy",
+ &[
+ ("Philosophy", "/philosophy/", false),
+ ("The Stapleton Doctrine", "/research/the-stapleton-doctrine/", false),
+ ("The Post-LLM Case", "/post-llm-case/", false),
+ ],
+ ),
+];
+
+/// Secondary links, after the six sections.
+const FOOTER_MORE: [FooterLink; 5] = [
+ ("Blog", "/blog", false),
+ ("Waitlist", "/#waitlist", false),
+ ("Licensing", "/licensing/", false),
+ ("GitHub", "https://github.com/aien-dev", true),
+ ("Drake Stapleton", "https://www.drakestapleton.com", true),
+];
+
+fn footer_link(link: &FooterLink) -> Markup {
+ let (label, href, external) = *link;
+ html! {
+ li {
+ @if external {
+ a href=(href) target="_blank" rel="noopener noreferrer" { (label) }
+ } @else {
+ a href=(href) { (label) }
+ }
+ }
+ }
+}
+
pub fn render_footer() -> Markup {
html! {
- footer style="border-top: 1px solid var(--border-subtle); background: var(--bg-base); padding: 48px 0 32px 0; font-size: 13px; color: var(--text-muted);" {
+ footer class="aien-footer" {
div class="container" {
- div style="display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-bottom: 40px;" {
- div style="max-width: 380px;" {
- div style="display: flex; align-items: center; gap: 8px; margin-bottom: 12px;" {
- (PreEscaped(r#""#))
- span style="font-weight: 700; font-size: 16px; color: var(--text-primary);" {
- "AIENOS"
- }
+ div class="aien-footer-top" {
+ div class="aien-footer-about" {
+ div class="aien-footer-brand" {
+ (PreEscaped(r#""#))
+ span { "AIENOS" }
}
- p style="line-height: 1.6; color: var(--text-secondary);" {
+ p {
"Persistent machine intelligence on hardware you own. Experimental, open source, and verified in public, receipts and all."
}
}
-
- div style="display: flex; gap: 48px; flex-wrap: wrap;" {
- div {
- div style="font-weight: 600; color: var(--text-primary); margin-bottom: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;" {
- "THE LINEAGE"
- }
- ul style="list-style: none; display: flex; flex-direction: column; gap: 8px;" {
- li { a href="https://github.com/aien-dev/aienos" target="_blank" rel="noopener noreferrer" style="color: var(--text-secondary);" { "AIENOS" } }
- li { a href="https://github.com/aien-dev/omega" target="_blank" rel="noopener noreferrer" style="color: var(--text-secondary);" { "Omega" } }
- li { a href="https://github.com/aien-dev/aien-architecture" target="_blank" rel="noopener noreferrer" style="color: var(--text-secondary);" { "Architecture" } }
- li { a href="https://github.com/aien-dev/physics" target="_blank" rel="noopener noreferrer" style="color: var(--text-secondary);" { "Physics" } }
+ nav class="aien-footer-sections" aria-label="Site sections" {
+ @for (heading, links) in FOOTER_GROUPS {
+ div class="aien-footer-group" {
+ h2 class="aien-footer-heading" { (heading) }
+ ul {
+ @for link in links {
+ (footer_link(link))
+ }
+ }
}
}
-
- div {
- div style="font-weight: 600; color: var(--text-primary); margin-bottom: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;" {
- "SITE"
- }
- ul style="list-style: none; display: flex; flex-direction: column; gap: 8px;" {
- li { a href="/research/" style="color: var(--text-secondary);" { "Research" } }
- li { a href="/turing/" style="color: var(--text-secondary);" { "The Turing" } }
- li { a href="/licensing/" style="color: var(--text-secondary);" { "Licensing" } }
- li { a href="https://github.com/aien-dev" target="_blank" rel="noopener noreferrer" style="color: var(--text-secondary);" { "GitHub Organization" } }
- li { a href="https://www.drakestapleton.com" target="_blank" rel="noopener noreferrer" style="color: var(--text-secondary);" { "Drake Stapleton" } }
+ div class="aien-footer-group aien-footer-more" {
+ h2 class="aien-footer-heading" { "More" }
+ ul {
+ @for link in &FOOTER_MORE {
+ (footer_link(link))
+ }
}
}
}
}
- div style="border-top: 1px solid var(--border-subtle); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 11px;" {
+ div class="aien-footer-legal" {
div {
"AIEN © 2026. Licensed under "
- a href="/licensing/" style="color: var(--text-secondary); text-decoration: underline;" { "Apache-2.0 WITH LLVM-exception" }
+ a href="/licensing/" { "Apache-2.0 WITH LLVM-exception" }
"."
}
- div style="display: flex; gap: 16px;" {
+ div class="aien-footer-mottos" {
span { "RECEIPTS OVER CLAIMS" }
span { "ZERO_UNSOLICITED_TELEMETRY" }
}
@@ -60,3 +130,57 @@ pub fn render_footer() -> Markup {
}
}
}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ const EXPECTED_HEADINGS: [&str; 6] = [
+ "The Machine",
+ "The Turing",
+ "Experiments",
+ "Scientific Discovery",
+ "Evidence",
+ "Philosophy",
+ ];
+
+ #[test]
+ fn footer_groups_follow_the_six_sections_in_order() {
+ let html = render_footer().into_string();
+ let mut last = 0usize;
+ for heading in EXPECTED_HEADINGS {
+ let needle = format!("
");
+ let pos = html[last..]
+ .find(&needle)
+ .unwrap_or_else(|| panic!("footer heading {heading} missing or out of order"));
+ last += pos + needle.len();
+ }
+ let more = html.find(">More").expect("More group present");
+ assert!(more > last, "secondary group must follow the six sections");
+ }
+
+ #[test]
+ fn each_footer_group_links_its_hub_first() {
+ let hubs = ["/machine/", "/turing/", "/experiments/", "/discovery/", "/evidence/", "/philosophy/"];
+ for ((heading, links), hub) in FOOTER_GROUPS.iter().zip(hubs) {
+ assert_eq!(links[0].1, hub, "footer group {heading} must link {hub} first");
+ }
+ }
+
+ #[test]
+ fn evidence_group_reaches_the_research_status_record() {
+ let (_, links) = FOOTER_GROUPS
+ .iter()
+ .find(|(heading, _)| *heading == "Evidence")
+ .expect("Evidence group present");
+ let hrefs: Vec<&str> = links.iter().map(|l| l.1).collect();
+ assert!(hrefs.contains(&"/research/status/"), "Evidence group must link /research/status/");
+ assert!(hrefs.contains(&"/research-status.json"), "Evidence group must link /research-status.json");
+ }
+
+ #[test]
+ fn footer_has_no_em_or_en_dash() {
+ let html = render_footer().into_string();
+ assert!(!html.contains('\u{2014}') && !html.contains('\u{2013}'));
+ }
+}
diff --git a/crates/site-builder/src/components/hubs.rs b/crates/site-builder/src/components/hubs.rs
new file mode 100644
index 0000000..a3dd612
--- /dev/null
+++ b/crates/site-builder/src/components/hubs.rs
@@ -0,0 +1,454 @@
+//! Section hub pages: /experiments/, /evidence/, /philosophy/ (NARR-NAV).
+//!
+//! Short generated pages that share the site header and footer through
+//! `render_page_layout`. No status word is written in this file. The
+//! experiments hub renders its ladder and cards from the canonical status
+//! source (`research_status`, data/research_status.json); the other hubs
+//! carry no status values at all and only link to that record.
+
+use std::fs;
+use std::path::Path;
+
+use maud::{html, Markup};
+
+use crate::components::research_status as rs;
+use crate::layouts::base::render_page_layout;
+
+const PAPER: &str = "/research/computing-machinery-and-understanding/";
+const QUALIFICATION_RECORD: &str =
+ "https://github.com/aien-dev/omega/blob/main/docs/turing/TURING_SCIENTIFIC_QUALIFICATION_STATE.md";
+const STATUS_PAGE: &str = "/research/status/";
+const STATUS_JSON: &str = "/research-status.json";
+
+/// Markup each hub must carry. verify_hub_pages and the tests check it.
+pub const EXPERIMENTS_SLOT: &str = "";
+/// The full-record button on the experiments hub.
+pub const STATUS_BUTTON: &str = "";
+pub const EVIDENCE_PHRASE: &str = "Failure is evidence.";
+pub const STATUS_PAGE_LINK: &str = "href=\"/research/status/\"";
+pub const STATUS_JSON_LINK: &str = "href=\"/research-status.json\"";
+pub const PHILOSOPHY_PHRASE: &str = "Position, not evidence";
+
+/// Where a hub's status values come from.
+#[derive(Clone, Copy, PartialEq, Eq, Debug)]
+pub enum StatusSource {
+ /// Every status on the page is rendered from research_status data.
+ Data,
+ /// The page shows no status values at all.
+ Absent,
+}
+
+pub struct Hub {
+ pub slug: &'static str,
+ pub title: &'static str,
+ pub description: &'static str,
+ pub required: &'static [&'static str],
+ pub status: StatusSource,
+ pub render: fn() -> Markup,
+}
+
+pub static HUBS: [Hub; 3] = [
+ Hub {
+ slug: "experiments",
+ title: "Experiments | AIENOS",
+ description: "Every experiment on the AIEN research ladder, failures included, rendered from one canonical status source.",
+ required: &[EXPERIMENTS_SLOT, CARDS_MARKUP, STATUS_BUTTON],
+ status: StatusSource::Data,
+ render: render_experiments_hub,
+ },
+ Hub {
+ slug: "evidence",
+ title: "Evidence | AIENOS",
+ description: "What counts as evidence for AIEN, which source wins when two disagree, and where to inspect the receipts, frozen profiles, research status record, and qualification record.",
+ required: &[EVIDENCE_PHRASE, STATUS_PAGE_LINK, STATUS_JSON_LINK],
+ status: StatusSource::Absent,
+ render: render_evidence_hub,
+ },
+ Hub {
+ slug: "philosophy",
+ title: "Philosophy | AIENOS",
+ description: "Position papers behind AIEN: the Stapleton Doctrine and the Post-LLM Case. These argue a stance and are not experimental results.",
+ required: &[PHILOSOPHY_PHRASE],
+ status: StatusSource::Absent,
+ render: render_philosophy_hub,
+ },
+];
+
+pub fn render_experiments_hub() -> Markup {
+ let d = rs::data();
+ html! {
+ div class="container hub-wrap hub-wrap-wide" {
+ p class="hub-kicker" { "Experiments" }
+ h1 class="hub-title" { "Experiments" }
+ p class="hub-standfirst" {
+ "Every experiment on the AIEN research ladder, with its scope, its receipt and its outcome, failures included. Everything below is rendered from one data file, so this page cannot drift from the record."
+ }
+ section class="hub-data" aria-labelledby="experiments-ladder" {
+ h2 id="experiments-ladder" class="hub-h2" { "Where the research stands" }
+ (rs::render_research_status_summary())
+ }
+ section id="experiment-cards" class="hub-data" data-source="research_status.json" aria-labelledby="experiment-cards-title" {
+ h2 id="experiment-cards-title" class="hub-h2" { "Experiment cards" }
+ p class="hub-lede" {
+ "One card per result. The badge is the verdict; the lines below say what it covers, what it does not, and what it waits on."
+ }
+ (rs::render_cards(d))
+ p class="hub-data-foot" {
+ a class="hub-button" href=(STATUS_PAGE) { "Open the full research status record" }
+ }
+ }
+ section class="hub-section" aria-labelledby="experiments-more" {
+ h2 id="experiments-more" class="hub-h2" { "Check it yourself" }
+ p {
+ "An experiment is frozen before it is scored, and its record stays public whatever the outcome. The same record is published as "
+ a href=(STATUS_JSON) { "machine-readable data" }
+ ", the protocols sit with the "
+ a href=(PAPER) { "Turing paper" }
+ ", and the "
+ a href="/evidence/" { "Evidence" }
+ " page explains which sources count and where to find them."
+ }
+ }
+ }
+ }
+}
+
+pub fn render_evidence_hub() -> Markup {
+ let ladder: [(&str, &str); 7] = [
+ ("Code", "The source that actually runs."),
+ ("Tests", "Checks that run the code and are able to fail."),
+ ("Receipts", "Hashed records of a specific run and what it produced."),
+ ("Frozen profiles", "Experiment protocols fixed before any scoring happens."),
+ ("Qualification records", "The running ledger of what has qualified, and in what scope."),
+ ("Current docs", "Design notes and plans. They describe intent."),
+ ("Website prose", "Including this page. The weakest source on the list."),
+ ];
+ let artifacts: [(&str, &str, String); 5] = [
+ ("SHA256SUMS", "Checksums for every published artifact of the Turing paper.", format!("{PAPER}SHA256SUMS")),
+ ("EXP-001 frozen profile", "The protocol for EXP-001, as frozen before scoring.", format!("{PAPER}profiles/EXP-001.json")),
+ ("EXP-002 frozen profile", "The protocol for EXP-002, as frozen before scoring.", format!("{PAPER}profiles/EXP-002.json")),
+ ("EXP-003 frozen profile", "The protocol for EXP-003, as published.", format!("{PAPER}profiles/EXP-003.json")),
+ ("The Turing paper (PDF)", "Definitions, proofs, measurement protocol, and falsification criteria.", format!("{PAPER}paper.pdf")),
+ ];
+ html! {
+ div class="container hub-wrap" {
+ p class="hub-kicker" { "Evidence" }
+ h1 class="hub-title" { "Evidence" }
+ p class="hub-standfirst" {
+ "Every claim on this site should trace back to something you can inspect yourself. When two sources disagree, the one higher on this list wins."
+ }
+ section class="hub-section" aria-labelledby="evidence-order" {
+ h2 id="evidence-order" class="hub-h2" { "What counts as evidence" }
+ ol class="hub-ladder" {
+ @for (name, what) in ladder {
+ li {
+ strong { (name) }
+ span { (what) }
+ }
+ }
+ }
+ p class="hub-note" { "Website prose never overrides code, tests, or receipts." }
+ }
+ section class="hub-section" aria-labelledby="evidence-where" {
+ h2 id="evidence-where" class="hub-h2" { "Where to inspect it" }
+ ul class="hub-cards" {
+ li class="hub-card" {
+ a href=(STATUS_PAGE) { "Research status record" }
+ p { "Every experiment with its verdict, receipt, scope and limits, plus the research ladder. Rendered from one data file." }
+ }
+ li class="hub-card" {
+ a href=(STATUS_JSON) { "Research status data (JSON)" }
+ p { "The same record in machine-readable form: the file the status pages are built from." }
+ }
+ @for (name, what, href) in &artifacts {
+ li class="hub-card" {
+ a href=(href) { (name) }
+ p { (what) }
+ }
+ }
+ li class="hub-card" {
+ a href=(QUALIFICATION_RECORD) target="_blank" rel="noopener noreferrer" { "Omega qualification record" }
+ p { "The canonical record of what has qualified and in what scope, kept in the Omega repository on GitHub." }
+ }
+ }
+ }
+ section class="hub-section hub-callout" aria-labelledby="evidence-failure" {
+ h2 id="evidence-failure" class="hub-h2" { (EVIDENCE_PHRASE) }
+ p {
+ "Failed and incomplete experiments stay on the record. They are never deleted, hidden, or rewritten into success. A meter you cannot fail is not a meter."
+ }
+ }
+ }
+ }
+}
+
+pub fn render_philosophy_hub() -> Markup {
+ let cards: [(&str, &str, &str, bool); 3] = [
+ (
+ "The Stapleton Doctrine",
+ "/research/the-stapleton-doctrine/",
+ "English is the conversation, not the language. The universal artifact is the verified program.",
+ false,
+ ),
+ (
+ "The Post-LLM Case",
+ "/post-llm-case/",
+ "Why scaling centralized language prediction cannot be the only route to machine intelligence, and what a different learning machine would look like.",
+ false,
+ ),
+ (
+ "Drake Stapleton on philosophy",
+ "https://www.drakestapleton.com/philosophy",
+ "Longer essays on ownership, sovereignty, and how machines should earn trust, on drakestapleton.com.",
+ true,
+ ),
+ ];
+ html! {
+ div class="container hub-wrap" {
+ p class="hub-label hub-label-position" { (PHILOSOPHY_PHRASE) }
+ h1 class="hub-title" { "Philosophy" }
+ p class="hub-standfirst" {
+ "These pages argue a stance and are not experimental results. For what has been measured, see "
+ a href="/evidence/" { "Evidence" }
+ "."
+ }
+ ul class="hub-cards" {
+ @for (name, href, what, external) in cards {
+ li class="hub-card" {
+ @if external {
+ a href=(href) target="_blank" rel="noopener noreferrer" { (name) }
+ } @else {
+ a href=(href) { (name) }
+ }
+ p { (what) }
+ }
+ }
+ }
+ }
+ }
+}
+
+fn render_hub_document(hub: &Hub) -> String {
+ render_page_layout(
+ hub.title,
+ hub.description,
+ &format!("https://aienos.com/{}/", hub.slug),
+ "website",
+ html! {},
+ (hub.render)(),
+ )
+ .into_string()
+}
+
+/// Writes every hub page to `//index.html`.
+pub fn emit_hub_pages(dist: &Path) {
+ for hub in &HUBS {
+ let dir = dist.join(hub.slug);
+ fs::create_dir_all(&dir).unwrap_or_else(|_| panic!("Failed to create {}", dir.display()));
+ fs::write(dir.join("index.html"), render_hub_document(hub))
+ .unwrap_or_else(|_| panic!("Failed to write /{}/index.html", hub.slug));
+ println!(" [PAGE] Emitted /{}/ (index.html)", hub.slug);
+ }
+}
+
+/// Fails the build if a hub page is missing, lacks its required markup,
+/// lacks any of the six nav sections, contains an em or en dash, shows a
+/// status word on a hub that must carry none, or (for the data hub) misses
+/// a card for any row of the canonical status source.
+pub fn verify_hub_pages(dist: &Path) {
+ for hub in &HUBS {
+ let path = dist.join(hub.slug).join("index.html");
+ let page = fs::read_to_string(&path)
+ .unwrap_or_else(|_| panic!("Missing hub page {}", path.display()));
+ check_hub_document(hub, &page).unwrap_or_else(|e| panic!("{}: {e}", path.display()));
+ }
+}
+
+/// Where the shared site footer starts. The footer links the status record
+/// and its data on every page, so required links are checked before it.
+pub const FOOTER_START: &str = "