Skip to content

redact: align the Rust and TypeScript redactors #389

Open

Description

@ElbertePlinio

The Rust evidence redactor (crates/pickforge-cli/src/evidence.rs) and the TypeScript redactor (packages/core/src/redact.ts) use different patterns. Each one catches cases the other misses. For example, the TypeScript one handles URL query values, while the Rust one handles more JSON key forms.

Evidence written by the CLI and output stored by the MCP server can therefore be redacted differently. Both also over-redact in places: JSON keys such as tokenizer or max_tokens, and the word after "bearer" in normal text.

Found in the council review of #352.

Checklist

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions