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_contractin the response body ofGET /api/cluster/infoon the standalone Durable Workflow server, schemadurable-workflow.v2.surface-stability.contract, version5.- 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.
| Role | Current marker | Resolver authority |
|---|---|---|
| Current published Server protocol | worker_protocol.version = 1.20 | Unversioned Server-backed mirrors: OpenAPI · AsyncAPI |
| Current Workflow conformance target | Suite 47 targets protocol 1.19 | Versioned, digest-bound fixtures: OpenAPI · AsyncAPI |
| Retained historical conformance bindings | Bindings marked historical for protocols 1.13, 1.15, 1.16, 1.17, 1.18 | Immutable 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 line | PHP | Laravel |
|---|---|---|
| Current embedded Workflow 2.42.0 | PHP 8.2+ in 8.x; PHP 8.3+ for Laravel 13 | ^12.72.0 or ^13.41.0 |
| Embedded Workflow 2.20.5 | PHP ^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.14 | Bare 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.5 | Bare 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
ActivityHeartbeatRecordedevent 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
maxAttemptsbelow 1 fails the run instead of running once. For unlimited attempts, omitmaxAttemptsand set the activity class$triesto 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_29and2026_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, runphp artisan migrateagain. 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()andshouldContinueAsNewAtStep()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
StructuralLimitExceededExceptioninstead ofInvalidArgumentException, and thememo_size_bytesdefault 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 inDW_V2_NAMESPACES. A process that serves every namespace setsDW_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 withrun_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.
| Level | Meaning | When breaking changes are allowed |
|---|---|---|
frozen | Wire-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. |
stable | Public surface covered by the platform semver guarantee. Additive changes ship in minor releases. | Major release only. |
prerelease | Public 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. |
experimental | Public-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).
| Family | Stability | Authority manifest in /api/cluster/info | What it covers |
|---|---|---|---|
server_api | stable | control_plane | Standalone 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_protocol | stable | worker_protocol | Worker-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_json | stable | n/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_api | stable | n/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_results | stable | n/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_sdks | stable | client_compatibility | The 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_formats | frozen | n/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_manifests | stable | surface_stability_contract, client_compatibility, control_plane, worker_protocol, auth_composition_contract, coordination_health | The 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, theSupport\*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.mdanddocs/contracts/*. Authoritative for the standalone server's request/response contracts.dwCLI —/docs/polyglot/cli-reference. Authoritative for the JSON output shapes and exit codes.- Python SDK —
README.mdindurable-workflow/sdk-python. Authoritative for thedurable_workflowpackage public API. - Rust SDK —
README.mdand[package.metadata.durable-workflow]indurable-workflow/sdk-rust. Authoritative for thedurable-workflowcrate 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
stableorfrozenfield, route, command, or class - narrowing accepted input on any
stableroute or command - changing the meaning of an existing
stablefield
Minor releases
Allowed:
- adding new fields, routes, commands, or classes to a
stablesurface - adding new optional parameters with safe defaults
- adding new capability flags to discovery responses
- promoting a
prereleaseorexperimentalsurface tostable
Forbidden:
- removing or renaming any
stableorfrozenfield, route, command, or class - changing the meaning of an existing
stableorfrozenfield
Major releases
Allowed:
- removing, renaming, or narrowing a
stablesurface - increasing the required
control_plane.versionorworker_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
stablesurface 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.
| Component | Supported version | Install identity |
|---|---|---|
| Server | 3.31.2 | durableworkflow/server:3.31.2 |
| Helm chart | 5.8.0 | oci://ghcr.io/durable-workflow/charts/durable-workflow --version 5.8.0 |
| CLI | 2.13.0 | VERSION=2.13.0 |
| Workflow engine | 2.42.0 | durable-workflow/workflow:2.42.0 |
| Waterline operator | 2.23.0 | durable-workflow/waterline:2.23.0 |
| PHP SDK | 3.33.0 | durable-workflow/sdk:3.33.0 |
| Python SDK | 2.24.0 | durable-workflow==2.24.0 |
| Rust SDK | 4.25.0 | durable-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:
| Client | Product train | Control plane | Default worker registration protocol |
|---|---|---|---|
| CLI | 2.13.0 | 2 | n/a |
| PHP SDK | 3.33.0 | 2 | 1.20 |
| Python SDK | 2.24.0 | 2 | 1.20 |
| Rust SDK | 4.25.0 | 2 | 1.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
- Server Setup — Deploying the standalone server
- Server API Reference —
GET /api/cluster/infoand the protocol manifests - PHP SDK — PHP client and worker
- Python SDK — Python client and worker
- Rust SDK — Rust client and worker
- CLI — Command-line interface
- Migration Guide — Migrating from v1 to v2
- PHP workflow
docs/api-stability.md— per-package stability for the PHP workflow package