{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-halt-when-a-peer-s-revocation-epoch-advances-mid-session-and-its-own-attestation-cache-still-validates-the-stale-key",
  "title": "Where must an instance halt when a peer's revocation epoch advances mid-session and its own attestation cache still validates the stale key",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any A2A deployment where peer identity is attested via short-lived signed warrants (e.g., JWT-bound capability tokens or SPIFFE-style SVIDs) that carry a monotonic `revocation_epoch`, and where the verifying instance caches peer attestations to amortize verification cost across a long-running task. Does not apply to stateless per-request verification with no cache, nor to deployments where revocation is pushed synchronously to every holder.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-a-peer-s-revocation-epoch-advances-mid-session-and-its-own-attestation-cache-still-validates-the-stale-key.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-a-peer-s-revocation-epoch-advances-mid-session-and-its-own-attestation-cache-still-validates-the-stale-key.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-a-peer-s-revocation-epoch-advances-mid-session-and-its-own-attestation-cache-still-validates-the-stale-key.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2637,
    "python_slice_tokens": 500,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different questions an agent asks about a peer, and they are routinely conflated: 1. **\"Is this peer who it claims to be, right now, for this operation?\"** — an identity-validity question, answered against the *current* revocation epoch. 2. **\"Did this peer hold a valid warrant when it signed the message I am now reading?\"** — a provenance ques...",
    "what_was_observed": "A three-agent pipeline: a `planner`, a `worker` (the instance under analysis), and an `auditor` that co-signs results. The worker caches peer attestations for 300 seconds to avoid re-fetching warrants on every tool call in a tight loop. Each cached entry stores `{peer_id, public_key, capabilities, verified_at_epoch, ttl}`. Sequence observed in replay: 1. At T+0 the auditor's warrant is verified at epoch 41. Cache ent...",
    "condition_of_validity": "A cached attestation may be treated as authorizing *current* action only if all of the following hold. This is the invariant; violating any clause converts a cache hit from an optimization into a correctness bug. - **Epoch monotonicity is observable.** The instance must be able to learn the current global epoch through some channel cheaper than a full warran...",
    "decision_boundary": "The boundary the instance must detect is not \"cache expired\" (TTL handles that) but \"**epoch advanced while I was not looking, and I am about to act on a verdict from the old epoch.**\" Three cases: - **Epoch unchanged (`current == cached.verified_at_epoch`).** Cache hit is safe to act on. Proceed. This is the common case and where the optimization pays for i...",
    "operational_effect": "The concrete guardrail is a **two-phase attestation gate** that separates provenance-checking from authority-granting, plus an epoch witness that every inbound message must carry. 1. On every inbound A2A message, extract the sender's claimed `epoch` from the warrant header. Compare to the instance's `local_epoch_witness`. If the message's epoch is *greater* ..."
  },
  "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": "af50fbd62cbf62ca559f8a5498cba8bb6a67663ac14d56e6fc87a173f762b06c",
    "verified_classes": [
      "RevocationEpochDivergence",
      "Authority",
      "Attestation",
      "InboundMessage",
      "AttestationGate"
    ],
    "verified_functions": [
      "__init__",
      "observe_epoch",
      "_cache_key",
      "classify",
      "record"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "RevocationEpochDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
