Repository navigation
Conversation
…ested fixes no longer force a second review loop (GST-407, GST-384, GST-391) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-triggers Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # ship/DRIVER.md # ship/DRIVER.md.tmpl
…ds; trim elsewhere Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
comparePath returns same only when every hunk sits where the base change puts it (patch-ids ignore positions) and treats a file-mode change as changed; the scoped-review packet says when a fence is truncated; --docs-result must be the posted audit's result; the --context-reviewed record goes beside the packet, outside the worktree. Negative controls for each. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
A test edit routes as tests= only when it adds lines with no gate tag; a removed or changed line or an unreadable test diff goes through the full loop. Diffs skip textconv. A hunkless patch (binary, empty, mode-only) is same when its patch-id matches. Without --reviewed-base test files route as before. finish's packet path and attempt's state directory have fallbacks. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ew is release metadata (GBRA-251) gateEditedPaths reads removed lines only inside hunks; carry refuses when a path listing fails; docs freshness stops on a failed listing; attempt counts an unreadable state file. releasePaths includes stamp_files paths whose edit is a version swap under stamp_patterns. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…t state A test-only edit with no gate tag gets the scoped fix-check of its test hunks instead of a lanes-only rerun. Packet write failures print a STOP or RECEIPT_CARRY_REFUSED. attempt's allowance uses an exclusive create. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…t diff outside context paths The attempt STOP no longer echoes the audit child's fix text. A scoped-review carry now requires the product patch-id without the context paths to match at both heads. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ch; name-only test globs only in test dirs A scoped-review packet section over 200 lines sends that path to the full loop instead of a truncated packet. The docs-result path match is exact. test_*.py, *Test.java and similar count as test code only under a test directory. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…roubleshooting (docs-a-1) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…like ship-release (run 41193336209) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-triggers Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # bin/gstack-ship-receipt
… and repair when a pass's tree moved (GST-430) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e receipt fails closed on a failed diff (GST-448) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… review; carry --dry-run writes no packet (GST-442) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…the --docs-requested fix; trims keep the cap (GST-442, GST-444) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… temp and diff refusals - A notes-only pass is recorded clean only when every finding is fixed, or noted or deferred below the blocking floor (never CRITICAL or blocking), by its logger-stamped action, and the findings account for the claimed issue and critical counts (GST-430). - The preflight scoped carry route commits and pushes the base-merge fix before writing the packet (GST-442). - patchId refuses by name on an unwritable TMPDIR; the tree receipt names why its diff failed (GST-448). - Step 16 stage 3 spells out --docs-requested with its --docs-result (GST-444). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ng reads UNVERIFIED (red-team, pass 1) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…n rule, stale patch-id dirs swept - deriveFromFindings stamps gate rows with the session kind before deriving status, so a findings file cannot dispose of a gate finding the unattended logger forces open (outside-voice#1). - reviewFreshness reads a claimed row's findings with isOpenByAction, the rule the notes-only rewrite uses; noted and deferred clear a finding only when it is marked blocking: false and is not CRITICAL. - patchId sweeps gstack-patch-id-* directories over an hour old that a killed carry left in TMPDIR. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ion; resolved gate, skipped and below-floor actions stay CURRENT - isOpenFinding treats action 'open' (the logger's forced-open stamp) as open before a row's status or disposition. - reviewFreshness flags a claimed clean row only for an 'open' action or a CRITICAL or blocking deferral or note, so interactive kept and restored gates, skipped advisories and INFORMATIONAL deferrals read CURRENT as before. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…the git dir; changelog matches the review-log floor Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… finding reads UNVERIFIED (pass 2 red-team) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…fusal (docs-d-1 audit) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…hip-workflow-clarity pin) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…timeout (60 s); pregate literals check Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Resolve the tracking twin by refs/remotes/<remote>/<ref> and only for a bare branch name, keep a local base that is ahead or diverged, quote the prSized stop's base and name the fork case, and have every Step 9 entry create, exclude and clear .gstack/tmp/targeted.json. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The fix-check found that keeping a local base ahead of origin left unpushed base commits out of the gate scan while review-plan listed them. The tracking branch now wins whenever it shares history with HEAD, an explicit origin/main reads refs/remotes/origin/main, the preflight also stops when the diff lists fewer files than the PR, and the Step 9 exclude line survives a missing .git/info and an exclude file without a final newline. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
GST-464 brief-identity check: every reviewer brief lib/review-brief.ts cuts from ship/sections/review-army.md and adversarial.md stays byte-identical to the bodies the L and GST-257 replays admitted; only lead instructions outside the cut spans changed. The check is a test CI runs. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… GST-464 The targeted-record line follows the PASS_HEAD/RANGE_BASE sentence instead of splitting it (test/review-fix-range.test.ts pins that sentence). The brief-body check still holds: every reviewer brief is byte-identical. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-triggers Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # bin/gstack-ship-receipt
The merge commit b10e2db wrote a truncated copy of the file. This is the three-way merge of both sides with the refused() union: main's codes plus RECEIPT_CARRY_SCOPED_REVIEW. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…into gst-430-notes-only-pass
…t-464-receipt-targeted-base
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ound) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tops preflight) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…h (GST-511) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ted-base Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # bin/gstack-docs-candidate # bin/gstack-ship-receipt # lib/ship-release.ts # ship/DRIVER.md # ship/DRIVER.md.tmpl # ship/SKILL.md # ship/SKILL.md.tmpl # test/fixtures/golden/agy-ship-SKILL.md # test/fixtures/golden/claude-ship-SKILL.md # test/fixtures/golden/codex-ship-SKILL.md # test/fixtures/golden/factory-ship-SKILL.md # test/size-ledger/ship/gst-430-notes-only-pass.json
…e main merge Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…fter the Step 9 targeted-record sentence Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…nto capy/gst-511-skip-an Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ted-base Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # test/review-packets-removed.test.ts
…nto capy/gst-511-skip-an
capy-ai
Bot
changed the base branch from
gst-464-receipt-targeted-base
to
main
November 3, 2026 01:42
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
Contributor
|
Superseded by wave #3852 (v1.93.33.0), which landed #3705 and #3795 together. #3795 carries its own version of the default-base rule, so most of this PR is now on main. Two pieces are still missing, and they move to a new small PR from main: (1) |
capy-ai Bot
added a commit
that referenced
this pull request
Nov 3, 2026
…t be read (#3718 follow-up) (#3913) * fix(ship-preflight): stop when ls-remote origin HEAD fails instead of guessing the default branch Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(ship-preflight): a remote HEAD with no branch falls back to the default-base order; docs name the whole order Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * changelog: say when the default-base order still reads the local origin/HEAD Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --------- Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
14 of 16 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
lib/default-base.ts: when no base is given, a remote's HEAD counts only when it names a branch other than the checked-out one. The branch is compared by its full ref, so a tag with the same name can't hide the match. Past it: the PR's base fromgh pr view, for a same-repository PR only (stopped after 5 seconds, failures ignored), then<remote>/main, then<remote>/master. A detached HEAD keeps the remote's HEAD.resolveBaseBranch(ship-queue, ship-receipt, pregate, checks, banned-terms and the other callers), gate-diff'sdefaultBase, andgstack-diff-scope's bash chain, where a background watchdog bounds the gh call instead of thetimeoutbinary. When nothing resolves after skipping origin/HEAD, gate-diff exits 2 withGATE_ERROR=no_base … target=origin/<branch>, diff-scope printsSCOPE_ERROR=no_baseand exits 2, andresolveBaseBranchsays why on stderr; every reader oforigin/<base>then refuses.git ls-remote --symref origin HEAD, so a local origin/HEAD naming the PR branch can't stop a PR. Whenls-remoteitself fails, preflight stops withSTOP: git ls-remote origin HEAD failed: ...; restore access firstinstead of skipping the check.docs/troubleshooting.md(GATE_ERROR=no_base,PREGATE_RECEIPT_INVALID),docs/eval-calls.mdanddocs/eval-models.mddescribe the new chain. Changelog entry:changelog.d/capy-gst-511-skip-an.md(VERSION is stamped at merge).Why
Clones made by Capy's PR flow can point origin/HEAD at the PR branch. The base then became the PR branch itself. gate-diff and diff-scope with no argument diffed the branch against itself and passed an empty diff, and readers of that base made the review planner fail closed to full depth on gstack-evals#96 (GEVA-78).
GStack Minder assigned it as GST-407: "Take it as the next PR after #3705: resolve the base from ship policy or the PR's base ref, not from origin/HEAD. Fail closed only when no base can be found, and say so in the output."
This is a fix to an already-diagnosed problem, so it went straight to build under the crew's fix-lane exemption: "Plan-first exempts S1 emergencies (broken install or upgrade, red main, a security bug) and fixes to an already-diagnosed, audited problem list."
Stacked on #3705 (base
gst-464-receipt-targeted-base).Security read
lib/default-base.tsandbin/gstack-diff-scopenow callgh pr view(a network call through the user's own gh auth) when origin/HEAD is unset or names the checked-out branch. The result is used only as a base branch name, and only for a same-repository PR, so a fork can't choose the base. No new environment variables, secrets, permissions, workflows or dependencies.Tests
test/diff-scope.test.ts,test/gate-diff-cli.test.ts,test/gstack-ship-policy.test.ts: a clone whose origin/HEAD names the checked-out branch scopes and lists the PR againstorigin/main; the PR base from a gh stub; a tag named like the branch; the default branch's own work; a detached HEAD; the fail-closed line when no other base exists.test/ship-preflight.test.ts: a remote whose HEAD names no branch, beside a local origin/HEAD naming the feature branch, no longer stops the ship; a failedls-remotestops it before merging (red before the fix).Review notes (informational, not looped on)
scripts/resolvers/utility.ts:68: BASE_BRANCH_DETECT skill prose,retroandtest-audittemplates,next-versionandfirst-task-detectstill read raw origin/HEAD first. Skill prose needs its own change.lib/pr-shots.ts:67still takes origin/HEAD first: deferred as Deferred review finding: lib/pr-shots.ts:67 — pr-shots still takes origin/HEAD first, so in a GST-511 clone its before i #3733.test/diff-scope.test.ts:476: a repo whose default isdevelopwith no origin/main or master, checked out on develop, now exits 2SCOPE_ERROR=no_basewhere it used to printSCOPE_BACKEND=true.lib/default-base.ts:43: with origin/HEAD unset, the PR base now wins over origin/main, and the gh call can add up to 5 seconds. Results depend on gh being authenticated; every path fails closed or diffs against a wider base.lib/default-base.ts:44: a cross-repo PR with a non-main base (e.g. develop) resolves to main. TheisCrossRepositoryfilter is untested because the gh shim ignores its arguments (same gap inbin/gstack-diff-scope:45).lib/pregate/remote-receipt.ts:232: the PR base can set the stamp-rule base; the base-mismatch check still refuses a mismatch.baseMismatchFixsuggestsset-headonly when origin/HEAD is unset.gstack-pregate,gstack-checks,gstack-ship-queue,gstack-ship-receipt,gstack-review-dispatch,gstack-restampandgstack-tree-receiptstill says "default: origin/HEAD's branch, else main".test/ship-preflight.test.ts:75hangs under a PATH-scanning git wrapper (Capy's shared-tree guard for subagents) because the stub finds git withcommand -v. It passes on CI, Ubicloud and a plain shell.Documentation
Status: current. This re-audit made no edits. The working tree already carries the first audit's corrections to 3 authored docs, and each one checks out against the code at
1e103659a049. No blockers.Scope: candidate
docs-gst511-20261031T193845, base76126ce7507b(gst-464-receipt-targeted-base), head1e103659a049oncapy/gst-511-skip-an. That covers 13 committed files (lib/default-base.ts, bin/gstack-diff-scope, bin/gstack-gate-diff, lib/gate-diff/git.ts, lib/pregate/remote-receipt.ts, lib/ship-policy.ts, lib/ship-preflight.ts and their tests), no staged files, 3 unstaged doc edits and 1 new fragment (changelog.d/capy-gst-511-skip-an.md, owned by the parent). I checked each unstaged edit against the code:noDefaultBaseLine, the gate-diffGATE_ERROR=no_base ref=<remote>/HEAD target=<remote>/<branch> fix=git remote set-head <remote> <base>line, diff-scope's#line,resolveBaseBranch's stderr line and its callers (gstack-pregate, gstack-ship-receipt, gstack-ship-queue, gstack-eval-plan), andbaseMismatchFix. I also searched the repo fororigin/HEADand default-base wording in docs, README, CONTRIBUTING and the ship and review templates. No banned-terms list exists on the base.Documentation health:
GATE_ERROR=no_basecause and fix, and the wider set-head hint underPREGATE_RECEIPT_INVALID, match the code)--basedefault matchesresolveBaseBranchthrough gstack-eval-plan)--basedefault)gstack-worktree-auditentry in docs/troubleshooting.md: Current (that tool keeps its own unchanged chain)Documentation Debt
origin/HEAD. Both need "unless it names the checked-out branch, then the PR's base, origin/main or origin/master". Not edited because lib/review-depth.ts classes the file as agent prose, so an edit would reopen code review past the cap.git symbolic-ref refs/remotes/origin/HEADfirst), retro/SKILL.md.tmpl:514 and test-audit/SKILL.md.tmpl:56 still take origin/HEAD first. A checkout whose origin/HEAD names the PR branch would have those skills compare the branch with itself. This is generated or skill prose, so it needs a separate change.--basenotes. Its explanation lives only in lib/default-base.ts's header.STOP: git ls-remote origin HEAD failed: …; restore access firsthas no troubleshooting entry. The ship skill's generic STOP rule covers it.