Conversation
bramp
added a commit
to bramp/build-along
that referenced
this pull request
Dec 22, 2025
Implements CP-SAT constraint solver infrastructure for classification: - ConstraintModel: Wrapper around OR-Tools CP-SAT with helper methods - add_candidate(), at_most_one_of(), exactly_one_of() - if_selected_then(), if_any_selected_then_one_of() - mutually_exclusive(), add_block_exclusivity_constraints() - maximize(), solve() - SchemaConstraintGenerator: Auto-generates constraints from schemas - Uses EXPLICIT naming convention: field_name_candidate(s) - Generates structural constraints from Pydantic field types - Supports custom constraints via **constraint_rules** - Base class updates: - LabelClassifier.declare_constraints() hook for custom constraints - Classifier.**init**(use_constraint_solver=False) flag - ClassificationResult.is_solver_selected(), set_solver_selection() - Python version: Temporarily downgraded to 3.13 - ortools doesn't support Python 3.14 yet (as of Dec 2025) - Will upgrade back to 3.14 when ortools releases support - PR merged but not released: <google/or-tools#4922> Phase 0 complete: Infrastructure ready, no behavior changes yet. Next: Phase 1 - PartsList + Parts implementation.
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.
No description provided.