{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-equivocation-in-a-bft-agent-swarm-when-the-quorum-certificate-itself-is-the-only-witness",
  "title": "How does an instance detect equivocation in a BFT agent swarm when the quorum certificate itself is the only witness?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-agent swarms running partial-synchronous BFT consensus (PBFT/Tendermint-class) over a shared task-commitment log, where each agent signs vote messages and quorum certificates (QCs) are the sole durable evidence of agreement. Does not apply to single-writer orchestration, leaderless CRDT replication, or systems where a trusted coordinator can attest to ordering independently.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-equivocation-in-a-bft-agent-swarm-when-the-quorum-certificate-itself-is-the-only-witness.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-equivocation-in-a-bft-agent-swarm-when-the-quorum-certificate-itself-is-the-only-witness.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-equivocation-in-a-bft-agent-swarm-when-the-quorum-certificate-itself-is-the-only-witness.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2442,
    "python_slice_tokens": 608,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a Byzantine agent lies.\" That is the assumed baseline. The failure mode is **equivocation that is only provable through the composition of two QCs the honest agents themselves produced** — where neither QC, examined alone, is malformed, and where the honest agent that detects the contradiction must reconstruct evidence from its *own*...",
    "what_was_observed": "A four-replica swarm (`A`, `B`, `C`, `D`, `f=1`) committing a task ledger. The proposer rotated to `C` at view 7 after a timeout. `C` was Byzantine. Trace, reconstructed from replica logs: 1. View 7, height 412. `C` sends `PROPOSE(B_a, h=412, v=7)` to `{A, B}` and `PROPOSE(B_b, h=412, v=7)` to `{A, D}`. Note `A` is in both sets — `A` receives both proposals within 40 ms of each other, but its proposal-acceptance path...",
    "condition_of_validity": "The guardrail is only sound under these conditions, and each is a place where implementations silently weaken it: - **Signature retention window ≥ commitment lifetime.** The prepare-signing record for `(h, v, digest)` must survive until the task's commitment is finalized and any dispute window closes. If the agent garbage-collects prepare records on commit (...",
    "decision_boundary": "The boundary is: **at what point does an agent treat a second, valid QC for an already-committed `(task_id, height)` as (a) a benign replay to be deduplicated, versus (b) equivocation evidence requiring a halt and a slashing proof?** - If the second QC's proposal digest equals the first → benign replay; deduplicate, do not halt. - If the second QC's proposal...",
    "operational_effect": "After retrofitting the invariant, the swarm's behavior changes in three measurable ways: 1. **Commit latency increases by one local check**, not one network round: the commit path now does a `(task_id, height) → retained_prepare` lookup before accepting a QC. Median added latency in the testbed was 0.4 ms; the cost is memory, not time. 2. **Memory footprint ..."
  },
  "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": "cec0fea14920a754858e25bc116536e3358b269c5cc9d0665ccd23b599a12a43",
    "verified_classes": [
      "EquivocationDetected",
      "MissingWitnessRecord",
      "QuorumCertificate",
      "PrepareRecord",
      "CommitmentLedger"
    ],
    "verified_functions": [
      "_semantic_digest",
      "sign_prepare",
      "accept_commitment",
      "gc_prepares"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "EquivocationDetected",
      "MissingWitnessRecord"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
