Skip to content

A growing each takes what the requests that joined the run bring (latest-update) - #51

Merged
jithinAB merged 3 commits into
masterfrom
pact-loops/latest-update
Dec 2, 2026
Merged

jithinAB merged 3 commits into
masterfrom
pact-loops/latest-update

Conversation

@jithinAB

@jithinAB jithinAB commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

A port's if-still-running: join hands an event to the open run "as its latest update", and the loader reads latest-update. as what an event changes, but the reference runtime had no latest-update and no way for a host to hand a run the requests that joined it. A growing each grew 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's Heard callback: 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.
  • An each whose over: reads latest-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, with keeps-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-queue reads latest-update.tasks through a new tasks port with if-still-running: join (pact check loads it cleanly).
  • Tests: the growing-each tests and the shipped work-queue test hand tasks over through 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.
  • Full adapter suite: 3494 passed; the 26 failures in test_a_remote_agents_bill_is_not_a_ceiling_we_hold.py, test_both_ports_* and test_every_port_reads_one_detector_dialect.py fail 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-program card PK-6c (lane pact-loops), whose flow interpreter reads joined work-item requests the same way through a logged read.

🤖 Generated with Claude Code

jithinAB and others added 3 commits December 2, 2026 23:28
…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
jithinAB merged commit ecb2051 into master Dec 2, 2026
1 of 2 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant