feat(moves): add value-oriented move-run orchestration - #122
Conversation
- Parse pass and checkpoint cadence into a proof-bearing domain value. - Return per-invocation accounting and checkpoint state from shared run logic. - Preserve RNG stream continuity when reusing move strategies. - Enforce parsed cadence, value-oriented accounting, and CRTP-free design.
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 3 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThis change centralizes move-run cadence, command accounting, checkpointing, and result aggregation in ChangesMove-run centralization
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant Strategy
participant execute_move_run
participant MoveCommand
participant CheckpointWriter
Strategy->>execute_move_run: execute pass callback
execute_move_run->>MoveCommand: consume and reset counters
MoveCommand-->>execute_move_run: per-pass results
execute_move_run->>Strategy: report accumulated results
execute_move_run->>CheckpointWriter: write checkpoint at cadence interval
execute_move_run-->>Strategy: final manifold and run results
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Compare both seeded invocations and their move counters instead of assuming that distinct RNG states must produce different triangulations.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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.
Inline comments:
In `@tests/Move_always_test.cpp`:
- Around line 174-186: Update the test around replay(initial) to assert the
deterministic fixture’s exact attempted, succeeded, and failed totals for both
the first and second invocations, rather than only comparing each replay result
to its corresponding baseline. Also assert the exact checkpoint-event count for
both invocations using the existing accounting/checkpoint symbols, while
retaining the replay-equivalence checks and descriptive doctest coverage.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: b5f3d1c0-cb59-426b-a9d8-9bfce8a55d78
📒 Files selected for processing (1)
tests/Move_always_test.cpp
- Give pass, report, and checkpoint callables explicit value ownership. - Document MoveAlways cadence, RNG, and file-output contracts.
- Preserve exact accounting expectations across libc++, libstdc++, and MSVC STL. - Verify MoveAlways stream continuation with an exact per-move oracle.
Closes #103
Summary by CodeRabbit
New Features
checkpoint_events()and made result printingconst.Bug Fixes
Chores
Tests