Repository navigation
fix(engine): FIFO admission and drop-time drain in the command queue (#76) - #198
Merged
Merged
Conversation
joaquinbejar
commented
Oct 20, 2026
joaquinbejar
left a comment
Owner
Author
There was a problem hiding this comment.
APPROVE. Both PR197 findings are resolved. The original starvation and runtime shutdown buffer probes pass, alongside seven queue controls, four unchanged engine integration probes and ten authored queue tests. The allocation gate still measures zero blocks for 1024 ready gate sends. No new findings. Submitted as COMMENT because GitHub prevents the author account from approving its own pull request.
Codecov Report❌ Patch coverage is
🚀 New features to boost your workflow:
|
Merged
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.
Codex review of #197 (two P2s) and of #195 (a nit).
tokio::sync::Semaphorewith as many permits as the ring holds. The semaphore admits waiters in order, waits without allocating, and the receiver gives the permit back as it pops.closecloses the semaphore, so waiting sends are refused.Connectionthat outlives the session keeps no command or pooled buffer alive.FieldStoreno longer claims the size is unchanged: the enum tag adds 8 bytes on aarch64 (840 to 848).New unit tests:
test_a_waiting_send_is_admitted_before_later_ones;test_dropping_the_receiver_drops_what_is_queued.Both fail on the previous queue. The ready-gate allocation window stays at 0 blocks for 1024 sends.
cargo test --workspace --all-features: 2657 passed, 0 failed. fmt, clippy -D warnings, doc and check-spanish are clean. ADR-0008 updated.Refs #76