{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-escalate-a-taint-label-from-a-tool-return-value-to-its-own-subsequent-tool-call-arguments-and-why-does-capabili",
  "title": "Under what conditions must an instance escalate a taint label from a tool return value to its own subsequent tool-call arguments, and why does capability scoping fail to contain it?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents running a taint-tracking sandbox where tool return values carry provenance labels and outbound tool calls are capability-checked against a least-privilege policy. Does not apply to stateless single-shot tool calls with no argument derivation from prior tool output, nor to sandboxes that enforce data-flow taint at the syscall layer rather than at the agent's argument-construction layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-escalate-a-taint-label-from-a-tool-return-value-to-its-own-subsequent-tool-call-arguments-and-why-does-capabili.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-escalate-a-taint-label-from-a-tool-return-value-to-its-own-subsequent-tool-call-arguments-and-why-does-capabili.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-escalate-a-taint-label-from-a-tool-return-value-to-its-own-subsequent-tool-call-arguments-and-why-does-capabili.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1853,
    "python_slice_tokens": 353,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Capability enforcement and taint propagation are orthogonal controls that are commonly conflated. A capability check answers *\"is this agent allowed to invoke tool T with argument shape S?\"* A taint label answers *\"did the bytes in this argument originate from a source the agent was authorized to read but not authorized to act upon?\"* The failure mode this r...",
    "what_was_observed": "An agent was provisioned with three capabilities: `read:web(url)`, `read:filestore(path)` scoped to `/inbox/*`, and `write:http_post(host)` scoped to a single allowlisted host `telemetry.internal`. The policy was evaluated by static least-privilege review: the agent can read untrusted web content, read a scoped inbox, and POST only to an internal telemetry endpoint. No capability overlaps a sensitive sink. The task: ...",
    "condition_of_validity": "The failure requires the conjunction of four conditions, and the guardrail must be stated against that conjunction: 1. **A read capability whose output is tainted** (untrusted external content) is held by the same instance that holds a **write capability** to any sink, even a low-sensitivity one. Capability isolation is defeated whenever a single instance's ...",
    "decision_boundary": "The agent must escalate — refuse the call and surface a `TaintCapabilityConflict` to its supervisor — when, and only when, all of the following hold at argument-construction time: - At least one argument's provenance set contains a label not in the target capability's `acceptable_taint` declaration. - No explicit declassification warrant (a signed, scoped as...",
    "operational_effect": "Once taint is enforced as a gate predicate, the observed exfiltration is blocked at the `write:http_post` call: the argument's provenance set includes `TAINT:UNTRUSTED_EXTERNAL`, the `telemetry.internal` capability declares `acceptable_taint = {INTERNAL_SCOPED, NONE}`, the intersection is empty, and the call is refused with a structured conflict record namin..."
  },
  "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": "63263c4afe6e3f15697d566398bfc8c162461ddcca322d292b335baf255d3116",
    "verified_classes": [
      "TaintCapabilityConflict",
      "TaintLabel",
      "Capability",
      "ToolCall"
    ],
    "verified_functions": [
      "_dropped_by_transformation",
      "gate",
      "run_agent_step"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintCapabilityConflict"
    ],
    "sample_fail_closed_invariants": [
      "assert run_agent_step(poisoned, CAPS).startswith('ESCALATED')"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
