Skip to content

Serve masked, shortened evidence quotes; fix the unconfirmed note - #6

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

Two fixes found in the first live personakit_read run on a real store.

  • Evidence quotes returned to assistants are now whitespace-normalised, have email addresses masked as [email], and are cut at a sentence or word boundary (240 chars, … when cut). The store still keeps the quote verbatim for the owner's own review.
  • The "Unconfirmed: … not yet reviewed" note is only included when at least one returned memory is not approved. Before, it was attached to every response, even when all served memories were confirmed.

Why

The live run showed raw, mid-sentence quotes that contained pasted content and a real email address, which must not reach other users' assistants. The unconfirmed note was also misleading when every memory was confirmed.

How to verify

python3 -m unittest discover -s tests (88 tests pass). New tests cover the note appearing only with an unconfirmed memory, email masking, and boundary cutting. docs/PRIVACY.md says what assistants see.

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

…ly when needed

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014dGcvWfLM1jgD3wM8CioEz
@Yanir-R Yanir-R self-assigned this Nov 12, 2026
@Yanir-R
Yanir-R merged commit 022759c into main Nov 12, 2026
4 checks passed
@Yanir-R Yanir-R mentioned this pull request Nov 12, 2026
5 tasks done
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