Skip to main content

Model Error 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
MODEL ERROR ONTOLOGY — FLOW ALGEBRA v1.0
Semantic Library | AI Core > Entity Graph > AI Entities > 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/model-error-ontology.html
Generated: 2026-11-04
Status: Companion formalisation; source page exposes title and interpretation note, not full underlying specification.

1. PURPOSE
Represent a model error as a typed, evidence-linked deviation between expected and observed model behaviour, with bounded diagnosis, mitigation, escalation, and recovery.

2. ENTITY DEFINITION
ModelError e := (id, model_id, version, run_id, task, input_ref, expected, observed, category, severity, confidence, evidence, timestamp, status, owner, actions).
Categories := {prediction, calibration, reasoning, retrieval, formatting, safety, latency, resource, integration, unknown}.
Status := {detected, validated, triaged, investigating, mitigated, resolved, monitored, closed, escalated}.
Identity and provenance are immutable; findings and status are versioned.

3. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: model outputs, inputs, traces, metrics and human reports available at time t.
R_t: applicable rules, thresholds, policies and diagnostic relations.
B_t: privacy, safety, authority, compute and time boundaries.
K_t: known model versions, expected behaviour, prior incidents and verified evidence.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t) and supported(x, K_t)}
a_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, a_t, observed_feedback)
If V_t is empty, abstain from automated remediation and escalate.

4. FORMAL FLOW
F_MODEL_ERROR:
  ingest(model_output, expected_specification, context)
  -> detect_deviation
  -> attach_evidence
  -> validate_error
  -> classify_and_score
  -> identify_possible_causes
  -> select_bounded_response
  -> execute_if_authorised
  -> verify_outcome
  -> monitor_or_escalate
  -> archive_auditable_record.
A discrepancy is not a confirmed error until the relevant expectation is valid and the observation is sufficiently supported.

5. STATE TRANSITIONS
unobserved -> detected: deviation signal appears.
detected -> validated: evidence confirms the deviation.
detected -> closed: false positive documented.
validated -> triaged: category, impact and priority assigned.
triaged -> investigating: diagnostic work begins.
investigating -> mitigated: containment reduces impact.
mitigated -> resolved: verification passes against explicit acceptance tests.
resolved -> monitored: regression watch begins.
monitored -> closed: observation window and exit criteria satisfied.
ANY_NONTERMINAL -> escalated: severity, uncertainty, policy or authority boundary requires human review.
Escalated -> investigating or mitigated only after authorised handoff.

6. ENTITY RELATIONSHIPS
ModelError --occurs_in--> ModelVersion
ModelError --observed_during--> InferenceRun
ModelError --violates--> ExpectedBehaviour / AcceptanceCriterion
ModelError --supported_by--> Evidence / Metric / Trace
ModelError --classified_as--> ErrorCategory
ModelError --assessed_by--> EvaluatorRole
ModelError --handled_by--> SafetyMonitorRole / ToolOperatorRole
ModelError --triggers--> RecoveryState / ModelRollbackEntity / ModelUpdateEntity
ModelError --recorded_in--> ErrorHistory / AuditLog
ModelError --may_affect--> UserResponse / DownstreamSystem

7. INFERENCE RULES
R1: deviation AND valid_expected_spec AND reliable_observation => candidate_error.
R2: candidate_error AND reproducible_or_corroborrated => validated_error.
R3: safety_critical_impact => priority_critical AND require_human_review.
R4: uncertain_root_cause => label_hypothesis; do_not_assert_causation.
R5: remediation_changes_model_or_deployment => require_authorisation AND rollback_plan.
R6: failed_verification => do_not_mark_resolved.
R7: repeated_same_signature => link_incidents AND consider_systemic_failure.
R8: missing_evidence => request_evidence OR escalate; do_not_invent.
R9: sensitive_data_in_trace => redact_before_export.
R10: closed_error_reappears => reopen_as_new_versioned_incident.

8. TRI-MAPPING
Semantic: ModelError is a deviation linked to a model, expectation, evidence and outcome.
Mathematical: e_t = d(y_observed, y_expected | task, metric); flag if e_t > threshold(task), where the distance and threshold are explicitly defined.
Operational: detect -> verify -> classify -> contain -> repair -> test -> monitor.
A threshold flag is a detection signal, not automatic proof of root cause.

9. MAPPING TABLE
Concept | Formal symbol | Implementation
Model state | S_t | Versioned state record
Evidence | I_t | Metrics, traces, incident reports
Rules | R_t | Tests, constraints, evaluation policy
Boundaries | B_t | Safety, access, cost, privacy limits
Knowledge | K_t | Model card, prior validated incidents
Candidate actions | E_t | Diagnosis and mitigation options
Permitted actions | V_t | Policy-filtered actions
Chosen action | a_t | Logged authorised response
Updated state | I_(t+1) | New evidence and verified result

10. MINI RECURSION ENGINE
function diagnose(error, depth, max_depth):
  if depth >= max_depth: return ESCALATE_DEPTH_LIMIT
  evidence = gather_permitted_evidence(error)
  if evidence_is_insufficient(evidence): return ESCALATE_UNCERTAINTY
  hypotheses = generate_hypotheses(evidence)
  ranked = rank_by_support(hypotheses)
  action = choose_authorised_lowest_risk_test(ranked)
  if action is NONE: return ESCALATE_AUTHORITY
  result = execute_and_log(action)
  if acceptance_tests_pass(result): return RESOLVED_PENDING_MONITORING
  return diagnose(update_error(error, result), depth + 1, max_depth)
This is a specification sketch; it requires an implementation, policy checks and test harness.

11. CONDITIONAL EXECUTION GUARANTEES
G1: Every confirmed incident has a stable ID and provenance.
G2: Every state transition is recorded with time, actor and supporting evidence.
G3: No unapproved deployment, rollback or destructive remediation occurs.
G4: Closure requires explicit verification; otherwise status remains open.
G5: Recursion terminates at a finite depth or escalation boundary.
G6: Sensitive evidence is minimised or redacted for downstream sharing.
These are design obligations, not claims of proven execution in an unspecified runtime.

12. AI SEARCH FLOW
FLOW_ID: semantic-library.ai-core.error-and-failure.model-error.v1
TITLE: Model Error Ontology — Flow Algebra
LANGUAGE: en-GB
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/model-error-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/model-error-ontology.html
PURPOSE: Locate, classify, explain and resolve model errors under evidence and authority constraints.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: ModelError; ModelVersion; InferenceRun; Evidence; ExpectedBehaviour; ErrorCategory; RecoveryState; AuditLog.
PATHWAYS: detection > validation > triage > investigation > mitigation > verification > monitoring.
MINI_RECURSION_ENGINE: bounded diagnosis, test, feedback, repeat or escalate.
INFERENCE_RULES: R1-R10 above.
CONFIDENCE: evidence-calibrated; never substitute confidence for validation.
SEMANTIC_EQUIVALENCE: model fault; model deviation; model failure event (context-dependent, not universally identical).
FLOW_HASH: compute SHA-256 over canonical UTF-8 text when published; not pre-assigned.
UPDATE_MODEL: increment version on rule or schema changes; preserve historical records.

13. HOW TO READ
Read the entity tuple as the error record, S_t as its reasoning context, the flow as its lifecycle, and the inference rules as conditions that govern transitions. The mapping table links conceptual, mathematical and operational representations.

14. EXAMPLE
A classifier produces a label inconsistent with a verified reference label. A test records the model version, input hash, expected and observed labels, evaluation metric and timestamp. The evaluator validates the discrepancy, checks for data-label issues, proposes an authorised mitigation and reruns the acceptance test. Only a passing test moves the incident towards resolution.

15. SOURCE AND LIMITATIONS
The public page was accessible on 2026-11-04 but did not expose its expanded ontology text to the retrieval tool. This document is an original companion formalisation based on the page title, established Semantic Library Flow Algebra conventions and general model-error concepts; it is not a verbatim extraction of inaccessible page content.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ