perago.GuardrailViolation#

exception perago.GuardrailViolation[源代码]#

Raised when a workspace guardrail check fails.

This is the common base class for pre- and post-task workspace check failures. The runtime maps subclasses by phase so pre-check failures become terminal Conductor failures while post-check failures remain ordinary failed attempts.

参见

PreGuardrailViolation

Raised for failed pre-task workspace checks.

PostGuardrailViolation

Raised for failed post-task workspace checks.

check_guardrails

Evaluate workspace checks against a local workspace.

Examples

>>> GuardrailViolation("required file is missing")
GuardrailViolation('required file is missing')