Skip to main content

Memory Update Entity Ontology

Memory Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
MEMORY UPDATE ENTITY 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-update-entity-ontology.html
Authors: Mark Anthony Higgins — Sky Recursive AI
Created: 2026-11-02
Status: Companion formalisation; source page does not expose its complete underlying formal specification.

01. PURPOSE
Represent an authorised, traceable transformation of a memory store from one consistent version to the next, including addition, revision, linking, consolidation, expiration and deletion.

02. ENTITY DEFINITION
MemoryUpdateEntity U = (uid, target, operation, payload, context, provenance, authority, preconditions, timestamp, version, outcome).
Memory state M = (items, links, indexes, policy, revision, audit).

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: incoming update request and evidence.
R_t: update, conflict and inference rules.
B_t: privacy, consent, retention, capacity and integrity boundaries.
K_t: current memory items, relations, indexes and version history.

04. INPUTS
Input = (request, actor, target_id, proposed_content, evidence, expected_revision, context).
Reject missing target for operations that require an existing item.

05. OPERATIONS
op ∈ {CREATE, REVISE, MERGE, LINK, UNLINK, CONSOLIDATE, EXPIRE, DELETE}.
Each operation has explicit type-specific preconditions and effects.

06. FORMAL FLOW
E_t = expand(I_t, R_t)
V_t = {u ∈ E_t | authorised(u,B_t) ∧ valid(u,K_t) ∧ consistent(u,K_t)}
u* = argmax_{u ∈ V_t} P(u | I_t,R_t,B_t,K_t)
K_(t+1) = apply_atomically(K_t,u*) when V_t ≠ ∅.
When V_t = ∅, K_(t+1) = K_t and emit a reasoned refusal or clarification.
The probability/ranking term is a selection model, not proof of correctness.

07. UPDATE PRECONDITIONS
Check actor authority, scope, expected revision, target existence, evidence quality, data minimisation, and retention rules.
A conflict must not be silently overwritten.

08. ATOMIC TRANSITION
BEGIN → validate → construct candidate → check invariants → commit memory, indexes and audit together → END.
On any failed invariant, roll back all candidate changes.

09. IDENTITY AND VERSIONING
Every item has a stable identifier; every committed change increments its revision.
Update requires expected_revision = current_revision unless an explicit merge policy is invoked.

10. PROVENANCE
Record source, creation time, update time, actor class, justification, evidence references and confidence separately.
Never represent inferred content as directly observed fact.

11. INFERENCE RULES
R1: Authorised + valid + conflict-free candidate → eligible update.
R2: Stale revision → conflict response; no implicit overwrite.
R3: Unsupported claim → label as unverified or reject under applicable policy.
R4: Deletion request with valid authority → remove active item and derived index entries, subject to declared retention requirements.
R5: Updated item → invalidate dependent cached retrieval representations.
R6: Contradictory evidence → retain competing claims with provenance or request resolution; do not fabricate certainty.

12. MEMORY RELATIONSHIPS
MemoryUpdateEntity --targets--> MemoryItem.
MemoryUpdateEntity --modifies--> MemoryRecord.
MemoryUpdateEntity --reindexes--> MemoryIndex.
MemoryUpdateEntity --references--> MemorySource.
MemoryUpdateEntity --produces--> MemoryRevision.

13. MINI RECURSION ENGINE
repeat until stable or limit reached:
  detect dependent links and indexes affected by committed change;
  recompute affected derived representations;
  validate boundary and consistency invariants;
  stop on fixed point, cycle detection or resource limit.
Do not recurse into unrelated memories.

14. RETRIEVAL COHERENCE
A successful update changes both authoritative records and their search projections.
Stale embeddings, summaries and graph links must be invalidated or version-tagged.

15. CONFLICT RESOLUTION
Prefer verified evidence and explicit authorisation over recency alone.
Preserve traceability for superseded assertions when policy permits.
Never merge incompatible identities without a verified identity mapping.

16. TEMPORAL MODEL
Each record may have valid_from, valid_until, observed_at and updated_at.
Historical truth and current applicability are distinct fields.

17. TRI-MAPPING
Semantic: memory item, update action, reason, provenance.
Formal: U, M_t, predicates, constraints, transition M_t → M_(t+1).
Operational: validate, commit, reindex, audit, return result.

18. MAPPING TABLE
Input request | I_t | Proposed operation and payload
Rule set | R_t | Preconditions, effects, conflict rules
Boundary | B_t | Authorisation, privacy, retention, consistency
Memory store | K_t | Records, relations, versions and indexes
Eligible candidate | V_t | Valid updates only
Committed state | K_(t+1) | Atomic revised store

19. AI SEARCH FLOW
QUERY → resolve target and scope → retrieve authoritative current version → verify permission → evaluate candidate updates → commit or refuse → refresh index → return outcome with provenance.
Read-only queries must not modify memory.

20. VALIDATION CONDITIONS
V1: Referential integrity is preserved.
V2: No unauthorised disclosure or mutation occurs.
V3: Revision history is coherent.
V4: Derived indexes match the committed version or are marked stale.
V5: Duplicate retries are idempotent when the same operation identifier is supplied.
V6: Deletion semantics and residual retention are accurately reported.

21. EXECUTION GUARANTEE — CONDITIONAL
If all preconditions hold and atomic commit succeeds, the resulting state satisfies the listed invariants. This is a design-level guarantee conditional on correct implementation, not a claim of verified execution.

22. FAILURE PATHWAYS
UNAUTHORISED → reject.
NOT_FOUND → return unresolved target.
REVISION_CONFLICT → request reconciliation.
INVALID_EVIDENCE → reject or mark uncertain.
INDEX_FAILURE → roll back or mark pending reindex under declared policy.

23. UPDATE MODEL
U_t = (operation, expected_revision, evidence, policy_version).
M_(t+1) = Transition(M_t,U_t) when Valid(U_t,M_t).
Audit_(t+1) = Audit_t ∪ {commit_record}.

24. EXAMPLE
Current item: preferred_output_language = en-GB, revision 3.
Authorised request: revise to en-GB with additional terminology preference, expected revision 3.
Validate → create revision 4 → refresh retrieval index → log source and time.
A competing request based on revision 2 produces a conflict, not a silent overwrite.

25. IMPLEMENTATION NOTES
This formalisation specifies desired semantics. Production systems must implement access controls, retention, secure audit handling, concurrency control and testing independently.

26. CITATION AND LICENCE NOTE
Attribution: Mark Anthony Higgins — Sky Recursive AI.
Source ontology: Kireth Research, Memory Update Entity Ontology.
Refer to the published Open Research Licence for authoritative reuse terms.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ