Graphorin API reference v0.12.1
Graphorin API reference / @graphorin/agent / filters / bySensitivity
Function: bySensitivity()
function bySensitivity(args?): DescribedFilter;Defined in: packages/agent/src/filters/index.ts:189
Drop messages that carry the literal [REDACTED:secret] redaction token when maxTier sits below 'secret'.
WEAK CONTRACT - read before relying on it at a trust boundary (AGENT-FIL-01): MessageContent has NO part-level sensitivity / secret / inboundTrust annotation in the current surface, so this filter can only key on the redaction token the framework's redaction layer stamps into text. Content that was never redaction-stamped - an annotated-elsewhere secret, plaintext credentials the model echoed - passes through untouched. It is a best-effort hygiene filter, NOT a sensitivity gate; do not treat a sub-agent handoff filtered by it as a secrecy boundary. Operators that need a real gate must scrub content upstream (redaction middleware, withRedaction) or compose a custom predicate over their own metadata.
Parameters
| Parameter | Type |
|---|---|
args | { maxTier?: Sensitivity; } |
args.maxTier? | Sensitivity |