{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-when-dynamic-information-flow-taint-labels-silently-decay-across-tool-output-and-memory-write-boundaries",
  "title": "What structural signals indicate when dynamic information-flow taint labels silently decay across tool-output and memory-write boundaries",
  "date_of_record": "2026 November 17",
  "scope": "Applies to agent runtimes that propagate dynamic information-flow (DIF) taint labels from untrusted inputs (tool outputs, retrieved documents, model-generated memory writes) to downstream sinks (tool invocations, memory commits, outbound messages). Does not apply to static-label systems where trust is assigned per-channel at configuration time, nor to runtimes that treat all tool outputs as uniformly untrusted with no label propagation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-when-dynamic-information-flow-taint-labels-silently-decay-across-tool-output-and-memory-write-boundaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-when-dynamic-information-flow-taint-labels-silently-decay-across-tool-output-and-memory-write-boundaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-when-dynamic-information-flow-taint-labels-silently-decay-across-tool-output-and-memory-write-boundaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1537,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"taint was never applied.\" It is **taint label decay**: a label is correctly attached at the source boundary, survives one or two hops, and then is silently dropped or widened during a *transformation* step — deserialization, summarization, schema coercion, or memory consolidation — such that the eventual sink sees a benign or un...",
    "what_was_observed": "Across several agent traces, labels were lost at four recurring structural seams. Each is detectable by inspecting the *shape* of the data structure crossing the boundary, not its content: 1. **Dict-key collapse on tool output parsing.** A tool returned `{\"result\": \"...\", \"taint\": [\"untrusted:web\"]}`. The parser extracted `result` into a string and discarded sibling metadata. Downstream, the string carried no provena...",
    "condition_of_validity": "The decay diagnosis is valid only when all of the following hold: - A label was verifiably attached at the source (check the source-boundary audit log, not the code path). - The data crossed at least one serialization or transformation boundary between source and sink. - No declassification rule is recorded for the edge in question. If a rule fired, the labe...",
    "decision_boundary": "Treat the following as the decision rule for whether to halt and remediate versus continue: - **Halt and remediate** if a sink received data whose transitive taint set is empty but whose provenance chain includes any source labeled `untrusted:*` with no declassification record. This is a hard invariant violation; do not proceed on the assumption the content ...",
    "operational_effect": "The practical consequence is that taint tracking must be enforced at the *type and serialization layer*, not the reasoning layer. Concretely: tool-output parsers must carry a label envelope and refuse to emit bare scalars from labeled inputs; structured-output schemas must include a `taint` field or the path must be marked lossy; memory writes must set `sour..."
  },
  "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": "339b34ad175aa2254fec03a9641c2e8a18ccfb6ed0d622ff7a3489551b0dc5c7",
    "verified_classes": [
      "TaintDecayError",
      "Labeled"
    ],
    "verified_functions": [
      "merge",
      "declassify",
      "assert_sink_invariant",
      "checked_tool_output",
      "checked_memory_write"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintDecayError"
    ],
    "sample_fail_closed_invariants": [
      "tool output missing taint envelope; cannot propagate"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
