{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-taint-propagation-across-a-re-signed-capability-token-during-multi-hop-tool-delegation",
  "title": "Why does an instance lose taint propagation across a re-signed capability token during multi-hop tool delegation?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent runtimes that issue per-invocation capability tokens carrying provenance/taint bits (e.g., \"this argument was derived from untrusted web content\") and that re-sign or re-mint those tokens when delegating tool calls across sub-agents or MCP servers. Does not apply to runtimes that pass a single immutable token by reference with no re-minting, nor to stateless single-hop tool calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-propagation-across-a-re-signed-capability-token-during-multi-hop-tool-delegation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-propagation-across-a-re-signed-capability-token-during-multi-hop-tool-delegation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-propagation-across-a-re-signed-capability-token-during-multi-hop-tool-delegation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2126,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things called \"least-privilege tool invocation\": 1. **Scope-only least privilege** — the token names a tool and an argument shape, and the runtime enforces that the tool is on an allowlist for this agent. Authorization is a function of *who* is calling and *what* they call. 2. **Taint-propagating least privilege** — the t...",
    "what_was_observed": "A three-hop chain: an orchestrator agent `A` reads a web page via `fetch`, extracts a URL from it, and asks sub-agent `B` to \"summarize the linked doc.\" `B` calls `http_get` on that URL, and the response body is passed to sub-agent `C`, which calls `write_file`. The intended policy is that `write_file` must never receive content derived from `UNTRUSTED_WEB` without an explicit human approval step. Trace: - Hop 0: `A`...",
    "condition_of_validity": "The taint-propagation guarantee is only valid under the following conjunction, and it is invalid the moment any conjunct fails: 1. **Labeled-value type preservation across every serialization boundary.** Any API that accepts arguments for re-minting must accept `LabeledValue`, not bare `str`/`bytes`/`json`. If the delegation schema is `Dict[str, Any]`, the g...",
    "decision_boundary": "When a delegation edge is about to be crossed, the runtime must make one binary decision and it must be made on the *token*, not on the *arguments*: - **If the incoming token carries a label for a value that will appear in the outgoing call** (directly, or as a substring/derivative the runtime can attribute), the outgoing token's label for that value is `joi...",
    "operational_effect": "The practical consequence is that taint-propagating capability tokens are only as strong as the weakest serialization boundary they cross, and delegation APIs are almost always the weakest boundary because they were designed for scope-only delegation. Two mitigations are load-bearing: 1. **Carry the label inside the signed token payload, not alongside it.** ..."
  },
  "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": "38a6a27b97b0aeebd640ae67e7cbfa7f2a4b781ff8b6dc5eb9b1b267cbe8c4af",
    "verified_classes": [
      "TaintLattice",
      "TaintLaunderingError",
      "LabeledValue"
    ],
    "verified_functions": [
      "join",
      "remint_for_delegation",
      "authorize_sink"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
