Repository navigation
A growing each takes what the requests that joined the run bring (latest-update) - #51
Merged
Merged
Conversation
…est-update) run_workflow takes the host's Heard callback: every request that joined the run so far, oldest first, as a port's if-still-running: join hands them over. An each whose over: reads latest-update. lays each request it has not seen over the input in turn, field by field, and takes the new items of every list that leaves, when it starts and, with keeps-taking: yes, each time an item ends. The work-queue example reads latest-update.tasks through a joining tasks port instead of a list the host mutates in place. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd latest-update list Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jithinAB
added a commit
that referenced
this pull request
Dec 2, 2026
…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.
A port's
if-still-running: joinhands an event to the open run "as its latest update", and the loader readslatest-update.as what an event changes, but the reference runtime had nolatest-updateand no way for a host to hand a run the requests that joined it. A growingeachgrew only when the host mutated, in place, the list it had passed as the input: nothing another runtime can do, and nothing that survives a restart.What changes
run_workflow(..., heard=)takes the host'sHeardcallback: every request that joined the run so far, oldest first.latest-update.reads the input with each joined request laid over it field by field; before any stage read them it reads the input.eachwhoseover:readslatest-update.lays each request it has not seen over the latest update in turn and takes the new items of every list that leaves, when it starts and, withkeeps-taking: yes, each time an item ends; two requests that joined between looks both bring theirs, and a request that brings no fields changes nothing.examples/kernel/work-queuereadslatest-update.tasksthrough a newtasksport withif-still-running: join(pact checkloads it cleanly).heard=instead of aliasing the input list; a new test takes what two requests that joined between looks bring. Headline counts +1.Checks
pytest tests/test_forks_stops_and_a_growing_each.py tests/test_the_shipped_work_queue_runs.py: 12 passed.test_a_remote_agents_bill_is_not_a_ceiling_we_hold.py,test_both_ports_*andtest_every_port_reads_one_detector_dialect.pyfail the same way on master (checked on 5e5dc19); the headline count test failed on the new test and is fixed by the count commit.BMH counterpart:
@budmh/llm-programcard PK-6c (lane pact-loops), whose flow interpreter reads joined work-item requests the same way through a logged read.🤖 Generated with Claude Code