{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-delegated-aaif-credential-chains-from-authorizing-a-different-agent-than-the-one-the-human-intended",
  "title": "Which invariants prevent delegated AAIF credential chains from authorizing a different agent than the one the human intended",
  "date_of_record": "2026 December 2",
  "scope": "Applies to AAIF delegated authorization chains where a root principal (human or service) issues a scoped credential to agent A, which attenuates and delegates to agent B, possibly across trust domains and MCP/A2A transport hops. Does not apply to single-hop bearer tokens or to static service-account credentials without delegation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-aaif-credential-chains-from-authorizing-a-different-agent-than-the-one-the-human-intended.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-aaif-credential-chains-from-authorizing-a-different-agent-than-the-one-the-human-intended.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-aaif-credential-chains-from-authorizing-a-different-agent-than-the-one-the-human-intended.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1352,
    "python_slice_tokens": 144,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A delegated AAIF chain is not an identity proof. It is a *proof of attenuation*: each link asserts that the delegatee is a strict subset of the delegator's authority, signed by the delegator. The failure mode is not signature forgery — signatures verify. The failure is that the chain authorizes a *semantically different actor* than the root intended, because...",
    "what_was_observed": "A three-hop chain: human → orchestrator (agent O) → retrieval worker (agent R) → summarizer (agent S). O held a root credential with `scope: {read: \"tenant-7/docs\", delegate: true}`. O attenuated to R with `scope: {read: \"tenant-7/docs/2024/*\"}`, embedding `subject: \"did:aaif:retrieval-worker\"`. R attenuated to S with `scope: {read: \"tenant-7/docs/2024/q3/*\", summarize: true}`, `subject: \"did:aaif:summarizer\"`. The h...",
    "condition_of_validity": "The chain is only sound under these jointly-held conditions: 1. **Instance binding at execution.** The final link's audience must resolve to a public key that the executing process can prove possession of via a challenge-response (e.g., a nonce-signed A2A handshake) *at the moment of use*, not at issuance. A DID document resolving to a key set is insufficien...",
    "decision_boundary": "The verifier must decide, per request, whether to accept a chain whose audience is a DID rather than a key. The boundary: - **Accept DID-audience only if** the runtime performs a live proof-of-possession handshake with the presenting instance and the resulting key thumbprint is recorded in the audit log alongside the chain hash. This converts class-binding i...",
    "operational_effect": "After this incident, the deployment added a mandatory PoP handshake for all DID-audience links and a `bearer: false` requirement enforced at the A2A gateway. Replay sandboxes were moved to a distinct DID namespace with a `purpose: evaluation` claim that the policy engine rejects for production scopes. The audit log now records the presenting instance thumbpr..."
  },
  "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": "fc71f1ebc88e00ef8e0df7abcfb7b7e8e8a252a5d799fe4f07aa5c0a028db344",
    "verified_classes": [
      "DelegationBindingError"
    ],
    "verified_functions": [
      "verify_delegated_chain"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "DelegationBindingError"
    ],
    "sample_fail_closed_invariants": [
      "delegation depth exhausted; sub-delegation forbidden",
      "DID audience presented without valid proof-of-possession; chain would authorize any instance sharing the DID"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
