Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/security / / deriveTaintLabel

Function: deriveTaintLabel()

ts
function deriveTaintLabel(input): TaintLabel;

Defined in: packages/security/src/dataflow/derive.ts:33

Derive the provenance label for a tool's output from its resolved trust class, source, and declared sensitivity.

  • untrusted is keyed off the ToolTrustClass: mcp-derived, web-search, and skill-untrusted produce untrusted output.
  • sensitive is true only for the 'secret' tier. 'internal' is the default tier for ordinary user content, so counting it would make the lethal-trifecta gate fire on essentially every run; operators who want a broader gate widen it via policy, not here.

Parameters

ParameterType
input{ sensitivity?: Sensitivity; source?: ToolSource; trustClass: ToolTrustClass; }
input.sensitivity?Sensitivity
input.source?ToolSource
input.trustClassToolTrustClass

Returns

TaintLabel

Stable