Skip to main content

Memory Record Ontology

Memory Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
MEMORY RECORD ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | AI Entities | Memory Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/memory-entities/memory-record-ontology.html
Authors: Mark Anthony Higgins — Sky Recursive AI
Prepared: 02 November 2026
Status: Companion formalisation; the published page identifies the ontology but does not expose its complete underlying specification.

01. PURPOSE
Represent an individual persistent or transient memory record as an identifiable, provenance-aware, versioned and retrievable entity. Distinguish a record from the event, claim or observation it represents.

02. ENTITY DEFINITION
MemoryRecord := (id, payload, representation, context, source, created_at, updated_at, valid_interval, confidence, permissions, retention, version, links, status).
Required: id, payload or reference, created_at, version, status.
Optional fields are explicitly unknown when absent; never infer a missing value as fact.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = candidate records, query, observations and updates.
R_t = identity, schema, provenance, retrieval and retention rules.
B_t = privacy, temporal, authorisation, confidence and resource boundaries.
K_t = accepted memory records and their relationship graph.

04. FORMAL FLOW
E_t = expand(I_t, R_t)
V_t = {x in E_t | valid_schema(x) AND authorised(x,B_t) AND provenance_ok(x)}
x* = argmax_{x in V_t} P(x | I_t,R_t,B_t,K_t) when V_t is non-empty.
K_{t+1} = update(K_t, x*, R_t, B_t)
If V_t is empty: abstain, log the reason and do not write an unsupported record.
P is a calibrated ranking estimate, not a guarantee of truth.

05. INPUTS AND OUTPUTS
Inputs: observations, dialogue context, document fragments, tool results, explicit corrections and authorised record references.
Outputs: new record, linked record, revised version, retrieved record, rejected candidate, or deletion/tombstone event.

06. IDENTITY AND DEDUPLICATION
canonical_id = stable identifier independent of presentation text.
Equivalent payloads do not necessarily identify the same event.
Merge only when entity, time, source and semantic equivalence constraints pass.
Preserve source identifiers and lineage across merges.

07. ENCODING
encode(x) = normalise(x) + attach_context(x) + attach_provenance(x) + validate(x).
Payload may be text, structured data, a vector, an event or a reference to externally stored content.
Keep original source content or a verifiable reference when permitted.

08. RECORD RELATIONSHIPS
record --describes--> entity/event
record --derived_from--> source
record --belongs_to--> memory collection
record --supports|contradicts--> claim
record --supersedes--> earlier record version
record --linked_to--> related memory record
Every relationship has a type and may carry confidence and provenance.

09. RETRIEVAL
Candidates C(q) = retrieve_by_identifier(q) UNION retrieve_by_semantics(q) UNION retrieve_by_graph(q).
rank(r,q) = weighted relevance + contextual fit + source quality + recency appropriateness.
Return only records permitted for the requesting context.
Semantic similarity alone does not establish factual equivalence.

10. TEMPORAL MODEL
created_at: record creation time.
observed_at: time represented by the source, if known.
valid_interval: period during which content is asserted applicable.
updated_at: last record revision.
Distinguish stale, superseded and currently applicable records.

11. CONFIDENCE AND EVIDENCE
confidence(r) depends on evidence quality, source reliability, corroboration and conflicts.
Conflicting records remain traceable; do not silently overwrite contradictions.
Unknown provenance or low confidence requires qualification or abstention.

12. MEMORY LIFECYCLE
candidate -> validated -> active -> revised | archived | expired | deleted.
Transitions require authorisation and an audit event.
Expiry and deletion remove retrievability as required by the applicable policy.

13. UPDATE MODEL
update_record(r,delta) = new_version(r,delta) when delta passes schema, permission and consistency checks.
Corrections link to the superseded version; never silently rewrite historical evidence.
Support idempotent updates using stable operation identifiers.

14. RETENTION AND PRIVACY BOUNDARIES
Minimise stored personal data. Apply purpose limitation, access controls and retention rules.
Respect deletion requests, confidentiality and source-specific restrictions.
A record's presence in a knowledge graph does not grant permission to disclose it.

15. INFERENCE RULES
IF two records share an identifier AND versions differ THEN order by version and retain lineage.
IF a record contradicts a newer verified source THEN flag conflict; do not auto-delete.
IF provenance is absent THEN mark provenance_unknown.
IF a record is expired THEN exclude from active retrieval unless historical access is authorised.
IF retrieval permissions fail THEN return no protected payload.
IF no reliable candidate survives validation THEN abstain.

16. MINI RECURSION ENGINE
function resolve(q, depth, visited):
  if depth >= MAX_DEPTH: return bounded_result
  C = retrieve(q)
  for r in C:
    if r.id in visited: continue
    validate(r)
    inspect authorised links(r, depth+1, visited UNION {r.id})
  return rank_and_explain(validated_candidates)
Termination: finite MAX_DEPTH, visited-set cycle prevention and bounded candidate count.

17. TRI-MAPPING
Conceptual: a memory record represents an item retained for later use.
Structural: a typed entity with identity, payload, provenance, context and lifecycle.
Operational: encode -> validate -> store -> retrieve -> revise/expire.

18. MAPPING TABLE
Concept | Structural field | Operation
Identity | id | resolve / deduplicate
Content | payload | encode / retrieve
Context | context | contextualise
Source | source | trace provenance
Time | created_at, valid_interval | temporal filter
Trust | confidence | rank / qualify
Access | permissions | authorise
Lifecycle | status, version | revise / archive
Relations | links | graph traversal

19. AI SEARCH FLOW
QUERY -> PARSE INTENT -> RESOLVE CONTEXT -> SEARCH MEMORY INDEX ->
APPLY ACCESS BOUNDARIES -> CHECK PROVENANCE -> VALIDATE TEMPORAL FIT ->
EXPAND RELEVANT LINKS -> RANK CANDIDATES -> RETURN GROUNDED ANSWER OR ABSTAIN.

20. EXECUTION CONDITIONS
Preconditions: schema available; caller identity and purpose established; relevant access policies known.
Postconditions: outputs have traceable record identifiers and retrieval decisions are explainable.
Invariants: no unauthorised disclosure; no unbounded recursion; no unsupported fact promotion.
An execution guarantee is conditional on the implementation satisfying these checks; it is not a guarantee of truth or successful retrieval.

21. EXAMPLE
Input: 'The instrument was calibrated on 2026-10-01', from signed log L7.
Record: {id:'mem-001', payload:'instrument calibrated', observed_at:'2026-10-01', source:'L7', status:'active', version:1}.
Later correction: log L8 changes the calibration date.
Action: create version 2, link to L8, retain lineage, mark version 1 superseded.

22. VALIDATION TESTS
T1 required fields missing -> reject.
T2 duplicate operation identifier -> no duplicate write.
T3 expired record -> exclude from active results.
T4 unauthorised query -> deny disclosure.
T5 conflicting sources -> flag uncertainty.
T6 cyclic graph links -> recursion terminates.
T7 corrected content -> preserve version history and provenance.

23. SEMANTIC EQUIVALENCE
Equivalent records must satisfy compatible referent, scope, time and meaning.
Near-identical language is insufficient to merge distinct observations.

24. LIMITATIONS
This companion model is an independently authored formalisation based on the ontology's topic and the public page metadata. It does not claim to reproduce unpublished site code, implementation details or measured system behaviour.

25. CITATION AND LICENCE
Attribution: Mark Anthony Higgins — Sky Recursive AI.
Source link above. Respect the applicable Kireth Research Open Research Licence and citation requirements; this file does not assert a new licence grant.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ