Skip to main content

Internal Memory Ontology

Memory Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
INTERNAL MEMORY ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core > Entity Graph > AI Entities > Memory Entities
Version: Companion formalisation 1.0 | 2 November 2026
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/memory-entities/internal-memory-ontology.html
Status: Original companion formalisation. Public page identifies the ontology but does not expose its full specification; rules below are not represented as a verbatim extraction.

01. PURPOSE
Represent memory maintained within an AI system's operational boundary, including its stored representations, lifecycle, retrieval and authorised updates. Internal does not necessarily mean permanent, private, or present in model weights.

02. DEFINITIONS
M_t = set of internal memory records at time t.
I_t = current input; R = inference rules; B = boundary and permission rules; K = knowledge context.
Each record m = (id, content, kind, provenance, created, updated, validity, access, confidence, links).
kind ∈ {working_state, session_state, persistent_store, learned_parameter_reference, other_internal}.
A learned parameter reference is a description of model-held knowledge, not an assertion that individual facts can be directly read from weights.

03. STATE MODEL
S_t = (I_t, R, B, K, M_t, Q_t, A_t)
Q_t = retrieval query; A_t = permitted actions.
Memory membership: Internal(m, system, t) iff m is maintained inside the defined system boundary at t.

04. FORMAL FLOW
I_t -> Parse -> CheckBoundary -> Retrieve(M_t,Q_t) -> Rank -> Validate -> Use -> OptionalUpdate -> S_(t+1)
Every stage preserves provenance and distinguishes retrieved records from inferred statements.

05. ENCODING
Encode(x, metadata) -> m only if AllowWrite(x, B) and ValidSchema(m).
Assign stable id, provenance, timestamps, access scope and retention policy.
Do not infer persistence from a successful encoding operation.

06. RETRIEVAL
Candidates(Q_t) = {m in M_t : Accessible(m,B) and Relevant(m,Q_t)}.
Retrieved(Q_t) = TopK(Candidates(Q_t), score(m,Q_t)).
Score combines relevance, recency, confidence and context fit; weights are implementation-specific.

07. VALIDATION
Valid(m,t) iff SchemaOK(m) and SourceTraceable(m) and NotExpired(m,t) and AccessAllowed(m,B).
Conflicting records must be flagged rather than silently merged.

08. UPDATE MODEL
M_(t+1) = (M_t \ D_t) ∪ U_t ∪ N_t
D_t = authorised deletions/expirations; U_t = authorised revised records; N_t = authorised new records.
Updates require an explicit write policy and an audit trail where supported.

09. RETENTION AND DECAY
Retention(m,t) depends on memory kind, relevance, retention policy and storage mechanism.
Expire(m,t) -> remove from active retrieval set; physical deletion requires a separate storage-level guarantee.

10. INFERENCE RULES
IF Internal(m,s,t) AND Accessible(m,B) THEN EligibleForRetrieval(m).
IF EligibleForRetrieval(m) AND Relevant(m,q) THEN Candidate(m,q).
IF Candidate(m,q) AND Valid(m,t) THEN MayUse(m,q).
IF Contradicts(m1,m2) THEN FlagConflict(m1,m2).
IF NOT AuthorisedWrite(action,B) THEN Reject(action).
IF ProvenanceUnknown(m) THEN MarkUnverified(m).

11. RECURSIVE ENGINE
M_t -> Retrieve -> Interpret -> Check -> Respond -> Evaluate -> ConditionalUpdate -> M_(t+1).
Termination: stop when no authorised update is needed, an iteration limit is reached, or the state stabilises.
Avoid recursive self-confirmation: a generated assertion cannot become independent evidence merely because it was stored.

12. TRI-MAPPING
Entity: internal memory record, store, query, boundary, source.
Relation: stores, references, retrieves, validates, supersedes, expires.
Process: encode, retrieve, rank, verify, update, delete.

13. MAPPING TABLE
Input datum | encode | memory record
Memory record | index | retrieval candidate
Query | search | ranked candidates
Candidate | validate | usable evidence
New evidence | reconcile | updated record
Policy event | expire/delete | revised memory state

14. SEMANTIC RELATIONSHIPS
InternalMemory --partOf--> AISystem
MemoryRecord --storedIn--> InternalMemory
MemoryRecord --derivedFrom--> Source
MemoryRecord --linkedTo--> Context
MemoryRecord --supersededBy--> MemoryRecord
Retrieval --returns--> MemoryRecord

15. BOUNDARY CONDITIONS
Separate volatile context, durable application storage and model parameters.
A context window is not necessarily durable memory; a model parameter is not an editable database record.
Respect access permissions, data minimisation, retention limits and user-authorised deletion.

16. AI SEARCH FLOW
QUERY -> INTENT -> ENTITY RESOLUTION -> BOUNDARY FILTER -> MEMORY SEARCH -> EVIDENCE RANK -> CONFLICT CHECK -> ANSWER -> OPTIONAL AUDIT.
Answer includes uncertainty and source attribution where available.

17. SEMANTIC EQUIVALENCE
Equivalent(m1,m2) requires compatible meaning, scope, time and provenance.
Similarity alone does not establish identity or factual agreement.

18. CONFIDENCE
Confidence is calibrated from evidence quality and retrieval reliability; it is not proof.
Do not turn an unsupported stored claim into a verified fact through repeated retrieval.

19. EXECUTION CONDITIONS
Required: defined boundary B, memory schema, access checks, query semantics, validation rules and explicit update authority.
Guarantee is conditional: if all preconditions and implementation invariants hold, the flow returns only records passing its declared filters; factual truth is not guaranteed.

20. TEST CASES
T1: valid accessible record -> eligible retrieval.
T2: inaccessible record -> excluded.
T3: expired record -> excluded from active results.
T4: contradictory records -> conflict reported.
T5: unauthorised write -> rejected.
T6: generated statement without source -> not promoted to independent evidence.

21. FAILURE MODES
Stale context, permission leakage, hallucinated provenance, cross-session contamination, false equivalence, retrieval misses, circular confirmation and inconsistent deletion.

22. IMPLEMENTATION NOTES
Represent records with typed fields; enforce policy before retrieval and write; log version transitions; distinguish inferred output from stored evidence. Storage mechanism and persistence are system-dependent.

23. HOW TO READ
'->' denotes a transformation or relation; 'iff' denotes a biconditional; set operations describe authorised memory changes. The algebra is a design specification, not executable software by itself.

24. CITATION AND LICENCE
Attribution: Mark Anthony Higgins — Sky Recursive AI.
Source ontology URL above. Respect the applicable Kireth Research Open Research Licence and its citation requirements.

25. REVISION NOTE
This companion flow was independently constructed from the topic and the publicly visible page metadata. Compare against the complete page specification before claiming exact correspondence.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ