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/docs/COMMUNITY.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 / docs / COMMUNITY.md` 97 lines ยท 7267 bytes Raw Blame History Source # Community machines (the runner hub) People connect their own Linux aarch64 computers (a DGX Spark, for example) with one line, `curl -fsSL https://interplane.io/community/join | sh`, and rerun published salvage parts there. The runner is spark-connector (rad:`z2LKDxnAK3EFfqgr7HTZh6djts65P`); its wire contract is spark-connector `docs/PROTOCOL.md` (ipcc1). This slice, `community/`, is the hub side. ## Routes Path Method What `/community/` GET what joining does, the line, which computers can join, how to stop and leave, the counting rule, the registered runners (count, Interplane's note on its own runners, each key), every published part with its record, file fingerprints `/community/api` POST one signed ipcc1 message: register, next, result, leave `/community/join` GET the join script (`dist/join.sh`) `/community/dl/` GET a file of `dist/` (runner, compiler, SHA256SUMS) `/community/part/` GET developer view: every counted key with time, exit, binary and stdout hashes, signed message `/community/msg/` GET one accepted signed message, as stored; the id is the SHA-256 of its signed bytes `/community/key/` GET one key file: public key, declared rate, time, joined or left `/community/ledger` GET one line per accepted message `/community/alarms` GET one line each time a volume counter first passes its threshold in an hour (key or `all` or `refused`, and the count) `/community/refused` GET one line per refusal (time, reason, key, message hash) The salvage part page (`/salvage/`) shows the same "Ran again by N community runners: K agree" line with a link to the developer view. A runner is a key, and one computer can hold several (Interplane's own Spark runs one directly and one in a container), so the pages count runners, never machines. Which keys share a computer is known only to the operator, who says so in `runners-note` (below); the hub cannot tell from outside. ## What the hub does with a message Checks in this order, each refusal answered with `ipcc1 refused ` and appended to `refused`: size (4096 bytes), exact form, key (registered and not left; for register the key in the message), clock (300 s), signature (ECDSA P-256 / SHA-256, om/tls `ecdsa_verify_raw`), deny list, replay (the SHA-256 of the signed bytes already stored, so a malleated signature is a replay too), then the kind. Volume is counted, not refused: signed messages (after the signature and replay checks) per key and in all, and refusals, per hour; when a count first passes its threshold (150 per key, 3600 in all, 3600 refusals) one line naming the key (or `all`, `refused`) and the count goes to `alarms`, served at `/community/alarms`. A result must answer a job issued to that key less than an hour ago, for the same part and compiler, and each job is used once. A key counts once per part: the first counted result; later ones are stored and answered `duplicate`. Nothing a runner sends is executed, compiled or used as a path; every file name built from a message is lowercase hex of fixed length. ## Two roots The record store, `INTERPLANE_COMMUNITY_DIR` (production `~/forge-data/community/`, writable by the server): `keys/`, `jobs/`, `used/`, `msgs/` (all written once, O_EXCL, except a key file, which is replaced on register and leave), `parts//k/` (the counted result), `parts//g//` and `.v` (agreement groups), `rate/`, `rate/all` and `rate/refused` (hourly volume counters), `alarms` (one line when a counter first passes its threshold in an hour, served at `/community/alarms`), `ledger` and `refused` (append only; at 4 MiB each of the three logs is set aside as `.`, kept and served at `/community/.`, so no file nears forged's file-size limit), `writer.lock`. The read-only root, `INTERPLANE_COMMUNITY_PUB` (production: the host folder `~/forge-community/`, outside forge-data, seen by the server at `/community/`): `dist/` (the files of `/community/join` and `/community/dl/`, made by spark-connector `dist.sh`) and `deny` (written by the operator: lines `key <64 hex>` or `part <64 hex>`). Optional: `runners-note` (written by the operator, plain text, at most 2048 bytes shown, escaped), shown on `/community/` under the runner count, e.g. "Both runners are on the same host". The hub needs both roots; without either the slice is off. ## Switching it on and off `infra/spark/forged-sandbox.sh` passes both roots when salvage is on and `~/forge-data/community/` exists. It binds `~/forge-community/` (`FORGED_COMMUNITY_PUB`) read-only at `/community` directly under the sandbox's read-only root, so no path the server can write or rename leads to what volunteers download or to the deny list (a read-only mount inside a writable directory would move with it when that directory is renamed). The folder, its `dist/` and `deny` must be real (a link stops the sandbox). On: create `~/forge-community/` (0700) with `dist/` (spark-connector `dist.sh`) and an empty `deny`, create `~/forge-data/community/` (0700), deploy a build whose `community/READY` exists, restart forged. Off: rename `~/forge-data/community/` and restart; nothing is deleted. Without it every `/community/` page is 404 and the API answers `off`. `infra/test/sandbox.sh` checks the layout with a probe (store writable; dist and deny not; `/community` cannot be renamed; moving the store away and recreating `community/dist/join.sh` in it does not change the served file), a mutant wrapper that binds the folder writable (caught), and a link in place of `deny` (refused). It then requests every route above through forged inside the wrapper (`infra/test/sandbox-community.sh`) with the live store's shapes: a part whose `k/` lists `.` or `..` last (the shape that made the live forged exit 103 on 2026-11-11), empty lists, one runner, a disagreeing runner, registered and left keys; with controls (ids under the other route, same-length wrong prefixes) and an eager-read mutant. ## Limits and what kind of limit each is Decision 2026-11-11 (lead, under Drake's delegation, `briefs/decisions-20261111.md` point 2): no app-level caps on the hub beyond the public edge's request-rate limiting (nginx, per address); volume is watched by the alarms above and handled with the deny list. What stays is protocol: a message is at most 4096 bytes (the longest valid one is under 1 KiB), clock skew 300 s (the replay window of signed messages), a job is answered within 3600 s. Logs are set aside at 4 MiB so no file nears forged's file-size limit (a sandbox containment limit). Our own code holds no fixed table: the deny list, the directories and the salvage index are read as streams; the developer view lists every key. ## Gate `sh community/tests/run.sh` runs spark-connector's `gates/run.sh` against this checkout (`RUNNER_SRC`, default `../spark-connector`; `OMEGA_SRC` default `../omega-mv` at `b2ad967e` for the runner; the forge's own pin for the hub). It builds a test hub from this tree on a private port with scratch data and runs every case with its negative control.