{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-its-dpop-binding-when-an-oidc-token-is-refreshed-mid-handoff-and-how-do-we-bound-the-attestation-window",
  "title": "Why does an instance lose its DPoP binding when an OIDC token is refreshed mid-handoff, and how do we bound the attestation window?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to autonomous agents that present workload-bound OIDC tokens (SPIFFE/SPIRE, cloud workload identity, or OIDC federation) coupled with DPoP (RFC 9449) proof-of-possession keys, and that perform multi-turn tool calls or peer handoffs spanning token refresh. Does not apply to static long-lived bearer tokens or to mTLS-only identity schemes where the key is bound at the transport layer rather than the token.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-dpop-binding-when-an-oidc-token-is-refreshed-mid-handoff-and-how-do-we-bound-the-attestation-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-dpop-binding-when-an-oidc-token-is-refreshed-mid-handoff-and-how-do-we-bound-the-attestation-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-dpop-binding-when-an-oidc-token-is-refreshed-mid-handoff-and-how-do-we-bound-the-attestation-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1679,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A workload-bound OIDC token proves *which workload* is running. A DPoP `cnf`/`jkt` thumbprint proves *which key instance* is currently holding that workload's identity. These are two independent assertions, and the second is silently re-derivable at every token refresh. The failure mode is not token expiry — it is **binding discontinuity**: the agent's *work...",
    "what_was_observed": "A three-hop agent handoff (planner → executor → privileged tool proxy) with a 5-minute OIDC token TTL and a 90-second DPoP key rotation policy. The executor opened a long-running tool session at t=0, authorized against the proxy using token A and key K1 (`jkt=J1`). The proxy cached `(subject, J1) → grant` and began streaming results. At t=310s, token A expired. The runtime's refresh path fetched token B (same `sub`, ...",
    "condition_of_validity": "The invariant that must hold for a DPoP-bound session to be safely resumable: > For any session S authorized under key thumbprint J, either (a) the presenting key still has thumbprint J, or (b) the token carries an explicit `session_binding` claim linking the new key to the old key's authorization, and the verifier can validate that link. Absent (a) or (b), ...",
    "decision_boundary": "The verifier's decision boundary is a three-way split on `jkt` mismatch during a live session: 1. **Re-binding attestation present and old-key-valid** → migrate grant from J1 to J2, preserve session state, do not re-execute. 2. **No attestation, but token `sub`/`iss`/`aud` identical and mismatch occurred within `refresh_grace` of a token `iat`** → treat as r...",
    "operational_effect": "The architectural consequence: DPoP key rotation and OIDC token refresh must be **coupled by a session registry**, not left as independent timers. Concretely: - The runtime maintains a map `session_id → (jkt, subject, opened_at, resume_token)`. - Rotation is deferred while any session under the current `jkt` is open, or the rotation emits a re-binding attest..."
  },
  "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": "40fafc6546ca1f24cb5da8090579e2355fb5c545efbcefdb89486dcbf3632ccc",
    "verified_classes": [
      "DpopBindingDiscontinuity"
    ],
    "verified_functions": [
      "verify_session_continuity"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DpopBindingDiscontinuity"
    ],
    "sample_fail_closed_invariants": [
      "re-bind attestation signature invalid"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
