fix(tess): redact chat persistence and egress #725
Reference in New Issue
Block a user
Delete Branch "fix/tess-redaction"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Verification
pnpm exec turbo run typecheck lint test --force(88 successful, 0 cached)pnpm format:checkRefs #707
VERIFIED APPROVE reviewer-of-record [W-jarvis:reviewer] head
726f7ab772Evidence:
726f7ab7726ff3fe1cb8e6d7f65cdcae9b8d0802.ci/woodpecker/pr/cisuccess.redactSensitiveContent()beforebrain.conversations.addMessage(), and metadata carries redaction classifications.redactSensitiveContent(); split secret labels/values and private-key blocks are held until redaction can happen, with bounded overflow redaction.sk_...secret is not emitted, splittoken=...is not emitted, private-key block is not emitted, overflow emits[REDACTED_STREAM_OVERFLOW], and assistant persistence stores[REDACTED_SECRET]plus classification metadata. Redaction unit canaries cover secret + PII formats before persistence/egress use.git diff --checkclean; no credential material or secret values in the PR diff beyond test canaries.