Skip to content

Move served-quote shaping into retrieve - #7

Merged
Yanir-R merged 1 commit into
mainfrom
claude/project-thread-gzszoa
Nov 12, 2026
Merged

Yanir-R merged 1 commit into
mainfrom
claude/project-thread-gzszoa

Conversation

@Yanir-R

@Yanir-R Yanir-R commented Nov 12, 2026

Copy link
Copy Markdown
Owner

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 and served_quote() now live in retrieve, the module that owns what an assistant may see. mcp_server just calls retrieve.served_quote. Behaviour is unchanged.

Why

docs/ARCHITECTURE.md makes retrieve the one read policy and mcp_server a 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 to test_retrieve.py). The module table in docs/ARCHITECTURE.md is updated.

Checklist

  • Every commit is signed off (git commit -s), see CONTRIBUTING.md (repository owner is exempt from the DCO check)
  • No personal data, real paths, hostnames or credentials in code, tests, fixtures or docs
  • Test fixtures use invented data only
  • No duplicated logic; the change respects the module boundaries in docs/ARCHITECTURE.md
  • Docs updated if behavior or privacy claims changed

Generated by Claude Code

@Yanir-R Yanir-R self-assigned this Nov 12, 2026
@Yanir-R
Yanir-R merged commit 7624e7c into main Nov 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants