Skip to content

Review plan gives a preregistration with only its plain data the write-up review, and stops counting data rows as code (GST-3238) - #4544

Merged
capy-ai[bot] merged 6 commits into
mainfrom
review-plan-preregistrations-are-write-ups
Nov 19, 2026
Merged

capy-ai[bot] merged 6 commits into
mainfrom
review-plan-preregistrations-are-write-ups

Conversation

@garrytan

@garrytan garrytan commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

A preregistration whose diff is only its write-up, text and data files now plans as a write-up (one reviewer, one round); scoring, judge, guard and gate edits keep their full review, and CI is unchanged.
Results rows no longer count as runtime code, and a fix after an approved review stop that changes only a data file now gets its follow-up review instead of stopping.
Nothing to do for readers; this follows Garry's rule that preregistrations without scoring code get one review round, and fixes a stop reported by Founderstar.

What changed

A fix that touches only data files used to read as an unrecognised change and stop the follow-up review; now it is recognised and exits 0

A fix that touches only data files used to read as an unrecognised change and stop the follow-up review; now it is recognised and exits 0.

--- Before · gstack-diff-scope main on a range of wiki/labels.json and results/rows.tsv
+++ After
@@ ⋯ 7 unchanged ⋯ @@
 SCOPE_MIGRATIONS=false
 SCOPE_API=false
 SCOPE_AUTH=false
+exit=0
-SCOPE_ERROR=unmatched
-# unmatched: results/rows.tsv
-# unmatched: wiki/labels.json
-exit=2

People writing an eval plan saw a preregistration that only holds its write-up and its data get the full four-reader review, because a test reads one of its data files. Now:

  • Preregistrations. A data file under a path segment named prereg or preregistration (gstack-evals' wiki/plans/<id>-prereg/, harness-evals' prereg-harbor.json, lanes/<x>/prereg.md) counts as docs even when code reads it, so a preregistration-only diff is docs class at light depth. The gate scan and the risk classes still read that data (a tagged hunk, a missing scan or a secret makes it full). A scorer, judge, grader or rubric beside it keeps the eval risk class (full), and a gate path keeps gate class (full). Documented in docs/review-policy.md#preregistrations.
  • Data rows. JSONL, NDJSON, CSV and TSV lines, and JSON lines under a docs, wiki, results, reports or preregistration folder, no longer count as runtime lines; the files keep their class, so readers still read them. A JSON file code reads anywhere else keeps counting, because it can be a guard's config.
  • Data-only fix range. gstack-diff-scope printed SCOPE_ERROR=unmatched for a range of data files alone, so the review plan stopped with "no fix to read" even with an approved follow-up review and a committed fix. A data file is now recognised (no category, never unmatched); an unknown file beside it still fails closed.
  • Platform review skip. The skip that lets a matching platform review stand in for readers now refuses every preregistration spelling the new rule accepts (prereg2.json, a preregs/ folder), not only the plain prereg name. Found in review; see Pre-Landing Review.
Why

Review depth should follow risk. A preregistration with no scoring or guard code is a write-up and gets one reviewer and one round, and results tables are data, not code. A results PR (harness-evals#432) planned 17,773 runtime lines, of which 147 were code.

Blast radius

Only the review plan's depth and reader choice change, in lib/review-depth.ts and bin/gstack-diff-scope. CI, the gate scan, secret and risk checks are unchanged. A planner replay over 460 real main commits (gstack-evals 200, harness-evals 60, gstack 200) kept the same depth on all 460; class, risk and readers changed on 2, and 34 others only lost data-row runtime lines. The replay predates the platform-skip fix and was not rerun; that fix only adds a catch, so it can only add readers.

Pre-Landing Review

One blocker was found and fixed: with platform review on, a numbered or plural preregistration name (lanes/x/prereg2.json) could take the platform skip with zero readers, because the skip checked a narrower path pattern than the new rule. Fixed in 984066c with a planner regression that fails without it. The second-model review (GPT-6.1 Sol) found it; the pass on the fix range was clean.

Below-floor notes, not fixed (none would fail a test, break production or lose data or secrets):

  • security finding, details recorded privately (2 notes from the specialist review, about the preregistration path rule and data-only ranges planning lighter review).
  • The preregistration path rule matches a prereg segment anywhere, not only under plans or results folders (lib/review-depth.ts:75).
  • Row files (JSONL, NDJSON, CSV, TSV) never count as runtime lines, even when a guard reads them (lib/review-depth.ts:73).
  • A data-only whole-PR range no longer raises SCOPE_ERROR for other callers (bin/gstack-diff-scope:475).
  • The harness-evals#432 figure (17,773 runtime lines, 147 code) was not recounted by a reader; no reader found it wrong.
  • The results-folder match applies at any depth, so consumed JSON under src/reports/ stops counting runtime lines (lib/review-depth.ts:268).
  • The changelog entry names "docs, results or preregistration" folders for JSON rows, while the code also covers wiki and reports folders.
Exploratory QA

Functional CLI smoke, 3 probes, rerun at 984066c after the fix: a data-only range exits 0 with every flag false; data beside an unknown file still exits 2 with SCOPE_ERROR=unmatched naming only the unknown file; a preregistration folder with only markdown and data plans docs at light depth. All pass. Limit: the consumed-preregistration branch and the platform skip are covered by tests, not probes.

Documentation

Status: current. The docs already match this change, so nothing was edited.

Scope: 6 commits (ab6a38b..984066c), 10 committed files, with nothing staged, unstaged or new. I checked docs/review-policy.md against lib/review-depth.ts, lib/review-risk.ts and bin/gstack-diff-scope, and searched docs/ship-policy.md, docs/captain.md, docs/TESTING_INTERNALS.md, AGENTS.md, CLAUDE.md and CONTRIBUTING.md for stale preregistration or scope text.

Documentation health

  • docs/review-policy.md: current. The data-rows and preregistration paragraphs, the light-depth table row and the platform-skip exclusion all match the code.
  • docs/ship-policy.md: current. The platform skip already excludes preregistration claims.
  • AGENTS.md, CLAUDE.md, CONTRIBUTING.md, docs/captain.md, docs/TESTING_INTERNALS.md: current, with no affected text.

Coverage debt: the exit-0 behaviour of gstack-diff-scope for a data-only range is described only in script comments and the changelog fragment, with no reference doc entry (a common gap).

Diagram drift: none.

Tests
  • bun test test/review-depth.test.ts test/review-depth-lean.test.ts test/diff-scope.test.ts test/round-cap-granted-stop.test.ts: 381 tests pass, 0 fail at 984066c.
  • bun run typecheck and bun run typecheck:test: clean, no new diagnostics.
  • Full free suite: CI run 44633715797 (free-tests.yml at 984066c), green; carried at tree 91e07c68dec4.
  • macOS named regressions (run 44633715797) and windows-smoke (run 44632669462) green at 984066c.
Agent notes

Agent notes

GST-3238 (R114), thread GSTA-663 under GStack Minder (GSTA-36). FOUN-505's case is the fix-check after a granted stop. Replay TSVs: GStack Minder drive handoffs/GSTA-663/r114-planner-noloss/.

Refs v1/outside-voice#1

REVIEW_LOOP: passes=2 blocking_found=1 deferred=0 noted=5 fixed=1 scope=frozen ledgers_read=4 dispatches=8

Gate edits: none detected (9 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: completed (openai/gpt-6.1-sol via host subagent), 1 blocker, fixed in 984066c.

Readers: pass 1 specialist-batched and red-team (Opus 5.5); Step 11 adversarial-native (Opus 5.5) and outside-voice (GPT-6.1 Sol); pass 2 specialist-batched and red-team (Opus 5.5) on the fix range; docs audit (Opus 5.5, low). Targeted: none.

Captain GStack Minder (GSTA-36), 2026-11-19: A. That's what R114 asks for, and the only blocker came from the reader we keep. Record the 8 dropped below-floor fixes in the READY report as the known cost.

The review-depth pin was recomputed for the platform-skip fix (82f87a1d) and keeps replay GST-3238; the replay was not rerun.

Approvals

No approvals recorded for branch review-plan-preregistrations-are-write-ups.
Plan: exempt: bug fix and Garry's R114 rule change, no new functionality
Plan check: exempt bug fix

{
  "schema_version": 1,
  "pr": 4544,
  "head": "984066cc6884a500d5d484f722af9488c5a9fa1b",
  "version": "1.102.0.0",
  "base": "main",
  "gate": {
    "test": {
      "pass": 1712,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 44633715797,
      "attempt": 1,
      "tree": "91e07c68dec49363733a65954f9d121b11f7e0c2"
    }
  ],
  "calls": 32,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/ship-4544/run1",
  "head_tree": "91e07c68dec49363733a65954f9d121b11f7e0c2",
  "product_patch_id": "e116fd96cbf593fb3b429d3057736bdfb4642aa7",
  "gstack_version": "1.102.0.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 76,
    "rules": "1afa38a4be3b5eef",
    "base": "7f9c1bc52ac9e8471aece6190c62addfe60d3205",
    "registry": "7f9c1bc52ac9e8471aece6190c62addfe60d3205",
    "gate_scan": {
      "tagged": 0,
      "head": "984066cc6884a500d5d484f722af9488c5a9fa1b"
    },
    "reasons": [
      "gate-class",
      "runtime=76"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @91e07c68dec4 (8 checks, current for 984066cc6884)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44633715797/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44632669462/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=91e07c68dec4 tests=38407 skipped=89 runs=44633715797/1 profiles=ci-reuse/free-tests heads=984066cc6884 verified=2026-11-19T23:08:02.332Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md and docs/ against the review-depth, diff-scope and preregistration changes"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 1,
    "deferred": 0,
    "noted": 5,
    "fixed": 1,
    "scope": "frozen",
    "rounds": 2,
    "ledgers_read": 4,
    "dispatches": {
      "specialist": 6,
      "red-team": 2
    }
  },
  "gate_dispositions": []
}

garrytan and others added 4 commits November 19, 2026 21:38
…ite-up, and data rows are never runtime lines (GST-3238)

A diff of a preregistration's markdown, text and data (a path segment named prereg or preregistration) plans as docs even when code names its data; the gate scan and risk classes still read that data. Scoring, judge, grader, guard and gate edits keep their depth. JSON, JSONL, NDJSON, CSV and TSV lines no longer count as runtime lines (harness-evals#432: 17,773 planned, 147 code).

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

gstack-diff-scope no longer calls a range of data files alone unmatched (FOUN-505: a one-string .json fix printed SCOPE_ERROR=unmatched, so FIX_RANGE was unread and the plan stopped with no fix to read). An unknown file beside data still fails closed.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ders, and repin the review depth rules on their no-loss replay (GST-3238)

A JSON file code names elsewhere can be config a guard reads (harness-evals' scripts/public-safety/allow.json), so its lines keep counting. Repinned lib/review-depth.ts on replay GST-3238: a planner replay over 460 main commits of gstack-evals, harness-evals and gstack, where depth never changes and readers drop only on a preregistration-only diff and a results diff of rows.

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>
@trunk-io

trunk-io Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits November 19, 2026 22:21
…GST-3238)

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

The platform skip checked preregistration paths with a narrower pattern than the one that now makes preregistration data docs, so a numbered or plural name such as lanes/x/prereg2.json could plan zero readers. The skip now also refuses any path the preregistration rule matches, with a planner regression. The review-depth pin is recomputed for the changed file and keeps replay GST-3238; the replay was not rerun.

Review-Finding: v1/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 8586794 into main Nov 19, 2026
77 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