Repository navigation
fix(ship): a cleared remote gate for HEAD's exact tree satisfies a lane whose inventory refuses that tree (GST-1688) - #4098
Merged
Conversation
…ne whose inventory refuses that tree (GST-1688) When a ship_lanes_from inventory refuses HEAD's tree (inventory_failed) and .gstack/tmp/pregate.json verifies for that exact tree with the remote gate's own report for it, record-ci --remote-gate-stands-in records the lane as source=remote_gate and accept prints a CI_CARRY: remote_gate line naming the receipt. A gate for any other tree still stops, with a CARRY_DIAGNOSIS line. A run whose tree.json lists no files now says to dispatch a fresh full run. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
… (bin shebang spawns; run 42302497169) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p2/specialist-batched#1 reader=red-team Review-Finding: p2/specialist-batched#2 reader=testing Review-Finding: p2/specialist-batched#3 reader=testing Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ar within 24h (review fix-check) Review-Finding: p4/outside-voice#2 reader=outside-voice Review-Finding: p4/adversarial-native#4 reader=adversarial-native Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This was referenced Nov 7, 2026
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
A cleared
pregate.json/remote_gatereceipt for HEAD's exact tree now satisfies a /ship lane whoseship_lanes_frominventory refuses that tree. accept and finish printCI_CARRY: remote_gate label=<lane> receipt=…naming the substitution, and the ledger records the lane assource=remote_gate. A CI run whose tree.json lists no files now says to dispatch a fresh full run.Why
gbrain's inventory refuses any tree that changes its CI-reuse files, so accept stopped with
inventory_failedeven aftergstack-pregate --remotecleared the identical tree, and every such PR needed--no-lanes-approvedplus a manual approval (GBRA-345). The Captain ruled on GST-1688 that a verified remote_gate receipt for the exact same tree satisfies the mapped lanes, and that the tree check never loosens.Blast radius
The change touches record-ci, carryLane, accept and finish, and it runs only on a path that used to stop. The stand-in refuses unless the tree matches, base and policy name
origin/<base>@, verify passes, the receipt reports tests above 0 without a stamp-only substitution, and the clear is under 24h old; 13 tests in test/ship-accept-remote-gate-lanes.test.ts exercise each refusal through the real bins (script ran).Approvals
Approved: yes (record r-1427d4aa574f). The full approval record stays private: this repository is public or its visibility is unknown.
Summary
Lanes that gbrain's inventory refuses on purpose now carry from the remote gate that already cleared the same tree, instead of stopping for a manual approval. Commit 746121d also added two refusals the changelog fragment does not mention: base and policy must both name
origin/<base>@, and a clear older than 24h never stands in.Test Coverage
Coverage audit before the review fixes: 11 of 16 changed paths had a strong test. The review fixes added negative controls for a stamp-only substitution, 0 tests, a clear with no time, a look-alike stderr line, a finish case, and the base, policy and 24h refusals.
Tests ran: test 1621 (files), carried from CI run 42312911924/1
Pre-Landing Review
Step 9: 3 issues, 3 auto-fixed (lib/ci-carry.ts look-alike record line; stand-in refusal tests; finish test). Step 11: native adversarial and outside voice (openai/gpt-6.1-sol, completed). OV2 and native Low 4 fixed in 746121d under grant a-f2e343299dec; the granted fix-check found nothing blocking.
REVIEW_LOOP: passes=1 blocking_found=2 deferred=0 noted=2 fixed=4 scope=frozen
Gate edits: none detected (1 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Review notes
gstack-pregate clear --receipt <file>(a hand-written PREGATE_REMOTE file) can stand in for a lane.inventory_failedcannot tell a deliberate refusal from a crashed or missing inventory tool.record-ciusage text does not mention--remote-gate-stands-in.--policy-from headfail the policy guard, so a PR that changes CI-reuse files and adds a lane cannot use the stand-in.origin/<base>@prefix, not the sha, so a record against an older origin/main can stand in for up to 24h.Exploratory QA
Functional smoke: the new test file passed (capture 001); a look-alike remote_gate line read as a stand-in before the fix (capture 002) and as the CI carry after it (capture 003).
Design Review
No frontend files changed — design review skipped.
Eval Results
No prompt-related files changed — evals skipped.
Scope Drift
Scope Check: CLEAN
Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). Fix: add "Plan: " to the PR body, or run /autoplan.
TODOS
No TODO items completed in this PR.
Documentation
Status: current. The docs already describe the GST-1688 remote-gate stand-in accurately; no edits were needed.
Scope: candidate g1688d2, base 0c41ced to head 746121d, with 9 committed files and no staged, unstaged or new files. I checked the new docs/pregate.md section (#ship-lanes-remote-gate) and the changelog.d fragment against lib/remote-gate-stand-in.ts, lib/ship-bin-common.ts, lib/ship-release.ts, lib/ci-carry.ts and bin/gstack-evidence, and searched other docs for record-ci, remote_gate and inventory_failed references.
Documentation health:
Coverage debt:
gstack-evidence record-ci --remote-gate-stands-inhas a reference entry only, in pregate.md and the bin header, with no how-to. That's a common gap and acceptable for an internal flag. No critical gaps.Diagram drift: none.
Test plan