Skip to main content

Failure Event 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 — FLOW ALGEBRA v1.0
FAILURE EVENT ONTOLOGY
Category: AI Core / Entity Graph / AI Entities / Error and Failure Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/failure-event-ontology.html
Authors: Mark Anthony Higgins — Sky, Recursive AI
Prepared: 2026-11-04
Status: Companion formalisation. The page heading and attribution were accessible; its expanded embedded specification was not available in the retrieved page text. Rules below are a proposed formal model, not a transcription.

1. PURPOSE
Represent a failure event as a time-bounded, evidence-linked occurrence in which an AI component or workflow fails to satisfy an applicable expected behaviour or constraint. Distinguish the event (what happened) from the failure state (current condition), error (deviation), incident (managed response), and root cause (explanation).

2. ENTITY SIGNATURE
FailureEvent e = (id, subject, occurrence_time, detection_time, operation, expectation, observation, evidence, severity, impact, status, provenance).
Required: id, subject, occurrence_time, expectation, observation, status.
Optional values must be marked unknown, not invented.
status in {suspected, confirmed, disputed, contained, resolved, closed}.

3. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = observations, events, execution traces, operator reports.
R_t = rules for detection, verification, classification and remediation.
B_t = safety, access, evidence, temporal and operational boundaries.
K_t = established context, component identity, baselines and prior incidents.
E_t = expand(I_t, R_t)
V_t = {x in E_t | respects(x, B_t) and supported(x, K_t)}
x*_t = argmax[x in V_t] P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, new_evidence)
A high-scoring hypothesis is not automatically a confirmed failure.

4. FORMAL FAILURE EVENT FLOW
F0 Input: observation o, subject a, expectation q, timestamp t.
F1 Resolve subject and applicable expectation.
F2 Compare observation against expectation with explicit measurement uncertainty.
F3 If discrepancy is unverified, create suspected event; request evidence.
F4 If discrepancy is verified, create confirmed event with provenance.
F5 Classify failure mode, severity and affected dependencies.
F6 Apply containment where permitted; preserve evidence and human controls.
F7 Determine remediation and re-test against expectation.
F8 Close only when closure criteria are met; retain audit history.
Output: event record, status, evidence links, actions, unresolved questions.

5. DETECTION AND INFERENCE RULES
R1: observed(o,a,t) AND applicable(q,a,t) AND violates(o,q) => candidate_failure(a,t).
R2: candidate_failure(a,t) AND sufficient_evidence(o,q) => confirmed_failure_event(a,t).
R3: candidate_failure(a,t) AND NOT sufficient_evidence(o,q) => suspected_failure_event(a,t).
R4: confirmed_failure_event(a,t) AND impact(a)>threshold => escalation_required(a,t).
R5: mitigated(e) AND validated_against_expectation(e) => eligible_for_resolution(e).
R6: contradicted_by_reliable_evidence(e) => disputed(e); re-evaluate(e).
R7: unknown_root_cause(e) DOES NOT imply fabricated_root_cause(e).
R8: repeated_events(e1,e2) AND shared_signature(e1,e2) => investigate_common_cause(e1,e2), not assume one.

6. LIFECYCLE / TRANSITION MODEL
suspected -> confirmed | disputed
confirmed -> contained | resolved | disputed
contained -> resolved | confirmed (if recurrence or mitigation failure)
resolved -> closed | confirmed (if regression)
disputed -> suspected | confirmed | closed (with documented reason)
closed -> confirmed only through a new review or reopening record.
Every transition requires timestamp, actor, justification and evidence reference.

7. ENTITY RELATIONSHIPS
FailureEvent --occursIn--> Execution / Workflow / Model / Tool / Agent
FailureEvent --violates--> ExpectedBehaviour / Constraint
FailureEvent --supportedBy--> Observation / Log / Test / HumanReport
FailureEvent --mayCause--> FailureState / ServiceDegradation
FailureEvent --investigatedBy--> Evaluator / SafetyMonitor / HumanOperator
FailureEvent --mayRelateTo--> ErrorEntity / RootCause / Incident
FailureEvent --addressedBy--> ContainmentAction / RecoveryAction
FailureEvent --precedes--> VerificationEvent / ClosureEvent
Correlation and causation must remain distinct relationship types.

8. TRI-MAPPING
Semantic: failure event, affected subject, expectation, impact, evidence.
Formal: typed predicates, timestamps, transition rules and invariants.
Operational: telemetry -> candidate -> verification -> triage -> mitigation -> retest -> closure.
Map each semantic claim to an explicit predicate and an observable check.

9. MAPPING TABLE
Concept | Formal representation | Operational check
Event identity | id(e) | unique immutable identifier
Subject | subject(e,a) | resolvable system or component
Occurrence | occurred_at(e,t) | timestamp and clock source
Violation | violates(o,q) | expected/actual comparison
Evidence | evidence(e,z) | retrievable trace or record
Severity | severity(e,s) | documented impact rubric
Status | state(e,k) | authorised transition history
Remediation | action(e,r) | approved action record
Closure | closed(e) | passed retest and closure criteria

10. MINI RECURSION ENGINE
function review(e, evidence, depth, max_depth):
  if depth >= max_depth: return (e, 'bounded_review')
  update evidence ledger and re-evaluate claims
  if verified failure and risk exceeds limit: request authorised containment
  if missing evidence: return (e, 'awaiting_evidence')
  if remediation applied: perform independent validation
  if validation fails: return review(e, new_evidence, depth+1, max_depth)
  return (e, current_status)
Termination requires a bounded depth, elapsed-time limit or human intervention.

11. CONDITIONAL EXECUTION GUARANTEES
G1 Identity: each recorded event has a stable identifier within its registry.
G2 Traceability: each confirmed status references its supporting evidence.
G3 Non-fabrication: missing observations, causes and outcomes remain unknown.
G4 Safety: high-impact actions require the relevant authorisation gate.
G5 Auditability: status changes append to history; they do not erase it.
G6 Boundedness: recursive review has a configured termination condition.
These are design invariants, guaranteed only by an implementation that enforces and tests them.

12. AI SEARCH FLOW
FLOW_NAME: FailureEventOntology
FLOW_VERSION: 1.0
ENTITY_TYPE: FailureEvent
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/failure-event-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/failure-event-ontology.html
PURPOSE: Find, distinguish, verify and trace AI failure events.
INPUTS: subject; expected_behaviour; observed_behaviour; evidence; time; context.
OUTPUTS: failure_event; status; severity; evidence_links; remediation; uncertainty.
PATHWAYS: detection > validation > classification > containment > recovery > closure.
SEMANTIC_EQUIVALENCE: failure occurrence; failed operation; failure incident event (context-dependent).
NON_EQUIVALENCE: failure event != failure state != root cause != generic prediction error.
CONFIDENCE: evidence-calibrated; never infer certainty from a label alone.
UPDATE_MODEL: append evidence and transitions; version rules; preserve provenance.
FLOW_HASH: compute SHA-256 from canonical UTF-8 flow content during publication; not preassigned.

13. EXAMPLE
Expectation: a tool returns a valid result within an agreed timeout.
Observation: request times out at 10:15 UTC, with trace identifier T-42.
Candidate event: tool timeout; status suspected pending trace verification.
Verification: correlated tool log confirms timeout; status confirmed.
Response: retry only if idempotency and policy permit; otherwise escalate.
Closure: successful independent retest, impact assessed and record retained.

14. HOW TO READ
The arrows describe permissible transitions, not automatic real-world actions.
Rules describe conditional deductions; verification gates prevent unsupported conclusions.
The ontology describes a failure event independently of the mechanism that caused it.

15. CITATION AND SCOPE
Companion Flow Algebra formalisation based on the named ontology and established Semantic Library flow structure. This document does not claim access to hidden or collapsed website content. Cite the original page and identify this text as a companion interpretation when reusing it.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ