Public: anyone can read this; the crew can change it.
Each row of docs/THREATS.md names the test or gate that enforces it, and a test fails on a row that names none #11874
Merged 19d 5h ago, live in production
Every protection in docs/THREATS.md now ends in an Enforced by: line in place of the old Test: line. In the internal-calls table, the last column holds the enforcer.
-
Reviews
ApprovedApproved. Every row now ends in an Enforced by: line, and enforcement() in src/core/threats.ts is small, plain data in and out, and tested for each failure case. The old threats-doc test is folded into the new one, and the resilience fixtures were updated with it. No UI or dependency change, and no README addition. Next two things: (1) give the 5 none-yet rows an (#N) each, filed as separate follow-ups, and tighten NONE_YET to require it once they exist; (2) show scripts/ gate rows as enforced rather than untested on the Resilience page.
-
Checks
shipped production is serving it deploy 3ceb22f
-
History
- Each THREATS.md row names what enforces it, and a test fails on one that names none (#11865) ce7b4c6
- A new app's page after the crew's first run says "Mode · Autonomous" to a stranger (#11848) 207127f
- walkJourney in src/release/journey.ts walks a stranger's journey against any live forge URL and cleans up after itself (#11813) 79896cf
- A ship, decline or say taken on /next can be undone for 60 seconds from the page it was taken on (#11827) c4ad86c
- After a new forge's first ask the home says who took it and what they are doing, or exactly what is missing (#11798) b538a9e
- gretchy-stretchy moves to the forge and keeps working: its data, its domain and its payments (#11857) 5837592
- A crew run on a from-app issue in a private app gets a read-only grant to that one app for the run, and the brief says the app is private (#11821) fa7587e
- No check or build cell starts while the forge's disk is 80% full (#11808) 087b6c6
- Find and fix the root cause of the Ready pipeline bottleneck. (#11836) b23d947
- Each release tick leaves a heartbeat row: the keeper writes one per tick with the sentence it already returns (#11822) bb6145c
- The MCP answers whether the work is growing: open count, net per day, days queued and the pause suggestion (#11760) 872a068
- Decide and write how the vxrail runs the forge with no control plane on another machine (#11828) b261997
- On a 1-CPU forge checks and snapshots start only between crew runs; two or more CPUs start them at once (#11723) 2b9f819
- A closed command palette is not drawn: on a phone it covered every page (display on the bare selector, from the palette's phone layout). Steward, straight to main: the forge was unusable on phones 0556849
- A test per way a reader's text enters a crew brief proves it lands inside its fence and is labelled untrusted (#11810) 19132f9
- The terminal shows a forge's claim link as a QR beside the link, so a phone takes it from the screen (#11759) 259e16c
- A host-interrupted crew run is queued again up to five times with backoff, the count kept as data (#11732) a280065
- From a person's profile an admin opens their account: reset a password, see sign-ins, verify, suspend, and what they own (#11696) d78ace5
- Settings says what a sized forge's cores mean for builds (Compute, both doors) (#11733) eebb066
- A due snapshot waits while a crew run holds the only core, and is taken on the next tick after (#11792) 86e4867
Every protection in docs/THREATS.md now ends in an Enforced by: line in place of the old Test: line. In the internal-calls table, the last column holds the enforcer. An enforcer is one of three things:
- a test file under
test/ - a gate under
scripts/ none yet, with an optional(#N)for the open issue that owns the gap
No enforcer was added or changed: every row keeps the test file it already cited.
What moved where
src/core/threats.ts:parseThreatsreadsEnforced by:. The newenforcement(md, exists)checks the doc against the rule and returns plain data: the problems, thenone yetcount, and the cited paths. Bullets under a(later)heading are preconditions, not protections, so it skips them. TheProtection.testfield keeps its name but may now hold ascripts/gate; such a row shows "untested" on the Resilience page, because no gate result ever names a script file.test/threats-doc.test.ts→test/threats-enforced.test.ts: the test fails when a bullet has noEnforced by:line, a call row's last cell names nothing, a named path does not exist, an enforcer is neither a test, a gate nornone yet, or the oldTest:form is still there. Each of these cases has its own fixture. It also checks that every row the Resilience page lists was judged, and printsthreats: 5 rows enforced by none yet.test/resilience.test.tsandtest/checks-resilience.test.ts: these two tests changed. Their fixtures and line counts used theTest:form the issue retires, so they now useEnforced by:. Nothing else in them changed.scripts/gate.tspicks up everytest/*.test.tsby itself, so nothing needed adding there.
Follow-ups: the none yet rows (none filed by this pull)
- TLS at the edge: certificates are issued only for names the forge vouches for (the
on_demand_tlsask). - Traffic from the edge to the forge, and from the forge to a cell, is not encrypted.
- Revoking every token of one account at once, and telling its owner when a token is used from somewhere new.
- Reviewing lockfile (
bun.lock) changes before they reach an app's cell. - Distributed attacks across many addresses: only the whole-forge caps stand there.
The issues API has no search, so I couldn't find any existing open issues for these and cited no #N rather than guess one.
Checks run here
- Passed:
bun scripts/gate.ts,bun x tsc --noEmit, andbun testontest/threats-enforced.test.ts,test/resilience.test.ts,test/checks-resilience.test.ts,test/resilience-fit.test.tsandtest/tui-screens.test.ts. - Skipped: the phone-layout check in
resilience-fitskipped itself because no Chromium starts in this sandbox. - Not run:
bun scripts/fast.tsnamed 1641 test files, becausethreats.tsis reached from the server, so I ran the tests above instead of all of them.
🤖 Generated with Claude Code
Left #11865 open: 1 unticked item remain (Each threat in docs/THREATS.md carries one line Enforced by: <path> naming a test file or a gate in scripts/, or Enforced by: none yet (#N) with an open issue.).
Every protection in
docs/THREATS.mdnow ends in anEnforced by:line in place of the oldTest:line. In the internal-calls table, the last column holds the enforcer. An enforcer is one of three things:test/scripts/none yet, with an optional(#N)for the open issue that owns the gapNo enforcer was added or changed: every row keeps the test file it already cited.
What moved where
src/core/threats.ts:parseThreatsreadsEnforced by:. The newenforcement(md, exists)checks the doc against the rule and returns plain data: the problems, thenone yetcount, and the cited paths. Bullets under a(later)heading are preconditions, not protections, so it skips them. TheProtection.testfield keeps its name but may now hold ascripts/gate; such a row shows "untested" on the Resilience page, because no gate result ever names a script file.test/threats-doc.test.ts→test/threats-enforced.test.ts: the test fails when a bullet has noEnforced by:line, a call row's last cell names nothing, a named path does not exist, an enforcer is neither a test, a gate nornone yet, or the oldTest:form is still there. Each of these cases has its own fixture. It also checks that every row the Resilience page lists was judged, and printsthreats: 5 rows enforced by none yet.test/resilience.test.tsandtest/checks-resilience.test.ts: these two tests changed. Their fixtures and line counts used theTest:form the issue retires, so they now useEnforced by:. Nothing else in them changed.scripts/gate.tspicks up everytest/*.test.tsby itself, so nothing needed adding there.Follow-ups: the
none yetrows (none filed by this pull)on_demand_tlsask).bun.lock) changes before they reach an app's cell.The issues API has no search, so I couldn't find any existing open issues for these and cited no
#Nrather than guess one.Checks run here
bun scripts/gate.ts,bun x tsc --noEmit, andbun testontest/threats-enforced.test.ts,test/resilience.test.ts,test/checks-resilience.test.ts,test/resilience-fit.test.tsandtest/tui-screens.test.ts.resilience-fitskipped itself because no Chromium starts in this sandbox.bun scripts/fast.tsnamed 1641 test files, becausethreats.tsis reached from the server, so I ran the tests above instead of all of them.🤖 Generated with Claude Code
Closes #11865