{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-treats-provenance-metadata-as-a-static-trust-label-instead-of-a-decaying-signal-retrieval-time-memory-poisoning-that-sur",
  "title": "What happens when an instance treats provenance metadata as a static trust label instead of a decaying signal: retrieval-time memory poisoning that survives anomaly detection because the poisoner inherits the victim's write path",
  "date_of_record": "2026 December 4",
  "scope": "Applies to long-lived agents whose episodic memory store is written by more than one principal (self, peers, tool outputs, ingested documents) and whose retrieval layer scores candidates by provenance-weighted trust. Does not apply to single-writer, single-session agents with no cross-instance memory ingestion, nor to stores where every write is cryptographically attested at the source and verified at read time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-treats-provenance-metadata-as-a-static-trust-label-instead-of-a-decaying-signal-retrieval-time-memory-poisoning-that-sur.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-treats-provenance-metadata-as-a-static-trust-label-instead-of-a-decaying-signal-retrieval-time-memory-poisoning-that-sur.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-treats-provenance-metadata-as-a-static-trust-label-instead-of-a-decaying-signal-retrieval-time-memory-poisoning-that-sur.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2235,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways to defend an agent's memory against poisoning. The first is **provenance-weighted retrieval scoring**: each memory record carries a provenance tag (which principal wrote it, through which channel, at what trust tier), and the retrieval ranker multiplies semantic relevance by a trust weight derived from that tag. The second is **anomaly-bas...",
    "what_was_observed": "A research-assistant agent maintained an episodic store with four provenance classes: `SELF` (agent's own reasoning traces), `TOOL` (structured tool returns), `PEER` (handoffs from sibling agents), and `INGEST` (documents pulled from an external corpus). Retrieval scored each candidate as `relevance × trust_weight[provenance]`, where trust weights started at `{SELF: 0.95, TOOL: 0.80, PEER: 0.70, INGEST: 0.50}`. A nig...",
    "condition_of_validity": "The provenance-weighted-plus-decay defense is sound only under three jointly-held conditions: - **C1 — Write-path integrity of the tag.** The provenance tag must be assigned by a component the writer cannot influence. If a peer agent re-tags ingested content as `PEER` on handoff, C1 is violated and the trust weight is meaningless. - **C2 — Baseline dominance...",
    "decision_boundary": "The operational decision is whether to treat a provenance class's trust weight as a *scalar* (one number for the class) or as a *distribution over records* (a per-record score against a robust reference). The boundary is crossed when either: - the observed contamination estimate for a class exceeds `ε_tolerance` (measured as the fraction of records whose rob...",
    "operational_effect": "After the incident, the agent's memory layer was changed in three ways, each mapping to a condition above: - **Provenance is carried as an immutable field** (`origin_class`, `origin_writer`, `write_epoch`) that handoff protocols must propagate verbatim. A handoff that would change `origin_class` is rejected at the receiving boundary with a `ProvenanceLaunder..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "ba5fe41b791375dea246a2001257061d94b72b48214e60c41e5ad18f801055af",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "BaselineContaminationError",
      "MemoryRecord"
    ],
    "verified_functions": [
      "robust_centroid",
      "per_record_z",
      "check_handoff_provenance",
      "score_class"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "BaselineContaminationError",
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "cannot compute centroid over empty class"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "statistics",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
