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/OPEN-BUILDS.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 / OPEN-BUILDS.md` 445 lines · 41250 bytes Raw Blame History Source # Open builds: the shelf of unfinished projects (Open Humanity) Drake, 2026-11-10: "people can use this as a way for them to complete their broken projects. We upload our projects that didn't quite get finished, or are not quite what you want yet. It's not ready to publish, but it's still open and we want to work on it. Radicle is the way to do it, through Interplane." A person signed in with a Radicle key gives the Radicle id (RID) of a project. This node seeds and fetches it within limits and lists it at `/open/` as open, unfinished and not verified, with its `rad clone` line, so other builders and their agents can pick it up and send patches over Radicle. Part Where it runs What it does `open/route.om` (in forged) inside the forged sandbox `GET /open/` (HTML, or JSON `interplane/open-builds/1` on `Accept: application/json`), `POST /open/` with `action=bring` (`rid`, `note`, `consent=yes`) or `action=withdraw` (`rid`); session, CSRF token and origin are checked as for every forge write; it appends one line to `open/queue` `open/intake.om` (`./run.sh intake`) its own service, outside that sandbox reads the queue, checks every field again, asks the Radicle node (`rad seed --scope all --fetch`), keeps the free-space reserves, publishes `open/list.tsv` forged has no network and cannot run `rad`, so it only leaves a file; the intake polls that file once a second. ## The project page JSON under names of their own: `/open.json` (the shelf) and `/open/.json` (one project) answer the same JSON as the page addresses do with `Accept: application/json`. Use these names from outside: the cache in front of forged keys on the address, so an anonymous request with only the Accept header can be answered with the cached HTML page (ledger L1139). The forge row carries an "Open builds" entry on every page. `GET /open/` shows one listed project: its row, then a snapshot of its HEAD that the intake took with read-only git commands: the head and its date, the last 10 commits, the top-level files (at most 200) and the README (`README.md`, else `README`; at most 32 KiB). JSON `interplane/open-build/1` on `Accept: application/json`. The snapshot is the file `open/p/.txt`; forged cannot read a brought repository itself (its sandbox mounts only the curated ones). It is written when the project is listed, again when the key that listed it brings it again, and removed when it is withdrawn. Every line is cut at 400 bytes, control bytes become spaces, bytes that are not UTF-8 become `?`, and forged escapes all of it on output. git runs with a cleared environment and no system or user configuration; nothing from the project is executed. Only a project on the shelf (open, held or stored) has a page. The "Unfinished:" line, on the shelf card and on the page, is left out when the note is empty (no placeholder); the JSON keeps `"unfinished": ""`. The page of a project the hub stored (the one-command bring) ends with a developer section, `
` with `
` (the curated project page's classes): the Radicle ID, the clone line, the download and its SHA-256, the bringer's DID and public key in ssh form (`ssh-ed25519 AAAA...`, encoded in forged from the did:key, so the check command can be copied as it stands), the hub's key and what each signature shows and how to check it. The hub's key is the node's own DID as the intake read it (`rad self --did`, written as line `N` of the snapshot), never a constant in forged; a snapshot without that line (taken before this change, or when `rad self` did not answer) leaves the key out of the section and the sentence. Every value is escaped. Parts taken from the project. The page also lists submissions (`docs/SALVAGE.md`) that came from this project: a source whose origin field is exactly `rad:`, and an Omega part derived from such a source. The salvage slice publishes a derived part only after its declared example was reproduced, so a listed part is a verified one and links to its page and receipt; a source is listed as not verified. This is how work on a shelf project gets verified piece by piece: bring the project, submit a source from it with that origin, derive a part, verify it. The project line itself stays "Not verified": the list states facts, it is not a verdict on the whole project. The newest 200 submissions are looked at; nothing is listed while the salvage store is off. ## Rules the intake enforces - Who may bring: the keys listed in `/allow`, one DID a line. A line that is only `*` admits every signed-in key. No file admits nobody. The file is outside the folder forged can write. On interplane.io the file has carried the `*` line since 2026-11-11 (the owner's decision): the shelf is open to every signed-in key, within the limits below and the operator's remove file. - A project already on the shelf is not fetched again. - Held: a public project this node already holds and seeds by its own policy (`rad inspect --visibility`says public and`rad seed`lists it in its first column) is listed in state`held` without any fetch, seed or change, so the node's own unfinished projects can go on the shelf. Only a delegate of the project may list it: the bringing key must be a whole line of `rad inspect --delegates` (the DID at the start of a line, then a space, CR, LF or the end of the output). Any other key is refused with "refused: only a delegate of this project can list it from this node", and a node that does not answer (or whose answer does not fit 65,535 bytes) with "refused: the Radicle node did not answer; try again". So nobody can put the node's own projects on the shelf under their key. Withdrawing a held row only takes the row away; the repository and its seeding policy stay as they were. A repository on the node that is not public, or that the node does not seed (such as the leftover of the intake's own failed fetch once its refusal row is gone), is refused and never touched or listed. - A project the node has a seeding policy for but has not fetched (`rad seed` lists it) is refused and never touched; if the node does not answer that question, nothing is seeded. - A folder that appears after the intake's own failed fetch of a project (the node can finish a fetch after `rad` was stopped at the deadline) is that fetch's leftover: the next bring of the same project removes it and tries again. While the row says that fetch failed, a refusal that is not about a fetch (a key that is not invited, the storage reserve before a fetch, a node that does not answer) leaves the row as it is, so it cannot turn the leftover into a refusal for good; the key that asked then sees the row's earlier state. This holds while the refusal row is still in the list. - The shelf card says: "There is no limit on how many projects one person brings and no size limit. This computer keeps part of its disk free for its own work; a bring that would use that part is refused with the reason (this computer is nearly full; try again later), and nothing is stored." - No number of projects a key, none on the shelf and no size a project (decision of 2026-11-11, `~/handoffs/yourtrained-cortex/briefs/decisions-20261111.md` point 2): the former 8, 200 and 50 MiB are alarm thresholds (below), each naming the key and the volume. 90 seconds to fetch (not found: unseeded). The only refusal for room is the machine boundary, the free-space reserves (below): "refused: this computer is nearly full; try again later". Abuse is handled by noticing: the alarms, the remove file (a project or every project of a key) and withdrawal. - Withdraw: only the key that brought the project. It unseeds, removes the copy (a fetched or a stored one) and its download, and marks the row. - Removal by the operator: `/remove`, one line each, a project (`rad:z...` or `z...`) or a key (`did:key:...`), exactly (a line ending in CR LF names nothing; the file is read to 65,535 bytes and lines past that are not read, so keep it to the names that still matter). The named project, and every project brought by a named key, comes off the shelf one row a pass (about one a second while the queue is idle; a key with 3 projects took 3.2 s): a fetched copy is unseeded and deleted, a held project is left as the node had it, the page snapshot goes, and the row stays under the bringer's key in state `refused: removed by the operator`, which that key sees (a later bring by another key is refused the same way, and the row then names that key). While the line stands the project cannot be brought again and the key cannot bring anything, whatever the allow file says. Take the line out to lift it. A `*` line names nothing. The file is outside the folder forged can write, like the allow file. This is the take-down path the shelf needs before `allow` is opened to every key. - The intake acts only on its private list (`/list.tsv`). The copy in `open/` is what forged shows; the intake never reads it back, so a row planted there cannot get anything removed. - Name and description come from the project's Radicle identity document, as data: control bytes and escapes become spaces, forged escapes every field on output. Any byte that does not start a well-formed UTF-8 character becomes `?` (name, description, note), so the list and its JSON stay valid UTF-8 even when a text is cut at its cap. - The list has no size limit and no row is dropped: every refusal and withdrawal row stays (a later request for the same rid replaces that rid's row). The intake reads `/list.tsv` a row at a time (64 KiB chunks, two read slots) and writes it streamed through `list.tsv.tmp` (fsync, rename), then copies the private file whole into `open/` the same way; forged reads the published copy a row at a time too. A row of any length is kept whole: both programs read the first 4,096 bytes of each field (every field they use or show is shorter), and the intake copies a row it does not hold whole straight from the file. A read or write that fails replaces nothing and the intake says so on stderr; the old list stays whole. The list is bounded by the free space of the work dir's filesystem (a write needs room for one more copy). `list_bytes` alarms at 209,715 bytes (80 percent of the former 262,143-byte read buffer) and `list_row_bytes` at a row of 4,096 bytes or more (the intake writes at most about 900). The gate runs a 1.2 MB list with a 70,000-byte row through two refusals, a withdrawal and a bring (every other row kept byte for byte), forged lists every shelf row of it, and a mutant that reads only the former 262,143 bytes cuts it. The HTML shelf and JSON shelf stream chunked in complete-row batches (no pagination); neither response is bounded by forged's 8 MiB body buffer. A read/send failure closes without a final chunk, so clients detect an incomplete response rather than accepting a prefix. HTML keeps its layout/translation hints and `format=text`. The gate plants 10,000 rows whose JSON and escaped HTML each exceed 8 MiB and checks every row in order, plus a mutant that accumulates the shelf in the old body buffer again. - Once the intake has read the queue to its end past 256 KiB, it renames it to `queue.old`, waits a second, handles any line written during the rename, removes it and starts again at offset 0; forged creates a new queue at the next request. forged has no queue cap: the queue is not a buffer of either program (the intake reads it 64 KiB at a time from a stored offset), so its growth is bounded by the data reserve, and `queue_bytes` alarms at the former 1 MiB. - The queue, a spool `.b64` and a `.sig` are opened O_NONBLOCK|O_NOFOLLOW and read only when fstat says they are regular files: a FIFO planted for one of them is skipped and the pass goes on (sweep and takedown included). ## What it does not do yet - The project page is a snapshot, not a browser: one README, the top-level file names and ten commits. Folders, file contents, history and patches are read with `rad clone`. The snapshot is as old as the last bring by its lister. - The project as a whole is never called verified. A receipt for a whole project needs a definition first; what the page shows is each verified part taken from it (above). - Nothing from a brought project is executed, compiled or opened by this node; it is stored git data. - The open folder is forged's (its sandbox can write ``), so the intake never writes, renames or removes anything there through a path. It opens `open`, and in it `up/`, `a/` and `p/`, itself with O_DIRECTORY|O_NOFOLLOW, makes that folder its working directory (fchdir) and then names only a file inside it. A link planted for one of those folders is refused and nothing is written; a link planted for a file is replaced by the rename of the temp file (created O_EXCL|O_NOFOLLOW), never followed. The queue, the spool and the signature are read the same way, never through a link. Every program the intake starts runs in `/`. The gate plants each of these links (`open/tests/up.sh` part 9) and mutants without the checks overwrite the outside files. - Known limit, same class as the salvage collector's: `` is writable by the sandboxed server, so a compromised server could queue requests under any DID (it is the authenticator). It cannot make the intake remove or unseed a repository the intake did not bring, nor write outside the open folder. - Known limit, same class: the bring statement carries no nonce or time, so a compromised server that kept a `.b64` and `.sig` pair can queue it again after its bringer withdrew the project, and the intake publishes it again (a new repository, under the same key, within that key's 8). The bringer can withdraw it again; the operator's remove file (the key, or the new project) keeps it down. ## One-command bring and get (hub side) Contract: `~/handoffs/yourtrained-cortex/briefs/one-command-contract.md` (slice HUB). A person's program (`interplane bring`, slice TOOL) makes an Ed25519 key on their machine, signs in like every forge sign-in, uploads a canonical ustar archive and signs a five-line bring statement. The hub checks it, creates the Radicle repository with its own key and lists it in state `stored`. What forged does (inside its sandbox; it decodes, unpacks and runs nothing it is sent): Request Answer `POST /open/up` `action=chunk`, `sha` (64 lowercase hex), `seq` (from 0), `data` (base64url, no padding) the same write gate as every forge write (session, CSRF field, Origin, the 30 writes a minute per IP and per key, the store); signed out is 403 here, not a redirect. 200 `next `; 409 `next ` when seq is not the next one or the upload was finished; 503 with the reason when there is no room by the intake's measure (below); 400 for a bad field; 503 when the spool cannot be written. Text bodies `POST /open/up` `action=finish`, `sha`, `files`, `bytes`, `name` ([a-z0-9-], 1 to 64, no leading, trailing or double `-`), `note` (optional, as the bring note), `consent=yes`, `sig` (armored SSH signature) 200 `queued `; 409 `next ` when fewer bytes than `bytes` arrived; 400 when more did or a field is bad; 503 with the reason when there is no room; 404 when the key has no such upload; a second finish answers `queued` again and queues nothing `GET /open/up/.json` the signed-in key's upload: `{"schema":"interplane/open-upload/1","state":...,"rid":...,"page":...}`; `receiving` (chunks only), `queued` (finished), then the intake's file (`stored` with rid and page, or `refused: `); 403 signed out, 404 for no upload of that archive under this key `GET /open/.tar` `open/a/.tar` for a row on the shelf, `application/x-tar`, `attachment; filename=".tar"`; 404 when there is none `GET /open/alarms.json` `open/alarms.json` as the intake wrote it `GET /bring.sh`, `GET /get.sh`, `GET /withdraw.sh` `open/tools/bring.sh`, `get.sh` and `withdraw.sh` as they are (the TOOL release writes them); 404 when absent forged writes only under `open/up/`: `..b64` (didhash: the first 8 bytes of sha256 of the DID, in hex, so a key only ever appends to its own spool; one line a chunk: the data, a tab, seq and the running byte total as 20 digits each, so every 64-bit count fits; the former 10 digits wrapped at 10^10 bytes), `..sig` at finish, and one queue line `U sha did files bytes name note`. A chunk or queue line that is written only in part (a full disk) is cut back to the file's size before the write and answered 503, so no fragment joins the next line. The shelf JSON and the page JSON carry `stored_by_hub` (true for a stored row), `download` (`"/open/.tar"` or null) and `download_sha256` (from `open/a/.sha256`, or null). A stored row on the shelf says: "Stored on Radicle by the Interplane hub: the hub's key signed the Radicle record. The person who brought it signed the list of files." What the intake does with a U line (outside the sandbox, in this order; every refusal writes the status file `open/up/..json` and removes the spool and scratch): - Checks every field again (sha 64 hex, did printable, files and bytes decimal, name with forged's rule: [a-z0-9-], 1 to 64 bytes, no `-` first, last or twice in a row; note without control bytes, exactly seven fields). A line that breaks a rule is ignored. - The remove file (`refused: removed by the operator`) and the allow file. No number a key, on the shelf or a project. The list must have room for the row (above). The storage filesystem must keep its reserve after four times the archive's size (the decoded copy, the unpacked tree, the git objects, the Radicle copy): else "refused: this computer is nearly full; try again later" and the `reserve_refused` alarm names the key and the bytes asked for. - Decodes the spool record by record (each record's seq and running total must match), checks the byte count (`refused: wrong archive byte count`) and the sha256 (`refused: wrong archive sha256`). - Copies the spool's signature into `bring.sig`, writes the statement and an allowed-signers line built from the DID into the work dir and runs `env -i PATH=/usr/bin:/bin /usr/bin/ssh-keygen -Y verify -f signers -I forge-user -n interplane-bring -s bring.sig` with the statement on stdin (`refused: bad bring signature`). The DID must be canonical base58 (no `1` right after `z`, as forged's sign-in requires), so one key has one DID string for its quota and the remove file. - Reads the whole archive once without writing anything: ustar headers with magic `ustar\0` and version `00`, type `0` only (no link, symlink, device, directory or extension entries), mode 0644 or 0755, uid, gid and mtime 0, empty uname, gname, linkname and device fields, a correct checksum, zero padding, paths (prefix rule) of 1 to 255 bytes with no empty, `.` or `..` component, no leading `/`, no control byte, in strictly increasing byte order (so no duplicate), the `files` count, two zero blocks and nothing after them (`refused: archive is not canonical ustar`). A component named` .git`in any case is`refused: the archive holds a .git folder`. A file holding `-----BEGIN` and then `PRIVATE KEY-----` on the same line (also across 512-byte blocks) is `refused: the archive holds a private key`. - Unpacks into `upload-tree/` (a fresh folder; files created exclusively, mode kept), writes `.interplane/brought.txt` (the statement, then one line per file: sha256, bytes, path) and `.interplane/brought.sig` (the person's signature as sent). - git, with the git dir `upload.git` outside the tree: `env -i GIT_CONFIG_NOSYSTEM=1 GIT_CONFIG_GLOBAL=/dev/null GIT_ALLOW_PROTOCOL=file GIT_NO_LAZY_FETCH=1 GIT_TERMINAL_PROMPT=0 PATH=/usr/bin:/bin HOME= GIT_AUTHOR_NAME= GIT_AUTHOR_EMAIL= GIT_COMMITTER_NAME=Interplane hub GIT_COMMITTER_EMAIL= /usr/bin/git -c core.hooksPath=/dev/null -c commit.gpgsign=false --git-dir=... --work-tree=...`then`init --bare --template= --initial-branch=main`,` add --all --force -- `,` commit --no-verify -m "Project brought through Interplane"`. - `rad init --public --no-confirm --name= --description= --default-branch main upload.git` (name and description one argument each, so a note that starts with `-` is never read as an option) as the node's user (the same `env -i HOME PATH`as every rad call); the RID is the`rad:z...` in its output (`refused: repository creation failed` otherwise). rad init seeds it. - The row in state `stored` (kilobytes from du of the storage folder, the name, the note), the page snapshot and the download (below), the status `stored` with rid and page, then removes the spool and scratch. The status file stays (so the program can read it); a new upload of the same archive by the same key removes it at its first chunk. The intake is built with the SHA-256 unit `om/tls/sha2.om` of omega-mv composed in front of `open/intake.om` (`./run.sh intake`). Nothing from the archive is executed, built or opened by anything but the parser and git; the gate plants a Makefile, an executable `hooks/post-checkout` and `configure` that would touch a marker, and the marker stays absent. Withdraw and take-down treat a stored row as a fetched one: `rad unseed`, remove the storage folder, the snapshot and the download; a withdrawn row keeps its name. Downloads: for every row on the shelf (open, held, stored) the intake runs `git archive --format=tar HEAD` with the snapshot's environment and its stdout on a pipe. The intake counts, hashes and copies the bytes into `a/.tar.tmp` (created O_EXCL|O_NOFOLLOW in the `a/` it opened itself, above). It stops when the open dir's filesystem would go below its reserve (the free bytes measured just before, minus OPEN_RESERVE_DATA_BYTES, while the archive is written; no size limit), after 30 s, or when git fails; then git is stopped and the row has no download (`download` and `download_sha256` are null). Else the old hash is removed, the temp file is renamed onto `.tar` and the hash written to `.sha256`. It is written when a row is listed or refreshed, and for every shelf row at each intake start. No network for git: every git command the intake runs (snapshot, archive, init, add, commit) has `GIT_ALLOW_PROTOCOL=file GIT_NO_LAZY_FETCH=1 GIT_TERMINAL_PROMPT=0` beside `GIT_CONFIG_NOSYSTEM=1 GIT_CONFIG_GLOBAL=/dev/null`. The gate builds a partial clone whose blob is missing and whose promisor remote is a listener on a private port; snapshot and archive fail cleanly and the listener counts 0 connections. Without the environment (a mutant) git connects. ### Free-space reserves (the machine boundary) The only refusal for room on intake. Two settings, in `reserve` (outside the folder forged can write; one `NAME=digits` line each; a missing file or a malformed line keeps the default): Setting Default Filesystem Reasoning (measured 2026-11-11) `OPEN_RESERVE_STORAGE_BYTES` 100,000,000,000 the one holding the Radicle storage (and, on the Spark, the work dir and the hive builds): `/`, 4,031,871,553,536 bytes 283,988,869,120 bytes free at 14:31:10Z (7 percent). It fell from 293 GB at 12:49Z and 287 GB at 14:08Z, about 6.4 to 7.8 GB an hour, all hive builds (Radicle storage is 1.04 GB in all). 12 hours at the faster rate is 94 GB; rounded up. The `storage_free_bytes` alarm fires at twice it (200 GB), about 12 hours before refusals at that rate. Measured again at 16:22:52Z: 191,542,358,016 bytes free, 92 GB used in 1 h 52 min (about 50 GB an hour, hive builds); at that rate the alarm already fires and refusals start in about 2 hours, so the rate, not the reserve, is what needs a person now. What it protects: everything else on that filesystem, the live sites (forged and the site trees it serves), the Radicle storage and the hive builds; a bring never takes the last 100 GB from them. Today's swing (2026-11-11): free space moved between 178 and 184 GB within minutes (16:24-16:29Z), and 92 GB was lost between 14:31 and 16:22Z. `~/handoffs/BOARD.md` has no DiskAlarm report (checked 17:04Z); its nearest basis is the disk emergency of 15:07:01Z and 15:08:42Z: one runaway pipeline took free space from 268 to 155 GB at about 514 GB an hour (by df, 182 GB at 15:03:10Z to 155 GB at 15:06:19Z), so a single fault can use 100 GB in about 12 minutes. The reserve is the floor that keeps the sites and Radicle writing while a person looks; the `storage_free_bytes` alarm at twice it is the signal to look. `OPEN_RESERVE_DATA_BYTES` 1,073,741,824 the one holding `` (the spool `open/up/`, the downloads `open/a/`, forged's logs and stores): `~/forge-data`, its own 8,350,298,112-byte filesystem 6,821,240,832 bytes free at 14:31Z. forged's log grew 43.6 MB in 18 hours (about 58 MB a day; 325 MB of logs, 1.47 GB of download cache in all), so 1 GiB is about 17 days of the log at that rate, 13 percent of the filesystem: room for forged and the site to keep running after uploads stop. `data_free_bytes` fires at twice it. Where each is checked: - intake, upload (U line): free(storage) − 4 × the archive's bytes ≥ the storage reserve, before anything is decoded. - intake, fetch (B line): free(storage) ≥ the storage reserve before `rad seed`, and again after the fetch (if it crossed: unseeded and removed, a failed fetch). What one fetch can write is bounded by radicle-node itself, and that bound is part of this design: `node.limits.fetchPackReceive` is `500.0 MiB` in `~/.radicle/config.json` on the Spark (radicle-node 1.10.3, with `fetchConcurrency` 1 and `fetchTimeout` 30 s; read 2026-11-11), so a single fetch can take at most about 500 MiB, 0.5 percent of the storage reserve. This is NOT a total repository limit or a lifetime reserve guard: a repository seeded with scope all keeps fetching from peers after it is listed. The storage reserve is not checked for those later fetches; only the `storage_free_bytes` alarm notices their consumption. Keep that setting far below the reserve (at most a tenth of it) and record any change here. This was chosen over watching free space during the fetch: the node does the writing, in its own process, and can finish a fetch after the intake has stopped `rad` at its 90 s deadline, so a watch inside the intake would not see those writes, while the node's limit holds for every fetch however it was started; the check after the fetch still unseeds and removes one that crossed the reserve. A project whose pack is larger than 500 MiB cannot be fetched by this node (a failed fetch); that is radicle's limit, kept (no-hard-caps point 5, containment of outsiders). - intake, download: when HEAD has moved, the stale download (`.tar`, `.sha256`, `.head`) is removed first, then the archive stops at free(data) − the data reserve, so the old and the new file never take room together and free space stays at or above the reserve (gated with a deterministic stand-in for dfree: a 200 MiB old tar in a modeled 300 MiB data filesystem, 64 MiB reserve; a probe checks old tar + temp bytes at every write; the add-back mutant crosses the reserve). It is made from the commit `git rev-parse HEAD`names, recorded in`.head`; while` .tar`and`.sha256` are regular files and `.head` names the commit HEAD is at, the download is current and is not made again (a second bring line of the lister and every pass of the intake cost one `git rev-parse`, not an archive). - forged, every write under `open/` (a chunk, the signature and U line at finish, a B or W line): forged cannot measure free space itself. The pinned omc (omega-mv `f4df8239`, sha256 `3ad9f10f`...) has no statfs/fstatfs host word (OMEGESE section 10 lists fstat, stat and lstat only); the sandbox's seccomp filter would allow the call. So the intake writes `open/space` (`free reserve at `, by wr, in the pinned open dir) at start, at every alarm pass and after each download. forged opens it O_NOFOLLOW|O_NONBLOCK, requires a regular file of at most 80 bytes, parses it strictly (digits only, 1 to 19 each) and counts the bytes it wrote since that measure (a new `at` starts the count again). It refuses a write that would leave less than the reserve: 503 "this computer is nearly full; try again later". No file, or a malformed one: a chunk or finish gets 503 "the hub is not ready to take files; try again later"; a B or W line (at most 400 bytes) is still queued when there is no file, and refused when the file says there is no room. The folder is forged's own, so this is advisory for forged only; the intake's checks above are the guard. - Request for the omega-mv lane: a `statfs`/`fstatfs` host word (Linux AArch64 syscalls 43 and 44, the 120-byte `struct statfs`), so forged can measure the data filesystem itself and the space file can go. ### Alarms No-hard-caps point 5: a measurement beside each former cap and each buffer. Nothing here refuses anything. Measured after every intake pass that did something, at start, and at least every 60 passes (about a minute when idle); the queue is also measured before each pass. `alarms.txt` holds one line per firing alarm (`name value threshold source key volume_bytes`; the key is` -` when the alarm names none), the same lines go to stderr (the journal) under an `ALARM` line, and `open/alarms.json` (`interplane/open-alarms/1`) lists every check with `key` (or null), `volume_bytes` and `firing`. Alarm Fires at Measures Key, volume `key_shelf_rows` 8 or more the most rows this intake fetched or stored for one key that key, the KiB of its rows `shelf_rows` 200 or more rows on the shelf (held too) the key with the most rows, the KiB of the shelf `largest_project_kib` 51200 or more the largest row its key, its bytes `queue_bytes` `1048576` or more `open/queue` -, the bytes `spool_bytes` `1073741824` or more all files in `open/up/` (lstat) -, the bytes `rad_seed_output_bytes` 52428 or more the output of `rad seed` (no arguments) the intake's 65,535-byte command buffer (policy() answers "node did not answer" at or above it; live 2026-11-11: 9,022 bytes for 93 rows, the edge near 690 seeded repositories) `storage_free_bytes` 2 × OPEN_RESERVE_STORAGE_BYTES or less free bytes of the storage filesystem -, the reserve `rad_delegates_output_bytes` 52428 or more the largest `rad inspect --delegates` output seen by this process the same 65,535-byte buffer `data_free_bytes` 2 × OPEN_RESERVE_DATA_BYTES or less free bytes of the open dir's filesystem -, the reserve `list_bytes` 209715 or more the private list's bytes (no size limit: read and written a row at a time) -, the bytes; the threshold is 80 percent of the former 262,143-byte read buffer `list_row_bytes` 4096 or more the longest row of the private list (the intake writes at most about 900 bytes) -, its bytes; every row is kept whole, the intake and forged read the first 4,096 bytes of each field `reserve_refused` while the last reserve check refused (until a later check finds room) free bytes then, against the reserve the key refused, the bytes it asked for ### Caps met (no-hard-caps point 6) Where Number What it is What was done projects a key (intake) 8 an arbitrary shelf number removed (2026-11-11); `key_shelf_rows` alarm projects on the shelf (intake) 200 an arbitrary shelf number removed; `shelf_rows` alarm size of a project (intake fetch, upload, decode, download; forged chunk and finish 413) 50 MiB an arbitrary shelf number removed; `largest_project_kib` alarm; the reserves bound it forged's queue 1 MiB not a buffer (read 64 KiB at a time from an offset) removed; `queue_bytes` alarm; the data reserve bounds it free space the two reserves the machine boundary kept, stated and measured (above); refusal with the reason; alarms at twice each the intake's list read buffer (and forged's) 262,143 bytes a fixed buffer holding the whole list; past it the list was cut without a word removed (2026-11-11): both read the list a row at a time in 64 KiB chunks and the intake writes it streamed through a temp file; no size limit; gate at 1.2 MB with a 70,000-byte row, and a mutant cut at 262,143 bytes is caught; `list_bytes` and `list_row_bytes` alarms the "shelf list is full" refusal (`lfits`) 262,143 − 900 bytes kept new rows inside that buffer removed with the buffer refusal and withdrawal rows in the list (`keep`) 65,536 bytes, oldest dropped kept the list under that buffer removed with the buffer; every row stays (retention tests) forged's list scans (shelf page, `/open.json`, project page) 4,096 rows a loop bound: past it forged trapped removed: a scan is bounded by the file the intake's output buffer `ob` in a stream 524,288 bytes a write buffer the list is written through it streamed (flushed when full); outside a stream (snapshot, status, alarms) it still holds one small file and drops past it: not changed in this slice forged's reply buffer `fob` for `/open/` and `/open.json` 8 MiB a whole-response buffer; an overflowing shelf answered 500 removed as a response limit: both URLs now stream chunked, in complete-row batches through `fob`; no pagination or whole-response allocation. A read/send failure closes without the final HTTP chunk (never a successful prefix). Other routes retain their existing buffer behavior. Gated with 10,000 rows, HTML and JSON each past 8 MiB, every row in order, and a mutant that fills `fob` again. the spool's running total 10 digits a format width that wrapped at 10^10 bytes widened to 20 digits (every 64-bit count) one fetch (radicle-node `fetchPackReceive`) 500 MiB radicle's own limit kept (point 5); recorded as part of the reserve design (above) the intake's command buffer `cb` 65,535 bytes a real buffer of our own (point 1 would remove it) not changed in this slice; two alarms forged's per-IP and per-key write limits 30 a minute edge rate limiting kept (decision 2) forged's sandbox limits nproc 256, as 4 GiB, fsize 1 GiB, nofile 1024 containment of untrusted input kept (decision 2) ## Install on the Spark (after review) ``` C=$(git rev-parse --short=8 HEAD); D=$HOME/.local/lib/interplane-open/$C mkdir -p "$D" "$HOME/forge-open-work" && chmod 700 "$HOME/forge-open-work" INTAKE_OUT="$D/open-intake" ./run.sh intake ln -sfn "$D" "$HOME/.local/lib/interplane-open/current" rad self --did > "$HOME/forge-open-work/allow" # the owner's key only; add DIDs, or one line * for everyone cp infra/spark/interplane-open-intake.service ~/.config/systemd/user/ systemctl --user daemon-reload && systemctl --user enable --now interplane-open-intake.service ``` The reserves keep their measured defaults unless `~/forge-open-work/reserve` names others, for example `printf 'OPEN_RESERVE_STORAGE_BYTES=`100000000000`\nOPEN_RESERVE_DATA_BYTES=`1073741824`\n' > ~/forge-open-work/reserve`; the intake reads the file at every check. The forged built from this tree takes upload chunks only once the intake has written `open/space`, so start (or keep) the intake service before or with the new forged. The page is served by any forged built from a tree that holds `open/READY` and `salvage/READY`. Undo: `systemctl --user disable --now interplane-open-intake.service` (the page stays, requests queue and nothing is fetched); remove `open/READY` and rebuild to remove the page. Projects already brought stay seeded until withdrawn. Gate for the one-command bring: `./run.sh check-open-up` (`open/tests/up.sh`, ports 19880 and 19882 by default) ends with `RESULT pass=N fail=0` (N in the gate log of the commit). It runs a test copy of forged and the intake against a stand-in `rad` whose `init` clones the scratch git dir into a throwaway storage folder and prints a RID: a good upload end to end (row, commit, brought.txt and its signature, shelf and page JSON, download), every refusal (bad signature, wrong sha256, wrong byte count, wrong file count, `..`, absolute path, symlink, device, duplicate and unsorted paths, a private key, also across blocks, `.git` in any case, an out-of-order seq, a POST without a session, a wrong CSRF token, a foreign Origin, another key's spool, a removed key, a key that is not invited, hostile queue lines), an upload into a 1 MiB list (four times the former read buffer, every row kept and listed), the ninth project of a key and the 201st on the shelf and a 60 MiB project all stored with their alarms naming the key, withdraw and the remove file, a Makefile, `hooks/post-checkout` and `configure` that are never run, the partial clone with a counting listener, a probe under `infra/spark/forged-sandbox.sh` that cannot write the work dir, each alarm at its threshold and one below it with the upload still stored, links planted in the open folder (`a/.tar`, `.sha256` and `.tar.tmp` to outside files; `a/`, `p/`, `up/` and `open` itself to outside folders; `alarms.json` and `list.tsv` to outside files), a download that would cross the data reserve (none, page JSON null) beside one within it, and with room one past the former 50 MiB, a non-canonical DID of the same key, a note `--private` and signed names that break the name rule, forged's room (no room, seven malformed space files, a linked and a FIFO space file, no file, a B line without room, a stale measure that forged's own count refuses), the storage reserve on a tmpfs crossed (refused with the reason, nothing written, the alarm naming key and volume) and kept (stored), a fetch under the reserve, a FIFO as the queue, a `.b64` and a `.sig` with a takedown in the same pass; then mutants of the intake (signature, sha256, byte count, `..`, empty component, entry type, path order, key scan, `.git`, remove check, the no-network environment, an alarm threshold, the folder check (a/, p/ and up/), the open dir check, the temp file and rename of the download, the data reserve in the download, the storage reserve, the old 8-a-key cap, a list read cut at the former 262,143 bytes, the regular-file check, canonical base58, the one-argument `--description=`, the name rule) and of forged (seq check, write gate, per-key spool, the space file ignored, stored rows on the shelf), each of which must show the failure. The end-to-end runs with forged in its real sandbox and the real `rad` in a throwaway HOME are `~/handoffs/open-builds/e2e-one-command.sh ` and `e2e-tool-.sh `. The gate also checks the project page of a stored project (the developer section, the bringer's key as the page shows it verifying `brought.sig` and the page's check command run as written, a hostile hub-key line escaped, with a mutant that drops that escape) and the empty `Unfinished:` label left out on the card and the page. No outcome depends on timing: a POST answered 429 by forged's write limits waits (Retry-After, else to the next minute) and is sent again, except in the case that tests the limit. `FORGED_CPUS` names the cores (or `off` for no taskset); `UP_TEST_PORT` and `UP_TEST_LISTEN_PORT` move the two ports, and the gate stops when either is already in use. Gate: `./run.sh check-open` (`open/tests/run.sh`) ends with `RESULT pass=287 fail=0`. Part 1 runs the intake against a stand-in `rad` in a throwaway HOME; part 2 runs the page in a test copy of forged with a throwaway key; thirty mutants (no sweep for the remove file, no remove check on a bring, a held project deleted on removal, a .json name that is ignored, no origin check for a part, an unpublished draft listed as a verified part, no control-byte pass in the snapshot, a snapshot kept after withdraw, no escape on the project page, no shelf check for the page, no allow check, a held row treated as fetched, no delegate check for a held row, no end-of-key check in the delegate match, no start-of-line check in the delegate match, the old 8-a-key cap put back, no first-column check in the policy match, no end-of-rid check in the policy match, no visibility check, no policy check for a held row, list read from the published copy, no owner check on withdraw, no policy check, no leftover rule, refusals that replace the failed-fetch row, no UTF-8 pass, a list read cut at the former 262,143 bytes (in the intake and in forged), no queue rotation, no HTML escape) must each show the failure.