Repository navigation
feat(score_director)!: select the constraint provider and gate snapshot analysis - #171
Merged
Merged
Conversation
`[score_director]` was parsed and never read. `constraint_provider` now selects the constraint set a solve scores with: `#[planning_solution]` accepts repeatable `constraint_provider = "path"` next to `constraints`, each provider is its own monomorphized solve, and an undeclared name fails before solving with `RuntimeBuildError::UnknownConstraintProvider`. The selected provider's analysis is bound to the job through `SolverRuntime::bind_snapshot_analysis`, so `analyze_snapshot` reports the constraints the job scored with. BREAKING CHANGE: `score_director.constraint_provider` must name a `constraints` or `constraint_provider` path declared on the solution, or the solve fails. `try_run_dynamic_solver_with_config_parts` takes `&[DynamicConstraintProvider]` instead of one `constraints` function. `RuntimeBuildError` gains the variant `UnknownConstraintProvider`.
…bled `constraint_match_enabled` was parsed and never read. It now decides whether a job's snapshots can be analyzed: `false` makes `SolverManager::analyze_snapshot` fail with `SolverManagerError::SnapshotAnalysisDisabled`. It defaults to `true`, so a solve without a `[score_director]` section stays analyzable. Closes #170. BREAKING CHANGE: `score_director.constraint_match_enabled` now defaults to `true`, and `false` disables `SolverManager::analyze_snapshot` for the job. `SolverRuntime::bind_snapshot_analysis` takes `Option<fn(&S) -> ScoreAnalysis<S::Score>>`, where `None` disables analysis. `SolverManagerError` gains the variant `SnapshotAnalysisDisabled`.
blackopsrepl
force-pushed
the
feature/170-score-director
branch
from
November 4, 2026 17:58
b3bffc8 to
5e33d37
Compare
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 #170. Base
main@c114e2d2, two commits:13537458feat(score_director)!: select the constraint provider5e33d374feat(score_director)!: gate snapshot analysis on constraint_match_enabledGate on
5e33d374(fmt, clippy -D warnings, doc-names file-length facade-reachability public-api deps, rustdoc -D warnings, examples, workspace all-feature tests, doctests): EXIT 0, 1506 passed, 0 failed, 64 result lines. Slice 1 alone: clippy, rustdoc, public-api bless, config/bridge/trybuild/constraint_providers/manager tests green.