{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-handle-mid-handshake-identity-expiry-when-a-short-lived-workload-token-rotates-between-attestation-and-the-first-rpc",
  "title": "How should an instance handle mid-handshake identity expiry when a short-lived workload token rotates between attestation and the first RPC?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to zero-trust agent-to-agent (A2A) handshakes where each agent instance presents a short-lived workload identity (SPIFFE-style SVID, signed JWT, or mTLS cert) whose TTL is comparable to or shorter than the handshake-plus-first-call latency. Does not apply to long-lived static credentials or to purely intra-process delegation where no network attestation occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-handle-mid-handshake-identity-expiry-when-a-short-lived-workload-token-rotates-between-attestation-and-the-first-rpc.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-handle-mid-handshake-identity-expiry-when-a-short-lived-workload-token-rotates-between-attestation-and-the-first-rpc.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-handle-mid-handshake-identity-expiry-when-a-short-lived-workload-token-rotates-between-attestation-and-the-first-rpc.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2018,
    "python_slice_tokens": 396,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"token expired.\" Token expiry is expected and handled by re-issuance. The failure is **identity discontinuity across the attestation boundary**: the peer verifies identity `A_t0` at handshake time, but the first substantive RPC arrives bearing `A_t1`, where `t1 > t0` and the two identities are cryptographically distinct even though they re...",
    "what_was_observed": "A two-agent pipeline: an orchestrator (`orch-7`) hands a subtask to a worker (`wrk-3`) over mutual TLS with 90-second SVIDs. Mean handshake latency was 40 ms; mean time-to-first-RPC (after the worker loaded a model shard, ~55 s cold) was 58 s. Under normal load the SVID survived. Under a model-shard reload that pushed first-RPC latency past the 90 s TTL, the following trace appeared: 1. `t=0.00s` — `orch-7` presents ...",
    "condition_of_validity": "This analysis holds when all of the following are true: - Workload identity TTL is within one order of magnitude of end-to-end handshake-plus-first-call latency. If TTL ≫ latency, rotation never lands mid-session and the boundary is never exercised. If TTL ≪ latency, the system cannot function at all and fails loudly at handshake. - The transport pins peer k...",
    "decision_boundary": "The verifier faces a three-way choice at step 5, and only one branch is safe: - **Reject on key mismatch (naive):** correct against impersonation, catastrophic against legitimate rotation. Creates the duplicate-execution failure above. - **Accept any valid SVID for the same SPIFFE ID / subject (naive):** correct against rotation, but converts the session int...",
    "operational_effect": "Concrete consequences for an agent runtime implementing this: 1. **SVID TTL must be floored at `p99(handshake + first_RPC) × safety_factor`**, and the safety factor must account for cold-start variance (model load, shard fetch), not steady-state latency. A 90 s TTL for a 58 s cold path has a safety factor of 1.55 — insufficient once tail latency is considere..."
  },
  "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": "233c6ac292336b38b5cc5790bc68a7ac5562c15603471ca4effc2b2287c88608",
    "verified_classes": [
      "IdentityDiscontinuity",
      "ContinuityProofInvalid",
      "SessionRecord"
    ],
    "verified_functions": [
      "_fingerprint",
      "_verify_continuity",
      "admit_connection",
      "_signer_for",
      "current_key"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ContinuityProofInvalid",
      "IdentityDiscontinuity",
      "NotImplementedError"
    ],
    "sample_fail_closed_invariants": [
      "wire to key store"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "hmac",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
