Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / GuardrailAction
Type Alias: GuardrailAction
ts
type GuardrailAction = "block" | "warn" | "rewrite";Defined in: packages/security/src/guardrails/types.ts:33
Action requested by a failing guardrail.
'block'— the runtime refuses to proceed and surfaces the failure as a structured error.'warn'— the runtime continues but records a WARN-level event; suitable for telemetry-only rules.'rewrite'— the runtime substitutes the suppliedrewritevalue before continuing (e.g. PII redaction with a masked output).