Repository navigation
Improve MCP source navigation, scoped context and compiler evidence - #29
Merged
Merged
Conversation
TNYCL
marked this pull request as ready for review
October 4, 2026 09:30
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 4, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 4, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 4, 2026
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.
Problem and resulting behavior
Coding agents were receiving bulky metadata or unrelated context before reaching the relevant source. MCP now defaults to one readable Source response containing redacted source passages or precise local locators, version pins, match signals, and bounded continuation information. Existing Full/Compact modes remain available. Retrieval and source selection do not call a generative model; semantic query embeddings retain the configured provider.
Agents can use Knowell to discover ownership and relationships, then use local search and file reads. The repository ships an adaptive
skills/knowellskill for this workflow; installation and use do not require every read to pass through MCP.Implementation
Independent local research, benchmarks and machine configuration are excluded from this PR. No new external package is introduced.
Validation
Passed locally through the shared build lock:
cargo clippy --workspace --all-targets --locked -- -D warnings.The existing managed-PostgreSQL download test remains ignored. Full CI run 37201274825 passed on final commit
aac0a861f09a2027100a1327fd1586b4f031611c: full Linux, macOS and Windows workspace suites, Linux partitions, Windows process checks, PostgreSQL 18 storage tests, MSRV, documentation, panel, clippy, distribution/tooling checks, and the required gate. The synthetic small/seed-42 grep/BM25/hybrid evaluation passed its existing baseline gate. This was a manual full-lane run using the same full-suite jobs as the merge queue; the PR has not been enqueued or merged automatically.Practical limits
Source/body budgets are estimates, not model-tokenizer guarantees. Unscoped metadata and full graph snapshots still scale with a generation; caches are count-bounded rather than byte-bounded. Rust syntax evidence is partial, and imported compiler evidence is tied to caller-attested artifacts rather than proof of compiler authenticity or complete runtime behavior. These changes do not establish billion-line capacity, agent-quality gains or measured latency/token savings.
No new live Claude coding session, paid Gemini benchmark, user database migration or main merge is performed in this revision. Those operational checks remain a separate next step.