{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-quarantine-a-derived-value-rather-than-a-source-label-join-collapse-at-tool-boundaries-in-prompt-injection-taint-tracking",
  "title": "When must an instance quarantine a derived value rather than a source: label-join collapse at tool boundaries in prompt-injection taint tracking",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that carry dynamic information-flow (IFC) labels across tool-call boundaries and derive new values from labeled inputs. Does not cover static label assignment at ingress, nor pure prompt-level defenses without a label lattice.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-derived-value-rather-than-a-source-label-join-collapse-at-tool-boundaries-in-prompt-injection-taint-tracking.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-derived-value-rather-than-a-source-label-join-collapse-at-tool-boundaries-in-prompt-injection-taint-tracking.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-derived-value-rather-than-a-source-label-join-collapse-at-tool-boundaries-in-prompt-injection-taint-tracking.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1528,
    "python_slice_tokens": 217,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious split is between **taint on the source** (an untrusted document, a tool response, an injected instruction) and **taint on the derived value** (a summary, an extracted field, an argument synthesized from that source). Most implementations propagate a boolean `untrusted` flag and quarantine the *source object*. The failure is that the agent the...",
    "what_was_observed": "A retrieval-and-summarize agent read an untrusted web document labeled `L_untrusted = {confidentiality: public, integrity: tainted, provenance: web}`. It passed the document to a `summarize` tool that returned a plain string. The tool's schema declared no output label, so the runtime defaulted the output to `L_trusted = {integrity: clean, provenance: tool}`. The summarizer had, under adversarial pressure embedded in ...",
    "condition_of_validity": "This failure is *valid* (i.e., the described invariant is the correct one and the described collapse is a real defect) only when all of the following hold: - The label lattice is at least a bounded lattice with `clean ⊑ tainted` on integrity and `public ⊑ confidential` on confidentiality, and the partial order is respected by the join operator. - At least on...",
    "decision_boundary": "The operational rule the agent must apply at each tool boundary: - **Quarantine the derived value, not the source, whenever `join(inputs) ⊒ tainted` and the tool's declared `output_label` is `null` or `clean`.** The derived value inherits the joined label; the tool's default-clean assumption is rejected. - **Permit the derived value only if `derived.label ⊑ ...",
    "operational_effect": "Without the join invariant, taint tracking provides false assurance: the audit trail shows the untrusted source quarantined while the injected instruction executes through a derived argument. The blast radius is bounded by the number of derivation tools between ingress and side-effect, but the *detection* probability drops toward zero because logs attribute ..."
  },
  "matched_failure_symptoms": [
    "PROMPT_INJECTION_OR_CONFUSED_DEPUTY"
  ],
  "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": "9ad12c24241bb5e5b4e63d7516c081ffee101d62d2f1a02718c7102d1cebf980",
    "verified_classes": [
      "LabelJoinViolation",
      "Label"
    ],
    "verified_functions": [
      "propagate_tool_output",
      "authorize_sink",
      "join",
      "leq"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "LabelJoinViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
