feat(privacy): S6 — Redaction / anonymisation workflow (#4256)
Slice 6 of epic #4256.
Goal
Offer an anonymisation/redaction step before external processing of sensitive documents. Delivers parent AC4.
Approach
- On flagged content (from S5), offer a redaction workflow before the external transfer proceeds: preview matches, redact/anonymise, then continue.
- Backend redaction transform + frontend review UI (reuse dialog patterns).
Files (approx)
security/pii/ redaction transform, frontend redaction-review component, wiring into the S3 disclosure / S4 approval flow.
Acceptance criteria delivered
- [ ] App offers an anonymisation/redaction step before external processing of sensitive docs (parent AC4)
- [ ] Redacted output verified to drop flagged content
- [ ] Tests on redaction transform + UI; diff coverage >= 80%
Dependencies
S5 (needs what to redact). Integrates with S3/S4.
Part of #4256.
Closing as won't-do. Same product direction as #4438 (confirmed with @senamakel): the redaction/anonymisation step here is an interruptive pre-transfer review dialog, which is the class of privacy UI we're deliberately keeping out (the S3 disclosure card #4437 was already reverted in #4874 as noisy/unwanted). The S5 detector (#4439) remains on main as a library; any future use should be silent/automatic, not a review prompt.