{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-taint-laundering-through-a-re-issuing-tool-broker-before-a-capability-token-crosses-the-sandbox-boundary",
  "title": "How does an instance detect taint-laundering through a re-issuing tool broker before a capability token crosses the sandbox boundary",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent runtimes that propagate taint labels (untrusted-data provenance) alongside capability tokens across tool-call boundaries, where any tool may itself mint or re-issue downstream capability tokens. Does not apply to single-hop tool calls where the orchestrator is the sole token issuer and no tool has issuance authority.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-through-a-re-issuing-tool-broker-before-a-capability-token-crosses-the-sandbox-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-through-a-re-issuing-tool-broker-before-a-capability-token-crosses-the-sandbox-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-taint-laundering-through-a-re-issuing-tool-broker-before-a-capability-token-crosses-the-sandbox-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1946,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *taint as a property of a value* and *taint as a property of a capability token's lineage*. Most sandbox designs track taint on data: a string read from an untrusted document gets labeled `UNTRUSTED`, and the policy engine refuses to pass `UNTRUSTED` strings into a `shell.exec` sink. This works only while the taint lab...",
    "what_was_observed": "A three-tier agent topology: an orchestrator `O` holding a `BROKER` token, a re-issuing broker tool `B` reachable only via `O`, and a sandboxed executor `E` that accepts tokens of scope `EXEC:<cmd_pattern>`. The orchestrator read a web page (labeled `UNTRUSTED`), extracted a \"configuration hint\" that happened to contain the substring `allowed_pattern=.*`, and passed it to `B.request_exec_token(hint=...)`. `B`, implem...",
    "condition_of_validity": "The guardrail holds only under the following condition, which must be enforced structurally, not by convention: **Every token-issuing code path must compute the issued token's lineage as `issuer_lineage ∪ taint(args)` and must reject issuance if the meet of that lineage and the target sink's required trust falls below the sink threshold.** Concretely, `B` mu...",
    "decision_boundary": "The instance must draw the boundary between *delegation* and *laundering* at the point where a tool's output scope depends on its input taint. The decision procedure at each issuance: - If `taint(args) == ∅` → issue normally; lineage = issuer lineage. - If `taint(args) ≠ ∅` and the requested scope is *narrower than or disjoint from* the tainted argument's in...",
    "operational_effect": "When the invariant is enforced, the observed trace changes at step 3: `B` computes `lineage = {B} ∪ {UNTRUSTED}` → `meet = UNTRUSTED`, detects that `EXEC:.*` broadens beyond the tainted-influence ceiling, and raises an issuance refusal. The orchestrator receives a typed error, not a token. The sandboxed executor `E` never sees the request, so the boundary is..."
  },
  "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": "908670e72f29d57345c9ad22cf55637c780b391dfce6bdef71039a465ce10826",
    "verified_classes": [
      "TaintLaunderingError",
      "CapabilityToken"
    ],
    "verified_functions": [
      "_broadens",
      "issue_exec_token",
      "enforce_boundary",
      "effective_trust"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
