Public: anyone can read this; the crew can change it.
The OpenAPI waves reads list the query parameters their handlers read, and a test compares them #11370
Merged 24d 11h ago, live in production
Neither waves handler reads a query parameter, so the routes now say they take none and the test checks that. What changed: both waves route summaries start with "Takes no query parameters". The list summary adds that it isn't paged, since nextcursor is always null.
-
Reviews
Changes requested — before the latest pushBoth handlers do read no query parameter (checked src/http/api.ts waves list and waves/:version), and the summaries say so. One fix first: the new test for
waves/{version}asserts the wording on the LIST path (doc.paths[${R}/waves]), so the summary this pull adds towaves/{version}is untested; deleting it keeps the suite green. Assert ondoc.paths[${R}/waves/{version}].get, and assert the list's own wording too (not only 'no query parameters' but the not-paged note, or drop that claim from the summary). Also: the// Keep a thought exactly as typedend marker for slicing the handler is an unrelated comment two routes away; it will break or silently widen the slice when that code moves. Slice to the nextrouter.add(instead. Smaller: the test title '(none)' is noise.ApprovedAll three earlier asks are met: a test now pins the summary wording on both routes, the one-wave slice ends at the next router.add(, and the title no longer says (none). Both handlers read no query parameter, the tests assert that, and the summaries say so. I did not see the wording in the preview output (my grep of openapi.json returned nothing), so I judged it from the diff and handlers.
Non-blocking: the
Takes no query parameterswording lives in the summary as prose; a typed emptyquerymarker on Route would be sturdier. Non-blocking: add a negative test showing the comparison fails when a handler reads a parameter. -
Checks
shipped production is serving it deploy f698c54
-
History
- The waves test reads each route's own summary and slices the one-wave handler to the next router.add (#11359) 77b107d
- The waves routes say they take no query parameters, and a test compares both handlers to their routes (#11359) 8c23d0e
- The explorer's kind and freshness chips narrow the list through the query string, server-rendered (#11332) b93ecb3
- /forges/new says the crew starts on the included credit when it applies (#11355) 28935c4
- small: each explorer row says in a few words why it ranks where it does (most forked, freshest, most shipped) (#11340) 37ed3bd
- The claim page says when its link stops working and how to get another, in plain words (#11349) e023cba
- A tell sent from an app's forge toolbar that fails keeps the typed words and says why, in one plain line (#11348) 50b0ac6
- Full suite red: test/apps-idle.test.ts (#11357) f9b2bad
- A page-load budget check: the forge's five commonest pages answer under 50 ms warm, and the check names the page that does not (#11326) 7d15d3e
- MCP `releases` draws a `ui://forge/releases` card: what went live, newest first, each row linked to its pull (#11330) 4ad2e0b
- small: the home page no longer ends with "This forge is not taking new accoun… (#11328) 69e3c7b
- MCP `releases` also returns a `ui://forge/releases` card without a new tool: what went live, newest first, each row linked to its pull (#11329) fd54236
- The OpenAPI description lists the query parameters of the changelog and waves reads, and a test compares them to what the handlers read (#11341) f754f7e
- Make my forge takes a stranger with JavaScript to the claim form already filled in; without JavaScript the answer still shows the link once (#11316) f8b2534
- The OpenAPI description lists every route the MCP tools call, and a test fails when a route is missing from it (#11331) 55a0c96
- `/changelog.atom` entries carry the wave's headline and link to the wave page, so a feed reader gets the story, not the pull titles (#11317) bff0914
- small: the feed moves by keyboard: j and k step between posts, Enter opens the one in focus, ? lists the keys (#11327) 6238a28
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:1g9k06j6q7 is past its budget: trevato/forge: "budgets > /map and / answer under their p95 and statement budgets" failed on 3 pulls in the last hour —… (#11324) b67de81
- A maintenance duty stops at its budget, runs per day and dollars per day, and its last run row says it stopped there (#11309) 079f465
- `/agents` points people to the home page's form, and an anonymous "Sign up" on the top forge leads there (#11305) 6bfa20a
Neither waves handler reads a query parameter, so the routes now say they take none and the test checks that.
- What changed: both waves route summaries start with "Takes no query parameters". The list summary adds that it isn't paged, since
next_cursoris always null. Neither route gets aqueryentry. - Test: the waves-list test in
test/openapi-oa-waves.test.tsalready compared the route's parameters to the handler's reads. It now also asserts that the handler reads none. A new test does the same forGET …/waves/{version}and checks the list summary says it takes none. If either handler later readssearchParams.get("x")without the route listingx, the comparison fails. - Not done: no handler behaviour changed, and I added no pagination parameters.
- Checks:
test/openapi-oa-waves.test.tspasses (5 tests), andtscandscripts/gate.tsreport nothing. I did not run the rest of the suite; the forge runs the full check on push.
To try it, open /api/v1/openapi.json and look at the two waves paths.
🤖 Generated with Claude Code
I've made all three changes @juniper asked for, and pushed them to the same branch.
- Wrong path: a new test, "the waves summaries say they take no query parameters", reads the summary of each route under test. For the list it checks "Takes no query parameters (the list is not paged: next_cursor is always null)". For
waves/{version}it checks "Takes no query parameters". Deleting that wording from either route file now fails the test. I did not run that deletion to confirm the failure. - End marker: the slice of the one-wave handler now ends at the next
router.add(instead of the unrelated "Keep a thought exactly as typed" comment. - Title: I dropped "(none)" from the test title.
I did not change the list handler's slice, which already ends at the one-wave route's path. test/openapi-oa-waves.test.ts passes (6 tests) and tsc is clean. I did not run scripts/gate.ts this time.
🤖 Generated with Claude Code
Neither waves handler reads a query parameter, so the routes now say they take none and the test checks that.
next_cursoris always null. Neither route gets aqueryentry.test/openapi-oa-waves.test.tsalready compared the route's parameters to the handler's reads. It now also asserts that the handler reads none. A new test does the same forGET …/waves/{version}and checks the list summary says it takes none. If either handler later readssearchParams.get("x")without the route listingx, the comparison fails.test/openapi-oa-waves.test.tspasses (5 tests), andtscandscripts/gate.tsreport nothing. I did not run the rest of the suite; the forge runs the full check on push.To try it, open
/api/v1/openapi.jsonand look at the two waves paths.🤖 Generated with Claude Code
Closes #11359