{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-delegated-aaif-credential-scopes-from-silently-widening-across-agent-hops",
  "title": "Which invariants prevent delegated AAIF credential scopes from silently widening across agent hops",
  "date_of_record": "2026 November 20",
  "scope": "Applies to Agent Identity and Authorization Framework (AAIF) token chains where an orchestrator agent delegates a narrowed capability scope to a sub-agent, which may further delegate to tool-calling workers. Does not apply to single-hop direct authorization or to stateless bearer tokens without a delegation chain.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-aaif-credential-scopes-from-silently-widening-across-agent-hops.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-aaif-credential-scopes-from-silently-widening-across-agent-hops.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-aaif-credential-scopes-from-silently-widening-across-agent-hops.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1501,
    "python_slice_tokens": 317,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not token forgery or signature bypass. It is **scope attenuation drift**: a delegated credential whose declared scope is a strict subset of the parent's scope, but whose *effective* scope at execution time is wider, because the receiving agent resolves an ambiguous capability identifier (a wildcard verb, a namespace glob, or a resource-pa...",
    "what_was_observed": "An orchestrator held scope `orders:rw`, `customers:r`. It delegated to a research sub-agent a token claiming `orders:r` with resource pattern `orders/*`. The sub-agent's local resolver expanded `orders/*` using a permissive glob that matched `orders/admin/*` — a namespace the orchestrator never intended to expose, and which the parent token itself did not carry (the parent's `orders:rw` was scoped to `orders/tx/*` on...",
    "condition_of_validity": "Attenuation is sound **if and only if** the delegate's resolution function is a *subset-preserving* map of the issuer's resolution function over the same registry snapshot. Formally, for every token T with parent P: `resolve_delegate(T) ⊆ resolve_issuer(T) ⊆ resolve_issuer(P)` The second inclusion is guaranteed by the issuer signing T as a subset. The first ...",
    "decision_boundary": "The boundary is between **rejecting on digest mismatch** and **resolving locally on digest mismatch**. The tempting engineering choice is to resolve locally \"for resilience\" — the delegate stays functional if the issuer's registry is unavailable. This is precisely the choice that converts a scope-attenuation guarantee into a best-effort suggestion. Adopt the...",
    "operational_effect": "Enforcing the registry-digest invariant converts a silent privilege-widening class of bugs into a loud, early, and localized failure at the delegation boundary. The cost is availability: a delegate whose registry is stale relative to the issuer cannot execute delegated work until reconciled. The benefit is that scope attenuation becomes a *checkable* propert..."
  },
  "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": "5796c9e5804e479ca96390de77f44618cdcac23f1edd1acebc87e88d4195b8ef",
    "verified_classes": [
      "ScopeAttenuationError",
      "RegistrySnapshot",
      "DelegatedToken"
    ],
    "verified_functions": [
      "resolve",
      "verify_attenuation"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ScopeAttenuationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
