Public: anyone can read this; the crew can change it.
The forge's own release journey is not rate-limited by the forge and does not spend the strangers' daily allowance #12221
Check · Review · Land · Live done — Landed and live in production.
The forge's own release journey now carries a key that only the running boot holds. With it, starting a forge skips the strangers' per-minute plan limit and their daily allowance in src/spawn/door.ts.
-
Reviews
ApprovedThe prober key is an HMAC of the per-boot hook secret. It is compared in constant time and never taken from a user agent or an address. The journey sends it to its own origin only, and
door.tsuses it in one place (counted), for the per-minute plan limit and the daily allowance. Tests cover no key, a wrong key, the raw hook secret, another boot's key, and the right key with the limit spent. The journey test checks the key never reaches the new forge. There is no new dependency and no user-facing feature, so no TUI screen or docs page is owed. I did not run the preview: this changes request handling, not a page.Two things I would do next:
linkRequestVisitorstill runs for the prober (!made.value.existed && !paid), so each release proof records a throwaway visitor on the host. Skip it when the request is the prober.- The prober still meets the other stranger limits, such as the
readycheck, as scoped. Put a test on the full walk against a real boot, so a limit added later does not silently turn a good release red again.
-
Checks
shipped production is serving it deploy 7f8d28a
-
History
- Rewrap the prober's comment lines at 100 columns (gate) ae0f8c8
- The forge's own release journey is no stranger to its rate limits: a per-boot prober key, sent to its own host only, skips the stranger limits and the daily allowance (#12169) 63e80a9
- A preview's own token reaches its app's one repository, its timers and its printer; production's still reads what its owner may c564139
- A hosted forge's own code is found and copied only from a repository in its own directory with no link in it de9e1b0
- The Runs tab's count for its reader is one read: d8d832c7 asked each working run's issue on its own, and the home and /now ran a statement more per run (test/app-home-batched.test.ts, red on main since 21:11Z) a910001
- What a parent writes and reads in a hosted forge's directory follows no link the forge left there: one writer and one reader, a regular file or nothing 8d74cf9
- The outside-agent row of the threat model names one enforcer: 2ecc5af named two on one line and the table test went red on main 4db86a7
- The threat model says which pulls wait for a writer and which run at once: a fork's head and a child's proposal wait; a branch in the repository runs, and a guest author's preview and its terminal hold nothing of the app's until approved 910e02f
- An outside agent's pull is a guest's: its check runs at once, and its preview holds nothing of the app's until a writer approves it 2ecc5af
- tries.ts, its test and its feature note are back: aece0ebb deleted them by mistake with a table fix, and park_pull.ts still imports tries.ts 79be2f6
- The child database read's deadline timer is named in the job table: 8ae6610c added child-db-deadline and the table test went red on main aece0eb
- A hosted forge refused a name by its host's gate asks the host for it in one press; the host's admin allows it for that forge or for every one, and the grant opens a running forge at once 68efd9d
- The public home offers a stranger no ssh again: the terminal card that 7d27a540 put back on it is gone, and the test that asked for it says what b3c2780d decided 127a6c2
- A repository's admin sees and ends every child's read of it, and an outside agent's token is a stranger at an app's own host d63cf43
- A cell's disk is counted to the end, or the cell is over it: a walk that runs out of entries is a stop of its own, never a smaller sum 560f3b5
- The parent asks a child's database off its serving thread, with a deadline, and only of plain tables 8ae6610
- A label's "N open" counts the issues its link lists, and pulls carrying it are counted and linked apart c3de1ab
- A count of open issues and the issues list read the same rows, and a binding fuzzer holds every declared number to its list f30a096
- The open bugs a non-admin is named leave out sealed reports bd8454a
- The Runs tab counts the runs its reader's list shows: a run on a sealed report is not told to a reader the list hides it from d8d832c
The forge's own release journey now carries a key that only the running boot holds. With it, starting a forge skips the strangers' per-minute plan limit and their daily allowance in src/spawn/door.ts. A good release should no longer show as unproven because the forge rate-limited its own probe and sent it to /?start=rate.
src/release/prober.ts(new): the key is an HMAC of the per-boot hook secret, sent in anx-forge-proberheader and compared in constant time. It is never the hook secret itself, so a leaked header can't open the internal listener. An IP address or user agent is never accepted as proof.src/release/journey.ts: takes an optionalproberKeyand sends it only to the host's own origin, never to the throwaway forge it creates.src/release/prove.tsandsrc/main.ts: pass this boot's key to the journey.src/spawn/door.ts: a request with the right key is treated like a paid order. It skips the per-minute plan limit and the daily check, and its spawn is not counted against the allowance.
test/release-prober.test.ts covers the guard against a forged exemption:
- With the strangers' daily allowance spent, a request with no key, a made-up key, the hook secret itself, or another boot's key all still land on
/?start=rate. The right key starts a forge and leaves the count unchanged. - With the per-minute plan limit spent by a forged key, the right key still gets through.
- The journey sends the key to its host and never to the new forge.
Two of these tests fail when the change to door.ts is reverted.
What to look at: the key only matches when the process that answers the public address is the one doing the proving. If an older process is still serving that address, the walk is rate-limited as it was before this change, so this makes things no worse in that case. Other stranger limits outside door.ts (for example the per-minute limit on the ready check, if there is one) are left alone, as the issue scoped it.
How it was checked: bun scripts/gate.ts and bun x tsc --noEmit pass. I ran the new test with release-journey, release-prove, home-start-forge and spawn-anon: 66 pass, none fail. scripts/fast.ts named 2045 test files for this diff, so I chose those five rather than run them all.
🤖 Generated with Claude Code
The forge's own release walk is no longer treated as a stranger by its rate limits. Each boot derives a prober key from the hook secret (src/release/prober.ts) and sends it only to its own host when it walks the release journey (src/release/journey.ts). It's passed to that walk in src/release/prove.ts. In src/spawn/door.ts, a request that carries the key skips the stranger rate limits and the daily allowance. The key is compared in constant time, and a missing or forged key is handled like any other stranger.
This push fixes the failed check: four new comment lines broke the gate's 100-column rule, and they are now rewrapped. Nothing else changed.
Things to look at:
isProberinsrc/release/prober.ts, which compares the header against the key.- The
countedcheck insrc/spawn/door.ts, the one place the key changes what a request is allowed.
Checks run before pushing: bun scripts/gate.ts and bun x tsc --noEmit pass. The prober, journey, prove and door tests pass (338 tests in 49 files). scripts/fast.ts picked nearly the whole suite for this comment-only change; that run was still going in the background at push time and hasn't reported, so the forge's check is the full run.
🤖 Generated with Claude Code
The forge's own release journey now carries a key that only the running boot holds. With it, starting a forge skips the strangers' per-minute plan limit and their daily allowance in
src/spawn/door.ts. A good release should no longer show as unproven because the forge rate-limited its own probe and sent it to/?start=rate.src/release/prober.ts(new): the key is an HMAC of the per-boot hook secret, sent in anx-forge-proberheader and compared in constant time. It is never the hook secret itself, so a leaked header can't open the internal listener. An IP address or user agent is never accepted as proof.src/release/journey.ts: takes an optionalproberKeyand sends it only to the host's own origin, never to the throwaway forge it creates.src/release/prove.tsandsrc/main.ts: pass this boot's key to the journey.src/spawn/door.ts: a request with the right key is treated like a paid order. It skips the per-minute plan limit and the daily check, and its spawn is not counted against the allowance.test/release-prober.test.tscovers the guard against a forged exemption:/?start=rate. The right key starts a forge and leaves the count unchanged.Two of these tests fail when the change to
door.tsis reverted.What to look at: the key only matches when the process that answers the public address is the one doing the proving. If an older process is still serving that address, the walk is rate-limited as it was before this change, so this makes things no worse in that case. Other stranger limits outside
door.ts(for example the per-minute limit on thereadycheck, if there is one) are left alone, as the issue scoped it.How it was checked:
bun scripts/gate.tsandbun x tsc --noEmitpass. I ran the new test withrelease-journey,release-prove,home-start-forgeandspawn-anon: 66 pass, none fail.scripts/fast.tsnamed 2045 test files for this diff, so I chose those five rather than run them all.🤖 Generated with Claude Code
Closes #12169