Repository navigation
fix(mcp): preserve memory in compact retrieval responses - #63
Draft
dannyward630 wants to merge 1 commit into
Draft
dannyward630 wants to merge 1 commit into
dannyward630 wants to merge 1 commit into
Conversation
This branch has not been deployed
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
Fixes #62 by allowing the budget reducer to reduce complete lanes and retain the projection request needed to build a continuation for visible items. Empty lanes no longer receive cursors, each continuation cursor is emitted once, and static drill-down routes move to
help(topic="engineering_memory"). If the response cannot fit any memory item, the tool raises anMCPServiceContractErrorwith the empty-response estimate and limit instead of returning an empty success. No schema or contract version bump is needed.Validation
uv run pre-commit run --all-files— passed.uv run pre-commit run --hook-stage pre-push --all-files— passed: 4,254 passed, 2 skipped, 99.16% total coverage.uv run --with zensical==0.0.46 zensical build --clean --strict— passed.Docs and release notes
Updated the changelog, README, and MCP contract/reference docs.
AI assistance and review status
Prepared with Codex (GPT-6), which implemented the patch and ran the checks above. This is a draft pending human verification of the tests, contract implications, documentation, and final diff. The repository requires substantive human review before merge.