Add verified special-constraint promotion - #1050
Draft
termoshtt wants to merge 2 commits into
Draft
Conversation
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.
Summary
Design
A promotion witness is an untrusted claim rather than an applicable mutation plan. OMMX re-verifies the complete structural condition against the current instance whenever the witness is checked or applied: the source must be an active equality constraint over exactly the declared binary variables, with a common finite nonzero linear coefficient and the matching constant. Approximate and nonlinear representations are rejected.
Only the private planning layer owns target-ID allocation and mutation details. Bulk promotion reserves explicit target IDs before allocating omitted IDs and applies the complete batch atomically. Promotion metadata remains on the removed source constraint, allowing the audit API to reconstruct and verify the relationship after lowering, partial evaluation, or a v2 round trip without extending the protobuf provenance schema.
Closes #1024