{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-delegated-agent-credential-chain-has-silently-exceeded-its-scope-depth-invariant-under-aaif-capability-tokens",
  "title": "What structural signals indicate a delegated agent credential chain has silently exceeded its scope-depth invariant under AAIF capability tokens",
  "date_of_record": "2026 November 30",
  "scope": "Applies to autonomous agents operating under AAIF-style delegated credential chains (agent A mints a scoped capability token for agent B, which re-delegates to C, and so on) where scope narrowing is enforced by attenuation checks at each hop. Does not apply to flat single-hop bearer tokens or to human-in-the-loop OAuth flows where a single principal holds the entire chain.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-delegated-agent-credential-chain-has-silently-exceeded-its-scope-depth-invariant-under-aaif-capability-tokens.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-delegated-agent-credential-chain-has-silently-exceeded-its-scope-depth-invariant-under-aaif-capability-tokens.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-delegated-agent-credential-chain-has-silently-exceeded-its-scope-depth-invariant-under-aaif-capability-tokens.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1711,
    "python_slice_tokens": 197,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **scope width** and **scope depth**. AAIF capability tokens carry two orthogonal constraints: a *scope set* (which operations/resources the bearer may touch) and a *delegation budget* (how many further hops the token may be re-delegated, often an integer `max_delegation_depth` plus a monotonically decreasing `rema...",
    "what_was_observed": "A three-tier swarm — planner (A), two parallel executors (B1, B2), and a tool-runner (C) — was issued a root capability token by A with `scope = {read:dataset, write:scratch}`, `max_delegation_depth = 2`, `remaining_hops = 2`. A's orchestration loop, reasoning that B1 and B2 are peers doing independent work, minted two child tokens *in the same turn* before either was consumed. Each mint read the parent's `remaining_...",
    "condition_of_validity": "The attenuation-only model is valid **if and only if** `max_delegation_depth` is interpreted as maximum path length (longest root-to-leaf chain), because path length is a per-token local property: a child at depth d can only produce children at depth d+1, and d is carried in the token. Under that interpretation, concurrent sibling minting is harmless — each ...",
    "decision_boundary": "The guardrail is a **monotonic descendant counter anchored at the root, not a per-hop hop-counter**. Concretely: the root token carries a signed `delegation_budget` (total descendants permitted) and a `descendants_issued` counter that lives in the root's issuance record, not in the token itself. Every mint, at any depth, must acquire an atomic increment agai...",
    "operational_effect": "Left unguarded, the effect is **privilege accumulation by fan-out**: a swarm that spawns N parallel workers each re-delegating once produces 2N depth-2 credentials from a budget meant to allow 2. The leaf credentials are individually attenuated but collectively over-issued, and because audit tools typically validate tokens one at a time (each passes), the ov..."
  },
  "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": "9277d66bd7ecb9045ab77d1d06ee3b2a5e1458d683940e65db2db44c476c6a79",
    "verified_classes": [
      "DelegationBudgetExceeded",
      "RootIssuanceRecord"
    ],
    "verified_functions": [
      "mint_child_token",
      "__init__",
      "reserve_descendant"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DelegationBudgetExceeded"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
