[codex] use syntax-aware mutation locations - #71
Merged
Conversation
greenthree
marked this pull request as ready for review
August 10, 2026 06:26
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.
What changed
cpp-token-v1mutation IDs stable while making legacy token evidence stale under the new locator fingerprintif constexprconditions, and case labelstree-sitter==0.26.0andtree-sitter-cpp==0.23.4Why
Token scanning could confuse C++ syntax such as template angle brackets, operator declarations, macros, and compile-time contexts with executable expressions. The AST-backed locator removes those false candidates without changing IDs that still point to the same runtime expression.
User impact
probhub mutationnow produces a smaller, more auditable plan and fails closed when the pinned parser cannot safely locate the source. Existing exclusion IDs continue to match when their runtime expression remains valid; old token-only false positives becomeunmatched. Mutation remains advisory and is not a build gate.Validation
npm run check: 702 passed, 30 skippednpm run pack:check:probhub=222,probhub-skill=5git diff --checkpassedphtestnine-problem Schema v1 lint passed; worktree remained cleanultraread-only review found no remaining merge blockerFollow-up boundary
The ROADMAP retains native parser worker isolation and
typeid(type)grammar compatibility as separate follow-up work.