Repository navigation
Review fix: refresh live MCP-03 working-tree indices and preserve read errors - #16
Merged
patrickdugan merged 2 commits intoNov 21, 2026
Conversation
…eserve MCP errors
…rrect digest separators
patrickdugan
merged commit Nov 21, 2026
7e90a2d
into
gym/mcp-local-retrieval-20261119
2 checks passed
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.
Review of Carbon's MCP-01/02/03 and Bonsai Hubrun gyms
The complete retrieval gym in PR #14 is a useful benchmark scaffold. MCP-02's synthetic learned routers show meaningful gains under difficult index layouts, while MCP-03's SWE-bench repository transfer exposes a symbol-read bottleneck. The Hubrun Bonsai comparison highlights the regression of line-bag compaction on mutable document editing.
One independently testable correctness problem is in the live Goose MCP server:
MCP/mcp03/goblin_server.pycaches a full source/AST/index by directory forever, regardless of edits made during an agent session. A subsequentread_symbolcan return old source after a patch or new file. It also wrapsCodeEnv.read_symbolerrors withisError: false.Changes
SKIP_DIRS; both snapshot and index refresh after edits, additions or deletions.worktree_revisionincluded with packet/read result so downstream traces can distinguish generations.isErrorfromCodeEnvon invalid symbol reads.Evidence limits and follow-up
The revision key uses metadata for ordinary filesystem freshness, not a cryptographic content digest. For an evaluation source lock, use a pinned git commit or a SHA-256 content manifest. Real model performance is unaltered and has not been rerun. See
MCP/mcp03/WORKTREE_CACHE_REVIEW.md.Additional prioritized findings for PR #14 review: persistent typed negative-evidence/edit-state ledger for Hubrun compaction, explicit read-symbol utility training to remedy MCP-03 symbol starvation, and clean separation between gold-file localization and native SWE-bench patch resolution.
This PR targets the MCP gym feature branch rather than
master, to allow Carbon to integrate it without pulling the entire 248-file gym PR ahead of review.