Skip to content

test(flaky): plan-design no-mockup Voices text, docsync private mkdir, autoplan-guard-pty journal on unverified allow - #3997

Merged
capy-ai[bot] merged 1 commit into
mainfrom
capy/plan-design-no-mockup
Nov 4, 2026
Merged

capy-ai[bot] merged 1 commit into
mainfrom
capy/plan-design-no-mockup

Conversation

@garrytan

@garrytan garrytan commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3997,
  "head": "6faff4160a1ecf2e6e4541ffaede7b22e830da5e",
  "version": "1.95.5.0",
  "base": "main",
  "gate": {
    "free": {
      "pass": 1588,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "free",
      "run": 41847952767,
      "attempt": 1,
      "tree": "19f927a36f1eeb9cf709509d9d4755a30c7aad32"
    }
  ],
  "session_kind": "unattended",
  "head_tree": "19f927a36f1eeb9cf709509d9d4755a30c7aad32",
  "product_patch_id": "none",
  "gstack_version": "1.96.0.0",
  "review_depth": {
    "depth": "light",
    "class": "tests",
    "runtime_lines": 0,
    "rules": "374e8bedc8e587f2",
    "base": "b244e6d11a6466650c5147cd7dc023859968c4b5",
    "registry": "b244e6d11a6466650c5147cd7dc023859968c4b5",
    "gate_scan": {
      "tagged": 0,
      "head": "6faff4160a1ecf2e6e4541ffaede7b22e830da5e"
    },
    "reasons": [
      "runtime=0"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @19f927a36f1e (7 checks, current for 6faff4160a1e)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41847952767/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=19f927a36f1e tests=35524 skipped=71 runs=41847952767/1 profiles=ci-reuse/free-tests heads=6faff4160a1e verified=2026-11-04T14:35:34.703Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, AGENTS.md, CONTRIBUTING.md, CLAUDE.md (base b244e6d1..6faff416), audit ship3997-docs-a1"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "ledgers_read": 1
  }
}

What changed

The captured reds now replay green: both repaired cases fail on main's picker and detector and pass on this branch

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
--- Before · before.txt · captured output
+++ After · after.txt · captured output
+$ bun test test/plan-review-board-feedback.test.ts   # this branch
+ 26 pass
+ 0 fail
+ 285 expect() calls
-$ bun test test/plan-review-board-feedback.test.ts -t "no mockup was approved"   # on main's picker
-error: Design outside-voices choice has no unambiguous declared native-only action
- 0 pass
- 1 fail
 
+$ bun test test/docsync-command-grammar.test.ts -t mkdir   # this branch
+ 1 pass
+ 0 fail
+ 30 expect() calls
-$ bun test test/docsync-command-grammar.test.ts -t mkdir   # on main's detector
-error: expect(received).toEqual(expected)
-- Expected  - 1
-+ Received  + 3
- 0 pass
- 1 fail
 

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 -p of 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

  • plan-design-with-ui-scope (fixture defect). CI has no image API key, so no mockup is ever approved, yet the declared Voices menu said "with the approved mockup as anchor". One run replaced that clause with "(text-only this time, since mockups weren't available)" and the picker refused it. The protocol now declares that one replacement; the captured question replays clean and six other variants are still refused.
  • ship-docsync-current (detector gap). The docs interface lets a private artifact live "in a new directory you create there", and gstack-docs-candidate snapshot does not create the folder for its --out. The parent ran mkdir -p <home>/ship2 as its own call and the detector refused it. The whole captured run now replays clean.
  • autoplan-guard-pty (load/isolation timing, diagnostic only). The first guarded call got an unverified allow (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.
  • ship-docsync-stale-after (correct refusal, no change). Run 41662815506 call 20 was grep with 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:

  • changelog.d/gsta279-flaky-pass.md: reviewed, accurate against the diff, not edited (changelog fragment).
  • README, AGENTS.md, CONTRIBUTING, ARCHITECTURE, docs/: no public surface changed, so no edits.

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

  • free (bun run test): carried from Free Tests run 41847952767 at tree 19f927a36f1e, 1588 files passed
  • Focused: plan-review-board-feedback 26 pass, plan-design-with-ui-fixture 38 pass, autoplan-guard-pty-fixture 8 pass, docsync consumers 637 pass / 1 skip, free-fixtures 11 pass, changelog-fragments 14 pass, typecheck and typecheck:test clean

🤖 Generated with Claude Code

Open in Capy

…, autoplan-guard-pty journal on unverified allow (GSTA-279)

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

trunk-io Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

E2E Evals: ✅ PASS (flaky: 1 case(s) passed on their one rerun)

[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 58/58 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 9m52s · cost $19.12 known + 2 of 82 trial(s) cost unknown
  FLAKY 1 (failed once, passed on its one rule-16 rerun) · 1 rerun execution(s), cost $0.99

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 pr; selected behaviors: 58, judges: 24. Deferred to scheduled/release coverage: 208 behaviors and 0 changed prompt files. Deferred checks did not run and receive no PR-pass credit.

Rule and judge shards
Shard Automated result Manual/unscored Executed Reused Status Cost
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-store 0/1 0 1 0 ❌ $0.9
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-completion 1/1 0 1 0 ✅ $0.9
e2e-hermetic/skill-e2e-hermetic-canary 2/2 0 2 0 ✅ $0.06
e2e-qa-callers/skill-e2e-qa-callers--review-exploratory-small-cli 1/1 0 1 0 ✅ $0.81
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-plan-checks 1/1 0 1 0 ✅ $0.91
e2e-skillify/skill-e2e-skillify 1/1 0 1 0 ✅ $0.07
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-late-input 1/1 0 1 0 ✅ $1.13
e2e-qa-functional/skill-e2e-qa-functional 2/2 0 2 0 ✅ $0.74
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-recovery 1/1 0 1 0 ✅ $0.38
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-after 1/1 0 1 0 ✅ $0.43
e2e-review/skill-e2e-review 1/1 0 1 0 ✅ $0.21
e2e/skill-e2e-workflow 3/3 0 3 0 ✅ $0.36
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-before 1/1 0 1 0 ✅ $0.41
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-failure 1/1 0 1 0 ✅ $0.67
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-small-cli 1/1 0 1 0 ✅ $0.79
e2e-qa-functional-fix/skill-e2e-qa-functional-fix 2/2 0 2 0 ✅ $0.99
e2e/skill-e2e-test-value 3/3 0 3 0 ✅ $0.73
e2e/skill-e2e-plan--plan-review-report 1/1 0 1 0 ✅ $0.82
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-unavailable 1/1 0 1 0 ✅ $0.93
e2e-session-intelligence/skill-e2e-session-intelligence 1/1 0 1 0 ✅ $0.06
e2e-qa-workflow/skill-e2e-qa-workflow--qa-bootstrap 1/1 0 1 0 ✅ $0.08
e2e/skill-e2e-investigate-owned-termination 2/2 0 2 0 ✅ $0.17
e2e/skill-e2e-ship-hook-refresh 1/1 0 1 0 ✅ $0.1
e2e/skill-e2e-investigate-owned-completion 1/1 0 1 0 ✅ $0.07
e2e-learnings/skill-e2e-learnings 1/1 0 1 0 ✅ $0.07
e2e-design/skill-e2e-design--plan-design-review-no-ui-scope 1/1 0 1 0 ✅ $0.09
e2e/skill-e2e-ship-hook-consent 2/2 0 2 0 ✅ $0.25
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-timeout-unsettled 1/1 0 1 0 ✅ $0.17
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-late-result 1/1 0 1 0 ✅ $0.35
e2e-plan-tune/skill-e2e-plan-tune 1/1 0 1 0 ✅ $0.13
e2e-browse/skill-e2e-bws 3/3 0 3 0 ✅ $0.16
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-asset 1/1 0 1 0 ✅ $0.28
e2e-docsync-spawned/skill-e2e-docsync-spawned 1/1 0 1 0 ✅ $0.47
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-launch-failure 1/1 0 1 0 ✅ $0.17
e2e-third-party-actions/skill-e2e-third-party-actions 2/2 0 2 0 ✅ $0.17
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-marker 1/1 0 1 0 ✅ $0.17
llm-judge/skill-llm-eval 24/24 0 24 0 ✅ $1.44
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-current 1/1 0 1 0 ✅ $0.97
e2e/skill-e2e-coverage-audit 2/2 0 2 0 ✅ $0.26
e2e-deploy/skill-e2e-deploy--setup-deploy-workflow 1/1 0 1 0 ✅ $0.11
Fail-closed reconciliation
-docsync-missing-asset
  slice 8  passed             36s  test/skill-e2e-bws.test.ts
  slice 8  passed             20s  test/skill-e2e-third-party-actions.test.ts
  slice 8  passed             26s  test/skill-e2e-plan-tune.test.ts
  slice 8  passed             30s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-timeout-unsettled
  slice 8  passed             28s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-missing-marker
  slice 8  passed             34s  test/skill-e2e-ask-user-question-format-compliance.test.ts
  slice 8  passed             30s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-launch-failure
  slice 9  passed             10s  test/skill-e2e-session-intelligence.test.ts
  slice 9  passed             37s  test/skill-e2e-ship-hook-consent.test.ts
  slice 9  passed             23s  test/skill-e2e-investigate-owned-termination.test.ts
  slice 9  passed             32s  test/skill-e2e-ship-hook-refresh.test.ts
  slice 9  passed             15s  test/skill-e2e-design.test.ts#plan-design-review-no-ui-scope
  slice 9  passed             25s  test/skill-e2e-investigate-owned-completion.test.ts
  slice 9  passed             23s  test/skill-e2e-qa-workflow.test.ts#qa-bootstrap
  slice 9  passed             12s  test/skill-e2e-learnings.test.ts
  slice 9  passed             14s  test/skill-e2e-diagram.test.ts
[test:paid] collector final outcomes: 76 executed, 0 reused; 75 passed, 1 failed, 0 manual accepted (unscored; no score-cache credit) (76 attempt records from 40 collectors; every record counts)
[test:paid] deselected testcases, zero credit (193):
[test:paid]    175  sibling case of a case shard (its own shard runs it)
[test:paid]     13  outside the run's case selection
[test:paid]      5  periodic-tier case (this lane runs gate)
[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 58/58 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 9m52s · cost $19.12 known + 2 of 82 trial(s) cost unknown
  FLAKY 1 (failed once, passed on its one rule-16 rerun) · 1 rerun execution(s), cost $0.99
[test:paid] flaky (rule 16: failed once, passed on its one rerun; green with this annotation):
  ⚑ ship-docsync-store  rule  FLAKY: failed in attempt 1 (paid-slice-2-a1), passed on its one rerun in attempt 1 rerun (slice 1 attempt 1); rerun cost $0.99; first failure: assertion: expect(received).toEqual(expected)
[test:paid] exercised-path map (shadow, non-blocking): 8 MAP_GAP line(s) over 53 executed case(s) with recorded commands
  MAP_GAP plan-review-report bin/gstack-plan-reality: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report browse/dist/browse: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report design/dist/design: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP ship-exploratory-late-input bin/gstack-review-plan: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP ship-exploratory-plan-checks bin/gstack-review-plan: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP ship-exploratory-small-cli bin/gstack-review-plan: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP ship-exploratory-unavailable bin/gstack-review-plan: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP test-audit-report-only design/dist/design: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
[test:paid] report: every planned shard accounted and passed

Sliced 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)

⚑ ship-docsync-store  rule  FLAKY: failed in attempt 1 (paid-slice-2-a1), passed on its one rerun in attempt 1 rerun (slice 1 attempt 1); rerun cost $0.99; first failure: assertion: expect(received).toEqual(expected)

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 flake-records-a1 artifact (docs/TESTING_INTERNALS.md#flaky-reruns).

Dispatched narrow screen (gstack-ship-queue ready --screen) of merge commit afe7305849f35e5ac0f1bc617dde9df9abf31c08.

@capy-ai
capy-ai Bot merged commit f86c949 into main Nov 4, 2026
42 checks passed
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