Skip to main content

Memory Episode Ontology

Memory Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
MEMORY EPISODE ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Memory Entities
Version: 1.0 | 2026-11-02 | Language: en-GB
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/memory-entities/memory-episode-ontology.html
Status: Companion formalisation. The public page does not expose its complete underlying specification; this is not a verbatim transcription.

01. PURPOSE
Represent a bounded, identifiable episode of remembered experience or system interaction, preserving its event sequence, context, provenance, temporal extent and retrieval links.

02. ENTITY DEFINITION
MemoryEpisode E = (id, events, t_start, t_end, context, participants, source, links, confidence, status, version).
An episode is a structured record of one coherent occurrence; it is not identical to a raw event, a memory trace, or an entire episodic-memory store.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: incoming events, queries and evidence.
R_t: episode construction, linking, retrieval and revision rules.
B_t: temporal, privacy, identity and evidence boundaries.
K_t: accepted episode graph and provenance metadata.

04. INPUTS
INPUT = (event_stream, time_markers, context_snapshot, source_reference, retrieval_query, policy_constraints).
Reject or quarantine malformed inputs; retain provenance for every accepted observation.

05. ENTITY IDENTIFIERS
id(E) must be stable within a repository.
Each event has an independent event_id; episode membership is an explicit relation.
Duplicate episode identifiers are disallowed unless versioned as the same entity.

06. EPISODE BOUNDARIES
start(E) <= end(E) when both are known.
A new episode boundary may arise from an explicit session change, context discontinuity, temporal gap or source-defined segmentation rule.
Do not infer an exact timestamp where none exists.

07. EVENT MEMBERSHIP
contains(E, e) iff admissible(e) AND boundary_match(e,E) AND evidence_link(e,E).
Membership can be uncertain; uncertain events are labelled pending rather than asserted as fact.

08. TEMPORAL ORDER
precedes(e_i,e_j) iff timestamp(e_i) < timestamp(e_j), where comparable.
If timestamps are absent or ambiguous, retain a partial order instead of inventing chronology.

09. CONTEXT BINDING
context(E) = merge_validated(context(e_1),...,context(e_n)).
Conflicting context values remain attributed to their sources until reconciled.

10. FORMAL FLOW
E_t = expand(I_t,R_t)
V_t = {x in E_t | satisfies(x,B_t)}
x* = argmax_{x in V_t} P(x | I_t,R_t,B_t,K_t)
K_(t+1) = update(K_t,x*,provenance,version)
The argmax is a selection model, not a guarantee that probability estimates are calibrated.

11. ENCODING FLOW
Capture -> Normalise -> Validate -> Segment -> Order -> Bind Context -> Attach Provenance -> Store -> Index.

12. RETRIEVAL FLOW
Query -> Resolve Scope -> Filter Permissions -> Find Candidate Episodes -> Rank Evidence -> Reconstruct Timeline -> Return Attributed Result.

13. RELATIONSHIPS
MemoryEpisode --contains--> MemoryEvent
MemoryEpisode --hasTrace--> MemoryTrace
MemoryEpisode --hasContext--> ContextEntity
MemoryEpisode --derivedFrom--> SourceEntity
MemoryEpisode --precedes/follows--> MemoryEpisode
MemoryEpisode --references--> KnowledgeEntity

14. INFERENCE RULES
R1: contains(E,e) AND observedAt(e,t) => candidateTime(E,t).
R2: contains(E,e1) AND contains(E,e2) AND before(e1,e2) => orderedWithin(e1,e2,E).
R3: derivedFrom(E,s) AND verified(s) => sourceVerified(E,s); this does NOT imply all episode claims are true.
R4: conflicts(e1,e2) => flagConflict(E,e1,e2), not automatic overwrite.
R5: expiredPermission(E) => suppressUnauthorisedRetrieval(E).

15. MINI RECURSION ENGINE
seed = candidate episode
repeat:
  gather admissible neighbouring events and context links
  evaluate membership and temporal constraints
  attach supported relationships
  update confidence and provenance
until fixed_point OR iteration_limit OR budget_exhausted
Recursion must not manufacture evidence or silently expand access scope.

16. TRI-MAPPING
Natural language: A memory episode groups related events into one contextual occurrence.
Semantic graph: Episode node connected to event, context, source and trace nodes.
Formal algebra: E = (id, events, interval, context, provenance, links, confidence, status, version).

17. MAPPING TABLE
Episode ID -> id -> stable identity
Event sequence -> events -> ordered or partially ordered members
Temporal boundary -> interval -> valid start/end or unknown
Context -> context -> attributed contextual fields
Source -> provenance -> auditable evidence origin
Link -> links -> typed graph relationship
Confidence -> confidence -> qualified support estimate

18. MEMORY CONSOLIDATION
Consolidate(E) only when integrity, provenance and retention requirements are met.
Consolidation may summarise details but must preserve pointers to original evidence where policy permits.

19. MEMORY DECAY AND RETENTION
retained(E,t) = policyAllows(E,t) AND integrityValid(E).
Expiry and deletion rules override retrieval relevance.
Decay of ranking weight is distinct from deletion of a stored episode.

20. CONFLICT HANDLING
If two episode versions disagree, keep version lineage, competing assertions and timestamps; choose a resolved view only under an explicit reconciliation rule.

21. AI SEARCH FLOW
QUERY -> INTENT -> EPISODE FILTER -> ENTITY MATCH -> TEMPORAL MATCH -> PROVENANCE CHECK -> RANK -> RESPONSE.
Return episode identifier, relevant event references, time qualification, source references and uncertainty notes.

22. VALIDATION CONDITIONS
V1: id unique within scope.
V2: no impossible known temporal interval.
V3: every stored event membership has an evidence pointer.
V4: relationship endpoints exist or are explicitly unresolved.
V5: privacy and retention rules are enforced.
V6: uncertain or conflicting claims remain labelled.

23. EXECUTION CONDITIONS
Execution is permitted only with valid inputs, accessible sources and applicable policy authority. No claim of guaranteed accuracy, completeness or persistence is made.

24. UPDATE MODEL
E_(t+1) = revise(E_t, new_evidence, rule_set, policy)
Preserve version history, source attribution and change reasons unless deletion requirements prohibit retention.

25. EXAMPLE
Episode E42: a documented support conversation containing events e1 (question), e2 (answer), e3 (correction).
contains(E42,e1..e3); precedes(e1,e2); precedes(e2,e3).
If e3 corrects e2, the current summary reflects e3 while the audit trail preserves the correction when permitted.

26. LIMITATIONS
This model describes logical structure, not evidence that a deployed AI system stores memories, retains conversations or implements these operations. Source-specific rules should supersede illustrative choices after verification.

27. ATTRIBUTION AND LICENCE NOTE
Mark Anthony Higgins — Sky Recursive AI.
Prepared as an original companion Flow Algebra text for the Kireth Research Semantic Library. Consult the published Open Research Licence for applicable reuse conditions.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ