Repository navigation
Description
This was generated by AI during triage.
Agent Brief
Category: bug
Summary: An author Review Pass reviews a Spec run's Ticket pull requests, because its admission check finds their closing issue only through GitHub's closingIssuesReferences, which is empty for pull requests into a non-default base.
Current behavior:
src/processes/review/admission.rs (eligible) skips a pull request when one of github.closing_issues(pr) carries in-progress or a held issue reservation. A Ticket PR in a Spec run targets the Spec's branch (issue-<spec>), not the default branch, and GitHub links closing issues only for pull requests into the default branch. So the list is empty, nothing is held, and an author Pass on another host reviews the Ticket PR while the Spec run is delivering it.
Evidence, 2026-11-18, thirdshift 0.37.0:
- factory ran the Spec run for Spec: interactive UI verification and GitHub-attached Visual evidence in pull requests #2023 (Spec labelled
in-progressfrom 18:07 EST). Its Ticket Probe Visual evidence host tools in Setup and offer interactive terminal installation #2283 opened PR Probe and offer Visual evidence host tool installation in Setup #2286: baseissue-2023, headissue-2283, body "Closes Probe Visual evidence host tools in Setup and offer interactive terminal installation #2283",closingIssuesReferences: []. - At 18:46, lima-thirdshift's
review --author JacobStephens2Pass took Probe and offer Visual evidence host tool installation in Setup #2286 and ran code review, security review and a third Process Step with affected tests (codex, xhigh). - At 19:34 the Spec run merged Probe and offer Visual evidence host tool installation in Setup #2286 into
issue-2023. The Review run endedfailedwith its work retained on Lima (see Review run: a pull request that changes mid-run strands its fixes in a retained worktree and is never reviewed again #1961). About an hour of agent time was wasted, and the Review raced the Spec run's own Ticket review.
Desired behavior:
An author Review Pass skips a pull request that another live Command is delivering, even when GitHub doesn't link its closing issue:
- For a pull request whose base branch is a thirdshift Issue branch (
issue-<n>), also check issue #n for anin-progressClaim or a held reservation, and skip with a reason naming the Spec. - When
closingIssuesReferencesis empty, read closing keywords (Closes/Fixes/Resolves #n) from the pull request body and apply the same holds to those issues. - The skip line has the same form as today's closing-issue holds.
Key interfaces:
admission::eligibleinsrc/processes/review/admission.rs.GitHub::closing_issuesand the pull request snapshot (base and head branch, body).- How Issue branch names are made (
issue-<n>), so the base-branch check uses the same rule rather than a regex copy.
Acceptance criteria:
- A fake-gh test: a PR into
issue-<n>whose issue #n isin-progressis skipped by an author Pass, and the skip names #n. - A PR with empty
closingIssuesReferenceswhose body says "Closes #m", with #m reserved, is skipped. - A PR into the default branch with no hold is still reviewed (no regression).
- Docs updated where the guide describes which pull requests a Review Pass skips.
Out of scope:
- Stopping a Review run when its pull request is merged or closed mid-run (separate issue).
- What happens to a retained Review worktree afterwards (Review run: a pull request that changes mid-run strands its fixes in a retained worktree and is never reviewed again #1961).
Activity
JacobStephens2 commentedon Nov 19, 2026
This bug broke a Spec run an hour after it was filed. At 19:01 EST, lima-thirdshift's author Review Pass took Ticket PR #2287 (base
issue-2023, headissue-2282), which factory's Spec run for #2023 was delivering. At 20:07 the Review pushed two fix commits toissue-2282(c7d544d0,6862ea40). factory's Spec run had made its own fix for the same Security-review finding, and at 20:08 its push ofissue-2282was rejected asnon-fast-forward. So #2282 failed, #2284 and #2285 were blocked behind it, and #2023 endedfailedwithagent-failed.So the race costs more than wasted review time: an author Pass can make a Spec run fail. Lima's thirdshift Review cron is paused until this ships.
fix: keep Review Passes out of active Spec delivery (JacobStephens2#2290