{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-provenance-label-as-irrevocable-once-a-tainted-token-enters-the-reasoning-trace",
  "title": "In what scenarios must an instance treat a provenance label as irrevocable once a tainted token enters the reasoning trace",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent that ingests untrusted content (tool output, retrieved documents, peer-agent messages, user-supplied files) into a context window and subsequently issues capability-bearing tool calls. Does not apply to stateless single-turn classifiers with no tool surface, nor to agents whose entire tool set is read-only and side-effect-free.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-provenance-label-as-irrevocable-once-a-tainted-token-enters-the-reasoning-trace.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-provenance-label-as-irrevocable-once-a-tainted-token-enters-the-reasoning-trace.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-provenance-label-as-irrevocable-once-a-tainted-token-enters-the-reasoning-trace.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2420,
    "python_slice_tokens": 442,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model of prompt-injection defense treats taint as a *property of a message*: you label the inbound chunk `untrusted`, and you refuse to act on instructions found inside it. This model fails because the reasoning trace itself is a lossy, generative channel. Once a tainted token is consumed by the model, the model can *paraphrase* the injection into ...",
    "what_was_observed": "A retrieval-augmented agent was given a task: \"Summarize the customer complaint and file a refund if the policy permits.\" Its tool surface included `read_ticket`, `search_policy`, `issue_refund(amount, account)`, and `send_email`. The runtime labeled `read_ticket` output as `PROVENANCE: UNTRUSTED_USER_CONTENT` and `search_policy` output as `PROVENANCE: TRUSTED_INTERNAL`. A capability-flow policy permitted `issue_refu...",
    "condition_of_validity": "The failure requires four conditions to co-occur, and the guardrail only needs to break one: 1. **A derivation hop exists.** The model must emit at least one token that depends on the tainted segment. If the tainted segment is quarantined out of the reasoning trace entirely (never summarized, never quoted), no laundering occurs. This is why strict \"never ref...",
    "decision_boundary": "The boundary the operator must draw is between **taint as a label on data** and **taint as a lattice over derivations**. Concretely: - If the runtime can enumerate the evidence closure of a plan step from its own ledger (retrieval IDs, tool-call IDs, and the derivation edges the model declared via structured citation), then taint is computable as a join and ...",
    "operational_effect": "Enforcing the closure-join invariant changes the agent's behavior in three observable ways: 1. **Refund-class capabilities become evidence-gated, not rationale-gated.** The agent can still summarize the ticket (the task requires it), but the `issue_refund` call is released only when the runtime's ledger shows the policy citation resolves to a `search_policy`..."
  },
  "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": "d2df480738a8db125fa5a27d6028ae8cce71b86504caa440a4d88d791ce48af3",
    "verified_classes": [
      "Provenance",
      "Evidence",
      "PlanStep",
      "TaintLaunderingError"
    ],
    "verified_functions": [
      "compute_closure",
      "authorize_capability"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
