Skip to content

Leave recorded harness mechanics transcripts out of review diffs - #353

Merged
capy-ai[bot] merged 1 commit into
mainfrom
exclude-recorded-hm-transcripts-from-review
Nov 15, 2026
Merged

capy-ai[bot] merged 1 commit into
mainfrom
exclude-recorded-hm-transcripts-from-review

Conversation

@garrytan

@garrytan garrytan commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Gstack's /ship review no longer sends the recorded Claude Code sessions under tests/harness-mechanics/fixtures/arms/ (transcripts, SDK logs, first-request captures and hook records) to its model reviewers.
Why: those files are 568 KB of the harness mechanics results pull request (#300). Leaving them out takes its review input from 2.2 MB to about 1.65 MB, under the 2 MB gstack gives one reviewer, so that pull request can get its final full review.
Nothing to do: reviewers still read the tests that replay these files, the secret and privacy scan before every push still reads the files, and the new pattern matches nothing on main until #300 lands.

What changed
  • .gstack/ship-policy.json adds tests/harness-mechanics/fixtures/arms/** to review_exclude_paths. gstack applies each entry as a git glob pathspec when it builds the reviewers' diff.
  • tests/ci/review-exclude-policy.test.ts (added in Keep frozen data files under wiki/plans out of model review #350) pins the new entry, allows matches under the arm fixtures in the check over every tracked file, and adds three arm-fixture hits and six near misses to its scratch repository: the test file beside the fixtures, a scorer fixture, fixtures/arms.json, fixtures/armsx/, and the same fixtures/arms/ path under lanes/ and under tests/fixtures/.
Checks
  • bun test tests/ci/ passes all 173 tests on this tree. With the old policy and the new test, 2 of the 3 tests in review-exclude-policy.test.ts fail, so the test catches the change.
  • No other code reads review_exclude_paths.
Agent notes
  • Approved by GSTA-2 2026-11-15 via GEVA-503: a policy-only PR from main whose only change adds the recorded arm fixtures to review_exclude_paths, with the glob test that Keep frozen data files under wiki/plans out of model review #350 added
  • 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 at 0b287f7 stopped in /ship with REVIEW_DIFF_TOO_LARGE: 2,217,261 bytes against the 2,000,000 ceiling. The 35 files under tests/harness-mechanics/fixtures/arms/ hold 567,555 bytes, so excluding them leaves about 1,649,706.
  • Review notes from /ship (all below the blocking floor; none fixed in this PR):
    • The arms/** entry matches every file type. gstack still keeps code, executable and config files under an excluded path in the reviewers' diff, so only data, docs, .log and binary files leave it.
    • Recorded first-request captures and transcripts lose their model reader, and the sealed transcript rule covers only **/runs/**, so before they reach the public repo only the key, token, contact-data and home-path scans read them. The line above about the privacy scan covers those checks only. Settle prose privacy on the harness mechanics results PR (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) before it merges.
    • Reviewers can no longer check that the recorded fixtures back the harness mechanics claims; keeping the small first-request captures in review is an option.
    • The size estimate cannot be checked on this tree; run gstack-review-plan on the results branch once this is on main, before its review.
    • The policy test proves git's matching, not gstack's keep rules for code under arms/.
    • Excluded paths count as docs in gstack's review-depth classifier, so a PR that only re-records arm fixtures would get a light review.
  • Documentation: current. A read-only audit of README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md, SECURITY.md and docs/ found no doc that mentions review_exclude_paths.
{
  "schema_version": 1,
  "pr": 353,
  "head": "81f2597e118a8910541a64d100848889eaeea723",
  "version": "0.0.1",
  "base": "main",
  "gate": {
    "test": {
      "pass": 489,
      "fail": 0,
      "skip": 0
    },
    "typecheck": {
      "pass": 1,
      "fail": 0,
      "skip": 0
    },
    "errors": {
      "pass": 1,
      "fail": 0,
      "skip": 0
    },
    "wiki": {
      "pass": 1,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 43732091250,
      "attempt": 1,
      "tree": "df491e4f46041c93a1f383855b8029b1c168019b"
    },
    {
      "lane": "typecheck",
      "run": 43732091250,
      "attempt": 1,
      "tree": "df491e4f46041c93a1f383855b8029b1c168019b"
    },
    {
      "lane": "errors",
      "run": 43732091250,
      "attempt": 1,
      "tree": "df491e4f46041c93a1f383855b8029b1c168019b"
    },
    {
      "lane": "wiki",
      "run": 43732091250,
      "attempt": 1,
      "tree": "df491e4f46041c93a1f383855b8029b1c168019b"
    }
  ],
  "session_kind": "unattended",
  "head_tree": "df491e4f46041c93a1f383855b8029b1c168019b",
  "product_patch_id": "28f2bbad6c6db10152cedefa48933f2bc33a9958",
  "gstack_version": "1.99.5.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 3,
    "rules": "66e5174161eecc2c",
    "base": "1b6b060830d88f4cd673a7145c86180deee906ef",
    "registry": "1b6b060830d88f4cd673a7145c86180deee906ef",
    "gate_scan": {
      "tagged": 0,
      "head": "81f2597e118a8910541a64d100848889eaeea723"
    },
    "reasons": [
      "gate-class",
      "runtime=3"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "pass @df491e4f4604 (8 checks, current for 81f2597e118a)",
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md, SECURITY.md and docs/ (read-only audit; no doc mentions review_exclude_paths)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "ledgers_read": 3,
    "dispatches": {
      "specialist": 3
    }
  },
  "gate_dispositions": [],
  "review_exclude": {
    "source": "origin/main@1b6b060830d8",
    "patterns": [
      "wiki/plans/*/*-frame.json",
      "wiki/plans/*/*-repos.json",
      "wiki/plans/*/*-licences.json"
    ],
    "applied": [],
    "excluded": 0,
    "excluded_bytes": 0,
    "kept": 0,
    "gate_tagged": [],
    "patterns_sha256": "fa923b145822562cad696cb4d47c9ac818d3278fc8f168e379576c9498de1fad",
    "list_sha256": "58d496709dc81f0053419b834fdb12657262a221009af9f9eb2e379a525acadb",
    "digest": "894734a840507900b86122ec72629b21ee299718cee0f8b454d96d4afcb62249"
  }
}

Open in Capy

Model reviewers in /ship no longer read the recorded session fixtures under tests/harness-mechanics/fixtures/arms/: Claude Code transcripts, SDK logs, first-request captures and hook records that the harness mechanics arms tests replay. They take the harness mechanics results pull request from 2.2 MB to about 1.65 MB of reviewer diff, under the 2 MB gstack hands one reviewer. Reviewers still read the tests that replay them, and the secret and privacy scan before every push still reads the fixtures.

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

@capy-ai
capy-ai Bot merged commit d8637e7 into main Nov 15, 2026
4 checks passed
garrytan added a commit that referenced this pull request Nov 15, 2026
Brings in the review_exclude_paths entry for tests/harness-mechanics/fixtures/arms/** (#353), so this branch's final review fits under gstack's 2 MB reviewer limit. No conflicts; this branch's own changes are unchanged.
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