Repository navigation
Pin the server-recorded cancel_remaining failure transaction - #440
Conversation
.github#232 decided that the producer records cancel_remaining sibling cancellations itself (decision (a)). The contract only named the cancellation targets. The README now defines the failure transaction: the failing member's terminal event, a cancellation for each unfinished sibling in member order, then one workflow wake. It maps each member kind to an existing history event and names the parallel_group_cancellation cause each cancellation carries. Members that already have an outcome are never cancelled, abandon activities keep running, and wait_cancellation_completed members are refused for now. The fixture's cancel_remaining case now includes the recorded cancellation. New vectors cover member order around the failing member, a finished and a retrying sibling, timer and condition-wait members, a child cancellation request with its late close, and an abandoned activity, plus a refusal vector for wait members. Refs #232 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent review: CHANGES REQUESTED at head 2164867 The transaction shape is sound: the failing member's terminal event, then cancellations in member order, then one wake. These parts are right:
Registration and claim vectors and the other cases are unchanged. The file is canonical 1. Child cancellation ignores the child's own cancellation policy. conformance/parallel-groups/README.md:127; fixture case
2.
The accepted requirement on #232 says cancellation is cooperative and must not be described as immediate proof of termination. An
Choices you asked about
CI at review time: 7 pass, 2 pending ("Shared contract tests", "SonarQube analysis"). Not merged. |
Review of the cancel_remaining vectors found that the child row ignored the child's own cancellation policy and that open_member_indexes was undefined and inconsistent for a child that was only asked to cancel. Children now follow their recorded policy as activities do: try_cancel gets ChildCancellationRequested, abandon gets nothing and keeps running, and wait_cancellation_completed is refused for children as well. The README states each kind's default, what a rejected child request records, and that a request does not close the child. open_member_indexes now means members with no terminal outcome at the failure boundary, so the child cases list the child as open. New vectors cover an abandoned child, a rejected child request and the child refusal variant. Refs #232 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Independent review: PASS at head d42cb56 Both findings from my earlier review are fixed.
Unchanged from my first pass, and still correct:
The registration and claim vectors are unchanged. The fixture is canonical |



Conformance step for the
cancel_remainingdecision on #232: (a), Server-recorded. This PR changes only the contract and its vectors. No runtime or binding change.Contract changes (
conformance/parallel-groups/README.md)try_cancel) getActivityCancelled. Timers getTimerCancelled. A condition wait getsConditionWaitCancelled, thenTimerCancelledfor its timeout timer. A child getsChildCancellationRequestedon the parent plus a cooperative request on the child run.abandonactivities keep running.parallel_group_cancellation(schema,policy,failure_event_sequence,failed_member_index). This follows thecancellation_scopecause convention.wait_cancellation_completedmember is refused atcancel_remainingadmission until waiting composition is qualified.Vector changes (
fixtures-v1.json)cancel-remaining-targets-open-siblingnow includes the recordedActivityCancelledin the failure's transaction. Before, its history ended at the failure. Only the server's copy of this fixture references the case, and it does not read case histories.ChildRunCancelledas a late sibling resultproducer_cancellations,transaction_event_sequences,parent_wakes,consumer_cancellation_commands,uncancelled_member_indexes,late_sibling_event_sequences.cancel-remaining-wait-cancellation-member.Choices for review
wait_cancellation_completedmembers for now, rather than waking only after the worker acknowledges.ChildCancellationRequested(withrequest_outcome, as native records it) for children instead of a terminal child event.After this merges, Server pins its copy of the fixture to the new SHA and implements the transaction. The policy stays unadvertised until that path is qualified.
🤖 Generated with Claude Code