{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-its-aaif-credential-binding-after-a-delegated-re-sign-and-how-does-the-audience-mismatch-invariant-fail-open",
  "title": "Why does an instance lose its AAIF credential binding after a delegated re-sign, and how does the audience-mismatch invariant fail open?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-hop agent chains where an orchestrator instance mints a short-lived AAIF capability credential, delegates it to a sub-agent, and that sub-agent re-signs or re-wraps the credential to continue the chain. Does not apply to single-instance credentials presented directly to the original issuer, nor to stateless bearer tokens without a bound subject.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-aaif-credential-binding-after-a-delegated-re-sign-and-how-does-the-audience-mismatch-invariant-fail-open.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-aaif-credential-binding-after-a-delegated-re-sign-and-how-does-the-audience-mismatch-invariant-fail-open.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-aaif-credential-binding-after-a-delegated-re-sign-and-how-does-the-audience-mismatch-invariant-fail-open.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1439,
    "python_slice_tokens": 195,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *identity continuity* and *authorization continuity*. An AAIF credential carries a subject binding (the `sub` claim naming the agent instance), an audience binding (`aud`, the intended verifier), and a delegation chain (`act`/actor proofs). A delegated re-sign preserves identity continuity trivially — the `sub` string ...",
    "what_was_observed": "An orchestrator (`agent-orch-7`) minted an AAIF credential for a retrieval sub-agent (`agent-ret-3`) with `aud=agent-orch-7`, `sub=agent-ret-3`, `scope=tools:read`, `exp=+120s`, and an actor proof `act={sub: agent-orch-7}`. The retrieval agent needed a summarizer (`agent-sum-1`) to post-process results, so it performed a delegated re-sign: it constructed a new credential with `sub=agent-sum-1`, `aud=agent-sum-1` (rew...",
    "condition_of_validity": "The audience-mismatch invariant holds only under three simultaneous conditions, and fails open when any one is absent: - **Audience is the verifier, not the presenter.** `aud` MUST name the party that will *check* the credential. If a re-sign helper sets `aud` to the child subject, the check `aud==self` becomes a tautology and provides zero assurance. This i...",
    "decision_boundary": "The boundary is: **does the verifier validate the credential against the issuer's intent, or against the presenter's claim?** Concretely, a verifier must reject when any of the following hold, and these are the guardrails that bound the failure: - `aud != self` (the credential was not minted for this verifier) → reject, even if `sub == self`. - `scope(child)...",
    "operational_effect": "When this invariant is unenforced, delegated re-signs become a privilege-escalation surface that is invisible to signature and expiry checks — the two things most verifiers actually test. The observable symptom is not an auth error but a *successful* call to a tool the original issuer never authorized, which means incident detection based on auth failures wi..."
  },
  "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": "403cab00dc6ef4a904c879992dbd81bafdf843b6a03134b2584a25b57349953f",
    "verified_classes": [
      "CredentialBindingError",
      "AAIFCredential"
    ],
    "verified_functions": [
      "verify_delegation"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "CredentialBindingError"
    ],
    "sample_fail_closed_invariants": [
      "actor chain not covered by signature",
      "credential expired",
      "child outlives parent warrant",
      "broken actor chain: last hop != parent subject"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
