diff --git a/.crumb b/.crumb index c9e644b1..01710563 100644 --- a/.crumb +++ b/.crumb @@ -21,33 +21,39 @@ "generated": { "children": [ { - "digest": "90fc918eae1633a7f20116f7c5fc2014887fe65197409f36de71583c520e1067", - "last_commit": "2cbf276", + "digest": "1edee9310c52d0de083418290f39d513318c314225c551218a271b85eb057f3d", + "last_commit": "f90f086", + "name": ".github", + "purpose": "GitHub automation configuration" + }, + { + "digest": "20715fe1c40fe0476f015d9b1f4b61331a1c6aa32700e94459980902ad9aab0d", + "last_commit": "f90f086", "name": "crates", "purpose": "Native Rust website crates" }, { - "digest": "a5907fb83c89b640ed1e05bd39b42d746b6e708f0ff0d0e7f5ffe7b4379c6da3", - "last_commit": "2cbf276", + "digest": "05d3e7f8a8deacbfeb457d6ed281854c5b84ee5c781de1f6393d5b0c4d890deb", + "last_commit": "f90f086", "name": "public", "purpose": "Static public website assets" }, { - "digest": "e7e0d0e0f876a67aba52bfa09ae0a43fd3de37ea859de10a14af9bfbc829933c", - "last_commit": "18872cf", + "digest": "93532339fbd7029f6b17cedbc0a8373903ba1d8c67e7cd930ea1d59e704be20f", + "last_commit": "6146c17", "name": "scripts", "purpose": "Dependency-free public GitHub measurement collection and validation" } ], - "children_root": "sha256:47f7045548ee3780fd27583587547d7d6eb40623228be9f59f87a782097b0980", - "compiled_at": "2026-10-04T18:36:18Z", + "children_root": "sha256:8c1e0d9dfffd94506980acfa466a76473d31d59f0fe0235017fa33f4f88485a4", + "compiled_at": "2026-10-16T16:25:19Z", "compiler": "crumb-compile/1", - "digest": "sha256:687a29b42729aea99f3689cadd92b6731324f0fa01a85d7f8c7ad17001490989", + "digest": "sha256:d3ec57a5e2e4e614922bb737052a5da720bd2b7f848cede5c2aa130508db1fbc", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 114, - "generated_at_commit": "2cbf276ee7e6164b0cdb68af68566415d509da1d", - "source_tree": "sha256:f672cf61aa77b9725c6b02b71afe703838ca332a9a0d9ea87b0fff887798887b" + "files": 108, + "generated_at_commit": "f90f0869ad964b3ad4b6da41a6c4f9ec1eb649e3", + "source_tree": "sha256:2f2b53dfc2215853c81fd2b1cfcf3cd960292431a9c6886f7de7b743e0438f05" }, "progress": { "initial_edits": "Dashboard draft predates explicit Crumb reminder; subsequent integration is claimed and recorded.", diff --git a/.github/.crumb b/.github/.crumb index 35a895c4..d5f48ebf 100644 --- a/.github/.crumb +++ b/.github/.crumb @@ -7,21 +7,21 @@ "generated": { "children": [ { - "digest": "61c851642226f52c926e51e626015fd3e45b31fcdecca8b05c8d239c7e9dea88", - "last_commit": "18872cf", + "digest": "bade7bd65dd9b646089a16cca69bf9b57d2f94d6270ae31400639beded5e1b33", + "last_commit": "f90f086", "name": "workflows", "purpose": "Test, collect public project metrics and deploy the GitHub Pages site" } ], - "children_root": "sha256:0b3d4df43511d58259cf7d16050d9780532e58192af9b9898060b63976428c36", - "compiled_at": "2026-10-04T18:14:55Z", + "children_root": "sha256:e9a75bb9364d855ef8aa7dc0e2ed317e9e484c78e190133d7d023e2e6bc0f8eb", + "compiled_at": "2026-10-16T16:25:19Z", "compiler": "crumb-compile/1", - "digest": "sha256:915e0d919d283a9f8d1518534d74d4f1ee428326ffbd362e2e0f55de92eb64d3", + "digest": "sha256:1edee9310c52d0de083418290f39d513318c314225c551218a271b85eb057f3d", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 2, - "generated_at_commit": "37e78cf4d7664459d749a213da65377d999f53be", - "source_tree": "sha256:4a767118fc1c33b31932568659ed6588aeb6144cbfecb0902d8c4229df87852a" + "generated_at_commit": "f90f0869ad964b3ad4b6da41a6c4f9ec1eb649e3", + "source_tree": "sha256:a7472a83e482f8a5be74f4544fb1176b1462c5717edb81642d2f50e290a5304e" } }, "invariants": [ diff --git a/.github/workflows/.crumb b/.github/workflows/.crumb index 13e4de25..76310cf8 100644 --- a/.github/workflows/.crumb +++ b/.github/workflows/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T18:14:55Z", + "compiled_at": "2026-10-16T16:25:19Z", "compiler": "crumb-compile/1", - "digest": "sha256:61c851642226f52c926e51e626015fd3e45b31fcdecca8b05c8d239c7e9dea88", + "digest": "sha256:bade7bd65dd9b646089a16cca69bf9b57d2f94d6270ae31400639beded5e1b33", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 2, - "generated_at_commit": "37e78cf4d7664459d749a213da65377d999f53be", - "source_tree": "sha256:4a767118fc1c33b31932568659ed6588aeb6144cbfecb0902d8c4229df87852a" + "generated_at_commit": "f90f0869ad964b3ad4b6da41a6c4f9ec1eb649e3", + "source_tree": "sha256:a7472a83e482f8a5be74f4544fb1176b1462c5717edb81642d2f50e290a5304e" } }, "invariants": [ diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 781032f7..f5b4f38b 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -29,6 +29,10 @@ jobs: with: ref: ${{ inputs.branch }} fetch-depth: 0 + - name: Refresh facts from the public GitHub record + env: + GH_TOKEN: ${{ github.token }} + run: cargo run --release --manifest-path crates/site-builder/Cargo.toml -- facts facts.json - name: Run verification test suite run: cargo test --verbose --manifest-path crates/site-builder/Cargo.toml - name: Build static site with pure Rust engine diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index a2e49252..d823b6bd 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -29,6 +29,10 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} run: node scripts/collect-progress.mjs + - name: Refresh facts from the public GitHub record + env: + GH_TOKEN: ${{ github.token }} + run: cargo run --release --manifest-path crates/site-builder/Cargo.toml -- facts facts.json - name: Run verification test suite run: cargo test --verbose --manifest-path crates/site-builder/Cargo.toml - name: Build static site with pure Rust engine diff --git a/README.md b/README.md index daa1acbc..30d98aa2 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Live: [https://www.aienos.com](https://www.aienos.com) ## What the site covers -The homepage opens with "AIENOS is an owned experimental machine for turning search into verified understanding" (`crates/site-builder/src/components/home_loop.rs`) and goes on to the loop, the story, the receipts behind each claim, how the pieces fit together, the research, an interactive terminal, the current status of each layer, and the waitlist. Other pages: `/progress/`, `/blog/`, `/research/status/`, `/machine/`, `/discovery/` and the hubs `/experiments/`, `/evidence/` and `/philosophy/`. The build also writes `status.json`, `research-status.json` and `llms.txt`; `status.json` and `llms.txt` come from the same code as the homepage status section, and `research-status.json` is `crates/site-builder/data/research_status.json`. The homepage status section says "Public release" is PLANNED: pre-alpha, no supported release or installer yet. +The homepage opens with "AIENOS is an owned experimental machine for turning search into verified understanding" (`crates/site-builder/src/components/home_loop.rs`) and goes on to the loop, the story, the receipts behind each claim, how the pieces fit together, the research, an interactive terminal, the current status of each layer, and where to follow the work. Other pages: `/progress/`, `/blog/`, `/research/status/`, `/machine/`, `/discovery/` and the hubs `/experiments/`, `/evidence/` and `/philosophy/`. The build also writes `status.json`, `research-status.json` and `llms.txt`; `status.json` and `llms.txt` come from the same code as the homepage status section, and `research-status.json` is `crates/site-builder/data/research_status.json`. The homepage status section says "Public release" is PLANNED: pre-alpha, no supported release or installer yet. --- @@ -55,28 +55,6 @@ cargo run --release --manifest-path crates/site-builder/Cargo.toml -- verify dis `build dist` writes the site to `dist/` and then verifies it; `verify dist` re-checks an existing output directory. There is no dev server or preview command. `.github/workflows/pages.yml` runs the same steps (plus the Node progress collection described below) and deploys `dist/` to GitHub Pages on pushes to `main`. -## Rust waitlist API - -The waitlist form posts to the Rust API in [`server/`](server/). It stores -unique email addresses, a consent version, and signup time in SQLite. The API -accepts browser requests only from `aienos.com` and `www.aienos.com`; the -database is never exposed by the static website. - -```bash -cargo test --manifest-path server/Cargo.toml -bash server/deploy-local.sh -``` - -The deployment script builds a Rust release binary and starts a container on -`127.0.0.1:18171` with persistent data in -`~/.local/share/aienos-waitlist` (override with `AIENOS_WAITLIST_DATA_DIR`). -The GitHub Pages form posts to -`https://spark.tail987627.ts.net/aienos-waitlist/api/signup`, which is fixed in -`crates/site-builder/src/components/waitlist.rs` (there is no build-time override). -The public Tailscale Funnel route must forward `/aienos-waitlist` to the local listener. - ---- - ## License Licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See [LICENSE](LICENSE). The runtime itself, aien-sovereign-core, is also AGPL-3.0-or-later. Project values live in the nonbinding [COVENANT.md](https://github.com/aien-dev/aien-sovereign-core/blob/main/COVENANT.md), which grants and restricts no legal rights. diff --git a/crates/.crumb b/crates/.crumb index 3b5d2d12..6ff88add 100644 --- a/crates/.crumb +++ b/crates/.crumb @@ -7,21 +7,21 @@ "generated": { "children": [ { - "digest": "3d451bf759582ffe292d13eb0090ffd9dd72ea12170b72f2ce170ea4867d8875", - "last_commit": "2cbf276", + "digest": "00daa640fa3239cb6d801a6a4675397302508b9f62a083ccc73d4d5d62689323", + "last_commit": "f90f086", "name": "site-builder", "purpose": "Rust static site generator" } ], - "children_root": "sha256:3c82808c5daee5c350bd593055509ef4ac29f4b169b2fda7d11e11d3c951f989", - "compiled_at": "2026-10-04T18:36:18Z", + "children_root": "sha256:66b5154f3307b3cba077da6f11acb527c4316a2abc63049f26740e98e41090d1", + "compiled_at": "2026-10-16T16:25:19Z", "compiler": "crumb-compile/1", - "digest": "sha256:90fc918eae1633a7f20116f7c5fc2014887fe65197409f36de71583c520e1067", + "digest": "sha256:20715fe1c40fe0476f015d9b1f4b61331a1c6aa32700e94459980902ad9aab0d", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 27, - "generated_at_commit": "2cbf276ee7e6164b0cdb68af68566415d509da1d", - "source_tree": "sha256:f201d52201332a3b2ecceaf276f8295e71900358a70b853d2d3e0ab3a5cb910d" + "files": 26, + "generated_at_commit": "f90f0869ad964b3ad4b6da41a6c4f9ec1eb649e3", + "source_tree": "sha256:d86e168fd5eb2473ac34681b9c3b255ad74bbdb169c61fbb9962fbca18e9c041" } }, "invariants": [ diff --git a/crates/site-builder/.crumb b/crates/site-builder/.crumb index 1b279d58..48cb892c 100644 --- a/crates/site-builder/.crumb +++ b/crates/site-builder/.crumb @@ -7,8 +7,8 @@ "generated": { "children": [ { - "digest": "8ae52bc8ff3e9691190504eca01399268c31a9faf4edcb8ed4a3bc531d0fef21", - "last_commit": "2cbf276", + "digest": "0f51bc2b8f45e86e866a1943c870091310809539bf04e60b32df546c940224d0", + "last_commit": "f90f086", "name": "src", "purpose": "Page assembly and site build verification" }, @@ -19,15 +19,15 @@ "purpose": "Reviewed HTML templates for source-backed pages" } ], - "children_root": "sha256:fcdd9466b023828e06926956274bb5e6eeff286be04cb2815781bb8abbbe09aa", - "compiled_at": "2026-10-04T18:36:18Z", + "children_root": "sha256:a69250df0db4f4046732f074e7f513403a098d9f7e9f58f14f5bff62bf66fd71", + "compiled_at": "2026-10-16T16:25:19Z", "compiler": "crumb-compile/1", - "digest": "sha256:3d451bf759582ffe292d13eb0090ffd9dd72ea12170b72f2ce170ea4867d8875", + "digest": "sha256:00daa640fa3239cb6d801a6a4675397302508b9f62a083ccc73d4d5d62689323", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 27, - "generated_at_commit": "2cbf276ee7e6164b0cdb68af68566415d509da1d", - "source_tree": "sha256:f201d52201332a3b2ecceaf276f8295e71900358a70b853d2d3e0ab3a5cb910d" + "files": 26, + "generated_at_commit": "f90f0869ad964b3ad4b6da41a6c4f9ec1eb649e3", + "source_tree": "sha256:d86e168fd5eb2473ac34681b9c3b255ad74bbdb169c61fbb9962fbca18e9c041" } }, "invariants": [ diff --git a/crates/site-builder/src/.crumb b/crates/site-builder/src/.crumb index 5239ae6d..494f6811 100644 --- a/crates/site-builder/src/.crumb +++ b/crates/site-builder/src/.crumb @@ -7,21 +7,21 @@ "generated": { "children": [ { - "digest": "0492b15405c36be1bf95408cf5cb8c889260d559db13b77cf03e3c5f724874ec", - "last_commit": "2cbf276", + "digest": "082bdf6b4ddf3fe1e7fd957e7db7e6117c4fa91a02147445ba402dc2c724b899", + "last_commit": "f90f086", "name": "components", "purpose": "Reusable page content and navigation" } ], - "children_root": "sha256:5416b14f88b0274da76f507edd993289ce0d430cb5dff013ab87b3b441b4add5", - "compiled_at": "2026-10-04T18:36:18Z", + "children_root": "sha256:68722655c9bfba6793e3a9353736e181c35dc12e166b501b303438e5124c9973", + "compiled_at": "2026-10-16T16:25:19Z", "compiler": "crumb-compile/1", - "digest": "sha256:8ae52bc8ff3e9691190504eca01399268c31a9faf4edcb8ed4a3bc531d0fef21", + "digest": "sha256:0f51bc2b8f45e86e866a1943c870091310809539bf04e60b32df546c940224d0", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 24, - "generated_at_commit": "2cbf276ee7e6164b0cdb68af68566415d509da1d", - "source_tree": "sha256:c7152c7f6e79a748057a264412ddaf72ffca7c98d27de3a5361ad560a5f5f63f" + "files": 23, + "generated_at_commit": "f90f0869ad964b3ad4b6da41a6c4f9ec1eb649e3", + "source_tree": "sha256:d411b70d4b182d0f5adf1cd8a511735228f30637e29c4bf36f05921e53e78d88" } }, "invariants": [ diff --git a/crates/site-builder/src/components/.crumb b/crates/site-builder/src/components/.crumb index 6387d172..c12155cf 100644 --- a/crates/site-builder/src/components/.crumb +++ b/crates/site-builder/src/components/.crumb @@ -10,14 +10,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T18:17:49Z", + "compiled_at": "2026-10-16T16:25:19Z", "compiler": "crumb-compile/1", - "digest": "sha256:0492b15405c36be1bf95408cf5cb8c889260d559db13b77cf03e3c5f724874ec", + "digest": "sha256:082bdf6b4ddf3fe1e7fd957e7db7e6117c4fa91a02147445ba402dc2c724b899", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 21, - "generated_at_commit": "81799d091d92850a4107359cdb3887b1eba59fbf", - "source_tree": "sha256:eaf9571ac7732f210ac86f1b556407a69f8444e1ae0179aabef2263ee144faa7" + "files": 19, + "generated_at_commit": "f90f0869ad964b3ad4b6da41a6c4f9ec1eb649e3", + "source_tree": "sha256:01bb5d30ef2b86cecc9f6e7825ff2d87002ccf8d704b2f5098a58ee90d86e61e" } }, "invariants": [ diff --git a/crates/site-builder/src/components/benchmarks.rs b/crates/site-builder/src/components/benchmarks.rs deleted file mode 100644 index e31549fc..00000000 --- a/crates/site-builder/src/components/benchmarks.rs +++ /dev/null @@ -1,75 +0,0 @@ -use maud::{html, Markup}; - -pub fn render_benchmarks() -> Markup { - let benchmarks = [ - ("Python Microservice Baseline", "Python 3.12 + FastAPI + Uvicorn", "44.76 MB", "Baseline", "1.28 ms", "7,252 req/s", true), - ("Sovereign Gateway & Heartbeat", "Native Rust (Grace Blackwell)", "4.56 MB", "-89.8%", "< 0.40 ms", "24,800 req/s", false), - ("Real-time Telemetry Cockpit", "Native Rust + Axum Gateway", "12.90 MB", "-71.2%", "1.63 ms", "5,840 req/s", false), - ("Canonical Memory Engine", "Native Rust + SQLite WAL", "18.66 MB", "-58.3%", "0.50 ms", "19,367 req/s", false), - ("Neural Embedding Microservice", "Rust + ONNX Runtime (BGE-M3)", "777.43 MB", "Optimized", "0.26 ms", "34,685 req/s", false), - ]; - - html! { - section id="benchmarks" style="padding: 80px 0; border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface);" { - div class="container" { - div style="margin-bottom: 32px;" { - div class="badge badge-green" style="margin-bottom: 12px;" { - "EMPIRICAL AUDIT RESULTS" - } - h2 style="font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary);" { - "Verified Performance Benchmarks" - } - p style="color: var(--text-secondary); margin-top: 8px; max-width: 720px;" { - "Real measurements from Measurement Suite v0.2.0 on NVIDIA DGX Spark (NVIDIA Grace Blackwell GB10, aarch64, 128 GB coherent unified memory). Concurrency C=10 over 500 requests per endpoint." - } - } - - div style="overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-base);" { - table style="width: 100%; border-collapse: collapse; text-align: left; font-family: var(--font-sans); font-size: 14px;" { - thead { - tr style="border-bottom: 1px solid var(--border-subtle); background: rgba(14, 18, 25, 0.9); font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase;" { - th style="padding: 14px 20px;" { "Workload / Service" } - th style="padding: 14px 20px;" { "Architecture / Stack" } - th style="padding: 14px 20px;" { "Resident Memory (RSS)" } - th style="padding: 14px 20px;" { "Reduction" } - th style="padding: 14px 20px;" { "p50 Latency" } - th style="padding: 14px 20px;" { "Throughput" } - } - } - tbody { - @for (idx, (workload, runtime, rss, diff, p50, throughput, is_base)) in benchmarks.iter().enumerate() { - tr style=(if *is_base { "border-bottom: 1px solid var(--border-subtle); background: rgba(245, 158, 11, 0.03);" } else if idx == benchmarks.len() - 1 { "border-bottom: none;" } else { "border-bottom: 1px solid var(--border-subtle);" }) { - td style="padding: 16px 20px; font-weight: 600; color: var(--text-primary);" { - (workload) - } - td style="padding: 16px 20px; color: var(--text-secondary); font-family: var(--font-mono); font-size: 12px;" { - (runtime) - } - td class="tabular-nums" style=(if *is_base { "padding: 16px 20px; font-family: var(--font-mono); font-weight: 700; color: var(--text-primary);" } else { "padding: 16px 20px; font-family: var(--font-mono); font-weight: 700; color: var(--accent-green);" }) { - (rss) - } - td style="padding: 16px 20px;" { - span class="tabular-nums" style=(if *is_base { "font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent-amber);" } else { "font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent-green);" }) { - (diff) - } - } - td class="tabular-nums" style="padding: 16px 20px; font-family: var(--font-mono); color: var(--text-secondary);" { - (p50) - } - td class="tabular-nums" style="padding: 16px 20px; font-family: var(--font-mono); font-weight: 600; color: var(--text-primary);" { - (throughput) - } - } - } - } - } - } - - div style="margin-top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); font-family: var(--font-mono);" { - span { "Source: github.com/aien-dev/benchmarks" } - span { "Zero interpreter overhead in production path" } - } - } - } - } -} diff --git a/crates/site-builder/src/components/ecosystem.rs b/crates/site-builder/src/components/ecosystem.rs deleted file mode 100644 index 4045c95a..00000000 --- a/crates/site-builder/src/components/ecosystem.rs +++ /dev/null @@ -1,103 +0,0 @@ -use maud::{html, Markup, PreEscaped}; - -pub fn render_ecosystem() -> Markup { - let projects = [ - ( - "aien-sovereign-core", - "AIEN Sovereign Core", - "Core native agent runtime, fail-closed safety engine, Axum web gateway, and an inference ABI whose GPU path runs AIEN's own Omega kernels.", - "Rust / Omega", - "Core Engine", - "https://github.com/aien-dev/aien-sovereign-core" - ), - ( - "spark-cockpit", - "AIEN Universal Cockpit", - "Ultra-low-latency Axum HTTP/SSE gateway and PWA console delivering real-time telemetry, reasoning logs, and vault inspection.", - "Rust / Axum", - "12.9 MB RSS", - "https://github.com/aien-dev" - ), - ( - "spark-rsi", - "Spark RSI Engine", - "Recursive Self-Improvement engine with TPM ECDSA-signed cryptographic ledger (.rsi/ledger.db) and dual-jail container isolation.", - "Rust / TPM 2.0", - "Cryptographic", - "https://github.com/aien-dev/spark-rsi" - ), - ( - "openclaw-rs", - "OpenClaw Sovereign Host", - "Ultra-high-performance process supervisor and event dispatcher operating under 5MB resident set size.", - "Rust", - "4.56 MB RSS", - "https://github.com/aien-dev/openclaw-rs" - ), - ( - "cortex-rs", - "Cortex Canonical Memory", - "Canonical memory and vector storage engine with SQLite WAL persistence, sub-millisecond search, and graph traversal.", - "Rust / SQLite", - "19k req/s", - "https://github.com/aien-dev/cortex-rs" - ), - ]; - - let project_items: Vec<(&str, &str, &str, &str, &str, &str, String)> = projects - .iter() - .map(|(repo, name, desc, lang, badge, url)| { - let label = format!("Visit {}", name); - (*repo, *name, *desc, *lang, *badge, *url, label) - }) - .collect(); - - html! { - section id="ecosystem" style="padding: 80px 0; border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface);" { - div class="container" { - div style="margin-bottom: 48px;" { - div class="badge badge-green" style="margin-bottom: 12px;" { - "OPEN SOURCE SUBSYSTEMS" - } - h2 style="font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary);" { - "The AIEN Sovereign Ecosystem" - } - p style="color: var(--text-secondary); margin-top: 8px; max-width: 680px;" { - "A unified network of pure compiled Rust repositories operating under the Sovereign Reciprocal Commons License." - } - } - - div class="responsive-card-grid" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px;" { - @for (_repo, name, desc, lang, badge, url, label) in &project_items { - div class="glow-box" style="padding: 28px; border-radius: 8px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;" { - div { - div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;" { - span class="badge badge-blue" style="font-size: 10px;" { - (badge) - } - a href=(url) target="_blank" rel="noopener noreferrer" aria-label=(label) style="color: var(--text-muted); transition: color 0.15s ease;" { - (PreEscaped(r#""#)) - } - } - h3 style="font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px;" { - a href=(url) target="_blank" rel="noopener noreferrer" style="color: inherit;" { - (name) - } - } - p style="color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin: 0;" { - (desc) - } - } - div style="display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border-subtle); font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);" { - span { (lang) } - a href=(url) target="_blank" rel="noopener noreferrer" style="color: var(--accent-green); font-weight: 600;" { - "Inspect Code →" - } - } - } - } - } - } - } - } -} diff --git a/crates/site-builder/src/components/follow.rs b/crates/site-builder/src/components/follow.rs new file mode 100644 index 00000000..f43d034e --- /dev/null +++ b/crates/site-builder/src/components/follow.rs @@ -0,0 +1,39 @@ +use maud::{html, Markup}; + +/// Replaces the waitlist. There is no release to wait for; there is work to follow. +pub fn render_follow() -> Markup { + html! { + section id="follow" style="padding: 80px 0; border-bottom: 1px solid var(--border-subtle); background: var(--bg-base);" { + div class="container" { + div class="glow-box" style="max-width: 760px; margin: 0 auto; padding: 48px 40px; border-radius: 12px; text-align: center; background: var(--bg-surface);" { + div class="badge badge-green" style="margin-bottom: 16px; display: inline-flex;" { "BUILT IN THE OPEN" } + h2 style="font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 16px;" { + "Follow the work." + } + p style="color: var(--text-secondary); line-height: 1.6; max-width: 600px; margin: 0 auto 32px auto; font-size: 16px;" { + "There is no release to wait for and no list to join. Everything happens in public repositories, every change is judged on the machine itself, and this page reads the record every hour. Watch the repositories, read the receipts, open an issue." + } + div style="display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;" { + a href="https://github.com/aien-dev" target="_blank" rel="noopener noreferrer" style="background: var(--accent-green); color: var(--bg-base); border-radius: 4px; padding: 12px 22px; font-family: var(--font-mono); font-size: 13px; font-weight: 700;" { + "GitHub: aien-dev" + } + a href="https://github.com/aien-dev/aienix" target="_blank" rel="noopener noreferrer" style="background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-subtle); border-radius: 4px; padding: 12px 22px; font-family: var(--font-mono); font-size: 13px; font-weight: 600;" { + "Aienix, the core tree" + } + a href="/progress/" style="background: transparent; color: var(--text-secondary); border: 1px solid var(--border-subtle); border-radius: 4px; padding: 12px 22px; font-family: var(--font-mono); font-size: 13px; font-weight: 600;" { + "Project progress" + } + } + p style="color: var(--text-muted); font-size: 13px; margin-top: 28px; font-family: var(--font-mono);" { + "Machine-readable: " + a href="/status.json" style="color: var(--text-secondary);" { "status.json" } + " · " + a href="/facts.json" style="color: var(--text-secondary);" { "facts.json" } + " · " + a href="/llms.txt" style="color: var(--text-secondary);" { "llms.txt" } + } + } + } + } + } +} diff --git a/crates/site-builder/src/components/footer.rs b/crates/site-builder/src/components/footer.rs index c6922bb0..666862cb 100644 --- a/crates/site-builder/src/components/footer.rs +++ b/crates/site-builder/src/components/footer.rs @@ -61,7 +61,7 @@ pub const FOOTER_GROUPS: [(&str, &[FooterLink]); 6] = [ const FOOTER_MORE: [FooterLink; 6] = [ ("Progress", "/progress/", false), ("Blog", "/blog", false), - ("Waitlist", "/#waitlist", false), + ("Follow", "/#follow", false), ("Licensing", "/licensing/", false), ("GitHub", "https://github.com/aien-dev", true), ("Drake Stapleton", "https://www.drakestapleton.com", true), diff --git a/crates/site-builder/src/components/install.rs b/crates/site-builder/src/components/install.rs deleted file mode 100644 index 6802f7ce..00000000 --- a/crates/site-builder/src/components/install.rs +++ /dev/null @@ -1,122 +0,0 @@ -use maud::{html, Markup, PreEscaped}; - -pub fn render_install() -> Markup { - let methods = [ - ( - "Linux & macOS (Apple Silicon / Intel)", - "curl -fsSL https://aienos.com/install.sh | bash", - "Universal 1-line native installer. Detects platform architecture, compiles release binaries, and configures local runtime." - ), - ( - "Windows (PowerShell)", - "git clone --depth 1 https://github.com/aien-dev/aien-sovereign-core.git; cd aien-sovereign-core; .\\install.ps1", - "Checks out the source, configures the local runtime, and compiles native sovereign binaries." - ), - ( - "Build From Source (Cargo)", - "git clone https://github.com/aien-dev/aien-sovereign-core.git && cd aien-sovereign-core && cargo build --release", - "Full source inspection and compilation for custom architectures, specialized kernels, or air-gapped deployments." - ), - ]; - - let dns_records = [ - ("A", "@", "185.199.108.153", "1800"), - ("A", "@", "185.199.109.153", "1800"), - ("A", "@", "185.199.110.153", "1800"), - ("A", "@", "185.199.111.153", "1800"), - ("AAAA", "@", "2606:50c0:8000::153", "1800"), - ("AAAA", "@", "2606:50c0:8001::153", "1800"), - ("AAAA", "@", "2606:50c0:8002::153", "1800"), - ("AAAA", "@", "2606:50c0:8003::153", "1800"), - ("CNAME", "www", "aien-dev.github.io.", "1800"), - ]; - - let formatted_methods: Vec<(&str, &str, &str, String, String, String)> = methods - .iter() - .enumerate() - .map(|(idx, (os, cmd, desc))| { - let method_idx = format!("METHOD 0{}", idx + 1); - let copy_label = format!("Copy install command for {}", os); - let copy_js = format!( - "navigator.clipboard.writeText('{}').then(() => {{ this.innerText = 'COPIED'; setTimeout(() => this.innerText = 'COPY', 2000); }})", - cmd - ); - (*os, *cmd, *desc, method_idx, copy_label, copy_js) - }) - .collect(); - - html! { - section id="install" style="padding: 80px 0; border-bottom: 1px solid var(--border-subtle);" { - div class="container" { - div style="margin-bottom: 40px;" { - div class="badge badge-blue" style="margin-bottom: 12px;" { - "DEPLOYMENT & INSTALLATION" - } - h2 style="font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary);" { - "Installation & Deployment" - } - p style="color: var(--text-secondary); margin-top: 8px; max-width: 680px;" { - "Install the complete sovereign ecosystem with zero configuration. Free and open source for all humanity." - } - } - - div style="display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px;" { - @for (os, cmd, desc, method_idx, copy_label, copy_js) in &formatted_methods { - div class="glow-box" style="padding: 24px; border-radius: 8px;" { - div class="install-method-heading" style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;" { - h3 style="font-size: 16px; font-weight: 700; color: var(--text-primary);" { - (*os) - } - span style="font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);" { - (method_idx) - } - } - p style="color: var(--text-secondary); font-size: 13px; line-height: 1.5; margin-bottom: 16px;" { - (*desc) - } - div class="install-method-command" style="background: var(--bg-base); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;" { - span style="font-family: var(--font-mono); font-size: 13px; color: var(--accent-green); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;" { - (*cmd) - } - button type="button" aria-label=(copy_label) onclick=(copy_js) style="background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border-subtle); border-radius: 4px; padding: 6px 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; cursor: pointer;" { - "COPY" - } - } - } - } - } - - div style="margin-top: 48px;" { - div style="display: flex; align-items: center; gap: 8px; margin-bottom: 16px;" { - (PreEscaped(r#""#)) - h3 style="font-size: 16px; font-weight: 700; color: var(--text-primary);" { - "Sovereign DNS Invariant & Live Routing" - } - } - div style="overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: 6px; background: var(--bg-base);" { - table style="width: 100%; border-collapse: collapse; text-align: left; font-family: var(--font-mono); font-size: 12px;" { - thead { - tr style="border-bottom: 1px solid var(--border-subtle); background: rgba(14, 18, 25, 0.9); color: var(--text-muted); font-size: 11px;" { - th style="padding: 10px 16px;" { "TYPE" } - th style="padding: 10px 16px;" { "NAME" } - th style="padding: 10px 16px;" { "VALUE / DESTINATION" } - th style="padding: 10px 16px;" { "TTL" } - } - } - tbody { - @for (idx, (typ, name, val, ttl)) in dns_records.iter().enumerate() { - tr style=(if idx == dns_records.len() - 1 { "border-bottom: none;" } else { "border-bottom: 1px solid var(--border-subtle);" }) { - td style="padding: 10px 16px; color: var(--accent-blue); font-weight: 600;" { (typ) } - td style="padding: 10px 16px; color: var(--text-secondary);" { (name) } - td style="padding: 10px 16px; color: var(--accent-green);" { (val) } - td class="tabular-nums" style="padding: 10px 16px; color: var(--text-muted);" { (ttl) } - } - } - } - } - } - } - } - } - } -} diff --git a/crates/site-builder/src/components/live.rs b/crates/site-builder/src/components/live.rs new file mode 100644 index 00000000..e6b80994 --- /dev/null +++ b/crates/site-builder/src/components/live.rs @@ -0,0 +1,125 @@ +//! The live part of the status section: facts read from the public GitHub record at build +//! time (`facts.json`, written by `site-builder facts`). Nothing here is typed by hand. + +use maud::{html, Markup}; + +use crate::facts::{short_date, Facts}; + +fn short_sha(sha: &str) -> &str { + if sha.len() >= 12 { &sha[..12] } else { sha } +} + +/// A real verification receipt for the latest commit on the sovereign core's main branch, +/// as published by the Spark judge's check run. Set like a till print, because it is one. +pub fn render_receipt(facts: &Facts) -> Markup { + let r = &facts.receipt; + let (class, verdict) = match r.state.as_str() { + "success" => ("pass", "PASS"), + "failure" | "error" => ("fail", "FAIL"), + "pending" => ("pending", "PENDING"), + _ => ("pending", "NO RECEIPT YET"), + }; + let repo_short = r.repo.rsplit('/').next().unwrap_or(&r.repo); + html! { + aside class="receipt" id="receipt" aria-label="Latest verification receipt" { + h3 { "AIEN VERIFICATION" } + div class="rule" {} + div class="row" { span { "repository" } span { (repo_short) } } + div class="row" { span { "branch" } span { "main" } } + div class="row" { span { "commit" } span { (short_sha(&r.sha)) } } + @if !r.committed_at.is_empty() { + div class="row" { span { "committed" } span { (short_date(&r.committed_at)) } } + } + div class="row" { span { "judge" } span { "the Spark itself" } } + div class="rule" {} + @if !r.commit_title.is_empty() { + p { (r.commit_title) } + div class="rule" {} + } + div class=(format!("verdict {class}")) { (verdict) } + @if !r.description.is_empty() { + p class="receipt-note" { (r.description) } + } + div class="foot" { + @if !r.target_url.is_empty() { + @if !r.updated_at.is_empty() { "Published " (short_date(&r.updated_at)) ". " } + a href=(r.target_url) rel="noopener" { "Open the receipt" } + } @else { + "No verification has been published for this commit." + } + } + } + } +} + +/// The core components with their last merged change and open changes, plus the newest +/// decision records. Rendered inside the status section. +pub fn render_live(facts: &Facts) -> Markup { + html! { + div class="live" id="live" { + div class="live-head" { + div class="badge badge-blue" { "READ FROM THE PUBLIC RECORD" } + h3 { "The components, as of the last build" } + p { + "Six repositories make up the core. The last two columns are read from GitHub when this page is built, not typed by hand. Facts gathered at " + span class="mono" { (facts.generated_at) } + "; the page is rebuilt every hour." + } + } + div class="live-grid" { + table class="status-table" { + thead { + tr { + th { "Component" } + th { "What it is" } + th { "Last merged change" } + th class="num" { "Open" } + } + } + tbody { + @for c in &facts.components { + tr { + td class="name" { + a href=(c.url) rel="noopener" { (c.name) } + small { (c.repo.rsplit('/').next().unwrap_or(&c.repo)) } + } + td { (c.role) } + td { + @if let Some(m) = &c.last_merge { + a class="merge" href=(m.url) rel="noopener" { (m.title) } + span class="when" { (short_date(&m.merged_at)) } + } @else { + span class="merge" { "No merged changes on record" } + } + } + td class="num" { (c.open_prs) } + } + } + } + } + (render_receipt(facts)) + } + @if !facts.decisions.is_empty() { + div class="decisions" { + h4 { "Newest decision records" } + ul { + @for d in &facts.decisions { + li { + a href=(d.url) rel="noopener" { + span class="mono" { "ADR " (d.id) } + " " (d.title) + } + } + } + } + p class="small" { + a href="https://github.com/aien-dev/aien-architecture/tree/main/docs/adr" rel="noopener" { "All decision records" } + " · " + a href="/facts.json" { "facts.json" } + ", the data behind this block." + } + } + } + } + } +} diff --git a/crates/site-builder/src/components/mod.rs b/crates/site-builder/src/components/mod.rs index 18d8b970..7ed0b8db 100644 --- a/crates/site-builder/src/components/mod.rs +++ b/crates/site-builder/src/components/mod.rs @@ -1,12 +1,9 @@ -pub mod benchmarks; pub mod blog; pub mod discovery; -pub mod ecosystem; pub mod evidence; pub mod footer; pub mod home_loop; pub mod hubs; -pub mod install; pub mod machine; pub mod matrix; pub mod narrative; @@ -17,4 +14,5 @@ pub mod research_status; pub mod status; pub mod story; pub mod terminal; -pub mod waitlist; +pub mod live; +pub mod follow; diff --git a/crates/site-builder/src/components/navbar.rs b/crates/site-builder/src/components/navbar.rs index 434c0e9f..ac6e56f8 100644 --- a/crates/site-builder/src/components/navbar.rs +++ b/crates/site-builder/src/components/navbar.rs @@ -17,7 +17,7 @@ pub const NAV_PRIMARY: [(&str, &str); 6] = [ pub const NAV_SECONDARY: [(&str, &str); 4] = [ ("Progress", "/progress/"), ("Blog", "/blog"), - ("Waitlist", "/#waitlist"), + ("Follow", "/#follow"), ("GitHub", "https://github.com/aien-dev"), ]; diff --git a/crates/site-builder/src/components/status.rs b/crates/site-builder/src/components/status.rs index 9ed1eb0a..e93b3919 100644 --- a/crates/site-builder/src/components/status.rs +++ b/crates/site-builder/src/components/status.rs @@ -1,5 +1,7 @@ use maud::{html, Markup}; +use crate::facts::Facts; + use super::research_status as rs; /// The canonical public state of the project. This list is the single @@ -89,7 +91,7 @@ fn chip_style(status: &str) -> &'static str { } } -pub fn render_status() -> Markup { +pub fn render_status(facts: &Facts) -> Markup { let layers = layer_states(); html! { @@ -136,6 +138,8 @@ pub fn render_status() -> Markup { } } + (super::live::render_live(facts)) + div style="display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px;" { a href="https://github.com/aien-dev" target="_blank" rel="noopener noreferrer" style="background: var(--accent-green); color: var(--bg-base); border-radius: 4px; padding: 10px 20px; font-family: var(--font-mono); font-size: 13px; font-weight: 700;" { "Follow the work on GitHub" @@ -143,8 +147,8 @@ pub fn render_status() -> Markup { a href="#research" style="background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-subtle); border-radius: 4px; padding: 10px 20px; font-family: var(--font-mono); font-size: 13px; font-weight: 600;" { "Read the research" } - a href="#waitlist" style="background: transparent; color: var(--text-secondary); border: 1px solid var(--border-subtle); border-radius: 4px; padding: 10px 20px; font-family: var(--font-mono); font-size: 13px; font-weight: 600;" { - "Join the waitlist" + a href="#follow" style="background: transparent; color: var(--text-secondary); border: 1px solid var(--border-subtle); border-radius: 4px; padding: 10px 20px; font-family: var(--font-mono); font-size: 13px; font-weight: 600;" { + "Follow the work" } } } diff --git a/crates/site-builder/src/components/terminal.rs b/crates/site-builder/src/components/terminal.rs index 1fe066ca..096e2d73 100644 --- a/crates/site-builder/src/components/terminal.rs +++ b/crates/site-builder/src/components/terminal.rs @@ -63,7 +63,7 @@ pub fn render_terminal() -> Markup { } div class="terminal-log-line sys" { span class="sys-msg" style="color: var(--accent-blue);" { - "[*] Hardware TPM 2.0 vault locked. Zero disk secrets invariant active." + "[*] Capability vault sealed. Zero disk secrets invariant active." } } div class="terminal-log-line sys" { diff --git a/crates/site-builder/src/components/waitlist.rs b/crates/site-builder/src/components/waitlist.rs deleted file mode 100644 index 45a68145..00000000 --- a/crates/site-builder/src/components/waitlist.rs +++ /dev/null @@ -1,139 +0,0 @@ -use maud::{html, Markup, PreEscaped}; - -pub fn render_waitlist() -> Markup { - let waitlist_endpoint = "https://spark.tail987627.ts.net/aienos-waitlist/api/signup"; - let consent_version = "2026-09-23-v1"; - - html! { - section id="waitlist" style="padding: 80px 0; border-bottom: 1px solid var(--border-subtle); background: var(--bg-base); position: relative;" { - div class="container" { - div class="glow-box" style="max-width: 760px; margin: 0 auto; padding: 48px 40px; border-radius: 12px; text-align: center; background: var(--bg-surface);" { - div class="badge badge-green" style="margin-bottom: 16px; display: inline-flex; align-items: center; gap: 6px;" { - (PreEscaped(r#""#)) - span { "COMING SOON" } - } - - h2 style="font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 16px;" { - "AIEN is coming." - } - - p style="color: var(--text-secondary); line-height: 1.6; max-width: 600px; margin: 0 auto 32px auto; font-size: 16px;" { - "AIENOS is in active development. AIEN, the intelligence layer built on the sovereign stack, is on its way. Join the waitlist and be first to know when early access opens." - } - - div id="waitlist-success" style="display: none; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; border-radius: 8px; background: rgba(0, 229, 153, 0.08); border: 1px solid var(--accent-green); color: var(--accent-green); font-weight: 600; max-width: 480px; margin: 0 auto;" { - (PreEscaped(r#""#)) - span { "Received. We will email you when AIEN early access opens." } - } - - form id="waitlist-form" style="display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center;" { - div style="position: relative; flex: 1 1 260px; display: flex; align-items: center;" { - div style="position: absolute; left: 14px; color: var(--text-muted); pointer-events: none; display: flex; align-items: center;" { - (PreEscaped(r#""#)) - } - input - id="waitlist-email" - type="email" - required - placeholder="you@example.com" - maxlength="254" - autocomplete="email" - name="email" - aria-label="Email address for the AIEN waitlist" - style="width: 100%; padding: 14px 14px 14px 40px; border-radius: 8px; border: 1px solid var(--border-subtle); background: var(--bg-base); color: var(--text-primary); font-size: 14px; font-family: var(--font-sans); outline: none; cursor: text;" - {} - } - - div aria-hidden="true" style="position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);" { - label for="waitlist-website" { "Website" } - input id="waitlist-website" name="website" type="text" tabindex="-1" autocomplete="off" {} - } - - label style="display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; color: var(--text-secondary); font-size: 13px; line-height: 1.5;" { - input id="waitlist-consent" type="checkbox" required style="margin-top: 3px;" {} - span { "Use my email only to announce AIEN early access. Store my address and signup time for that purpose." } - } - - button - id="waitlist-submit" - type="submit" - style="padding: 14px 24px; border-radius: 8px; border: 1px solid var(--accent-green); background: rgba(0, 229, 153, 0.12); color: var(--accent-green); font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); white-space: nowrap;" - { - span id="waitlist-submit-text" { "NOTIFY ME" } - (PreEscaped(r#""#)) - } - } - - p id="waitlist-error" role="alert" style="display: none; color: #f59e0b; font-size: 13px; margin-top: 12px;" {} - - p style="color: var(--text-muted); font-size: 12px; margin-top: 20px; font-family: var(--font-mono);" { - "One early access announcement. No marketing list. Your email stays private." - } - } - } - - script { - (PreEscaped(format!(r#" - (function() {{ - const form = document.getElementById('waitlist-form'); - const emailInput = document.getElementById('waitlist-email'); - const consentInput = document.getElementById('waitlist-consent'); - const websiteInput = document.getElementById('waitlist-website'); - const submitBtn = document.getElementById('waitlist-submit'); - const submitText = document.getElementById('waitlist-submit-text'); - const successDiv = document.getElementById('waitlist-success'); - const errorP = document.getElementById('waitlist-error'); - const endpoint = '{}'; - const consentVer = '{}'; - - if (!form) return; - - form.addEventListener('submit', async function(e) {{ - e.preventDefault(); - if (!consentInput.checked) return; - - submitBtn.disabled = true; - submitText.textContent = 'JOINING...'; - errorP.style.display = 'none'; - - try {{ - const res = await fetch(endpoint, {{ - method: 'POST', - headers: {{ - 'Content-Type': 'application/json', - 'Accept': 'application/json' - }}, - body: JSON.stringify({{ - email: emailInput.value.trim(), - consent: true, - consentVersion: consentVer, - website: websiteInput ? websiteInput.value : '' - }}) - }}); - - if (!res.ok) {{ - const msg = res.status === 429 - ? 'Please try again later.' - : 'We could not save your email. Please try again.'; - errorP.textContent = msg; - errorP.style.display = 'block'; - submitBtn.disabled = false; - submitText.textContent = 'NOTIFY ME'; - return; - }} - - form.style.display = 'none'; - successDiv.style.display = 'flex'; - }} catch (err) {{ - errorP.textContent = 'The signup service is unavailable. Please try again shortly.'; - errorP.style.display = 'block'; - submitBtn.disabled = false; - submitText.textContent = 'NOTIFY ME'; - }} - }}); - }})(); - "#, waitlist_endpoint, consent_version))) - } - } - } -} diff --git a/crates/site-builder/src/facts.rs b/crates/site-builder/src/facts.rs new file mode 100644 index 00000000..c937e9ce --- /dev/null +++ b/crates/site-builder/src/facts.rs @@ -0,0 +1,316 @@ +//! Live facts for the site. `facts` gathers them from GitHub through the `gh` CLI and writes +//! `facts.json`; `build` reads that file and renders it. Nothing on the page that can change is +//! typed by hand: it either comes from here or it is not on the page. + +use serde::{Deserialize, Serialize}; +use std::path::Path; +use std::process::Command; + +/// Editorial part: what each component is. Live part is filled in by `gather`. +pub const COMPONENTS: &[(&str, &str, &str, &str)] = &[ + // key, display name, repository, role (one line, ours) + ("aienos", "AIENOS", "aien-dev/aienos", "The operating system. Agent-first; the model is never the kernel."), + ("omega", "Omega", "aien-dev/omega", "The language and GPU engine the stack is being rewritten into."), + ("sovereign-core", "Sovereign core", "aien-dev/aien-sovereign-core", "Host runtime, inference ABI, and the pipeline that judges every change."), + ("architecture", "Architecture", "aien-dev/aien-architecture", "Flows, boundaries, decision records, execution plan."), + ("protocols", "Protocols", "aien-dev/aien-protocols", "Specifications, wire protocols, schemas."), + ("physics", "Physics", "aien-dev/physics", "The FORGE realization layer and the boot artefacts for the GB10."), +]; + +#[derive(Debug, Clone, Serialize, Deserialize, Default)] +pub struct Merge { + pub number: u64, + pub title: String, + pub merged_at: String, + pub url: String, +} + +#[derive(Debug, Clone, Serialize, Deserialize, Default)] +pub struct Component { + pub key: String, + pub name: String, + pub repo: String, + pub role: String, + pub url: String, + pub pushed_at: String, + pub open_prs: u64, + pub last_merge: Option, +} + +#[derive(Debug, Clone, Serialize, Deserialize, Default)] +pub struct Decision { + pub id: String, + pub title: String, + pub url: String, +} + +/// The "AIEN Verification" commit status on the latest commit of a repository's main branch: +/// the receipt that the Spark judge published for it. +#[derive(Debug, Clone, Serialize, Deserialize, Default)] +pub struct Receipt { + pub repo: String, + pub sha: String, + pub commit_title: String, + pub committed_at: String, + /// success | failure | pending | none + pub state: String, + pub description: String, + pub target_url: String, + pub updated_at: String, +} + +#[derive(Debug, Clone, Serialize, Deserialize, Default)] +pub struct Facts { + pub generated_at: String, + pub components: Vec, + pub decisions: Vec, + pub receipt: Receipt, +} + +impl Facts { + pub fn load(path: &Path) -> Result { + let text = std::fs::read_to_string(path) + .map_err(|e| format!("cannot read {}: {e} (run `site-builder facts {}` first)", path.display(), path.display()))?; + serde_json::from_str(&text).map_err(|e| format!("{} is not a facts file: {e}", path.display())) + } + + pub fn save(&self, path: &Path) -> Result<(), String> { + let text = serde_json::to_string_pretty(self).map_err(|e| e.to_string())?; + std::fs::write(path, text + "\n").map_err(|e| format!("cannot write {}: {e}", path.display())) + } +} + +fn gh(args: &[&str]) -> Result { + let out = Command::new("gh") + .arg("api") + .args(args) + .output() + .map_err(|e| format!("cannot run gh: {e}"))?; + if !out.status.success() { + return Err(format!( + "gh api {} failed: {}", + args.join(" "), + String::from_utf8_lossy(&out.stderr).trim() + )); + } + serde_json::from_slice(&out.stdout).map_err(|e| format!("gh api {}: bad JSON: {e}", args.join(" "))) +} + +fn s(v: &serde_json::Value, key: &str) -> String { + v.get(key).and_then(|x| x.as_str()).unwrap_or("").to_string() +} + +fn now_utc() -> String { + // RFC 3339 to the second, without pulling in a time crate. + let secs = std::time::SystemTime::now() + .duration_since(std::time::UNIX_EPOCH) + .map(|d| d.as_secs()) + .unwrap_or(0); + let days = secs / 86_400; + let rem = secs % 86_400; + let (h, m, sec) = (rem / 3600, (rem % 3600) / 60, rem % 60); + // civil from days (Howard Hinnant's algorithm) + let z = days as i64 + 719_468; + let era = z.div_euclid(146_097); + let doe = z.rem_euclid(146_097); + let yoe = (doe - doe / 1460 + doe / 36_524 - doe / 146_096) / 365; + let y = yoe + era * 400; + let doy = doe - (365 * yoe + yoe / 4 - yoe / 100); + let mp = (5 * doy + 2) / 153; + let d = doy - (153 * mp + 2) / 5 + 1; + let mo = if mp < 10 { mp + 3 } else { mp - 9 }; + let y = if mo <= 2 { y + 1 } else { y }; + format!("{y:04}-{mo:02}-{d:02}T{h:02}:{m:02}:{sec:02}Z") +} + +/// Gather everything through `gh api`. Read-only, public data; a plain `GH_TOKEN` is enough. +pub fn gather() -> Result { + let mut components = Vec::new(); + for (key, name, repo, role) in COMPONENTS { + let meta = gh(&[&format!("repos/{repo}")])?; + let full = s(&meta, "full_name"); + let full = if full.is_empty() { repo.to_string() } else { full }; + let open = gh(&[&format!("search/issues?q=repo:{full}+is:pr+is:open&per_page=1")])?; + let open_prs = open.get("total_count").and_then(|x| x.as_u64()).unwrap_or(0); + let pulls = gh(&[&format!("repos/{full}/pulls?state=closed&sort=updated&direction=desc&per_page=30")])?; + let last_merge = pulls + .as_array() + .map(|a| { + a.iter() + .filter(|p| p.get("merged_at").map(|m| !m.is_null()).unwrap_or(false)) + .max_by(|a, b| s(a, "merged_at").cmp(&s(b, "merged_at"))) + .map(|p| Merge { + number: p.get("number").and_then(|n| n.as_u64()).unwrap_or(0), + title: s(p, "title"), + merged_at: s(p, "merged_at"), + url: s(p, "html_url"), + }) + }) + .unwrap_or(None); + components.push(Component { + key: key.to_string(), + name: name.to_string(), + repo: repo.to_string(), + role: role.to_string(), + url: format!("https://github.com/{repo}"), + pushed_at: s(&meta, "pushed_at"), + open_prs, + last_merge, + }); + } + + // Decision records: the newest five by number, titles from the file names. + let adr = gh(&["repos/aien-dev/aien-architecture/contents/docs/adr"])?; + let mut decisions: Vec = adr + .as_array() + .map(|a| { + a.iter() + .filter_map(|f| { + let name = s(f, "name"); + let stem = name.strip_suffix(".md")?; + let (id, slug) = stem.split_once('-')?; + if id.len() != 4 || !id.chars().all(|c| c.is_ascii_digit()) { + return None; + } + let mut title = slug.replace('-', " "); + if let Some(first) = title.get_mut(0..1) { + first.make_ascii_uppercase(); + } + Some(Decision { id: id.to_string(), title, url: s(f, "html_url") }) + }) + .collect() + }) + .unwrap_or_default(); + decisions.sort_by(|a, b| b.id.cmp(&a.id)); + decisions.truncate(5); + // Prefer each record's own heading ("# ADR 0035: Persistent Cognitive Entity Boundary (ALLEN)"). + for d in &mut decisions { + let raw = Command::new("gh") + .args(["api", "-H", "Accept: application/vnd.github.raw"]) + .arg(format!("repos/aien-dev/aien-architecture/contents/docs/adr/{}", d.url.rsplit('/').next().unwrap_or(""))) + .output(); + if let Ok(out) = raw { + if out.status.success() { + let text = String::from_utf8_lossy(&out.stdout); + if let Some(h) = text.lines().find_map(|l| l.strip_prefix("# ")) { + let h = h.trim(); + let h = h.split_once(':').filter(|(a, _)| a.trim().eq_ignore_ascii_case(&format!("ADR {}", d.id))).map(|(_, t)| t.trim()).unwrap_or(h); + if !h.is_empty() { + d.title = clip(h, 72); + } + } + } + } + } + + // The receipt: latest main commit of sovereign-core and its "AIEN Verification" status. + let repo = "aien-dev/aien-sovereign-core"; + let commit = gh(&[&format!("repos/{repo}/commits/main")])?; + let sha = s(&commit, "sha"); + let commit_title = commit + .pointer("/commit/message") + .and_then(|m| m.as_str()) + .and_then(|m| m.lines().next()) + .unwrap_or("") + .to_string(); + let committed_at = commit.pointer("/commit/committer/date").and_then(|d| d.as_str()).unwrap_or("").to_string(); + // The judge's verdict is published as a check run named "AIEN Verification". + let runs = gh(&[&format!("repos/{repo}/commits/{sha}/check-runs?per_page=100")])?; + let verification = runs + .get("check_runs") + .and_then(|a| a.as_array()) + .and_then(|a| a.iter().filter(|r| s(r, "name") == "AIEN Verification").max_by(|a, b| s(a, "completed_at").cmp(&s(b, "completed_at")))); + let receipt = match verification { + Some(run) => { + let (state, description) = match (s(run, "status").as_str(), s(run, "conclusion").as_str()) { + ("completed", "success") => ("success", "Published Spark verification bundle matches this commit."), + ("completed", "failure") | ("completed", "timed_out") => ("failure", "Verification failed for this commit."), + ("completed", other) => ("pending", if other.is_empty() { "Verification finished without a verdict." } else { "Verification finished without a pass or fail verdict." }), + _ => ("pending", "Verification is still running for this commit."), + }; + Receipt { + repo: repo.to_string(), + sha, + commit_title, + committed_at, + state: state.to_string(), + description: description.to_string(), + target_url: s(run, "html_url"), + updated_at: s(run, "completed_at"), + } + } + None => Receipt { + repo: repo.to_string(), + sha, + commit_title, + committed_at, + state: "none".to_string(), + description: "No verification status published for this commit yet.".to_string(), + target_url: String::new(), + updated_at: String::new(), + }, + }; + + Ok(Facts { generated_at: now_utc(), components, decisions, receipt }) +} + +/// Cut a long title at a word boundary so it reads as a title, not a sentence. +pub fn clip(text: &str, max: usize) -> String { + if text.chars().count() <= max { + return text.to_string(); + } + let head: String = text.chars().take(max).collect(); + let cut = head.rfind(' ').unwrap_or(head.len()); + format!("{}...", head[..cut].trim_end_matches([',', ':', ';'])) +} + +/// "2026-10-16T15:48:43Z" -> "16 Oct 2026". Anything else is returned unchanged. +pub fn short_date(ts: &str) -> String { + const MONTHS: [&str; 12] = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; + let date = ts.split('T').next().unwrap_or(ts); + let parts: Vec<&str> = date.split('-').collect(); + if parts.len() != 3 { + return ts.to_string(); + } + let month = parts[1].parse::().ok().filter(|m| (1..=12).contains(m)); + let day = parts[2].trim_start_matches('0'); + match month { + Some(m) => format!("{day} {} {}", MONTHS[m - 1], parts[0]), + None => ts.to_string(), + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn short_date_reads_rfc3339() { + assert_eq!(short_date("2026-10-16T15:48:43Z"), "16 Oct 2026"); + assert_eq!(short_date("2026-01-05"), "5 Jan 2026"); + assert_eq!(short_date("not a date"), "not a date"); + } + + #[test] + fn clip_cuts_at_a_word() { + assert_eq!(clip("short", 72), "short"); + assert_eq!(clip("AIEN Verification: Check IR (manifest v2), exactness classes", 30), "AIEN Verification: Check IR..."); + } + + #[test] + fn now_utc_is_rfc3339_shaped() { + let t = now_utc(); + assert_eq!(t.len(), 20, "{t}"); + assert!(t.ends_with('Z')); + assert_eq!(&t[4..5], "-"); + assert_eq!(&t[10..11], "T"); + } + + #[test] + fn facts_round_trip() { + let f = Facts { generated_at: "2026-10-16T00:00:00Z".into(), ..Default::default() }; + let text = serde_json::to_string(&f).unwrap(); + let back: Facts = serde_json::from_str(&text).unwrap(); + assert_eq!(back.generated_at, f.generated_at); + } +} diff --git a/crates/site-builder/src/layouts/base.rs b/crates/site-builder/src/layouts/base.rs index a0fee96a..dd54b864 100644 --- a/crates/site-builder/src/layouts/base.rs +++ b/crates/site-builder/src/layouts/base.rs @@ -53,10 +53,6 @@ pub fn render_page_layout( meta name="twitter:description" content=(description); meta name="twitter:image" content="https://aienos.com/og.png"; - // Fonts - 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"; // Stylesheet link rel="stylesheet" href="/assets/style.css"; diff --git a/crates/site-builder/src/main.rs b/crates/site-builder/src/main.rs index 217239b5..51582770 100644 --- a/crates/site-builder/src/main.rs +++ b/crates/site-builder/src/main.rs @@ -1,4 +1,5 @@ mod components; +mod facts; mod layouts; use std::fs; @@ -43,7 +44,10 @@ fn generate_sitemap_and_robots(dist: &Path) { println!(" [GEN] Emitted native sitemap.xml and robots.txt in: {}", dist.display()); } -fn build_pure_rust_site(dist: &Path) { +fn build_pure_rust_site(dist: &Path, facts_path: &Path) { + let facts = facts::Facts::load(facts_path) + .unwrap_or_else(|e| panic!("Cannot build without facts: {e}. Run `site-builder facts {}` first.", facts_path.display())); + println!(" [FACTS] Using facts gathered at {} from {}", facts.generated_at, facts_path.display()); println!(" [BUILD] Compiling pure Rust Maud static site into: {}", dist.display()); fs::create_dir_all(dist.join("assets")).expect("Failed to create assets dir"); fs::create_dir_all(dist.join("js")).expect("Failed to create js dir"); @@ -86,14 +90,16 @@ fn build_pure_rust_site(dist: &Path) { (components::matrix::render_matrix()) (components::research::render_research()) (components::terminal::render_terminal()) - (components::status::render_status()) - (components::waitlist::render_waitlist()) + (components::status::render_status(&facts)) + (components::follow::render_follow()) }; let full_document = render_base_layout(page_content); let output_file = dist.join("index.html"); fs::write(&output_file, full_document.into_string()).expect("Failed to write index.html"); println!(" [PAGE] Emitted / (index.html)"); + fs::copy(facts_path, dist.join("facts.json")).expect("Failed to copy facts.json"); + println!(" [FACTS] Published /facts.json"); // Public project measurements, collected before compilation in CI. let progress = render_page_layout( @@ -198,7 +204,11 @@ fn verify_site(dist: &Path) { assert!(content.contains("
- - -