Mask secrets in traces
Apply explicit masking rules before Outpost saves or delivers sensitive strings.
Save the following files together and run node redact.ts. The observer prints [REDACTED] instead of the sample credential; no model call is needed.
Apply a masking rule
Section titled “Apply a masking rule”Create an observer to inspect the command output.
Pass redact to the workflow. Matching strings are masked before every local or inherited receiver, including journals and older observation callbacks. dispatch() and createObservation() accept the same policy.
Protect captures and reports
Section titled “Protect captures and reports”The rules also mask supported harness/CLI transcripts, sidecars and decoded Copilot/Kimi conversation bundles before archival. Binary bundle entries are refused when masking is enabled. result.report() masks its snapshot.
Know what stays unmasked
Section titled “Know what stays unmasked”- Prompts sent to the agent and returned task values keep their original content.
- Repository files, checkpoints, old archives, application logs, native CLI sandbox files and temporary transfer staging are not rewritten.
- Rules match individual strings. They neither join streamed fragments nor discover unknown keys or arbitrary encodings.
Choose patterns for your credentials, avoid emitting secrets in fragments and prefer a private ephemeral agent home. Keep credentials out of prompts.
API : ObservationHubOptions · DispatchOptions · WorkflowOptions.

