Sync MatrixRaft production readiness work - #34
Open
bjmeetsfo wants to merge 34 commits into
Open
Conversation
added 30 commits
September 6, 2026 06:03
clippy is green on main, so these are the branch's own rather than a stale base. Six in the
library:
- a hand-written `Default` whose six u64 fields were all 0, replaced by `#[derive(Default)]`
- `.trim_start()` before `.split_whitespace()`, which already skips leading whitespace
- three `if d == 0 { X } else { n / d }` rewritten as `n.checked_div(d).unwrap_or(X)`. The
readiness one returns 100 rather than 0 when nothing is advertised, because no advertised
names is full coverage, and it keeps doing so
- `mod tests` had roughly 1,200 lines of items after it, so it moves to the end of the file
Twenty more were hidden behind those. CI stopped at "could not compile matrixraft (lib)", so the
test and example targets were never linted; with the library clean they appear. Main's copy of
tests/runtime_reports.rs contains no `peer.clone()` at all, so these came in here too:
- nineteen `&[peer.clone()]` become `std::slice::from_ref(&peer)`
- one `&PathBuf` parameter becomes `&Path`; callers passing a `&PathBuf` still coerce
Verified locally with CI's own invocation, `cargo clippy --all-targets --locked -- -D warnings`:
exit 0, no errors. None of this changes behaviour.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
bjmeetsfo
force-pushed
the
codex/sync-production-readiness-runtime-pressure-20260906
branch
from
September 7, 2026 23:02
13e26cf to
d53a229
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR syncs the MatrixRaft production-readiness and runtime-pressure work from the active development checkout into matrixarkai/matrixraft using a branch based on matrixarkai/main.\n\nHighlights:\n- Adds production-readiness gates and diagnostics for runtime pressure evidence.\n- Adds runtime pressure admission policy validation and policy-aware readiness reporting.\n- Expands benchmark/readiness artifacts, runbooks, Prometheus output, and API surface mapping.\n- Continues RustRaft production-readiness work toward ByteRaft parity.\n\nThe original pushed development branch is bjmeetsfo/MatrixRaft:main at 4420f45. This PR branch is a source-tree sync commit on top of matrixarkai/main because the two repositories do not share Git history.\n\nValidation from the latest development branch included cargo formatting/checks and focused plus full test runs on the MatrixRaft checkout.