Repository navigation
An each starts no queued item once its join has its answer - #52
Merged
Merged
Conversation
The items of an each with at-once-at-most: waited on a gate, which let the next one in as the ended one released it, before the join read the end. The join now starts the items itself and starts the next only when its rule is not met. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…headline Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vsraccubits
added a commit
that referenced
this pull request
Dec 3, 2026
Brings in master's each/join gate fixes (#51, #52): a growing `each` takes what the requests that joined the run bring, and starts no queued item once its join has its answer. Conflicts resolved: - CHANGELOG.md: both sides kept, master's 3 and 2 December entries first. - README.md, docs/90-REVIEW.md: the test counts, rewritten with scripts/sync-counts.sh (which also updates site-docs/index.md and site-docs/status/verified.md): 5606 tests, 1817 Rust + 3789 adapter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
An
eachwithat-once-at-most:queued its items on anasyncio.Semaphore. When an item ended, releasing the gate woke the next queued item before the join (_Run.branches) had read the end and seen itswaits-for:met, so items past the answer still ran. On master, a three-itemeachunderwaits-for: the-first-good-answerandat-once-at-most: 1runs all three items.What changes
_Run.branches(stage, work, at_once=None)takes the work as callables, startsat_onceof them, and starts the next only after it took the one that ended and its rule is not met. A non-growingeachpasses itsat-once-at-most:;togetherpasses no bound. The growing (keeps-taking) path keeps its gate.test_an_each_starts_no_queued_item_once_its_join_has_its_answer(20 runs; on master it starts t1, t2 and t3, here t1 only). Headline counts +1; CHANGELOG entry.Checks
BMH counterpart: budmh's PK-6b conformance listed
workflow-shapes/first-good-answeras a reference difference for this race; it retires with the next re-pin.Conflicts with #51 only in the headline counts (both add one test).
🤖 Generated with Claude Code