docs(design): kernel-only extraction, resolution binding model, greenfield Rust sketch - #16
Merged
Conversation
…field Rust sketch Three linked design docs recording the 2026-09-11 assessment of a Rust rewrite against the fork's PR history, the espn-draft retrieval research and the query audit log: - kernel-only-extraction-plan.md: remove the WASM path; phases for the error-recovery flip, SFC extractors calling the kernel, a parse-tree service for the three read-time consumers, tail-language port/drop decisions, and golden dumps replacing the parity oracle. - resolution-binding-model-plan.md: a per-file bindings table emitted by extraction replaces the five regex families that answer export and binding status (colbymchenry#1721) and ends the colbymchenry#1566/colbymchenry#1790/colbymchenry#1794/colbymchenry#1844 cycle. - greenfield-rust-core-sketch.md: what a from-scratch core must reproduce, what it would buy and cost, and why it is deferred behind the two incremental plans.
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
Three linked design documents under
docs/design/recording the assessment of a from-scratch Rust rewrite, grounded in the fork's PR and issue history, the espn-draft retrieval research and the query audit log.bindingstable emitted by extraction replaces the five regex families that currently answer export and binding status (Export status is answered in three places, two of them hand-mirrored regexes colbymchenry/codegraph#1721) and the per-reference source-reading predicates behind the TypeScript: built-in Map.get/set/has calls resolve to unrelated project methods colbymchenry/codegraph#1566 → fix: prevent built-in Map calls from resolving to project methods (#1566) colbymchenry/codegraph#1790 → #1790 drops every identifier-rooted member call, not just built-in collections — 8 tests red on main colbymchenry/codegraph#1794 → fix(extraction): retain nested call evidence without guessed targets colbymchenry/codegraph#1844 cycle. Phased per language, ending with the lookup ported into the kernel.Verification
npm run check:agent-docspasses (AGENTS.md unchanged, 28824/32768 bytes).tree-sitter.ts:7378,name-matcher.ts:672,extractors.rs:359).Docs only; no engine, installer or CHANGELOG changes.