Skip to content

fix(core): mask the tombstone reason and preview, add hash-only tombstones (#1669) - #1677

Merged
ajianaz merged 1 commit into
developfrom
fix/tombstone-reason-privacy-1669
Nov 4, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/tombstone-reason-privacy-1669

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

What

A rejected-value tombstone (forget --reason wrong, supersede --reason wrong) now passes its reason and its 120-character preview through the privacy filter before storing them (masked in redact and strict alike, so the forget is never refused; off keeps the text as given). New [privacy] tombstone_preview = false keeps the hash only: empty preview, the value is still refused. The docs list what survives a forget as wrong.

Why

The user forgot a value on purpose, and wrong: the token is ... stayed in clear text in the tombstone, after the prune and in export --full. The tombstones are unreleased (develop only, after v0.22.1), so no migration; the CHANGELOG says rows stored earlier keep what they hold.

Testing

  • A reason with a secret is stored masked, in redact and strict; the refusal message carries the masked reason.
  • A secret in content that reached the store unfiltered is masked in the preview.
  • A hash-only tombstone stores no preview, still refuses the value, and survives export --full then import --full.
  • Settings parsing for tombstone_preview. cargo clippy --workspace --all-targets clean; cargo test -p uteke-core --lib -- tombstone privacy passes (58); docgen output unchanged.

Closes #1669

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 1927eec into develop Nov 4, 2026
15 checks passed
@ajianaz
ajianaz deleted the fix/tombstone-reason-privacy-1669 branch November 4, 2026 06:46
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.

fix(core): a tombstone keeps the free-text reason and a preview of a forgotten memory

1 participant