fix: close agent authorization boundaries - #2
Merged
Conversation
# Conflicts: # .opencode/tools/corral.ts # internal/assets/corral.ts # internal/daemon/daemon.go # internal/daemon/openapi.go # internal/sched/sched.go # internal/store/store.go
# Conflicts: # cmd/corral/main_test.go
Attempt IDs previously collided whenever separate runs used the same node and attempt number. Prefix IDs with the run so the global attempts primary key cannot silently redirect later run records.
Corral init writes the project-local config while tracked examples and embedded assets remain canonical.
Add cursor-based replay plus non-blocking live delivery so clients can reconnect without losing committed events. Close slow subscribers safely, retain bearer auth, and document the additive endpoint.
Map headless Claude sessions onto the generic adapter contract with exactly-once completion, scoped permissions, abort handling, and protocol-level regression coverage.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (64)
📝 WalkthroughWalkthroughThe change adds OpenCode and Claude adapter support, reviewer verification, durable run watching and SSE events, TUI live updates, permission controls, scheduler safeguards, worktree management, stricter agent policies, and updated documentation. ChangesCorral platform changes
Estimated code review effort: 5 (Critical) | ~120 minutes Sequence Diagram(s)sequenceDiagram
participant TUI
participant Daemon
participant Store
participant Broker
participant Scheduler
TUI->>Daemon: Open run events stream with cursor
Daemon->>Store: Replay durable events after cursor
Daemon->>Broker: Subscribe to run events
Store->>Broker: Publish committed event notification
Broker-->>Daemon: Deliver run event
Daemon-->>TUI: Send ordered SSE event
TUI->>Daemon: Request permission response
Daemon->>Scheduler: Resolve pending permission
Scheduler->>Store: Persist state transition
Store->>Broker: Publish transition event
Daemon-->>TUI: Send updated run state
✨ Finishing Touches📝 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.
Summary
Verification
make testmake racemake vetmake buildSummary by CodeRabbit
New Features
Bug Fixes
Documentation