Finish braid historical membership and replay goalpost - #551
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 (1)
📝 WalkthroughWalkthroughAdds historical braid membership projection via ChangesHistorical Braid Membership Projection
Braid Shell Audit Surface
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
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 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 |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
docs/design/braids-and-strands-hardening/goalpost-03-historical-membership-and-replay.md (1)
46-48:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winRemove stale GP3-S1-only scope text to avoid design contradiction.
Line 46-48 conflicts with Line 6 (
Status: implemented.) and the implemented cursor/diff/audit sections below. Keep this section consistent with the current implemented scope to prevent stale design guidance.As per coding guidelines, “Documentation accuracy matters — especially anything touching determinism guarantees, hash stability, or canonical ordering.”
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/design/braids-and-strands-hardening/goalpost-03-historical-membership-and-replay.md` around lines 46 - 48, The text describing GP3-S1 in lines 46-48 contradicts the "Status: implemented" statement on line 6 and the implemented cursor/diff/audit sections that follow. Remove or update the GP3-S1 scope description that states it does not implement cursor, diff, replay, or recorder surfaces, and instead align it with the current implemented status and the detailed implemented sections below to maintain consistency throughout the document.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In
`@docs/design/braids-and-strands-hardening/goalpost-03-historical-membership-and-replay.md`:
- Around line 46-48: The text describing GP3-S1 in lines 46-48 contradicts the
"Status: implemented" statement on line 6 and the implemented cursor/diff/audit
sections that follow. Remove or update the GP3-S1 scope description that states
it does not implement cursor, diff, replay, or recorder surfaces, and instead
align it with the current implemented status and the detailed implemented
sections below to maintain consistency throughout the document.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: fc6fc5e1-0ef8-42c4-a936-2d894466056b
📒 Files selected for processing (7)
CHANGELOG.mdcrates/warp-core/src/braid.rscrates/warp-core/src/braid_shell.rscrates/warp-core/src/lib.rscrates/warp-core/tests/braid_public_api_tests.rsdocs/design/braids-and-strands-hardening/goalpost-03-historical-membership-and-replay.mddocs/design/braids-and-strands-roadmap.md
Self-Code Review Findings@codex please sanity-check these review notes. I reviewed
Verification performed:
|
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Resolved both self-review findings in b84bfc3 (docs-only): updated the GP3 implementation-design wording and normalized the non-goals punctuation. |
Code Lawyer Activity SummaryLockdown and review pass completed on current head
Review-thread state:
Verification:
Merge gate: locked by review policy only ( |
|
@coderabbitai review |
|
@codex review please |
✅ Action performedReview finished.
|
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Completes Goalpost 3 of the braids/strands hardening roadmap: historical membership and replay.
This PR adds:
BraidMembershipCursor,Braid::current_membership_cursor(), andBraid::membership_at(...)for historical membership views over acceptedMemberWovenevents.BraidMembershipDiffandBraid::diff_membership(...)for deterministic added/ended projection facts, with revealed/concealed slots reserved until explicit disclosure evidence exists.audit_braid_shell(...)andBraidShellAuditfor retained shell replay/audit facts: member verdicts, support/frontier digests, posture floor, proof binding, and self-witness posture.The implementation keeps event-log membership cursors distinct from
BraidCoordinate, which remains shell identity. Audit facts validate the same retained shell and lineage constraints asreplay_braid_shell(...)and do not reopen member strand histories.Validation
Local witnesses and hooks run before opening this PR:
cargo test -p warp-core --test braid_public_api_testscargo test -p warp-core braid::testscargo test -p warp-core braid_shell::testscargo test -p warp-core --libvia pre-push hookcargo clippy -p warp-core --lib -- -D warningscargo clippy -p warp-core --test braid_public_api_tests -- -D warningscargo fmt --all -- --checkpnpm exec markdownlint-cli2 CHANGELOG.md docs/design/braids-and-strands-roadmap.md docs/design/braids-and-strands-hardening/goalpost-03-historical-membership-and-replay.mdscripts/check_spdx.shgit diff --checkSummary by CodeRabbit