Skip to content

Keep frozen data files under wiki/plans out of model review - #350

Merged
capy-ai[bot] merged 2 commits into
mainfrom
review-exclude-frozen-data
Nov 15, 2026
Merged

capy-ai[bot] merged 2 commits into
mainfrom
review-exclude-frozen-data

Conversation

@garrytan

@garrytan garrytan commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Model reviewers in /ship no longer read a preregistration's frozen data files: the *-frame.json, *-repos.json and *-licences.json files directly inside a wiki/plans post folder.
These data files leave model review because a CI test recounts every published count from them; the first such files and their recount test arrive with the skill-pack head-to-head preregistration (#349), whose 4.8 MB diff is over the 2 MB gstack hands one reviewer.
Nothing to do: reviewers still read the code that writes and reads these files, the post and its prereg.json, and a later post that adds such files should add the same kind of recount test.

What changed
  • .gstack/ship-policy.json gains review_exclude_paths with three git glob patterns: wiki/plans/*/*-frame.json, wiki/plans/*/*-repos.json and wiki/plans/*/*-licences.json. gstack reads this key from main only, so a branch cannot exclude its own files.
  • tests/ci/review-exclude-policy.test.ts checks that the policy holds exactly those patterns, then asks git which paths they match: every tracked file here, and a scratch repository of near misses (other folders, a nested post folder, .gz, .jsonl, .ts, .py, prereg.json, README.md). Any match outside wiki/plans, or any match that is not a .json file, fails it. Widening one pattern to wiki/plans/**/*-frame.json, wiki/plans/*/*-frame.* or **/*-frame.json fails it too.
  • gstack still keeps a matched file in review when code names its full path, and it never excludes code, config, agent prose or .gstack/ files.
Blast radius
Agent notes
  • Checked with gstack 1.99.4.0's own code against a throwaway local main carrying this change (never pushed): receiptReviewAtHead, carryExcludeBinds and writeExcludeBinds on the heads of Harness mechanics eval and results: a stop rule as hook or prose, best-of-2 at equal spend, and Jev behind a judgment hook #300 (0b93c99), Add a harness and preregistration that test gstack's engineering plan review on real bug fixes #346 (2c97938), Preregister the ask replay eval: does an ask ledger cut needless asks without holding back needed ones (GST-2771) #348 (0cdcf4b) and Preregister a head-to-head of six agent skill packs and plain Claude Code on real bug fixes #349 (79f5ff6).
  • In-flight /ship runs: a run whose review ran before this lands and whose receipt is written after it must pass --review-exclude none to gstack-ship-receipt write. Omitting the flag refuses with RECEIPT_INVALID field=review_exclude; none binds and prints REVIEW_EXCLUDE_POLICY_MOVED. A run that starts a review pass after this lands records the new digest itself.
  • Local checks at 1910d1d: gstack-ship-policy validate --policy-from head (MIN_READER 1.99.0.0, unchanged), bun test tests/ci/review-exclude-policy.test.ts tests/ci/docs-only-policy.test.ts tests/ci/docs-only.test.ts 79 pass 0 fail, bun run typecheck clean, gstack-pregate sealed clear.
  • /ship with gstack 1.99.5.0: gate class at full depth, two review passes.
    • Pass 1 at 1910d1d (tree 08ff1d43): the batched specialist (testing, security, state machines) and the red team found nothing, and the core checklist found nothing. Gate edits: none detected (1 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none). Scope Check: CLEAN.
    • Step 11 ran its two voices one after the other. The native adversarial reader (Claude Opus 5.5) raised two findings, neither blocking; the second-model reader (GPT-6.1 Sol) returned clean.
      • Fixed in 66cb9f1: the in-tree check looped over the matched paths, so on a tree with no matching file it asserted nothing. It now asserts that the list of matches outside a wiki/plans post is empty. The fix commit carries a Review-Finding trailer; the pass 2 review row did not record this finding, so the receipt lists that trailer as unbound.
      • Noted: the recount test the commit message names as the stand-in for model review of these files is not in this tree. It arrives with the first pull request that adds such files (Preregister a head-to-head of six agent skill packs and plain Claude Code on real bug fixes #349), and that pull request should not merge without it.
    • Pass 2 at 66cb9f1 (tree 770888de), on the fix range: the batched specialist and the red team found nothing.
    • A red team remark from pass 1, not a finding: the lane code writes frame.jsonl and repos.jsonl, which these patterns do not match, so a post that freezes files under those names stays in review.
  • Exploratory QA: pass. Three probes at 66cb9f1: the PR's own test, gstack-ship-policy validate --policy-from head, and a mutant that widens the frame pattern to wiki/plans/**/*-frame.json, which the near-miss check kills.
  • Documentation: current. A read-only audit of README.md, AGENTS.md, docs/, wiki/README.md and CHANGELOG.md found no doc that describes the key; that gap is recorded as debt, as for docs_only.
  • Approvals: Approved: yes (record r-25a0bda4ee13). The full approval record stays private.
  • The /ship receipt follows.
{
  "schema_version": 1,
  "pr": 350,
  "head": "66cb9f1af2c5844b67671de737bc90bf4e06e4f5",
  "version": "0.0.1",
  "base": "main",
  "ci_carried": [
    {
      "lane": "test",
      "run": 43692887492,
      "attempt": 1,
      "tree": "770888dea2e379bc74f015e8550be0b798cbfc0d"
    },
    {
      "lane": "typecheck",
      "run": 43692887492,
      "attempt": 1,
      "tree": "770888dea2e379bc74f015e8550be0b798cbfc0d"
    },
    {
      "lane": "errors",
      "run": 43692887492,
      "attempt": 1,
      "tree": "770888dea2e379bc74f015e8550be0b798cbfc0d"
    },
    {
      "lane": "wiki",
      "run": 43692887492,
      "attempt": 1,
      "tree": "770888dea2e379bc74f015e8550be0b798cbfc0d"
    }
  ],
  "session_kind": "unattended",
  "head_tree": "770888dea2e379bc74f015e8550be0b798cbfc0d",
  "product_patch_id": "0ad10506ac7b72f23e673ba1ddc127f3621d836f",
  "gstack_version": "1.99.5.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 5,
    "rules": "66e5174161eecc2c",
    "base": "3dd1ffb35e82a4c7f2a7dc3080faf6fb64ec30df",
    "registry": "3dd1ffb35e82a4c7f2a7dc3080faf6fb64ec30df",
    "gate_scan": {
      "tagged": 0,
      "head": "66cb9f1af2c5844b67671de737bc90bf4e06e4f5"
    },
    "reasons": [
      "gate-class",
      "runtime=5"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "pass @770888dea2e3 (8 checks, current for 66cb9f1af2c5)",
  "docs": {
    "status": "current",
    "scope": "README.md, AGENTS.md, docs/, wiki/README.md and CHANGELOG.md against the two changed files (read-only audit)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 2,
    "ledgers_read": 4,
    "unbound": 1,
    "dispatches": {
      "specialist": 6,
      "red-team": 2
    }
  },
  "gate_dispositions": []
}

Add review_exclude_paths to .gstack/ship-policy.json for the frame,
repository and licence .json files a preregistration freezes under
wiki/plans. gstack's /ship hands no reviewer more than 2 MB of diff, and
these rows alone can pass that. A CI test that recounts every published
count from the files stands in for reading them.

Add a test that asks git which paths the patterns match, in this tree and
in a scratch repository of near misses, and fails if any is outside
wiki/plans or not a .json file.

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

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

Open in Capy

The tree check looped over the matched paths, so with no matching file it ran no assertion. It now asserts that the list of matches outside a wiki/plans post is empty, which runs on every tree.

Review-Finding: v1/adversarial-native#2 reader=adversarial-native
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

@capy-ai
capy-ai Bot merged commit dacb59c into main Nov 15, 2026
3 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