Fix /ship review counting, cleared reviewer notes and security findings in the posted PR description (GST-3343) (#4595)

/ship no longer stalls on summary notes a reviewer already cleared,
counts only full review passes as rounds, records a round approval
relayed during a stopped run, and keeps security findings out of the
ship record it posts in the PR description.

These four bugs each stopped a real /ship run until someone edited a
record by hand; the goal is unattended shipping that finishes on its
own.

Nothing to do as a reader.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: s11/outside-voice#1 reader=outside-voice
Review-Finding: s11/adversarial-native#2 reader=adversarial-native
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-21 08:51:13 +00:00
1 parent 387a65c9a2
commit b281effa07
18 files changed
+178 -38

No files matched your search

+2 -2
View File
@@ -121,9 +121,9 @@ describe('gstack-ship-receipt history and stub', () => {
expect(h.stdout).toMatch(/^PR_REVIEW_ROUTE: final \(the PR had 1 full review round; this head gets a fresh full review/m);
expect(h.stdout).not.toMatch(/drift|recheck_blocked/);
const s = r.run('gstack-ship-receipt', ['stub', '--body', body, '--run', 'r2', '--review-loop', JSON.stringify({ ...loop, fix_checks: 1, rounds: 2 })]);
expect(s.stdout).toContain('RUN_STUB: run=r2 status=started rounds=2');
expect(s.stdout).toContain('RUN_STUB: run=r2 status=started rounds=1');
const after = r.run('gstack-ship-receipt', ['history', '--body', body, '--pr', '5']).stdout;
expect(after).toContain('PR_REVIEW_FLAGS: --prior-rounds 3 --prior-full 2\n');
expect(after).toContain('PR_REVIEW_FLAGS: --prior-rounds 2 --prior-full 2\n');
expect(after).toMatch(/^PR_REVIEW_ROUTE: read-only \(.*no fix round/m);
expect(fs.readFileSync(body, 'utf8').startsWith('## Summary\nprose\n')).toBe(true);
expect(r.run('gstack-ship-receipt', ['stub', '--body', body]).status).toBe(2);