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-forge/blob/main/ipl/DESIGN.md # interplane-forge INTERPLANE Forge Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `interplane-forge / ipl / DESIGN.md` 100 lines · 10334 bytes Raw Blame History Source # Interplane without Radicle: what replaces it Status: step 1 is IMPLEMENTED and EXERCISED on the Spark host in a trial store (see README.md and CONTRACT.md); steps 2 to 6 are PROPOSED. Written 2026-11-13 by the omp session in `~/tmp` on the Spark. ## Intent (Drake, 2026-11-13, verbatim) "we are cutting out radicle" "Staying on interplane, it's just being built without radicle now" "I want you to take everything radicle did and replicate it into interplane and leave out all the bullshit and part that no nody likes. Maek this intended and designed around agent workflows and agent coding" In one line: Interplane itself keeps, proves, copies and reviews our code, with an agent as the normal user, and nothing of Radicle underneath. ## What was observed (2026-11-13, Spark) - 106 public repositories of ours and 1 private one live in Radicle storage (`rad ls --all`, node database). - Our tools call `rad` in 18 different ways. By count in `~/handoffs/radicle/tools`, `~/work/sitehub`, `~/.local/bin`: inspect 53, node 19, sync 17, self 10, init 10, patch 9, id 6, auth 6, config 5, seed 4, clone 4, checkout 3, unseed 2, follow 2, cob 2, ls 1, issue 1, fork 1. - 20 landing and record tools read Radicle storage directly (desk-publish, land-hooks, hub-sync, pin-follow, rids-gen, record, publish, the gates). - The forge web server `forged` (seeded Omega, 69,536 lines of `.om`) reads Radicle in 45 units across 14 folders. - Replication measured the same day: updates did not reach outside seeds that could not dial our node. 477 outside copies were behind our head (node database); two public seeds confirmed it for one project over their own web API. - The interplane.io site redeploys when a ref changes inside Radicle storage (an `aien-onchange` watch on that folder). The rules installer and the SI front door clone from Radicle storage. ## What Radicle did for us, and what Interplane does instead Job Radicle's way Interplane's way Why Keep code and history Git objects inside a per-node store, one copy of every branch per peer One plain repository per project in one known folder, one `main` No per-peer copies to reconcile. "Which head is real" has one answer. Say which head is real Each peer signs its own list of refs; a rule picks the canonical one from delegates One signed landing record per change, in an append-only chain per project The record already exists in our work as the receipt. It becomes the protocol instead of a side file. Who may publish Identity document, delegates, thresholds Owner key per project. The owner grants an agent key a scope (which project, land or propose only) and an end date Radicle has no idea of an agent working for a person. This is the centre of the new design. Proposed changes Patches as collaborative objects with revisions A proposal is one request: the exact head, its gate output, its review verdict. States READY, REVIEWED, LANDED, REFUSED This is the READY, verdict, receipt flow the lanes already follow by hand. Issues Collaborative objects Plain signed records in the same chain One mechanism, not two. Copy projects between machines Always-on node, gossip, seeding policies, inbound connections A mirror pulls the signed chain and the objects over ordinary HTTPS from any other mirror and checks every signature Nothing has to dial into a home network. A mirror cannot alter a project, because the chain is checked. A mirror can still serve an older copy that verifies, so "is this the newest" needs a signed checkpoint the puller can compare; pulling makes an update reachable, it does not by itself prove freshness. Find a project Network routing table The list of mirrors is itself a signed record of the project No separate discovery layer. Private projects Allow-lists enforced by the node A private project is not served and not mirrored Simple, and fails closed. ## What is left out on purpose - The node program and its network protocol, port 8776, peer addresses, gossip. - Per-peer copies of every branch and the rules for choosing among them. - Seeding policies and scopes. - Delegate thresholds and identity documents as a separate object type. - The `rad` program as something a person or agent must install, the key passphrase and agent dance. - The vocabulary: RID, NID, DID, delegate, seed, sigrefs, COB. Old Radicle IDs stay as a lookup alias in the developer view so old links and receipts still resolve. ## Designed for agents first - Every action is one request to a stable address with plain inputs, and answers in a machine-readable form, including refusals. A refusal names the rule that refused and what would satisfy it. - Every write accepts a dry run that returns exactly what would be recorded. - Every write carries a request ID, so a retried request never lands twice. - An agent never holds the owner's key. It holds its own key and a grant with a scope and an end date. A grant can be withdrawn with one record. - A landing is refused by the server itself unless the proposal carries gate output from a fresh clone and a verdict from a reviewer whose key differs from the author's. The rule stops being something agents are asked to remember. - Changes are announced as events a reader subscribes to. Nothing polls. - The site's agent file lists each action only once it works. - People get the same actions as pages, from the same handlers. ## Order of work - Store and chain. A tool that creates a project, records a landing as a signed link in the chain, and verifies a chain from its first record: the record rules in Omega first, the orchestration in shell until it is moved into Omega too. Import the public repositories with their history. Acceptance: every imported head equals the head in Radicle storage; a chain with one altered byte is refused. How many projects a given head imported, and which it refused, is in that head's receipt (`READY.json`, written by `tools/receipt.sh`), not here. One exclusion is known and stated: `.github`, a profile repository left over from GitHub, is refused by the name rule. - `forged` reads the store. Browse, download and project pages served from the store. Acceptance: the same pages byte-for-byte for a sample of projects, with Radicle storage unmounted in the test. - Agent requests. Propose, review, land, grant, withdraw, with dry run and request IDs. Acceptance: a landing without a second-key verdict is refused; a replayed request does not land twice. - Mirrors. Pull and verify over HTTPS; the hub Pi becomes the first mirror. Acceptance: a mirror that serves an altered chain is refused by the puller. - Our own tools move over: landing tools, hooks, pin following, the rules installer, the site deploy trigger, the SI front door. Acceptance: one real landing end to end with no `rad` call (checked by running with `rad` absent from the path). - Issues and events. Then the Radicle nodes can be switched off, which is Drake's call. Step 1 is built in trial form. Until step 5 passes, work waits as READY under the standing rule. ## Owner-key succession Swapping `owner.pub` alone would break verify for history, because every earlier signature was made by the key record 1 names. The store records a handover explicitly: `ipl handover` appends a `SUCCESSOR` record (canonical bytes from `om/landrec.om`) naming the new public key and its SHA-256 fingerprint, then a `SIG` by the then-current owner key, in the same record and signature style as a landing. After that signature, only the successor key is current. Records before the handover still verify against the old key; a later record signed by a retired key does not verify. `owner.pub` stays the key named in record 1. Sequential handovers are followed in order. A rerun that names a successor already current is a no-op. A successor may not be a key that has already been an owner of the project; verify fails closed on a chain that hands a retired key back. `ipl handover --all` prechecks every project and writes nothing unless every project can be handed over. `ipl verify` prints the current owner fingerprint and the chain head (seq and hash of the last line). The current owner is pinned in `${IPL_OWNER_PINS:-$HOME/.config/interplane/owner-pins}`, outside the store (mode 0600). `verify`, `land`, `import`, `handover` and `catalog` apply it automatically and fail closed if the file is missing, inside ROOT, group- or world-accessible, or mismatched; `--expect-owner FP` that disagrees with the file also fails. After a signed `SUCCESSOR` is recorded, `handover` updates that pin (a single handover rewrites the NAME line and prints `ipl: pin: NAME SHA256:...`; `--all` rewrites every rotated NAME line, and `*` only if it named the old key, and prints `ipl: pin: * SHA256:...`) for the forge, gates and mirrors, which must be updated by hand from the new key's `.pub` — never from a store. The pin is checked before `mend` touches files. `ipl handover --all` holds every project's lock from preflight through write. The `load_current` walk used by `prove_owner` checks each record's `prev` link (GENESIS for record 1) before `mend` is allowed to change files. Signing and signature checks stay with `ssh-keygen -Y` (Omega has no Ed25519 unit yet; the same gap is noted below). The walk that decides which key is current, and the handover orchestration, stay in `ipl` until those decisions move into Omega with the rest of the tool. ## Not yet established - Settled while building step 1: `forged` has no Ed25519 of its own, it runs `ssh-keygen -Y verify`; step 1 signs and verifies the same way. An Ed25519 unit in Omega beside `om/tls` is still to be written. - Settled by Drake's words to the HardenOS lane ("build this directly on to of git"): Git stays the storage format. - How the first landing of this system itself is reviewed and installed, since it is the thing that makes landings possible. The HardenOS lane proposed: run the candidate only as a test artifact from a fresh clone until its gates and an other-provider MERGE exist, then use the route to record its own reviewed head, then install from that. Not settled; it may need Drake's word. - Drake's own owner key. The trial uses a throwaway key. The real one is made and kept on his machine.