Repository navigation
Move served-quote shaping into retrieve - #7
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014dGcvWfLM1jgD3wM8CioEz
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.
Requested by Yanir
What changed
Follow-up to #6, answering the review comment that the new constants did not belong in
mcp_server.py.SERVED_QUOTE_CHARS, the email pattern andserved_quote()now live inretrieve, the module that owns what an assistant may see.mcp_serverjust callsretrieve.served_quote. Behaviour is unchanged.Why
docs/ARCHITECTURE.mdmakesretrievethe one read policy andmcp_servera thin wrapper with two tools. Quote shaping is read policy, so keeping it in the server file split that policy across two modules.How to verify
python3 -m unittest discover -s tests(88 tests pass; the quote test moved totest_retrieve.py). The module table indocs/ARCHITECTURE.mdis updated.Checklist
git commit -s), see CONTRIBUTING.md (repository owner is exempt from the DCO check)docs/ARCHITECTURE.mdGenerated by Claude Code