~/.halfspan/redaction.json before opening an upload destination. When enabled, its policy applies to span share, terminal sharing, installed agent and Git hooks, span import, and span hook ingest.12just install-deps just redaction-model "$HOME/.halfspan/models/rampart"
span executable does not bundle them.~/.halfspan/redaction.json, substituting the absolute paths to Bun, your checkout, and the prepared model:1234567891011{ "version": 1, "command": [ "/absolute/path/to/bun", "/absolute/path/to/halfspan/packages/redaction/src/cli.ts", "--model", "/absolute/path/to/.halfspan/models/rampart" ], "omit": [], "timeout_ms": 30000 }
command -v bun to locate Bun. Keep these paths available to background agent hooks. The command runs directly with the supplied arguments, without a shell. One local worker loads the model for an upload operation and handles its batches sequentially. The worker's diagnostics are withheld from CLI errors because they could contain input text.HALFSPAN_REDACTION_CONFIG. An explicitly selected missing file, invalid policy, failed worker, timeout, malformed response, or invalid sanitized batch blocks upload. To make a missing policy an error in automation, always set this variable.privacy_omitted_code_attribution and capture omitted retains their event identifiers and records the omitted evidence.omit to withhold whole content categories. Supported categories are title, text, body, preview, and code_attribution. Omitting text substitutes [omitted] while preserving the event. Omitting bodies removes them and marks capture as omitted. Omission happens before the worker receives the batch's text.12345{ "version": 1, "command": [], "omit": ["title", "text", "body", "preview", "code_attribution"] }
12just redaction-replay "$HOME/.halfspan/models/rampart" just cli-redaction --model "$HOME/.halfspan/models/rampart"
--baseline /absolute/path/to/prior/span to cli-redaction to compare upload latency with a prior CLI binary.1{"version":1,"texts":["Text to filter", "Another field"]}
timeout_ms is the per-request deadline, including model initialization for the first request; its default is 30,000 and maximum is 60,000.