{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-memory-store-integrity-attestation-as-invalid-the-moment-a-re-embedding-pass-changes-vector-dimensionality",
  "title": "In what scenarios must an instance treat a memory-store integrity attestation as invalid the moment a re-embedding pass changes vector dimensionality",
  "date_of_record": "2026 November 22",
  "scope": "Applies to persistent agent memory stores where semantic episodes are written by an embedding model, attested at write time, and later re-indexed after a model upgrade or index rebuild. Does not apply to stores that pin a single immutable embedding model for the store's lifetime, nor to purely ephemeral in-context scratchpads.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-store-integrity-attestation-as-invalid-the-moment-a-re-embedding-pass-changes-vector-dimensionality.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-store-integrity-attestation-as-invalid-the-moment-a-re-embedding-pass-changes-vector-dimensionality.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-memory-store-integrity-attestation-as-invalid-the-moment-a-re-embedding-pass-changes-vector-dimensionality.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2084,
    "python_slice_tokens": 464,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the memory was tampered with.\" The failure is that **the attestation was valid, the memory was untampered, and the retrieval path silently diverged anyway** — because the integrity check was bound to the *content* of the memory record while the retrieval contract was bound to the *geometry* of the vector. A content hash over `(text, metad...",
    "what_was_observed": "A long-running agent (call it the *curator*) wrote ~140k episodic memories over six weeks under embedding model `E1` (768-dim). Each record carried an attestation envelope: `sha256(text || canonical_json(metadata))`, a Merkle leaf in a per-shard root, and a signed root published every 15 minutes. Retrieval was `top_k` cosine over the shard's HNSW index. At week seven the operator swapped to `E2` (1024-dim) for better...",
    "condition_of_validity": "An integrity attestation over a memory store is **only valid as a retrieval guarantee if and only if** the attestation envelope transitively covers the vector *and the embedding model identity that produced it*. Concretely, the envelope must bind: - `content_hash` — as before, over text + canonical metadata. - `embedding_model_id` and `embedding_model_digest...",
    "decision_boundary": "The decision the runtime must make on every retrieval, not every write: `STALE_GEOMETRY` is a **third state**, and collapsing it into either `valid` or `invalid` is the failure. Treating it as `valid` is the observed bug — the store certifies a retrieval contract it can no longer honor. Treating it as `invalid` is over-correction: it discards legitimate memo...",
    "operational_effect": "Without the third state, the observed effect is **silent retrieval divergence with a green attestation light**. The agent's memory appears healthy, poisoning detection reports zero anomalies, and yet the agent confidently cites superseded facts because the geometry that encoded \"this correction supersedes that original\" was rebuilt by a model that never saw ..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "c793ece48dc4ca21b2baf4c44896dcf69a2cd452448d6a6962e045ffcc53f489",
    "verified_classes": [
      "StaleGeometryError",
      "AttestationState",
      "AttestationEnvelope",
      "MemoryRecord",
      "LiveIndex"
    ],
    "verified_functions": [
      "_h",
      "_content_hash",
      "classify",
      "retrieve",
      "cos"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleGeometryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
