interplane.io
Source of interplane.io: a Rust generator that renders the page from the protocol repository's public record, deployed hourly from the Spark.
Brought by drakestapleton
GitHub aien-dev/interplane.io#4 (code only)
Apply it
git checkout -b patch-e26f458417bd3361 a94c4aef709f17fe615c00de662295e9d78a6582 curl -fsSL https://interplane.io/drakestapleton/interplane.io/patches/e26f458417bd3361.patch | git am
Provenance
github-import 1
aien-dev/interplane.io
4
6f5e27830500e4d9343614b5a9881d38dfc47185
{"kind":"github-import","owner":"aien-dev","repo":"interplane.io","number":4,"url":"https://github.com/aien-dev/interplane.io/pull/4","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:40:31Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/.gitignore b/.gitignore index fd3d6d2..5cc7694 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -.crumb.local +/target +/dist +/facts.json diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..baf68ff --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,170 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "maud" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df518b75016b4289cdddffa1b01f2122f4a49802c93191f3133f6dc2472ebcaa" +dependencies = [ + "itoa", + "maud_macros", +] + +[[package]] +name = "maud_macros" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa453238ec218da0af6b11fc5978d3b5c3a45ed97b722391a2a11f3306274e18" +dependencies = [ + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "serde_json" +version = "1.0.154" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "site-builder" +version = "0.2.0" +dependencies = [ + "maud", + "serde", + "serde_json", +] + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..3183fd0 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,3 @@ +[workspace] +members = ["crates/site-builder"] +resolver = "2" diff --git a/README.md b/README.md index f7cd892..32e6d70 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,50 @@ # interplane.io -Source of the static website for [INTERPLANE](https://github.com/aien-dev/interplane): one -self-contained HTML page, no framework, no analytics or tracking scripts. - -- `index.html`: the whole page. Its styles are inline and its hero image is embedded as base64 WebP. - One small inline script drives the results tabs, the token bars and the copy button for the clone - command. The page loads the IBM Plex fonts from Google Fonts (`fonts.googleapis.com`, - `fonts.gstatic.com`), so a visitor's browser contacts Google. That is its only external request. - The footer still says "Draft marketing page ... not yet live", although interplane.io already - serves this page. -- `public/style.css`: light and dark styles from the earlier version of the page. The current - `index.html` does not link it. - -All figures on the page come from `aien-dev/interplane` at commit 9aff24a (STATUS.md, ROADMAP.md, -docs/REPORT-0.1.md, bench/PROTOCOL-0.2.md, bench/runs/qual-20261004T2207Z/summary.md, qualification reports). -Update them when those files change. They are a snapshot: `aien-dev/interplane` has moved on since -(ROADMAP.md there records 0.2 and 0.3 as closed, while the page's roadmap section still shows 0.2 in -progress and 0.3 specified). - -## Hosting: hub Pi - -The site is served from the house server ("hub", a Raspberry Pi), not from GitHub Pages. This repository -holds the source only; it has no Pages workflow and no CNAME file. Deploying means copying `index.html` -and `public/` into the web root on the hub and serving it for `interplane.io` and `www.interplane.io`. -DNS for the domain (registered and hosted at Gandi) points at the hub; the orchestrator handles both. +Source of the website for [INTERPLANE](https://github.com/aien-dev/interplane), the open +interoperability protocol between AI models and agent runtimes. + +The page is not written by hand. A small Rust program, `crates/site-builder`, reads the protocol +repository's public record on GitHub (STATUS.md, ROADMAP.md, the stage reports, the latest tag, +the open proposals and the Spark judge's verdict for the current commit of main), writes those +facts to `facts.json`, and renders the page from Rust source plus that file. Every figure on the +page names the commit it was read at and links to it. The editorial copy lives in +`crates/site-builder/src/page.rs`. + +## Rules the page keeps + +`site-builder verify` refuses a build that breaks any of these: + +- no scripts, no outside fonts, no trackers; the only requests a visitor's browser makes are to interplane.io; +- no em or en dashes; +- the pinned commit of the protocol repository is on the page; +- the Spark verdict is shown as it is (PASS, FAIL, RUNNING or NO VERDICT), never summarised; +- no mention of the removed Python SDK and no "draft" footer. + +## Build + +``` +cargo build --release -p site-builder +target/release/site-builder facts # needs `gh` logged in; writes facts.json +target/release/site-builder build dist # renders dist/index.html, copies public/, facts.json +target/release/site-builder verify dist +``` + +`cargo test -p site-builder` renders a sample page and runs the same rules against it. + +## Hosting and automation + +The site is served by the house server ("hub", a Raspberry Pi) behind nginx, not by GitHub Pages. +`scripts/sync-to-hub.sh` runs from cron on the Spark once an hour: it fast-forwards a clean clone +of this repository, rebuilds, refreshes the facts (keeping the last good facts if GitHub is +unreachable), verifies, and copies the result to the hub only when something changed. It skips a +run while the Spark's quiet flag is held. Its log is under `~/.local/share/interplane-site/`. + +## Files + +- `crates/site-builder/`: the generator (facts, page, verify). +- `public/style.css`: the one stylesheet; light and dark follow the reader's system setting. +- `public/hero.webp`: the hero illustration. +- `scripts/sync-to-hub.sh`: the hourly deploy. ## License diff --git a/crates/site-builder/Cargo.toml b/crates/site-builder/Cargo.toml new file mode 100644 index 0000000..64f2331 --- /dev/null +++ b/crates/site-builder/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "site-builder" +version = "0.2.0" +edition = "2021" +description = "Builds interplane.io from Rust source and facts read from the protocol repository" +license = "AGPL-3.0-or-later" +publish = false + +[dependencies] +maud = "0.26" +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" + +[[bin]] +name = "site-builder" +path = "src/main.rs" diff --git a/crates/site-builder/src/facts.rs b/crates/site-builder/src/facts.rs new file mode 100644 index 0000000..cbec50c --- /dev/null +++ b/crates/site-builder/src/facts.rs @@ -0,0 +1,488 @@ +//! Facts read from the protocol repository's public record on GitHub. `site-builder facts` +//! writes them to `facts.json`; `site-builder build` renders them. Nothing in this file is +//! typed by hand: every value names the commit it was read at, so the page can link to it. + +use std::path::Path; +use std::process::Command; + +use serde::{Deserialize, Serialize}; + +/// The protocol repository. GitHub follows the rename, so this name keeps working. +pub const PROTOCOL_REPO: &str = "aien-dev/interplane"; + +/// The commit status context under which the Spark judge posts its verdict. +pub const SPARK_STATUS_CONTEXT: &str = "AIEN Verification (Spark)"; + +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] +pub struct Pin { + /// The repository as GitHub names it today. + pub full_name: String, + pub url: String, + /// The commit of main every fact below was read at. + pub sha: String, + pub committed_at: String, + pub commit_title: String, + pub latest_tag: String, + pub license: String, + pub description: String, +} + +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] +pub struct StatusCounts { + pub rows: usize, + pub qualified: usize, + pub conformant: usize, + pub tested: usize, + pub implemented: usize, + pub specified: usize, + pub other: usize, +} + +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] +pub struct Conformance { + pub passed: u32, + pub total: u32, + pub note: String, +} + +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] +pub struct Stage { + pub version: String, + pub layer: String, + pub goal: String, + /// `closed`, `next`, `reported`, or `planned`. + pub state: String, + /// `PASS`, `FAIL`, or empty when no gate verdict is recorded. + pub verdict: String, + pub closed_on: String, + /// The report for this stage, when one exists. + pub report_url: String, +} + +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] +pub struct Report { + pub name: String, + pub title: String, + pub headline: String, + pub url: String, +} + +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] +pub struct Merge { + pub number: u64, + pub title: String, + pub merged_at: String, + pub url: String, +} + +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] +pub struct Receipt { + /// `success`, `failure`, `pending`, or `none`. + pub state: String, + pub description: String, + pub target_url: String, + pub updated_at: String, +} + +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] +pub struct Facts { + pub generated_at: String, + pub pin: Pin, + pub status: StatusCounts, + pub conformance: Option<Conformance>, + pub stages: Vec<Stage>, + pub next_stage: String, + pub reports: Vec<Report>, + pub open_issues: u64, + pub open_prs: u64, + pub last_merge: Option<Merge>, + pub receipt: Receipt, +} + +impl Facts { + pub fn load(path: &Path) -> Result<Facts, String> { + let text = std::fs::read_to_string(path).map_err(|e| format!("{}: {e}", 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!("{}: {e}", path.display())) + } + + /// A link into the pinned commit of the protocol repository. + pub fn blob(&self, path: &str) -> String { + format!("{}/blob/{}/{}", self.pin.url, self.pin.sha, path) + } +} + +fn gh(args: &[&str]) -> Result<serde_json::Value, String> { + let out = Command::new("gh").arg("api").args(args).output().map_err(|e| format!("gh api: {e}"))?; + if !out.status.success() { + return Err(format!("gh api {}: {}", 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 gh_text(full: &str, path: &str, sha: &str) -> Result<String, String> { + let out = Command::new("gh") + .args(["api", "-H", "Accept: application/vnd.github.raw+json", &format!("repos/{full}/contents/{path}?ref={sha}")]) + .output() + .map_err(|e| format!("gh api: {e}"))?; + if !out.status.success() { + return Err(format!("gh api {path}@{sha}: {}", String::from_utf8_lossy(&out.stderr).trim())); + } + Ok(String::from_utf8_lossy(&out.stdout).into_owned()) +} + +fn s(v: &serde_json::Value, key: &str) -> String { + v.get(key).and_then(|x| x.as_str()).unwrap_or("").to_string() +} + +fn ptr(v: &serde_json::Value, path: &str) -> String { + v.pointer(path).and_then(|x| x.as_str()).unwrap_or("").to_string() +} + +pub fn gather() -> Result<Facts, String> { + let repo = gh(&[format!("repos/{PROTOCOL_REPO}").as_str()])?; + let full = s(&repo, "full_name"); + let url = s(&repo, "html_url"); + let commit = gh(&[format!("repos/{full}/commits/main").as_str()])?; + let sha = s(&commit, "sha"); + let tags = gh(&[format!("repos/{full}/tags?per_page=1").as_str()])?; + let pin = Pin { + full_name: full.clone(), + url: url.clone(), + sha: sha.clone(), + committed_at: ptr(&commit, "/commit/committer/date"), + commit_title: ptr(&commit, "/commit/message").lines().next().unwrap_or("").to_string(), + latest_tag: tags.get(0).map(|t| s(t, "name")).unwrap_or_default(), + license: ptr(&repo, "/license/spdx_id"), + description: s(&repo, "description"), + }; + + let status_md = gh_text(&full, "STATUS.md", &sha)?; + let status = status_counts(&status_md); + let conformance = conformance_row(&status_md); + + let roadmap_md = gh_text(&full, "ROADMAP.md", &sha)?; + let docs = gh(&[format!("repos/{full}/contents/docs?ref={sha}").as_str()])?; + let report_names: Vec<String> = docs + .as_array() + .map(|a| a.iter().map(|d| s(d, "name")).filter(|n| n.starts_with("REPORT-") && n.ends_with(".md")).collect()) + .unwrap_or_default(); + let mut reports = Vec::new(); + for name in &report_names { + let text = gh_text(&full, &format!("docs/{name}"), &sha)?; + reports.push(Report { + name: name.clone(), + title: text.lines().find(|l| l.starts_with("# ")).map(|l| l[2..].trim().to_string()).unwrap_or_else(|| name.clone()), + headline: headline(&text), + url: format!("{url}/blob/{sha}/docs/{name}"), + }); + } + let (stages, next_stage) = stages(&roadmap_md, &reports); + + let pulls_open = gh(&[format!("repos/{full}/pulls?state=open&per_page=100").as_str()])?; + let open_prs = pulls_open.as_array().map(|a| a.len() as u64).unwrap_or(0); + let open_issues = repo.get("open_issues_count").and_then(|n| n.as_u64()).unwrap_or(0).saturating_sub(open_prs); + let pulls_closed = gh(&[format!("repos/{full}/pulls?state=closed&sort=updated&direction=desc&per_page=30").as_str()])?; + let last_merge = pulls_closed.as_array().and_then(|a| { + a.iter().filter(|p| !s(p, "merged_at").is_empty()).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"), + }) + }); + + // The Spark judge's verdict for this commit, never the hosted bridge check run. + let combined = gh(&[format!("repos/{full}/commits/{sha}/status").as_str()])?; + let receipt = combined + .get("statuses") + .and_then(|a| a.as_array()) + .and_then(|a| a.iter().filter(|r| s(r, "context") == SPARK_STATUS_CONTEXT).max_by(|a, b| s(a, "updated_at").cmp(&s(b, "updated_at")))) + .map(|st| Receipt { + state: match s(st, "state").as_str() { + "success" => "success".to_string(), + "failure" | "error" => "failure".to_string(), + _ => "pending".to_string(), + }, + description: public_description(&s(st, "description")), + target_url: { + let t = s(st, "target_url"); + if t.is_empty() { format!("{url}/commit/{sha}") } else { t } + }, + updated_at: s(st, "updated_at"), + }) + .unwrap_or(Receipt { + state: "none".to_string(), + description: "The Spark has not published a verdict for this commit yet.".to_string(), + target_url: String::new(), + updated_at: String::new(), + }); + + Ok(Facts { + generated_at: now_utc(), + pin, + status, + conformance, + stages, + next_stage, + reports, + open_issues, + open_prs, + last_merge, + receipt, + }) +} + +/// Splits a Markdown table row into trimmed cells. +fn cells(line: &str) -> Vec<String> { + let t = line.trim(); + if !t.starts_with('|') { + return Vec::new(); + } + t.trim_matches('|').split('|').map(|c| c.trim().to_string()).collect() +} + +fn is_separator(row: &[String]) -> bool { + !row.is_empty() && row.iter().all(|c| !c.is_empty() && c.chars().all(|ch| ch == '-' || ch == ':')) +} + +/// Counts STATUS.md rows by the strongest status word in the Rust column. +pub fn status_counts(md: &str) -> StatusCounts { + let mut c = StatusCounts { rows: 0, qualified: 0, conformant: 0, tested: 0, implemented: 0, specified: 0, other: 0 }; + let mut in_table = false; + for line in md.lines() { + let row = cells(line); + if row.len() < 2 { + in_table = false; + continue; + } + if row[0] == "Component" { + in_table = true; + continue; + } + if !in_table || is_separator(&row) { + continue; + } + c.rows += 1; + let rust = row[1].to_lowercase(); + if rust.contains("qualified") { + c.qualified += 1; + } else if rust.contains("conformant") { + c.conformant += 1; + } else if rust.contains("tested") { + c.tested += 1; + } else if rust.contains("implemented") || rust.contains("running") { + c.implemented += 1; + } else if rust.contains("specified") { + c.specified += 1; + } else { + c.other += 1; + } + } + c +} + +/// The "Conformance runner" row: `passed/total` from its fixtures column. +pub fn conformance_row(md: &str) -> Option<Conformance> { + for line in md.lines() { + let row = cells(line); + if row.len() >= 4 && row[0].starts_with("Conformance runner") { + let fx = &row[3]; + let (a, b) = fx.split_once('/')?; + let passed: u32 = a.trim().parse().ok()?; + let total: u32 = b.trim().chars().take_while(|c| c.is_ascii_digit()).collect::<String>().parse().ok()?; + return Some(Conformance { passed, total, note: fx.clone() }); + } + } + None +} + +/// The first "**Headline: ...**" line of a report, without the Markdown bold marks. +pub fn headline(md: &str) -> String { + let mut out = String::new(); + let mut collecting = false; + for line in md.lines() { + if !collecting { + if let Some(rest) = line.trim_start().strip_prefix("**Headline:") { + collecting = true; + out.push_str(rest.trim()); + } + continue; + } + if line.trim().is_empty() { + break; + } + out.push(' '); + out.push_str(line.trim()); + } + // Keep the headline sentence only; the rest of the paragraph is detail. + let one = out.replace("**", ""); + let one = one.trim().to_string(); + match one.find(". ") { + Some(i) => one[..=i].to_string(), + None => one, + } +} + +/// Roadmap stages from the version table, with their state from the "closed" headings and +/// the last "Next:" line. +pub fn stages(md: &str, reports: &[Report]) -> (Vec<Stage>, String) { + let mut stages: Vec<Stage> = Vec::new(); + let mut in_table = false; + for line in md.lines() { + let row = cells(line); + if row.len() < 4 { + in_table = false; + continue; + } + if row[0] == "Version" { + in_table = true; + continue; + } + if !in_table || is_separator(&row) { + continue; + } + stages.push(Stage { + version: row[0].clone(), + layer: row[1].clone(), + goal: row[3].clone(), + state: "planned".to_string(), + verdict: String::new(), + closed_on: String::new(), + report_url: String::new(), + }); + } + let mut next = String::new(); + for line in md.lines() { + let t = line.trim(); + if let Some(rest) = t.strip_prefix("## ") { + // e.g. "0.3 closed (2026-10-05): gate PASS" + let mut words = rest.split_whitespace(); + let v = words.next().unwrap_or(""); + if words.next() == Some("closed") { + if let Some(st) = stages.iter_mut().find(|s| s.version == v) { + st.state = "closed".to_string(); + st.closed_on = rest.find('(').and_then(|a| rest[a + 1..].find(')').map(|b| rest[a + 1..a + 1 + b].to_string())).unwrap_or_default(); + let upper = rest.to_uppercase(); + st.verdict = if upper.contains("PASS") { + "PASS".to_string() + } else if upper.contains("FAIL") { + "FAIL".to_string() + } else { + String::new() + }; + } + } + } + if let Some(rest) = t.strip_prefix("Next: **") { + next = rest.split("**").next().unwrap_or("").trim_end_matches('.').to_string(); + } + } + for st in stages.iter_mut() { + if let Some(r) = reports.iter().find(|r| r.name == format!("REPORT-{}.md", st.version)) { + st.report_url = r.url.clone(); + if st.state == "planned" { + st.state = "reported".to_string(); + } + } + if !next.is_empty() && next.starts_with(&st.version) && st.state != "closed" { + st.state = "next".to_string(); + } + } + (stages, next) +} + +/// The Spark writes its verdict line followed by the bundle path on its own disk. The verdict +/// is public; the path is not useful to anyone else, so it is cut off here. +pub fn public_description(raw: &str) -> String { + let cut = raw.find(": bundle ").or_else(|| raw.find(" bundle /")).unwrap_or(raw.len()); + raw[..cut].trim().to_string() +} + +pub fn now_utc() -> String { + let out = Command::new("date").args(["-u", "+%Y-%m-%dT%H:%M:%SZ"]).output(); + match out { + Ok(o) if o.status.success() => String::from_utf8_lossy(&o.stdout).trim().to_string(), + _ => "unknown".to_string(), + } +} + +/// `2026-10-16T09:30:35Z` to `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 (y, m, d) = (parts[0], parts[1].parse::<usize>().unwrap_or(0), parts[2].parse::<u32>().unwrap_or(0)); + if !(1..=12).contains(&m) || d == 0 { + return ts.to_string(); + } + format!("{d} {} {y}", MONTHS[m - 1]) +} + +#[cfg(test)] +mod tests { + use super::*; + + const STATUS: &str = "# STATUS\n\n| Component | Rust | Python | Fixtures | Notes |\n|---|---|---|---|---|\n| Core schemas | specified | specified | validated | x |\n| Lenshift qwen35 | conformant, qualified | conformant | 10 | |\n| Probe | qualified | qualified | - | |\n| Adapter | tested | - | 3 | |\n| Conformance runner | implemented | implemented | 106/106 (verdicts identical) | `--dump` |\n| Reproducibility pins | - | - | - | see docs |\n\nAfter.\n"; + + const ROADMAP: &str = "# roadmap\n\n| Version | Layer | Builds | Goal |\n|---|---|---|---|\n| 0.1 | Reality | a | Prove it |\n| 0.2 | Capability | b | Minimum tools |\n| 0.3 | Trust | c | Keep the line |\n| 0.4 | Execution | d | Multi-round |\n| 0.5 | Qualification | e | Measured claims |\n\n## 0.2 closed (2026-10-04): gate FAIL recorded\n\ntext\n\n## 0.3 closed (2026-10-05): gate PASS\n\ntext\n\nNext: **0.4 Execution**.\n"; + + #[test] + fn counts_status_rows_by_strongest_word() { + let c = status_counts(STATUS); + assert_eq!(c.rows, 6); + assert_eq!(c.qualified, 2); + assert_eq!(c.conformant, 0); + assert_eq!(c.tested, 1); + assert_eq!(c.implemented, 1); + assert_eq!(c.specified, 1); + assert_eq!(c.other, 1); + } + + #[test] + fn reads_the_conformance_row() { + let c = conformance_row(STATUS).unwrap(); + assert_eq!((c.passed, c.total), (106, 106)); + } + + #[test] + fn reads_stage_states_from_headings() { + let reports = vec![Report { name: "REPORT-0.1.md".into(), title: "r".into(), headline: "h".into(), url: "u".into() }]; + let (st, next) = stages(ROADMAP, &reports); + assert_eq!(next, "0.4 Execution"); + let by = |v: &str| st.iter().find(|s| s.version == v).unwrap().clone(); + assert_eq!(by("0.1").state, "reported"); + assert_eq!(by("0.2").state, "closed"); + assert_eq!(by("0.2").verdict, "FAIL"); + assert_eq!(by("0.3").verdict, "PASS"); + assert_eq!(by("0.3").closed_on, "2026-10-05"); + assert_eq!(by("0.4").state, "next"); + assert_eq!(by("0.5").state, "planned"); + } + + #[test] + fn headline_keeps_the_first_sentence_without_bold() { + let md = "# r\n\n**Headline: every offline gate of the pre-registered 0.3 protocol PASSED** (P, X;\nthresholds fixed). More.\n\n## Observed\n"; + assert_eq!(headline(md), "every offline gate of the pre-registered 0.3 protocol PASSED (P, X; thresholds fixed)."); + assert_eq!(headline("no headline here"), ""); + } + + #[test] + fn public_description_drops_the_bundle_path() { + assert_eq!(public_description("PASS 12 gates: bundle /home/x/y"), "PASS 12 gates"); + assert_eq!(public_description("PASS"), "PASS"); + } + + #[test] + fn short_date_reads_rfc3339() { + assert_eq!(short_date("2026-10-16T09:30:35Z"), "16 Oct 2026"); + assert_eq!(short_date("nope"), "nope"); + } +} diff --git a/crates/site-builder/src/main.rs b/crates/site-builder/src/main.rs new file mode 100644 index 0000000..5610e99 --- /dev/null +++ b/crates/site-builder/src/main.rs @@ -0,0 +1,221 @@ +//! interplane.io site builder. +//! +//! ```text +//! site-builder facts [facts.json] read the protocol repository, write the facts file +//! site-builder build [dist] [facts.json] render the page and copy public/ into dist +//! site-builder verify [dist] refuse a page that breaks the site rules +//! ``` +//! +//! The page is rendered from Rust source plus the facts file. No scripts, no outside fonts, no +//! trackers, no em or en dashes, and no figure that does not resolve to a record in the +//! protocol repository. + +mod facts; +mod page; + +use std::fs; +use std::path::{Path, PathBuf}; +use std::process::ExitCode; + +use facts::Facts; + +fn copy_dir(src: &Path, dst: &Path) -> std::io::Result<()> { + fs::create_dir_all(dst)?; + for entry in fs::read_dir(src)? { + let entry = entry?; + let to = dst.join(entry.file_name()); + if entry.file_type()?.is_dir() { + copy_dir(&entry.path(), &to)?; + } else { + fs::copy(entry.path(), &to)?; + } + } + Ok(()) +} + +fn build(dist: &Path, facts_path: &Path) -> Result<(), String> { + let facts = Facts::load(facts_path)?; + fs::create_dir_all(dist).map_err(|e| format!("{}: {e}", dist.display()))?; + let html = page::render(&facts); + fs::write(dist.join("index.html"), &html).map_err(|e| e.to_string())?; + copy_dir(Path::new("public"), &dist.join("public")).map_err(|e| format!("public/: {e}"))?; + fs::copy(facts_path, dist.join("facts.json")).map_err(|e| e.to_string())?; + fs::write(dist.join("robots.txt"), format!("User-agent: *\nAllow: /\nSitemap: {}sitemap.xml\n", page::SITE_URL)).map_err(|e| e.to_string())?; + fs::write( + dist.join("sitemap.xml"), + format!( + "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <url><loc>{}</loc><lastmod>{}</lastmod></url>\n</urlset>\n", + page::SITE_URL, + facts.generated_at.split('T').next().unwrap_or("") + ), + ) + .map_err(|e| e.to_string())?; + println!("built {} ({} bytes) from {}@{}", dist.join("index.html").display(), html.len(), facts.pin.full_name, &facts.pin.sha[..12.min(facts.pin.sha.len())]); + Ok(()) +} + +/// The site rules, enforced on the rendered output so a copy change cannot slip past them. +pub fn verify_html(html: &str, css: &str) -> Vec<String> { + let mut problems = Vec::new(); + let mut need = |cond: bool, msg: &str| { + if !cond { + problems.push(msg.to_string()); + } + }; + need(!html.contains('\u{2014}'), "em dash in index.html"); + need(!html.contains('\u{2013}'), "en dash in index.html"); + need(!css.contains('\u{2014}') && !css.contains('\u{2013}'), "dash in style.css"); + need(!html.contains("<script"), "a script in index.html"); + need(!html.contains("fonts.googleapis") && !html.contains("fonts.gstatic") && !css.contains("@import") && !css.contains("fonts.g"), "an outside font"); + need(!html.contains("href=\"http://"), "a plain http link"); + need(!html.contains("Draft marketing page"), "the old draft footer is on the page"); + need(!html.contains("not yet live"), "the page calls itself not live"); + need(!html.contains("Python SDK"), "the removed Python SDK is mentioned"); + need(html.contains("id=\"status\""), "missing status section"); + need(html.contains("id=\"receipt\""), "missing receipt section"); + need(html.contains("id=\"modules\""), "missing modules section"); + need(html.contains("public/hero.webp"), "missing hero image"); + need(html.contains("href=\"facts.json\""), "missing facts.json link"); + need(html.contains("<title>INTERPLANE: "), "missing title"); + need(html.contains("og:title"), "missing og:title"); + for host in ["googletagmanager", "google-analytics", "plausible", "cloudflareinsights", "umami"] { + need(!html.contains(host), &format!("tracker host {host} in index.html")); + } + let mut depth: i64 = 0; + for ch in css.chars() { + match ch { + '{' => depth += 1, + '}' => depth -= 1, + _ => {} + } + if depth < 0 { + break; + } + } + need(depth == 0, "style.css braces do not balance"); + problems +} + +fn verify(dist: &Path) -> Result<(), String> { + let html = fs::read_to_string(dist.join("index.html")).map_err(|e| format!("index.html: {e}"))?; + let css = fs::read_to_string(dist.join("public/style.css")).map_err(|e| format!("public/style.css: {e}"))?; + let facts = Facts::load(&dist.join("facts.json"))?; + let mut problems = verify_html(&html, &css); + if !dist.join("public/hero.webp").exists() { + problems.push("public/hero.webp missing from dist".to_string()); + } + // The hand-copied receipt figures must agree with the STATUS row they come from. + let status_md_hint = format!("{} -> {} tools, {}% fewer", page::RECEIPT_TOOLS_BEFORE, page::RECEIPT_TOOLS_AFTER, page::RECEIPT_CUT_PERCENT); + if !html.contains(&facts.pin.sha) { + problems.push("the pinned commit is not on the page".to_string()); + } + if facts.receipt.state == "success" && !html.contains(">PASS<") { + problems.push("a passing verdict is not shown as PASS".to_string()); + } + if facts.receipt.state == "failure" && !html.contains(">FAIL<") && !html.contains(">BLOCKED<") { + problems.push("a failing verdict is not shown as FAIL or BLOCKED".to_string()); + } + if problems.is_empty() { + println!("verified {} ({} bytes); receipt figures: {status_md_hint}", dist.join("index.html").display(), html.len()); + Ok(()) + } else { + Err(problems.join("\n")) + } +} + +fn main() -> ExitCode { + let args: Vec<String> = std::env::args().skip(1).collect(); + let mode = args.first().map(String::as_str).unwrap_or("build"); + let result = match mode { + "facts" => { + let out = PathBuf::from(args.get(1).map(String::as_str).unwrap_or("facts.json")); + facts::gather().and_then(|f| { + let r = f.save(&out); + if r.is_ok() { + println!("facts: {}@{} tag {} receipt {} -> {}", f.pin.full_name, &f.pin.sha[..12.min(f.pin.sha.len())], f.pin.latest_tag, f.receipt.state, out.display()); + } + r + }) + } + "build" => build(Path::new(args.get(1).map(String::as_str).unwrap_or("dist")), Path::new(args.get(2).map(String::as_str).unwrap_or("facts.json"))), + "verify" => verify(Path::new(args.get(1).map(String::as_str).unwrap_or("dist"))), + other => Err(format!("unknown mode {other}; use facts, build or verify")), + }; + match result { + Ok(()) => ExitCode::SUCCESS, + Err(e) => { + eprintln!("site-builder {mode}: {e}"); + ExitCode::FAILURE + } + } +} + +#[cfg(test)] +mod tests { + use super::*; + use facts::*; + + fn sample() -> Facts { + Facts { + generated_at: "2026-10-16T17:00:00Z".into(), + pin: Pin { + full_name: "aien-dev/interplane".into(), + url: "https://github.com/aien-dev/interplane".into(), + sha: "83df0f074b2c0000000000000000000000000000".into(), + committed_at: "2026-10-16T09:30:35Z".into(), + commit_title: "ci: enroll interplane in the Spark verification pipeline (#109)".into(), + latest_tag: "v0.3.0".into(), + license: "Apache-2.0".into(), + description: "d".into(), + }, + status: StatusCounts { rows: 40, qualified: 4, conformant: 12, tested: 10, implemented: 2, specified: 1, other: 11 }, + conformance: Some(Conformance { passed: 106, total: 106, note: "106/106".into() }), + stages: vec![ + Stage { version: "0.1".into(), layer: "Reality".into(), goal: "Prove".into(), state: "reported".into(), verdict: String::new(), closed_on: String::new(), report_url: "https://x/REPORT-0.1.md".into() }, + Stage { version: "0.3".into(), layer: "Trust".into(), goal: "Keep".into(), state: "closed".into(), verdict: "PASS".into(), closed_on: "2026-10-05".into(), report_url: "https://x/REPORT-0.3.md".into() }, + Stage { version: "0.4".into(), layer: "Execution".into(), goal: "Multi".into(), state: "next".into(), verdict: String::new(), closed_on: String::new(), report_url: String::new() }, + ], + next_stage: "0.4 Execution".into(), + reports: vec![Report { name: "REPORT-0.3.md".into(), title: "INTERPLANE 0.3 report".into(), headline: "every offline gate PASSED.".into(), url: "https://x/REPORT-0.3.md".into() }], + open_issues: 2, + open_prs: 1, + last_merge: Some(Merge { number: 109, title: "ci: enroll".into(), merged_at: "2026-10-16T09:30:36Z".into(), url: "https://x/pull/109".into() }), + receipt: Receipt { state: "success".into(), description: "PASS 7 gates".into(), target_url: "https://x/commit/83df".into(), updated_at: "2026-10-16T10:00:00Z".into() }, + } + } + + #[test] + fn rendered_page_passes_the_site_rules() { + let html = page::render(&sample()); + let css = fs::read_to_string(concat!(env!("CARGO_MANIFEST_DIR"), "/../../public/style.css")).expect("public/style.css"); + let problems = verify_html(&html, &css); + assert!(problems.is_empty(), "{problems:?}"); + assert!(html.contains(">PASS<")); + assert!(html.contains("83df0f074b2c")); + assert!(html.contains("106 of 106")); + assert!(html.contains("v0.3.0")); + } + + #[test] + fn failing_verdict_is_red_and_honest() { + let mut f = sample(); + f.receipt.state = "failure".into(); + f.receipt.description = "BLOCKED NOT_RUN PIPELINE_CONFIG_CHANGED".into(); + let html = page::render(&f); + assert!(html.contains("pill bad")); + assert!(html.contains(">BLOCKED<"), "a run the judge did not run says BLOCKED, not FAIL"); + assert!(html.contains("BLOCKED NOT_RUN PIPELINE_CONFIG_CHANGED")); + f.receipt.description = "BLOCKED FAIL PREFILL-E2E-2:rc_nonzero".into(); + let html = page::render(&f); + assert!(html.contains(">FAIL<"), "a failed gate says FAIL even when the bundle is also blocked"); + } + + #[test] + fn no_verdict_is_said_plainly() { + let mut f = sample(); + f.receipt = Receipt { state: "none".into(), description: "The Spark has not published a verdict for this commit yet.".into(), target_url: String::new(), updated_at: String::new() }; + let html = page::render(&f); + assert!(html.contains(">NO VERDICT<")); + assert!(html.contains("not published a verdict")); + } +} diff --git a/crates/site-builder/src/page.rs b/crates/site-builder/src/page.rs new file mode 100644 index 0000000..bffca75 --- /dev/null +++ b/crates/site-builder/src/page.rs @@ -0,0 +1,304 @@ +//! The one page of interplane.io. Editorial copy lives here in Rust; every figure comes from +//! `Facts` (read from the protocol repository at a pinned commit) or from a constant below that +//! names the report it was read from. + +use maud::{html, Markup, DOCTYPE}; + +use crate::facts::{short_date, Facts}; + +pub const TITLE: &str = "INTERPLANE"; +pub const TAGLINE: &str = "The open boundary between AI models and the programs that act for them."; +pub const DESCRIPTION: &str = "INTERPLANE is an open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority."; +pub const SITE_URL: &str = "https://interplane.io/"; +pub const SITE_REPO: &str = "https://github.com/aien-dev/interplane.io"; + +/// The 0.1 receipt, read from docs/REPORT-0.1.md ("Selection" section) at the pinned commit. +/// Only the report path is cited on the page; the numbers below are copied from it by hand and +/// checked by `verify` against the facts file's STATUS row for CrossAxis Select. +pub const RECEIPT_TOOLS_BEFORE: u32 = 71; +pub const RECEIPT_TOOLS_AFTER: u32 = 9; +pub const RECEIPT_TOKENS_BEFORE: u32 = 15_846; +pub const RECEIPT_TOKENS_AFTER: u32 = 1_674; +pub const RECEIPT_CUT_PERCENT: &str = "89"; +pub const RECEIPT_REPORT_PATH: &str = "docs/REPORT-0.1.md"; + +pub struct Module { + pub name: &'static str, + pub question: &'static str, + pub answer: &'static str, + pub spec: &'static str, +} + +/// The modules, in the order a call crosses the boundary. +pub const MODULES: [Module; 7] = [ + Module { name: "Core", question: "What crosses the line?", answer: "The shared vocabulary: capabilities, requests, results, traces and the canonical byte form every digest is computed over.", spec: "spec/CORE.md" }, + Module { name: "Lenshift", question: "What did the model actually say?", answer: "Reads each model's native tool-call dialect into one form. An incomplete or ambiguous call is rejected, never guessed.", spec: "spec/LENSHIFT.md" }, + Module { name: "CrossAxis", question: "Which tools does this task need?", answer: "Selects the few tools a task needs from a runtime's catalog, so a small local model is not buried under schemas it will never use.", spec: "spec/CROSSAXIS.md" }, + Module { name: "Crossveil", question: "Who is allowed to act?", answer: "Tracks where every piece of text came from. Content a model read on the web cannot grant authority, and an effect it asks for while untrusted text is in view is held for a person.", spec: "spec/CROSSVEIL.md" }, + Module { name: "Probe", question: "What does this model and backend really support?", answer: "Live probes that measure a model, backend and runtime combination instead of trusting its documentation.", spec: "spec/PROBE.md" }, + Module { name: "Vectorveil", question: "How do bytes travel?", answer: "The transport envelope. Specified; the implementation belongs to the 0.4 Execution stage.", spec: "spec/VECTORVEIL.md" }, + Module { name: "RelayLine", question: "How does a long call stream?", answer: "Streaming, cancellation and continuation. The contract is written; the implementation belongs to 0.4.", spec: "spec/RELAYLINE.md" }, +]; + +fn number(n: u32) -> String { + let s = n.to_string(); + let mut out = String::new(); + for (i, ch) in s.chars().enumerate() { + if i > 0 && (s.len() - i) % 3 == 0 { + out.push('\u{202f}'); + } + out.push(ch); + } + out +} + +fn head(facts: &Facts) -> Markup { + html! { + head { + meta charset="utf-8"; + meta name="viewport" content="width=device-width, initial-scale=1"; + title { (TITLE) ": " (TAGLINE) } + meta name="description" content=(DESCRIPTION); + meta property="og:title" content=(TITLE); + meta property="og:description" content=(DESCRIPTION); + meta property="og:type" content="website"; + meta property="og:url" content=(SITE_URL); + meta property="og:image" content={ (SITE_URL) "public/hero.webp" }; + meta name="color-scheme" content="light dark"; + meta name="generator" content={ "site-builder at " (facts.pin.full_name) "@" (&facts.pin.sha[..12.min(facts.pin.sha.len())]) }; + link rel="canonical" href=(SITE_URL); + link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%23101317'/%3E%3Crect x='6' y='15' width='20' height='2' fill='%23f2a93b'/%3E%3C/svg%3E"; + link rel="stylesheet" href="public/style.css"; + link rel="alternate" type="application/json" href="facts.json" title="Facts behind this page"; + } + } +} + +fn verdict_class(state: &str) -> &'static str { + match state { + "success" => "ok", + "failure" => "bad", + "pending" => "wait", + _ => "none", + } +} + +/// The word in the verdict pill. The Spark reports a blocked run (for example a pipeline +/// configuration change that needs an operator run) as a failing status; the page says BLOCKED +/// for those so a reader does not take it for a failed test. +pub fn verdict_word(receipt: &crate::facts::Receipt) -> &'static str { + match receipt.state.as_str() { + "success" => "PASS", + "failure" if receipt.description.starts_with("BLOCKED") && receipt.description.contains("NOT_RUN") => "BLOCKED", + "failure" => "FAIL", + "pending" => "RUNNING", + _ => "NO VERDICT", + } +} + +fn hero(facts: &Facts) -> Markup { + let release = if facts.pin.latest_tag.is_empty() { "unreleased".to_string() } else { facts.pin.latest_tag.clone() }; + html! { + header class="hero" { + div class="hero-text" { + p class="kicker" { "Open protocol" " " span class="dot" {} " " (release) " " span class="dot" {} " " (facts.pin.license) } + h1 { (TITLE) } + p class="tagline" { (TAGLINE) } + p class="lede" { + "A model can say what it wants done. Only the program running it decides what happens. INTERPLANE is the written agreement between the two sides, with a test suite that checks every implementation the same way." + } + p class="actions" { + a class="button primary" href=(facts.pin.url) { "Read the source" } + a class="button" href=(facts.blob("spec/CORE.md")) { "Read the specification" } + a class="button" href="#status" { "See the current state" } + } + } + figure class="hero-art" { + img src="public/hero.webp" width="1536" height="1024" alt="Two machined metal plates held apart by struts, with a single luminous amber plane stretched between them: the INTERPLANE layer between a model and a runtime." loading="eager"; + } + } + } +} + +fn problem() -> Markup { + html! { + section class="prose" id="why" { + h2 { "The problem it fixes" } + p { "Every local model speaks its own tool-calling dialect. Every agent program has its own tools, approvals and memory. Today each pair is wired by hand, and the wiring is where the authority leaks: a model reads a web page that contains an instruction, repeats it as a tool call, and the program obeys because nothing in between remembered where the text came from." } + p { "INTERPLANE puts a named, tested layer there. It belongs to neither side. A runtime keeps its own policy and execution; a model keeps its own dialect. The protocol only standardises what crosses between them, and makes that crossing measurable." } + blockquote { "Models express intent. Runtimes retain authority. INTERPLANE defines the boundary between them." } + } + } +} + +fn modules(facts: &Facts) -> Markup { + html! { + section id="modules" { + h2 { "Seven modules, one line" } + p class="section-lede" { "Each module answers one question a call has to pass on its way from a model to an effect in the world." } + ol class="modules" { + @for m in MODULES.iter() { + li { + h3 { (m.name) } + p class="question" { (m.question) } + p { (m.answer) } + a class="spec" href=(facts.blob(m.spec)) { "Specification" } + } + } + } + } + } +} + +fn receipt(facts: &Facts) -> Markup { + html! { + section id="receipt" class="receipt" { + h2 { "One measured result" } + p class="section-lede" { "From the 0.1 readiness report. A real Qwen3.5-9B model on Ollama, one task, the runtime's full tool catalog against the tools CrossAxis selected." } + div class="receipt-grid" { + div class="cell" { span class="big" { (RECEIPT_TOOLS_BEFORE) " to " (RECEIPT_TOOLS_AFTER) } span class="label" { "tools offered for the task" } } + div class="cell" { span class="big" { (number(RECEIPT_TOKENS_BEFORE)) " to " (number(RECEIPT_TOKENS_AFTER)) } span class="label" { "first-turn prompt tokens, model reported" } } + div class="cell" { span class="big" { (RECEIPT_CUT_PERCENT) "% fewer" } span class="label" { "prompt tokens before the model says a word" } } + } + p class="fine" { + "Fewer tokens is the cost side only. The same stage later asked whether a small model keeps its capability with fewer tools, pre-registered the thresholds, and recorded the answer: the 0.2 gate " + strong { "failed" } + ". Both results are in the repository, with the raw runs. " + a href=(facts.blob(RECEIPT_REPORT_PATH)) { "Read the 0.1 report" } + "." + } + } + } +} + +fn status(facts: &Facts) -> Markup { + let c = &facts.status; + html! { + section id="status" class="status" { + h2 { "Current state" } + p class="section-lede" { + "Read from the protocol repository at commit " + a href={ (facts.pin.url) "/commit/" (facts.pin.sha) } { code { (&facts.pin.sha[..12.min(facts.pin.sha.len())]) } } + " (" (short_date(&facts.pin.committed_at)) "). This page is rebuilt every hour from that record and nothing here is typed by hand." + } + div class="verdict" { + span class={ "pill " (verdict_class(&facts.receipt.state)) } { (verdict_word(&facts.receipt)) } + span class="verdict-text" { + "Spark verification of this commit: " (facts.receipt.description) + @if !facts.receipt.target_url.is_empty() { " " a href=(facts.receipt.target_url) { "Receipt" } } + } + } + div class="stages" { + h3 { "Roadmap" } + ol class="stage-list" { + @for st in &facts.stages { + li class={ "stage " (st.state) } { + span class="version" { (st.version) } + span class="layer" { (st.layer) } + span class="goal" { (st.goal) } + span class="state" { + @match st.state.as_str() { + "closed" => { + "closed " (short_date(&st.closed_on)) + @if !st.verdict.is_empty() { ", gate " strong class=(if st.verdict == "PASS" { "ok" } else { "bad" }) { (st.verdict) } } + } + "next" => "next", + "reported" => "closed, report below", + _ => "planned", + } + @if !st.report_url.is_empty() { " " a href=(st.report_url) { "Report" } } + } + } + } + } + @if !facts.next_stage.is_empty() { p class="fine" { "Next stage: " strong { (facts.next_stage) } "." } } + } + div class="status-grid" { + div class="cell" { + h3 { "Components" } + p { "STATUS.md tracks " strong { (c.rows) } " rows for the Rust implementation." } + ul class="counts" { + li { strong { (c.qualified) } " qualified against a real model or backend" } + li { strong { (c.conformant) } " conformant to the shared fixtures" } + li { strong { (c.tested) } " tested" } + li { strong { (c.implemented) } " implemented or running" } + li { strong { (c.specified) } " specified only" } + } + @if let Some(conf) = &facts.conformance { + p { "Conformance runner: " strong { (conf.passed) " of " (conf.total) } " cases, verdicts byte-identical to the recorded reference." } + } + a href=(facts.blob("STATUS.md")) { "Full status table" } + } + div class="cell" { + h3 { "Activity" } + ul class="counts" { + li { "Latest change: " a href={ (facts.pin.url) "/commit/" (facts.pin.sha) } { (facts.pin.commit_title) } } + @if let Some(m) = &facts.last_merge { + li { "Last merged proposal: " a href=(m.url) { "#" (m.number) " " (m.title) } " (" (short_date(&m.merged_at)) ")" } + } + li { strong { (facts.open_prs) } " open proposals, " strong { (facts.open_issues) } " open issues" } + li { "Latest release: " strong { (if facts.pin.latest_tag.is_empty() { "none".to_string() } else { facts.pin.latest_tag.clone() }) } } + } + a href={ (facts.pin.url) "/pulls" } { "Proposals" } " " span class="dot" {} " " a href={ (facts.pin.url) "/issues" } { "Issues" } + } + } + div class="reports" { + h3 { "Reports, in their own words" } + p class="section-lede" { "Every stage closes with a pre-registered gate and a report that states the result whether it passed or failed." } + ul class="report-list" { + @for r in &facts.reports { + li { + a href=(r.url) { (r.title) } + @if !r.headline.is_empty() { span class="headline" { " " (r.headline) } } + } + } + } + } + p class="fine" { + "Generated " (facts.generated_at) ". The data behind this section is published as " + a href="facts.json" { "facts.json" } "." + } + } + } +} + +fn get_started(facts: &Facts) -> Markup { + html! { + section id="start" class="prose" { + h2 { "Try it in a minute, offline" } + p { "No model, no GPU, no network. A scripted model fetches a page that carries an injected instruction, then asks to send an email, write a file and append a note. The reference pipeline denies the email and the write, holds the note for a person, and executes none of them." } + pre { code { "git clone " (facts.pin.url) ".git\ncd interplane/rust\ncargo run -q -p interplane-crossveil --example offline" } } + p { "To connect your own program, read " a href=(facts.blob("docs/WRITING-AN-ADAPTER.md")) { "Writing an adapter" } " and run its to-do list example. The conformance suite then checks your adapter the same way it checks the reference." } + } + } +} + +fn footer(facts: &Facts) -> Markup { + html! { + footer { + p { "INTERPLANE is developed in the open by " a href="https://github.com/aien-dev" { "aien-dev" } " as part of " a href="https://www.aienos.com/" { "AIEN" } ". Protocol and reference implementation: " (facts.pin.license) ". " a href=(SITE_REPO) { "This site" } " is built by a small Rust program from the repository's public record; no scripts, no outside fonts, no trackers." } + } + } +} + +pub fn render(facts: &Facts) -> String { + let page = html! { + (DOCTYPE) + html lang="en" { + (head(facts)) + body { + a class="skip" href="#main" { "Skip to content" } + (hero(facts)) + main id="main" { + (problem()) + (modules(facts)) + (receipt(facts)) + (status(facts)) + (get_started(facts)) + } + (footer(facts)) + } + } + }; + page.into_string() +} diff --git a/index.html b/index.html deleted file mode 100644 index fa9fe13..0000000 --- a/index.html +++ /dev/null @@ -1,724 +0,0 @@ -<!doctype html> -<html lang="en"> - <head> - <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /> - <meta name="color-scheme" content="light dark" /> - <meta name="description" content="INTERPLANE is the open layer between a model and the runtime that hosts it: fewer tools in the prompt, every authority decision kept by the runtime, and a receipt for every run." /> - <link rel="icon" href="data:," /> - <title>INTERPLANE — the layer between model and runtime</title> - <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=IBM+Plex+Sans:wght@400;500;600;700&display=swap" rel="stylesheet" /> - <style> - :root { - color-scheme: light dark; - --bg: #f4f5f6; - --bg-raised: #ffffff; - --bg-sunken: #e9ebec; - --ink: #16191c; - --ink-2: #454c52; - --ink-3: #6d757d; - --line: #d4d8db; - --line-strong: #b9bfc4; - --accent: #b35f00; - --accent-ink: #8a4a00; - --accent-soft: rgba(179, 95, 0, 0.09); - --pass: #1c7a43; - --fail: #b3372e; - --chip-bg: #e9ebec; - --code-bg: #14181b; - --code-ink: #e8e4da; - --hero-veil: rgba(244, 245, 246, 0.88); - --shadow: 0 1px 2px rgba(20, 24, 28, 0.06), 0 8px 28px rgba(20, 24, 28, 0.07); - } - @media (prefers-color-scheme: dark) { - :root { - --bg: #101315; - --bg-raised: #171b1e; - --bg-sunken: #0b0e10; - --ink: #ece9e0; - --ink-2: #b9bcb4; - --ink-3: #878d89; - --line: #262c30; - --line-strong: #394146; - --accent: #f0a63e; - --accent-ink: #f5bc66; - --accent-soft: rgba(240, 166, 62, 0.1); - --pass: #4cc07a; - --fail: #e0705f; - --chip-bg: #20262a; - --code-bg: #0b0e10; - --code-ink: #e8e4da; - --hero-veil: rgba(16, 19, 21, 0.86); - --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 32px rgba(0, 0, 0, 0.35); - } - } - - * { box-sizing: border-box; } - html { scroll-behavior: smooth; } - @media (prefers-reduced-motion: reduce) { - html { scroll-behavior: auto; } - } - body { - margin: 0; - background: var(--bg); - color: var(--ink); - font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; - font-size: 17px; - line-height: 1.6; - -webkit-font-smoothing: antialiased; - } - ::selection { background: var(--accent); color: #14100a; } - - .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; } - .mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; } - - /* ---------- top row ---------- */ - .toprow { - display: flex; align-items: center; justify-content: space-between; - gap: 16px; flex-wrap: wrap; - padding: 18px 0 14px; - border-bottom: 1px solid var(--line); - } - .wordmark { - font-family: "IBM Plex Mono", monospace; - font-weight: 600; letter-spacing: 0.22em; font-size: 15px; - color: var(--ink); text-decoration: none; - } - .wordmark .dot { color: var(--accent); } - .topnav { display: flex; gap: 4px; flex-wrap: wrap; } - .topnav a { - font-family: "IBM Plex Mono", monospace; font-size: 12.5px; - letter-spacing: 0.04em; color: var(--ink-2); text-decoration: none; - padding: 6px 10px; border-radius: 6px; - } - .topnav a:hover { color: var(--ink); background: var(--bg-sunken); } - .topnav a.repo { color: var(--accent-ink); border: 1px solid var(--line-strong); } - .topnav a.repo:hover { border-color: var(--accent); background: var(--accent-soft); } - - /* ---------- hero ---------- */ - .hero { padding: 56px 0 0; } - .hero-rule { - display: flex; align-items: center; gap: 12px; - font-family: "IBM Plex Mono", monospace; font-size: 12.5px; - letter-spacing: 0.14em; color: var(--accent-ink); text-transform: uppercase; - margin: 0 0 22px; - } - .hero-rule::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); } - h1 { - font-size: clamp(38px, 6.2vw, 64px); - line-height: 1.04; letter-spacing: -0.02em; - font-weight: 700; margin: 0 0 22px; max-width: 15ch; - } - h1 .plane-word { color: var(--accent-ink); } - .lede { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 62ch; margin: 0 0 30px; } - .lede strong { color: var(--ink); font-weight: 600; } - .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; } - .btn { - display: inline-flex; align-items: center; gap: 9px; - font-family: "IBM Plex Mono", monospace; font-size: 14px; font-weight: 500; - text-decoration: none; padding: 13px 20px; border-radius: 8px; - border: 1px solid var(--line-strong); color: var(--ink); background: var(--bg-raised); - transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease; - } - .btn:hover { border-color: var(--accent); } - .btn:active { transform: translateY(1px); } - .btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); } - .btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #171106; } - .btn .arrow { color: var(--accent); } - .btn.primary .arrow { color: inherit; } - - .hero-figure { - border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; - box-shadow: var(--shadow); background: var(--bg-sunken); - } - .hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; } - .hero-caption { - display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; - padding: 12px 16px; border-top: 1px solid var(--line); - font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--ink-3); - background: var(--bg-raised); letter-spacing: 0.02em; - } - - /* ---------- stat band ---------- */ - .statband { - display: grid; grid-template-columns: repeat(4, 1fr); - border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raised); - margin: 40px 0 0; overflow: hidden; box-shadow: var(--shadow); - } - .stat { padding: 22px 22px 18px; } - .stat + .stat { border-left: 1px solid var(--line); } - .stat .num { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; } - .stat .num .unit { font-size: 17px; font-weight: 600; color: var(--accent-ink); margin-left: 2px; } - .stat .label { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); } - @media (max-width: 860px) { - .statband { grid-template-columns: 1fr 1fr; } - .stat + .stat { border-left: none; } - .stat:nth-child(even) { border-left: 1px solid var(--line); } - .stat:nth-child(n + 3) { border-top: 1px solid var(--line); } - } - - /* ---------- sections ---------- */ - section { padding: 72px 0 0; } - .sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; } - .sec-index { - font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--accent-ink); - letter-spacing: 0.1em; white-space: nowrap; - } - h2 { font-size: clamp(27px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.015em; margin: 0; font-weight: 700; } - .sec-lede { color: var(--ink-2); max-width: 68ch; margin: 0 0 30px; font-size: 17.5px; } - .sec-lede strong { color: var(--ink); } - - /* thesis */ - .thesis { - border-left: 3px solid var(--accent); - padding: 4px 0 4px 22px; margin: 6px 0 34px; - font-size: clamp(19px, 2.6vw, 23px); line-height: 1.5; font-weight: 500; max-width: 46ch; - } - .tensions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } - @media (max-width: 860px) { .tensions { grid-template-columns: 1fr; } } - .tension { - background: var(--bg-raised); border: 1px solid var(--line); border-radius: 10px; padding: 22px; - } - .tension h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 600; } - .tension p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; } - .tension .glyph { - font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--accent-ink); - display: block; margin-bottom: 12px; letter-spacing: 0.08em; - } - - /* flow */ - .flow { - display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0; - border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raised); - padding: 26px; box-shadow: var(--shadow); - } - .flow-node { padding: 6px 10px; } - .flow-node .tag { - font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.12em; - text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 8px; - } - .flow-node h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; } - .flow-node p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; } - .flow-node.mid { - background: var(--accent-soft); border: 1px dashed var(--accent); - border-radius: 10px; padding: 16px 18px; - } - .flow-node.mid .tag { color: var(--accent-ink); } - .flow-arrow { align-self: center; color: var(--accent); font-size: 22px; padding: 0 6px; } - @media (max-width: 860px) { - .flow { grid-template-columns: 1fr; gap: 10px; } - .flow-arrow { transform: rotate(90deg); justify-self: center; padding: 2px 0; } - } - - /* results */ - .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; } - .tab { - font-family: "IBM Plex Mono", monospace; font-size: 13.5px; font-weight: 500; - padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); - background: var(--bg-raised); color: var(--ink-2); cursor: pointer; - transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease; - } - .tab:hover { border-color: var(--accent); color: var(--ink); } - .tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); } - .panel { - border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raised); - padding: 28px; box-shadow: var(--shadow); - } - .panel[hidden] { display: none; } - .panel h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; } - .panel .sub { color: var(--ink-2); margin: 0 0 24px; font-size: 15.5px; max-width: 66ch; } - .verdict { - display: inline-flex; align-items: center; gap: 8px; - font-family: "IBM Plex Mono", monospace; font-size: 12.5px; font-weight: 600; - letter-spacing: 0.08em; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; - } - .verdict.pass { color: var(--pass); border: 1px solid var(--pass); } - .verdict.fail { color: var(--fail); border: 1px solid var(--fail); } - - .tokenbars { display: grid; gap: 18px; margin: 8px 0 26px; } - .tbar-row { display: grid; grid-template-columns: 210px 1fr 92px; gap: 14px; align-items: center; } - .tbar-row .who { font-size: 14px; color: var(--ink-2); line-height: 1.4; } - .tbar-row .who strong { color: var(--ink); display: block; font-size: 14.5px; } - .tbar-track { height: 26px; background: var(--bg-sunken); border-radius: 6px; overflow: hidden; } - .tbar-fill { height: 100%; width: 0; border-radius: 6px; background: var(--ink-3); transition: width 1.1s cubic-bezier(0.22, 0.8, 0.3, 1); } - .tbar-fill.accent { background: var(--accent); } - .tbar-row .val { font-family: "IBM Plex Mono", monospace; font-size: 15px; font-weight: 600; text-align: right; } - @media (prefers-reduced-motion: reduce) { .tbar-fill { transition: none; } } - @media (max-width: 640px) { - .tbar-row { grid-template-columns: 1fr 70px; grid-template-rows: auto auto; } - .tbar-track { grid-column: 1 / -1; order: 3; } - } - .receipt-note { font-size: 14px; color: var(--ink-3); margin: 0; } - .receipt-note a { color: var(--accent-ink); } - - .gate-rows { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; } - .gate-row { - display: grid; grid-template-columns: 52px 1.5fr 1fr 1fr 74px; gap: 12px; align-items: center; - padding: 14px 18px; background: var(--bg-raised); font-size: 14.5px; - } - .gate-row + .gate-row { border-top: 1px solid var(--line); } - .gate-row.head { - font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.08em; - text-transform: uppercase; color: var(--ink-3); background: var(--bg-sunken); padding: 10px 18px; - } - .gate-row .cid { font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--accent-ink); } - .gate-row .meas { font-family: "IBM Plex Mono", monospace; font-size: 13.5px; } - .pill { - font-family: "IBM Plex Mono", monospace; font-size: 11.5px; font-weight: 600; - letter-spacing: 0.06em; padding: 3px 10px; border-radius: 999px; text-align: center; - } - .pill.pass { color: var(--pass); border: 1px solid var(--pass); } - .pill.fail { color: var(--fail); border: 1px solid var(--fail); } - @media (max-width: 640px) { - .gate-row { grid-template-columns: 44px 1fr 64px; grid-template-rows: auto auto; } - .gate-row.head { display: none; } - .gate-row .meas { grid-column: 2; } - .gate-row .pill { grid-row: 1; grid-column: 3; } - } - .fail-explain { margin: 20px 0 0; color: var(--ink-2); font-size: 15.5px; max-width: 68ch; } - .fail-explain strong { color: var(--ink); } - - .backends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; } - @media (max-width: 860px) { .backends { grid-template-columns: 1fr; } } - .backend { - border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; background: var(--bg-raised); - } - .backend .bname { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 15px; } - .backend .bver { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--ink-3); margin-left: 6px; } - .backend .bscore { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 2px; } - .backend .bnote { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.5; } - - /* components */ - .components { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } - @media (max-width: 960px) { .components { grid-template-columns: 1fr 1fr; } } - @media (max-width: 620px) { .components { grid-template-columns: 1fr; } } - .comp { - background: var(--bg-raised); border: 1px solid var(--line); border-radius: 10px; padding: 22px; - display: flex; flex-direction: column; gap: 8px; - } - .comp .cname { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 16.5px; letter-spacing: 0.01em; } - .comp p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; flex: 1; } - .chip { - align-self: flex-start; font-family: "IBM Plex Mono", monospace; font-size: 11px; - letter-spacing: 0.07em; padding: 3px 9px; border-radius: 999px; - background: var(--chip-bg); color: var(--ink-2); border: 1px solid var(--line); - } - .chip.shipped { color: var(--pass); border-color: var(--pass); background: transparent; } - - /* security statement */ - .security { - background: var(--code-bg); color: var(--code-ink); border-radius: 12px; padding: 36px; - } - .security h2 { color: var(--code-ink); } - .security .sec-lede { color: #a9a294; } - .security .sec-index { color: var(--accent); } - .invariants { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 34px; margin-top: 6px; } - @media (max-width: 720px) { .invariants { grid-template-columns: 1fr; } } - .invariant { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; } - .invariant .mark { color: var(--accent); font-family: "IBM Plex Mono", monospace; font-weight: 600; flex-shrink: 0; } - .invariant strong { font-weight: 600; } - - /* roadmap */ - .roadmap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-raised); box-shadow: var(--shadow); } - .rm-row { display: grid; grid-template-columns: 92px 150px 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; } - .rm-row + .rm-row { border-top: 1px solid var(--line); } - .rm-row .ver { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 17px; color: var(--accent-ink); } - .rm-row .layer { font-weight: 600; font-size: 16px; } - .rm-row .goal { color: var(--ink-2); font-size: 15px; } - .rm-row .state { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-3); white-space: nowrap; } - .rm-row .state.now { color: var(--accent-ink); } - @media (max-width: 720px) { - .rm-row { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; } - .rm-row .goal { grid-column: 2; } - .rm-row .state { grid-column: 2; } - } - - /* cta */ - .cta-block { - margin: 72px 0 0; border: 1px solid var(--line-strong); border-radius: 12px; - background: var(--bg-raised); padding: 36px; box-shadow: var(--shadow); - } - .cta-block h2 { margin-bottom: 10px; } - .cta-block p { color: var(--ink-2); max-width: 62ch; margin: 0 0 24px; } - .clonebar { - display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line-strong); - border-radius: 9px; overflow: hidden; max-width: 640px; margin-bottom: 22px; - } - .clonebar code { - flex: 1; background: var(--code-bg); color: var(--code-ink); - font-family: "IBM Plex Mono", monospace; font-size: 13.5px; - padding: 14px 16px; overflow-x: auto; white-space: nowrap; - display: flex; align-items: center; - } - .clonebar code .prompt { color: var(--accent); margin-right: 10px; user-select: none; } - .copybtn { - border: none; border-left: 1px solid var(--line-strong); background: var(--bg-sunken); - color: var(--ink); font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 500; - padding: 0 18px; cursor: pointer; white-space: nowrap; - transition: background 0.15s ease, color 0.15s ease; - } - .copybtn:hover { background: var(--accent-soft); color: var(--accent-ink); } - .copybtn.copied { background: var(--accent); color: #171106; } - @media (max-width: 560px) { - .clonebar { flex-direction: column; } - .clonebar code { white-space: normal; word-break: break-all; } - .copybtn { border-left: none; border-top: 1px solid var(--line-strong); padding: 12px 18px; } - } - .link-row { display: flex; gap: 10px; flex-wrap: wrap; } - - footer { - margin: 56px 0 0; padding: 22px 0 34px; border-top: 1px solid var(--line); - display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; - font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--ink-3); - } - footer a { color: var(--ink-2); } - </style> - </head> - <body> - <div class="wrap"> - - <div class="toprow"> - <a class="wordmark" href="#top">INTERPLANE<span class="dot">.</span>IO</a> - <nav class="topnav" aria-label="Page sections"> - <a href="#results">Results</a> - <a href="#components">Components</a> - <a href="#security">Security</a> - <a href="#roadmap">Roadmap</a> - <a class="repo" href="https://github.com/aien-dev/interplane" target="_blank" rel="noopener">GitHub ↗</a> - </nav> - </div> - - <header class="hero" id="top"> - <p class="hero-rule">An open protocol for local & self-hosted AI</p> - <h1>The layer between the model and <span class="plane-word">everything it can touch.</span></h1> - <p class="lede"> - A model proposes. A runtime disposes. Today the two are wired together ad hoc — every agent - framework invents its own tool format, its own permission story, its own way of hoping the - model behaves. <strong>INTERPLANE standardizes what crosses between them</strong>: the model sees - only the tools the task needs, the runtime keeps every authority decision, and each run - leaves a receipt that can be checked. - </p> - <div class="cta-row"> - <a class="btn primary" href="https://github.com/aien-dev/interplane" target="_blank" rel="noopener">Read the specification <span class="arrow">→</span></a> - <a class="btn" href="#results">See the measured results</a> - </div> - - <figure class="hero-figure" style="margin:0">