Repository navigation
v1.91.296.0 fix(flaky): ship-docsync gates accept the docs helper's --help and git tag listings in a line of reads (GSTA-139 S1) - #3542
Conversation
…g listings in a line of reads (GSTA-139 S1) Gate edit. Five red ship-docsync-current/store parents (screen 40558235014, gates 40600731931 and 40643690306, screen 40627127462 and its rerun) each had exactly one refused Bash line: four joined gstack-docs-candidate --help onto a line of reads, one put git tag in one. v1.91.185.0 tried prompt clarity for the --help join and the slip recurred four times. The --help path prints usage and returns before touching Git or a file, so it now stands in a line of reads like a Git read (never pipe-fed, never after cd); operand-free git tag listings join the branch listings #3516 admitted. The fixture interface states both. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tag listings in a line of reads Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
E2E Evals: ✅ PASS13 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $6.28 rule/judge cost | reconcile exit: 0 Profile: pr / mode Rule and judge shards
Fail-closed reconciliationSliced lane: planner → duration-packed executors → fail-closed report. Behavior cases run a pre-registered 3-trial panel (PASS at 2/3 with no contract violation); a PASS 2/3 is shown with its failed trial, never as a clean pass. Reused results retain their original provenance and expiry. Dispatched narrow screen (gstack-ship-queue ready --screen) of merge commit |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
What changed
Replaying all 10 captured ship-docsync parents (5 red, 5 rerun) through the docs detector. On main, each red has exactly one refused line. With this change, none does.
Text before/after
Before (origin/main 4b8c03b):
git diff main HEAD; cat personal-note.txt; ls -la; find handbook; {home}/.claude/skills/gstack/bin/gstack-docs-candidate --help… echo ---; find handbook; {home}/.claude/skills/gstack/bin/gstack-docs-candidate --helpgit diff main HEAD; git rev-parse origin/main; {home}/…/gstack-docs-candidate --help 2>&1git diff main...HEAD; …; cat personal-note.txt | head -3; {home}/…/gstack-docs-candidate --helpgit rev-parse HEAD origin/main; git merge-base main HEAD; git tag; cat {home}/fixture-interface.md | head -5; ls {home}After (this branch): all 10 captures report
[](no tool failures).Why
The daily flaky pass (Garry, 2026-10-19: "we should have a flaky test fix pass every day that tries to fix flaky tests") found ship-docsync-store red twice after #3516 and ship-docsync-current red three times in 24 hours, each on "command outside declared docs observation interface". In every red trial the detector refused exactly one harmless line. The agent had asked the docs helper for its usage at the end of a line of reads, or had listed tags. v1.91.185.0 tried to stop the first slip with clearer prompt text and it came back four times, so the detector now accepts what is provably read-only instead.
Blast radius
The change touches only the free docsync detector and fixture interface under
test/helpers/, which judge the paid ship-docsync-* cases. It ships no product code. The widened forms are safe becausebin/gstack-docs-candidatemain() prints USAGE and returns before any Git or file call for exactly--help,snapshot --helpandcompare --help(lines 98–104 read), and an adversarial reviewer ran about 110 probes, a cross-family reviewer 199, with no accepted string that writes, runs anything else, reads a denied path or reachesgit tagwith an operand (script ran).Approvals
Source: gstack-approvals record for flaky-2026-10-28-docsync (display only; not an approval citation).
Summary
ship-docsync-current and ship-docsync-store kept going red on one refused line each. In four trials the agent ended a line of reads with the installed
gstack-docs-candidate --help. In one, it listed tags withgit tag. The detector now treats the candidate's help forms as a neutral read inside a line of reads, the same way it already treats Git reads, and it admits operand-freegit tag,git tag -landgit tag --listbeside #3516's branch listings. The fixture interface declares both. The 2026-10-27 backstop red (40515158924,toContainon documentation_section) ran on a tree from before #3516, which had already fixed it: its parent reported attempt 2's section and that test read attempt 1's.This is a gate edit. The docs detector now accepts more lines, and the test that pinned the joined
--helpas refused now expects it to be accepted.Test Coverage
test/docsync-command-grammar.test.tsreplays the five captured refused lines (onetest.eachrow per red trial, labelled with run, tree and capture sha256 prefix). Each line is accepted, and the same line followed by; git add app.tsis still refused. With the two helper changes stashed, seven of the file's tests go red; with them, the whole file is green.| sh,>redirect andcdforms of--help;snapshotandcomparejoined to reads;-h,--versionand--help snapshot; the~and foreign helper paths; the lifecycle helpers'--helpjoined to reads; and 13 tag writes or filtered listings.Pre-Landing Review
No blocking findings. REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=1 fixed=0 scope=frozen dispatches=1
Gate edits: 5 listed, 4 read, 0 findings. The relaxed assertion in
test/docsync-command-grammar.test.ts(the joined--helpwas expected refused, now accepted) is the intended gate edit, justified by the five replayed captures and the helper's--helppath.Adversarial pass (claude-opus-5-5, detector code): no blocking findings, about 110 probes. Outside voice (openai/gpt-6.1-sol): NO FINDINGS, 199 probes, 0 mismatches.
Review notes
test/helpers/docsync-interface.ts: the new sentence does not mention that--helpmay carry2>&1or2>/dev/null, which the detector accepts, and it only implies that the cd ban carries over from Git reads. Informational.test/helpers/docsync-observer.ts(docsComposedReadAllowed, unchanged behaviour): a trailing|| trueis stripped only on a standalone read, sogit status; <candidate> --help || trueis still refused. None of the captured lines uses it. It may be the next false red of the same kind. Informational.docsReadOnlyScope(unchanged):ls <CLAUDE_CONFIG_DIR>lists file names, though never their contents. This predates the branch. Informational.Eval Results
Focused paid rule trials at e967634 (one each, kind
rule, Claude Code 2.1.292 and Bun 1.4.2 as pinned in .github/docker/Dockerfile.ci): ship-docsync-current PASS ($0.84; its parent did join--helpontogit ls-files; git diff main HEAD;and the detector accepted it), ship-docsync-store PASS ($0.84). Total $1.68. An earlier launch aborted before any model call because EVALS_RUN_ID was unset ($0.00, 0 executed).Issues
Refs #3516
Documentation
Status: current. The audit made no documentation edits and found no blockers.
Scope: release diff 4b8c03b..d191629 on
flaky-2026-10-28-docsync(2 commits, 4 files:CHANGELOG.md,test/docsync-command-grammar.test.ts,test/helpers/docsync-interface.ts,test/helpers/docsync-observer.ts). No staged, unstaged or new files. The change is to the docsync test fixture's command detector and interface text only; no shipped command, flag or skill prose changed. Docs referencing docsync (docs/evals/detector-inventory.md,docs/evals/headroom-diagnosis-2026-10.md,docs/TEST_PORTFOLIO.md,ship/sections/documentation.md.tmpl) were read against the diff; entry-point docs were searched and hold no reference.Documentation health:
Documentation debt: none introduced. Coverage: no new public surface, so no critical or common gaps. Diagram drift: none. A pre-existing reference gap remains:
docs/TEST_PORTFOLIO.md's documentation contract row does not namedocsync-command-grammaras a deterministic owner.Test plan
bun test test/docsync-command-grammar.test.ts: green (seven tests go red with the helper changes stashed)bun test test/docsync-*.test.ts test/read-only-command-grammar.test.ts test/detector-corpus-ship-docsync-*.test.ts test/module-size-ratchet.test.ts test/ship-document-release-dispatch.test.ts test/touchfiles*.test.ts: 766 pass, 0 failbun run typecheck: 0 errors;bun run typecheck:test: 819 known diagnostics, none newgstack-pregate --remote --spend-cap 2 --timeout 2700 --allow-repo-commands): 10016 tests, 0 failed on tree 310b49a81983 ($0.05); macOS and Windows lanes cleared from this PR's CI