You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Secret redaction at ingest, opt-in locally (#23). With AGENT_HISTORY_REDACT=on, or under strict mode, recognised secrets are
replaced with typed markers like [REDACTED:aws_access_key] before anything
is chunked, hashed or embedded: private-key blocks, Anthropic, OpenAI,
GitHub, AWS, Slack, Stripe and Google keys, JWTs, Bearer tokens, URL
passwords, and password=/token:-style assignments. Matches are found on
the whole record but applied inside the original chunk boundaries, so
chunks without a secret keep their exact text and hash. Off by default
because a local index is often the only place a credential can still be
recalled; anything that leaves the machine is meant to be redacted
regardless. doctor reports the setting and the last index run's
per-class counts.
agent-history scrub [--yes] redacts secrets already in an index:
preview by default, then rewrites affected chunks in place (text, content
hash, full-text row, re-embedded vector), including orphaned chunks, and
deletes any that become duplicates. Idempotent; refuses while a reembed
is staged.