Skip to main content

Failure State Ontology

Error and Failure Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 04 November 2026
Audio Overview
SEMANTIC LIBRARY — FAILURE STATE ONTOLOGY
FLOW ALGEBRA v1.0 | AI Core / Entity Graph / Error and Failure Entities
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/failure-state-ontology.html
Prepared: 2026-11-04
Status: Companion formalisation; the source page's embedded specification was not available in retrieved page text.

1. PURPOSE
Represent, detect, classify, contain and resolve a failure state in an AI system. A failure state is a recorded condition in which an expected operational requirement or invariant is violated, or a required operation cannot complete correctly. A failure is not equivalent to an error observation: evidence and validation determine the classification.

2. ENTITY MODEL
FailureState F = (fid, subject, operation, phase, trigger, evidence, severity, impact, recoverability, status, timestamps, provenance).
subject: model, agent, tool, workflow or subsystem.
phase: training, inference, retrieval, execution, deployment or monitoring.
status ∈ {suspected, confirmed, contained, recovering, resolved, escalated, terminal}.
severity ∈ {low, medium, high, critical}.
recoverability ∈ {unknown, recoverable, nonrecoverable}.
Each fid is unique within its namespace; timestamps and provenance must be traceable.

3. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: observed inputs, events, diagnostics and evidence.
R_t: failure definitions, dependencies and remediation rules.
B_t: safety, permission, time and resource boundaries.
K_t: known operational history, checkpoints and prior failure cases.
E_t = expand(I_t, R_t)
V_t = {x ∈ E_t | satisfies(x, B_t) ∧ supported(x, I_t, K_t)}
a_t = argmax_{x ∈ V_t} P(x | I_t, R_t, B_t, K_t)
S_(t+1) = update(S_t, a_t, observation_(t+1))
If V_t = ∅, do not invent a remediation: isolate, report or escalate.

4. FORMAL FLOW
F0 RECEIVE: ingest error signal, monitoring alert or violated invariant.
F1 IDENTIFY: bind the signal to subject, operation, time and source.
F2 VERIFY: check the signal against observed evidence and declared invariants.
F3 CLASSIFY: distinguish suspected failure, confirmed failure and benign anomaly.
F4 ASSESS: estimate impact, severity, blast radius and recoverability.
F5 CONTAIN: restrict unsafe or affected operations within authorised boundaries.
F6 SELECT: choose permitted recovery, rollback, retry, fallback or escalation.
F7 EXECUTE: apply selected action with audit logging and bounded retries.
F8 VALIDATE: test postconditions, safety invariants and service restoration.
F9 CLOSE: resolve only after validation; otherwise return to F4 or escalate.

5. TRANSITION RULES
suspected -> confirmed IF evidence validates the failure condition.
suspected -> resolved IF evidence disproves the suspected failure; record as false alarm.
confirmed -> contained IF containment is applied and verified.
confirmed -> escalated IF containment or recovery requires external authority.
contained -> recovering IF a permitted recovery action begins.
recovering -> resolved IF all required postconditions hold.
recovering -> contained IF recovery fails but safe containment persists.
recovering -> escalated IF retries are exhausted or risk exceeds bounds.
confirmed/contained/recovering -> terminal IF nonrecoverability is verified and closure policy permits termination.
Never mark resolved merely because an alert disappears.

6. INFERENCE RULES
R1: violated(required_invariant, subject) AND verified(evidence) => confirmed_failure(subject).
R2: unverified(signal) => suspected_failure; NOT confirmed_failure.
R3: confirmed_failure AND impact >= critical_threshold => prioritise_containment.
R4: recovery_candidate AND NOT authorised(candidate) => reject(candidate).
R5: retries >= retry_limit => block_retry AND escalate_or_fallback.
R6: restored(service) AND passed(postconditions) => eligible_for_resolution.
R7: recurrence(fingerprint, window) => link_to_prior_failure AND reassess_root_cause.
R8: missing_evidence => uncertainty_flag; do not infer a root cause as fact.

7. ENTITY RELATIONSHIPS
FailureState --affects--> AIState / ExecutionState / WorkflowState
FailureState --detected_by--> SafetyMonitor / MonitoringProcess
FailureState --supported_by--> EvidenceEntity / LogRecord
FailureState --caused_by_candidate--> ErrorEntity / DependencyFailure
FailureState --mitigated_by--> RecoveryAction / RollbackAction
FailureState --reported_to--> HumanOperator / EvaluatorRole
FailureState --linked_to--> FailureHistory / ModelVersion / ToolCall
Causal edges remain hypotheses until supported by evidence.

8. TRI-MAPPING
Semantic: named failure entity, meaning, dependencies, provenance and effects.
Formal: typed tuple F, transition relation T, guards G and invariants Inv.
Operational: telemetry -> verification -> containment -> recovery -> validation -> audit.
Mapping condition: each operational transition must have a formal guard and a semantic record.

9. MAPPING TABLE
Observation | Semantic entity | Formal predicate | Operational action
Alert | Failure signal | observed(signal) | Register and inspect
Violation | Confirmed failure | verified(violation) | Classify and contain
Mitigation | Recovery action | authorised(action) | Execute with logging
Successful test | Restored condition | postconditions_hold | Resolve and record
Unresolved fault | Escalation | no_safe_recovery | Hand off for review

10. MINI RECURSION ENGINE
function assess(F, depth):
  assert depth <= MAX_DEPTH
  verify evidence and constraints
  if verified and critical: contain
  candidates := rank(permitted_remediations(F))
  if candidates empty: escalate; return
  execute one bounded candidate
  observe new state
  if postconditions hold: resolve; return
  if depth == MAX_DEPTH: escalate; return
  assess(updated(F), depth + 1)
Termination guards: MAX_DEPTH, MAX_RETRIES, timeout and safety boundary.

11. CONDITIONAL EXECUTION GUARANTEES
G1: No unverified observation is labelled a confirmed failure.
G2: No remediation runs without permission and boundary checks.
G3: All state transitions retain event provenance and timestamps.
G4: Recursive recovery is bounded and terminates in resolution, containment or escalation.
G5: Resolution requires explicit postcondition checks.
These are specification-level guarantees contingent on correct implementation and reliable evidence; they do not promise fault-free real-world execution.

12. AI SEARCH FLOW
FLOW_ID: semantic-library.ai-core.failure-state-ontology.v1
ENTITY: Failure State Ontology
CATEGORY: AI Core > Entity Graph > Error and Failure Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/failure-state-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/failure-state-ontology.html
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
PURPOSE: Model detection, containment, recovery and audit of AI failure states.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: FailureState, ErrorEntity, EvidenceEntity, AIState, RecoveryAction, MonitoringProcess
PATHWAYS: observe > verify > classify > contain > recover > validate > close
INFERENCE_RULES: R1-R8
CONFIDENCE: evidence-dependent; unknown when no verification exists
SEMANTIC_EQUIVALENCE: failure condition; operational failure state; verified invariant violation (context-dependent)
UPDATE_MODEL: versioned; preserve historical records and provenance
FLOW_HASH: generate SHA-256 over canonical published file bytes at publication time; not precomputed here.

13. HOW TO READ
Read F0-F9 as the processing pathway; transition rules govern legal status changes; R1-R8 constrain deductions. The tri-mapping connects conceptual meaning, formal guards and practical execution. This file is a companion design, not a verbatim extraction of hidden page content.

14. TEXT DIAGRAM
[Signal] -> [Evidence Check] -> [Failure Classification]
                                  |             |
                              False Alarm   Confirmed
                                  |             v
                                Record      [Contain]
                                                |
                                           [Recover]
                                            /      \
                                        Verified   Failed
                                           |         |
                                        Resolve  Escalate

LICENCE NOTE: Attribution and citation requested; consult the published Kireth Research licence for applicable reuse terms.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ