Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Superseded by #236 (V2 scheduling and download execution) in the consolidated eight-PR stack for #162. The replacement preserves this PR's code and subsequent fixes; its description links the original head and review discussions. The only additional consolidation fix is the CI-discovered listener cancellation regression, documented on the replacement. All eight replacements have passed their required CI checks. Closing without merging. This branch and its discussions remain available for reference. Review index: #162 (comment) |
V2 scheduling can now choose the rarest eligible piece advertised by a peer. The rarity index and compact peer snapshots are admitted before allocation; bitfield replacement, duplicate haves and peer removal update counts without aliasing caller data. Equal-rarity choices rotate, and selection avoids candidate-list allocations.
The scheduler precomputes wanted/verified/busy indexes for candidate eligibility. Its state allowance scales with actual blocks per piece, permitting more concurrent small pieces under the same budgets instead of charging every assembly as a 16 MiB piece.
Stacked on #200, under #162. Full peer/session availability routing, generation barriers, adaptive streaming/endgame policy, upload/hash serving and independent-client interoperability remain unfinished. Worst-case selection scans the bounded piece index; large-swarm CPU and throughput gates remain unproven.
Validation at
28152e91056110780f8481374c79b503813e5e6a: