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
interplane.io / AUDIT_SCOPE.md
| 1 | # Audit scope: interplane.io |
| 2 | |
| 3 | What an auditor should read, and what is out of scope. Updated 2026-11-10 for the Omega builder. |
| 4 | |
| 5 | ## What this repository is |
| 6 | |
| 7 | The source of two static sites, interplane.io and hopbot.org. One seeded Omega program, |
| 8 | `native/site.om` (composed after the pinned `native/lib/sha2.om`), assembles pages from `content/` |
| 9 | and `public/`, checks them and writes the output. No code runs in a visitor's browser. |
| 10 | |
| 11 | ## Read first |
| 12 | |
| 13 | 1. `native/site.om`: file reads (`slurp`: regular files only, no final-component links, 2 MiB cap), |
| 14 | exclusive writes (`wrraw`), the placeholder expander (`expand`), the text policy (`polscan`), the |
| 15 | markup and URL checks (`chkmark`, `attrval`, `localurl`), the ledger rules (`reccheck`, `paycheck`) |
| 16 | and the contrast arithmetic (`contrast`). |
| 17 | 2. `scripts/build-native.sh`: the compiler and library pins. |
| 18 | 3. `scripts/sync-to-hub.sh`: the deploy job. It refuses a dirty checkout, a wrong compiler, and a |
| 19 | failed build or verify, and keeps a pending marker across a failed transfer. |
| 20 | |
| 21 | ## Trust boundaries |
| 22 | |
| 23 | - Trusted: the committed sources under review, the pinned compiler, the build host. |
| 24 | - Untrusted until checked: `content/papers.snapshot` and `content/papers.sources` (text copied from |
| 25 | Zenodo: strict character set, escaped on the way into HTML, JSON and BibTeX), |
| 26 | `content/hop.copy.txt`, `content/hop.release.txt`, `content/hop.install.sh` (copied unchanged and not content-scanned: the one exemption, |
| 27 | pinned by `install_sha256`), `content/receipts/`, `content/live.txt` and |
| 28 | `content/yard.snapshot.tsv`. Their values reach HTML only after a strict character-set check or |
| 29 | HTML escaping; a line that breaks its rule refuses the build. |
| 30 | - Out of scope: the forge web application, the Radicle network, the web server configuration. |
| 31 | |
| 32 | ## Known limits |
| 33 | |
| 34 | - The checker is bounded and lexical. It does not prove DOM nesting, accessibility or the truth of |
| 35 | a sentence. Parent-directory links and concurrent writers are outside its contract. |
| 36 | - A build refused by a late rule (local links, fragments) can leave an incomplete output directory. |
| 37 | - The protocol pages and `/facts.json` are a dated snapshot; nothing refreshes them. |
| 38 | - `evidence/` holds the receipts of the retired Rust generator, kept as history. |
| 39 | |
| 40 | ## Reproduce |
| 41 | |
| 42 | ```sh |
| 43 | OMC=/path/to/omc sh scripts/tests/check-site.sh |
| 44 | sh scripts/tests/check-sync.sh |
| 45 | ``` |