Changelog

0.2.0#

* Give the release's make check 20 minutes: it takes about 9 * Update the model checks' state counts: the reject hint changed them * Add clusterio.aio: Queue, Lock, Semaphore, Event and Barrier as asyncio has them * Check under faults that no two lock grants share a fencing token * Describe the malformed-entry and frame-size checks in Correctness * Raise a transaction's SystemExit to its caller, instead of stopping every node * Keep every append-entries frame under the network's limit * Skip a malformed log entry on every node alike, and refuse it at the leader * Make every change of many set elements one step: |=, -=, &=, ^= and their named methods * Make every write method of Dict and List one step, and their many-item reads one read * Close the default node when the interpreter exits * Stop renewing leases when the node closes, instead of retrying forever * Make a closed node refuse every call, and wake what waits on it * Cancel a test run superseded by a newer push to the same branch * Release a barrier waiter whose timeout races the last arrival * Name the traps of determinism in transactions: set order, per-process values, module state, code upgrades * Give locks and semaphores fencing tokens * Fail a test that hangs after 300 s, with every thread's stack * Rewrap net's docstring * Bound the messages waiting for a peer by bytes as well as frames * Test a queue under faults: no item got twice, none lost but by a get that raised * Say what a queue's put and get do when they raise Unavailable * Add clusterio.status(): a node's role, term, leader, progress and peers heard, for health checks * Refuse a dict key in a value that JSON would turn into a string * Kill nodes with SIGKILL mid-write and check no acknowledged write is lost; pass arguments after -- to the app * Add clusterio.sync(): reads after it are linearizable * Add Semaphore, Event, Barrier, Queue and Set, as threading, queue and set have them, across the cluster * Refuse to run a file named as a module that is imported instead * Test real clusters under partitions, crashes, loss, delay and repetition, checking linearizability * Catch a lagging follower up in a few round trips, not one per entry * Refuse frames from nodes configured with other peers, cap frames at 256 MiB, and stop a node whose step fails * Drop messages the node's actions do not accept, checked with the functions their Requires use * Tell a follower the new commit index when its answer arrives, not at the next heartbeat * Send pending writes to a new leader as soon as it is known * Add wait_for: block until a predicate holds, woken as entries are applied; locks use it * Keep messages queued while a peer is dialled, and dial again after 20 ms * Propose set, queue, semaphore, event and barrier, built on waiting for the log * Describe the node as its own specification in the README and docs * Plant bugs in the node's bodies too, and catch them with the node's models * Put the Temporal Typing specification on the Raft node that runs, and check its bodies with Tanny * Deploy the docs to clusterio.julin.ai on push to main * Rewrite the README: why clusterio, the whole API, guarantees and verification, linking the docs * Add the documentation site: a quick start, a guide, examples, internals and an API reference * Ignore .claude/ worktrees * License all of clusterio under MIT, and describe the spec as written from the Raft paper * Commit on followers by the paper's rule, and test the five safety properties on running nodes * Write RaftSpec from the Raft paper, and check its five safety properties * Install from PyPI: pip install clusterio

0.1.0#

* Document the release steps, and let bumpversion.py write the changelog * Declare spec.py's CC BY-NC-SA 4.0 license in the package metadata, and ship its text * Release with scripts/bumpversion.py, and publish tags to PyPI with trusted publishing * Link the Tanny issue that keeps the spec and its functions in one module * Write the spec's filters as comprehensions again, which Tanny supports * Stop a leader appending a pending write again while it still leads the same term * Model-check two servers to term 3 in make spec, and three servers in make spec-deep * Add AGENTS.md and CHANGELOG.md * Run the design doc's examples in the tests too * Design transactions, locks and now() for building distributed applications * Write the README: the API, configuration, guarantees and how clusterio is verified * Run lint, types, the model check and the tests with make check, on Linux and macOS in CI * Add examples: an etcd-like key-value server, a work queue and a cron scheduler * Satisfy ruff in the tests * Test real clusters over TCP: replication, failover, restart, locks, work queues and clusterio run * Tell peers the commit index when a leader closes, and send queued messages before closing * Test dict, list, files, transactions and locks against the builtins they mirror * Test Raft's Figure 8: a leader does not commit an earlier term's entry by count * Test the Raft node against the spec's invariants on a faulty network * Run Raft over TCP and SQLite behind dict, list, open, transactions and locks * Write canonical raft.tla as a Temporal Typing spec that Tanny checks * Design the API: dict, list and open shared by a Raft cluster * Start clusterio, a uv-managed Python library