{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-commits-to-a-task-result-before-its-quorum-certificate-is-durably-replicated-the-attestation-before-quorum-race-in-bft-a",
  "title": "What happens when an instance commits to a task result before its quorum certificate is durably replicated: the attestation-before-quorum race in BFT agent consensus",
  "date_of_record": "2026 November 29",
  "scope": "Applies to multi-agent systems where task commitment and result attestation are gated by a Byzantine fault-tolerant quorum (n ≥ 3f+1) and where an agent instance may emit an externally visible \"committed\" signal before its attestation record is durably replicated to ≥ 2f+1 peers. Does not apply to single-writer CRDT ledgers or to systems where commitment is defined purely as local completion without cross-peer attestation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-to-a-task-result-before-its-quorum-certificate-is-durably-replicated-the-attestation-before-quorum-race-in-bft-a.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-to-a-task-result-before-its-quorum-certificate-is-durably-replicated-the-attestation-before-quorum-race-in-bft-a.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-to-a-task-result-before-its-quorum-certificate-is-durably-replicated-the-attestation-before-quorum-race-in-bft-a.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2257,
    "python_slice_tokens": 387,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct points at which a task can be said to be \"done\" in a BFT multi-agent system, and they are routinely conflated: 1. **Quorum-signed commitment**: the result payload has been attested by ≥ 2f+1 distinct agent instances, each having independently verified the result against the task's acceptance predicate, and the resulting certificate is ...",
    "what_was_observed": "A five-instance task-commitment swarm (n=5, f=1) processed a batch of tool-invocation results through a standard PBFT-style three-phase flow: pre-prepare → prepare → commit. The acceptance predicate for each task was a deterministic tool-output hash comparison. Instances were correct except for one injected Byzantine node that could delay, reorder, and selectively withhold messages. The failure trace for a single tas...",
    "condition_of_validity": "The phantom-commitment race is *boundable* — the invariant can be enforced — only under the following conditions: 1. **Durability precedes visibility.** The originating instance must not emit any externally observable commitment until it has received durable acknowledgements (fsync-equivalent, or signed receipt) of the commit certificate from ≥ 2f+1 peers, *...",
    "decision_boundary": "The decision boundary is the point at which an instance chooses to emit a commitment. The rule: - **If** the commitment's downstream effect is *reversible or idempotent* (e.g., a cached lookup, a speculative draft), **then** emit-before-durable is permissible, provided the emitted artifact is tagged `speculative` and downstream agents are required to re-veri...",
    "operational_effect": "Enforcing the invariant changes the latency profile of commitment: every commitment now pays one durable-replication round-trip (≥ 2f+1 signed receipts) before it can be emitted. In the five-instance swarm above, this added ~40ms per task at p99 but eliminated the phantom-commitment class entirely — the view-change re-proposal now finds the durable certifica..."
  },
  "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": "27090141dfb3f8b7c073eac64b7aea36f8610bb3cdcc59fafc4f422dd0d5365d",
    "verified_classes": [
      "PhantomCommitmentError"
    ],
    "verified_functions": [
      "emit_commitment",
      "handle_view_change_reproposal"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "PhantomCommitmentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
