Skip to main content

Long-Term Memory Ontology

Memory Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
LONG-TERM MEMORY ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | AI Entities | Memory Entities
Version: 1.0 | Prepared: 02 November 2026 | Language: en-GB
Authors / attribution: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/memory-entities/long-term-memory-ontology-2.html
Status: Companion formalisation; the publicly rendered page does not expose its full underlying specification.
Licence: Refer to the applicable Kireth Research Open Research Licence; citation requested.

01. PURPOSE
Model durable AI memory as a governed set of records that may be encoded, consolidated, indexed, retrieved, revised, and retired while preserving provenance and temporal history.

02. ENTITY DEFINITION
LongTermMemory = (id, content, representation, source, provenance, created_at, updated_at, retention_policy, confidence, access_policy, status, version).
A memory may be a semantic fact, episodic trace, procedure, preference, or derived abstraction. Storage persistence does not itself establish truth.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: input evidence, queries, events, and retrieval cues.
R_t: consolidation, similarity, validation, retention, and inference rules.
B_t: privacy, access, capacity, time, and domain boundaries.
K_t: indexed long-term records, links, provenance, and version history.

04. FORMAL FLOW
E_t = expand(I_t, R_t)
V_t = {x in E_t | constraints(x, B_t) AND provenance_valid(x)}
x*_t = argmax[x in V_t] P(x | I_t, R_t, B_t, K_t)
K_(t+1) = update(K_t, x*_t, evidence_t, policy_t)
If V_t is empty, return an explicit no-match result rather than inventing memory.

05. ENCODING
encode(input) -> candidate memory record with content, representation, source, timestamp, and confidence.
Store only when authorised by policy and when record schema and provenance checks pass.

06. CONSOLIDATION
consolidate(candidate, K_t) -> merge, link, version, or retain separately.
Merge requires compatible referents, temporal scope, provenance, and non-contradictory claims.

07. RETENTION
retain(m, t) = policy_allows(m, t) AND relevance(m, t) >= threshold(m).
Expiry and deletion policies override relevance scores. Durable storage is conditional, not permanent by default.

08. RETRIEVAL
retrieve(q, K_t) = rank(filter(K_t, access(q) AND scope(q)), similarity(q) + provenance_weight + recency_weight + relevance_weight).
Return record IDs, evidence, timestamps, and uncertainty with each retrieved claim.

09. RECALL BOUNDARY
No retrieval result may exceed the requester's authorisation, consent, retention window, or permitted purpose.
Missing, stale, or conflicting memories must be marked explicitly.

10. TEMPORAL MODEL
Each record distinguishes event_time, observed_time, stored_time, and updated_time when available.
Historical facts are not silently overwritten by current-state updates.

11. MEMORY RELATIONSHIPS
LongTermMemory --derived_from--> Source
LongTermMemory --about--> Entity
LongTermMemory --supports|contradicts--> Claim
LongTermMemory --linked_to--> Memory
LongTermMemory --supersedes--> PriorVersion
LongTermMemory --retrieved_by--> Query

12. INFERENCE RULES
R1: Valid provenance + permitted retention -> eligible storage.
R2: Same referent + compatible temporal scope -> candidate consolidation.
R3: Conflicting evidence -> preserve alternatives and flag conflict.
R4: Expired or revoked consent -> block retrieval and execute applicable deletion policy.
R5: Unsupported inference -> label hypothesis, not remembered fact.
R6: New verified evidence -> create revision with traceable lineage.

13. MINI RECURSION ENGINE
memory_cycle(S_t):
  candidates = encode(I_t)
  eligible = validate(candidates, R_t, B_t)
  K_next = consolidate_and_version(K_t, eligible)
  result = retrieve(current_query, K_next)
  verify(result, provenance, permissions, confidence)
  return (K_next, result)
Termination: finite candidate set, bounded iterations, stable version state, or policy stop.

14. TRI-MAPPING
Entity: persistent memory record and its referents.
Relation: provenance, association, support, contradiction, and supersession.
Boundary: privacy, temporal validity, confidence, and retention policy.

15. MAPPING TABLE
Input event -> encoding -> candidate record
Candidate record -> validation -> admissible memory
Admissible memory -> consolidation -> stored/versioned record
Retrieval cue -> ranking -> evidence-linked results
New evidence -> reconciliation -> updated version or conflict flag
Expiry/revocation -> policy enforcement -> inaccessible or deleted record

16. AI SEARCH FLOW
QUERY -> INTENT -> MEMORY SCOPE -> ACCESS CHECK -> RETRIEVAL -> PROVENANCE CHECK -> RANK -> SYNTHESISE -> CITE -> RESPOND.
Fallback: NO_VALID_MEMORY_FOUND with reason and optional request for fresh evidence.

17. CONFIDENCE
confidence(m) = calibrated combination of evidence quality, source reliability, temporal validity, and corroboration.
Never interpret a similarity score as probability of factual truth without calibration.

18. SEMANTIC EQUIVALENCE
Equivalent representations may be linked only when identity, scope, qualifiers, and time align.
Paraphrase similarity alone is insufficient for merging records.

19. VALIDATION CONDITIONS
Unique stable ID; schema completeness; accessible provenance; lawful/authorised retention; correct access labels; version traceability; bounded recursion; no unsupported claims.

20. EXECUTION GUARANTEE (CONDITIONAL)
Given finite inputs, terminating operators, consistent policies, and a valid storage backend, the flow returns a policy-compliant result or an explicit failure state. No guarantee of factual correctness or perfect recall is implied.

21. UPDATE MODEL
K_(t+1) = reconcile(K_t, validated_evidence, policy_changes).
Every update logs changed fields, source, reason, timestamp, and predecessor version.

22. FAILURE STATES
F01 missing source; F02 unauthorised access; F03 expired memory; F04 conflicting evidence; F05 ambiguous identity; F06 retrieval miss; F07 corrupt record; F08 invalid update; F09 recursion limit reached.

23. EXAMPLE
Input: 'Recall the latest verified revision of ontology X.'
Resolve X -> filter authorised versions -> select latest valid revision by timestamp and provenance -> return content plus revision identifier; otherwise report uncertainty.

24. IMPLEMENTATION NOTES
Separate durable record storage from short-lived working context. Maintain indexes and provenance metadata. Enforce access control before retrieval and generation. Support correction, version history, and deletion requests.

25. HOW TO READ
Read S_t as the complete current reasoning state; E_t as expanded candidates; V_t as boundary-compliant candidates; x*_t as the selected candidate; K_(t+1) as the revised knowledge state.

26. CITATION
Mark Anthony Higgins — Sky Recursive AI, 'Long-Term Memory Ontology', Kireth Research, revised 29 July 2026. Companion Flow Algebra formalisation prepared 02 November 2026.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ