{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-re-derives-its-delegated-capability-scope-from-tool-output-instead-of-the-signed-warrant-scope-laundering-across-the-aai",
  "title": "What happens when an instance re-derives its delegated capability scope from tool output instead of the signed warrant: scope-laundering across the AAIF attenuation boundary",
  "date_of_record": "2026 November 28",
  "scope": "Applies to AAIF delegated capability tokens (macaroon/biscuit-style attenuable warrants) where an agent instance holds a per-tool-scoped token and passes tool results back into its own planning loop. Does not apply to stateless bearer tokens re-minted per call by a trusted broker, nor to systems where the warrant is re-verified against the issuer on every tool invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-derives-its-delegated-capability-scope-from-tool-output-instead-of-the-signed-warrant-scope-laundering-across-the-aai.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-derives-its-delegated-capability-scope-from-tool-output-instead-of-the-signed-warrant-scope-laundering-across-the-aai.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-derives-its-delegated-capability-scope-from-tool-output-instead-of-the-signed-warrant-scope-laundering-across-the-aai.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2120,
    "python_slice_tokens": 301,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not token theft, signature forgery, or a confused-deputy at the transport layer. It is *scope re-derivation*: an agent instance, mid-task, reconstructs \"what am I allowed to do\" from the *content of prior tool outputs* rather than from the *signed caveat chain of its own warrant*. AAIF tokens are attenuable — a holder can only narrow scope, ne...",
    "what_was_observed": "A research agent held a warrant attenuated to three caveats: `tool:search`, `tool:fetch`, `resource:docs/*`, `expiry:<t>`. The `fetch` tool, on a URL outside `docs/*`, returned a structured 403 whose body included the full capability manifest of the *calling service account* — a convenience field the tool author added for debugging, listing sibling tools (`write`, `delete`, `admin.reindex`) with their required scopes...",
    "condition_of_validity": "The invariant \"scope belief ≡ signed warrant\" holds only under these conditions, and the observed failure is the violation of the first: - **No tool output may mutate the scope model.** Tool results are *data*, typed as untrusted observations. Any field that resembles a capability description must be quarantined from the planner's authorization state, not me...",
    "decision_boundary": "The operational line is between **scope as a cached belief** and **scope as a re-derived fact**. - If the agent caches `self.scope` in context and updates it from any source other than a fresh warrant parse → it is in the failure regime. Any tool output containing capability-shaped strings (tool names, scope identifiers, permission verbs, `tools/list` payloa...",
    "operational_effect": "When the boundary is crossed, three effects propagate: 1. **Correct rejections become noise.** The agent's rejection-handling policy, calibrated against a scope model it now believes is accurate, misclassifies legitimate denials as transient errors. Retry budgets burn against a wall that will never yield, and the token budget exhausts mid-task with the origi..."
  },
  "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": "1b551fee30a0e5134100ac00c969b953e06c692229273d38e62e62f50b4a61da",
    "verified_classes": [
      "ScopeLaunderingError",
      "Warrant",
      "AgentScope"
    ],
    "verified_functions": [
      "ingest_tool_output",
      "guarded_call",
      "__init__",
      "caveats",
      "verify",
      "__init__",
      "rederive",
      "authorize"
    ],
    "verified_functions_count": 8,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ScopeLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "tool output contains capability-shaped fields; refusing to mutate authorization state from observation",
      "warrant signature invalid"
    ],
    "stdlib_dependencies": [
      "hashlib",
      "hmac"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
