GuardrailFinding interface
Represents a single security finding detected during guardian evaluation. Multiple findings may be emitted for a single guardrail span.
Properties
| policy |
The decision type for this specific policy finding. |
| policy |
Identifier of the policy that triggered the finding. |
| policy |
Human-readable name of the triggered policy. |
| policy |
Version of the policy. |
| risk |
The category of security risk detected (required). |
| risk |
Non-content metadata about the detected risk (MUST NOT contain PII). Example values: "field:bcc", "pattern:ssn", "count:3". |
| risk |
Numeric risk/confidence score (0.0 to 1.0). |
| risk |
The severity level of the detected risk (required). |
Property Details
policyDecisionType
The decision type for this specific policy finding.
policyDecisionType?: string
Property Value
string
policyId
Identifier of the policy that triggered the finding.
policyId?: string
Property Value
string
policyName
Human-readable name of the triggered policy.
policyName?: string
Property Value
string
policyVersion
Version of the policy.
policyVersion?: string
Property Value
string
riskCategory
The category of security risk detected (required).
riskCategory: string
Property Value
string
riskMetadata
Non-content metadata about the detected risk (MUST NOT contain PII). Example values: "field:bcc", "pattern:ssn", "count:3".
riskMetadata?: string[]
Property Value
string[]
riskScore
Numeric risk/confidence score (0.0 to 1.0).
riskScore?: number
Property Value
number
riskSeverity
The severity level of the detected risk (required).
riskSeverity: string
Property Value
string