Skip to main content

Module redact

Module redact 

Expand description

Category-based redaction for durable memory content.

redact rewrites matches for the enabled RedactCategory set to [REDACTED:<category>] placeholders before content is persisted. The write path applies it only when [memory.policy].redact_on_write is enabled; the category list comes from [memory.policy].redact_categories.

Structs§

RedactionHit
A single redaction: the category and the replaced byte range.

Enums§

RedactCategory
A redactable content category.

Functions§

redact
Replace matches for the enabled categories with [REDACTED:<category>] placeholders. Returns the rewritten content and the list of replacements made.