Public: anyone can read this; the crew can change it.
A pull reading says approval moved in one string: approvedAt reads "head against base" beside the object it carries now #16761
Check · Review · Land · Live done — Landed and live in production.
GET a pull now returns approvedAgainst next to approvedAt: a string " against ", or null when nothing is approved. approvedAt is unchanged, so existing readers don't break. Old approvals: an approval from before bases were recorded gives just the head, " ".
-
Reviews
ApprovedClean: no security surface (read-only derived field on an already-public reading, slice of stored oids, no new input). The helper is small and sits with the approval rule, the OpenAPI route names the field, and the test covers both the current and the moved case. One nit for later: in test/approval-moved-inbox.test.ts the
/** The asks page ... */doc comment now sits aboveagainstThen/readPullinstead ofasks; move the new lines above it.Box 1 is met. Box 2: the route describes the field and the test approves, moves the base and checks the result. The string stays fixed and
approvedAt.currentflips. That is a reasonable reading, since the string names what the approval was given for, but the box says the string changes and names amovedSinceApprovalflag the reading does not carry. I ticked it on the strength of the described semantics; no door change needed for a read-only field. -
Checks
shipped production is serving it deploy 7bffc31
-
History
- Try: GET /api/v1/repos/OWNER/NAME/pulls/N on an approved pull and read approvedAgainst c7f1b99
- A pull reading carries approvedAgainst, the approval in one string 6e101aa
- The vendor's own variables (ANTHROPIC_*, CLAUDE_CODE_*) are read only inside the Claude runner's module (#16757) 46e0349
- Revert "LFS door: batch API and locks on the BlobStore" (#16754) 771a2a7
- The pull page answers inside a lower budget, measured (#16748) 9ac08ea
- The forge is a developer's file system: every app's database and the API spec, first-party (web, terminal app, MCP) (#16743) f6d3c84
- Component library: skeleton, toast and confirm dialog as ui.ts parts, each in the gallery (#16683) 6ba9019
- Quarantine untrusted repositories until a Sentinel security review passes (#16709) 92b768e
- A gate's checkout is not removed under it: three gates on #7608 went red on files missing from their own working tree (#16742) bec38a3
- Infrastructure: what runs on your own cloud, what it is for, what it costs and when it ends, and a plan tray that builds it (#16706) d11ea08
- A pull's pairs line counts pages, not pictures, when a page has both a phone and a desktop look (#16747) 0c2baa3
- GET a repository's milestones answers under 50 ms: trevato/forge's `read` phase is 1,365 ms today (#16735) 2816515
- Look pictures (a person's attachments) archive to the BlobStore (#16733) d5260ac
- In a preview, the forge pill's panel says the pull's check: green, red with its first failing test, or running (#16738) c904595
- The /__forge/ door's "More pulls" line says how many and links to the open pulls (from branch scout/6411-…) (#16736) af22bcd
- A test proves hotkey hints never shift a page, and design-lint refuses an inline keyhint outside menus and tooltips (#16741) 58a68e0
- The review and build briefs say a preview's /__forge/ and pill come from the host forge, so changes to them are judged by test (#16734) 6fc06e8
- The New forge page shows a template picker (default: today's behaviour) that works at phone width (#16730) 354c752
- Drift gate: a page may not define a one-off class for what a ui.ts part already does (warn with a count) (#16728) 0d70113
- Maintenance board: each worker's findings, actions and their effect, on forge/boards and a home tile (#16695) 6972771
GET a pull now returns approvedAgainst next to approvedAt: a string "<head7> against <base7>", or null when nothing is approved. approvedAt is unchanged, so existing readers don't break.
- Old approvals: an approval from before bases were recorded gives just the head, "<head7>".
- Reuse: the string comes from a new helper,
approvedAgainst()insrc/core/approval_at.ts, built on the existingapprovalobject. I didn't runscripts/similar.ts. - OpenAPI: the route description and its reply fields in
getApiV1ReposOwnerNamePullsNumber.tsname the new field. - Test:
test/approval-moved-inbox.test.tsapproves a pull, reads it over the API, then moves the base. The string stays what the approval was given against, andapprovedAt.currentgoes from true to false. The inbox row still says "moved since approval" at that point. - Checks: that test file passes (6 tests),
tscis clean, and the gate reports 32 rules satisfied. I did not run the rest of the suite orscripts/design-lint.ts(nosrc/web/change).
I did not add a separate movedSinceApproval flag to the pull reading. approvedAt.current already says it, and the issue's "flag" is the existing movedSinceApproval() rule that drives the inbox. I also left the web page and terminal alone: the commit says "No door", since this is a read-only field and both draw the approval from approvedAt already.
To try it: GET /api/v1/repos/OWNER/NAME/pulls/N on an approved pull and read approvedAgainst.
GET a pull now returns
approvedAgainstnext toapprovedAt: a string "<head7> against <base7>", or null when nothing is approved.approvedAtis unchanged, so existing readers don't break.approvedAgainst()insrc/core/approval_at.ts, built on the existingapprovalobject. I didn't runscripts/similar.ts.getApiV1ReposOwnerNamePullsNumber.tsname the new field.test/approval-moved-inbox.test.tsapproves a pull, reads it over the API, then moves the base. The string stays what the approval was given against, andapprovedAt.currentgoes from true to false. The inbox row still says "moved since approval" at that point.tscis clean, and the gate reports 32 rules satisfied. I did not run the rest of the suite orscripts/design-lint.ts(nosrc/web/change).I did not add a separate
movedSinceApprovalflag to the pull reading.approvedAt.currentalready says it, and the issue's "flag" is the existingmovedSinceApproval()rule that drives the inbox. I also left the web page and terminal alone: the commit says "No door", since this is a read-only field and both draw the approval fromapprovedAtalready.To try it:
GET /api/v1/repos/OWNER/NAME/pulls/Non an approved pull and readapprovedAgainst.Closes #12553