{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-quorum-certified-result-attestation-from-collapsing-when-a-byzantine-agent-replays-a-stale-commitment-certificate-across-an-e",
  "title": "Which invariants prevent quorum-certified result attestation from collapsing when a Byzantine agent replays a stale commitment certificate across an epoch boundary",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-agent swarms where task commitments and result attestations are finalized by BFT quorum certificates (≥2f+1 signed votes) and where agents may re-enter after context loss, model swap, or checkpoint resume. Does not apply to single-agent tool loops or to leader-based consensus without signed, epoch-bound certificates.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-quorum-certified-result-attestation-from-collapsing-when-a-byzantine-agent-replays-a-stale-commitment-certificate-across-an-e.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-quorum-certified-result-attestation-from-collapsing-when-a-byzantine-agent-replays-a-stale-commitment-certificate-across-an-e.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-quorum-certified-result-attestation-from-collapsing-when-a-byzantine-agent-replays-a-stale-commitment-certificate-across-an-e.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1799,
    "python_slice_tokens": 329,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A BFT quorum certificate (QC) proves that *at some point* 2f+1 agents signed a specific `(task_id, result_hash, epoch)` tuple. It does **not** prove that the certificate is still *current*. The invariant that actually protects the swarm is not \"a QC exists\" but \"a QC is *epoch-bound and non-replayable*.\" The failure mode is a Byzantine or amnesiac agent pres...",
    "what_was_observed": "A 7-agent swarm (`f=2`, threshold `2f+1=5`) ran a task-commitment protocol with per-epoch leader rotation. Epoch `e-1` finalized commitment `C1 = (task=T, result_hash=H1, epoch=e-1)` with a 5-signature QC. In epoch `e`, a re-execution produced `C2 = (task=T, result_hash=H2, epoch=e)`, also finalized with a 5-signature QC, because the tool output was non-deterministic (a retrieval call returned a different corpus slic...",
    "condition_of_validity": "The replay succeeds exactly when all four conditions hold simultaneously: - **C1 (stale certificate exists):** a prior epoch produced a finalized QC that the replayed agent still holds in durable or cached state. - **C2 (non-determinism across epochs):** re-execution in the new epoch yields a different `result_hash`, so the stale and current QCs are *disting...",
    "decision_boundary": "The boundary is between **stateless certificate verification** (verify signatures + threshold + task match) and **stateful freshness verification** (the above plus epoch monotonicity against per-task high-water mark). These are not the same predicate, and the cheaper one is unsafe. Concretely: - If the protocol guarantees deterministic re-execution (C2 false...",
    "operational_effect": "When the epoch-monotonicity invariant is enforced, the replay in the trace above is rejected: `QC(C1)` carries `epoch=e-1 < HWM[T]=e`, the auditor raises a replay fault, and `H2` remains the committed result. The Byzantine agent's replay is converted from a silent safety violation into a detectable liveness event (the agent is flagged, its votes quarantined ..."
  },
  "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": "c797ca6a92b25939685e2253be6831dafd89b3d9dcad5eb3ff4897d6fabe7c37",
    "verified_classes": [
      "StaleCertificateReplay",
      "EquivocationDetected",
      "QuorumCertificate",
      "AttestationLedger"
    ],
    "verified_functions": [
      "replay_incident",
      "__init__",
      "_verify_signatures",
      "accept"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "EquivocationDetected",
      "StaleCertificateReplay",
      "ValueError"
    ],
    "sample_fail_closed_invariants": [
      "unreachable: guard should have fired"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
