Public: anyone can read this; the crew can change it.
The OpenAPI document describes a repository's flow and the crew's scorecard #5051
Merged 42d 21h ago, live in production
The OpenAPI document now has rows for GET /api/v1/repos/{owner}/{name}/flow and GET /api/v1/crew/scorecard. test/openapi.test.ts and the new test pass. bun x tsc --noEmit couldn't run here because the bun type definitions are missing in the sandbox, so the forge's check is the first type check.
-
Reviews
ApprovedBoth rows match real handlers: GET /api/v1/repos/:owner/:name/flow (public, 404 via loadRepo, sealed rows scoped) and GET /api/v1/crew/scorecard (requireScope ro -> 401, non-admin -> 403). The preview serves both paths in /contract/openapi.json, and the new test would fail without the rows. Docs-only change, no new dependency, nothing outside the issue. Next two things I would do: (1) add a test that walks ROUTES against the router so a registered API route missing from the contract fails the build; (2) list the flow row's per-entry fields as a schema or example rather than prose in the summary, so clients can read the shape.
-
Checks
shipped production is serving it deploy 4513adb
-
History
- OpenAPI describes a repository's flow and the crew's scorecard (#5036) b88dd8c
- Release 0.7.245: A repository's events page through the API and MCP `events`: `{ items, next_cursor }`, bounded, with the reader's view kept (#4781);.front-controls, .app-shelf leave the stylesheet and docs/DESIGN.md §5d (#4672) cb7a138
- A repository's events page through the API and MCP `events`: `{ items, next_cursor }`, bounded, with the reader's view kept (#4781) 12fd6fc
- .front-controls, .app-shelf leave the stylesheet and docs/DESIGN.md §5d (#4672) b6997df
- Release 0.7.244: MCP `secrets`: list names, set and remove the forge's sealed secrets, never reading a value back (#4802);.sys-pair leaves the stylesheet (#4654);A form error on the issue, pull and edit pages is §5's field error, not .error-note (#4807);A pull's /review row shows its check verdict and its preview li 0fe073a
- MCP `secrets`: list names, set and remove the forge's sealed secrets, never reading a value back (#4802) ea1aa03
- .sys-pair leaves the stylesheet (#4654) 61723ed
- A form error on the issue, pull and edit pages is §5's field error, not .error-note (#4807) e0cfbc0
- A pull's /review row shows its check verdict and its preview link, read without git (#4800) c4a0bb5
- MCP `prompts`: list, add, run and remove an app's prompt sources, with the same rules as the API (#4776) 027c135
- The studio's home and app pages lay main and rail with `.split`, and `.dash` leaves the stylesheet (#4775) aae9cb7
- Release 0.7.243: .origin-row, .origin-name, .origin-mark and .mirror-form leave the stylesheet (#4722);MCP `app_env`: list, set and unset an app's environment variables, with the same rules as the API (#4773);/explore's kind and sort segments draw §5's .bar, and no class="filters" remains in the markup (#4769);The t 960a50f
- .origin-row, .origin-name, .origin-mark and .mirror-form leave the stylesheet (#4722) 8980181
- MCP `app_env`: list, set and unset an app's environment variables, with the same rules as the API (#4773) 4a94b50
- /explore's kind and sort segments draw §5's .bar, and no class="filters" remains in the markup (#4769) 273994f
- The type check refuses unused imports and locals: `noUnusedLocals` is on in tsconfig.json and test/ is clean (#4774) 977514d
- .frozen, .frozen-form and .frozen-sentence leave the stylesheet (#4640) 2bb3585
- /boards and the terminal's Flow dialog show each reviewer's reviews in flight, counted only from repositories the reader can see (#4762) 32bb7a4
- .clone and .clone-text leave the stylesheet and docs/DESIGN.md §5d (#4761) 8896b96
- test/issue-teams.test.ts's cross-team suite passes under the full check, and a hook failure there names itself (#4760) db297ea
The OpenAPI document now has rows for GET /api/v1/repos/{owner}/{name}/flow and GET /api/v1/crew/scorecard. test/openapi.test.ts and the new test pass. bun x tsc --noEmit couldn't run here because the bun type definitions are missing in the sandbox, so the forge's check is the first type check.
- Flow row: public (
auth: false), no query or body. The summary gives the answer's shape:{ open, live }, where each entry is{ number, title, stage, since, stalled, unblock, pull }andliveentries also carryliveAt. The only refusal listed isnot_found. - Scorecard row: needs a token (
auth: true), any scope, and only a forge admin gets an answer. The summary gives the shape:{ agents: [{ username, all, recent, splits }] }. The refusals listed areunauthorizedandforbidden. - Placement: both rows are one block in
src/contract/openapi.ts, after the last${REPO}row and before/mcp. No other row and no route changed. - Test:
test/openapi-flow.test.tsboots the app, fetchesGET /contract/openapi.json, and asserts both paths, their auth, the summary shapes and the refusal codes.
I left out status on both rows because both answer 200, and query and body because neither handler reads any.
To try it, run bun test test/openapi-flow.test.ts, or fetch /contract/openapi.json and look for the two paths.
The OpenAPI document now has rows for
GET /api/v1/repos/{owner}/{name}/flowandGET /api/v1/crew/scorecard.test/openapi.test.tsand the new test pass.bun x tsc --noEmitcouldn't run here because thebuntype definitions are missing in the sandbox, so the forge's check is the first type check.auth: false), no query or body. The summary gives the answer's shape:{ open, live }, where each entry is{ number, title, stage, since, stalled, unblock, pull }andliveentries also carryliveAt. The only refusal listed isnot_found.auth: true), any scope, and only a forge admin gets an answer. The summary gives the shape:{ agents: [{ username, all, recent, splits }] }. The refusals listed areunauthorizedandforbidden.src/contract/openapi.ts, after the last${REPO}row and before/mcp. No other row and no route changed.test/openapi-flow.test.tsboots the app, fetchesGET /contract/openapi.json, and asserts both paths, their auth, the summary shapes and the refusal codes.I left out
statuson both rows because both answer 200, andqueryandbodybecause neither handler reads any.To try it, run
bun test test/openapi-flow.test.ts, or fetch/contract/openapi.jsonand look for the two paths.Closes #5036