/ship can finish when its docs audit fixes a reviewed doc after the last review round (GST-3532) (#4708)

/ship no longer gets stuck when its last-step docs audit corrects a line
in a doc the review read, after the PR's last allowed review round.

Why: gbrain#10059 had to skip its /ship record to land, because the only
fix /ship offered was a third review round, which the two-round limit
forbids.

Nothing to do: the next /ship run asks for one small read of the audit's
change on its own.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/specialist-batched#1 reader=testing
Review-Finding: p1/red-team#1 reader=red-team
Review-Finding: p1/red-team#2 reader=red-team
Review-Finding: p2/outside-voice#1 reader=outside-voice
Review-Finding: p2/adversarial-native#1 reader=adversarial-native
Review-Finding: p2/adversarial-native#2 reader=adversarial-native
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-22 15:25:28 +00:00
1 parent a88cc7c1be
commit 4ae9ec7b00
18 files changed
+274 -21

No files matched your search

+4 -4
View File
@@ -105,8 +105,8 @@ branch's copy (a PR cannot raise its own cap), prints one `DOCS_CAP: <path> <byt
(`DOCS_CAP: none declared` without any) and exits 1 on any `over` or absent file: a
blocked audit, repaired by trimming that file, never by raising the cap. Then save for Step 16 only post-child hashes (rerun the Prepare `snapshot`
with only `--out <audit-id>-post.json` changed and `--pre <its Prepare snapshot>` added,
plus, on a re-audit, `--carry <its -post.json>` for each earlier audit of this run that saved one and `--carry-stopped <its Prepare snapshot>`
for each that stopped before its post snapshot, so receipt write resets every audit's files; Step 16 `compare`s it; never type hashes), status, and keep the `<audit-id>-result.json` and private `<audit-id>-documentation.md`
plus, on a re-audit, `--carry <the earlier audit's -post.json>`, or `--carry-stopped <its Prepare snapshot>` when it stopped before its post snapshot
(each flag once), so receipt write resets both audits' files; Step 16 `compare`s it; never type hashes), status, and keep the `<audit-id>-result.json` and private `<audit-id>-documentation.md`
that `result` wrote. That section file is the section's single source;
reports and Step 19 insert it by command (`cat`) where they can, never retyped or edited.
Save records once; cite files by path, never copying their content.
@@ -136,8 +136,8 @@ auto-commit or push unexpected child commits.
`RETRY_NOTE:` text verbatim.
Repeat Prepare using current inputs and a fresh id/snapshot, run the remaining
attempt, then validate it through Parent processing. When the stopped audit saved no post
snapshot, the re-audit's post snapshot adds `--carry-stopped <the stopped audit's Prepare snapshot>`, keeping
`--carry` for any earlier audit that saved one, so receipt write resets the stopped audit's edits too.
snapshot, the re-audit's post snapshot takes `--carry-stopped <the stopped audit's Prepare snapshot>` in place of
`--carry`, so receipt write resets the stopped audit's edits too.
3. Otherwise STOP before commit/publication and do not launch another child.
AskUserQuestion: stop for repair (recommended), or ship with the specific named
documentation risk. Only an actual user exception counts, never a default,
+4 -4
View File
@@ -103,8 +103,8 @@ branch's copy (a PR cannot raise its own cap), prints one `DOCS_CAP: <path> <byt
(`DOCS_CAP: none declared` without any) and exits 1 on any `over` or absent file: a
blocked audit, repaired by trimming that file, never by raising the cap. Then save for Step 16 only post-child hashes (rerun the Prepare `snapshot`
with only `--out <audit-id>-post.json` changed and `--pre <its Prepare snapshot>` added,
plus, on a re-audit, `--carry <its -post.json>` for each earlier audit of this run that saved one and `--carry-stopped <its Prepare snapshot>`
for each that stopped before its post snapshot, so receipt write resets every audit's files; Step 16 `compare`s it; never type hashes), status, and keep the `<audit-id>-result.json` and private `<audit-id>-documentation.md`
plus, on a re-audit, `--carry <the earlier audit's -post.json>`, or `--carry-stopped <its Prepare snapshot>` when it stopped before its post snapshot
(each flag once), so receipt write resets both audits' files; Step 16 `compare`s it; never type hashes), status, and keep the `<audit-id>-result.json` and private `<audit-id>-documentation.md`
that `result` wrote. That section file is the section's single source;
reports and Step 19 insert it by command (`cat`) where they can, never retyped or edited.
Save records once; cite files by path, never copying their content.
@@ -134,8 +134,8 @@ auto-commit or push unexpected child commits.
`RETRY_NOTE:` text verbatim.
Repeat Prepare using current inputs and a fresh id/snapshot, run the remaining
attempt, then validate it through Parent processing. When the stopped audit saved no post
snapshot, the re-audit's post snapshot adds `--carry-stopped <the stopped audit's Prepare snapshot>`, keeping
`--carry` for any earlier audit that saved one, so receipt write resets the stopped audit's edits too.
snapshot, the re-audit's post snapshot takes `--carry-stopped <the stopped audit's Prepare snapshot>` in place of
`--carry`, so receipt write resets the stopped audit's edits too.
3. Otherwise STOP before commit/publication and do not launch another child.
AskUserQuestion: stop for repair (recommended), or ship with the specific named
documentation risk. Only an actual user exception counts, never a default,
+3
View File
@@ -258,6 +258,9 @@ NS=$(~/.claude/skills/gstack/bin/gstack-no-stop list | sed -n 's/^NO_STOP_FILE:
If write refuses `review_targeted` for a docs claim added after the read, or after a granted fix round (add its `--grant`), rerun Step 9's plan with `--range-base <its head>
--targeted-ran <its targeted_patch_id>`; on `NEXT: targeted`, run that one reader (`pass`, its voices stage,
`verify --targeted-out .gstack/tmp/targeted.json`) and write again.
If write refuses `RECEIPT_DOCS_AUDIT_READ` (Step 14.5 edited a doc the review read), run its one scoped reader without asking:
it is not a review round and needs no grant. Give one reader the packet it names, save the clean record it prints the
shape of outside the worktree, and write again with `--docs-audit-read <record>`; a finding goes to the lane's Captain.
A Step 5 red-base pause adds `--base-red <pause file>` (a conditional receipt the queue
refuses, `QUEUE_RECEIPT_CONDITIONAL`). `--docs` reads the record Step 14.5 saved (`{status, scope[, exception]}`): the
receipt carries it as `docs`, and a `blocked` status without the owner's exception,
+3
View File
@@ -241,6 +241,9 @@ NS=$(~/.claude/skills/gstack/bin/gstack-no-stop list | sed -n 's/^NO_STOP_FILE:
If write refuses `review_targeted` for a docs claim added after the read, or after a granted fix round (add its `--grant`), rerun Step 9's plan with `--range-base <its head>
--targeted-ran <its targeted_patch_id>`; on `NEXT: targeted`, run that one reader (`pass`, its voices stage,
`verify --targeted-out .gstack/tmp/targeted.json`) and write again.
If write refuses `RECEIPT_DOCS_AUDIT_READ` (Step 14.5 edited a doc the review read), run its one scoped reader without asking:
it is not a review round and needs no grant. Give one reader the packet it names, save the clean record it prints the
shape of outside the worktree, and write again with `--docs-audit-read <record>`; a finding goes to the lane's Captain.
A Step 5 red-base pause adds `--base-red <pause file>` (a conditional receipt the queue
refuses, `QUEUE_RECEIPT_CONDITIONAL`). `--docs` reads the record Step 14.5 saved (`{status, scope[, exception]}`): the
receipt carries it as `docs`, and a `blocked` status without the owner's exception,