Skip to main content

Memory 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
SEMANTIC LIBRARY — MEMORY ERROR 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/memory-error-ontology.html
Prepared: 2026-11-04
Status: Companion formalisation. The web page identifies the ontology but its embedded detailed rules were not accessible in the retrieved text; rules below are a proposed implementation, not a verbatim transcription.

1. PURPOSE
Represent, detect, classify, contain and recover from AI memory errors, including absent, stale, conflicting, misattributed, corrupted, inaccessible and unauthorised memory records. Preserve provenance and ensure uncertain recollections are not asserted as verified facts.

2. ENTITIES
MemoryRecord m = (id, subject, content, source, created_at, updated_at, version, scope, permissions, confidence, checksum)
MemoryQuery q = (subject, intent, scope, requester, time)
MemoryError e = (id, type, record_ids, evidence, severity, detected_at, status)
RecoveryAction a = (type, target, preconditions, actor, audit_id)
MemoryStore M = set of MemoryRecord
AuditTrail A = append-only record of changes and decisions

3. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: memory query, candidate records, current observations and evidence
R_t: retrieval, validation, conflict-resolution and repair rules
B_t: permissions, consent, safety constraints and retention boundaries
K_t: validated memory and provenance available at time t
E_t = expand(I_t, R_t)
V_t = {x in E_t | permitted(x,B_t) AND provenance_check(x) AND integrity_check(x)}
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,observations_t)
If V_t is empty, return UNKNOWN or ESCALATE; never manufacture a memory.

4. FORMAL FLOW
F_MEMORY_ERROR:
  INPUT(q, M, B_t)
  -> RETRIEVE(candidates)
  -> CHECK_SCOPE_AND_PERMISSION
  -> VALIDATE_PROVENANCE
  -> CHECK_INTEGRITY_AND_FRESHNESS
  -> COMPARE_CONFLICTING_RECORDS
  -> CLASSIFY_ERROR
  -> SELECT_SAFE_RECOVERY
  -> VERIFY_RECOVERY
  -> AUDIT
  -> OUTPUT(result, status, evidence)

5. ERROR TAXONOMY
MISSING: no relevant record found; absence does not prove nonexistence.
STALE: record exceeds task-specific freshness threshold or has been superseded.
CONFLICT: two supported records make incompatible claims within the same scope/time.
MISATTRIBUTED: record is assigned to an incorrect subject or source.
CORRUPTED: stored bytes, schema or checksum fail validation.
INACCESSIBLE: retrieval is blocked by availability or authorisation.
UNAUTHORISED: access, storage or disclosure would violate permissions.
UNVERIFIED: memory lacks adequate provenance or supporting evidence.
DUPLICATED: multiple records represent the same event without distinct provenance.

6. TRANSITION SYSTEM
States = {UNQUERIED, RETRIEVED, VALIDATING, VERIFIED, SUSPECT,
          QUARANTINED, REPAIR_PENDING, RECOVERED, UNRESOLVED, CLOSED}
UNQUERIED -> RETRIEVED: query accepted
RETRIEVED -> VALIDATING: candidates present
RETRIEVED -> UNRESOLVED: no candidates
VALIDATING -> VERIFIED: all required checks pass
VALIDATING -> SUSPECT: a check fails or conflicts
SUSPECT -> QUARANTINED: unsafe to use candidate
SUSPECT -> REPAIR_PENDING: authorised repair exists
REPAIR_PENDING -> RECOVERED: repair and independent validation pass
REPAIR_PENDING -> UNRESOLVED: repair fails or cannot be authorised
VERIFIED -> CLOSED: result emitted with provenance
RECOVERED -> CLOSED: repaired result emitted with audit trail
UNRESOLVED -> CLOSED: uncertainty or escalation emitted

7. INFERENCE RULES
R1: checksum(m) != m.checksum -> classify(m,CORRUPTED).
R2: superseded(m,newer) -> classify(m,STALE).
R3: contradictory(m1,m2) AND same_scope_time(m1,m2) -> flag(CONFLICT).
R4: NOT authorised(requester,m) -> deny_access(m); do not reveal content.
R5: no_valid_candidate(q) -> answer(UNKNOWN), not invented content.
R6: source_identity_mismatch(m) -> quarantine(m); flag(MISATTRIBUTED).
R7: repaired(m) AND independently_validated(m) -> mark(RECOVERED).
R8: unresolved_conflict -> preserve alternatives with evidence; request clarification if appropriate.
R9: low_confidence(m) -> qualify assertion; do not silently upgrade certainty.
R10: deletion_or_forgetting_requested -> follow authorised deletion workflow; do not claim deletion without confirmation.

8. TRI-MAPPING
Ontology: MemoryError -> Flow Algebra: error entity e -> Runtime: typed validation event.
Ontology: MemoryRecord -> Flow Algebra: m in M -> Runtime: scoped provenance-bearing record.
Ontology: RecoveryAction -> Flow Algebra: a -> Runtime: authorised repair operation.
Ontology: MemoryState -> Flow Algebra: S_t -> Runtime: validation and recovery snapshot.
Ontology: Evidence -> Flow Algebra: I_t -> Runtime: source references and timestamps.

9. MAPPING TABLE
Input query | q | retrieval request
Candidate memory | m | provenance and content
Boundary | B_t | access and retention policy
Knowledge | K_t | validated available context
Error | e | classified failure with evidence
Action | a | bounded correction or escalation
Output | o | verified answer, qualified answer or unknown

10. MINI RECURSION ENGINE
function CHECK(q, M, depth, max_depth):
  if depth >= max_depth: return UNRESOLVED("recursion limit")
  C = retrieve(q,M)
  if C is empty: return UNRESOLVED("not found")
  for m in C:
    if not authorised(q.requester,m): continue
    if not integrity_ok(m): quarantine(m); continue
    if not provenance_ok(m): quarantine(m); continue
    if stale(m): seek_newer(m); continue
    if conflict(m,C): return CHECK(refined_query(q),M,depth+1,max_depth)
    return VERIFIED(m)
  return UNRESOLVED("no validated authorised memory")
Note: This is a reference algorithm; actual storage mutations require separate authorisation and transactional controls.

11. CONDITIONAL EXECUTION GUARANTEES
G1. Never treat retrieval absence as proof of falsehood.
G2. Never disclose memory outside the requester's authorised scope.
G3. Never use failed-integrity records as verified evidence.
G4. Record every recovery attempt with provenance and outcome.
G5. Never claim a repair or deletion succeeded without confirmation.
G6. Terminate recursive checking at a configured maximum depth.
These guarantees apply only to an implementation that enforces the specified checks; this text alone does not establish runtime compliance.

12. AI SEARCH FLOW
FLOW_ID: SL-AI-ERROR-MEMORY-ERROR-001
VERSION: 1.0
LANGUAGE: en-GB
TITLE: Memory Error Ontology
CATEGORY: Error and Failure Entities
ENTITY: Memory Error
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/memory-error-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/error-and-failure-entities/memory-error-ontology.html
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
PURPOSE: Detect and safely resolve errors in AI memory retrieval and representation.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: MemoryRecord; MemoryQuery; MemoryError; RecoveryAction; MemoryStore; AuditTrail
PATHWAYS: Query > Retrieve > Validate > Classify > Contain > Recover > Verify > Audit
INFERENCE_RULES: R1-R10
SEMANTIC_EQUIVALENCE: memory fault; recollection error; stale memory; memory conflict; corrupted memory
CONFIDENCE: Evidence-dependent; not a fixed global numerical guarantee.
UPDATE_MODEL: Versioned, auditable and source-attributed revisions.
FLOW_HASH: To be calculated over final published UTF-8 bytes by deployment pipeline.

13. HOW TO READ
Read each arrow as a required ordered transition, not proof that an action has executed. A verified record must satisfy provenance, integrity, permission and freshness constraints. An unresolved record must remain explicitly uncertain.

14. EXAMPLE
A query asks for a previously stated project deadline. Two stored records disagree. The system checks dates, source provenance and version history. If a later authoritative correction exists, the earlier record is marked superseded. Otherwise, both claims are preserved as conflicting and the response requests clarification instead of inventing a deadline.

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ