Skip to content

fix: release stamps and a docs-audit edit after the last fix-check are no gate-class edit (GST-1702) - #4101

Merged
capy-ai[bot] merged 4 commits into
mainfrom
capy/release-stamps-and-a
Nov 7, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
capy/release-stamps-and-a

Conversation

@garrytan

@garrytan garrytan commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 4101,
  "head": "ff050059a9ebeeaa41618287f0f9687612174bbc",
  "version": "1.97.0.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 7,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "7688ac52dc1ed6e67739efcd865f2cd4d0c9ce85",
  "product_patch_id": "f0c83adaa82c3938c1b768b96057a84552fba7b2",
  "gstack_version": "1.97.0.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 36,
    "rules": "70895942bb8a8ee2",
    "base": "487506bd38f73cfc33454b8bcb1ad25b74994220",
    "registry": "487506bd38f73cfc33454b8bcb1ad25b74994220",
    "gate_scan": {
      "tagged": 0,
      "head": "ff050059a9ebeeaa41618287f0f9687612174bbc"
    },
    "reasons": [
      "gate-class",
      "runtime=36"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "warn @7688ac52dc1e (8 checks, current for ff050059a9eb)",
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/ and README.md (docs/review-policy.md, docs/ship-policy.md, docs/troubleshooting.md checked; changelog.d fragment reviewed)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 2,
    "deferred": 0,
    "noted": 5,
    "fixed": 2,
    "scope": "frozen",
    "fix_checks": 2,
    "rounds": 4,
    "ledgers_read": 5,
    "dispatches": {
      "specialist": 3,
      "red-team": 1
    }
  }
}

What changed

gstack-review-plan --post-review --last fix-check --range-base <fix-check commit> now reads the edits since the last fix-check with the receipt's classifier, docsChangeSince. Release stamps under the base policy's stamp rule plus plain docs plan NEXT: done; a docs claim on a targeted-class diff plans NEXT: targeted; anything else keeps the old stop.

Image: none (CLI change with no visible surface; text before/after below).

Before / after for GBRA-341's shape (stamps plus a docs-audit line after a granted fix-check)
  • before: NEXT: stop (… the fix-check edited a gate-class path …)
  • after: NEXT: done (the edits after the last fix-check <sha> are plain docs and release stamps (docsChangeSince), no gate-class edit (GST-1702) …)
  • still stops: any non-stamp line in a stamp file, any code or test edit, an executable, symlink or gitlink file in the range, and a commit whose message the gate scan tags as a CI skip marker.

Why

"GBRA-341 needed a second owner grant and a fix-check on a 39-line stamp delta" (gbrain #8705). The receipt already carried that delta after #4099, and only the plan disagreed. Now the plan and the receipt use the same classifier, so a stamp-only or docs-only tail after the last fix-check no longer costs an owner grant.

Tests

test/review-plan-post-review-stamps.test.ts (failing first on main: 4 of 5 failed at the plan step, the negative control passed): stamps plus plain docs (write binds and plan done), stamps alone, a real field in plugin.json or a code line in the behavior-change file still stops, a numeric docs claim on a money-class PR plans the targeted read (write still refuses), and the same claim on a PR with no targeted class is done.

Blast radius

Only bin/gstack-review-plan changes, and only on the --post-review --last fix-check path with a readable fix range; every refusal (unreadable range, unreadable raw diff, unavailable gate scan, a code verdict) falls back to the pre-change forced stop. Evidence: script ran, test/review-plan-post-review-stamps.test.ts 7/7 and test/review-plan-cli.test.ts 27/27, and CI run 42328030770 green at ff05005. lib/ship-receipt-depth.ts is unchanged.

Approvals

Approved: yes (record r-a0e756004aa9). The full approval record stays private: this repository is public or its visibility is unknown.

Summary

A lane that restamps VERSION, package.json and plugin.json and takes a docs-audit line after its last granted fix-check hit a stop that asked the owner for another grant. The post-review plan now classifies that tail the way the receipt does and plans done (or the one targeted read). Review found two ways the carry could hide a real edit (an executable docs-named file and a skip-CI commit); both now refuse the carry and have regression tests. The Windows shard needed the executable bit set through the index.

Test Coverage

Coverage: 75% of changed paths have a test (6 of 8), 62% value-weighted, from Step 7 at afcead8; the review round then added two regression cases (executable docs file, CI-skip commit), and the Windows fix makes the executable case hold where fs mode is not recorded.
Tests: 5 → 7 in test/review-plan-post-review-stamps.test.ts (+2 new).
Test value: 2 tests written, 0 rejected by the authoring gate, 0 existing tests extended, 1 path weakly covered.
Proposed (not written): an unresolvable --range-base row expecting the old stop; a --targeted-ran variant of the money case expecting done.
Tests ran: focused 7

Pre-Landing Review

Pass 1 (full panel): specialists NO FINDINGS; Red Team 1 informational (skipped). Step 11: outside voice (openai/gpt-6.1-sol via host subagent, completed) found 2 blocking carry bypasses, both fixed in d489c5c with red-first tests; native adversarial 4 findings, all below the floor. Fix-check at d489c5c: 1 informational. Granted fix-check at ff05005 (one-line Windows test fix): 1 informational.
REVIEW_LOOP: passes=2 blocking_found=2 deferred=0 noted=5 fixed=2 scope=frozen ledgers_read=5 fix_checks=2 dispatches=4
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)
Outside review: completed (openai/gpt-6.1-sol), 2 blocking findings, both fixed.

Review notes

Below the blocking floor; recorded here and not fixed in this PR.

  • INFORMATIONAL bin/gstack-review-plan:247 --range-base is not checked against the newest logged review-fix-check commit.
  • INFORMATIONAL bin/gstack-review-plan:255 the GST-1702 reason prefix also prints when the plan still stops; an unused grant is silent.
  • INFORMATIONAL test/review-plan-post-review-stamps.test.ts no case for a base merge after the fix-check, a wrong --range-base, grant plus stamps, or lean mode.
  • INFORMATIONAL bin/gstack-review-plan:251 the new refusals read the whole fix-check..HEAD range, so a main merge after the fix-check that brings an executable file or a CI-skip commit gives a false stop (fails closed).
  • INFORMATIONAL lib/ship-receipt-depth.ts:636 (outside the diff, GSTA-370) the carry detects executables by tree mode only; a shebang docs file at mode 100644 under core.fileMode=false still carries as docs.

Exploratory QA

Two functional smoke probes ran at afcead8 and passed: pass 1 planning, and a code edit after a fix-check keeping the old stop. Both are superseded by the later fixes and were not rerun; the fixes are covered by the regression cases above and CI at ff05005.

Design Review

No frontend files changed — design review skipped.

Eval Results

No prompt-related files changed — evals skipped.

Review bot comments

No review bot comments.

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.

Issues

Refs s11/outside-voice#2

Verification Results

No plan-specific verification items (bug fix, no plan bound).

TODOS

No TODO items completed in this PR.

Documentation

Status: updated. One factual fix, no blockers.

Scope: base e4b1e34 to head d489c5c plus the unstaged changelog.d fragment. Selected files: bin/gstack-review-plan, docs/review-policy.md, changelog.d/capy-gst-1702-post-review-stamps.md and test/review-plan-post-review-stamps.test.ts. I also checked the docs that mention gstack-review-plan: ship-policy, troubleshooting, ship-budget and model-policy.

Documentation health

  • docs/review-policy.md: Current. The GST-1702 paragraph and transitions row match the code.
  • docs/ship-policy.md: Updated. The behavior-STOP paragraph now names the stamps-and-docs-after-fix-check exception (GST-1702).
  • docs/troubleshooting.md: Current.
  • changelog.d/capy-gst-1702-post-review-stamps.md: Current (not edited, by scope).

Coverage debt: the post-review stamp and docs carry has reference coverage only (review-policy, ship-policy and the --help text) and no how-to. That is a common gap, not a critical one. No diagram drift.

Test plan

  • bun --no-env-file --config=/dev/null test --timeout=60000 test/review-plan-post-review-stamps.test.ts: 7 pass, 0 fail (finish lane, ff05005)
  • CI free-tests run 42328030770 at ff05005: green, carried (36105 tests)

Open in Capy

…e no gate-class edit (GST-1702)

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

trunk-io Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits November 7, 2026 01:37
The GST-1702 carry no longer applies when the range after the fix-check holds an executable, symlink or gitlink file, or a commit whose message the gate scan tags as a CI skip marker (RH-14); both still stop. Two regression cases in test/review-plan-post-review-stamps.test.ts.

Review-Finding: s11/outside-voice#2.1 reader=outside-voice
Review-Finding: s11/outside-voice#2.2 reader=outside-voice
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…gment wording

Step 14.5 documentation audit fix (docs/ship-policy.md) and the prose-lint rewording of the changelog.d fragment.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…able-docs case holds on Windows

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

Development

Successfully merging this pull request may close these issues.

1 participant