Skip to content

Support staged workflow patches in the Python worker #462

Done

Description

@rmcdaniel

Implement the Python service-worker portion of durable-workflow/workflow#1379 against the merged workflow-turn and staged patch contracts and the Native producer in durable-workflow/server#1498. General is accountable through installed verification. PR #463 merged revision 3 export requests and integrity verification at 9059f6ed after the complete SDK qualification. PR #464 merged the snapshot-bound history reader at cf8ba7a. The exact Native candidate supplied six events, three turns, and distinct committed and pending timer applications. PR #465 merged at a9584bb9 after all hosted checks passed, including connected integration. It binds staged patch decisions to recorded turns through registration, workflow and observation dispatch. The exact Native candidate passed the managed worker restart, query before and after update, pre-admission validation, and the same-queue handoff from a baseline worker to a compatible replacement. The 2.40.0 wheel and sdist passed exact artifact review, and the build passed both directions of predecessor replay. The installed 2.39.0 baseline completed ordinary work on the same queue on published Native Server 3.37.1. The reviewed 2.40.0 wheel exposed a replay failure when a committed update scheduled a separate condition evaluation. PR #469 merged the default-path correction. PR #470 covers ordered condition authoring. Installed checks on Native 3.37.1 passed with ordered authoring both off and on, with an update that satisfied the condition and one that left it waiting for a signal. All four preserved staged decisions and ran each recorded side effect once across cold replacement. Both fixes merged. The replacement build passed hosted predecessor replay, and its exact wheel passed the same four installed checks. General's next action is to complete the independent verification for replacement descriptor #471, then merge the descriptor and tag the reviewed bytes. After publication, the two published versions still need the same-queue readback. Wire contract · Staged patch rules

  • Negotiate protocol 1.24 and the staged patch capability during registration. Use the existing worker protocol with servers that do not acknowledge the capability.
  • Validate the claim's turn identity, history snapshot and recorded input applications before invoking workflow code. Preserve existing patch decisions and memoization across workflow code replay. Use the recorded turn boundary after replay consumes the last command.
  • Keep a known inactive change on the legacy branch for fresh decisions. Replay existing markers on compatible workers. Release a task with an unknown staged marker through the recoverable worker response without failing the run.
  • Verify two published worker versions on the same Native queue before and after activation. Confirm legacy work completes, a worker that knows the marker resumes marked work, and restart and cold replay preserve both branches.
  • Document worker configuration and the operator's deploy, activate and deprecate sequence. Record the released SDK and Native versions with the installed qualification results.

Activity

  1. rmcdaniel commented on Dec 5, 2026

    @rmcdaniel
    MemberAuthor

    Python 2.40.0 is published on PyPI and the stable portal. The release tag is ce4098370827b4063d3c9da6c31c9708e516b117. The downloaded wheel and sdist both matched the independently verified producer in #471. A fresh wheel installation passed on published Native Server 3.37.1, index sha256:74f4754fae9e8bb346a616cba2578c70a215097bbc22eb6916ccb9e9d150edf7. PyPI · Protected release · Stable portal audit

    Published 2.39.0 completed ordinary work on the same queue before and after activation. It left the marked run waiting. A fresh 2.40.0 worker resumed the same run after a Server restart, preserved the recorded branch, and completed without re-running its side effect. The inactive run kept its legacy branch after activation. The checked candidate passed updates that settled the condition directly and updates followed by a signal, with default and ordered condition authoring. Both directions of hosted predecessor replay also passed. Publication verification · Stable portal deployment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions