Conversation
- Add ChallengeRegistered, ChallengeStarted, ChallengeStopped events - Broadcast events when challenges are registered/started/stopped - csudo: Add interactive mode, fix short flag conflicts - Validators receive real-time notifications when challenges change
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe pull request refactors the csudo CLI to use a REST-based PlatformClient for challenge management, updates dependencies, and adds event broadcasting to the platform-server. Challenge registration, start, and stop operations now emit WebSocket events to connected validators. Changes
Sequence Diagram(s)sequenceDiagram
participant Client as csudo CLI
participant Server as Platform Server
participant Validators as Connected Validators
rect rgb(220, 240, 255)
Note over Client,Validators: Challenge Registration Flow
Client->>Server: POST /api/v1/challenges (RegisterChallengeRequest)
Server->>Server: Store challenge
Server->>Validators: Broadcast ChallengeRegistered event
Validators->>Validators: Receive event via WebSocket
Server-->>Client: ApiResponse (success)
end
rect rgb(240, 255, 240)
Note over Client,Validators: Challenge Start Flow
Client->>Server: POST /api/v1/challenges/{id}/start
Server->>Server: Update challenge status
Server->>Validators: Broadcast ChallengeStarted event (with endpoint)
Validators->>Validators: Receive event via WebSocket
Server-->>Client: ApiResponse (endpoint)
end
rect rgb(255, 240, 240)
Note over Client,Validators: Challenge Stop Flow
Client->>Server: POST /api/v1/challenges/{id}/stop
Server->>Server: Update challenge status
Server->>Validators: Broadcast ChallengeStopped event
Validators->>Validators: Receive event via WebSocket
Server-->>Client: ApiResponse (success)
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
Comment |
echobt
added a commit
that referenced
this pull request
Feb 21, 2026
…ration (#5) - Remove all hardcoded chain.platform.network references - Require explicit CORS and URL configuration (no defaults) - Update Docker configs for P2P-first architecture - Update CLI tools to use explicit arguments - Update documentation to reflect P2P mode as primary
echobt
added a commit
that referenced
this pull request
Feb 21, 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 by CodeRabbit
New Features
Refactor
✏️ Tip: You can customize this high-level summary in your review settings.