Secret & PII Redactor
Scrub secrets before the model sees them.
Agents that debug from logs paste whatever the log contains: customer emails, bearer tokens, cloud keys. This guide runs a real error log through the Secret & PII Redactor and shows what comes back — and what pattern matching cannot catch.
This is the exact input and an excerpt of the report Secret & PII Redactor returns for it. The full report also carries input and report SHA-256 hashes for verification.
{
"text": "2026-11-20 14:02:11 ERROR checkout failed for maria.lopez@example.test (card 4111 1111 1111 1111)\n request from 198.51.100.24, header Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyXzQyIn0.c2lnbmF0dXJlX2hlcmU\n retrying with AWS key AKIAIOSFODNN7EXAMPLE; customer phone +44 20 7946 0958\n2026-11-20 14:02:12 INFO retry for maria.lopez@example.test succeeded"
}{
"redactedText": "2026-11-20 14:02:11 ERROR checkout failed for [EMAIL_1] (card [CARD_NUMBER_1])\n request from [IPV4_1], header Authorization: Bearer [JWT_1]\n retrying with AWS key [API_KEY_1]; customer phone [PHONE_1]\n2026-11-20 14:02:12 INFO retry for [EMAIL_1] succeeded",
"uniqueValues": {
"email": 1,
"card_number": 1,
"ipv4": 1,
"jwt": 1,
"api_key": 1,
"phone": 1
},
"redactionCount": 7
}No account is needed to pay: an agent with its own wallet answers the HTTP 402 quote, or a human approves each payment through the local Agent Spend bridge. Payment settles before delivery; there is no automatic refund.
The four lines above hold six different sensitive values: an email address (twice), a test card number, a client IP, a JWT in an Authorization header, an AWS access key id and a phone number. Each would be copied verbatim into a prompt, a support ticket or an embedding.
The redacted text keeps the structure the model needs to reason about the failure: both lines mention [EMAIL_1], so it can still tell that the retry was for the same customer. Seven spans are replaced; six distinct values get six placeholders.
The report also lists every span with its category and position in your original text, so you can map a placeholder back locally — the original values are never returned.
Card numbers must pass the Luhn check and IBANs the mod-97 check, so order numbers and dates are left alone. API keys are matched by known prefixes (sk-, ghp_, xox…, AKIA, AIza, sk_live_), plus JWTs, bearer tokens and PEM private keys.
Pattern matching does not find names, postal addresses or personal details written in prose: "Maria from Valencia" stays as written. Treat redaction as one layer, not as a compliance guarantee.
Call the redactor before any step that leaves your boundary: before an LLM call, before writing to a log store, before creating a ticket. Agents pay per call in USDC through x402 or the local Agent Spend bridge, with a human approving each payment.
No. The report contains placeholders, categories and positions, never the matched values. Input and result bodies are not stored.
Yes. Pass categories, for example ["api_key","jwt","bearer_token"], to leave emails and phone numbers untouched.
No. It is pattern-based. Free-text personal data needs a different approach and a human review.
0.011112 USDC per call on Base mainnet, including the platform fee. The exact 402 quote is authoritative.
Scrub secrets before the model sees them.
A local MCP bridge that proposes each paid call and waits for you to approve it.
Split documentation into retrieval chunks that keep their heading path, never cut a fenced code block and carry stable ids and line ranges for citations.
Check a batch of raw model outputs against one JSON Schema and get the valid rate, the outputs that needed repair, and the exact paths and rules that fail most often.
Check MCP, OpenAI function and Anthropic tool definitions for short descriptions, undocumented arguments, open objects and OpenAI strict-mode problems, with JSON-pointer paths for every finding.