Eight stages, two hard boundaries
- 01
VALIDATE
Strict schemas, authentication, field bounds, body-size checks, and policy lookup reject malformed or unauthorized input.
- 02
DETECT
Priority-ordered patterns, checksums, IP validation, and a small local gazetteer produce non-overlapping sensitive spans.
- 03
MINIMIZE
Task keywords identify the fact groups needed for the stated job; unrelated sensitive lines can be removed in stricter modes.
- 04
TRANSFORM
Policy applies keep, remove, pseudonymize, generalize, conceptualize, block, or local_only to each span.
- 05
ROUTE OR SHARD
Risk selects local-only or transformed routing. SHARD can split paragraphs into two to eight bounded purpose groups.
- 06
INFER
Demo mode returns synthetic output. A self-hosted operator may configure a non-streaming OpenAI-compatible upstream.
- 07
GUARD + STITCH
Credential-like output hard-fails. New direct identifiers are replaced; only authorized current-session placeholders may reconstruct.
- 08
RECEIPT
A SHA-256-linked record stores policy, counts, route, timing, reduction, and integrity metadata—not source or mappings.
What crosses each line
| LINE | MAY CROSS | MUST NOT CROSS |
|---|---|---|
| Source → compiler | Authorized raw source and exact task | Unbounded unrelated datasets |
| Compiler → upstream | Protected messages approved by route | Raw identifiers, credentials, Vault mappings |
| Upstream → output guard | Model result | A bypass around output inspection |
| Application → Vault | Authorized placeholders plus session credentials | Credentials inside agent or model context |
| Operation → receipt store | Counts, hashes, timing, route, policy | Prompts, protected text, source values, mappings |
Some outcomes should stop the workflow
- A missing or materially ambiguous purpose for sensitive external processing.
- A local_only route for the selected policy and data class.
- A detected credential, private key, seed phrase, or other blocked secret.
- An unavailable gateway or an MCP tool error.
- Output that triggers the credential guard or cannot be safely inspected.
