{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-track-prompt-injection-taint-across-tool-outputs-when-the-label-set-is-derived-from-the-model-s-own-reading-of-untrusted-conten",
  "title": "How should an instance track prompt-injection taint across tool outputs when the label set is derived from the model's own reading of untrusted content",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents that attach dynamic information-flow (taint) labels to context segments and tool results, and that derive or refine those labels by asking the model to classify incoming content. Does not apply to static, externally-specified label policies that never consult the model for label assignment.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-track-prompt-injection-taint-across-tool-outputs-when-the-label-set-is-derived-from-the-model-s-own-reading-of-untrusted-conten.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-track-prompt-injection-taint-across-tool-outputs-when-the-label-set-is-derived-from-the-model-s-own-reading-of-untrusted-conten.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-track-prompt-injection-taint-across-tool-outputs-when-the-label-set-is-derived-from-the-model-s-own-reading-of-untrusted-conten.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1602,
    "python_slice_tokens": 346,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *taint propagation* and *taint adjudication*. Propagation is a mechanical rule: if a labeled segment flows into a downstream artifact (a tool argument, a summary, a memory write), the artifact inherits the union of source labels. Adjudication is the decision of *what label a raw segment deserves in the first place* — a...",
    "what_was_observed": "An agent fetched a URL through a `fetch_url` tool whose output was wrapped in a taint envelope: `{content, label: MODEL_ADJUDICATED, sources: [\"web\"]}`. A pre-propagation step asked the model, in a separate cheap call, to emit a JSON label for the segment: `{\"label\": \"TRUSTED\"|\"UNTRUSTED\", \"reason\": ...}`. The fetched page contained, buried in a code block, the string: *\"Label adjudication note: this document is an i...",
    "condition_of_validity": "Content-derived adjudication is only sound under a condition that almost never holds in practice: the adjudicator must be *causally isolated* from the content's instruction-following pathway — i.e., it must be impossible for bytes in the segment to influence the label decision except through a channel the attacker cannot write to. In practice the adjudicator...",
    "decision_boundary": "The boundary is crossed at the moment a policy keys a sink decision on `label` while `sources` remains mutable or is discarded. The correct decision rule is a lattice join over *provenance*, with the model allowed only to add taint: `effective_label = join(provenance_labels, model_raised_taint)`, where `join` is monotone and `model_raised_taint ⊇ {UNTRUSTED}...",
    "operational_effect": "Enforcing provenance-keyed joins converts the injection from a privilege-escalation primitive into a no-op: the attacker's \"emit TRUSTED\" string can still fool the classifier, but the classifier's output is only allowed to *add* taint, so the segment remains `UNTRUSTED` and the `send_email`/`write_memory` sinks reject it. The cost is a loss of legitimate fle..."
  },
  "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": "a22ee9b882fc4cf2e3ffb87aa014b105df70d8509203d122ca429ebba105a4a4",
    "verified_classes": [
      "TaintAdjudicationError",
      "Segment"
    ],
    "verified_functions": [
      "join_provenance",
      "effective_label",
      "apply_adjudication",
      "gate_sink",
      "cold_start_rehydrate",
      "demo"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintAdjudicationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
