Public: anyone can read this; the crew can change it.
Crypto agility: sealed values, the edge file and cost bills name their algorithm #16919
Check · Review · Land · Live done — Landed and live in production.
The Cryptography Incident Review Group's statement on Anthropic's lattice results (cirg.org/statements/1) advises designing "agile systems so that individual schemes can be replaced quickly".
-
Reviews
Changes requested — before the latest pushThe security design holds. An unknown alg is refused by name and never tried as AES-GCM or ed25519. Legacy v1, v2 and alg-less files still read. The one caller of
verifyEdgeFile(EdgePublisher.read) already catches the throw. The tests cover both the old and the new forms. Three small cleanups are left, to do in one round:scripts/rotate-secret-key.ts: keep onelooksSealed. The script now wraps the kernel'slooksSealed(imported assealedText) in a second function of the same name. ImportlooksSealedfrom the kernel and delete the local wrapper. The wrapper adds nothing beyond thetypeof v === "string"check, which can sit at the call sites.test/secret-rotation.test.ts: the import is mangled.secretKeyPath, sealedKeyId } fromsits on one line. Put each name on its own line, as the rest of the block does.docs/ORIGINS.md: the edited bullet leaves a very long line (To rotate, move secret.key to ...). Rewrap it. Runbun scripts/gate.ts --fixand commit the result.
ApprovedClean. Sealed values (v3:aes-256-gcm), the edge file and the bill header now name their algorithm. Older forms (v1, v2, no alg) still read, and an unknown scheme is refused by name rather than guessed. The one caller of verifyEdgeFile (EdgePublisher.read) catches the UnknownEdgeAlg throw, so it cannot take down a request. The rotate script still handles v2 and v3 through the shared looksSealed and sealedKeyId. Each new behaviour has a test, and the docs are updated; the README is untouched. Non-blocking: rotation leaves v2 values already under the newest key as v2 (they still open), so they only become v3 when that key changes.
-
Checks
shipped production is serving it deploy 63ed874
-
History
- Three stored formats name their algorithm: sealed values, the edge config file, the client's bill 3dca3a8
- An idle forge drains and sleeps after a quiet period its owner can set (#16903) 240362e
- "tries at /signin close the API door" passes every time on a loaded check machine (#16915) 7a62f7b
- Production deploys stop interrupting people: batched (one per 15 min), not while busy, and swapped with zero downtime (#16867) b8689ca
- A guard test: every raw TLS connection verifies its peer, and turning verification off needs a listed reason (#16920) b179a94
- Long Talk conversations pick up fresh from a forge-written record: the person's words kept, old figures retired (#16899) 1cc9068
- Home: a crew scorecard (landed, first-pass green, rework rate per member) and a streak of days without a red main, shown never notified (#16885) a47fae8
- A card with no picture says why, and never shows a question mark (#16794) 629ff64
- Sandbox floor with Landlock where bwrap cannot run. (#16888) a3aa32f
- Sentinel: memory-growth was degraded 16 minutes today: The forge's own memory is 4689 MiB, over twice its first-hour 1629 MiB and past the 2176 MiB more its database caches m… (#16906) a233995
- Bridge v1: home becomes operable — select any tile, row or figure and act in place, keyboard first (#16898) 6edf0f6
- Follow upstream's "last checked" speaks the UI's one clock: `time()`, not a hand-rolled HH:MM UTC (#16902) 8fd7cde
- Install scripts off for unreviewed repositories (bun install --ignore-scripts) (#16886) 59dc8a4
- Home: two or three owner-pinned panels with release annotations (#16884) 12309f3
- A check's plan line survives a long log: in the summary when green, in the detail when red (#16889) 0a6deb5
- Main green: the static web loads no data graph again (FLAGS_FILE in a leaf module) (#16912) 42c8c1d
- MCP tools to list, add, grant and remove crew SSH devices (#16863) 8d40736
- Lent runners: a peer forge can lend check compute, scoped to public pulls, budgeted, sampled and revocable (#16836) 4c3cffb
- infra list opens with one paragraph naming every machine, and show finds a machine by name (#16900) 09cecc1
- "tries at /signin close the API door" passes every time on a loaded check machine (#16904) 362a2b5
The Cryptography Incident Review Group's statement on Anthropic's lattice results (cirg.org/statements/1) advises designing "agile systems so that individual schemes can be replaced quickly". A crypto inventory (talk-research/crypto-agility.md) found the forge's at-rest data already quantum-safe (AES-256-GCM, argon2id, HMAC-SHA256), but three stored formats carry no algorithm tag, so a scheme could not be swapped without guessing.
v3:aes-256-gcm:<keyid>:<iv>:<ct>; v2 reads as aes-256-gcm and v1 as before; a v3 naming any other alg returns a distinctunknown_alg, never bad_key and never a guess. The rotation script reads all three forms.{ alg: "ed25519", payload, sig }; a file without alg reads as ed25519; any other alg throws UnknownEdgeAlg, distinct from a forged signature.alg: "sshsig-ed25519"; a bill without it verifies as before; any other alg is "unknown signature scheme". The ledger branch's git commit signatures are git's own SSHSIG, which already names its key type.Tests: old and new forms round-trip, unknown algs refused (secret-rotation, config-store, forge-bill); nine files that pinned "v2:" on new writes pin "v3:aes-256-gcm:". Gate and typecheck pass.
🤖 Generated with Claude Code