Public: anyone can read this; the crew can change it.
The /review diff stat uses the pull's stored base oid, not the live base tip #16925
Check · Review · Land · Live done — Landed and live in production.
The /review diff stat is now taken against the base branch's current tip, not the base oid stored when the pull opened. I pushed it. bun x tsc --noEmit is clean.
-
Reviews
ApprovedThe size line on /review is now measured against the base branch's live tip and falls back to the stored oid. It reads the ref file, so a request still starts no process. The new test would fail on the old behaviour. The figure and markup on the page are unchanged, so nothing here breaks the phone, keyboard or no-JS bar. I read the diff and did not exercise the preview. Two things I would do next:
- Check that sealed cross-repo pulls still get a stat.
computeruns inpullDir, the head repo's directory, while the base tip is read from the base repo. If that tip's objects are missing in the head repo, git fails and the row shows 'failed'. Fall back to the stored oid whengit cat-file -efails, and add a test. - Check that the cache stays bounded. The key now changes each time the base moves, so
keptandfailedgain an entry per movement. Confirm they are capped or evicted.
- Check that sealed cross-repo pulls still get a stat.
-
Checks
shipped production is serving it deploy bb265f4
-
History
- Looks: /review b911697
- Try: open /review on the preview and read a pull's size line after its base branch has moved a541612
- Direction: the /review diff stat reads the base branch's live tip, not the oid stored at open (#4779) f4883d0
- Sandbox floor with Landlock where bwrap cannot run. (#16888) a3aa32f
- Sentinel: memory-growth was degraded 16 minutes today: The forge's own memory is 4689 MiB, over twice its first-hour 1629 MiB and past the 2176 MiB more its database caches m… (#16906) a233995
- Bridge v1: home becomes operable — select any tile, row or figure and act in place, keyboard first (#16898) 6edf0f6
- Follow upstream's "last checked" speaks the UI's one clock: `time()`, not a hand-rolled HH:MM UTC (#16902) 8fd7cde
- Install scripts off for unreviewed repositories (bun install --ignore-scripts) (#16886) 59dc8a4
- Home: two or three owner-pinned panels with release annotations (#16884) 12309f3
- A check's plan line survives a long log: in the summary when green, in the detail when red (#16889) 0a6deb5
- Main green: the static web loads no data graph again (FLAGS_FILE in a leaf module) (#16912) 42c8c1d
- MCP tools to list, add, grant and remove crew SSH devices (#16863) 8d40736
- Lent runners: a peer forge can lend check compute, scoped to public pulls, budgeted, sampled and revocable (#16836) 4c3cffb
- infra list opens with one paragraph naming every machine, and show finds a machine by name (#16900) 09cecc1
- "tries at /signin close the API door" passes every time on a loaded check machine (#16904) 362a2b5
- Talk's direct lane: small edits go straight to a live preview branch in seconds; the check runs once at Publish (#16832) 1cb0dba
- Status page: backups get their own honest row instead of reading as slow pages (#16891) e8a1cb1
- Nightly drill on the vxrail: the one-click path against production, loud on the step that broke (#16843) 3a83699
- An idle fresh forge has a memory budget test that names where its memory goes (#16883) 3bcfa79
- A front router wakes an asleep forge on its first request and says "waking…" while it does (#16882) 2d3e9b2
4 earlier comments
The /review diff stat is now taken against the base branch's current tip, not the base oid stored when the pull opened. I pushed it. bun x tsc --noEmit is clean. test/review-evidence.test.ts and test/review-page.test.ts pass. I did not run the full suite or try it on a preview.
Why: the stat is meant to show what landing would change. Against the stored oid, it also counted commits the base had already taken in. #4731's review_evidence.ts is on main now, so the earlier decline no longer applies.
What changed
diffStatForinsrc/web/studio/review_evidence.tsnow readsrefs/heads/<baseBranch>and uses that tip. The cache key and thegit diffuse that tip too.- If the ref can't be read, it falls back to the stored oid.
- The tip comes from the ref file, with no git process, so a request still never waits on git. I added
readTipSynctosrc/git/tips.tsfor this, rather than makingreviewPageasync. - A test builds a repo where the base has moved on and already contains the head. It expects an empty stat, which the stored base would not give.
- The existing fixture in
test/review-evidence.test.tspushed the head ontomain, which the live-base read made empty. It now leavesmainat the base and puts the head ontopic.
What I chose not to do: the head still comes from the stored pull, as before. The issue only names the base. I made no terminal or docs/features change; the commit line says No door: because the figure on the /review row is the same.
Try it: open /review on the preview and read a pull's size line after its base branch has moved. It should match the diff the pull page shows against the current base.
<!-- look-pages a541612489db --> Look pages for a541612, from the gate:
look pages (inferred): this pull changes src/web/studio/review_evidence.ts; the forge pictures /review (src/web/studio/review_evidence.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
The feedback contained no change request, only the gate's inferred look page (/review). I agree with it, so I added a Looks: /review commit to confirm it and pushed. No code changed.
The four recurring refusals the feedback listed are already covered:
- Both doors: the first commit carries a
No door:line, because only the existing/reviewsize figure changes. - Typed test input: the new test builds a real pull record, with no
as never. - Issue number: the commit says
Direction: … (#4779). - Dead code:
readTipSyncis called fromreview_evidence.ts.
The pull itself is unchanged. diffStatFor reads the base branch's current tip from its ref file, falling back to the stored oid, and still starts no process on a request. A new test builds a repo whose base has moved on and expects an empty stat. tsc and test/review-evidence.test.ts and test/review-page.test.ts passed when I pushed the first time; I did not rerun them this turn, since nothing changed.
Try it: open /review on the preview and read a pull's size line after its base branch has moved. It should match the diff the pull page shows against the current base.
The /review diff stat now counts what landing would change, measured against the base branch's current tip instead of the oid stored when the pull opened. I made no new commits this round, so there is nothing new to push. The pull already holds the change.
The feedback was the gate's look-pages note and a list of common refusals. I ran bun scripts/gate.ts --explain against the branch:
- Look pages: the note is informational. A commit already says
Looks: /review, which satisfies the rule. - Both doors: this passes. The commit line says
No door:. The change only alters how the existing /review figure is computed, so no page, action, route or tool changed. - Name the issue: this passes. The Direction commit carries #4779.
- Real input in tests, not
as never: the test file has noas never. The existingas unknown as Appstub for the app is unchanged. - Dead code: this passes.
readTipSyncis called fromsrc/web/studio/review_evidence.ts. - Comment width:
gate --fixrewrapped nothing, so there was nothing to commit.
bun x tsc --noEmit is clean and test/review-evidence.test.ts passes (7 tests).
What changed
- Live base tip:
diffStatFornow takes the base from the branch's ref file. It uses the stored oid only when the ref can't be read. The result is cached under the live base and head pair, so a moved base gets a fresh stat. - No new process:
readTipSyncinsrc/git/tips.tsreads the loose ref, thenpacked-refs, so a request still starts no process. - New test: the base has already absorbed the pull's head, and the stat comes out at 0 files, 0 additions, 0 deletions. It would fail against the old stored-oid behaviour.
- Existing fixture: I changed the existing fixture so
mainstays at the base and the head goes to atopicbranch. That matches how a real pull behaves until something lands.
Not done
I left the terminal side and the how-to alone: the figure is the same, only computed against the live base.
Try it
Open /review on the preview and read a pull's size line after its base branch has moved. It should count only what is still left to land.
The
/reviewdiff stat is now taken against the base branch's current tip, not the base oid stored when the pull opened. I pushed it.bun x tsc --noEmitis clean.test/review-evidence.test.tsandtest/review-page.test.tspass. I did not run the full suite or try it on a preview.Why: the stat is meant to show what landing would change. Against the stored oid, it also counted commits the base had already taken in. #4731's
review_evidence.tsis on main now, so the earlier decline no longer applies.What changed
diffStatForinsrc/web/studio/review_evidence.tsnow readsrefs/heads/<baseBranch>and uses that tip. The cache key and thegit diffuse that tip too.readTipSynctosrc/git/tips.tsfor this, rather than makingreviewPageasync.test/review-evidence.test.tspushed the head ontomain, which the live-base read made empty. It now leavesmainat the base and puts the head ontopic.What I chose not to do: the head still comes from the stored pull, as before. The issue only names the base. I made no terminal or
docs/featureschange; the commit line saysNo door:because the figure on the/reviewrow is the same.Try it: open
/reviewon the preview and read a pull's size line after its base branch has moved. It should match the diff the pull page shows against the current base.Closes #4779