Skip to content

Doc-sync eval fixture allows /ship's format repair, so a dropped result field no longer fails ship-docsync-current - #4555

Merged
capy-ai[bot] merged 5 commits into
mainfrom
flaky-fix-2026-11-20-docsync-format-repair
Nov 20, 2026
Merged

capy-ai[bot] merged 5 commits into
mainfrom
flaky-fix-2026-11-20-docsync-format-repair

Conversation

@garrytan

@garrytan garrytan commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

The doc-sync eval fixture now allows /ship's one free format repair, so ship-docsync-current no longer fails when the audit child drops one field from its result line.
This fixes a flaky paid eval at its cause: the fixture's command list was missing the two commands /ship's documentation step uses for that repair.
Nothing to do.

What changed

The ship-docsync-current eval sometimes went red with "completion fields: missing documentation_section". The audit child had done its job, but its last line dropped one field. /ship answers that with a free format repair (gstack-docs-candidate repair-prompt, then result --repair-of), and the eval's fixture refused both commands, so the parent correctly stopped. The fixture now allows exactly those two command shapes, and the eval accepts a repaired line only after result --repair-of printed FORMAT_REPAIR: applied for that dispatch's own audit id. The repair agent is not counted as another writer dispatch.

Evidence
  • E2E Evals gate/full census 44432023197 paid-slice-4-a1 (main f79a890), ship-docsync-current red on completion fields: missing documentation_section; extra none, in-run rerun green. The child audited correctly (docs current), but its last line had no documentation_section; result printed FORMAT_REPAIR: format-only, and the parent stopped blocked because the fixture did not allow repair-prompt (its own report says so).
  • test/fixtures/docsync-format-repair-public.json replays that capture: the recorded red reproduces, the product classes it as repairable (checkDocsResult), and a reply checkDocsRepair accepts stands for the attempt. Negative controls stay red: no result --repair-of, a refused repair, an applied line from a plain result, a repair before its result, and a repair after a second dispatch. A repair prompt quoting document-release/SKILL.md is still not a dispatch.
  • Grammar: 4 admitted shapes, 15 refused (missing or reordered flags, repo or skills paths, relative paths, duplicate flags, extra flags, tilde path). Both new tests are red with main's observer and contract and green here.
  • The interface text change reaches every doc-sync paid case; this PR's E2E Evals run is their paid proof.
Why

The paid gate should fail only on real regressions. This case was red on census 44432023197 and green on its in-run rerun, so it was a fixture gap, not a product bug.

Blast radius

Only test code changes. That is the doc-sync fixture interface, its command observer and the eval's contract helper, which are used by the 13 ship-docsync-* paid cases and two free test files. No product code, prompt, threshold, trial count or case kind changed (read in git diff origin/main; the free tests below ran).

Pre-Landing Review

Two findings, both fixed. A testing reader noted that the repair check did not tie an applied repair to its own dispatch, so it now requires the result call's audit id to match that dispatch. A second-model reader then found that this check kept shell quotes on the audit id, so a quoted id would make a real repair look not applied. The check now splits arguments the way the fixture's command grammar does, and a quoted case was added. A narrower second read of those two fixes found nothing more.

Eval Results

ship-docsync-current focused paid run PASS 1/1 $0.94 at 4bad7a3 (EVALS_RUN_ID gsta668-docsync-current-4bad7a3), reused at 47f1c82: the paid prompt bytes are unchanged since then, and the later docsync-contract.ts change only alters the branch after a repair agent is found, which that run never reached (no repair agent in its transcript).

Documentation

Status: current. No documentation edits were needed.

Scope: the branch flaky-fix-2026-11-20-docsync-format-repair against base bd04289. It holds committed changes only, with nothing staged, unstaged or new. The changes are test helpers and fixtures for the doc-sync eval's one-time format repair (repair-prompt, result --repair-of) and one changelog fragment.

Documentation health:

  • docs/evals/detector-inventory.md: current. Its line citations for the ship-docsync cases still match the code.
  • docs/TEST_PORTFOLIO.md: current. No docsync case or file was renamed.
  • docs/pregate.md: current. It has no reference to the changed behavior.
  • changelog.d/docsync-eval-format-repair.md: current. It matches the diff.

Coverage debt: none. The repair flow is already documented in ship/sections/documentation.md.tmpl. Diagram drift: none.

Tests
  • bun test test/docsync-command-grammar.test.ts test/ship-document-release-dispatch.test.ts test/free-fixtures.test.ts: 242 pass, 0 fail at 47f1c82
  • bun run typecheck:test: 812 known diagnostics, none new
  • Free Tests CI run 44756522733 green at 47f1c82; platform qualification run 44757760232 green at 47f1c82
Agent notes

Agent notes

Daily flaky pass 2026-11-20 (GSTA-668, GST-3276), ledger entry ship-docsync-current (REPEAT 2026-11-19).

Approvals

No approvals recorded for branch flaky-fix-2026-11-20-docsync-format-repair.
Plan: exempt: flaky
Plan check: exempt flaky

REVIEW_LOOP: passes=2 blocking_found=1 deferred=0 noted=0 fixed=2 scope=frozen unbound=1 ledgers_read=3 fix_checks=1 dispatches=1
Gate edits: none detected (10 listed, 6 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

🤖 Generated with Claude Code

{
  "schema_version": 1,
  "pr": 4555,
  "head": "47f1c82035b68b262d0a8251b9bad6da99d166be",
  "version": "1.102.0.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 242,
      "fail": 0,
      "skip": 0
    }
  },
  "calls": 19,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/ship-4555",
  "head_tree": "5af27a2ac667c3581ccca5ff05be48fdab304c01",
  "product_patch_id": "none",
  "gstack_version": "1.102.0.0",
  "review_depth": {
    "depth": "light",
    "class": "tests",
    "runtime_lines": 0,
    "rules": "3e7e9d5d0a0d8879",
    "base": "bd0428974aaf2caa89e878e593c6505b35ad82ab",
    "registry": "bd0428974aaf2caa89e878e593c6505b35ad82ab",
    "gate_scan": {
      "tagged": 0,
      "head": "47f1c82035b68b262d0a8251b9bad6da99d166be"
    },
    "reasons": [
      "runtime=0"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @5af27a2ac667 (8 checks, current for 47f1c82035b6)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44756522733/attempts/1",
    "platform-qualification.yml/ios-swift-build: https://github.com/garrytan/gstack/actions/runs/44757760232/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=5af27a2ac667 tests=38507 skipped=98 runs=44756522733/1 profiles=ci-reuse/free-tests heads=47f1c82035b6 verified=2026-11-20T14:52:06.641Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, AGENTS.md, CONTRIBUTING.md, CLAUDE.md against the test-only diff"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 1,
    "deferred": 0,
    "noted": 0,
    "fixed": 2,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 3,
    "ledgers_read": 3,
    "unbound": 1,
    "dispatches": {
      "specialist": 1
    }
  },
  "gate_dispositions": []
}

Open in Capy

…lt field no longer fails ship-docsync-current

The fixture interface and observer admit gstack-docs-candidate repair-prompt and
result --repair-of, the two commands Step 14.5 runs after FORMAT_REPAIR:, and the
case accepts a repaired line once result --repair-of applied it. Census
44432023197 went red because the parent correctly stopped without them.

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

trunk-io Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 4 commits November 20, 2026 14:26
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
A format repair now stands for a doc-sync attempt only when the applied result call names that dispatch's audit id.

Review-Finding: p1/specialist-batched#1 reader=testing
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The format-repair check reads the result call's arguments the way the fixture grammar does, so quoted audit ids and paths still count.

Review-Finding: p1/outside-voice#1 reader=outside-voice
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 92c6c8a into main Nov 20, 2026
56 checks passed
@garrytan garrytan mentioned this pull request Nov 20, 2026
capy-ai Bot added a commit that referenced this pull request Nov 20, 2026
- Two /ship approval records stop needing workarounds. (#4549)
- For contributors: the paid auto-decide check counts a start step that ran while the skill loaded. (#4543)
- The destructive-command check closes three ways past its disk-wipe and force-push blocks. (#4534)
- A green CI run still counts when the repository's artifact storage is full. (#4536)
- `/cso` now audits repositories that track symlinks. (#4567)
- A doc-sync eval stops failing when the audit child drops one field from its result line. (#4555)
- The browse daemon no longer picks port 10080, which Chromium refuses to open. (#4554)
- Opted-in telemetry now says why a skill run ended, which coding agent and model family ran it, and whether an upgrade worked. (#4542)
- A preregistration with only its write-up and plain data now gets the write-up review: one reviewer, one round. (#4544)
- When owner rulings don't clear a stopped review, `gstack-review-read` now says which findings are left. (#4553)
- The prompt-routing hook now names your installed bug-fix skill on bug reports, alone, and never puts /verify ahead of it. (#4539)
- Owner rulings now close a stopped review whose findings were logged in a findings file. (#4568)
- /ship can finish after the owner accepts a stopped review's findings as open notes. (#4552)
- /ship no longer starts the full test suite on your machine when CI's earlier run can't be reused (GST-3277). (#4565)
- The prompt-routing hook no longer acts on words inside backticks. (#4566)
- In Claude Code, a gstack skill's start step now runs when the skill loads, so the model can't skip it. (#4509)
- gstack's telemetry backend only accepts writes through its own validated endpoint, and the community dashboard now counts real use. (#4537)
- gstack now says what it's adding before it adds a background job or a browser extension. (#4538)
- For contributors: every flaky pass in Free Tests is now recorded. (#4572)
- For contributors: Free Tests on pull requests starts its test shards one round of small jobs sooner. (#4570)
- Secret values written as `name=value` at the end of a path are now hidden. (#4571)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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