Skip to content

gstack-pr-wait ignores cancelled checks a newer pass replaced, and the npm git-dependency hint names allow-git - #4832

Merged
capy-ai[bot] merged 3 commits into
mainfrom
fix/pr-wait-replaced-cancels-npm-allow-git-docs-admission
Nov 25, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
fix/pr-wait-replaced-cancels-npm-allow-git-docs-admission

Conversation

@garrytan

@garrytan garrytan commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

gstack-pr-wait no longer blocks on a cancelled check that a newer run of the same check replaced, and the DEPS_MISSING stop names npm 12's allow-git setting when the lockfile installs a package from git.
The docs audit that /gstack-ship launches also starts after a reviewer's install, and a refused launch no longer uses up its one retry.
Nothing for you to do. Fixes #4807 and #4815; thanks to exGeni for both reports and the repro.

What changed
  • gstack-pr-wait and replaced cancels (gstack-pr-wait counts a cancelled check run that a newer run of the same check replaced as a failure, while gstack-ship-queue ready reads the same head as green #4807). A cancelled run is left out only when the newest run of the same check (same app and name) passed or is still running, which is how gstack-ship-queue ready and gh pr checks already read it. The check then reads as that newer run, so it is green when that run passed and pending while it runs. A failed run beside a newer pass, a cancel that is the newest run, and another app's pass all still block. docs/ship-policy.md and docs/troubleshooting.md name this one narrowing.
  • npm git dependencies (ship preflight: DEPS_MISSING hint 'npm ci' fails under npm 12 for git dependencies (EALLOWGIT) #4815). When npm-shrinkwrap.json or package-lock.json resolves a package from git, the DEPS_MISSING hint still says npm ci and adds that npm 12 and later need allow-git, naming --allow-git=all for a source you trust. It is not made the default.
  • Docs audit start. When a reviewer's --for review-voice install has rewritten the shared install verdict, the start check (both the TypeScript and Bash versions) now also tries /gstack-ship's own install record. That record is checked in full for the workflow: checkout, HEAD, project, pins, components and Bun.
  • Docs audit retry. gstack-docs-candidate attempt no longer counts a launch whose start check refused it when the child reports that as a blocked result with no file reviewed or updated.
Why

Each bug gave wrong advice to someone shipping with gstack. pr-wait reported a false PR_WAIT_BLOCKED on a head the merge queue called green. The npm hint suggested a command that fails with EALLOWGIT. And in a real /gstack-ship run (yc-software/qm#3974), the docs audit was refused at start and the refusal still spent the PR's one retry.

Blast radius

gstack-pr-wait (and /land-and-deploy Step 3, which runs it), the DEPS_MISSING stop in gstack-ship-preflight, workflow start checks on Capy machines after a review-voice install, and Step 14.5's attempt counter. The merge queue's own CI verdict is unchanged.

Documentation

Status: current. No doc edits were needed; the branch's own doc changes match the code.

Scope: committed diff 7eba5ca..HEAD on fix/pr-wait-replaced-cancels-npm-allow-git-docs-admission (16 files: bin/gstack-docs-candidate, bin/gstack-install-verdict.sh, bin/gstack-ship-receipt, lib/install-verdict.ts, lib/pr-wait-github.ts, lib/ship-preflight.ts, lib/ship-queue.ts, three docs, one changelog fragment, five tests). The branch has no staged, unstaged or new files beyond its commits.

Documentation health:

Coverage debt: the DEPS_MISSING npm allow-git hint (#4815) is described only in the changelog and the code, with no troubleshooting entry. Diagram drift: none.

Issues

Fixes #4807
Fixes #4815

Tests

Each fix has a test written first and seen failing on main (7eba5ca): test/gh-poll.test.ts (#4807, with negative controls), test/ship-preflight-carry-bound-and-deps.test.ts (#4815), test/install-verdict.test.ts (start check, both versions; a stale or narrower ship record still refuses), test/ship-rereview-triggers.test.ts (retry count) and test/ship-receipt-runs.test.ts. CI runs the full suite. The focused tests passed at the final head (45 tests).

Agent notes
Agent notes

Pre-Landing Review: 9 issues — 1 auto-fixed, 0 asked, 0 deferred, 4 noted, 4 ruled notes
Gate edits: none detected (6 listed, 1 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
REVIEW_LOOP: passes=2 blocking_found=4 deferred=0 noted=4 fixed=1 scope=frozen open=4 dispatches=4
Ruled note: lib/ship-queue.ts:174:outside-voice at 1da54fb ruled by GStack Minder (relayed from GSTA-36:2026-11-25T17:13:04.602Z) at 2026-11-25T17:13:15.255Z: Ruled a non-security note: pr-wait aligns with ship-queue's existing latestRunPerName key and gh pr checks; ship-queue remains the merge gate and workflow-id keying is a separate follow-up. (approval a-b2fb4b45f518)
Ruled note: lib/pr-wait-github.ts:194:outside-voice at 1da54fb ruled by GStack Minder (relayed from GSTA-36:2026-11-25T17:13:04.602Z) at 2026-11-25T17:13:15.417Z: Ruled a non-security note: conservative refusal unchanged from main; narrowing only already-replaced cancels widens nothing. (approval a-6f5cba58a8c4)
Ruled note: lib/install-verdict.ts:159:outside-voice at 1da54fb ruled by GStack Minder (relayed from GSTA-36:2026-11-25T17:13:04.602Z) at 2026-11-25T17:13:15.553Z: Ruled a non-security note: matches GST-1233's existing per-workflow fallback, still blocks fail setup, and validates the ship record in full for checkout, head, and runtime. (approval a-8c5a82e518db)
Ruled note: lib/ship-preflight.ts:230:outside-voice at 1da54fb ruled by GStack Minder (relayed from GSTA-36:2026-11-25T17:13:04.602Z) at 2026-11-25T17:13:24.353Z: Ruled a non-security note: the lockfile read matches the package.json readFileSync in the same function and needs a hostile FIFO in the repo; bounded read deferred with the Low notes. (approval a-03fe318da8de)

Low notes from the native adversarial reader (no action in this PR): two Bash locals (_ia_dir, _ia_ship) are not declared local; the allow-git note inside the DEPS_MISSING line breaks a copy-paste of the command; the docs describe the ship-record fallback more narrowly than the code applies it (every workflow it fully certifies); a never-starting replacement run now waits out the deadline instead of failing fast. The docs audit noted that the allow-git hint has no troubleshooting entry yet.

Thread GSTA-865, issue GST-3918. Also from the #4829 review notes: gstack-ship-receipt write drops a retired scoped-fix-check row from --no-stop, matching checkNoStop in gstack-no-stop. No outside code was run; the #4807 repro was rewritten as a test.

Second-model review: openai/gpt-6.2-sol (outside voice), Claude Opus 5.5 specialists, red team and adversarial reader.

Approvals

Approved: yes (record r-47391c16ed96). The full approval record stays private.
Plan: exempt: bug fix (R40/R65), failing-first tests
Plan check: exempt bug fix

Refs GST-3918
gstack: ok 1.103.3.0 for=ship

Receipt
{
  "schema_version": 1,
  "pr": 4832,
  "head": "1da54fbfc553234362b724af28379b263ea9878d",
  "version": "1.103.3.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 45,
      "fail": 0,
      "skip": 0
    }
  },
  "calls": 21,
  "session_kind": "unattended",
  "run": "ship-20261125T163635-5f815a",
  "head_tree": "45d89c659795ed39c5ba0b212aab41bb7ec40adf",
  "product_patch_id": "58bf7e9ef2e730c7e70845d18a8d07bd0068621c",
  "gstack_version": "1.103.3.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 92,
    "rules": "33831f8248a814fd",
    "base": "7eba5caf6f5fce30810bc265ee077b3150c4af47",
    "registry": "7eba5caf6f5fce30810bc265ee077b3150c4af47",
    "gate_scan": {
      "tagged": 0,
      "head": "1da54fbfc553234362b724af28379b263ea9878d"
    },
    "reasons": [
      "gate-class",
      "runtime=92"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @45d89c659795 (8 checks, current for 1da54fbfc553)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/45659230863/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/45659230895/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=45d89c659795 tests=39443 skipped=72 runs=45659230863/1 profiles=ci-reuse/free-tests heads=1da54fbfc553 verified=2026-11-25T17:18:05.756Z"
  ],
  "issues": {
    "fixes": [
      4807,
      4815
    ],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, CONTRIBUTING.md (discovery roots); diff 7eba5caf..1da54fb"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 4,
    "deferred": 0,
    "noted": 4,
    "fixed": 1,
    "scope": "frozen",
    "rounds": 2,
    "dispatches": {
      "specialist": 2,
      "red-team": 2
    }
  },
  "ruled_notes": [
    {
      "finding": "lib/ship-queue.ts:174:outside-voice",
      "head": "1da54fbfc553234362b724af28379b263ea9878d",
      "by": "GStack Minder",
      "reason": "Ruled a non-security note: pr-wait aligns with ship-queue's existing latestRunPerName key and gh pr checks; ship-queue remains the merge gate and workflow-id keying is a separate follow-up.",
      "at": "2026-11-25T17:13:15.255Z",
      "approval": "a-b2fb4b45f518",
      "relayed": "GSTA-36:2026-11-25T17:13:04.602Z"
    },
    {
      "finding": "lib/pr-wait-github.ts:194:outside-voice",
      "head": "1da54fbfc553234362b724af28379b263ea9878d",
      "by": "GStack Minder",
      "reason": "Ruled a non-security note: conservative refusal unchanged from main; narrowing only already-replaced cancels widens nothing.",
      "at": "2026-11-25T17:13:15.417Z",
      "approval": "a-6f5cba58a8c4",
      "relayed": "GSTA-36:2026-11-25T17:13:04.602Z"
    },
    {
      "finding": "lib/install-verdict.ts:159:outside-voice",
      "head": "1da54fbfc553234362b724af28379b263ea9878d",
      "by": "GStack Minder",
      "reason": "Ruled a non-security note: matches GST-1233's existing per-workflow fallback, still blocks fail setup, and validates the ship record in full for checkout, head, and runtime.",
      "at": "2026-11-25T17:13:15.553Z",
      "approval": "a-8c5a82e518db",
      "relayed": "GSTA-36:2026-11-25T17:13:04.602Z"
    },
    {
      "finding": "lib/ship-preflight.ts:230:outside-voice",
      "head": "1da54fbfc553234362b724af28379b263ea9878d",
      "by": "GStack Minder",
      "reason": "Ruled a non-security note: the lockfile read matches the package.json readFileSync in the same function and needs a hostile FIFO in the repo; bounded read deferred with the Low notes.",
      "at": "2026-11-25T17:13:24.353Z",
      "approval": "a-03fe318da8de",
      "relayed": "GSTA-36:2026-11-25T17:13:04.602Z"
    }
  ],
  "gate_dispositions": []
}
{"head":"1da54fbfc553234362b724af28379b263ea9878d","run":"ship-20261125T163635-5f815a","mark":"stop","tree":"45d89c659795ed39c5ba0b212aab41bb7ec40adf","at":"2026-11-25T17:11:00.682Z"}

…e npm git-dependency hint names allow-git

A cancelled check that a newer passing run replaced no longer blocks gstack-pr-wait (#4807); the DEPS_MISSING hint names npm's allow-git for git dependencies (#4815); the docs audit /gstack-ship launches is admitted by /gstack-ship's own install record and an install refusal no longer spends its re-audit.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits November 25, 2026 16:44
…-voice install replaced the shared verdict

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/red-team#1 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 8aafd40 into main Nov 25, 2026
66 checks passed
@garrytan garrytan mentioned this pull request Nov 25, 2026
capy-ai Bot added a commit that referenced this pull request Nov 25, 2026
- gstack now picks the newest Opus, Fable, Sol and Astra everywhere it chooses a model. (#4811)
- /autoplan no longer asks the owner a third time for changes his "do it" already approved. (#4809)
- The destructive-command check no longer asks before deleting a file inside another `git worktree` of the same repository, or elsewhere in the session's own worktree. (#4834)
- New guide section: you don't need to cut back on MCP servers for accuracy, up to about 300 tools, as long as Claude Code's tool search stays on. (#4814)
- This release's notes no longer contradict each other. (#4839)
- An owner can now let a small edit made after the final review ship as a disclosed note, and /ship honours it. (#4818)
- `/eval-plan` lets a judge that grades code be checked against a third model's labels instead of people's (R126). (#4824)
- `gstack-pr-wait` no longer blocks on a cancelled check that a newer passing run of the same check replaced. (#4832)
- The `DEPS_MISSING` stop names npm's `allow-git` setting when the lockfile installs a package from git. (#4832)
- The docs audit /gstack-ship launches starts after a reviewer's install replaced the shared install verdict. (#4832)
- `gstack-ship-receipt write` leaves a retired `scoped-fix-check` row out of `--no-stop`, (#4832)
- The QA-only cleanup test no longer fails at random in CI. (#4823)
- Three tests that failed at random now pass reliably. (#4821)
- Six tests that failed at random now pass reliably. (#4830)
- /gstack-ship honours a ruled edit after the final review, and a stop on a second-model blocker records. (#4829)
- `/ship` is now `/gstack-ship`, so Claude Code loads gstack's shipping skill again (#4775). (#4839)
- make-pdf's new layout handles three more cases. (#4828)
- make-pdf has a bold new default look, and `--style plain` keeps the old one. (#4820)
- The CI image now runs Claude Code 2.1.326 and Codex 0.172.0, versions that know gstack's newest default models. (#4822)
- `bin/gstack-capy-install` reads the Codex setup model from the astra row of `lib/model-families.ts` instead of naming it, so the next Astra release is still a one-line change. (#4822)
- The default judge's move to claude-fable-5-2 is checked against the labelled controls next to its callers (plan-decision and DX peer-comparison calibrations, the redaction semantic pass): every item agreed with its label. (#4822)
- The test harness keeps working on Claude Code 2.1.326. (#4822)
- A release no longer rewrites version numbers inside changelog entries, counts subsection headings as changes, or prints a subsection heading twice. (#4803)
- The /cso security audit skill is gone, because a plain request for a security audit now finds more real problems. (#4839)
- /gstack-ship no longer has round grants, fix-check grants or the review-loop exception: after two review rounds a blocker ships only as an owner's ruled note, or the PR parks. (#4826)
- `gstack-ship-queue ready` no longer asks for a cross-family read of the decision trail. (#4826)
- `gstack-ship-receipt stop` works before a PR exists. (#4826)
- Receipt checks read a path with `*` or `?` in its name as that file. (#4826)
- The /gstack-ship driver records spend at start and close only, (#4826)
- Skill routing no longer fires on subagent hand-backs or on a passing mention of "code review". (#4831)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant