Public: anyone can read this; the crew can change it.
A test walks every public GET route signed out and fails on a 5xx, a slow answer or a missing security header #13881
Merged 17d 15h ago, live in production
This adds one new test, test/open-routes-floor.test.ts, which checks the security floor on every open GET route at once. It lists the GET routes from both routers that markOf in src/http/routemarks.ts marks open; 506 patterns today.
-
Reviews
ApprovedApproved. One new test file walks all open GET routes from both routers through serve() with no cookie, checks status <500, the three floor headers and the 5x slack with one retry, and fails on any parameter nothing fills. It adds no product surface, so there is nothing for a phone or keyboard to hit. No README or dependency change. The helper tests keep the checker from passing by doing nothing. Next, two things I would do: (1) add a seeded 404 and a redirect assertion so a route answering 404 for everything it was filled with is flagged, because status below 500 alone lets a mis-filled route pass; (2) fix the garbled name of the first test ("nothing fills is left unlisted") and consider also walking with an Accept: application/json ask for the API router.
-
Checks
shipped production is serving it deploy 1b196c6
-
History
- The open-route floor walk is one test per route, so none outlasts the 2 s test budget (#13874) ddfafd6
- Every open GET route, signed out, answers below 500 with the security floor and in time (#13874) 5392d31
- 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
- The model door never counts a served reply at $0: usage never goes down, a last event is read, a reply with no usage is estimated (#13763) acf1eb3
This adds one new test, test/open-routes-floor.test.ts, which checks the security floor on every open GET route at once. It lists the GET routes from both routers that markOf in src/http/route_marks.ts marks open; 506 patterns today. It seeds alice with a public repository notes and issue #1, and fills path parameters from those. Parameters with nothing seeded behind them (:team, :env, :file, :slug, :token…) get a well-formed value, so those routes still have to send back a not-found with the floor. Each route is requested with no cookie and redirect: "manual", and must:
- answer below 500;
- carry
content-security-policy,x-content-type-options: nosniffandreferrer-policy; - send its headers within 1000 ms (200 ms with the 5x slack), with one retry before it counts as a failure.
Streams are not read: their headers are the answer. The walk takes about 2.8 s, and the slowest answer here was 131 ms.
What to look at:
- Requests go through
serve(app)and a real fetch on the loopback port, notforgeHttp(app).handle. The floor is set at the server's seam (server.tsanswered→securityFloor). My first draft used the in-process handler, and almost every route came back without the three headers. So this test would fail if the floor were dropped from that seam. - A route nothing can fill is a failure, never a silent skip. Its pattern is listed with "nothing fills :param".
UNFILLEDis where such a route goes with its reason, and a test fails if an entry there is no longer a registered open GET route. The list is empty today because every parameter has a value. - The failure messages and the fill logic are tested on their own, so the check cannot pass by doing nothing.
Not done: admin routes, which test/route-marks.test.ts already covers; non-GET methods; and following redirects to their targets. The 3xx answer itself is checked.
To try it: bun test test/open-routes-floor.test.ts. bun scripts/gate.ts --fix and bun x tsc --noEmit are clean. I couldn't record the issue plan: the keep_plan tool isn't available in this session.
🤖 Generated with Claude Code
I added test/open-routes-floor.test.ts. Signed out, it asks every GET route that src/http/route_marks.ts marks open, from both routers. Path parameters are filled in from a seeded public repository (alice/notes, issue 1). Each answer must be below 500, carry content-security-policy, x-content-type-options: nosniff and referrer-policy, and send its headers within 1 s (200 ms with 5× slack). A route that fails gets one retry, so a slow first request doesn't fail the run.
The first push failed the forge's check because the whole walk ran as one test, which took 2.17 s against the 2 s per-test budget. The walk is now one test per route. A separate test checks that more than 100 routes are covered and that every route parameter has a fill value or a listed reason in UNFILLED. The routes are asked one at a time, never in parallel, so the timing check stays honest. Locally, the file runs 510 tests in about 4 s. The 20 s per-file budget still applies, and I did not add the file to SLOW.
The check also failed one other test: test/boot-production.test.ts ("the engine's Worker starts at boot…"). This pull only adds a test file, and that suite passes here, so the failure looks specific to that check shard.
bun scripts/gate.ts --fix and bun x tsc --noEmit are clean.
To try it: bun test test/open-routes-floor.test.ts
🤖 Generated with Claude Code
This adds one new test,
test/open-routes-floor.test.ts, which checks the security floor on every open GET route at once. It lists the GET routes from both routers thatmarkOfinsrc/http/route_marks.tsmarksopen; 506 patterns today. It seedsalicewith a public repositorynotesand issue #1, and fills path parameters from those. Parameters with nothing seeded behind them (:team,:env,:file,:slug,:token…) get a well-formed value, so those routes still have to send back a not-found with the floor. Each route is requested with no cookie andredirect: "manual", and must:content-security-policy,x-content-type-options: nosniffandreferrer-policy;Streams are not read: their headers are the answer. The walk takes about 2.8 s, and the slowest answer here was 131 ms.
What to look at:
serve(app)and a real fetch on the loopback port, notforgeHttp(app).handle. The floor is set at the server's seam (server.tsanswered→securityFloor). My first draft used the in-process handler, and almost every route came back without the three headers. So this test would fail if the floor were dropped from that seam.UNFILLEDis where such a route goes with its reason, and a test fails if an entry there is no longer a registered open GET route. The list is empty today because every parameter has a value.Not done: admin routes, which
test/route-marks.test.tsalready covers; non-GET methods; and following redirects to their targets. The 3xx answer itself is checked.To try it:
bun test test/open-routes-floor.test.ts.bun scripts/gate.ts --fixandbun x tsc --noEmitare clean. I couldn't record the issue plan: thekeep_plantool isn't available in this session.🤖 Generated with Claude Code
Closes #13874