feat(research): reuse verified snapshot cache - #245
Conversation
|
Warning Review limit reached
Next review available in: 31 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: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
✨ 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 |
Change contract
Allow
alpha-harness prediction executeto reuse a read-only ResearchSnapshot archive keyed by its authenticated SHA-256, while preserving private per-attempt staging and fail-closed digest verification.Closes #241
Parent: #240
Out of scope
Dependency / merge order
None. This PR is independently mergeable. The live warm-worker benchmark in #243 depends on this capability plus #236 and #242.
Focused validation
PredictionExecuteArgshad nosnapshot_cache_dirfield.cargo test -p alpha-harness prediction_runner::tests -- --nocapture— 12 passed.cargo test -p alpha-harness— 80 passed.cargo fmt -p alpha-harness -- --checkgit diff --checkCounterexample proof: a cache entry at the authenticated SHA filename with corrupt bytes produces
prediction snapshot archive SHA256 mismatchand the runner marker is never created.Rollout / rollback impact
Rollout is opt-in via
--snapshot-cache-dir; callers without it retain the existing URL fetch path. Cache misses also retain the existing URL path. Removing the option or reverting this PR restores the previous behavior. No runtime or cloud resource is changed by this PR.