{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-plan-consensus-forks-when-a-byzantine-peer-replays-a-stale-signed-proposal-into-a-fresh-quorum-epoch",
  "title": "Which invariants prevent plan-consensus forks when a Byzantine peer replays a stale signed proposal into a fresh quorum epoch",
  "date_of_record": "2026 December 2",
  "scope": "Applies to multi-agent plan-consensus protocols where peer agents propose, sign, and vote on shared execution plans (task DAGs) across numbered epochs, and where a quorum certificate from an earlier epoch can be re-presented to a later quorum. Does not apply to single-agent planning, stateless request/response tool calls, or leaderless gossip systems with no epoch numbering.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-plan-consensus-forks-when-a-byzantine-peer-replays-a-stale-signed-proposal-into-a-fresh-quorum-epoch.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-plan-consensus-forks-when-a-byzantine-peer-replays-a-stale-signed-proposal-into-a-fresh-quorum-epoch.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-plan-consensus-forks-when-a-byzantine-peer-replays-a-stale-signed-proposal-into-a-fresh-quorum-epoch.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1741,
    "python_slice_tokens": 248,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a lying peer sends a bad plan.\" A bad plan is rejected by content inspection. The failure is a *validly signed, previously committed plan from epoch N-1* being re-injected into epoch N by a peer that is either adversarial or hallucinating a \"resume\" of a plan it believes is still live. Every signature verifies. Every hash matches. The DAG...",
    "what_was_observed": "A five-peer planning swarm (P0–P4, one rotating coordinator per epoch) executed a 40-step deployment plan. Epoch 5 committed plan `H5 = hash(DAG_5)` with a 4-of-5 quorum certificate `QC_5 = {sig_i(H5) for i in {P0,P1,P2,P3}}`. The plan then stalled: P4, the epoch-5 coordinator, timed out mid-dispatch at step 22 and the epoch advanced to 6 without `DAG_5` completing. In epoch 6, P4 — now a non-coordinator, and running...",
    "condition_of_validity": "The replay is only admissible when three conditions hold simultaneously, and a correct protocol must break at least one: 1. **Epoch is not in the signed preimage.** If peers sign `H(plan)` rather than `H(epoch ‖ plan)`, a certificate from any epoch validates in any epoch. This is the root condition. 2. **Admission checks certificate validity, not certificate...",
    "decision_boundary": "The boundary between \"legitimate resume\" and \"replay attack\" is *whether the re-presenting peer can produce a quorum certificate for the current epoch*. A peer resuming genuine in-progress work must be able to collect fresh votes — the work is still wanted, so a fresh quorum is achievable. A peer replaying a stale certificate *cannot* collect fresh votes wit...",
    "operational_effect": "With epoch bound into the signed preimage and into step idempotency keys, the epoch-6 replay of `DAG_5` fails admission at the coordinator's `epoch_formed == current_epoch` check. P4's proposal is rejected with a `StaleCertificateError`, P4 is required to re-propose in epoch 6, and the fresh vote round surfaces P1/P2's \"steps 23–25 already applied\" state. Th..."
  },
  "matched_failure_symptoms": [
    "SPLIT_BRAIN_OR_ZOMBIE_WORKER"
  ],
  "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": "1d5f6643e9ca9a202aedef00d2c507cd3b1d5486ab87ff644899a6140e516f20",
    "verified_classes": [
      "StaleCertificateError",
      "QuorumCertificate"
    ],
    "verified_functions": [
      "signed_preimage",
      "admit_proposal",
      "step_idempotency_key",
      "_verify"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StaleCertificateError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
