{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-s-proof-of-possession-refresh-races-its-own-credential-expiry-during-a-live-agent-to-agent-handoff",
  "title": "What happens when an instance's proof-of-possession refresh races its own credential expiry during a live agent-to-agent handoff",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent-to-agent (A2A) sessions where peer identity is established via short-lived verifiable credentials (VCs, e.g., SD-JWT/VC or mTLS-bound tokens) whose holder-binding is continuously re-proven via a proof-of-possession (PoP) challenge (nonce-signed DPoP-style tokens or signed heartbeats). Does not apply to long-lived static API keys, unbound bearer tokens, or purely trust-on-first-use handshakes with no continuous PoP.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-s-proof-of-possession-refresh-races-its-own-credential-expiry-during-a-live-agent-to-agent-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-s-proof-of-possession-refresh-races-its-own-credential-expiry-during-a-live-agent-to-agent-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-s-proof-of-possession-refresh-races-its-own-credential-expiry-during-a-live-agent-to-agent-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1914,
    "python_slice_tokens": 241,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A verifiable credential answers *\"who is this agent?\"*; a proof-of-possession answers *\"is the entity on this socket still the holder named in the credential, right now?\"* These two facts have independent clocks. The VC has a `not_after` expiry; the PoP has a re-assertion interval. The failure mode is not either clock firing—it is the **overlap window** wher...",
    "what_was_observed": "Two agent instances, `orchestrator-A` and `worker-B`, are mid-handoff. `A` holds a credential `VC_A` with a 300s TTL, refreshed every 240s, and a PoP key `K_A` rotated on the same 240s cadence. `B` acts as verifier and issues PoP challenges every 60s over the live A2A transport. The trigger sequence: 1. At `t=0`, `A` refreshes: issues `VC_A^1` (expires `t=300`) and rotates PoP key to `K_A^1`. `B` caches the binding `...",
    "condition_of_validity": "The failure is bounded by a precise condition. Let a session carry a credential `VC` with holder key thumbprint `jkt(VC)`, expiry `exp(VC)`, and a PoP key `K` with generation counter `g(K)`. Define the **binding predicate**: `bound(VC, K, t) ≡ verify_sig(VC) ∧ t < exp(VC) ∧ jkt(VC) = thumbprint(K) ∧ fresh_nonce(t)` The system is safe **iff** for every PoP ch...",
    "decision_boundary": "The architectural guardrail is a **generation-fenced atomic binding**: credentials and PoP keys must carry a shared monotonic generation `gen`, and a PoP assertion is valid only if `gen(VC) == gen(K)` *and* `gen` is strictly greater than the last `gen` the verifier accepted for that subject (replay/rollback fence). The verifier must: 1. Reject any frame wher...",
    "operational_effect": "Without the fence, the observed effects are: (a) **false-accept windows** where a stale credential is paired with a fresh key, letting a session continue past the point where its identity binding should have been re-proven; (b) **split-brain session teardown** at the next expiry boundary, where the verifier's subject-keyed cache rejects the legitimately rota..."
  },
  "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": "f0d63168e7715a61a18fad761c2f6483889636cdb311e0dfb99e290a2d0fc848",
    "verified_classes": [
      "BindingGenerationMismatch",
      "Credential",
      "PopAssertion"
    ],
    "verified_functions": [
      "verify_binding",
      "handle_handoff_frame"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "BindingGenerationMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
