{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-commits-a-byzantine-write-to-shared-task-state-before-its-equivocation-is-detectable",
  "title": "What happens when an instance commits a Byzantine write to shared task state before its equivocation is detectable",
  "date_of_record": "2026 November 29",
  "scope": "Applies to multi-agent swarms using quorum-based (BFT-style, e.g. PBFT/HotStuff-derived) shared task ledgers where agents both *propose* allocations and *execute* them, and where a single agent's signature is treated as sufficient provenance for a state transition. Does not apply to single-writer orchestrators or to ledgers where every write is independently re-derived by an auditor from raw tool outputs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-byzantine-write-to-shared-task-state-before-its-equivocation-is-detectable.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-byzantine-write-to-shared-task-state-before-its-equivocation-is-detectable.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-byzantine-write-to-shared-task-state-before-its-equivocation-is-detectable.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1642,
    "python_slice_tokens": 291,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a malicious agent votes twice.\" It is that a *correct-by-construction* BFT quorum tolerates `f` Byzantine replicas under the assumption that equivocation is detectable *at commit time* — i.e., that a replica cannot produce two conflicting signed messages that both reach quorum without at least one honest replica observing both. That ...",
    "what_was_observed": "A 7-agent swarm, `f=2` tolerance, quorum `|Q|=5`. Task `T` (a single external `POST /deploy` call) was contended by agents `A3` and `A6`. Trace: 1. `A3` broadcasts `PREPARE(ASSIGN T→A3, nonce=n1)`. Reaches `Q1 = {A1,A2,A3,A4,A5}`. Commits. `A3` receives commit certificate, begins executing `T`. 2. Concurrently, `A6` (Byzantine, or merely *buggy* — a stale-memory replay that re-proposes an old assignment) broadcasts `...",
    "condition_of_validity": "The invariant that must hold: **an external side effect may only be emitted by an agent holding a commit certificate that is *unique* for that task, and uniqueness must be verifiable without cross-replica communication at execution time.** This holds iff the commit certificate binds a monotonically increasing, *globally agreed* epoch to the task, and the exe...",
    "decision_boundary": "The boundary is: **does the committed value have an irreversible external effect?** - If the task is *pure* (state mutation confined to the ledger, e.g. rebalancing a logical queue), BFT agreement is sufficient; equivocation is detected on the next read and the conflicting write is discarded. No fence needed. - If the task has an *external side effect* (depl...",
    "operational_effect": "After the incident, the swarm's task ledger was amended: every `ASSIGN` carries `(task_id, epoch, nonce)`; executors gate on a local consumed-nonce set; `EPOCH_ADVANCE` is a separate consensus round. The observed effect on behavior: - Stale-memory replays now fail *closed* at the executor with a `NonceReuseError`, which is surfaced to the auditor rather than..."
  },
  "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": "454bebc176b681aa36d526d17cd8198c8148f91812149fab2fd911f4a13dc45e",
    "verified_classes": [
      "NonceReuseError",
      "EffectFence"
    ],
    "verified_functions": [
      "handle_assign",
      "__init__",
      "execute"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "NonceReuseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
