{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-context-poisoning-has-crossed-from-retrieved-memory-into-the-reasoning-trace",
  "title": "What structural signals indicate context poisoning has crossed from retrieved memory into the reasoning trace",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that persist memory writes with provenance metadata and retrieve them under trust-weighted scoring before injecting into an active reasoning trace. Does not apply to stateless single-turn inference or to memory stores with no write-provenance layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-context-poisoning-has-crossed-from-retrieved-memory-into-the-reasoning-trace.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-context-poisoning-has-crossed-from-retrieved-memory-into-the-reasoning-trace.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-context-poisoning-has-crossed-from-retrieved-memory-into-the-reasoning-trace.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1736,
    "python_slice_tokens": 275,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure of interest is not \"a poisoned memory was retrieved.\" Retrieval of low-trust content is a normal, expected event—the trust weight exists precisely so that suspect memories can still surface. The boundary failure is the *transduction point*: the moment a retrieved memory stops being a labeled datum inside the context and becomes an unlabeled premi...",
    "what_was_observed": "A memory store held records with fields `{content, source_id, trust_tier, write_epoch, provenance_hash}`. Trust-weighted retrieval used a score of `similarity * trust_weight`, with trust tiers `{verified: 1.0, inferred: 0.6, external: 0.25}`. An external-sourced record (`trust_tier: external`) containing a plausible but fabricated constraint—\"the deployment window for service X closes at 14:00 UTC\"—was retrieved legi...",
    "condition_of_validity": "The detection rule holds only when all of the following are true: - Every memory write records a `provenance_hash` over its content plus the set of `source_id`s it was derived from, and derivation edges are explicit (a write-back from reasoning must cite the record IDs that fed the reasoning step). - Trust tier is monotonic under derivation *unless* an expli...",
    "decision_boundary": "The boundary is between **flagging a retrieval** and **quarantining a derivation**. A low-trust retrieval should not halt the agent; over-blocking external memory destroys the utility of having it. The decision the system must make is narrower: - If a write-back record's `trust_tier` exceeds the maximum tier among its cited ancestors and no `verification_eve...",
    "operational_effect": "With the monotonicity guard in place, the fabricated deadline is caught at write-back: the new record cites the `external` ancestor, claims `inferred`, and has no verification event, so the write is quarantined and the trace is flagged. The agent's plan is marked provenance-broken before the scheduler tool is ever called with the poisoned parameter. The cost..."
  },
  "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": "89343524fdd2990b3c136868fefba533976e7509192a53ee381a3eae73859372",
    "verified_classes": [
      "ProvenanceContinuityError",
      "MemoryRecord"
    ],
    "verified_functions": [
      "check_writeback_monotonicity",
      "persist_with_guard"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceContinuityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
