Skip to main content

Module redact

Module redact 

Source
Expand description

Redaction completeness verification.

Verifies that all item.redact events have been fully applied: redacted content must be absent from projection rows, FTS5 index, and comment bodies.

§Approach

  1. Replay the event log to find all item.redact events and their targets.
  2. For each redaction, look up the original event content.
  3. Check every query surface (projection, FTS5, comments) for residual content.
  4. Report any failures with precise location information.

Structs§

RedactionFailure
Details of one failed redaction check.
RedactionReport
Report from verifying redaction completeness.

Enums§

ResidualLocation
A location where residual (un-redacted) content was found.

Functions§

verify_item_redaction
Verify redaction for a single item.
verify_redactions
Verify that all item.redact events have been fully applied.