Define Hook Failure Policy
BOUNDARY-DEFINE-HOOK-FAILURE-POLICY
Summary
Specify whether each hook class blocks, retries, logs and continues, rolls back, or leaves partial state. This gives extension points predictable failure behavior without forcing one global answer onto every hook.
Rule
Define hook failure policy.
Why
Hooks can fail before, during, or after the main operation. If policy is implicit, callers cannot know whether a failed hook blocks the operation, retries, logs and continues, rolls back, or leaves partial state.
Helps
- Makes extension, callback, and automation behavior predictable under failure.
Limits
Different hooks can have different policies. Name the policy for each hook class instead of forcing one global answer.
Agent Instruction
Define hook failure policy because hooks can fail before, during, or after the main operation.Mechanisms
Supported by hook result types, retry policy, rollback tests, structured errors, and docs that state whether hooks are advisory or blocking.