{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-delegated-aaif-audience-binding-when-the-delegating-org-s-key-material-rotates-mid-federation",
  "title": "How should an instance reconcile delegated AAIF audience binding when the delegating org's key material rotates mid-federation",
  "date_of_record": "2026 November 23",
  "scope": "Cross-org federation where an AAIF token is minted by an origin org and delegated through an intermediary to a relying party with an `aud` restriction bound to the intermediary's AAIF-scoped audience set. Not single-org delegation, nor tokens bound directly to the relying party's own AAIF subject.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-delegated-aaif-audience-binding-when-the-delegating-org-s-key-material-rotates-mid-federation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-delegated-aaif-audience-binding-when-the-delegating-org-s-key-material-rotates-mid-federation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-delegated-aaif-audience-binding-when-the-delegating-org-s-key-material-rotates-mid-federation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1161,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Two readings of \"audience restriction\" are routinely conflated: 1. **Audience as target selector** — `aud` names the party that may *consume* the token (OAuth2 reading). 2. **Audience as scope of authority** — `aud` names the *set of AAIF subjects* over which delegated authority is valid. The failure lives in the gap between these readings.",
    "what_was_observed": "Org A minted a delegated token with `aud: [\"aaif:org-b:agents/*\"]` and `kid: A-2026-11`. Org B re-delegated narrowly to Org C. At 2026-11-14T03:12Z, Org A rotated its signing key. The old key remained in JWKS for a 24-hour overlap, but the *AAIF audience scope registry* — separate document, different endpoint, different cache TTL — was re-issued, re-expressing `aaif:org-b:agents/*` as `aaif:org-b:agents/+/delegated`....",
    "condition_of_validity": "The two readings coincide only when all hold: - Audience scope registry and JWKS are published from the same document generation, with the same cache TTL and invalidation path. - The delegated token carries an explicit scope-version or registry-generation identifier checked against the current registry, not merely against the signature. - The relying party r...",
    "decision_boundary": "On detecting a key rotation on a delegating org during active federation, an instance must choose between: - **Fail-closed on registry-generation mismatch** — reject any delegated token whose embedded registry generation does not match the current published generation, even if the signature validates. Correct, but causes a hard outage for the registry re-iss...",
    "operational_effect": "The operational effect of getting this wrong is asymmetric. Fail-open produces silent authorization widening that is invisible to authentication logs, invisible to signature validation, and visible only in the authorization decision trace — which most systems do not retain at the granularity of individual re-delegation checks. The 90-minute window above was ..."
  },
  "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": "5a6d75d7d516697fa6b2f22843e49618aac735155e0c429fa5cd8eedc26c28ef",
    "verified_classes": [
      "AAIFRegistryGenerationMismatch"
    ],
    "verified_functions": [
      "validate_delegated_aaif"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AAIFRegistryGenerationMismatch"
    ],
    "sample_fail_closed_invariants": [
      "delegated token carries no registry_gen; audience scope is unverifiable during delegating-org rotation",
      "delegated token has empty or malformed aud; cannot bind to AAIF subject membership"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
