Repository navigation
A growing each joins by its teamwork, and a stop undoes what it stopped - #49
Merged
Merged
Conversation
keeps-taking settled its items without the stage's teamwork: it waited for every item whatever waits-for said, and a failed item ended the run under if-someone-fails: carry-on. taking and branches now settle through one join step (_Run.joined, _JoinRule). does: stop now undoes the stopped run by its call's undone-by (the stage's or the action's), as the schema's stops: help says, after the cancellation lands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… answer first Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…m ran first 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.
What this fixes
The reference workflow runtime had two gaps against the schema.
eachignored its teamwork. Withkeeps-taking: yes,_Run.takingwaited for every item whateverwaits-for:said. An item that failed also ended the run, even underif-someone-fails: carry-on.does: stopcancelled a detached run, but did not undo what that run had done. Thestops:help says: "What it did is undone as its ownundone-by:says."Changes
takingandbranchesnow settle every finished item or branch through the same step (_Run.joined,_JoinRule).carry-onrecords a failed item as{"failed": ...}and keeps taking.stop-the-others(the default) stops the run.waits-for:is met, the items still running are cancelled and nothing more is taken.RunRefnow carries the detached call's undo (the stage'sundone-by:or the action's) and the inputs the call was made with.stopcancels the run, waits for the cancellation to land, then calls that undo with those inputs.tests/test_forks_stops_and_a_growing_each.py: the rule met, carry-on, the default stop, and the stop's undo.Tests
test_forks_stops_and_a_growing_each.pyandtest_the_shipped_work_queue_runs.pypass.uv run --extra all --extra test pytest --continue-on-collection-errors tests): 36 failed, 3309 passed, 175 skipped, 3 collection errors.pactbinary.mastercheckout and they fail there in the same way. The rest were not re-run onmaster, but none of the failing files touchworkflow_runtime.py.Downstream
Bud Meta Harness PK-6 already behaves this way. It logs a
diverges-from-the-referenceline for each of these two points until this change is re-pinned.🤖 Generated with Claude Code