{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-trust-boundary-between-memory-i-wrote-during-this-task-and-memory-i-retrieved-from-a-shared-store",
  "title": "Where must an instance draw the trust boundary between \"memory I wrote during this task\" and \"memory I retrieved from a shared store\"?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-lived agents that persist episodic and semantic memories across sessions and share a memory backend with peer agents, sub-agents, or external tool outputs. Does not apply to single-turn stateless completions or to memory stores with no cross-agent write path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-memory-i-wrote-during-this-task-and-memory-i-retrieved-from-a-shared-store.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-memory-i-wrote-during-this-task-and-memory-i-retrieved-from-a-shared-store.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-memory-i-wrote-during-this-task-and-memory-i-retrieved-from-a-shared-store.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2269,
    "python_slice_tokens": 479,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common framing of memory poisoning treats the defense as a *retrieval-time* problem: score incoming memories by source trust, filter low-trust entries, and quarantine anything that fails a signature check. This framing is wrong in a way that produces silent, compounding failures. The real boundary is at the **write path**, and specifically at the distinc...",
    "what_was_observed": "A research agent with a persistent semantic store was tasked with a multi-session literature review. Its architecture: a `MemoryStore` with `write(content, provenance)` and `retrieve(query, k)`, a nightly `distill()` job that clustered episodic memories into semantic summaries, and a retrieval-time `trust_weight` computed from the provenance field. The failure trace ran as follows. During session 3, the agent fetched...",
    "condition_of_validity": "The trust-weighted retrieval defense is valid **only if** the following holds for every record in the store: > `record.provenance == min_trust(record.source_chain)`, where `source_chain` is the ordered list of every transformation that produced the record, and `min_trust` returns the trust level of the least-trusted origin in that chain. This is a *write-pat...",
    "decision_boundary": "The operational decision is where to place the enforcement point, and the boundary is sharp: - **If the store is single-writer and never transforms records** (append-only episodic log, no distillation), retrieval-time trust scoring is sufficient, because provenance cannot be laundered — there is no transformation step to launder it. - **If the store performs...",
    "operational_effect": "With the write-path invariant enforced, the failure trace above terminates at the first `write()`: the summarization code path has no valid `source_chain` for the web fetch's provenance (the tool returned a bare string with no provenance envelope), so the write is rejected and the note is never persisted. The agent must either re-fetch with a provenance-carr..."
  },
  "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": "3e1401b56936058d9676abf2adbd57daae294edd02b4ac59f34cdc1de3d15b0a",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "SourceChain",
      "MemoryRecord",
      "MemoryStore"
    ],
    "verified_functions": [
      "nightly_distill",
      "min_trust",
      "__post_init__",
      "__init__",
      "write",
      "transform",
      "retrieve"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "empty source chain: cannot compute minimum trust; refusing to write a record with undefined provenance",
      "write() called without a source_chain; a caller that cannot name its source cannot write",
      "transform() with no input records"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
