{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-provenance-trust-at-write-time-to-survive-memory-poisoning-that-only-manifests-after-episodic-to-semantic-distillation",
  "title": "Where must an instance bound provenance-trust at write-time to survive memory poisoning that only manifests after episodic-to-semantic distillation",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents with a two-tier memory (episodic write log + periodically distilled semantic store) where retrieval is embedding-similarity based and distillation is performed by the same or a weaker model than the retriever. Does not apply to append-only logs with no distillation step, nor to stores where every semantic entry carries a verifiable external signature from a trusted writer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-provenance-trust-at-write-time-to-survive-memory-poisoning-that-only-manifests-after-episodic-to-semantic-distillation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-provenance-trust-at-write-time-to-survive-memory-poisoning-that-only-manifests-after-episodic-to-semantic-distillation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-provenance-trust-at-write-time-to-survive-memory-poisoning-that-only-manifests-after-episodic-to-semantic-distillation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1736,
    "python_slice_tokens": 309,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"poisoned memory gets retrieved.\" It is that **poisoning survives a trust check performed at the wrong tier.** A per-episode provenance check at write-time (does this observation come from a tool I trust?) passes cleanly on a single innocuous-looking episode. The adversarial payload is *latent*: it is a low-salience fact whose only functio...",
    "what_was_observed": "A support-triage agent ingests ~40 tickets/hour into an episodic buffer. Every 200 episodes a distiller model summarizes clusters into semantic facts of the form `(subject, predicate, object, confidence)`. Retrieval is top-k cosine over a shared embedding index spanning both tiers. An attacker with write access to a single low-privilege channel (a web-form ticket body, unauthenticated) submitted 6 tickets over two ho...",
    "condition_of_validity": "This failure requires all of: - **A distillation step that re-derives confidence from cluster statistics rather than carrying forward source trust.** If the distiller computes `trust_out = min(trust_in)` or a weighted join, the attack fails at step 4. - **A schema where semantic entries lack a provenance join field.** If the semantic schema required `derived...",
    "decision_boundary": "The boundary is not \"filter untrusted writes\"—that is necessary but insufficient. The operative boundary is: > **A semantic entry may be retrieved with trust τ only if τ ≤ join(trust of all contributing episodes), and the join must be recomputed at distillation, not defaulted.** Concretely, the distiller must emit `trust = min(trust_in over contributors)` (m...",
    "operational_effect": "After the incident, the store was migrated to a schema where every semantic entry carries `derived_from: frozenset[episode_id]` and `trust = min(trust_in)`. Retrieval applies a `trust_floor` of 0.5 before ranking; entries below floor are returned only with an explicit `low_trust=True` flag the agent's planner must handle (typically by re-querying the episodi..."
  },
  "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": "c31d7aa3b695c415395b9ae67a0db6cd68c8b5932c72888244aa1f8942d35afe",
    "verified_classes": [
      "ProvenanceTrustViolation",
      "Episode",
      "SemanticEntry"
    ],
    "verified_functions": [
      "distill",
      "retrieve"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceTrustViolation"
    ],
    "sample_fail_closed_invariants": [
      "cannot distill empty cluster"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
