Skip to content

Release vote 0.2.0: validated ballots and explicit ties - #1

Merged
cmccomb merged 1 commit into
masterfrom
codex/vote-0.2
Sep 19, 2026
Merged

cmccomb merged 1 commit into
masterfrom
codex/vote-0.2

Conversation

@cmccomb

@cmccomb cmccomb commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Malformed profiles could pass audit() and then panic during voting, while tied plurality and Borda scores produced inconsistent flat rankings. Version 0.2 validates profiles at construction, returns typed errors, and preserves equal scores in explicit groups with caller-controlled tie-breaking.

Voting functions now borrow profiles. Random dictatorship supports caller-supplied RNGs and returns the selected ballot directly. The release updates rand, declares Rust 1.85 as the minimum supported version, replaces Travis with GitHub Actions, and standardizes the README badges, examples, installation, and migration guidance. The changelog documents the breaking API changes.

Validation: 16 integration tests plus 4 README doctests pass on Rust 1.85.0 and 1.93.1, including exhaustive checks of 1,554 small elections. Formatting, strict Clippy, documentation, and actionlint pass locally. GitHub CI covers stable Rust on Linux, macOS, and Windows, minimum-version compatibility, examples, and package verification.

Publication is planned from the merged commit after CI succeeds.

@cmccomb
cmccomb merged commit af4fc11 into master Sep 19, 2026
5 checks passed
@cmccomb
cmccomb deleted the codex/vote-0.2 branch September 19, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant