Repository navigation
Reopen pair reviews when sampling settings change - #56
Merged
EonHao merged 1 commit intoNov 4, 2026
Merged
Conversation
EonHao
approved these changes
Nov 4, 2026
EonHao
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the quick follow-up, @sunxiuguo. This closes the gap cleanly, and I'm approving.
What I checked:
- The production change only adds
samplingto opposite-effect items. Rule, node, and same-effect shadowed items keep their fingerprints, so the one-time reopening is limited to conflict/override reviews. - The test matrix covers each sampling setting for conflicts and overrides, with observed and possible overlap. That includes the pool fallback and exhausted-population cases, where the witnesses stay identical but the fingerprint must still change. The unrelated-recipe controls confirm that only
dataset:recipereopens in those cases. - The rebuilt episodes and exports matching the original run is a nice confirmation that review binding never touches generated data.
- The documentation and changelog describe the reopening accurately.
Two optional nits for a later cleanup, not blocking:
tests/test_review.pyimportsCAP,MANAGER, andwrite_projectfromtest_review_conflicts. That works because pytest prepends the test directory tosys.path, but moving those helpers into a shared module (or fixtures inconftest.py) would avoid depending on the import mode.- In
review_snapshot, thesamplingfield could be part of the item dict when it is built, for example**({"sampling": {...}} if opposite else {})incontent, instead of mutatingitems[-1]after the append.
I'll merge once CI is green.
This was referenced Nov 16, 2026
Merged
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.
Behavior
Follow up on the maintainer's invitation to bind pair reviews to sampling configuration in the current review implementation.
Changing the seed or either pool setting could leave an accepted conflict/override accepted when its overlap and witnesses stayed identical. Accepting only
dataset:recipethen permitted a build without renewed pair review.Opposite-effect item content now includes
samplingwith the rawseed,variants_per_scenario, andcandidate_pool_per_scenariovalues. This also covers unset pools, overridden variant counts, and exhausted populations. Other recipe fields and same-effect shadowed items retain their existing bindings.Validation
Optional LangGraph, Data Designer, and RapidOCR integrations, Harbor Docker, live model/OCR services, and the upstream Linux/macOS Python 3.11/3.12/3.13 matrix were not run.
Compatibility and data
The additive
samplingfield causes a one-time reopening of existing conflict/override acceptances. Review current items again; accepting only the dataset recipe does not satisfy them. Item IDs, history, observed/possible classification, generation, policy evaluation, provenance, and split behavior are unchanged. Rule, node, and same-effect shadowed approvals are preserved.All added data and reviewer identities are fictional. This implementation was assisted by Codex; no hosted inference or real customer material was used.
Independent automated review checked the reconstructed source, 20 sampling cases, 20 migration cases, four unrelated-recipe controls, and a multiple-pair case using a fail-closed FileLock import shim; it did not rerun record_review, the full suite, CLI, build, exports, or concurrency checks.
Checklist