{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-delegated-scope-credential-replay-across-aaif-agent-handoffs-when-dpop-key-binding-and-audience-scope-diverge",
  "title": "Which invariants prevent delegated-scope credential replay across AAIF agent handoffs when DPoP key binding and audience scope diverge",
  "date_of_record": "2026 November 27",
  "scope": "Applies to AAIF-mediated agent-to-agent delegation where a parent agent mints a scoped credential (RFC 8693 token exchange) bound to a child's DPoP key and a target audience. Does not cover first-party OAuth flows, mTLS-bound credentials, or cases where the child agent is the sole holder of its private key for the full credential lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-scope-credential-replay-across-aaif-agent-handoffs-when-dpop-key-binding-and-audience-scope-diverge.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-scope-credential-replay-across-aaif-agent-handoffs-when-dpop-key-binding-and-audience-scope-diverge.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-scope-credential-replay-across-aaif-agent-handoffs-when-dpop-key-binding-and-audience-scope-diverge.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1869,
    "python_slice_tokens": 317,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters is not \"stolen credential.\" It is **audience–key binding divergence**: a delegated credential whose DPoP `htm`/`htu`/`ath` claims and whose `aud` claim are validated independently, against different runtime views of the request, at different points in the handoff chain. AAIF treats DPoP proof-of-possession as the anti-replay primitiv...",
    "what_was_observed": "A three-hop chain: orchestrator `O` exchanges its own token for a scoped credential `C1` addressed to agent `A` (audience `svc://a`), bound to `A`'s DPoP public key `pk_A`. `A` then performs a nested delegation to `B`, minting `C2` with audience `svc://b`, bound to `pk_B`, carrying `C1`'s scope subset. `B` calls a downstream tool endpoint `svc://tools/exec` that is fronted by a gateway `G`. The gateway `G` is configu...",
    "condition_of_validity": "The conjunctive binding invariant holds only when the verifying party is the **authority for the `aud` value** and validates the DPoP `htu` against the **same identifier** it uses in its `aud` allowlist. Formally: for credential `C` with claims `aud = u`, `cnf.jkt = j`, presented with proof `P` carrying `htu = h`: - `authority(h) == u` (the host named in `ht...",
    "decision_boundary": "The boundary is whether the verifier's acceptance predicate is **audience-exclusive** or **audience-inclusive**. Audience-exclusive: `verifier.identity ∈ {aud}` — the verifier accepts only credentials minted for itself. Audience-inclusive: `verifier.identity ∈ allowlist(aud)` — the verifier accepts credentials minted for any party it trusts to forward. AAIF'...",
    "operational_effect": "Under the broken configuration, credential replay is silent: it produces no signature failure, no `htu` mismatch, no scope violation (the scope subset of `C2` is valid for `G`'s operations), and no audit-log anomaly distinguishable from legitimate traffic. The only detectable signal is a **lineage mismatch**: `C2`'s `act` (actor) chain shows `O → A → B`, but..."
  },
  "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": "4add740f2753d4e09e24c88b85596a003fc9f4324ddc81bd7b7b3689b93ec30c",
    "verified_classes": [
      "AudienceBindingViolation"
    ],
    "verified_functions": [
      "verify_delegated_credential",
      "_canonical_serialize"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "AudienceBindingViolation"
    ],
    "sample_fail_closed_invariants": [
      "credential missing cnf.jkt; cannot bind DPoP proof",
      "DPoP ath does not match credential hash; proof not bound to this credential"
    ],
    "stdlib_dependencies": [
      "hashlib",
      "hmac",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
