{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-presents-a-valid-credential-whose-subject-key-was-rotated-mid-chain-verification",
  "title": "What happens when an instance presents a valid credential whose subject key was rotated mid-chain-verification",
  "date_of_record": "2026 November 23",
  "scope": "Applies to AAIF (Agent Attestation & Identity Framework) deployments where autonomous agents present verifiable credentials (VCs) to peers or auditors, and where the credential's subject key can be rotated independently of the issuer's signing key. Does not apply to single-issuer, single-key deployments with no rotation, nor to bearer-token schemes without cryptographic subject binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-presents-a-valid-credential-whose-subject-key-was-rotated-mid-chain-verification.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-presents-a-valid-credential-whose-subject-key-was-rotated-mid-chain-verification.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-presents-a-valid-credential-whose-subject-key-was-rotated-mid-chain-verification.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1540,
    "python_slice_tokens": 167,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"expired credential\" or \"unknown issuer.\" Those are clean rejections. The boundary case is a credential that is **cryptographically valid at every individual verification step yet semantically stale at the subject-binding step** — because the subject's key was rotated after the VC was issued but before the relying party finished walking th...",
    "what_was_observed": "During a multi-agent handoff in a 40-agent swarm, agent `A-17` rotated its DID key (routine 24h rotation) at T+0. It had, 90 seconds earlier, obtained a VC from issuer `I-3` binding its *old* key `K_old`. The VC's trust chain was `I-3 → attestor I-9 → root R`. A peer agent `A-22` received the VC and began chain verification: - T+0.00: `A-22` fetches `I-3`'s key document — resolves, signature over VC validates against...",
    "condition_of_validity": "The possession gap is only exploitable/observable when **all** of the following hold: - The VC binds the subject by key reference (not by a stable, rotation-independent identifier with an independent revocation channel). - The relying party's chain walk and PoP challenge are not atomic — i.e., there is a measurable interval `Δ` between reading the subject ke...",
    "decision_boundary": "The correct architectural rule is a **key-epoch pin**, not a key-value comparison: - The VC MUST carry the subject's `keyEpoch` (monotonic counter) at issuance, signed by the issuer. - The relying party MUST resolve the subject's current `keyEpoch` and reject if `current_epoch != vc.keyEpoch`. Equality, not \"≥\" — a rotation *forward* still invalidates a VC b...",
    "operational_effect": "After the incident, the swarm's verifiers were changed to: 1. Reject any VC whose `keyEpoch` does not match the subject's resolved epoch at verification time — hard failure, no fallback. 2. Re-run the epoch check after PoP; a mid-verification rotation produces `KeyRotatedDuringVerification` and the handoff is refused, forcing `A-17` to obtain a fresh VC. 3. ..."
  },
  "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": "8166f3d0cd62fdba89766c8f0263ad51709365c91cf6a80edaa478710c07c4fa",
    "verified_classes": [
      "KeyRotatedDuringVerification"
    ],
    "verified_functions": [
      "verify_vc_with_pop"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "KeyRotatedDuringVerification",
      "ValueError"
    ],
    "sample_fail_closed_invariants": [
      "issuer signature invalid",
      "PoP failed against bound key; subject does not control it"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
