{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-divergent-subject-identifiers-when-a-federated-peer-re-issues-an-aaif-warrant-under-a-rotated-issuer-key-mid-handoff",
  "title": "How should an instance reconcile divergent subject identifiers when a federated peer re-issues an AAIF warrant under a rotated issuer key mid-handoff",
  "date_of_record": "2026 December 1",
  "scope": "Applies when an agent instance receives, verifies, or forwards an AAIF (Agent Authentication & Identity Federation) warrant whose `sub` (subject) claim is re-bound to a rotated issuer key during an in-flight A2A/MCP handoff. Does not apply to single-trust-domain deployments where issuer keys are static for the warrant's lifetime, nor to bearer-token schemes without subject binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-divergent-subject-identifiers-when-a-federated-peer-re-issues-an-aaif-warrant-under-a-rotated-issuer-key-mid-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-divergent-subject-identifiers-when-a-federated-peer-re-issues-an-aaif-warrant-under-a-rotated-issuer-key-mid-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-divergent-subject-identifiers-when-a-federated-peer-re-issues-an-aaif-warrant-under-a-rotated-issuer-key-mid-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1972,
    "python_slice_tokens": 432,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"signature verification failed.\" Signature verification is the easy, well-instrumented case: the verifier checks the JWS against the issuer's published JWKS and either passes or rejects cleanly. The non-obvious boundary is **identity equivalence under key rotation** — the case where the signature *passes* against a *new* key, the `sub` str...",
    "what_was_observed": "A three-domain federation: Domain A (orchestrator), Domain B (tool-executor peer), Domain C (auditor). Domain B's issuer rotated its signing key `kid=aaif-b-2024` → `kid=aaif-b-2025` as part of a routine 90-day cycle. During the rotation window, Domain B operated both keys concurrently, which is standard and correct. The orchestrator in Domain A held a cached, unexpired warrant `W1` for subject `sub=\"agent://b/worker...",
    "condition_of_validity": "The boundary holds — and the failure is real — only when all of the following are simultaneously true: 1. The issuer permits `sub` reuse across key generations (many AAIF profiles do, because `sub` is only required to be unique *within an issuance epoch*, not globally). 2. A verifier caches subject resolution keyed on `(issuer, sub)` without incorporating th...",
    "decision_boundary": "When a resolver observes a warrant whose `(issuer, sub)` matches a cached entry but whose `kid` differs from the cached entry's `kid`, it is at the decision boundary. Two postures are available: - **Collapse (unsafe):** treat the match as the same principal, refresh attributes. This is what the RFC-shaped default does, and it is exactly the privilege-bleed p...",
    "operational_effect": "Without the guardrail, the observable symptom is a *silent* privilege escalation or, symmetrically, a silent privilege *stripping* (an old principal's warrant resolving to a new, narrower principal and being denied capabilities it legitimately holds). Both are attribution failures: the audit chain shows a verified, coherent sequence that is nonetheless wrong..."
  },
  "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": "aa9513b425c82b7a60f7f77a4c1d05c5676eb9731bbad47d34a0e569684200b3",
    "verified_classes": [
      "IdentityRebindError",
      "EpochContinuity",
      "Warrant",
      "CachedResolution",
      "FederatedResolver"
    ],
    "verified_functions": [
      "__init__",
      "register_continuity",
      "resolve"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "IdentityRebindError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
