Expose braid membership history#550
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughIntroduces ChangesGP3-S1: Append-Only Braid Membership History
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Self-Code Reviewcc @codex Verdict: no actionable findings.
Evidence reviewed:
Validation:
Residual risk: this PR intentionally implements only GP3-S1. It does not provide historical coordinate lookup, membership diffs, replay/audit facts, Braid Flight Recorder output, or Causal X-Ray output; those remain the unchecked GP3-S2 through GP3-S5 slices. |
Summary
Testing / Checks
|
Self-Code Review Pass 2cc @codex Verdict: no actionable findings.
Evidence reviewed:
Validation for this pass:
Residual risk is intentional scope, not a defect: this PR implements only GP3-S1. Historical coordinate lookup, membership diffs, replay/audit facts, Braid Flight Recorder output, and Causal X-Ray output remain later unchecked slices. |
Summary
Testing / Checks
|
Self-Code Review Pass 3cc @codex Verdict: no actionable findings.
Evidence reviewed:
Validation for this pass:
Residual risk remains intentional scope, not a defect: this PR implements only GP3-S1. Historical coordinate lookup, membership diffs, replay/audit facts, Braid Flight Recorder output, and Causal X-Ray output remain later unchecked slices. |
Summary
Testing / Checks
|
Summary
Implements GP3-S1 from the braids/strands hardening roadmap.
BraidMembershipEntryas a read projection for accepted braid membership facts.Braid::membership_history()to project acceptedMemberWovenevents from the append-only braid event log.frontier()as the current membership projection and documents that it is not the historical model.Why
Goalpost 3 needs a concrete source-of-truth boundary before later slices add coordinate views, diffs, replay facts, and lower-mode recorder output. This PR establishes that accepted
BraidEvent::MemberWovenentries are the membership history substrate, while rejected duplicate/late/incoherent events never enter the projected history.RED / GREEN
RED witness:
cargo test -p warp-core --test braid_public_api_tests public_braid_membership_history_is_append_only_event_historyBefore the fix, this failed because
BraidMembershipEntryandBraid::membership_history()did not exist.GREEN witness:
cargo test -p warp-core --test braid_public_api_tests public_braid_membership_history_is_append_only_event_historyAfter the fix, the test passes and proves accepted member facts are exposed in sequence order while rejected duplicate and late member events are excluded.
Validation
Pre-commit also passed
cargo clippy -p warp-core --lib,cargo check -p warp-core, and markdownlint for touched docs.Pre-push passed:
Roadmap
GP3-S1.GP3-S2throughGP3-S5unchecked for coordinate views, diffs, replay/audit facts, and Causal X-Ray / Braid Flight Recorder output.Summary by CodeRabbit
Release Notes
New Features
Documentation