fix(prism): harden Lium install/429 and allow infra resubmit - #109
Merged
Conversation
Separate pip install from harness SSH, backoff Lium 429s, and let miners resubmit for 30m after ChallengeInternal instead of staying gated forever.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughThe change adds a 30-minute infrastructure resubmission window, updates challenge retry handling, centralizes Lium REST requests with bounded 429 retries, moves dependency installation before evaluation, and increases SSH keepalive limits. ChangesSubmission retry window
Lium execution resilience
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant SubmissionAPI
participant GatingLibrary
participant LiumClient
participant SSHExecutor
SubmissionAPI->>GatingLibrary: check infrastructure retry window
GatingLibrary-->>SubmissionAPI: return eligibility
LiumClient->>LiumClient: retry REST request after 429
LiumClient->>SSHExecutor: install and verify dependencies
LiumClient->>SSHExecutor: execute evaluation harness
Possibly related PRs
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 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 was referenced Aug 12, 2026
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.
Summary
ChallengeInternal/blocked, miners can resubmit for 30 minutes (newPOST /v1/submissionsor/retry); cheatrejectedstays closed.Test plan
cargo test -p prism-lium -p submission-gating -p prism-challenge --libcargo clippy -p prism-lium -p submission-gating -p prism-challenge --all-targets -- -D warningscargo run -p xtask -- loc-cap/external-docs-checkreset_openfor hotkeys already blocked outside the 30m window (e.g. the two miners from today)Summary by CodeRabbit
New Features
Bug Fixes
Documentation