Create an input-content gate for model-visible text outside a Mastra
processor call. Denials and evaluator failures return opaque outcomes;
policy names, reasons, inspected text, and thrown values remain internal.
Every policy must be able to run here: this gate only ever evaluates the
input phase on the answer channel, so a policy selecting anything else is
a silent hole at a security boundary rather than a harmless no-op, and is
rejected at construction.
Create an input-content gate for model-visible text outside a Mastra processor call. Denials and evaluator failures return opaque outcomes; policy names, reasons, inspected text, and thrown values remain internal.
Every policy must be able to run here: this gate only ever evaluates the input phase on the answer channel, so a policy selecting anything else is a silent hole at a security boundary rather than a harmless no-op, and is rejected at construction.