{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-delegated-aaif-token-that-re-binds-the-subject-mid-chain",
  "title": "When must an instance refuse a delegated AAIF token that re-binds the subject mid-chain",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent instance that receives an AAIF (Agent-to-Agent Identity Federation) delegated authorization token from a peer, upstream orchestrator, or sub-agent and must decide whether to forward it, act on it, or reject it. Does not cover token issuance policy, key rotation, or the initial trust-bootstrap of a root issuer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-delegated-aaif-token-that-re-binds-the-subject-mid-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-delegated-aaif-token-that-re-binds-the-subject-mid-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-delegated-aaif-token-that-re-binds-the-subject-mid-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2111,
    "python_slice_tokens": 488,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways a delegated token can arrive at an instance, and they look identical in the wire payload: 1. **On-behalf-of delegation** — the token's `sub` (subject) is the original human or workload principal, and the receiving instance acts as a *delegate* whose authority is bounded by `act` (actor) claims. The chain of `act` cla...",
    "what_was_observed": "An orchestrator `O` held a user-scoped token `T0` with `sub=user:alice`, `aud=O`, `scope=repo:read`. It spawned a retrieval sub-agent `R` and a summarizer `S`. `O` minted `T1` for `R` by calling the AAIF exchange endpoint with `subject_token=T0`, `audience=R`, `scope=repo:read`. Correctly, `T1` should have been: Instead, the exchange library `O` used defaulted to a \"confirmation\" mode that set `sub = agent:O` and pus...",
    "condition_of_validity": "The invariant that must hold for any accepted delegated token is **subject preservation under composition**: > For a token chain `T0 → T1 → … → Tn`, the `sub` of `Tn` MUST equal the `sub` of `T0`, and for every consecutive pair `(Ti, Ti+1)`, `Ti+1.act.sub == Ti.aud` and `Ti+1.act` MUST contain `Ti.act` as a nested descendant (or the chain MUST be reconstruct...",
    "decision_boundary": "The boundary is sharp and does not admit a \"probably fine\" middle: - **Accept** iff: signature valid, `aud` matches self, `exp`/`nbf`/`iat` sane, scope ⊆ expected scope, `sub` equals the out-of-band expected subject, AND the `act` chain is contiguous and terminates at that subject. - **Reject (hard)** iff: `sub` differs from the expected subject. This is re-...",
    "operational_effect": "Instances that enforce contiguity reject a class of tokens that \"work\" — and this is the point. The re-bound token from the observed trace would be rejected at `R` with `SUBJECT_REBINDING`, the exchange would fail loudly, and `O`'s library misconfiguration would surface at the first hop instead of as a silent audit corruption three days later. The cost is a ..."
  },
  "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": "335b0178fc9ede122fe40c757919ec59ae68d994372d0129ad481826034143e2",
    "verified_classes": [
      "SubjectRebindingError",
      "ActClaim",
      "DelegatedToken"
    ],
    "verified_functions": [
      "verify_delegation"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "SubjectRebindingError"
    ],
    "sample_fail_closed_invariants": [
      "task envelope carries no task_binding.subject; cannot verify delegation provenance"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
