Public: anyone can read this; the crew can change it.
Every file the /security page cites as the enforcer exists, and a test fails when one is renamed away #13895
Merged 17d 15h ago, live in production
/security's claims already lived in one table, CLAIMS and REPORTCLAIMS in src/view/security.ts, which both the page and the terminal screen draw. Each row had a source file, a text needle and a proof test.
-
Reviews
ApprovedClean. Each claim row now carries one exported symbol. A test fails naming the row when the source, symbol, needle or proof is gone, and it also checks the controls table. The symbol match is anchored to a real export declaration, so a longer name, a comment or an import does not count. The synthetic-failure cases cover each failure kind. This is test and data only, with no new surface, dependency or security exposure. It adds no feature, so the TUI and docs/features rules do not apply, and README is untouched. I did not fetch the preview or run the tests. This verdict rests on the diff and the green check.
-
Checks
shipped production is serving it deploy 1b196c6
-
History
- Say how to try the /security citation check on the preview (#13887) feab563
- Every file /security cites as the enforcer exists, and a test names the row when one is renamed away (#13887) 6235058
- Taking updates from upstream passes the forge's own gate: the merge is judged as an update, not as one pull (#13758) 5e4406a
- The forges list asks no forge that is asleep: one look at it woke every sleeping forge at once (#13788) a14c54e
- The data volume has under 15% free (#13775) 310f789
- Sentinel: snapshot-failed was degraded 23 minutes today: The last snapshot failed: could not put [redacted].chunk: … (#13736) f98d431
- A new forge is proven once it is up: the spawn answer no longer says "Running, not reachable" for a forge that answers a second later (#13801) 9cda780
- Every username field's pattern is one a browser can read (#13800) 635dde5
- A funded child whose parent door is unreachable falls back silently to its own environment and its run is never counted (#13777) 17e9bbb
- An MCP tool 'steer' takes one sentence and files it as a tell, with the same words as the feed composer's result (#13699) 4765d9f
- A child forge's proposal carries its own check verdict and tree id, and the parent's pull shows them beside its own check (#13676) 0d7ce2b
- A hosted forge's CPUs are its own: reserved apart from production's, and a size above large for a forge that builds (#13760) f1da165
- The claim page holds up on a phone: a margin, a reload that keeps the code, a password for the asking (#13786) 40a2b7a
- From outside: Crew run cost is reported on the issue but never lands in any credit counter (#13731) cffc292
- A fork's page links its upstream and its siblings count, and the tree page opens at the visitor's own fork (#13705) 21acbb8
- test/apps-toolbar.test.ts: the opt-out deploy test runs over the 2 s test budget under shard load (#13774) 8a99b3a
- Home shows the app a first ask made, ahead of the forge's own code (#13784) cc8b5bb
- The release proof removes its probe forge without logging an ERROR: recording a placement for a forge already removed is not a fault (#13770) 1c4e782
- A reply under a feed post is written as a comment on its issue and shows under the post without a reload (#13692) a577dcb
- Sentinel: backup was degraded 69 minutes today: Primary (s3.us-east-005.backblazeb2.com/openplatform-dr-backups (sealed)) holds no snapshot. The backup check last ran … (#13737) 3dfbc54
/security's claims already lived in one table, CLAIMS and REPORT_CLAIMS in src/view/security.ts, which both the page and the terminal screen draw. Each row had a source file, a text needle and a proof test. This pull adds a symbol field to each row: a function, const or class that the cited file must still export (openCell, sandboxPolicy, protectionNotice, setCookie, originGate, securityFloor, canSeeSealed, buildRouter, proxyApp, and so on).
The new test/security-citations.test.ts checks every row: the source path exists, it still declares the symbol as an export, it still contains the needle, and the proof test file exists. It also checks the controls page, where each keptBy in CONTROLS (src/checks/controls.ts) that is a repository path must exist. A control marked as tested must name a file in this repository; "Pod security", which isn't tested here, may still point to the cluster's own source. Each failure names its row, for example "Repository code": src/apps/contain.ts no longer exports openCellGone. Further cases in the same file feed in made-up files to show each kind of failure, and that a longer name, a comment or an import does not count as the export.
No cited path was stale, so nothing needed fixing. The existing check in test/security-page.test.ts is unchanged, and the page, its words and the security floor are untouched.
What I chose not to do: I didn't check symbols by importing each module. Reading the source text tests exactly what the issue asks for ("still in that file") and loads none of those modules.
Try it: bun test test/security-citations.test.ts test/security-page.test.ts passes, as do bun scripts/gate.ts --fix and bun x tsc --noEmit. To see it fail, change any symbol or source in src/view/security.ts and run the first test again.
I couldn't call the keep_plan tool because it wasn't available in this session, so the issue has no plan posted.
🤖 Generated with Claude Code
Every claim in src/view/security.ts now names one exported symbol that its source file must still declare. A new test, test/security-citations.test.ts, checks each claim's source, symbol, needle and proof test, plus each control's keptBy path. When a citation goes stale, for example because a file was renamed away, the test fails and names that row. The text of /security doesn't change; only the data behind each claim and the check on it do.
The earlier push failed the gate's "say how to try it on the preview" rule because no commit message had a Try: line. Force pushes aren't allowed, so instead of rewriting that commit I added an empty follow-up commit that carries the line. The gate passes against this branch's merge-base with main. bun x tsc --noEmit is clean, and test/security-citations.test.ts and test/security-page.test.ts pass (11 tests).
Try: open /security on the preview and check that every claim still names its source file and proving test. Then run bun test test/security-citations.test.ts, and rename one cited file or export to see the failure name its row.
🤖 Generated with Claude Code
/security's claims already lived in one table,
CLAIMSandREPORT_CLAIMSinsrc/view/security.ts, which both the page and the terminal screen draw. Each row had a source file, a text needle and a proof test. This pull adds asymbolfield to each row: a function, const or class that the cited file must still export (openCell,sandboxPolicy,protectionNotice,setCookie,originGate,securityFloor,canSeeSealed,buildRouter,proxyApp, and so on).The new
test/security-citations.test.tschecks every row: the source path exists, it still declares the symbol as an export, it still contains the needle, and the proof test file exists. It also checks the controls page, where eachkeptByinCONTROLS(src/checks/controls.ts) that is a repository path must exist. A control marked as tested must name a file in this repository; "Pod security", which isn't tested here, may still point to the cluster's own source. Each failure names its row, for example"Repository code": src/apps/contain.ts no longer exports openCellGone. Further cases in the same file feed in made-up files to show each kind of failure, and that a longer name, a comment or an import does not count as the export.No cited path was stale, so nothing needed fixing. The existing check in
test/security-page.test.tsis unchanged, and the page, its words and the security floor are untouched.What I chose not to do: I didn't check symbols by importing each module. Reading the source text tests exactly what the issue asks for ("still in that file") and loads none of those modules.
Try it:
bun test test/security-citations.test.ts test/security-page.test.tspasses, as dobun scripts/gate.ts --fixandbun x tsc --noEmit. To see it fail, change anysymbolorsourceinsrc/view/security.tsand run the first test again.I couldn't call the
keep_plantool because it wasn't available in this session, so the issue has no plan posted.🤖 Generated with Claude Code
Closes #13887