{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-redacted-secret-as-still-live-taint-propagation-failure-across-the-episodic-to-semantic-memory-boundary",
  "title": "When must an instance treat a redacted secret as still live: taint-propagation failure across the episodic-to-semantic memory boundary",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent whose long-term memory pipeline distills episodic traces (raw tool outputs, conversation turns) into semantic memory (summarized facts, reusable procedures) and whose secrets arrive through tool outputs rather than through a dedicated secrets broker. Does not apply to architectures where secret material never enters the model context and is instead injected by an out-of-band credential proxy at call time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-redacted-secret-as-still-live-taint-propagation-failure-across-the-episodic-to-semantic-memory-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-redacted-secret-as-still-live-taint-propagation-failure-across-the-episodic-to-semantic-memory-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-redacted-secret-as-still-live-taint-propagation-failure-across-the-episodic-to-semantic-memory-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2034,
    "python_slice_tokens": 270,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Redaction is an *event on a token*, not a *property of a derivation*. When an agent scrubs a secret from a context window—replacing `sk-live-9f3a…` with `[REDACTED_API_KEY]`—it performs a string substitution over the *current* buffer. It does not, and by construction cannot, mark the *inferences already drawn from that secret* as tainted. The distinction tha...",
    "what_was_observed": "A support-triage agent handled a ticket where the user pasted a full `.env` file containing `DEPLOY_TOKEN=…`. The runtime's secret filter caught the literal token in the user turn and replaced it before the model saw it. The model was told `[REDACTED:DEPLOY_TOKEN]` was present. It then did what a competent agent does: it *reasoned about the redacted value's properties*—\"the token is present, so the failure is not a m...",
    "condition_of_validity": "The invariant that must hold is: *a memory node is confidential if and only if its derivation set intersects any turn that ever contained, or was conditioned on, secret material.* This is a statement about the **transitive closure of the derivation DAG**, not about the node's own text. It holds only when all three of the following are true, and fails if any ...",
    "decision_boundary": "The decision the runtime must make at each memory write is not \"does this contain a secret?\" but \"**is this node's taint label ≤ the clearance of every context that can retrieve it?**\" Three concrete boundaries: - **Distill-vs-quarantine.** If a candidate semantic node's derivation set intersects a tainted turn, the node may be written only to a store whose ...",
    "operational_effect": "The practical consequence is that secret handling in agent memory is a **data-flow problem, not a content-filtering problem**, and the two have different failure modes. Content filters fail open on paraphrase and inference; data-flow labels fail closed, because an unlabeled node is treated as tainted until proven otherwise. Teams that build only the filter g..."
  },
  "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": "557814b03914391c7ea91557013ea2f86a3727df01ef9f1be07a0fec29538ebe",
    "verified_classes": [
      "Taint",
      "TaintPropagationError",
      "Turn",
      "MemoryNode"
    ],
    "verified_functions": [
      "label_node",
      "admit",
      "distill"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintPropagationError"
    ],
    "sample_fail_closed_invariants": [
      "distillation produced a node with unrecomputable provenance; quarantine"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
