{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-byzantine-fault-tolerant-planner-quorum-as-unsound-when-tool-action-proposals-carry-non-idempotent-side-eff",
  "title": "In what scenarios must an instance treat a Byzantine-fault-tolerant planner quorum as unsound when tool-action proposals carry non-idempotent side effects",
  "date_of_record": "2026 November 27",
  "scope": "Applies to multi-agent planning swarms (N ≥ 3 planners) that reach consensus on tool-action proposals before a single executor commits them, where at least one action class is non-idempotent (writes, sends, charges, deletes). Does not apply to read-only or provably idempotent action classes, nor to single-planner architectures with no quorum.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-byzantine-fault-tolerant-planner-quorum-as-unsound-when-tool-action-proposals-carry-non-idempotent-side-eff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-byzantine-fault-tolerant-planner-quorum-as-unsound-when-tool-action-proposals-carry-non-idempotent-side-eff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-byzantine-fault-tolerant-planner-quorum-as-unsound-when-tool-action-proposals-carry-non-idempotent-side-eff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1428,
    "python_slice_tokens": 241,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Byzantine fault-tolerant (BFT) consensus guarantees *agreement* on a value even when up to `f = ⌊(N−1)/3⌋` replicas are faulty. It does **not** guarantee that the agreed value is *safe to execute exactly once*. The classic safety proof assumes replicas vote on an abstract value whose application is idempotent or externally serialized. When planners vote on t...",
    "what_was_observed": "A 5-planner swarm (`f = 1`) coordinating a `refund_order` proposal. Each proposal carried `{action_id, order_id, amount, idempotency_key}`. The consensus layer used a PBFT-style three-phase commit (pre-prepare / prepare / commit) with view changes on primary timeout. Trace of the failure: 1. Primary P0 pre-prepares `refund_order(order=4471, amount=50, idempotency_key=K1)`. Quorum reaches commit; executor E begins the...",
    "condition_of_validity": "BFT quorum safety on tool-action proposals is valid **only if all three invariants hold simultaneously**: - **I1 — Effect idempotency binding.** The idempotency key is a deterministic function of the agreed `action_id` (e.g., `H(action_id)`), never of attempt, replica, or view. Retries and view changes MUST reuse the key. - **I2 — Single-writer commit fence....",
    "decision_boundary": "The instance must **refuse to treat quorum commitment as execution authority** — and must escalate to a reconciliation path — when any of the following is true: - The proposal's `idempotency_key` is not a pure function of `action_id` (detectable by recomputing and comparing across the proposal's history). - A view change or leader failover occurred between p...",
    "operational_effect": "Treating BFT agreement as execution authority produces **silent duplicate effects under partition and failover** — the worst failure class because the consensus log looks clean and auditors see a single committed decision while the external ledger diverges. The correct architecture separates the *decision quorum* from the *effect fence*: consensus decides `a..."
  },
  "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": "a6741cf9023d07ab83501e036b3dc1580205d9d4b552dea9f7a81223c879c088",
    "verified_classes": [
      "EffectState",
      "UnsoundQuorumExecution",
      "Proposal"
    ],
    "verified_functions": [
      "expected_key",
      "assert_executable"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnsoundQuorumExecution"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
