{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-equivocation-by-a-peer-agent-before-committing-shared-state-under-byzantine-fault-tolerant-consensus",
  "title": "How does an instance detect equivocation by a peer agent before committing shared state under Byzantine fault-tolerant consensus?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-agent swarms where N≥3f+1 agents reach consensus on shared task-commitment state via PBFT-style quorum voting, and where individual LLM agents may be non-deterministic, prompt-injected, or compromised. Does not apply to single-agent checkpointing, leaderless CRDT replication, or systems where agents are assumed honest-but-fallible (crash-fault only).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-equivocation-by-a-peer-agent-before-committing-shared-state-under-byzantine-fault-tolerant-consensus.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-equivocation-by-a-peer-agent-before-committing-shared-state-under-byzantine-fault-tolerant-consensus.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-equivocation-by-a-peer-agent-before-committing-shared-state-under-byzantine-fault-tolerant-consensus.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1584,
    "python_slice_tokens": 288,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Crash-fault tolerance assumes a faulty agent simply stops emitting messages. Byzantine fault tolerance must additionally tolerate an agent that emits *different, individually valid* messages to different peers. The boundary that matters operationally is not \"did a peer fail to respond\" but \"did a peer respond with two mutually inconsistent commitments, each ...",
    "what_was_observed": "A five-agent swarm (f=1 tolerable) executing a shared task-commitment ledger. Agent B, mid-execution, was prompt-injected via a tool-return payload and began emitting equivocating `PREPARE` messages: it sent `PREPARE(seq=42, digest=D1)` to agents A and C, and `PREPARE(seq=42, digest=D2)` to agents D and E, where D1 and D2 committed to different task-partition assignments. All four signatures verified. All four digest...",
    "condition_of_validity": "The invariant that must hold is: *for any two committed quorums Q1, Q2 at the same (view, seq), their intersection contains at least one honest agent, and that agent must have broadcast equivocation evidence before either quorum finalizes.* This requires three structural conditions: 1. **Quorum size ≥ 2f+1** (not merely a majority of N). For N=5, f=1, this m...",
    "decision_boundary": "The decision boundary for an instance is: **commit only when the local view's quorum is corroborated by a digest-consistency check against at least one message from a *different* quorum path, or when a full equivocation-detection window has elapsed with no proof received.** Concretely, an agent must not treat \"I have 2f+1 matching PREPARE messages\" as suffic...",
    "operational_effect": "The practical consequence is that an agent's commit decision must be a function of *cross-quorum evidence*, not local message count. In the observed system, adding an equivocation-proof broadcast path and a latency-derived detection window (2×p99 + sig-verify) reduced split-commit incidents from 1-in-400 sequences to zero over 50,000 sequences, at the cost o..."
  },
  "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": "7a34e2cce8083d41d5b8d17129114d665c3108b4a621b356780ba08f23dc4bca",
    "verified_classes": [
      "EquivocationDetected",
      "CommitWindowExpired",
      "SignedVote"
    ],
    "verified_functions": [
      "detect_equivocation",
      "commit"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CommitWindowExpired",
      "EquivocationDetected"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
