aienos.com
Source of www.aienos.com, served from my own hardware
Brought by drakestapleton
GitHub aien-dev/aienos.com#18 (code only)
Fetch it
curl -fsSL https://interplane.io/drakestapleton/aienos.com/patches/215042f1a0c9829f.bundle -o 215042f1a0c9829f.bundle git fetch 215042f1a0c9829f.bundle refs/pull/18/head
Provenance
github-import 1
aien-dev/aienos.com
18
014fed0aa034376a3e7b301b57f11ac7b217b640
{"kind":"github-import","owner":"aien-dev","repo":"aienos.com","number":18,"url":"https://github.com/aien-dev/aienos.com/pull/18","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:32Z","metadata":"unavailable","state_derived":true}
Changes
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#"<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent-blue)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line></svg>"#)) - 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#"<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent-blue)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line></svg>"#)) + 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!("<h2 class=\"aien-footer-heading\">{heading}</h2>"); + 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</h2>").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 = "<section id=\"experiment-cards\""; +/// The wrapper render_cards emits around the experiment cards. +pub const CARDS_MARKUP: &str = "<div class=\"rs-cards\">"; +/// The full-record button on the experiments hub. +pub const STATUS_BUTTON: &str = "<a class=\"hub-button\" href=\"/research/status/\">"; +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 `<dist>/<slug>/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 = "<footer"; + +/// The page before the shared footer: header, nav and the hub's own body. +/// Required markup must be found here, so a link that only the footer +/// carries does not satisfy a hub. +fn hub_body(page: &str) -> &str { + page.split(FOOTER_START).next().unwrap_or(page) +} + +fn check_hub_document(hub: &Hub, page: &str) -> Result<(), String> { + let body = hub_body(page); + for required in hub.required { + if !body.contains(required) { + return Err(format!("missing required markup {required:?}")); + } + } + if page.contains('\u{2014}') || page.contains('\u{2013}') { + return Err("forbidden em or en dash".to_string()); + } + for (label, href) in crate::components::navbar::NAV_PRIMARY { + if !page.contains(&crate::components::navbar::primary_link_markup(label, href)) { + return Err(format!("nav item {label} missing")); + } + } + match hub.status { + StatusSource::Absent => { + for status in rs::ALLOWED_STATUSES { + if page.contains(status) { + return Err(format!("status value {status} on a hub that must carry none")); + } + } + } + StatusSource::Data => { + for row in &rs::data().turing_rows { + let card = format!("data-row=\"{}\" data-status=\"{}\"", row.id, row.status); + if !page.contains(&card) { + return Err(format!("card for {} missing or not from data", row.id)); + } + } + } + } + Ok(()) +} + +#[cfg(test)] +mod tests { + use super::*; + + fn doc(slug: &str) -> String { + let hub = HUBS.iter().find(|h| h.slug == slug).expect("hub registered"); + render_hub_document(hub) + } + + /// The part of a source file before its test module. + fn non_test_source(src: &str) -> &str { + src.split("#[cfg(test)]").next().unwrap_or(src) + } + + #[test] + fn three_hubs_are_registered() { + let slugs: Vec<&str> = HUBS.iter().map(|h| h.slug).collect(); + assert_eq!(slugs, ["experiments", "evidence", "philosophy"]); + } + + #[test] + fn experiments_hub_renders_the_cards_from_data() { + let page = doc("experiments"); + assert!(page.contains(EXPERIMENTS_SLOT), "experiment-cards section missing"); + assert!(page.contains(CARDS_MARKUP), "render_cards markup missing"); + assert!(page.contains("data-row=\"EXP-001\""), "EXP-001 card missing"); + let d = rs::data(); + let cards = rs::render_cards(d).into_string(); + assert!(page.contains(&cards), "cards differ from research_status::render_cards"); + for row in &d.turing_rows { + let card = format!("data-row=\"{}\" data-status=\"{}\"", row.id, row.status); + assert!(page.contains(&card), "card for {} missing", row.id); + } + } + + #[test] + fn experiments_hub_embeds_the_ladder_and_links_the_full_record() { + let page = doc("experiments"); + let body = hub_body(&page); + assert!(body.contains(&rs::render_research_status_summary().into_string()), "ladder summary missing"); + assert!(body.contains(STATUS_BUTTON), "full record button missing"); + assert!(body.contains(STATUS_JSON_LINK), "data file link missing outside the footer"); + let ladder = page.find("experiments-ladder").expect("ladder section"); + let cards = page.find(EXPERIMENTS_SLOT).expect("cards section"); + assert!(ladder < cards, "ladder comes before the cards"); + } + + #[test] + fn evidence_hub_says_failure_is_evidence() { + let page = doc("evidence"); + assert!(page.contains("Failure is evidence."), "required phrase missing"); + assert!(page.contains("Failed and incomplete experiments stay on the record.")); + assert!(page.contains(QUALIFICATION_RECORD), "qualification record link missing"); + assert!(page.contains("SHA256SUMS"), "checksum link missing"); + } + + #[test] + fn evidence_hub_links_the_status_record_and_its_data() { + let page = doc("evidence"); + assert!(page.contains(FOOTER_START), "footer missing, so the body check would be vacuous"); + let body = hub_body(&page); + assert!(body.contains(STATUS_PAGE_LINK), "/research/status/ link missing outside the footer"); + assert!(body.contains(STATUS_JSON_LINK), "/research-status.json link missing outside the footer"); + } + + #[test] + fn evidence_hierarchy_is_in_order() { + let page = doc("evidence"); + let order = ["Code", "Tests", "Receipts", "Frozen profiles", "Qualification records", "Current docs", "Website prose"]; + let mut last = 0usize; + for name in order { + let needle = format!("<strong>{name}</strong>"); + let pos = page[last..] + .find(&needle) + .unwrap_or_else(|| panic!("evidence level {name} missing or out of order")); + last += pos + needle.len(); + } + } + + #[test] + fn philosophy_hub_is_labelled_position_not_evidence() { + let page = doc("philosophy"); + assert!(page.contains("Position, not evidence"), "required label missing"); + assert!(page.contains("are not experimental results"), "stance sentence missing"); + for href in ["/research/the-stapleton-doctrine/", "/post-llm-case/", "https://www.drakestapleton.com/philosophy"] { + assert!(page.contains(&format!("href=\"{href}\"")), "philosophy card {href} missing"); + } + } + + #[test] + fn every_hub_passes_the_build_check() { + for hub in &HUBS { + let page = render_hub_document(hub); + check_hub_document(hub, &page).unwrap_or_else(|e| panic!("/{}/: {e}", hub.slug)); + } + } + + #[test] + fn hubs_contain_no_em_or_en_dash() { + for hub in &HUBS { + let page = render_hub_document(hub); + assert!(!page.contains('\u{2014}'), "/{}/ contains an em dash", hub.slug); + assert!(!page.contains('\u{2013}'), "/{}/ contains an en dash", hub.slug); + } + } + + #[test] + fn nav_and_hub_source_has_no_hand_written_status() { + let sources = [ + ("hubs.rs", include_str!("hubs.rs")), + ("navbar.rs", include_str!("navbar.rs")), + ("footer.rs", include_str!("footer.rs")), + ]; + for (name, src) in sources { + let body = non_test_source(src); + for status in rs::ALLOWED_STATUSES { + assert!(!body.contains(status), "{name} hand-writes the status word {status}"); + } + } + } + + #[test] + fn build_check_rejects_bad_pages() { + let evidence = &HUBS[1]; + let page = render_hub_document(evidence); + assert!(check_hub_document(evidence, &page.replace("Failure is evidence.", "")).is_err()); + // A status link that survives only in the footer does not count. + let footer = page.find(FOOTER_START).expect("footer present"); + let (head, foot) = page.split_at(footer); + let unlinked = format!("{}{foot}", head.replace(STATUS_JSON_LINK, "href=\"/x\"")); + assert!(foot.contains(STATUS_JSON_LINK), "footer still links the data"); + assert!(check_hub_document(evidence, &unlinked).is_err()); + assert!(check_hub_document(evidence, &format!("{page}\u{2014}")).is_err()); + let status = rs::ALLOWED_STATUSES[0]; + assert!(check_hub_document(evidence, &format!("{page}{status}")).is_err()); + let experiments = &HUBS[0]; + let page = render_hub_document(experiments); + assert!(check_hub_document(experiments, &page.replace("data-row=\"EXP-001\"", "data-row=\"X\"")).is_err()); + } +} diff --git a/crates/site-builder/src/components/mod.rs b/crates/site-builder/src/components/mod.rs index ff48e6b..a982c3c 100644 --- a/crates/site-builder/src/components/mod.rs +++ b/crates/site-builder/src/components/mod.rs @@ -5,6 +5,7 @@ pub mod ecosystem; pub mod evidence; pub mod footer; pub mod hero; +pub mod hubs; pub mod install; pub mod machine; pub mod matrix; diff --git a/crates/site-builder/src/components/navbar.rs b/crates/site-builder/src/components/navbar.rs index 0a8b18e..c3ebaf7 100644 --- a/crates/site-builder/src/components/navbar.rs +++ b/crates/site-builder/src/components/navbar.rs @@ -1,38 +1,128 @@ use maud::{html, Markup, PreEscaped}; +/// The six top-level sections of the site, in reading order +/// (research synthesis handoff, section 21). Every page header uses this +/// list: the generated pages render it here, and the hand-written pages +/// under public/ carry the same links (checked by the tests below). +pub const NAV_PRIMARY: [(&str, &str); 6] = [ + ("The Machine", "/machine/"), + ("The Turing", "/turing/"), + ("Experiments", "/experiments/"), + ("Scientific Discovery", "/discovery/"), + ("Evidence", "/evidence/"), + ("Philosophy", "/philosophy/"), +]; + +/// Secondary links: smaller, after a divider. +pub const NAV_SECONDARY: [(&str, &str); 3] = [ + ("Blog", "/blog"), + ("Waitlist", "/#waitlist"), + ("GitHub", "https://github.com/aien-dev"), +]; + +/// The exact anchor markup for one primary nav link. Hand-written pages +/// copy this markup byte for byte so the tests can find it. +pub fn primary_link_markup(label: &str, href: &str) -> String { + format!("<a class=\"aien-nav-link\" href=\"{href}\">{label}</a>") +} + pub fn render_navbar() -> Markup { html! { - header style="border-bottom: 1px solid var(--border-subtle); background: rgba(8, 9, 12, 0.85); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 50; padding: 16px 0;" { - div class="container" style="display: flex; align-items: center; justify-content: space-between; gap: 16px;" { - a href="#main-content" aria-label="AIENOS home" style="display: flex; align-items: center; gap: 12px;" { - div style="width: 32px; height: 32px; borderRadius: 6px; background: linear-gradient(135deg, #131822 0%, #1e2638 100%); border: 1px solid var(--accent-blue); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 12px var(--accent-blue-glow);" { - (PreEscaped(r#"<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent-blue)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line></svg>"#)) + header class="aien-header" { + div class="aien-header-inner" { + a class="aien-brand" href="/" aria-label="AIENOS home" { + span class="aien-brand-mark" aria-hidden="true" { + (PreEscaped(r#"<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line></svg>"#)) } - div class="brand-copy" style="display: flex; flex-direction: column;" { - span style="font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--text-primary);" { - "AIENOS" - } - span style="font-size: 10px; font-family: var(--font-mono); color: var(--text-muted); letter-spacing: 0.08em;" { - "PERSISTENT MACHINE INTELLIGENCE" - } + span class="aien-brand-copy" { + span class="aien-brand-name" { "AIENOS" } + span class="aien-brand-tag" { "PERSISTENT MACHINE INTELLIGENCE" } } } - - nav aria-label="Primary navigation" class="site-nav" style="display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500;" { - a class="nav-section-link" href="/#evidence" { "Evidence" } - a class="nav-section-link" href="/#architecture" { "Architecture" } - a class="nav-section-link" href="/#research" { "Research" } - a class="nav-section-link" href="/turing/" { "The Turing" } - a class="nav-section-link" href="/#status" { "Status" } - a class="nav-section-link" href="/blog" { "Blog" } - a class="nav-section-link" href="https://www.drakestapleton.com/philosophy" { "Philosophy" } - a class="nav-section-link" href="/#waitlist" style="color: var(--accent-green); font-weight: 700;" { "Waitlist" } - a href="https://github.com/aien-dev" target="_blank" rel="noopener noreferrer" style="display: flex; align-items: center; gap: 6px; color: var(--text-primary); padding: 6px 12px; border-radius: 4px; border: 1px solid var(--border-subtle); background: var(--bg-surface); font-family: var(--font-mono); font-size: 12px;" { - (PreEscaped(r#"<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"></path><path d="M9 18c-4.51 2-5-2-7-2"></path></svg>"#)) - span { "GitHub" } + nav class="aien-nav" aria-label="Primary navigation" { + ul class="aien-nav-primary" { + @for (label, href) in NAV_PRIMARY { + li { a class="aien-nav-link" href=(href) { (label) } } + } + } + ul class="aien-nav-secondary" aria-label="More" { + @for (label, href) in NAV_SECONDARY { + li { a class="aien-nav-minor" href=(href) { (label) } } + } } } } } } } + +#[cfg(test)] +mod tests { + use super::*; + use std::path::Path; + + /// Written out independently of NAV_PRIMARY so reordering or dropping + /// an entry in the const makes these tests fail. + const EXPECTED_PRIMARY: [(&str, &str); 6] = [ + ("The Machine", "/machine/"), + ("The Turing", "/turing/"), + ("Experiments", "/experiments/"), + ("Scientific Discovery", "/discovery/"), + ("Evidence", "/evidence/"), + ("Philosophy", "/philosophy/"), + ]; + + /// Hand-written pages that must carry the same six links. + const HAND_WRITTEN: [&str; 3] = [ + "public/post-llm-case/index.html", + "public/research/the-stapleton-doctrine/index.html", + "public/licensing/index.html", + ]; + + fn assert_six_in_order(haystack: &str, what: &str) { + let mut last = 0usize; + for (i, (label, href)) in EXPECTED_PRIMARY.iter().enumerate() { + let needle = primary_link_markup(label, href); + let pos = haystack[last..] + .find(&needle) + .unwrap_or_else(|| panic!("{what}: nav item {i} ({label}) missing or out of order")); + last += pos + needle.len(); + } + } + + #[test] + fn primary_nav_const_matches_section_21() { + assert_eq!(NAV_PRIMARY, EXPECTED_PRIMARY, "NAV_PRIMARY differs from section 21 order"); + } + + #[test] + fn rendered_navbar_has_six_sections_in_order_before_secondary() { + let html = render_navbar().into_string(); + assert_six_in_order(&html, "generated navbar"); + let primary_end = html.find("</ul>").expect("primary list closes"); + let secondary = html.find("aien-nav-secondary").expect("secondary list present"); + assert!(secondary > primary_end, "secondary links must come after the six sections"); + for (label, _) in NAV_SECONDARY { + assert!(html[secondary..].contains(label), "secondary item {label} missing"); + assert!(!html[..primary_end].contains(&format!(">{label}<")), "{label} must not be a primary item"); + } + } + + #[test] + fn hand_written_pages_carry_the_same_six_links() { + let root = Path::new(env!("CARGO_MANIFEST_DIR")).join("../.."); + for rel in HAND_WRITTEN { + let page = std::fs::read_to_string(root.join(rel)) + .unwrap_or_else(|_| panic!("cannot read {rel}")); + assert!(page.contains("class=\"aien-header\""), "{rel}: missing shared header markup"); + assert!(page.contains("/assets/site-nav.css"), "{rel}: missing shared nav stylesheet"); + assert_six_in_order(&page, rel); + } + } + + #[test] + fn navbar_has_no_em_or_en_dash() { + let html = render_navbar().into_string(); + assert!(!html.contains('\u{2014}') && !html.contains('\u{2013}')); + } +} diff --git a/crates/site-builder/src/layouts/base.rs b/crates/site-builder/src/layouts/base.rs index f6d17da..a0fee96 100644 --- a/crates/site-builder/src/layouts/base.rs +++ b/crates/site-builder/src/layouts/base.rs @@ -60,6 +60,8 @@ pub fn render_page_layout( // Stylesheet link rel="stylesheet" href="/assets/style.css"; + // Shared six-section header (also linked by hand-written pages) + link rel="stylesheet" href="/assets/site-nav.css"; (extra_head) } diff --git a/crates/site-builder/src/main.rs b/crates/site-builder/src/main.rs index 1f9bb2e..de7af1c 100644 --- a/crates/site-builder/src/main.rs +++ b/crates/site-builder/src/main.rs @@ -28,7 +28,7 @@ fn copy_dir_all(src: &Path, dst: &Path) -> std::io::Result<()> { } fn generate_sitemap_and_robots(dist: &Path) { - let sitemap = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <url><loc>https://aienos.com/</loc><priority>1.0</priority></url>\n <url><loc>https://aienos.com/blog</loc><priority>0.8</priority></url>\n <url><loc>https://aienos.com/blog/aien-v3-research-plan</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/post-llm-case/</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/research/</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/research/status/</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/research/computing-machinery-and-understanding</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/research/computing-machinery-and-understanding-emergence</loc><priority>0.8</priority></url>\n <url><loc>https://aienos.com/research/the-stapleton-doctrine</loc><priority>0.8</priority></url>\n <url><loc>https://aienos.com/machine/</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/discovery/</loc><priority>0.8</priority></url>\n <url><loc>https://aienos.com/turing/</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/licensing/</loc><priority>0.5</priority></url>\n</urlset>\n"; + let sitemap = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <url><loc>https://aienos.com/</loc><priority>1.0</priority></url>\n <url><loc>https://aienos.com/blog</loc><priority>0.8</priority></url>\n <url><loc>https://aienos.com/blog/aien-v3-research-plan</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/post-llm-case/</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/research/</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/research/status/</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/research/computing-machinery-and-understanding</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/research/computing-machinery-and-understanding-emergence</loc><priority>0.8</priority></url>\n <url><loc>https://aienos.com/research/the-stapleton-doctrine</loc><priority>0.8</priority></url>\n <url><loc>https://aienos.com/machine/</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/turing/</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/experiments/</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/discovery/</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/evidence/</loc><priority>0.9</priority></url>\n <url><loc>https://aienos.com/philosophy/</loc><priority>0.8</priority></url>\n <url><loc>https://aienos.com/licensing/</loc><priority>0.5</priority></url>\n</urlset>\n"; let sitemap_path = dist.join("sitemap.xml"); fs::write(&sitemap_path, sitemap).expect("Failed to write sitemap.xml"); @@ -166,6 +166,9 @@ fn build_pure_rust_site(dist: &Path) { println!(" [PAGE] Emitted /{}/ (index.html)", slug); } + // Section hubs: /experiments/, /evidence/, /philosophy/ (NARR-NAV) + components::hubs::emit_hub_pages(dist); + generate_sitemap_and_robots(dist); } @@ -221,6 +224,9 @@ fn verify_site(dist: &Path) { ); } + // Section hubs exist, carry their required phrase and the six-section + // nav, and contain no em or en dash. + components::hubs::verify_hub_pages(dist); // Verify research narrative pages (NARR-RESEARCH) for slug in ["machine", "discovery"] { diff --git a/public/assets/site-nav.css b/public/assets/site-nav.css new file mode 100644 index 0000000..e0cad9e --- /dev/null +++ b/public/assets/site-nav.css @@ -0,0 +1,190 @@ +/* + * Shared site header: the six-section navigation (NARR-NAV). + * Self-contained on purpose: hand-written pages under public/ that do not + * load style.css (post-llm-case, licensing) link this file too, so every + * value has its own fallback and nothing depends on page tokens. + * Phone width: the nav wraps onto rows. No horizontal scroll, no script. + */ +.aien-header { + --an-bg: rgba(8, 9, 12, 0.92); + --an-border: #1c2536; + --an-text: #f1f5f9; + --an-text-2: #94a3b8; + --an-muted: #8ea0b5; + --an-blue: #2d7ff9; + --an-green: #00e599; + --an-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; + --an-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; + box-sizing: border-box; + border-bottom: 1px solid var(--an-border); + background: var(--an-bg); + -webkit-backdrop-filter: blur(12px); + backdrop-filter: blur(12px); + padding: 14px 0; + font-family: var(--an-sans); + line-height: 1.4; + color: var(--an-text); + z-index: 50; +} + +.aien-header *, +.aien-header *::before, +.aien-header *::after { + box-sizing: border-box; +} + +.aien-header-inner { + max-width: 1200px; + margin: 0 auto; + padding: 0 24px; + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 12px 24px; +} + +.aien-header .aien-brand, +.aien-header .aien-brand:hover { + display: inline-flex; + align-items: center; + gap: 12px; + color: var(--an-text); + text-decoration: none; +} + +.aien-brand-mark { + width: 32px; + height: 32px; + border-radius: 6px; + display: inline-flex; + align-items: center; + justify-content: center; + color: var(--an-blue); + background: linear-gradient(135deg, #131822 0%, #1e2638 100%); + border: 1px solid var(--an-blue); + box-shadow: 0 0 12px rgba(45, 127, 249, 0.15); + flex: none; +} + +.aien-brand-copy { + display: flex; + flex-direction: column; +} + +.aien-brand-name { + font-weight: 700; + font-size: 18px; + letter-spacing: -0.02em; + color: var(--an-text); +} + +.aien-brand-tag { + font-family: var(--an-mono); + font-size: 10px; + letter-spacing: 0.08em; + color: var(--an-muted); +} + +.aien-nav { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 8px 20px; +} + +.aien-nav ul { + list-style: none; + margin: 0; + padding: 0; + display: flex; + flex-wrap: wrap; + align-items: center; +} + +.aien-nav-primary { + gap: 6px 20px; +} + +.aien-nav .aien-nav-secondary { + gap: 6px 14px; + padding-left: 20px; + border-left: 1px solid var(--an-border); +} + +.aien-nav a.aien-nav-link { + font-size: 14px; + font-weight: 600; + color: var(--an-text-2); + text-decoration: none; + padding: 4px 0; + border-bottom: 2px solid transparent; + transition: color 0.15s ease, border-color 0.15s ease; +} + +.aien-nav a.aien-nav-minor { + font-family: var(--an-mono); + font-size: 12px; + color: var(--an-muted); + text-decoration: none; + padding: 4px 0; +} + +.aien-nav a[href="/#waitlist"] { + color: var(--an-green); +} + +.aien-nav a.aien-nav-link:hover, +.aien-nav a.aien-nav-minor:hover { + color: var(--an-text); + border-bottom-color: var(--an-blue); +} + +.aien-nav a.aien-nav-link:focus-visible, +.aien-nav a.aien-nav-minor:focus-visible, +.aien-brand:focus-visible { + outline: 2px solid var(--an-green); + outline-offset: 3px; +} + +/* Wide screens: the header stays pinned while reading. A page with its own + sticky bar opts out with data-sticky="off" on the header. */ +@media (min-width: 1100px) { + .aien-header { + position: sticky; + top: 0; + } +} + +/* Narrow screens: brand on its own row, sections wrap below it. */ +@media (max-width: 1099px) { + .aien-nav { + width: 100%; + } +} + +@media (max-width: 600px) { + .aien-header-inner { + padding: 0 16px; + } + + .aien-nav-primary { + gap: 4px 16px; + } + + .aien-nav a.aien-nav-link { + font-size: 13.5px; + } + + .aien-nav .aien-nav-secondary { + width: 100%; + padding-left: 0; + padding-top: 8px; + border-left: none; + border-top: 1px solid var(--an-border); + } +} + +.aien-header[data-sticky="off"] { + position: static; +} diff --git a/public/assets/style.css b/public/assets/style.css index 115a51a..9dce7e6 100644 --- a/public/assets/style.css +++ b/public/assets/style.css @@ -1148,6 +1148,339 @@ p { } } +/* ========================================================================== + NARR-NAV: six-section footer and section hub pages + (/experiments/, /evidence/, /philosophy/). Self-contained block; the + header nav itself lives in /assets/site-nav.css so hand-written pages + that do not load this file can share it. + ========================================================================== */ + +.aien-footer { + border-top: 1px solid var(--border-subtle); + background: var(--bg-base); + padding: 48px 0 32px; + font-size: 13px; + color: var(--text-muted); +} + +.aien-footer-top { + display: grid; + grid-template-columns: minmax(0, 300px) minmax(0, 1fr); + gap: 40px; + margin-bottom: 40px; +} + +.aien-footer-brand { + display: flex; + align-items: center; + gap: 8px; + margin-bottom: 12px; + font-weight: 700; + font-size: 16px; + color: var(--text-primary); +} + +.aien-footer-about p { + line-height: 1.6; + color: var(--text-secondary); + margin: 0; +} + +.aien-footer-sections { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); + gap: 28px 24px; +} + +.aien-footer-heading { + font-family: var(--font-mono); + font-size: 11px; + font-weight: 600; + letter-spacing: 0.06em; + text-transform: uppercase; + color: var(--text-primary); + margin: 0 0 12px; +} + +.aien-footer-group ul { + list-style: none; + margin: 0; + padding: 0; + display: flex; + flex-direction: column; + gap: 8px; +} + +.aien-footer-group a { + color: var(--text-secondary); + transition: color 0.15s ease; +} + +.aien-footer-group a:hover { + color: var(--text-primary); +} + +.aien-footer-more .aien-footer-heading { + color: var(--text-muted); +} + +.aien-footer-legal { + 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; +} + +.aien-footer-legal a { + color: var(--text-secondary); + text-decoration: underline; +} + +.aien-footer-mottos { + display: flex; + flex-wrap: wrap; + gap: 16px; +} + +/* Hub pages: one centered reading column, generous whitespace. */ +.hub-wrap { + max-width: 760px; + padding-top: 64px; + padding-bottom: 96px; +} + +.hub-kicker { + font-family: var(--font-mono); + font-size: 12px; + font-weight: 600; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--accent-green); + margin: 0 0 12px; +} + +.hub-label { + display: inline-block; + font-family: var(--font-mono); + font-size: 12px; + font-weight: 600; + letter-spacing: 0.06em; + text-transform: uppercase; + border-radius: 999px; + padding: 5px 12px; + margin: 0 0 16px; +} + +/* Philosophy pages argue a stance: amber outline plus the text label, + never color alone. */ +.hub-label-position { + color: var(--accent-amber); + border: 1px dashed var(--accent-amber); + background: rgba(245, 158, 11, 0.08); +} + +.hub-title { + font-size: 40px; + line-height: 1.15; + letter-spacing: -0.02em; + color: var(--text-primary); + margin: 0 0 16px; +} + +.hub-standfirst { + max-width: 68ch; + font-size: 18px; + line-height: 1.65; + color: var(--text-secondary); + margin: 0 0 48px; +} + +.hub-standfirst a, +.hub-section p a { + color: var(--accent-blue); +} + +.hub-section { + margin: 0 0 48px; +} + +.hub-section p { + max-width: 68ch; + font-size: 16px; + line-height: 1.7; + color: var(--text-secondary); + margin: 0 0 16px; +} + +.hub-h2 { + font-size: 22px; + letter-spacing: -0.01em; + color: var(--text-primary); + margin: 0 0 16px; +} + +/* Experiments hub: ladder and cards rendered from research_status data. + The wrap widens for the card grid; prose stays in a 68ch column. */ +.hub-wrap-wide { + max-width: 1100px; +} + +.hub-data { + margin: 0 0 64px; +} + +.hub-data .hub-lede { + max-width: 68ch; + font-size: 16px; + line-height: 1.7; + color: var(--text-secondary); + margin: 0 0 24px; +} + +.hub-data-foot { + margin: 32px 0 0; +} + +.hub-button { + display: inline-flex; + align-items: center; + padding: 11px 20px; + border-radius: 8px; + border: 1px solid var(--accent-blue); + background: rgba(45, 127, 249, 0.12); + color: var(--accent-blue); + font-weight: 700; + font-size: 14px; +} + +.hub-button:hover { + background: rgba(45, 127, 249, 0.2); +} + +.hub-ladder { + counter-reset: hub-ladder; + list-style: none; + margin: 0 0 20px; + padding: 0; + display: flex; + flex-direction: column; + gap: 10px; +} + +.hub-ladder li { + counter-increment: hub-ladder; + display: grid; + grid-template-columns: 2.25em minmax(0, 1fr); + column-gap: 12px; + align-items: baseline; + padding: 12px 16px; + border: 1px solid var(--border-subtle); + border-radius: 10px; + background: var(--bg-card); +} + +.hub-ladder li::before { + content: counter(hub-ladder); + grid-row: span 2; + font-family: var(--font-mono); + font-size: 13px; + color: var(--accent-green); +} + +.hub-ladder strong { + color: var(--text-primary); + font-size: 15px; +} + +.hub-ladder span { + color: var(--text-secondary); + font-size: 14.5px; + line-height: 1.55; +} + +.hub-section .hub-note { + font-family: var(--font-mono); + font-size: 13px; + color: var(--text-muted); +} + +.hub-cards { + list-style: none; + margin: 0; + padding: 0; + display: grid; + grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); + gap: 14px; +} + +.hub-card { + border: 1px solid var(--border-subtle); + border-radius: 12px; + background: var(--bg-card); + padding: 20px; + transition: border-color 0.2s ease; +} + +.hub-card:hover { + border-color: var(--border-active); +} + +.hub-card a { + display: block; + font-weight: 700; + font-size: 16px; + color: var(--text-primary); + margin: 0 0 8px; +} + +.hub-card a:hover { + color: var(--accent-blue); +} + +.hub-card p { + margin: 0; + font-size: 14px; + line-height: 1.6; + color: var(--text-secondary); +} + +.hub-callout { + border-left: 3px solid var(--accent-green); + padding: 4px 0 4px 20px; +} + +@media (max-width: 720px) { + .aien-footer-top { + grid-template-columns: minmax(0, 1fr); + } + + .hub-wrap { + padding-top: 40px; + padding-bottom: 64px; + } + + .hub-title { + font-size: 32px; + } + + .hub-data { + margin-bottom: 48px; + } +} + +@media (max-width: 600px) { + .aien-footer .container, + .hub-wrap { + padding-left: 16px; + padding-right: 16px; + } +} +/* ========================= end NARR-NAV block ========================= */ /* ========================================================================== NARR-RESEARCH: research narrative pages (/machine/, /discovery/) diff --git a/public/licensing/index.html b/public/licensing/index.html index 4725c3e..964b6b6 100644 --- a/public/licensing/index.html +++ b/public/licensing/index.html @@ -10,6 +10,7 @@ <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700;800&display=swap"> +<link rel="stylesheet" href="/assets/site-nav.css"> <style> :root { --bg-base: #08090c; --bg-surface: #0e1219; --bg-card: #131822; @@ -21,9 +22,6 @@ * { box-sizing: border-box; margin: 0; padding: 0; } body { background: var(--bg-base); color: var(--text-primary); font-family: var(--font-sans); line-height: 1.6; } .container { max-width: 860px; margin: 0 auto; padding: 0 24px; } - header { border-bottom: 1px solid var(--border-subtle); padding: 18px 0; } - header a { color: var(--text-primary); font-weight: 700; text-decoration: none; letter-spacing: -0.02em; } - header span { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; display: block; } main { padding: 64px 0 80px 0; } .badge { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent-green); border: 1px solid var(--border-subtle); background: var(--bg-surface); border-radius: 999px; padding: 5px 12px; margin-bottom: 16px; } h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; } @@ -41,10 +39,28 @@ </style> </head> <body> -<header> - <div class="container"> - <a href="/">AIENOS</a> - <span>PERSISTENT MACHINE INTELLIGENCE</span> +<!-- Shared six-section site header (NARR-NAV). Keep in sync with crates/site-builder/src/components/navbar.rs; a test checks the six links. --> +<header class="aien-header"> + <div class="aien-header-inner"> + <a class="aien-brand" href="/" aria-label="AIENOS home"> + <span class="aien-brand-mark" aria-hidden="true"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line></svg></span> + <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" 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> + <ul class="aien-nav-secondary" aria-label="More"> + <li><a class="aien-nav-minor" href="/blog">Blog</a></li> + <li><a class="aien-nav-minor" href="/#waitlist">Waitlist</a></li> + <li><a class="aien-nav-minor" href="https://github.com/aien-dev">GitHub</a></li> + </ul> + </nav> </div> </header> <main> diff --git a/public/post-llm-case/index.html b/public/post-llm-case/index.html index 7f3cdef..5dd6f6d 100644 --- a/public/post-llm-case/index.html +++ b/public/post-llm-case/index.html @@ -9,6 +9,7 @@ <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Public+Sans:ital,wght@0,400;0,600;0,700;0,800;1,500&display=swap" rel="stylesheet"> + <link rel="stylesheet" href="/assets/site-nav.css"> <style> :root { color-scheme: light dark; @@ -480,6 +481,30 @@ </style> </head> <body> +<!-- Shared six-section site header (NARR-NAV). Keep in sync with crates/site-builder/src/components/navbar.rs; a test checks the six links. --> +<header class="aien-header" data-sticky="off"> + <div class="aien-header-inner"> + <a class="aien-brand" href="/" aria-label="AIENOS home"> + <span class="aien-brand-mark" aria-hidden="true"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line></svg></span> + <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" 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> + <ul class="aien-nav-secondary" aria-label="More"> + <li><a class="aien-nav-minor" href="/blog">Blog</a></li> + <li><a class="aien-nav-minor" href="/#waitlist">Waitlist</a></li> + <li><a class="aien-nav-minor" href="https://github.com/aien-dev">GitHub</a></li> + </ul> + </nav> + </div> +</header> <nav class="top-index" aria-label="Page sections"> <div class="wrap"> <span class="index-mark">RESEARCH / 2026</span> diff --git a/public/research/the-stapleton-doctrine/index.html b/public/research/the-stapleton-doctrine/index.html index 20fa36f..7cb7917 100644 --- a/public/research/the-stapleton-doctrine/index.html +++ b/public/research/the-stapleton-doctrine/index.html @@ -17,6 +17,7 @@ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700;800&display=swap"> <link rel="stylesheet" href="/assets/style.css"> +<link rel="stylesheet" href="/assets/site-nav.css"> <style> .research-wrap{max-width:880px;margin:0 auto;padding:48px 24px 96px} .kicker{font-family:var(--font-mono);font-size:12px;letter-spacing:.14em;color:var(--accent-blue);text-transform:uppercase;margin-bottom:16px} @@ -44,21 +45,35 @@ .tenets li strong{color:var(--text-primary)} .chain{font-family:var(--font-mono);font-size:14px;color:var(--text-primary);line-height:1.9;border:1px solid var(--border-subtle);border-radius:10px;background:var(--bg-card);padding:16px 18px;margin:0 0 18px} pre.cite{background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:10px;padding:18px;font-family:var(--font-mono);font-size:13px;color:var(--text-secondary);overflow-x:auto;line-height:1.6} -.topnav{border-bottom:1px solid var(--border-subtle);background:rgba(8,9,12,.85);backdrop-filter:blur(12px);position:sticky;top:0;z-index:50;padding:14px 0} -.topnav .inner{max-width:1180px;margin:0 auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:16px} -.topnav a.brand{font-weight:700;color:var(--text-primary);text-decoration:none;font-size:17px;letter-spacing:-.02em} -.topnav nav{display:flex;gap:22px;font-size:14px} -.topnav nav a{color:var(--text-secondary);text-decoration:none} -.topnav nav a.active{color:var(--accent-blue)} .footer-note{margin-top:56px;padding-top:24px;border-top:1px solid var(--border-subtle);font-size:13px;color:var(--text-muted);line-height:1.6} .footer-note a{color:var(--accent-blue);text-decoration:none} </style> </head> <body> -<div class="topnav"><div class="inner"> -<a class="brand" href="/">AIEN OS</a> -<nav><a href="/">Home</a><a href="/blog">Blog</a><a href="/research" class="active">Research</a><a href="https://github.com/aien-dev" target="_blank" rel="noopener">GitHub</a></nav> -</div></div> +<!-- Shared six-section site header (NARR-NAV). Keep in sync with crates/site-builder/src/components/navbar.rs; a test checks the six links. --> +<header class="aien-header"> + <div class="aien-header-inner"> + <a class="aien-brand" href="/" aria-label="AIENOS home"> + <span class="aien-brand-mark" aria-hidden="true"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line></svg></span> + <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" 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> + <ul class="aien-nav-secondary" aria-label="More"> + <li><a class="aien-nav-minor" href="/blog">Blog</a></li> + <li><a class="aien-nav-minor" href="/#waitlist">Waitlist</a></li> + <li><a class="aien-nav-minor" href="https://github.com/aien-dev">GitHub</a></li> + </ul> + </nav> + </div> +</header> <main class="research-wrap"> <div class="kicker">AIEN Research · Position Paper</div> <h1 class="paper-title">The Stapleton Doctrine</h1>