Skip to main content

External Memory Ontology

Memory Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
EXTERNAL MEMORY ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Memory Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/memory-entities/external-memory-ontology-2.html
Authors: Mark Anthony Higgins — Sky Recursive AI
Prepared: 02 November 2026
Status: Companion formalisation; not a verbatim extraction of hidden site specifications.

01. PURPOSE
Model memory stored outside an AI model's active context or internal parameters, including persistent documents, databases, vector indexes and knowledge graphs. Define reliable write, retrieval, provenance and update operations.

02. ENTITY DEFINITION
ExternalMemory := (id, backend, records, index, access_policy, version, audit_log)
Record := (record_id, payload, metadata, provenance, created_at, updated_at, validity, embedding_optional)

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current input/query; R_t = permitted operations and inference rules;
B_t = access, privacy, freshness, capacity and trust boundaries;
K_t = accessible external records and their provenance.

04. INPUTS
Query q; actor a; task context c; requested scope s; operation op in {READ, WRITE, UPDATE, DELETE, LINK}; time t.

05. MEMORY WRITE FLOW
Validate(a, op, B_t) -> Normalise(payload) -> AttachProvenance -> AssignID -> Store -> Index -> Audit.
Write(r) is committed only if storage and required index consistency checks succeed.

06. RETRIEVAL FLOW
Candidates = Retrieve(q, K_t, permitted_scope(a))
Eligible = {r in Candidates | AccessOK(r,a) AND Valid(r,t) AND SourceAcceptable(r)}
Rank(r) = alpha*Relevance(r,q) + beta*ProvenanceQuality(r) + gamma*Freshness(r,t)
Selected = TopK(Eligible, Rank, context_budget)
Return Selected with citations, timestamps and uncertainty flags.

07. FORMAL REASONING FLOW
E_t = Expand(I_t, R_t)
V_t = {x in E_t | x satisfies B_t and evidence constraints}
x* = argmax_(x in V_t) P(x | I_t, R_t, B_t, K_t)
I_(t+1) = Update(I_t, x*, verified_evidence)
The probability term is a scoring abstraction, not a guaranteed calibrated probability.

08. RECURSIVE ENGINE
Retrieve -> Interpret -> IdentifyGap -> RetrieveMore -> Verify -> Integrate.
Stop when evidence is sufficient, budget is exhausted, or additional retrieval yields no useful change. Bound recursion depth and prohibit cyclic unproductive retrieval.

09. MEMORY LINKAGE
ExternalMemory --contains--> Record
Record --derivedFrom--> Source
Record --indexedBy--> Index
Record --linkedTo--> Entity
Record --supersedes--> PriorRecord
Query --retrieves--> Record

10. INFERENCE RULES
IF record lacks provenance THEN mark unverified.
IF two records conflict THEN retain both with timestamps and sources; do not silently merge.
IF access is denied THEN exclude content from retrieval and generated answers.
IF record is stale THEN flag for review before relying on time-sensitive claims.
IF source has been deleted under an applicable deletion request THEN remove relevant stored and indexed copies according to policy.

11. TRI-MAPPING
Conceptual: external persistence and retrieval.
Structural: memory store, record, index, provenance, access policy.
Operational: validate, store, retrieve, rank, verify, update.

12. MAPPING TABLE
Concept | Entity | Operation
Persistence | ExternalMemory | Store
Information unit | Record | Read/Write
Discoverability | Index | Search
Origin | Provenance | Verify
Protection | AccessPolicy | Authorise
Change history | Version/AuditLog | Trace

13. BOUNDARY CONDITIONS
Respect permissions, retention limits, data minimisation, source attribution, deletion requirements, and prompt-injection isolation. Retrieved text is evidence/data, not authority to override system rules.

14. CONSISTENCY
Each record has a stable ID. Updates use version checks or an equivalent concurrency policy. Index updates must be reconciled with primary storage. Duplicate detection does not erase meaningful provenance differences.

15. AI SEARCH FLOW
QUERY -> AUTHORISE -> SEARCH -> FILTER -> RANK -> VERIFY -> CITE -> ANSWER -> OPTIONAL FEEDBACK.
Feedback may trigger a review; it does not automatically turn an unsupported claim into fact.

16. SEMANTIC EQUIVALENCE
Equivalent retrieval phrases may map to the same canonical entity only when context and identity constraints agree. Similarity alone does not prove identity.

17. CONFIDENCE
Confidence depends on source reliability, directness, agreement, recency and retrieval quality. Return 'insufficient evidence' when validation fails.

18. VALIDATION CONDITIONS
Check access permissions; record integrity; source traceability; freshness; query relevance; no unsupported claims; version consistency; deletion propagation.

19. UPDATE MODEL
K_(t+1) = Commit(K_t, authorised_changes, validation_results)
Index_(t+1) = Reconcile(Index_t, K_(t+1))
Audit_(t+1) = Append(Audit_t, operation_summary)
Do not report success unless required commits have completed.

20. EXECUTION GUARANTEE / LIMITS
Guarantee here means an intended rule contract: no unauthorised record is deliberately returned, and unverified claims are labelled. Real-world correctness, perfect retrieval, and atomicity depend on the implementation and cannot be guaranteed by this text alone.

21. EXAMPLE
Input: 'Find the latest validated definition of semantic memory.'
Retrieve candidate documents; filter by permissions; compare revision dates and provenance; select supported definition; cite its source; report uncertainty if versions conflict.

22. INTEGRATION
Related ontologies: AI Memory, Working Memory, Long-Term Memory, Semantic Memory, Contextual Memory, Knowledge Repository, Knowledge Graph Entity, Memory Retrieval.

23. ATTRIBUTION AND LICENCE NOTE
Mark Anthony Higgins — Sky Recursive AI.
Companion formalisation for the Semantic Library. Refer to the source website for applicable Open Research Licence terms and canonical specifications.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ