Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them.
Page: /drakestapleton/interplane.io/patches/02fe3b0a62c2dd02
# 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
Sign in to star 0 stars 0 watching
About Files History Releases Proposed changes Issues For developers
## GitHub aien-dev/interplane.io#8 (code only)
closed derived `02fe3b0a62c2dd02` #8
Imported from GitHub aien-dev/interplane.io#8 (code only)
GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).
Base `fa136116a67b58f22a1571277304812571043cc3` · Head `bb767b1893009f44c734c5c5e4ebf941c901ab96`
### Fetch it
A git bundle of the pull request's head, `9098599` bytes.
```
curl -fsSL https://interplane.io/drakestapleton/interplane.io/patches/02fe3b0a62c2dd02.bundle -o 02fe3b0a62c2dd02.bundle
git fetch 02fe3b0a62c2dd02.bundle refs/pull/8/head
```
Raw bundle · Diff
### Provenance
This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:
```
github-import 1
aien-dev/interplane.io
8
bb767b1893009f44c734c5c5e4ebf941c901ab96
```
```
{"kind":"github-import","owner":"aien-dev","repo":"interplane.io","number":8,"url":"https://github.com/aien-dev/interplane.io/pull/8","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:40:32Z","metadata":"unavailable","state_derived":true}
```
### Changes
```
diff --git a/README.md b/README.md
index f518c22..78bbb41 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,10 @@ page names the commit it was read at and links to it. The editorial copy lives i
`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 executable scripts, no outside fonts, no trackers; the only requests a visitor's browser makes are to interplane.io;
+- one strictly parsed, HTML-safe `application/ld+json` block describes the website and exact protocol source pin; it runs no code;
+- crawler files and every generated local target must match the build; `llms.txt` links all six generated routes and pinned protocol documentation;
+- sitemap dates are omitted rather than using hourly fetch time as a content-change date;
- 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, BLOCKED, RUNNING or NO VERDICT), never summarised;
@@ -31,12 +34,34 @@ page names the commit it was read at and links to it. The editorial copy lives i
```
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 build dist # renders all six routes, 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.
+## Developer onboarding candidate (issue #6)
+
+The route inventory in `crates/site-builder/src/routes.rs` generates Overview (`/`),
+Quick Start (`/quick-start/`), Concepts (`/concepts/`), Writing an Adapter (`/adapter/`),
+Conformance (`/conformance/`) and Versioned Status (`/status/`). Each has a unique title,
+description and canonical, inert metadata and static HTML navigation. The existing facts
+collector and hosting scripts are unchanged; this source change does not deploy anything.
+
+The Quick Start recipe has its own immutable protocol pin, explicitly separate from the
+advancing source-status snapshot. Clone and Cargo fetch require network access; the scripted
+exercise is offline after dependencies are fetched. It uses no real model or GPU.
+
+For the literal rendered recipe replay and route corruption controls, after building dist:
+
+```sh
+python3 evidence/ONBOARDING-L642/qualify.py
+```
+
+This cold-clones the pinned source, so it needs network access and Git/Rust/Cargo. Raw receipts
+and the source snapshot are in that evidence directory. The earlier `evidence/discoverability-issue7`
+receipts describe their original pinned single-route source, not qualification of these new routes.
+
## Hosting and automation
The site is served by nginx on the project's Raspberry Pi house server. GitHub Pages is not used.
diff --git a/crates/site-builder/src/discovery.rs b/crates/site-builder/src/discovery.rs
new file mode 100644
index 0000000..9fb5ec1
--- /dev/null
+++ b/crates/site-builder/src/discovery.rs
@@ -0,0 +1,168 @@
+//! Discovery metadata, generated from the same facts and route inventory as visible HTML.
+use crate::{
+ facts::Facts,
+ page,
+ routes::{Route, ALL},
+};
+use serde_json::{json, Value};
+use std::{fs, path::Path};
+pub const JSON_OPEN: &str = "")
+}
+pub fn json_block(html: &str) -> Result {
+ let lower = html.to_ascii_lowercase();
+ if lower.matches(" & text".into();
+ let html = page::render(&f);
+ let prefix = "").unwrap();
+ let data: serde_json::Value = serde_json::from_str(raw).expect("valid JSON-LD");
+ assert_eq!(data["@context"], "https://schema.org");
+ let graph = data["@graph"].as_array().unwrap();
+ assert_eq!(graph.len(), 2);
+ assert_eq!(graph[0]["@type"], "WebSite");
+ assert_eq!(graph[1]["@type"], "SoftwareSourceCode");
+ assert_eq!(graph[1]["version"], f.pin.sha);
+ assert_eq!(graph[1]["codeRepository"], f.pin.url);
+ assert_eq!(graph[1]["description"], f.pin.description);
+ assert!(!raw.contains('<') && !raw.contains('&'));
+ assert!(verify_html(&html, "").is_empty());
+ assert!(!verify_html(&(html.clone() + ""), "").is_empty());
+ assert!(!verify_html(&html.replace(raw, "not json"), "").is_empty());
+ assert!(html.contains("class=\"language-sh\""));
+ assert!(html.contains("main id=\"main\" tabindex=\"-1\""), "skip target must be focusable");
+ }
+
+ #[test]
+ fn built_discovery_files_and_corruption_are_verified() {
+ let dir = std::env::temp_dir().join(format!("interplane-discovery-{}", std::process::id()));
+ fs::create_dir_all(&dir).unwrap();
+ let facts_path = dir.join("input.json");
+ let f = sample();
+ f.save(&facts_path).unwrap();
+ let out = dir.join("dist");
+ // CLI build is run at repository root; Cargo runs unit tests in the crate directory.
+ std::env::set_current_dir(concat!(env!("CARGO_MANIFEST_DIR"), "/../..")).unwrap();
+ build(&out, &facts_path).unwrap();
+ let llms = fs::read_to_string(out.join("llms.txt")).expect("missing llms.txt");
+ assert!(llms.contains(page::SITE_URL) && llms.contains(&f.blob("STATUS.md")));
+ assert!(!fs::read_to_string(out.join("sitemap.xml")).unwrap().contains(""));
+ assert!(verify(&out).is_ok());
+ for file in ["llms.txt", "robots.txt", "sitemap.xml", "public/hero.webp"] {
+ let path = out.join(file);
+ let original = fs::read(&path).unwrap();
+ fs::remove_file(&path).unwrap();
+ assert!(verify(&out).is_err(), "missing {file} must be refused");
+ fs::write(path, original).unwrap();
+ }
+ let index = out.join("index.html");
+ let original = fs::read_to_string(&index).unwrap();
+ for (from, to) in [
+ ("rel=\"canonical\" href=\"https://interplane.io/\"", "rel=\"canonical\" href=\"https://wrong.example/\""),
+ ("https://interplane.io/public/hero.webp", "https://wrong.example/missing.webp"),
+ ("href=\"/facts.json\"", "href=\"/missing.json\""),
+ ("SoftwareSourceCode", "FakeSoftware"),
+ ] {
+ assert!(original.contains(from));
+ fs::write(&index, original.replace(from, to)).unwrap();
+ assert!(verify(&out).is_err(), "corruption {from} must be refused");
+ }
+ fs::write(&index, original.clone()).unwrap();
+ for duplicate in [
+ "",
+ "",
+ "",
+ "",
+ ] {
+ for mutated in [format!("{original}{duplicate}"), original.replace("", &format!("{duplicate}"))] {
+ fs::write(&index, mutated).unwrap();
+ assert!(verify(&out).is_err(), "conflicting metadata must be refused: {duplicate}");
+ }
+ }
+ fs::write(&index, original).unwrap();
+ assert!(verify(&out).is_ok());
+ fs::remove_dir_all(dir).unwrap();
+ }
+
+ #[test]
+ fn remote_src_is_refused_but_external_links_remain_valid() {
+ let dir=std::env::temp_dir().join(format!("interplane-remote-src-{}",std::process::id()));
+ fs::create_dir_all(&dir).unwrap();let input=dir.join("input.json");sample().save(&input).unwrap();
+ let out=dir.join("dist");
+ std::env::set_current_dir(concat!(env!("CARGO_MANIFEST_DIR"),"/../..")).unwrap();
+ build(&out,&input).unwrap();assert!(verify(&out).is_ok());
+ for route in routes::ALL {
+ let file=out.join(route.file());let original=fs::read_to_string(&file).unwrap();
+ fs::write(&file,original.replace("