Repository navigation
test(flaky): plan-design no-mockup Voices text, docsync private mkdir, autoplan-guard-pty journal on unverified allow - #3997
Conversation
…, autoplan-guard-pty journal on unverified allow (GSTA-279) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
E2E Evals: ✅ PASS (flaky: 1 case(s) passed on their one rerun)76 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $17.98 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. Flaky: failed once, passed on its one rerun (rule 16)Each failed and passed on its rerun in run 41850017482 at the attempts named above. Logged for the daily flaky-fix pass in this run's Dispatched narrow screen (gstack-ship-queue ready --screen) of merge commit |
What changed
The captured reds now replay green: both repaired cases fail on main's picker and detector and pass on this branch.
Before/after as text: The captured reds now replay green: both repaired cases fail on main's picker and detector and pass on this branch
Why
Main backstop run 41817566885 (main b244e6d) had three paid rule cases fail once and pass their in-run rerun. Two of them failed because the fixture's own rules contradicted what the fixture lets the model do, so the case flaked whenever the model took the truthful or declared path. The third failed without keeping the evidence needed to diagnose it.
Blast radius
Only test fixtures and test helpers change. They are the Design picker in test/helpers/plan-review-board-feedback.ts (used only by the plan-design-with-ui cases), the doc-sync command detector in test/helpers/docsync-observer.ts (every ship-docsync case), and the autoplan-guard-pty diagnostics. The detector change admits one shape, a plain
mkdir/mkdir -pof one new folder directly under the fixture home, and 25 negative controls in test/docsync-command-grammar.test.ts (script ran) show the repository, protected roots, nested paths,.., symlinks, globs, variables, options and joined lines stay refused.Approvals
No approvals recorded for branch capy/plan-design-no-mockup.
Summary
gstack-docs-candidate snapshotdoes not create the folder for its--out. The parent ranmkdir -p <home>/ship2as its own call and the detector refused it. The whole captured run now replays clean.journal_lag) because Claude Code did not write its journal within the guard's 2-second window. The run kept four allows, so it never printed the journal. Any run short of four verified allows now prints it, plus each decision's time. The guard and its window are unchanged.grepwith a stray backslash-escaped quote, which the read-only grammar rejects as a shell escape.Test Coverage
All new code paths have test coverage: a captured-replay test per repaired case, each failing on main and passing here, with negative controls.
Tests ran: free 1588 (files, carried from Free Tests run 41847952767)
Pre-Landing Review
No issues found.
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen ledgers_read=1
Gate edits: none detected (14 listed, 4 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Outside review: openai/gpt-6.1-sol (host subagent), completed, no blocking findings.
Exploratory QA
Not applicable: test-only change; the free replays above are the probes.
Design Review
No frontend files changed — design review skipped.
Eval Results
No paid eval run for this PR; the free replays prove each repair on the captured events.
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.
Verification Results
No Step 8.1 obligations (no plan bound).
TODOS
No TODO items completed in this PR.
Documentation
Status: current. No documentation edits were needed.
Scope: base b244e6d to head 6faff41 on capy/plan-design-no-mockup, edit mode. The working tree is clean, with nothing staged, unstaged or untracked. The diff is 11 files, all tests, fixtures and test helpers plus one changelog fragment. The doc inventory covered 139 candidate docs.
Documentation health:
Coverage debt: none. The diff adds no commands, flags, env vars, skills or exports. Diagram drift: none, because no architecture entities changed. Banned terms: none (no list on main).
Test plan
bun run test): carried from Free Tests run 41847952767 at tree 19f927a36f1e, 1588 files passed🤖 Generated with Claude Code