[codex] isolate Tree-sitter mutation parsing - #72
Merged
Conversation
greenthree
marked this pull request as ready for review
August 11, 2026 07:19
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
mutation_parser_worker.pysubprocess.doctor, forward mutation deadlines/cancellation, and include the worker in npm packaging and documentation.Why
Native Tree-sitter bindings should not run in the long-lived Core process. A bounded worker keeps parser crashes, malformed protocol output, resource exhaustion, and cancellation isolated while preserving deterministic mutation IDs and fail-closed behavior.
Validation
tests.test_mutation_syntax: 15 passedtests.test_mutation: 24 passedtests.test_core+tests.test_npm_packages: 49 passedprobhub223 files, compatibility package 5 files)npm run pack:check: passednpm run release:check: passedgit diff --check: passedphtestnine-problem lint: passedThe full
npm run checkwas attempted but itsnpm testphase exceeded the 15-minute local timeout in an unrelated long-running interactive fixture; the residual test tree was terminated and no test processes remained.Scope
This PR does not add
typeid(type)compatibility, WebUI integration, Checker/Interactor integration, Legacy support, or a mutation hard gate for build.