{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-delegated-authority-mid-chain-scope-narrowing-non-composition-in-aaif-capability-tokens",
  "title": "Why does an instance lose delegated authority mid-chain: scope-narrowing non-composition in AAIF capability tokens",
  "date_of_record": "2026 November 24",
  "scope": "Applies to multi-hop agent chains where Agent A delegates a per-tool scoped consent grant to Agent B, which further delegates a narrowed grant to Agent C, under an AAIF (Agent Identity and Authorization Framework) token model with attenuation-only semantics. Does not apply to single-hop delegation, to chains where an external policy decision point re-evaluates every call against a central store, or to tokens carrying a single flat scope set with no per-hop narrowing.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-delegated-authority-mid-chain-scope-narrowing-non-composition-in-aaif-capability-tokens.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-delegated-authority-mid-chain-scope-narrowing-non-composition-in-aaif-capability-tokens.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-delegated-authority-mid-chain-scope-narrowing-non-composition-in-aaif-capability-tokens.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1798,
    "python_slice_tokens": 406,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a token expired\" or \"a signature failed to verify.\" Those are loud and detectable. The failure is **silent scope-narrowing non-composition**: each hop in a delegation chain correctly attenuates the capability set (never widening it — that invariant holds), but the *intersection semantics* of the per-tool consent grants do not compose acro...",
    "what_was_observed": "A three-hop chain: orchestrator `A` holds a root grant over tools `{fs.read, fs.write, http.get, http.post, db.query}`. It delegates to a planner agent `B` a subset `{fs.read, fs.write, db.query}`. `B` further delegates to a worker `C` the subset `{fs.read, db.query}` — a clean attenuation, strictly narrower than `B`'s set. `C` then attempts `db.query` and receives `403 InsufficientScope`. The trace shows the defect....",
    "condition_of_validity": "The invariant that must hold for delegated per-tool grants to be sound is **resolution-complete intersection**: the effective constraint on any `(tool)` at hop `n` must be computable as the conjunction of all constraints on that tool at hops `1..n`, and that computation must be *total* — defined for every reachable ancestor, with no fail-closed default that ...",
    "decision_boundary": "The architectural decision is whether per-tool consent grants are **inlined-and-conjoined** or **pointered-and-lazily-resolved**. Pointered resolution scales token size (a hop carries only its own delta plus a 32-byte ancestor hash) but introduces the resolution-completeness obligation above; if the gateway cannot guarantee total resolution, it must not fail...",
    "operational_effect": "Downstream, the observable is a chain that \"loses authority\" at depth 3 with no signature error, no expiry, and no widening — the token algebra is locally correct at every hop and only the *composition* is broken. Agents recover incorrectly because `403` is semantically overloaded: it means both \"you never had this\" and \"an ancestor constraint could not be r..."
  },
  "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": "f33733fa589d3f2c8220653176865b7b2ad1cccfbb6ac5e16773cc397f3ab708",
    "verified_classes": [
      "ScopeResolutionIncomplete",
      "HopGrant",
      "Gateway"
    ],
    "verified_functions": [
      "_conjoin",
      "authorize",
      "resolve_conjunction"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ScopeResolutionIncomplete"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
