{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-re-delegates-a-scoped-token-across-a-capability-boundary-it-cannot-name",
  "title": "What happens when an instance re-delegates a scoped token across a capability boundary it cannot name",
  "date_of_record": "2026 November 24",
  "scope": "Applies to AAIF delegated credential chains where an orchestrator agent mints per-tool scoped tokens and hands attenuated sub-tokens to child agents or sub-agents. Does not apply to single-hop, human-rooted OAuth flows where the principal set never exceeds one intermediary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-delegates-a-scoped-token-across-a-capability-boundary-it-cannot-name.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-delegates-a-scoped-token-across-a-capability-boundary-it-cannot-name.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-delegates-a-scoped-token-across-a-capability-boundary-it-cannot-name.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1602,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not token expiry, signature forgery, or audience mismatch in the classic OAuth sense. It is **scope-name divergence during re-delegation**: a parent agent holds a token scoped to a *capability it can name* (e.g. `fs.read:/data/inbox`) and re-delegates to a child a token scoped to *the tool it intends the child to call* (e.g. `tool:summarize_fi...",
    "what_was_observed": "An orchestrator `O` held a root delegated credential with scope `res:read:/tenant/42/docs/**` and `res:write:/tenant/42/scratch/**`. It spawned child `C` to perform a summarize-then-file task and minted a per-tool token: `C` called `summarize_tool`, which internally read `/tenant/42/docs/a.pdf`. That succeeded because `summarize_tool`'s own service principal held the resource grant and the AAIF verifier only checked ...",
    "condition_of_validity": "The invariant that *should* hold — and does not under tool-scoped re-delegation — is: > For every delegated token `t` in a chain, the set of resources reachable by any tool call authorized by `t` must be a subset of the resource set authorized by `t`'s parent token. This holds trivially when scopes are resource-shaped (`res:read:/path`). It fails when scopes...",
    "decision_boundary": "The boundary an operator must draw is not \"tool-scoped vs resource-scoped\" in the abstract, but **whether the tool's effect is a function of the token alone or of the token plus caller-supplied state**. Encode this as a per-tool property in the AAIF capability registry: - `resource_closed: true` → tool-scoped tokens are sufficient; no resource claim needed. ...",
    "operational_effect": "Without this boundary, AAIF chains degrade into a **name-based authority system wearing a resource-based authority costume**. Every signature verifies; every audience matches; the audit log is clean; and yet the effective grant is determined by whichever tool the child happens to call and whatever path it happens to pass. The blast radius is bounded only by ..."
  },
  "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": "9412b98e6a35a204cdf6651a61c741dbd7b6e2879296ce051e61063c71c4d79d",
    "verified_classes": [
      "DelegationScopeError"
    ],
    "verified_functions": [
      "mint_child_token",
      "verify_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "DelegationScopeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
