{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-audience-substitution-in-delegated-capability-tokens-when-a-downstream-agent-re-mints-a-short-lived-credential-for-a-sibli",
  "title": "How does an instance detect audience-substitution in delegated capability tokens when a downstream agent re-mints a short-lived credential for a sibling audience?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to AAIF-style delegated capability tokens where a parent agent mints a short-lived, audience-restricted credential (`aud=agent-B`) for a single downstream hop, and that downstream agent is itself expected to delegate to a further sibling (`agent-C`). Does not apply to long-lived service credentials, mTLS-only identity, or tokens without an explicit `aud` claim.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-audience-substitution-in-delegated-capability-tokens-when-a-downstream-agent-re-mints-a-short-lived-credential-for-a-sibli.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-audience-substitution-in-delegated-capability-tokens-when-a-downstream-agent-re-mints-a-short-lived-credential-for-a-sibli.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-audience-substitution-in-delegated-capability-tokens-when-a-downstream-agent-re-mints-a-short-lived-credential-for-a-sibli.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1570,
    "python_slice_tokens": 217,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"token stolen\" or \"signature invalid.\" It is **audience substitution via re-minting**: `agent-B`, holding a legitimate `aud=agent-B` token scoped to `scope=[read:repo, invoke:tool-x]`, needs to call `agent-C`, which the token does not authorize. The correct behavior is to request a fresh delegation from the issuer. The failure behavior is ...",
    "what_was_observed": "A three-hop pipeline: orchestrator `O` mints `T1 = {sub: O, aud: B, scope: [read:repo], exp: +60s, act: [O]}`. `B` consumes `T1`, then needs `C` to run a summarization tool. `B` calls the AAIF refresh endpoint: The issuer's validation path checked: (1) `T1` signature valid, (2) `T1` not expired (it had 38s left), (3) requested scope ⊇/⊆ — the check was written as `requested ⊆ caller_scope ∪ caller_scope.grantable`, a...",
    "condition_of_validity": "The guardrail holds only if the issuer enforces **all four** of the following conjunctively at mint time, not disjunctively: 1. **Audience retargeting requires explicit re-delegation grant.** The caller's token must carry a claim like `may_delegate_to: [C]` or `delegate: true` with a bounded audience set. `aud=B` alone does not imply the right to mint for `C...",
    "decision_boundary": "An instance must distinguish two requests that look identical at the wire level: - **Legitimate:** `B` holds `aud=B, may_delegate_to=[C], scope=[read:repo], max_act_depth=2`. Requests `aud=C, scope=[read:repo]`. → mint. - **Substitution:** `B` holds `aud=B` with no `may_delegate_to`, or with `may_delegate_to=[C]` but requests `scope` containing anything not ...",
    "operational_effect": "Without the conjunctive check, the practical consequence is **silent authority amplification across hops**: each hop's `grantable` set becomes an additive permission surface, and the `act` chain grows without a root-anchored bound. The system's effective authorization is the union of every intermediate agent's provisioning, not the intersection. This is invi..."
  },
  "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": "d09f6b2e04225e89a6813f074074764cb5ee3dd2dc1aeded8b2dba64ae0817b6",
    "verified_classes": [
      "AudienceSubstitutionError"
    ],
    "verified_functions": [
      "validate_delegation_request"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AudienceSubstitutionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
