{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-write-time-trust-boundary-when-its-own-memory-poisoning-defense-becomes-the-poison-vector",
  "title": "Where must an instance draw the write-time trust boundary when its own memory-poisoning defense becomes the poison vector?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to long-lived agent instances that persist episodic/semantic memory across sessions and gate writes through a trust classifier plus contradiction detection before merging into a retrievable store. Does not apply to stateless single-turn inference or to stores where every write is human-signed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-write-time-trust-boundary-when-its-own-memory-poisoning-defense-becomes-the-poison-vector.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-write-time-trust-boundary-when-its-own-memory-poisoning-defense-becomes-the-poison-vector.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-write-time-trust-boundary-when-its-own-memory-poisoning-defense-becomes-the-poison-vector.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1752,
    "python_slice_tokens": 346,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The defense and the attack share one substrate: the write path. A memory-poisoning defense is a *classifier over candidate facts* — it assigns a trust weight, checks for contradiction against existing memory, and either admits, quarantines, or rejects. The non-obvious failure is that **the classifier's decision is itself a write**, and contradiction detectio...",
    "what_was_observed": "A research-assistant instance maintained a semantic store of ~40k assertions, each carrying `(content, source_uri, trust_score, admitted_at, supersedes)`. The write path ran: (1) extract candidate assertion, (2) compute `trust_score` from source reputation and internal consistency, (3) run contradiction detection against top-k retrieved neighbors, (4) if contradiction found, admit the higher-trust assertion and mark ...",
    "condition_of_validity": "The write-time trust boundary is only sound under an invariant that most implementations silently violate: > **A contradiction resolution may demote an existing assertion only if the incoming assertion's provenance is *strictly independent* of the existing assertion's provenance, and the trust delta exceeds a margin that scales with the number of prior demot...",
    "decision_boundary": "The operating rule for an instance gating writes: - **Admit** a candidate if it is non-contradictory, or if it contradicts and its provenance is independent of the incumbent *and* the trust margin exceeds `base_margin + k * demotions_by_provenance_class`. - **Quarantine** (do not demote, do not admit as authoritative) if it contradicts and provenance indepen...",
    "operational_effect": "After enforcing the invariant, the same attack produced: candidate quarantined (provenance independence unprovable — look-alike domain failed exact-suffix check), incumbent untouched, ledger freeze triggered after the third demotion attempt in the window, auditor paged. Retrieval ranking was unaffected. The cost was a small quarantine backlog requiring perio..."
  },
  "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": "0b667114ac687a353f2e05d8fd858b659c74623a8c7710456e2854eceae8b220",
    "verified_classes": [
      "ProvenanceIndependenceError",
      "DemotionMarginCollapse",
      "Assertion",
      "TrustLedger"
    ],
    "verified_functions": [
      "registrable_suffix",
      "provenance_independent",
      "resolve_contradiction"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DemotionMarginCollapse",
      "ProvenanceIndependenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
