fix(session): bound broker scheduling and transport - #918
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryThis PR introduces a shared reserve-before-work resource contract and applies bounded scheduling, transport, authentication, and review-serving behavior across the broker stack.
Confidence Score: 5/5The PR appears safe to merge, with bounded ownership and cleanup consistently applied across the reviewed broker lifecycle and transport paths. The changed reservation, scheduling, authentication, transport, and shutdown paths have matching release or terminal cleanup behavior, and the investigated pressure and reconnect scenarios did not establish an actionable defect. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
Client[HTTP or WebSocket client] --> Adapter[Bun or Node adapter]
Adapter --> TransportBudget[Transport admission and byte budgets]
TransportBudget --> Daemon[Runtime-neutral daemon]
Daemon --> Auth[Authentication and request bounds]
Daemon --> Broker[Session broker state]
Broker --> SessionBudget[Session and retained-state budgets]
Broker --> FIFO[Per-session command FIFO]
FIFO --> App[Live Hunk session]
App --> FIFO
Daemon --> Review[Browser review routes]
Review --> ResponseBudget[Body, response, action, and stream bounds]
ResponseBudget --> Client
Reviews (1): Last reviewed commit: "fix(session): bound broker scheduling an..." | Re-trigger Greptile |
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
Validation
bun run typecheckbun run lintbun run deps:checkoxfmt --checkgit diff --checkStack
This PR description was generated by Pi using gpt-5.6-sol