research(pm): remove retired legacy loop engine - #681
Merged
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe PR removes the durable non-MCTS prediction LoopRun engine and related persistence helpers. It retains policy contracts and prior construction, narrows status types, documents fail-closed bounded MCTS checkpoints, and updates two mission policy snapshots. ChangesPrediction Loop retirement
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 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 |
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.
Change contract
Remove the superseded non-MCTS prediction library loop engine, its engine-only state/ledger/crash-recovery helpers and tests, and the two now-unused filesystem helpers. Preserve the shared proposal/evaluation contracts, mission/snapshot validation, prior helper, and bounded MCTS runner. Rotate the governed prediction policy identity in both BTC/SOL mission templates and align the architecture/task contract with the MCTS fail-closed checkpoint behavior.
Issue relationship
None
Out of scope
Production deployment, collector changes, MCTS behavior changes, live activation, historical evidence deletion, and unrelated prediction-market refactors.
Dependencies and merge order
PR #679 must already be merged. This branch is based on
main@a738b5143f1862e7b2ee8182688b8825de063e16.Focused validation
cargo fmt -p ploy-research -- --check: PASScargo test -p ploy-research --locked: PASS (341 library tests, 4 binary tests)cargo clippy -p ploy-research --locked --all-targets --no-deps -- -D warnings: PASSsha256:1e3387ac2e5a8d62d516e7700f7037ab76fc69ea3be23b5eb19cccb6c1774559, matched by both BTC/SOL templates--legacy-loop: rejected with exit status 2run_or_resume(entry: absentRollout and rollback
No production or runtime rollout. Live trading remains disabled. Roll back by reverting this PR as one unit.
Scope exception
This deletion exceeds 750 non-generated lines because the user explicitly approved removing the entire retired library loop and the required architecture-contract synchronization. Splitting the engine, its private state/ledger/recovery helpers, engine-only tests, and governed policy pins would leave a half-retired compatibility surface or stale policy identity. Named reviewer approval: user/coordinator authorization in the cleanup task.
Summary by CodeRabbit
Behavior Changes
Documentation
Configuration