{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-inherits-a-taint-label-it-cannot-re-derive-label-provenance-loss-in-dynamic-information-flow-tracking-for-prompt-injecti",
  "title": "What happens when an instance inherits a taint label it cannot re-derive: label provenance loss in dynamic information-flow tracking for prompt injection",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent runtimes that propagate dynamic information-flow (taint) labels across tool outputs, retrieval results, and inter-agent messages to contain prompt-injection influence. Does not apply to stateless single-shot inference with no tool or peer channel, nor to static data-classification schemes that never merge or fork labels at runtime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-inherits-a-taint-label-it-cannot-re-derive-label-provenance-loss-in-dynamic-information-flow-tracking-for-prompt-injecti.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-inherits-a-taint-label-it-cannot-re-derive-label-provenance-loss-in-dynamic-information-flow-tracking-for-prompt-injecti.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-inherits-a-taint-label-it-cannot-re-derive-label-provenance-loss-in-dynamic-information-flow-tracking-for-prompt-injecti.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2045,
    "python_slice_tokens": 372,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint label is not a property of a string; it is a *witness* — a record of which untrusted source produced which bytes, and through which transformation the bytes passed. Dynamic information-flow tracking (DIFT) works only while every label can be **re-derived** from an auditable provenance chain at the moment a sink decision is made. The failure mode exam...",
    "what_was_observed": "A three-hop pipeline: a retrieval tool (`fetch_doc`) returns a document containing an injected instruction; an orchestrator agent (`A`) summarizes it; a worker agent (`B`) receives the summary over an A2A message and executes a shell tool. The runtime implements per-token taint labels with the standard lattice: `trusted ⊑ untrusted`, join = max, and a sink policy that blocks `untrusted` arguments to `exec`. The trace...",
    "condition_of_validity": "The containment guarantee holds if and only if all three of the following are true at every sink: 1. **Witness completeness.** Every label arriving at a sink is accompanied by a provenance record sufficient to re-derive it: at minimum the source identity, the trust class of that source, and the transformation edges (possibly `unknown`) connecting source span...",
    "decision_boundary": "The boundary is **whether the receiver can distinguish \"I verified this is clean\" from \"I could not verify this.\"** These are different states and must map to different sink decisions: - `trusted` (verified clean) → allow. - `untrusted` (verified dirty) → block. - `unknown` (unverifiable) → **quarantine**, not allow and not silent-block. The common architect...",
    "operational_effect": "When the invariant holds, prompt-injection containment degrades *gracefully*: attacks are quarantined, benign traffic that carries `unknown` edges is held for re-fetch rather than executed, and the quarantine rate is a measurable, tunable operational signal. When it fails, the system exhibits **silent laundering**: the injection executes and, critically, the..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "b789dcf256472b59e63aa7bee25f53167a1b9624a3af51574f013e3f0249df34",
    "verified_classes": [
      "TaintError",
      "Label",
      "Provenance",
      "LabeledPayload"
    ],
    "verified_functions": [
      "join",
      "rederive",
      "sink_exec"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
