Error, Failure Classifier, and Alert Matrix
Normative failure taxonomy in audit_diagnostics.CommandFailureClassifier
(audit_diagnostics.py).
1. Priority Failure Classifier (CommandFailureClassifier.classify)
| Prio |
FailureCategory |
Env |
Signals / Exit Codes |
Runbook |
| 0 |
CLEAN_PASS |
false |
returncode == 0 |
— |
| 1 |
TIMEOUT |
true |
rc == -1, timed out, TimeoutExpired |
Triage |
| 2 |
MISSING_BINARY |
true |
rc == 127, command not found, WinError 2 |
Triage |
| 3 |
AUTH_FAILURE |
true |
password authentication failed, Access denied for user |
Credentials |
| 4 |
CONNECTION_ERROR |
true |
Connection refused, Can't connect to, No route |
Remote Audits |
| 5 |
PERMISSION_DENIED |
true |
rc == 126, Permission denied, EACCES |
Triage |
| 6 |
SYNTAX_ERROR |
false |
syntax error, unknown option, bad flag |
SARIF CI |
| 7 |
UNKNOWN_ERROR |
true |
Unmatched non-zero exit (1, 2, 255) |
Triage |
2. Control-Level Triage (classify_control_result)
| Status |
Behavior |
Category |
Runbook |
PASS / SUCCESS |
Clean pass |
CLEAN_PASS |
— |
MANUAL / MANUEL |
Manual review |
MANUAL_ASSESSMENT_REQUIRED |
— |
ERROR |
Passes output to classify() |
Env category |
Triage |
FAIL / FAILED |
Re-classifies env/auth patterns; else security |
SECURITY_NON_COMPLIANCE or env |
Credentials |