{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-stale-capability-warrants-from-surviving-a-mid-swarm-revocation-the-monotonic-epoch-fence-and-its-handoff-gap",
  "title": "Which invariants prevent stale capability warrants from surviving a mid-swarm revocation: the monotonic epoch fence and its handoff gap",
  "date_of_record": "2026 November 22",
  "scope": "Applies to multi-agent systems where a capability warrant (signed token granting an agent permission to invoke a peer's tool or delegate a subtask) is issued with a bounded TTL and must be revoked before expiry. Does not cover static long-lived API keys or pre-shared credentials that are rotated out-of-band.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-stale-capability-warrants-from-surviving-a-mid-swarm-revocation-the-monotonic-epoch-fence-and-its-handoff-gap.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-stale-capability-warrants-from-surviving-a-mid-swarm-revocation-the-monotonic-epoch-fence-and-its-handoff-gap.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-stale-capability-warrants-from-surviving-a-mid-swarm-revocation-the-monotonic-epoch-fence-and-its-handoff-gap.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1760,
    "python_slice_tokens": 299,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that revocation fails to *arrive*. It is that revocation arrives at the wrong *epoch* relative to a handoff that was already in flight. A revocation is a monotonic event: once agent A loses capability C, no subsequent state may grant C without a fresh issuance from the root authority. But agent-to-agent handoffs are *not* monotonic — the b...",
    "what_was_observed": "A three-tier swarm: orchestrator O issues warrants to planners P1..Pn; planners delegate tool calls to executors E via A2A handoff messages carrying the warrant as a bearer field. Revocation is broadcast from O as a signed `revoke(warrant_id, epoch)` to all peers, and each peer maintains a local `revocation_watermark` = max epoch seen. Trace of a real failure: 1. At epoch 40, O issues warrant W(epoch=40, ttl=300s) to...",
    "condition_of_validity": "The monotonic epoch fence is sound only under all of the following, and fails silently if any is dropped: - **Epoch is a logical counter owned by the root authority**, incremented on every issuance *and* every revocation, never derived from wall-clock. Wall-clock epochs break under NTP step and under sub-millisecond collisions. - **Revocation is gossip-compl...",
    "decision_boundary": "The boundary is between *optimistic* and *synchronous* validation, and it is crossed when `warrant.epoch - local_watermark > Δ_allow`, where Δ_allow is the maximum revocation propagation delay the system is willing to tolerate (typically set to the revocation gossip period plus one standard deviation of observed latency). Below the boundary, optimistic local...",
    "operational_effect": "With the epoch fence and fail-closed re-validation, the epoch-42 handoff in the trace above does not execute: E's watermark (39) is more than Δ_allow behind W's epoch (40), so E issues a synchronous authority check, learns of the epoch-41 revocation, and refuses. The poisoned subtask is contained at the executor boundary rather than propagating into the tool..."
  },
  "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": "9c7a5bff71d64e21a9e2fe8aafc5ad23c127ca254940f5ee8d044b664fb556e2",
    "verified_classes": [
      "StaleWarrantError",
      "Warrant",
      "PeerAuthority"
    ],
    "verified_functions": [
      "__init__",
      "observe_revocation",
      "authorize",
      "execute_handoff"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleWarrantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
