Repository navigation
fix(environment_mode)!: implement reproducible, fast_assert and full_assert - #180
Closed
blackopsrepl wants to merge 3 commits into
Closed
blackopsrepl wants to merge 3 commits into
blackopsrepl wants to merge 3 commits into
Conversation
…ixed seed `reproducible` ran exactly like `non_reproducible`: without `random_seed` every run drew its seed from the operating system. Every mode except `non_reproducible` now solves with `REPRODUCIBLE_RANDOM_SEED` when `random_seed` is omitted, and every seed consumer (solver scope, search context, compiled selectors and acceptors) reads `SolverConfig::resolved_random_seed`. BREAKING CHANGE: `environment_mode = "reproducible"`, `"fast_assert"` and `"full_assert"` without `random_seed` now solve with the fixed seed `REPRODUCIBLE_RANDOM_SEED` instead of an operating-system seed.
…n fast_assert `fast_assert` ran without any checks. It now asserts at every committed step and best-solution update that the incremental score equals a fresh full calculation, panicking on drift, the scope-level check `full_assert` already ran. BREAKING CHANGE: `environment_mode = "fast_assert"` now panics on score drift at committed steps and best-solution updates.
`full_assert` checked only scope-level score calculations, never the move evaluations that score through the director directly. It now also turns on `Director::set_score_assertion`, so `ScoreDirector` checks every score calculation against a fresh one, including each evaluated move, and evaluator replicas inherit the check. Closes #172. BREAKING CHANGE: `environment_mode = "full_assert"` now panics on drift in any score-director calculation, including move evaluations and evaluator replicas. `Director` gains the provided method `set_score_assertion`.
Collaborator
Author
|
Superseded by #181: same commits on |
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.
Closes #172. Base
main@5e33d374, three commits:9f3f36d4seed every mode but non_reproducible with a fixed seed6c8e0ae4check committed steps against a fresh score in fast_assertbd910d01check every score calculation in full_assertGate on
bd910d01(fmt, clippy -D warnings, doc-names file-length facade-reachability public-api deps, rustdoc -D warnings, examples, workspace all-feature tests, doctests): EXIT 0, 1513 passed, 0 failed, 65 result lines. Each slice passed clippy, rustdoc and its focused tests on its own; each behaviour test was mutation-checked (removing the fix fails it).