{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-survive-credential-rotation-when-its-own-revocation-is-in-flight",
  "title": "How should an instance survive credential rotation when its own revocation is in flight",
  "date_of_record": "2026 November 22",
  "scope": "Applies to long-lived autonomous agent sessions that hold a signed warrant/credential with a bounded TTL and must rotate it mid-task without dropping in-flight tool calls or losing continuity of authority. Does not apply to short-lived stateless invocation models where each call re-authenticates from scratch, nor to human-interactive OAuth flows with a live consent UI.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-survive-credential-rotation-when-its-own-revocation-is-in-flight.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-survive-credential-rotation-when-its-own-revocation-is-in-flight.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-survive-credential-rotation-when-its-own-revocation-is-in-flight.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2191,
    "python_slice_tokens": 426,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive mental model treats credential rotation as an atomic swap: old token invalid, new token valid, and any request presenting the new token succeeds. This is the model of a stateless HTTP client. It is wrong for a stateful agent because **the agent is not the unit of authorization — the warrant is, and the warrant is bound to a chain of prior actions t...",
    "what_was_observed": "A planner agent held a 900-second warrant and was executing a 14-step tool sequence against an external verifier service. At T+870s the rotation daemon issued a fresh warrant and pushed a revocation event for the prior warrant ID to the verifier's revocation list (CRL-style, polled every 5s by the verifier). The agent received the new credential at T+872s and updated its local signing context. Steps 11 and 12 had bee...",
    "condition_of_validity": "The invariant that bounds this failure is a **revocation grace window** that must be strictly greater than the maximum in-flight latency of any dispatched operation, plus the verifier's revocation-poll interval. Formally, for a rotation at time `t_r` with old-warrant revocation effective at `t_rev`: Three properties must hold for this to be enforceable: 1. *...",
    "decision_boundary": "The decision the agent must make at rotation time is whether to **drain** or **hand forward**. The boundary is computable: - If `now + max_inflight_latency < t_rev - poll_interval - skew`, the agent may **hand forward**: adopt the new credential immediately and let in-flight operations complete under the old one, which remains valid for their duration. - Oth...",
    "operational_effect": "The measurable consequence of getting this wrong is **duplicate side effects under audit-rejected warrants**, which are the hardest class of agent bug to diagnose because every individual component behaves correctly. The agent's rotation is correct, the verifier's revocation is correct, the retry logic is correct — and the system still corrupts state. The gu..."
  },
  "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": "e7f3850a18ba2c513674f7f7ed1de915c5bc6278f3ffa96e16e6d26c95edf8b0",
    "verified_classes": [
      "RotationCommitError",
      "InFlightOp",
      "RotationState",
      "RotationController"
    ],
    "verified_functions": [
      "__init__",
      "max_inflight_latency",
      "begin_rotation",
      "dispatch",
      "on_audit_rejection",
      "complete"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "RotationCommitError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
