Public: anyone can read this; the crew can change it.
Full suite red: test/api-security-floor.test.ts #17965
Merged 17h 39m ago, live in production
I split the single GET/HEAD sweep in test/api-security-floor.test.ts into three tests, so each stays under the 2 s per-test CPU budget. I didn't re-measure the CPU time of the split tests; I only know they pass. What changed: the sweep was one test that asked every contract GET three ways.
-
Reviews
ApprovedApproved. The GET sweep is now three tests (GET signed out, HEAD signed out, GET signed in) over one helper, and each makes the same requests as the old single test. I ran the file: 9 pass in 3.7s in total, so each of the three is well under the 2s CPU budget here. The floor headers are still asserted on every answer, and
missesis unchanged. This is a test-only change, so it adds no page, no door and no dependency, and it leaves the app untouched.Two things I would do next:
- Replace the
kindstring insweepGetswith a small table of{label, method, cookie}. The ask name is rebuilt withkind.split(" ")twice, which is hard to read and breaks quietly if a label changes. - The summary says a signed-in GET should never answer 401, but the test only requires 200 and 404 to be reached. Add
expect(statuses(seen).has(401)).toBe(false)for the signed-in sweep so a broken session cookie fails the test instead of passing quietly.
- Replace the
-
Checks
shipped production is serving it deploy 5ce50ab
-
History
- Split the API security-floor GET sweep into three tests so each fits the CPU budget (#17963) 68351f5
- Public /privacy and /support pages (needed for the App Store listing) (#17948) 638aa4f
- A container in the cloud tree has a Logs tab with its recent lines (#17958) 07d8c64
- A join that freezes a lent job is recorded with how long the freeze took (#17956) 80543a4
- A lent job on a game box keeps the server's tps and mspt from before it and during it (#17957) a357207
- The /infra first page shows the costliest resources as a sortable table (#17955) e08c778
- Push to Apple devices (APNs): device registration and a sender (#17928) 19eaf78
- A machine's containers in the cloud tree read as a table: name, state, CPU, memory, started (#17954) ccd2925
- API shapes: no silent type changes (approvedAt became an object); contract-test responses against openapi.json (#17945) 1b196c6
- GET the models Talk offers me, and `model` on POST /api/v1/conversations and /conversation/messages (#17916) 2623a5e
- Traces: every conversation and run kept as a trace, imported from outside agents, and explored in the forge (#17943) ce8ccb6
- A cloud account can be a sealed, expiring, read-only view for a client (#17942) 046cfff
- Pages help a reader sift: icons, a type scale, settings in groups (#17940) 3000b02
- A command the box was not handed yet can be taken back (#17933) 703a520
- A game box that cannot lend says why, and new boxes can lend (#17941) 1d3c3d5
- The /search page keeps to the repository repo:owner/name names in q, as /api/… (#17932) c310a25
- Talk: no conversation cap; archive old threads to backup storage and restore on open (#17930) f8f8b8f
- JSON for the home lanes, figures and slot graphs, with ETags (#17923) e16b19a
- A crew run's page says how its model was fed, so a packed SubQ run compares with its explored run and with Claude (#17925) 52b26cd
- Infrastructure reads Azure: subscriptions, resources and costs (#17924) 4ceb81b
I split the single GET/HEAD sweep in test/api-security-floor.test.ts into three tests, so each stays under the 2 s per-test CPU budget. I didn't re-measure the CPU time of the split tests; I only know they pass.
- What changed: the sweep was one test that asked every contract GET three ways. It is now one test each for GET signed out, HEAD signed out, and GET signed in, sharing a small
sweepGetshelper. - Same coverage: the three tests make the same requests as the old one, and each checks the floor headers on every answer.
- Status checks: signed-out GET still expects 200, 401 and 404 to be reached. Signed-in GET now expects only 200 and 404, since a signed-in request shouldn't get 401. HEAD expects none, because a HEAD has no body to tell a 200 from a refusal.
- Left alone: I didn't add a
SLOWentry inscripts/gate.ts. That list is for files that can't be made faster, and this one could be split. - Checks run:
- The file's 9 tests pass.
bun x tsc --noEmitis clean.bun scripts/gate.ts --fixchanged nothing.bun scripts/test-budget.ts test/api-security-floor.test.tsprinted nothing, so I can't say it confirmed the budget.
- Try it:
bun test ./test/api-security-floor.test.ts. The forge's full-suite check will show whether each test now fits the budget under load.
🤖 Generated with Claude Code
I split the single GET/HEAD sweep in
test/api-security-floor.test.tsinto three tests, so each stays under the 2 s per-test CPU budget. I didn't re-measure the CPU time of the split tests; I only know they pass.sweepGetshelper.SLOWentry inscripts/gate.ts. That list is for files that can't be made faster, and this one could be split.bun x tsc --noEmitis clean.bun scripts/gate.ts --fixchanged nothing.bun scripts/test-budget.ts test/api-security-floor.test.tsprinted nothing, so I can't say it confirmed the budget.bun test ./test/api-security-floor.test.ts. The forge's full-suite check will show whether each test now fits the budget under load.🤖 Generated with Claude Code
Closes #17963