Article

Mistral Workflows v4 migration checks before May 31, 2027

For teams running Mistral workflows, check platform readiness, permissions, schedules and retries before SDK v3 support ends on May 31, 2027.

Editorial illustration for Mistral Workflows v4 migration checks before May 31, 2027: an arrow connects an old service to its replacement. Not documentary evidence.

Mistral’s December 3, 2026 announcement gives teams running Workflows automations a migration to plan: SDK v3 support ends on May 31, 2027. Check platform compatibility first, then upgrade the worker—the process running your workflow steps—and its Mistral AI plugin together. A private platform without the required event interface should stay on v3 until it is ready.

This is a support deadline, not an announced service shutdown. The v4.0.0 package record dates its upload to November 26; December 3 is the announcement date, not the first availability of the software.

Check the platform before the worker

Running a worker on your own servers does not necessarily mean you run a private Mistral platform. Mistral says hosted Studio supports the v2 event route and token service required by v4. Operators of a privately deployed platform must verify that compatibility separately before changing worker dependencies.

First move to SDK 3.19.0 or a later v3 release and inspect its FutureWarning messages. These expose many upcoming changes while preserving v3 behavior. In a non-production environment, run the v3 worker with EVENTS_API_VERSION=v2-only to check event publishing without the old fallback route. That check is supported from v3.16.0; successful ordinary v3 operation alone does not establish readiness. Remove this setting when moving to v4, which ignores it.

The practical decision is therefore platform first, worker second. If the compatibility check fails, resolve that with the platform operator rather than treating a package upgrade as the fix.

Decide whose permissions each request should use

Authentication changes can alter which account a workflow uses even when it starts successfully. In v4, get_mistral_client() defaults to RunAs.AUTO. Mistral’s identity migration rules distinguish three choices:

  • RunAs.EXECUTOR: use this for calls that must act as the executing user. It replaces use_executor_credentials=True; do not substitute AUTO, which can choose the deployment instead.

  • RunAs.DEPLOYMENT: use this where the deployment’s credentials are intended. It replaces use_executor_credentials=False, including deployment-level calls made outside a workflow.

  • RunAs.AUTO: use the executing user in a workflow declared on_behalf_of=True, otherwise the deployment. It fails without workflow context. In an on-behalf-of workflow, both AUTO and EXECUTOR fail if there is no user, as can happen with a scheduled run.

Review parent and child workflows separately: v4 AUTO follows the running workflow’s own declaration, not its parent’s. Connectors accept auto or deployment, not executor. Also preserve the documented preparation exception: workers using MISTRAL_API_HEADERS should retain use_executor_credentials=should_use_executor_credentials() on v3 until the v4 transition, because an early switch to AUTO on v3 drops those headers.

Make a short inventory of interactive, scheduled and child-workflow calls, recording the identity each should use. For teams also operating Microsoft’s stack, the separate Microsoft Agent Framework shared-workflow migration guide covers its authorization-scope checks; those are not Mistral configuration rules.

Upgrade the packages and name the deployment

The documented dependency upgrade moves the SDK and Mistral AI plugin to major version 4 together:

uv add "mistralai-workflows[mistralai]>=4,<5"

Raise a separately pinned mistralai-workflows-plugins-mistralai to v4 too. Do not apply that version rule to the separate general mistralai API client. SDK 4.0.0’s package metadata requires Python 3.12 or later, below 3.15; review the resolved lockfile before rollout.

Remove the obsolete webhook extra. If you use the evaluations plugin, v3 needs its 0.7.x line, while 0.8.0 and later require v4. Review optional-plugin changes rather than upgrading every dependency indiscriminately.

Set DEPLOYMENT_NAME: v4 workers will not start without it. The old TEMPORAL_TASK_QUEUE setting no longer controls routing. Pass the same deployment_name when executing or scheduling workflows so calls reach the intended deployment, especially when several are active. These are routing changes, not just renamed labels.

Inventory schedules before removing them from code

Remove workflow_display_name, workflow_description and schedules from @workflow.define; manage them through Studio or the relevant APIs instead. Existing names and descriptions remain, and existing Studio schedules keep running. Deleting the decorator argument does not stop a scheduled business task.

Record which stored schedules should continue and deliberately delete unwanted ones through Studio or the schedules API. Check every remaining v3 deployment too: when an old worker registers again, it can still replace its deployment-declared schedules. A mixed-version rollout therefore needs a schedule inventory, not only a code diff.

Make repeated actions safe and keep a compatible rollback path

An activity is a unit of workflow work, such as calling an external service. Under v4’s event-publishing rules, a publish failure can fail the activity; its retry policy can then repeat work completed before the failed publish. Temporary publishing errors retry for up to a minute before activity-level retry rules take over. Oversized events are a documented exception: they are dropped and logged.

Design external actions so repeating them does not duplicate the business effect. For example, where an external service supports it, use a stable operation identifier to recognize a repeated request. Use stable event IDs when consumers need to deduplicate. This is a rollout recommendation, not a claim that retries have occurred in your workload.

There is also a specific rollback limit: after a v4 run manually publishes an event from workflow code, that run must stay on v4 workers until completion. The publish adds execution history that a v3 worker cannot replay. Keeping the old dependency lockfile is therefore insufficient; retain v4 worker capacity for those in-flight runs rather than downgrading them wholesale.

Check dashboards and event consumers as well. v4 emits WORKFLOW and CUSTOM_TASK events by default, but not ACTIVITY events. If consumers need activity events, set EMITTED_EVENT_CATEGORIES=WORKFLOW,CUSTOM_TASK,ACTIVITY; CUSTOM_TASK is required. Consumers must also handle WORKFLOW_EXECUTION_CANCELED for cancellations while waiting on an activity or child workflow, rather than relying on FAILED events.

Verify monitoring and execution before production rollout

Replace OTEL_ENDPOINT with OTEL_TRACES_ENDPOINT, OTEL_METRICS_ENDPOINT and OTEL_LOGS_ENDPOINT as appropriate. The observability documentation says any signal without its own destination still goes to Mistral. Use signal-specific authentication headers for custom collectors. If organizational policy requires no export, OTEL_ENABLED=false disables it; confirm the resulting loss of Studio visibility is intended.

Two less visible configuration changes also deserve review: payload and storage settings now use nested names, such as TEMPORAL_PAYLOAD_ENCRYPTION__MAIN_KEY, and explicit worker-header mappings replace inherited mappings instead of merging them. Compare intended settings without printing secret values. The complete migration reference lists the remaining removed APIs.

Before rollout, use a staging worker to check these outcomes:

  • Interactive, scheduled and parent-child runs use the intended identity and deployment; unwanted schedules are absent.

  • A controlled failure after an external action does not duplicate its business effect, and event consumers recognize the expected activity and cancellation events.

  • Logs, traces and metrics reach only their intended destinations; encryption and storage configuration load correctly.

  • Workflow tests execute on a worker. v4 no longer supports directly calling decorated workflow entrypoints as an inline substitute; use the documented create_test_worker approach where appropriate.

  • The shutdown drain window fits within the hosting platform’s termination grace period, and in-flight runs with v4 manual-publish history retain compatible workers.

Separate migration work from hosting and model costs

The SDK announcement does not establish a v4-specific surcharge or promise unchanged bills. Budget engineering work, infrastructure, model calls and external tools separately; repeated paid operations could add consumption, but no retry rate or cost increase is established.

Moving to Mistral-managed worker hosting is optional, not a migration requirement. Its current access rules require organization-level pay-as-you-go or Enterprise; Pro or Team alone does not qualify. If these workflows call GLM-5.4, the separate Mistral Cloud costs and retention checks address that model’s consumption and data conditions, not an SDK upgrade fee.

Assign the platform check and migration rehearsal now, then schedule production changes before May 31, 2027. For an incompatible private platform, the immediate task is to establish its upgrade path—not to install a worker version it cannot support.