Repository navigation
Rift v0.2: semantic declaration matching (Ruling 3.1) - #26
Merged
Merged
Conversation
Two-tier declaration matcher in rift/matcher.py: exact pattern match with capture extraction, semantic-similarity fallback (own MiniLM instance, independent of pi_script per the layer boundary). Calibrated defaults (threshold 0.30, ambiguity margin 0.05), inspectable match traces, defined no-match on low confidence or ambiguity. Spec-first: Rift Ruling 3.1 written and locked before implementation. Tests 240 -> 260; independence enforced by permanent tests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
GodSpeed313
added a commit
that referenced
this pull request
Jul 22, 2026
TODO.md still read as the pre-M7 tracker: 240/240 tests, milestone list ending at M6, none of the last two weeks recorded. Now truthful: 563+7xfail with the xfail census itemized, M7 milestone line (engineering complete, not live), shipped log for PRs #26-#27 and #30-#43 with real squash commits, and open-items sections (T2 re-sample, first-live-post go decision, blocked constraint threads, hooks + PAT infrastructure debt). test_validator_unit.py recreation section kept — still the oldest open item. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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
rift/matcher.py): exact pattern match with capture extraction, semantic-similarity fallback (own MiniLM instance, independent ofpi_scriptper the layer boundary)docs/rift_v02_ruling_3_1_semantic_declaration_matching.md)pi_script/resolver.py's Ruling 9.8 semantic matching) enforced by two permanent tests,TestRiftMatcherIndependence/goalprep doc; independently re-verified locally (zeropi_scriptreferences via grep + fresh-interpreter import check, full 260-test run, diff scope confirmed) before this PRTest plan
python -m pytest -qpasses locally (260 passed)