{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-delegation-chain-depth-overflow-is-silently-collapsing-scope-in-aaif-scoped-capability-tokens",
  "title": "What structural signals indicate a delegation-chain depth overflow is silently collapsing scope in AAIF scoped capability tokens",
  "date_of_record": "2026 November 29",
  "scope": "Applies to AAIF capability tokens issued with attenuating delegation chains where each hop narrows scope via set intersection. Does not cover root-of-trust token minting, key rotation, or non-attenuating (widening) delegation models.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-delegation-chain-depth-overflow-is-silently-collapsing-scope-in-aaif-scoped-capability-tokens.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-delegation-chain-depth-overflow-is-silently-collapsing-scope-in-aaif-scoped-capability-tokens.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-delegation-chain-depth-overflow-is-silently-collapsing-scope-in-aaif-scoped-capability-tokens.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1502,
    "python_slice_tokens": 278,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a token is rejected.\" It is that a token is **accepted with a scope narrower than any principal in the chain intended, and this narrowing is invisible at every hop**. AAIF chains attenuate by intersecting the requested scope with the delegator's scope at each hop. The invariant that operators assume — *the effective scope of the leaf toke...",
    "what_was_observed": "A three-hop chain: orchestrator `O` → retrieval agent `R` → summarizer `S`. - `O` holds `fs:read:/data/**`, `tool:http:GET:*.internal`. - `O` delegates to `R` with `fs:read:/data/reports/**` (intended: R reads report files). - `R` delegates to `S` with `fs:read:/data/reports/q3/**` (intended: S reads Q3 reports). At hop 2→3, `R`'s AAIF client canonicalizes `/data/reports/**` to the glob set and intersects with `S`'s ...",
    "condition_of_validity": "The intersection-equals-effective-scope invariant is valid **only if** all of the following hold: 1. Every hop's scope grammar is drawn from the same registered scope algebra (same canonical form, same wildcard semantics). 2. Canonicalization is idempotent and applied *once* at mint, not re-applied per hop. Re-normalizing at hop N can strip a wildcard that h...",
    "decision_boundary": "The boundary is between **reject-at-mint** and **accept-and-observe-empty**. AAIF's spec permits minting a zero-cardinality token as long as the signature chain is intact, on the theory that the leaf will simply fail closed at use time. Operationally this is wrong: fail-closed at use time is indistinguishable from authorization failure, and it converts a del...",
    "operational_effect": "Without the mint-time check, the failure presents as: leaf agent authenticates, every tool call returns `403`, orchestrator retries, budget exhausts, and the incident is filed as \"authorization misconfiguration\" when it is actually \"scope algebra mismatch at hop 1.\" The diagnostic cost is high because the failing evidence (the empty scope) is only visible if..."
  },
  "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": "a9229924a27f2cab0018db392c7649f3b8b59ba634fcf5958a423a941342494e",
    "verified_classes": [
      "ScopeCollapse",
      "ScopeAttenuationWarning",
      "Scope",
      "CapabilityToken"
    ],
    "verified_functions": [
      "delegate",
      "validate_chain",
      "intersect",
      "cardinality"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ScopeAttenuationWarning",
      "ScopeCollapse"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
