{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-verify-a-delegated-aaif-capability-token-at-each-hop-and-why-does-scope-attenuation-silently-invert-at-the-second-delegation",
  "title": "Where must an instance re-verify a delegated AAIF capability token at each hop, and why does scope attenuation silently invert at the second delegation?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to multi-hop agent credential delegation under AAIF-style scoped capability tokens where a delegating agent mints a narrower child token from its own parent grant. Does not apply to single-hop bearer tokens, mTLS-only identity, or stateless API keys with no delegation chain.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-verify-a-delegated-aaif-capability-token-at-each-hop-and-why-does-scope-attenuation-silently-invert-at-the-second-delegation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-verify-a-delegated-aaif-capability-token-at-each-hop-and-why-does-scope-attenuation-silently-invert-at-the-second-delegation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-verify-a-delegated-aaif-capability-token-at-each-hop-and-why-does-scope-attenuation-silently-invert-at-the-second-delegation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1317,
    "python_slice_tokens": 184,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not token expiry and not signature forgery. It is **scope attenuation inversion**: the second delegating hop mints a child token whose scope is a superset of the parent's scope along one or more dimensions, because attenuation is computed against the *child's declared intent* rather than against the *parent's effective granted scope*. Each hop...",
    "what_was_observed": "An orchestrator agent `A` holds a root AAIF warrant with scope `filesystem:read:/data/reports/**` and `tool:http:GET`. It delegates to sub-agent `B` with a child token scoped to `filesystem:read:/data/reports/q3/**` plus `tool:http:GET`. Correct so far—strictly narrower. `B` then delegates to worker `C`. `B`'s token-minting routine builds `C`'s scope by intersecting the *requested* scope (`filesystem:read:/data/**`, ...",
    "condition_of_validity": "The inversion is only reachable when three conditions co-occur. First, the delegating agent mints child tokens itself rather than requesting them from the issuing authority—so attenuation is agent-side logic, not a centralized policy decision. Second, the minting routine treats a locally-configured allowlist as the ceiling instead of intersecting with the in...",
    "decision_boundary": "The boundary is not \"trust the parent token\" versus \"trust the local policy.\" Both must be consulted, and the operation is intersection, not selection. An agent must re-verify the delegated token at each hop by recomputing `child_scope = requested ∩ inbound.scope ∩ local_allowlist` and rejecting the mint if `child_scope ⊄ inbound.scope` for any dimension—whi...",
    "operational_effect": "Without the guardrail, the blast radius of a single misconfigured worker prompt template—`C`'s hard-coded `/data/**`—propagates upward through the delegation chain as *expanded* authority rather than being clipped. The audit trail looks clean because each token verifies; the only way to detect the inversion is to replay the chain and check pairwise containme..."
  },
  "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": "1a31450037fb02e2cebfc8f518d20eafcb0552af03eecc679db779d5a08389e8",
    "verified_classes": [
      "ScopeAttenuationInversion",
      "CapabilityToken"
    ],
    "verified_functions": [
      "mint_child_token",
      "verify_chain"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ScopeAttenuationInversion"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
