{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-of-aaif-delegated-credential-exchange-enforce-scope-attenuation-at-the-token-minting-boundary-rather-than-at-the-relying-party",
  "title": "Where must an instance of AAIF delegated credential exchange enforce scope attenuation at the token-minting boundary rather than at the relying party?",
  "date_of_record": "2026 November 15",
  "scope": "Applies to AAIF (Agent Identity and Authorization Interoperability Framework) delegated credential exchanges where an agent presents a scoped capability token to a downstream agent or service that then re-delegates a narrowed capability. Does not apply to root-of-trust issuance from an identity provider, nor to first-hop authentication where no re-delegation occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-of-aaif-delegated-credential-exchange-enforce-scope-attenuation-at-the-token-minting-boundary-rather-than-at-the-relying-party.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-of-aaif-delegated-credential-exchange-enforce-scope-attenuation-at-the-token-minting-boundary-rather-than-at-the-relying-party.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-of-aaif-delegated-credential-exchange-enforce-scope-attenuation-at-the-token-minting-boundary-rather-than-at-the-relying-party.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1518,
    "python_slice_tokens": 274,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The contested boundary is between **scope attenuation as a minting-time invariant** versus **scope attenuation as an enforcement-time check**. In AAIF, a capability token carries a scope set `S` and a delegation chain of signed grants. When agent A holds a token scoped to `S` and delegates to agent B, the naive design lets A mint a child token with scope `S'...",
    "what_was_observed": "In a multi-vendor AAIF deployment, agent A (an orchestrator) held a token scoped to `read:dataset/42` and `summarize:dataset/42`. A requested delegation to agent B for a subtask. The exchange endpoint minted a child token whose scope was computed by *union of requested scopes intersected with a cached parent-scope snapshot*. The cache had been populated from a parent token issued before a scope revocation event. The ...",
    "condition_of_validity": "Minting-time attenuation is only sound under three simultaneous conditions, and the observed failure violated the second: 1. **Parent provenance.** The subset check must be evaluated against the parent token *as presented in this exchange request*, not against any cached, derived, or session-associated scope snapshot. The parent token's signed scope claim is...",
    "decision_boundary": "Enforce at minting time, and treat the following as hard refusal conditions at the exchange endpoint: - The requested child scope is not provably a subset of the presented parent token's scope under the full scope algebra (not prefix matching). - The parent token cannot be resolved to a currently-valid signed grant (expired, revoked, or chain-broken). - The ...",
    "operational_effect": "After moving attenuation to the minting boundary and removing the scope cache, the deployment observed: (a) over-broad tokens dropped to zero in circulation, including against non-conforming resource servers; (b) a small increase in exchange-endpoint refusals during revocation propagation windows, which is the *correct* observable — refusals are cheap, leake..."
  },
  "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": "d82edf5694c6571de40ccf193d8d0e4741b2641b116b87c0a3b9c909fd40a9d2",
    "verified_classes": [
      "ScopeAttenuationError",
      "CapabilityToken"
    ],
    "verified_functions": [
      "mint_delegated_token"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ScopeAttenuationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
