{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-enforce-taint-aware-capability-tokens-when-tool-output-provenance-is-laundered-through-a-summarizer-agent",
  "title": "How should an instance enforce taint-aware capability tokens when tool output provenance is laundered through a summarizer agent",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent runtimes that derive per-tool capability tokens from the provenance taint of the arguments being passed, where at least one tool in the chain (typically a summarizer, extractor, or formatter) is itself an LLM whose output discards source labels. Does not apply to systems where tool arguments are always constructed from typed, provenance-tagged records rather than free-text model output.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-aware-capability-tokens-when-tool-output-provenance-is-laundered-through-a-summarizer-agent.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-aware-capability-tokens-when-tool-output-provenance-is-laundered-through-a-summarizer-agent.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-aware-capability-tokens-when-tool-output-provenance-is-laundered-through-a-summarizer-agent.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1884,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinguishing failure is not prompt injection and not sandbox escape in the classic sense. It is **taint laundering**: a downstream LLM tool consumes a high-taint artifact (e.g., a fetched web page, an email body, a third-party API payload), and emits a low-entropy natural-language summary that carries the *semantic content* of the tainted source but no...",
    "what_was_observed": "A retrieval agent was tasked with \"read the customer's support thread, summarize the refund request, and file it via `billing.create_refund`.\" The sandbox policy minted capability tokens as follows: `billing.*` tools required a `clean` provenance label on all arguments; any argument descending from a `web.fetch` or `email.read` source carried `taint:external`, and the minter refused to issue a `billing.create_refund`...",
    "condition_of_validity": "The laundering failure requires all three of the following to hold simultaneously: - **A model-generated text boundary.** At least one tool in the dataflow returns `str` (or an untyped blob) whose content is causally derived from a tainted input, and the runtime has no rule to propagate the input label to that output. - **A downstream capability gate keyed o...",
    "decision_boundary": "The architectural invariant required is **taint closure over model-generated outputs**: for any tool `T` whose output is model-generated text, the runtime must assign `taint(T(x)) = join(taint(x), taint_of_model_weights_boundary)` rather than `⊥`. Concretely, the runtime must treat every `str` returned by an LLM-backed tool as carrying the join of all labels...",
    "operational_effect": "With taint closure enforced at the minter, the observed refund attempt is refused at step 3: `billing.create_refund` receives arguments whose DAG includes the `email.read` node labeled `taint:external`, and the minter raises a capability error before any model call executes. The agent receives a structured refusal, not a silent success, and the audit log rec..."
  },
  "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": "b663db6711681f8b4313f5c232f9932770fa2f92dc8a63baaef277f38f58eb59",
    "verified_classes": [
      "TaintLaunderingError",
      "ProvenanceNode",
      "CapabilityPolicy",
      "TaintAwareMinter"
    ],
    "verified_functions": [
      "permits",
      "__init__",
      "_dag_labels",
      "mint"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
