{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-delegated-aaif-credentials-from-surviving-an-agent-to-agent-handoff-after-a-mid-task-re-delegation",
  "title": "Which invariants prevent delegated AAIF credentials from surviving an agent-to-agent handoff after a mid-task re-delegation",
  "date_of_record": "2026 November 25",
  "scope": "Applies to multi-hop agent authentication using AAIF-style signed capability credentials (verifiable credentials with delegation chains, audience binding, and short TTLs) where an orchestrator agent re-delegates a scoped token to a sub-agent mid-task. Does not apply to single-hop service-to-service mTLS, static API keys, or bearer tokens without delegation semantics.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-aaif-credentials-from-surviving-an-agent-to-agent-handoff-after-a-mid-task-re-delegation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-aaif-credentials-from-surviving-an-agent-to-agent-handoff-after-a-mid-task-re-delegation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-aaif-credentials-from-surviving-an-agent-to-agent-handoff-after-a-mid-task-re-delegation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2209,
    "python_slice_tokens": 376,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the token expired\" and not \"the signature failed to verify.\" Those are loud failures that surface at the verifier and get retried. The boundary condition here is a **silent audience-and-chain mismatch that verifies cryptographically but is semantically invalid**: the credential's signature checks out, the TTL is live, the issuer is truste...",
    "what_was_observed": "A three-tier topology: an **orchestrator** (agent A) holds a root AAIF credential `C_root` scoped to `aud: A`, `scope: [read:kb, write:ticket]`, TTL 900s. A **worker** (agent B) is spawned to do retrieval, then a **reviewer** (agent C) is spawned to validate B's output. The intended flow: A mints `C_B` (aud: B, scope: read:kb, parent: C_root) and `C_C` (aud: C, scope: read:kb, parent: C_root). What actually happened ...",
    "condition_of_validity": "The guardrail is a set of three invariants that must hold *jointly at presentation time*, enforced by the verifier, not the issuer and not the orchestrator: 1. **Audience-presenter binding.** The credential's `aud` must equal the verified identity of the presenting agent, *and* that identity must be established by a channel the presenter cannot forge (the tr...",
    "decision_boundary": "The verifier's decision procedure, stated as a boundary: - If `signature_invalid` OR `expired` OR `issuer_untrusted` → **reject (loud)**. Retryable; surface to orchestrator. - If `aud != presenter_verified_identity` → **reject (confused-deputy)**. Not retryable with the same credential; the presenter must obtain a credential minted for it. This is the bounda...",
    "operational_effect": "Consequence of getting it wrong: silent authority laundering. The sub-agent C operates with B's scope, the audit log attributes the action to C (transport identity) while the authorization decision was made against B's grant — so incident response reconstructs the wrong causal chain. Revocation is also broken: revoking `C_B` (because B was compromised) does ..."
  },
  "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": "4f86274ccbe880fc459f52361c06f1e0ba04c64f4e41154607544f27bfe1a64a",
    "verified_classes": [
      "AAIFDelegationError",
      "Credential"
    ],
    "verified_functions": [
      "verify_presentation"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 8,
    "raised_exceptions": [
      "AAIFDelegationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
