Repository navigation
Keep frozen data files under wiki/plans out of model review - #350
Merged
Merged
Conversation
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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Model reviewers in /ship no longer read a preregistration's frozen data files: the
*-frame.json,*-repos.jsonand*-licences.jsonfiles 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.jsongainsreview_exclude_pathswith three git glob patterns:wiki/plans/*/*-frame.json,wiki/plans/*/*-repos.jsonandwiki/plans/*/*-licences.json. gstack reads this key from main only, so a branch cannot exclude its own files.tests/ci/review-exclude-policy.test.tschecks 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 towiki/plans/**/*-frame.json,wiki/plans/*/*-frame.*or**/*-frame.jsonfails it too..gstack/files.Blast radius
Agent notes
receiptReviewAtHead,carryExcludeBindsandwriteExcludeBindson 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).--review-exclude nonetogstack-ship-receipt write. Omitting the flag refuses with RECEIPT_INVALID field=review_exclude;nonebinds and prints REVIEW_EXCLUDE_POLICY_MOVED. A run that starts a review pass after this lands records the new digest itself.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.ts79 pass 0 fail,bun run typecheckclean,gstack-pregate sealedclear.frame.jsonlandrepos.jsonl, which these patterns do not match, so a post that freezes files under those names stays in review.gstack-ship-policy validate --policy-from head, and a mutant that widens the frame pattern towiki/plans/**/*-frame.json, which the near-miss check kills.docs_only.