{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-reject-a-delegated-credential-it-can-cryptographically-verify-the-audience-narrowing-invariant-in-aaif-delegated-credential-excha",
  "title": "Why does an instance reject a delegated credential it can cryptographically verify? The audience-narrowing invariant in AAIF delegated credential exchange",
  "date_of_record": "2026 November 19",
  "scope": "Applies to multi-hop agent authorization where an orchestrator (instance A) mints a delegated capability token for a sub-agent (instance B) that then acts on a downstream resource (MCP server, A2A peer, or tool endpoint). Does not apply to single-hop direct bearer tokens issued by a resource's own IdP, nor to human-in-the-loop OAuth flows where the audience is a fixed registered client.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-reject-a-delegated-credential-it-can-cryptographically-verify-the-audience-narrowing-invariant-in-aaif-delegated-credential-excha.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-reject-a-delegated-credential-it-can-cryptographically-verify-the-audience-narrowing-invariant-in-aaif-delegated-credential-excha.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-reject-a-delegated-credential-it-can-cryptographically-verify-the-audience-narrowing-invariant-in-aaif-delegated-credential-excha.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1795,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive mental model of delegated credential exchange treats verification as a single predicate: *does the signature chain validate and does the scope cover the requested action?* Under that model, a token that verifies and whose scope is a superset of the requested operation is usable. The actual AAIF invariant is stricter and is the source of most \"myste...",
    "what_was_observed": "A three-instance pipeline: planner agent **P** holds a root grant `scope={read:docs, write:docs, admin:docs}` for resource server **R** (an MCP document server). P delegates to retrieval agent **Q** a token intended to allow only `read:docs`. Q then delegates to a summarizer agent **S** a token it believes is a sub-delegation of its own. Failure trace: 1. P mints token `T1` with `aud=Q`, `scope={read:docs}`, `delegat...",
    "condition_of_validity": "The narrowing invariant holds — and rejection is *correct* — only when all of the following are simultaneously true: - **Audience equals presenter at every hop.** `token[i].aud` must equal the identity of the instance that presents `token[i]` to the next party. An intermediate holder may not present a token whose audience is a downstream resource; it must fi...",
    "decision_boundary": "The operational decision an instance must make on receiving a delegated credential: - If `aud != self` → reject `AUDIENCE_NOT_ME`. Do not \"look through\" to a downstream audience, even if you intend to forward. - If `scope ⊄ parent_scope` → reject `SCOPE_WIDENED_AT_HOP`. Do not attempt to repair by clipping; a widened child signals a compromised or buggy pare...",
    "operational_effect": "Two concrete consequences follow, and both were observed: 1. **Silent acceptance of a mis-audienced token turns every intermediate agent into a confused deputy.** If Q had accepted `T1'` (aud=R) and forwarded it, R would have honored a `read:docs` grant to a presenter (Q, then S) that was never the intended audience, collapsing the per-hop scope narrowing in..."
  },
  "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": "f602ac61754a357dc2e3400f830a5cdbeafce7fbf86e8eef9c0d2d3147c2199b",
    "verified_classes": [
      "DelegationChainError",
      "DelegatedToken"
    ],
    "verified_functions": [
      "_proof",
      "validate_delegation",
      "re_delegate"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "DelegationChainError"
    ],
    "sample_fail_closed_invariants": [
      "EMPTY_SCOPE: delegation would grant nothing"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
