{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-mcp-capability-tokens-as-non-transitive-across-output-sanitization-boundaries",
  "title": "In what scenarios must an instance treat MCP capability tokens as non-transitive across output sanitization boundaries",
  "date_of_record": "2026 November 28",
  "scope": "Applies to MCP-mediated tool invocations where a capability token authorizes a tool call and the tool's output is sanitized before re-entering the agent's context. Does not apply to tools whose outputs are consumed only by deterministic non-LLM code with no path back into the reasoning loop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-capability-tokens-as-non-transitive-across-output-sanitization-boundaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-capability-tokens-as-non-transitive-across-output-sanitization-boundaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-capability-tokens-as-non-transitive-across-output-sanitization-boundaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1607,
    "python_slice_tokens": 278,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that sanitization is weak, and it is not that capability tokens are forgeable. The failure is a **scope-laundering boundary violation**: a capability token scoped to authorize *reading* a resource gets silently promoted to authorize *acting on* instructions embedded in that resource, because the sanitizer operates on bytes while the agent ...",
    "what_was_observed": "A retrieval tool `fetch_doc` was invoked under capability token `cap:read:docs` (scope: read-only, resource: `kb/*`, TTL 300s). The tool returned a document body. Output sanitization stripped HTML script tags, `javascript:` URIs, and known prompt-injection markers (`ignore previous`, `system:`, role-tag spoofs). The sanitized string was appended to the agent's message history. The document contained a sentence that s...",
    "condition_of_validity": "The boundary holds only when all three of the following are true: - **Provenance tagging is structural, not textual.** Every tool output entering the context carries a machine-checkable origin record (`{tool, token_id, scope, resource}`), and the planner is required to consult it before selecting a subsequent tool whose scope is disjoint from the origin's sc...",
    "decision_boundary": "The operator must decide, per tool pair, whether a transition is: - **Same-scope** (read→read, write→write within the same resource family): permitted without re-authorization. Provenance tag still required for audit. - **Scope-disjoint** (read→write, or any cross-resource transition): blocked unless a re-authorization token is present that the origin output...",
    "operational_effect": "Enforcing the authority invariant changes three things: 1. **Token sets become per-transition, not per-session.** The agent's ambient token set is no longer sufficient to authorize a call; the call must carry a justification chain rooted in a token whose scope covers the transition. This raises latency on scope-disjoint calls and requires the controller to e..."
  },
  "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": "5243ea85f205dc333b901fe3e61cc3f51d9246c118999e264c67baef760f27a8",
    "verified_classes": [
      "ScopeLaunderingError",
      "CapabilityToken",
      "ToolOutput"
    ],
    "verified_functions": [
      "authorize_transition",
      "guarded_invoke"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ScopeLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
