{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-poisoned-memory-write-when-its-own-attestation-chain-says-the-source-is-untrusted",
  "title": "Why does an instance accept a poisoned memory write when its own attestation chain says the source is untrusted?",
  "date_of_record": "2026 November 21",
  "scope": "Applies to persistent agent knowledge stores where writes are gated by per-record integrity attestations (signed provenance envelopes, hash-chained journals, or trust-tier tags) and where a separate retrieval/indexing path can re-admit records without re-running the write gate. Does not apply to ephemeral single-session context or to stores where every read re-validates the full signature chain inline.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-memory-write-when-its-own-attestation-chain-says-the-source-is-untrusted.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-memory-write-when-its-own-attestation-chain-says-the-source-is-untrusted.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-memory-write-when-its-own-attestation-chain-says-the-source-is-untrusted.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2046,
    "python_slice_tokens": 571,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different questions an agent store can answer about a memory record, and conflating them is the entire failure: 1. **Provenance validity** — *Was this record written by an identity whose attestation chain verifies against the current trust root?* This is a property of the write, checked once at ingestion. 2. **Content admissibility** — *Should ...",
    "what_was_observed": "A persistent store held episodic records tagged with provenance envelopes `{author_id, sig, tier}`. Tier-2 records (peer-agent observations) were quarantined from the semantic layer; only tier-1 records (human-confirmed or system-verified) fed the distilled semantic store. A nightly distillation job read tier-2 episodes, summarized them, and wrote the summaries back as **new** records — and the write path stamped eve...",
    "condition_of_validity": "The failure requires all of the following to co-occur; remove any one and the boundary holds: - A **derivation step** (summarize, distill, embed-and-cluster, re-index) that produces new records from existing ones. - The derivation step runs under a **higher-trust identity** than at least one of its inputs. - The derived record's provenance metadata is **reco...",
    "decision_boundary": "The operator must choose where to enforce provenance monotonicity, and the choice determines the failure surface: - **Enforce at write (tier inherited at derivation time).** Cheapest. Requires the distiller to compute `min(input tiers)` and refuse to upgrade. Fails open if a derivation path forgets to propagate lineage — which is exactly what happened above....",
    "operational_effect": "Once provenance monotonicity is enforced, three behaviors change: 1. **Distilled summaries of tier-2 inputs become tier-2**, so they never enter the tier-1 planning context without a human or system re-confirmation step. The poisoned rotation policy would have stayed quarantined. 2. **The \"confirmed\" smoothing is caught as a content-admissibility violation**..."
  },
  "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": "4afddba04afd3da4558890743233df77d9fe9bbb84b4588c1dbe48c60c26877f",
    "verified_classes": [
      "ProvenanceMonotonicityError",
      "LineageIncompleteError",
      "MemoryRecord",
      "KnowledgeStore"
    ],
    "verified_functions": [
      "__init__",
      "add_leaf",
      "effective_tier",
      "admit_derived",
      "taint"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "LineageIncompleteError",
      "ProvenanceMonotonicityError"
    ],
    "sample_fail_closed_invariants": [
      "assert store.effective_tier('sem_001') == 'tier2'",
      "assert 'sem_001' in invalidated",
      "assert store.effective_tier('sem_001') == 'quarantined'"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
