Skip to main content
Version: 2.x

Version Compatibility

This page is the canonical compatibility and release-authority contract for the Durable Workflow public platform. It is the single source of truth for:

  • which surfaces are public,
  • the stability level of each public surface,
  • which changes may ship in a patch, minor, or major release,
  • whether a given field is part of the contract or is diagnostic-only,
  • and the runtime version-negotiation protocol clients use to fail closed when the server advertises a surface they cannot speak.

Per-package stability documents (for example docs/api-stability.md in the durable-workflow/workflow repository, the dw CLI reference, the Waterline operator API page) are downstream of this page. They add per-package detail under these rules; when a per-package document and this page disagree, this page wins, and the disagreement is a bug in the per-package document.

The same contract is published in machine-readable form so SDKs, server manifests, and CI gates can validate themselves against one source of truth:

  • surface_stability_contract in the response body of GET /api/cluster/info on the standalone Durable Workflow server, schema durable-workflow.v2.surface-stability.contract, version 5.
  • A frozen mirror of the same manifest in this repository at static/compatibility-contract.json.
  • The PHP class Workflow\V2\Support\SurfaceStabilityContract, which is the in-process source the server re-exports.

A release that changes any surface listed below — its stability level, its field set, its breaking-change rules — must update this page, the JSON mirror, the PHP manifest, and any per-package stability document in the same change. Docs CI validates the machine-readable contract, released Rust metadata when available, and worker-protocol specs. Editorial alignment between this page and the manifest remains an explicit release-review responsibility.

Companion: Platform Protocol Spec Catalog​

This page says which surfaces are public and how they may change. The companion Platform Protocol Specs catalog says where the normative machine-readable specification for each surface lives, which format the spec uses (OpenAPI for HTTP APIs, JSON Schema for object families, AsyncAPI for event-stream semantics), which repository owns the spec, which object families it governs, and which public URL resolves the artifact. SDK authors, agents, and operators should validate against the spec catalog rather than re-reading prose or depending on repository-local implementation details.

The catalog is advertised as platform_protocol_specs in GET /api/cluster/info.

The machine-readable authority is published at /platform-protocol-specs.json with schema durable-workflow.v2.platform-protocol-specs.catalog, version 16.

Every catalog entry's surface_family must exist in the contract above; docs-site CI validates the catalog, resolves each public spec URL, and rejects repository-local authority fields.

Worker protocol authority roles

Runtime discovery and conformance qualification use separate protocol authorities. Choose the row for the job you are doing; a matching version label does not make a versioned historical resolver an alias for the unversioned Server authority.

RoleCurrent markerResolver authority
Current published Server protocolworker_protocol.version = 1.20Unversioned Server-backed mirrors: OpenAPI · AsyncAPI
Current Workflow conformance targetSuite 47 targets protocol 1.19Versioned, digest-bound fixtures: OpenAPI · AsyncAPI
Retained historical conformance bindingsBindings marked historical for protocols 1.13, 1.15, 1.16, 1.17, 1.18Immutable resolver and digest records in the conformance manifest

Every required platform protocol catalog entry is marked published; the invocable carrier entry remains in_progress. Every available entry links directly to a public OpenAPI, AsyncAPI, or JSON Schema document. The cluster_info_envelope schema pins the discovery surface every other catalog entry can be reached from.

Published Laravel support​

Select the package release before comparing PHP and Laravel requirements. The embedded package and the service-mode SDK have separate support contracts.

Package linePHPLaravel
Current embedded Workflow 2.42.0PHP 8.2+ in 8.x; PHP 8.3+ for Laravel 13^12.72.0 or ^13.41.0
Embedded Workflow 2.20.5PHP ^8.1, subject to Laravel's own minimum^10.50.4, ^11.56.1, ^12.69.0 or ^13.30.0
Published PHP SDK 3.14Bare SDK PHP ^8.1; the Laravel bridge needs PHP ^8.2, and PHP 8.3+ for Laravel 13^12.69.0 or ^13.30.0
PHP SDK 3.9.5Bare SDK PHP ^8.1; the Laravel bridge also follows Laravel's PHP minimum^10.50.4, ^11.56.1, ^12.69.0 or ^13.30.0

The older rows record the requirements of their named releases.

The published embedded upgrade contract and each release's composer.json are the package authorities. The current embedded release was verified on Laravel 12 with PHP 8.2–8.4 and Laravel 13 with PHP 8.3–8.4. Its PHP 8.1 and Laravel 10/11 support has been removed. This does not change the historical stable-v1 installation guide or the independently published PHP SDK requirements.

Workflow 2.28.1 is a security-only patch that raises the Laravel minimums shown above. Runtime and schema files are identical to 2.28.0, so upgrading from 2.28.0 adds no database migration. The published package verification and five upgrade/rollback journeys qualify this package.

Before upgrading an older embedded application, upgrade PHP and Laravel to a supported combination. If that migration is not ready, ~2.20.5 keeps Composer on the 2.20 patch line; it does not promise indefinite maintenance. A broad ^2.0 constraint can select a later minor once the platform permits it. Preserve the original runtime for open v1 runs, and follow the Laravel adoption guide for drain or coexistence. Changing a Composer requirement does not migrate durable history.

PHP SDK 3.10 moved the Laravel service-mode bridge to the same PHP and Laravel floors as Workflow 2.21 and removed Laravel 10/11 support; 3.11 through 3.14 keep them. Its provider refuses unsupported or unknown framework and PHP versions before registering configuration, clients or workers. Existing SDK 3.9.x applications keep their own contract while the platform is upgraded. See the PHP SDK upgrade notes.

Workflow 2.22 adds no database migration and keeps the 2.21 support floors. Its embedded worker protocol advertises 1.22 and still accepts 1.20 requests. 1.22 adds an opt-in occurrence deadline that external callers can request for condition waits; the embedded runner keeps its existing waiting behavior. After any workflow has used that policy, roll back to an earlier Workflow release only by restoring a backup taken before the upgrade. Older releases can discard the policy and mix the wait chain, and upgrading again does not repair that history. See the 2.22.0 changelog.

Workflow 2.23 and 2.24 keep the 2.21 support floors and the embedded worker protocol 1.22. 2.23 adds no database migration. 2.24 adds one, so run php artisan migrate when you upgrade. It adds nullable last_heartbeat_progress, last_heartbeat_progress_at and last_heartbeat_recorded_at columns to activity_attempts, with no backfill. Behavior changes to check before upgrading:

  • From 2.24, a heartbeat writes an ActivityHeartbeatRecorded event only when its progress changed, at most once per max(heartbeat timeout, 60 seconds). See Heartbeats.
  • From 2.24, creating a schedule with an id that is already taken, including a deleted or exhausted schedule, raises ScheduleAlreadyExistsException, and re-applying an unchanged schedule records nothing.
  • From 2.23.1, a new activity with maxAttempts below 1 fails the run instead of running once. For unlimited attempts, omit maxAttempts and set the activity class $tries to 0. Histories recorded earlier keep replaying.
  • From 2.23.1, embedded saga compensation runs under a cancellation shield, and an update accepted while the run is closing still gets its result.

See the release notes for 2.23.0, 2.23.1, 2.23.2 and 2.24.0.

Workflow 2.25 and 2.26 keep the 2.21 support floors and the embedded worker protocol 1.22. 2.25 adds no database migration. 2.26 adds one, so run php artisan migrate when you upgrade. It creates the workflow_child_supervisions table. Changes to check before upgrading:

  • From 2.26, a parent that continues as new while children it started are still open hands them to the continued run. The chain's final run applies their parent-close policy, and a child that fails is still retried under its recorded retry policy. See Continue-as-new and open children.
  • From 2.26, the migrations from earlier releases that fill in existing rows (2026_07_13, 2026_09_24, 2026_09_29 and 2026_10_11) no longer lock the table for the whole backfill. They add the column first, fill rows in small batches and then build their indexes without blocking writes. If one of them is interrupted, run php artisan migrate again. Installs that already ran them are not affected.
  • From 2.26, redrive reuses a child workflow that completed before the failure. Releases before 2.26 replay such a successor with a different workflow time after the reused child, so keep workers on 2.26 or later once one exists. See Redrive a Failed Run.
  • From 2.26, historyBudgetAtStep() and shouldContinueAsNewAtStep() read the history budget the same way on every replay. Use them in loops. See History Budget.
  • From 2.25, going over a fixed memo or search attribute cap raises StructuralLimitExceededException instead of InvalidArgumentException, and the memo_size_bytes default is 65,536. See Structural Limits.

See the release notes for 2.25.0 and 2.26.0.

Workflow 2.27 keeps the 2.21 support floors and the embedded worker protocol 1.22, and adds no database migration. Changes to check before upgrading:

  • From 2.27, an embedded app repairs and runs work only in its own namespaces. If the app starts, schedules or signals workflows in namespaces other than DW_V2_NAMESPACE, list them all in DW_V2_NAMESPACES. A process that serves every namespace sets DW_V2_ALL_NAMESPACES=true. See Which namespaces an app runs.
  • From 2.27, closing a child costs the parent the same work however many siblings it has. See Cost of wide fan-out.

See the 2.27.0 release notes.

Workflow 2.28.0 keeps the 2.21 support floors and the embedded worker protocol 1.22, and adds no database migration. Behavior change to check before upgrading:

  • From 2.28, a run that completes, fails or continues as new cancels the activities and timers it never awaited, such as select() losers, in the same transaction, instead of leaving them running. A late result from such an activity is refused with run_closed. If a workflow needs a loser's effect, await it before returning. See Losers when the run closes.

See the 2.28.0 release notes.

Stability Levels​

Every public surface in Durable Workflow carries exactly one of these stability levels. Levels are explicit; a surface that is not classified is not public.

LevelMeaningWhen breaking changes are allowed
frozenWire-format or persisted shape that must decode the same way for the workflow lifetime. Renaming, removing, or repurposing a field is a protocol break, never a minor change.Only by introducing a parallel primitive with a new type name. The original shape stays decodable indefinitely.
stablePublic surface covered by the platform semver guarantee. Additive changes ship in minor releases.Major release only.
prereleasePublic surface that is feature-complete but still allowed to change before the matching 1.0.0 / 2.0.0 cut.In clearly labelled prerelease versions; called out in release notes.
experimentalPublic-but-unstable surface. May change in any release, including patch releases. Callers must opt in by reading the experimental flag on the surface.Any release; release notes call out the change.

The Workflow PHP package is stricter than this floor for its own @experimental classes, such as the business state-machine API and native child start: they may change in a minor release, but never incompatibly in a patch release. The package's API stability notes list them.

Public Surface Families​

This is the complete list of public surface families. Adding, removing, or re-classifying a family requires a contract change (SurfaceStabilityContract version bump, this page, and the JSON mirror in the same commit).

FamilyStabilityAuthority manifest in /api/cluster/infoWhat it covers
server_apistablecontrol_planeStandalone server HTTP API: control-plane routes, namespace routes, schedule routes, system routes, plus /api/health, /api/ready, /api/cluster/info. Per-route version is governed by control_plane.request_contract and control_plane.response.contract. The top-level server version is build identity, not the client compatibility authority.
worker_protocolstableworker_protocolWorker-plane HTTP API used by external SDK workers to register, poll, heartbeat, manage worker-session leases, complete, and fail workflow, activity, and query tasks. Includes the worker_sessions and local_activities runtime contracts, external_execution_surface_contract, external_executor_config_contract, invocable_carrier_contract, external_task_input_contract, and external_task_result_contract.
cli_jsonstablen/a (see CLI reference)The --output=json and --output=jsonl shapes emitted by dw. JSON exit codes and JSON field names are the durable surface; the human-readable --output=table form is documentation, not contract.
waterline_apistablen/a (see Waterline operator API)Waterline observability HTTP API at /waterline/api/v2/*, the engine-source contract, and the dashboard JSON shapes. Waterline must match the workflow package major version.
mcp_discovery_resultsstablen/a (see MCP workflows page)The /mcp/* Model Context Protocol surfaces and the llms.txt / llms-2.0.txt discovery files. MCP tool names, parameter schemas, and payload_preview_limit_bytes semantics are part of the contract; tool descriptions and discovery hints are diagnostic.
official_sdksstableclient_compatibilityThe first-party SDKs: PHP durable-workflow/sdk, the durable_workflow Python SDK, and the durable-workflow Rust SDK. The dw CLI is the official command client. Each SDK's public surface is governed by its own per-package stability document, which must defer to this page.
history_event_wire_formatsfrozenn/a (frozen shapes; see workflow docs/api-stability.md)The persisted shape of every row in workflow_history_events and workflow_schedule_history_events. Once a workflow writes an event, every future SDK that replays it must decode the same field set.
cluster_info_manifestsstablesurface_stability_contract, client_compatibility, control_plane, worker_protocol, auth_composition_contract, coordination_healthThe protocol manifests published by GET /api/cluster/info itself. Each nested manifest carries its own schema and version and evolves under its own contract rules. The envelope keys are stable.

Per-package stability documents​

These documents add per-package detail under the rules on this page:

  • durable-workflow/workflow (PHP) — docs/api-stability.md. Authoritative for the PHP authoring API, the Support\* server-facing classes, and the frozen history-event wire-format tables.
  • durable-workflow/sdk (PHP) — README.md. Authoritative for the framework-neutral remote client and worker API distributed from Packagist.
  • durable-workflow/server — README.md and docs/contracts/*. Authoritative for the standalone server's request/response contracts.
  • dw CLI — /docs/polyglot/cli-reference. Authoritative for the JSON output shapes and exit codes.
  • Python SDK — README.md in durable-workflow/sdk-python. Authoritative for the durable_workflow package public API.
  • Rust SDK — README.md and [package.metadata.durable-workflow] in durable-workflow/sdk-rust. Authoritative for the durable-workflow crate public API and its package compatibility declaration.

Release Rules​

These rules apply to every public surface family above. They are reproduced in the JSON mirror under release_rules.

Patch releases​

Allowed:

  • bug fixes that preserve the documented contract
  • documentation fixes
  • dependency bumps that do not change the public surface
  • changes to surfaces marked experimental

Forbidden:

  • removing or renaming any stable or frozen field, route, command, or class
  • narrowing accepted input on any stable route or command
  • changing the meaning of an existing stable field

Minor releases​

Allowed:

  • adding new fields, routes, commands, or classes to a stable surface
  • adding new optional parameters with safe defaults
  • adding new capability flags to discovery responses
  • promoting a prerelease or experimental surface to stable

Forbidden:

  • removing or renaming any stable or frozen field, route, command, or class
  • changing the meaning of an existing stable or frozen field

Major releases​

Allowed:

  • removing, renaming, or narrowing a stable surface
  • increasing the required control_plane.version or worker_protocol.version
  • dropping a previously supported SDK or CLI version range

Required:

  • announce in release notes at least one minor release before cutting the major
  • where feasible, ship the new surface alongside the old surface in a previous minor release so callers can migrate before the major
  • document the migration path on the migration guide before publish

Diagnostic-Only Versus Guaranteed Fields​

Every field in every stable or frozen surface is either guaranteed or diagnostic-only. The two have different change rules:

  • Guaranteed fields are part of the documented contract. Producers must keep emitting them in the documented shape; consumers may rely on their presence and meaning. Removing or renaming a guaranteed field on a stable surface is a major change.
  • Diagnostic-only fields are emitted for human triage, debugging, and observability. They may be added, renamed, or removed in any minor release. They must be marked diagnostic_only: true (or the doc-page equivalent) wherever they are documented. Consumers must not parse, persist, or branch on diagnostic fields in production decision logic.

Unknown additive fields on a stable or frozen shape must be ignored by older consumers (forward compatibility). Unknown required fields must fail closed. SDKs and CLIs publish their own forward-compatibility behavior in their per-package stability documents.

Compatibility Matrix​

This is the operational compatibility matrix. It records which client versions are validated against which server protocol manifests. Components validate the matrix at runtime via GET /api/cluster/info and fail closed when the manifests do not agree.

Last qualified reproducible tuple​

The table shows the reviewed stable combination selected for these docs from stable-releases.json. Each component is versioned independently. A compatible combination can therefore contain different package versions. Release and qualification reports retain the exact versions and image digests used for each completed check.

ComponentSupported versionInstall identity
Server3.31.2durableworkflow/server:3.31.2
Helm chart5.8.0oci://ghcr.io/durable-workflow/charts/durable-workflow --version 5.8.0
CLI2.13.0VERSION=2.13.0
Workflow engine2.42.0durable-workflow/workflow:2.42.0
Waterline operator2.23.0durable-workflow/waterline:2.23.0
PHP SDK3.33.0durable-workflow/sdk:3.33.0
Python SDK2.24.0durable-workflow==2.24.0
Rust SDK4.25.0durable-workflow = "=4.25.0"

The selected Server is the native 3.x Server. PHP Server 2.x is frozen at 2.11.8 and receives no further releases; existing PHP installations can move to native with upgrade-takeover by following the native takeover runbook. Takeover is qualified on the published 3.0.4 image within the runbook's stated scope; it is one-way and backup-first.

PHP Server 2.11.8 remains unpatched for the November Laravel advisories. Existing pinned deployments must follow the conditional exposure and retirement actions; the historical takeover evidence retains its original limits.

The Helm chart's recorded appVersion is 3.31.2, matching the selected Server, and the chart runs the native Server by default. Its published release receipt records the chart release run, OCI/package digests, source identity, and a kind install in that run; it is not a production cluster qualification. See chart selection and upgrades before installing or overriding the image.

PyPI renders the Python distribution version as 2.24.0; the documented PEP 440 install spelling 2.24.0 resolves to that same release. This normalization does not create a second supported version.

The selected combination advances after affected consumers are qualified. The published Server registries and generated quickstarts use the selected artifacts. Packages can release independently, with compatibility verified through their protocol manifests, capabilities and consumer checks.

Earlier alpha and beta artifacts are historical. They are not alternative onboarding choices, and release history remains intact.

Each stable component follows semantic versioning. Additive capabilities can ship in compatible releases; breaking public changes require a major release. Use runtime discovery to check the capabilities available in your installed Server and workers before enabling a feature.

Runtime protocol compatibility​

Top-level package versions select the supported train. Runtime protocol manifests provide a second, fail-closed check:

ClientProduct trainControl planeDefault worker registration protocol
CLI2.13.02n/a
PHP SDK3.33.021.20
Python SDK2.24.021.20
Rust SDK4.25.021.20

The SDKs also support explicitly selecting worker protocol 1.19 for a compatible older Server. Cooperative cancellation requires 1.20; selecting 1.19 does not provide that capability. Individual operations can use their documented minimum protocol version, so the registration default is not a claim that every worker request sends 1.20.

The current published Server advertises the worker protocol version shown in the authority-role table above. It accepts request headers from the same major with a minor less than or equal to the advertised minor, then returns the advertised version. Missing or malformed headers, different majors, and worker minors ahead of the server fail closed. The CLI validates control_plane.version: "2".

The server's top-level version is build identity. Clients must use the control_plane, worker_protocol, client_compatibility, and surface_stability_contract manifests returned by GET /api/cluster/info for protocol negotiation.

Workflow and Waterline must use compatible 2.x releases. Runtime discovery and package constraints provide the compatibility boundary after the stable cut.

Runtime validation examples​

The SDKs validate discovery before registering a worker. An incompatible server produces an explicit compatibility error rather than attempting a legacy prerelease path. All worker requests send X-Durable-Workflow-Protocol-Version; control-plane requests send X-Durable-Workflow-Control-Plane-Version: 2.

Before a product train is promoted, release qualification must start from a clean machine, install only the published artifacts named above, and complete the PHP, Python, and Rust conformance paths. Source checkouts and unpublished substitutions do not count as public-artifact evidence.

Stable package metadata and runtime discovery now define the supported 2.x compatibility boundary. Release qualification still installs public artifacts together before publication, while patch and minor releases follow the semantic versioning rules below.

Release progression​

Patch releases preserve documented stable contracts. Minor releases may add fields, routes, commands, classes, or optional parameters with safe defaults. Breaking stable changes require a major release and a documented migration path. Frozen history-event shapes remain decodable indefinitely; a new shape uses a parallel primitive rather than mutating an existing event.

Every release must keep package metadata, release notes, installation commands, and cross-language examples synchronized.

Release review checklist​

  • Confirm the machine-readable compatibility contract matches the Workflow surface-stability manifest.
  • Confirm every selected SDK version passes against the selected Server.
  • Confirm installation examples use the stable release channel.
  • Confirm package metadata identifies the exact SDK release and protocol versions; record later Server qualification in the compatibility evidence.
  • Confirm clean-machine published-artifact conformance passes for PHP, Python, and Rust.
  • Confirm release notes describe post-baseline additions and do not present older prereleases as supported choices.

See Also​