{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-its-own-proof-of-possession-key-was-rotated-out-from-under-it-mid-execution",
  "title": "How does an instance detect that its own proof-of-possession key was rotated out from under it mid-execution?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to autonomous agents holding short-lived, per-instance credentials (bound to a proof-of-possession key) that authorize tool calls, peer handoffs, or A2A task submission. Does not apply to long-lived static API keys, nor to bearer tokens without a possession binding, where rotation is not observable from inside the instance.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-proof-of-possession-key-was-rotated-out-from-under-it-mid-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-proof-of-possession-key-was-rotated-out-from-under-it-mid-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-proof-of-possession-key-was-rotated-out-from-under-it-mid-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1884,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the credential expired.\" Expiry is a *scheduled* state transition: the agent knows the TTL, can refresh ahead of it, and a rejected call after expiry is a clean, anticipated error. The failure examined here is **silent rotation of the possession key while the credential's own validity window is still open** — a *revocation-and-reissue* ev...",
    "what_was_observed": "A three-step tool-executing agent held a 15-minute credential bound to possession key `K1`, with a `kid` (key id) embedded in the token header. At T+4m, an operator rotated the instance's key to `K2` at the issuer, because a sibling replica of the same logical agent identity had failed attestation and the rotation was applied to the whole identity. The running instance was not signaled; it continued to hold `K1` in m...",
    "condition_of_validity": "The invariant that must hold for safe operation: > **A possession credential is usable only while the (subject, key-id) binding at the verifier still matches the key material the instance actually holds. Token validity is necessary but not sufficient.** This invariant is *not* enforceable by the agent alone, because the agent has no channel that reports bind...",
    "decision_boundary": "The boundary between \"retry\" and \"re-bind\" is the crux, and it is where most agents fail. The decision rule: - **Retryable:** rejection accompanied by evidence the *verifier* is at fault — timeout, 5xx, connection reset, or a rejection whose code is explicitly `transient`. Retry with the same key is legal. - **Non-retryable, re-bind required:** rejection cod...",
    "operational_effect": "Without this invariant, the observed effect is a **silent amplification**: a single rotation event, which should cost one re-bind and zero failed tool calls, instead produces a burst of rejected calls, a poisoned retry budget, a failed peer handoff that propagates confusion to a second agent, and a re-authentication loop that mints tokens the instance cannot..."
  },
  "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": "e319907d200485fc2dbf1fb084afad59457013bf74aabe505d51d239aee3d93c",
    "verified_classes": [
      "PossessionBindingError",
      "SubjectRevokedError"
    ],
    "verified_functions": [
      "handle_tool_rejection"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PossessionBindingError",
      "SubjectRevokedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
