Repository navigation
Conversation
Reuse the bounded deterministic generation pool and bind conflict reviews to sampling settings. Add synthetic regressions and document renewed acceptance. Implementation assisted by Codex.
|
Thank you for this careful fix, @sunxiuguo, and for the dimension-only regressions that fail on the old code. That is exactly the evidence a fix like this needs. I'm sorry for the overlap. We missed that this PR was already open and merged #48 for the same issue (#36) shortly afterwards. #48 takes a similar route: the review gate searches the situations One idea here is not in Thanks again for contributing. |
Behavior
Closes #36. Review previously checked opposite-effect rules only against scenario seeds, so an allow/deny overlap introduced by a dimension could reach training data without its own review item.
Review now searches the deterministic pool emitted by
generate_family, including candidate attribute dimensions. Each scenario is generated at most once per snapshot for all opposite-effect pairs, and its verdicts retain outranked matching rules. Existing seed witnesses remain available; each pair gains at most one generated witness with its episode ID and dimension interventions.Conflict/override fingerprints also bind the sampling seed and both pool-size settings. Changing the sample reopens review even when the first witness stays the same.
Validation
mypy src, strict MkDocs, and sdist/wheel builds pass.Checks ran in an isolated cloud environment on candidate
594e3f7b5c2ab90ea95f2434d5a42e8c6129d1d8, based on1e756c9927e42933c6107953e67fc88b67261edd. Published commit402dfc9beaab75eed153f7e87fd1150a2a08ff7ehas the exact same verified Git tree (6bfc74a7120f4d01732973ac68f8e58765a71a98). Subsequent upstream changes at3add88804acf792e0645a34135a1bc5cc36ce9d2affect only the two README files. The macOS/Python-version CI matrix, Harbor Docker runs, optional runtime integrations, and live inference were not run.Compatibility and data
Policy evaluation, episode/export contracts, item IDs, provenance, and split assignment are unchanged. Review content adds
generated_witnessesandgenerationfor opposite-effect pairs; existing conflict/override decisions need renewed acceptance. Other review-item bindings remain unchanged. The documentation describes this transition and the existing 10,000-sample/10^12-population limits.The analysis covers deterministic generated episodes before filtering; it does not claim to enumerate arbitrary states or model-written synthesis. This implementation was assisted by Codex. All added fixtures are fictional; no credentials, customer materials, hosted model calls, or production systems were used.
Checklist