Skip to content

Release check's docs-audit tests accept /ship's step for a stopped docs audit (GST-3569) - #4731

Merged
capy-ai[bot] merged 4 commits into
mainfrom
fix/docsync-fixture-stopped-audit-flag
Nov 23, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
fix/docsync-fixture-stopped-audit-flag

Conversation

@garrytan

@garrytan garrytan commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

The release check's three ship doc-sync tests pass again when the model follows /ship's instruction for a docs audit that stopped before its snapshot.
Why: these tests have held the stable release since main 5962f0d; the test fixture left out the --run record /ship always passes, and its command checker didn't know the new snapshot flag.
Nothing to do: test-harness change only; product code is unchanged.

What changed

The release check went red on ship-docsync-recovery, -stale-before and -stale-after, so stable couldn't move. /ship's docs steps now tell the model to record a docs audit that stopped before its post snapshot with a new snapshot flag, and every trial that followed that instruction failed inside the test fixture, not in /ship. Two fixture gaps caused it. The fixture's own audit snapshot left out --run <invocation record>, which /ship's Prepare line always passes and the new flag requires, so the model's post snapshot was refused and it stopped as blocked. And the fixture's command checker didn't know the flag, so it called the command "outside declared docs observation interface". The fixture now passes --run like /ship does, and the checker accepts the flag with the same private-file rule as --pre. A new free test replays the two commands captured from the failing release check and a real snapshot sequence.

Why

A red release check blocks the stable channel, and main holds a security fix and several blockers that should already be on stable.

Blast radius

Only the paid ship doc-sync fixture and its free tests. All 13 doc-sync cases share the fixture; the added --run puts a run_id in their audit records, which /ship's own Prepare already does (ship/sections/documentation.md, Prepare step 3, read). Nine paid trials of the three red cases passed at the fix, all of them using the new flag.

Test Coverage

No new product code paths: the diff changes only test helpers, one new test, the Windows exclusion list and a release-note fragment. Tests: 1893 → 1894 (+1 new file). The new test's captured-command and replay checks fail on main's helpers (2 of 3 tests) and pass after the fix.
Tests ran: test 1774 (files, from CI)

Pre-Landing Review

No issues found. The second-model review was skipped by the review plan (code change with no numeric claims).

Exploratory QA

Smoke, 2 of 2 passed: the new regression test at HEAD, and the checker's refusal controls (relative, in-repo, non-JSON, skills-folder and /etc paths, missing value, misspelled flag). No plan checks are bound.

Design Review

No frontend files changed — design review skipped.

Eval Results

Paid proof, planned before launch: 3 trials each of ship-docsync-recovery, ship-docsync-stale-before and ship-docsync-stale-after at 8f97c23, which has the same fixture bytes as this head. Result: 9 of 9 passed, about $4. Before the fix, every trial of these cases at main 17afb68 or later in the release check's bisect failed.

Review bot comments

No review bot comments.

Plan Completion

Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches).

Verification Results

No Step 8.1 obligations: no plan is bound.

TODOS

No TODO items completed in this PR.

Documentation

Status: current. The docs needed no changes.

What was checked: the 6 committed files from base ccd80de to head aa265c3 (no staged, unstaged or new files). These are the docs-sync test fixtures (test/helpers/docsync-repo.ts, docsync-observer.ts, docsync-fault-actor.ts), a new regression test test/docsync-stopped-audit-snapshot.test.ts, a KNOWN_WINDOWS_INCOMPATIBLE entry in scripts/lib/windows-curation.ts and a changelog.d fragment.

Documentation health:

  • AGENTS.md: current (no new commands or skills)
  • CLAUDE.md: current
  • CONTRIBUTING.md: current
  • README.md: current
  • docs/TEST_PORTFOLIO.md: current (the docs-sync row lists example tests, not every one)
  • docs/TESTING_INTERNALS.md: current (the Windows-skip instructions match the new entry)
  • ship/sections/documentation.md.tmpl: current (it already describes --carry-stopped)

Coverage debt: none, because nothing user-facing changed. Diagram drift: none.

Tests
  • bun test test/docsync-stopped-audit-snapshot.test.ts: 3 pass (2 fail on main's helpers)
  • Focused docsync, grammar, size, Windows-curation and tripwire tests: 285 pass; docsync fault, report and docs-candidate tests: 28 pass
  • bun run typecheck and bun run typecheck:test: clean, no new diagnostics
  • CI free suite at this head: green (run 45103291222)
Agent notes

Agent notes

Diagnosis (GST-3569): release gate runs 45090367252 (main 79f3052) and 45043202812 (5962f0d) were both red on the same three cases. The red started at 25bf93c (#4693, which added --carry-stopped) and became near-certain at 45e33b5 (#4703, which moved it into Parent processing). The bisect was non-monotone (GGGRGRR) because the parent used the flag on only some trials, not because of load. Not caused by #4708, #4712, #4717, #4719, #4722 or #4723. docsync-spawned's one flaky failure is a separate observer atomic-write shape and is not touched here.

Paid proof EVALS_RUN_ID gsta818-docsync-8f97c23: recovery 3/3, stale-before 3/3, stale-after 3/3, every trial running --carry-stopped.

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

Approvals

No approvals recorded for branch fix/docsync-fixture-stopped-audit-flag.
Plan: exempt: s1
Plan check: exempt s1

Refs GST-3569

{
  "schema_version": 1,
  "pr": 4731,
  "head": "aa265c36191f7c8624737ce30af3f616671644be",
  "version": "1.102.2.0",
  "base": "main",
  "gate": {
    "test": {
      "pass": 1774,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 45103291222,
      "attempt": 1,
      "tree": "8fd4914f1cd53685f2462a0a7ecd299b49400f44"
    }
  ],
  "calls": 21,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/ship-4731",
  "head_tree": "8fd4914f1cd53685f2462a0a7ecd299b49400f44",
  "product_patch_id": "fe9e4eb5ba56d2e5f1fff2cb4ef19f857e8b3fb9",
  "gstack_version": "1.102.2.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 4,
    "rules": "33831f8248a814fd",
    "base": "dd1b610a3a525a8138bdbda8ba3f0385c0f363bd",
    "registry": "dd1b610a3a525a8138bdbda8ba3f0385c0f363bd",
    "gate_scan": {
      "tagged": 0,
      "head": "aa265c36191f7c8624737ce30af3f616671644be"
    },
    "reasons": [
      "runtime=4"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @8fd4914f1cd5 (8 checks, current for aa265c36191f)",
  "requires_remote": [
    "pregate.json/remote_gate: remote-gate tree=8fd4914f1cd5 tests=39222 skipped=2 runs=45103291222/1 profiles=ci-reuse/free-tests heads=aa265c36191f verified=2026-11-23T03:03:54.034Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "AGENTS.md, CLAUDE.md, CONTRIBUTING.md, README.md and docs/ against the 6 changed files"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "ledgers_read": 2,
    "dispatches": {
      "specialist": 1
    }
  },
  "gate_dispositions": []
}

Open in Capy

garrytan and others added 2 commits November 23, 2026 02:33
…cs audit (GST-3569)

The ship doc-sync fixture's Prepare snapshot now passes --run like /ship's Prepare, and its command checker admits the stopped-audit snapshot flag with a private .json. Release check 45090367252 held the stable release on ship-docsync-recovery, -stale-before and -stale-after because of both gaps.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…cs audit (GST-3569)

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

trunk-io Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits November 23, 2026 02:38
…ad of a cast (GST-3569)

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>
@capy-ai
capy-ai Bot marked this pull request as ready for review November 23, 2026 03:08
@capy-ai
capy-ai Bot merged commit 50204fd into main Nov 23, 2026
76 of 77 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