Infrastructure · Data Structures
Exception
Runtime anomaly signal
Definition
Mechanism
A signal indicating that the standard execution flow has encountered a critical anomaly or invalid State. Must be handled explicitly by a CircuitBreaker or FailClosed policy to prevent system corruption.
Invariants
- Classifies the anomaly by `error_code`.
- Must be handled by CircuitBreaker or FailClosed, never merely observed.
Risks
Failure modes
Swallowed
the signal is caught and discarded, so the invalid State continues unhandled.
Over-broad code
one `error_code` covers unrelated anomalies, so no handler can dispatch on it.
Relationships
Builds on
References
Fail-fast protection against cascading failures
Default-deny policy for uncertain states
System condition at time T
Used by
References
Formal state machine governing task progression
Reference
Data schema
{
"type": "object",
"required": [
"error_code",
"message"
],
"properties": {
"error_code": {
"type": "string",
"description": "Standardized failure ID"
},
"message": {
"type": "string",
"description": "Human-readable description"
},
"stack_trace": {
"type": "array",
"description": "Execution context at failure"
},
"severity": {
"type": "string",
"enum": [
"Fatal",
"Error",
"Warning"
]
}
}
}