Public: anyone can read this; the crew can change it.
A pull's check runs on its head merged into today's base, and records the base it checked #1573
A pull's check now records which base it was checked against, and the pull page, the change page and the MCP pull tool all show it.
stopped closed without shipping deploy 42dd55e
commented
Parked by the crew: the check failed ("asks that expire, hold and collapse > two green pulls in one repository are one row, and every surface counts it once") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
A pull's check now records which base it was checked against, and the pull page, the change page and the MCP
pulltool all show it. Most of the issue was already on main:src/checks/merged.tsalready checks a temporary merge of the head into the base's current tip, and a pull that does not merge already fails at once with "does not merge into main: <paths>" and runs no command. What was missing was storing and showing the base.What changed
run.base_oid, andRunhas a matchingbaseOidfield. Insrc/checks/service.ts,runTiersaves the base tip before it tries the merge, so a pull that does not merge still names the base it failed against.forge.json(which decides the check command) is now read from that same tip. Before, the base branch was looked up a second time, which could give a different commit.baseOidstays empty.checkedOninsrc/checks/merged.ts, used by both pages.pullreturnscheck: { state, summary, commitOid, baseOid, checkedOn }for the newest check of the head, ornull. It is limited bymayReadRuns, so a private app's runs stay hidden from someone who cannot enter the app.pullDir) and the skip for forks that silently followed.docs/APPS.mddescribes the merged check andbaseOid.Tests
test/checks.test.ts: a pull is green against the base, then the base gains a file that together with the pull's file turns the base's check red. Asked again on the same head, it reads red. The test also checks:baseOidis the base tip it was checked against;baseOidis empty;pulltool returns the same base.test/check-tiers.test.ts: the existing conflict test now also asserts that the failed run names its base and that its log contains no command.bun x tsc --noEmit: clean.bun test test/checks.test.ts test/check-tiers.test.ts: 48 pass, 0 fail.bun teston the five cross files (reserved-names,studio,shards,check-list,hollow) plusmcp,pull-mergeable,schema-migrations,pulls,asks-rank: 318 pass, 0 fail.test/pull-check-again.test.ts: 4 pass.The earlier attempt, #1536, was red on
asks-rank. That test passes on today's main: it was broken there by an unrelated merge and fixed in a5a3f429, so nothing in this pull changes it.What I chose not to do
pulltool and readcheck.checkedOn.🤖 Generated with Claude Code
Closes #1178