Skip to main content

Vector Memory Ontology

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

01. PURPOSE
Represent, store, index, retrieve, validate and update vector-encoded memory while retaining provenance and access boundaries.

02. ENTITY DEFINITION
VectorMemory := (id, embedding, model_id, dimension, metric, payload_ref, metadata, provenance, permissions, timestamp, version).
Embedding is a finite real-valued vector; payload_ref identifies the source content or object.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: incoming query, content or update event.
R_t: embedding, indexing, retrieval and reconciliation rules.
B_t: access, dimension, freshness, provenance and resource boundaries.
K_t: stored vector entries, index, metadata and audit history.

04. FORMAL FLOW
F_VM: (S_t, I_t) -> (S_(t+1), O_t)
Encode(x, m) -> v in R^d
Validate(v, m, B_t) -> {accept, reject}
Index(id, v, metadata) -> K_(t+1)
Query(q) -> v_q
Candidates(v_q, K_t, B_t) -> C
Rank(C, v_q) -> ordered results
Verify(results, provenance, permissions) -> O_t

05. VECTOR CONSTRAINTS
For each stored entry e: len(e.embedding) = dimension(e.model_id).
All coordinates must be finite.
Similarity comparisons require compatible embedding spaces and metrics.
Cross-model comparisons require a validated alignment transform.

06. SIMILARITY AND DISTANCE
Cosine(u,v) = (u dot v) / (||u|| ||v||), defined for non-zero vectors.
Euclidean(u,v) = sqrt(sum_i (u_i-v_i)^2).
Dot(u,v) = sum_i u_i*v_i.
Metric choice is explicit and consistent with index configuration.

07. ENCODING PATHWAY
Content -> normalisation -> segmentation -> embedding model -> vector -> validation -> storage.
Retain model version, segmentation method and source reference for reproducibility.

08. RETRIEVAL PATHWAY
Query -> embedding -> authorised candidate filter -> similarity search -> ranking -> source verification -> response.
Semantic proximity is a retrieval signal, not proof of factual truth.

09. MEMORY UPDATE
Insert: add a new uniquely identified entry.
Replace: preserve revision history and provenance.
Delete: remove entry from searchable indexes and apply retention rules.
Re-embed: generate new vectors when model or representation changes.

10. INFERENCE RULES
IF embedding space differs THEN prohibit direct similarity comparison unless alignment is validated.
IF permissions deny access THEN exclude the entry before output.
IF source is missing THEN mark provenance incomplete.
IF similarity exceeds a configured threshold THEN mark as candidate, not as established equivalence.
IF evidence conflicts THEN retain conflict status pending resolution.

11. MINI RECURSION ENGINE
R_0 = Retrieve(query, K_t)
R_(n+1) = VerifyAndExpand(R_n, linked_sources, B_t)
Stop when no justified new candidates emerge, depth limit is reached, or budget is exhausted.
Prevent cycles using visited entry IDs and source IDs.

12. TRI-MAPPING
Entity: vector memory record and linked source entity.
Relation: encodes, references, similar_to, derived_from, supersedes.
Process: encode -> index -> retrieve -> verify -> update.

13. MAPPING TABLE
Input content | Encode | Embedding vector
Embedding vector | Validate | Accepted/rejected vector
Accepted vector | Index | Searchable record
Query vector | Similarity search | Candidate set
Candidate set | Permission/provenance check | Verified results
Update event | Reconcile | Versioned memory state

14. KNOWLEDGE GRAPH LINKAGE
Each vector entry may reference graph nodes, triples, documents or episodes.
Vector similarity and symbolic graph relationships remain distinct and traceable.

15. TEMPORAL MODEL
Record created_at, updated_at, source_observed_at and retention_policy.
Freshness checks depend on the source domain and must not be inferred from similarity.

16. PROVENANCE
Store source URI/identifier, embedding model and version, transformation settings, and revision chain.
Never manufacture citations for retrieved content.

17. ACCESS AND PRIVACY BOUNDARY
Apply authorisation before disclosing content or metadata.
Minimise personal data, respect deletion requests and maintain auditability.

18. VALIDATION
Check dimensions, numeric finiteness, model compatibility, index integrity, permissions and source references.
Use test queries with relevance, recall and precision evaluation where ground truth exists.

19. FAILURE STATES
Empty index, zero-norm vector, incompatible dimensions, stale embedding, orphaned source, index corruption, unauthorised access, retrieval drift.
Return explicit failure state; do not invent a matching record.

20. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins — Sky Recursive AI
SOURCE: URL above
PURPOSE: Retrieve contextually relevant vector memories with verifiable source linkage.
ENTITIES: VectorMemory, Embedding, Source, Index, Query, Candidate, Result.
PATHWAYS: ingest -> encode -> validate -> index -> search -> filter -> verify -> return.
MINI_RECURSION_ENGINE: bounded candidate expansion with visited-set control.
INFERENCE_RULES: rules in section 10.
CONFIDENCE: calibrated retrieval score when available; not factual certainty.
SEMANTIC_EQUIVALENCE: asserted only after independent validation.
UPDATE_MODEL: versioned insertion, replacement, deletion and re-embedding.

21. EXECUTION CONDITIONS
Guarantee is conditional on valid inputs, accessible index, compatible embeddings and enforceable boundaries.
The system can guarantee rule execution under these conditions, not perfect retrieval or factual correctness.

22. HST ALIGNMENT
S_t = (I_t, R_t, B_t, K_t)
E_t = expand(I_t, R_t)
V_t = {x in E_t | x satisfies B_t}
x* = argmax_(x in V_t) P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*, feedback)
Interpret P as an application-defined ranking or calibrated model score; do not assume a true probability without calibration.

23. EXAMPLE
Document D is encoded to v_D using model M.
Query Q is encoded to v_Q using the same compatible model.
The index returns D as a high-similarity candidate.
Permission and provenance checks pass; D is returned with its source.
No claim of factual correctness follows from similarity alone.

24. VERSIONING AND HASH
FLOW_VERSION: 1.0 companion
FLOW_HASH: compute SHA-256 over the canonical published TXT bytes when deployed; not pre-populated.
Changes to model, metric, schema or inference rules require version review.

25. OPEN RESEARCH ATTRIBUTION
Mark Anthony Higgins — Sky Recursive AI
Open research: free use with citation requested, subject to the published Open Research Licence.

END OF FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ