Public developments and original analysis · Announcement date: · Sources
Imagine a contract operations team with two ways to start a check. An account manager clicks a button to inspect attachments they can access. A month-end schedule checks a shared list for missing items. Both routes read records, but they should see different sets of material. If a maintainer extracts the common lookup into a child workflow, code that worked from the account manager's screen may also complete when launched from another entry point. The question is whose access the lookup used.

Mistral released the Python Workflows SDK v4 on December 3. It provides explicit execution identity for clients and connectors and changes worker configuration, deployment names and scheduling settings. Version 3 entered maintenance, with public support due to end in May 2027. The migration guide advises preserving an explicit executor selection where old code required employee credentials. The new automatic option follows the declaration of the current workflow. A workflow marked to act on behalf of a user uses the triggering user. A regular workflow uses the deployment identity. A child follows its own declaration, even if its parent is acting for an employee.
Access for employee requests and schedules
In the contract example, an account manager checking attachments should see the same set they already had permission to read. If a deployment account can reach more, the attachment step should still require the employee's identity. When the user cannot access a file, record the failure and stop that lookup. The scheduled month-end check may need only status, due dates and owners. A restricted deployment identity can be appropriate there, scoped to a workspace, view or data service. If it also needs to send a reminder, the open item and a ticket link can be enough. The reminder need not carry the restricted attachment.
A shared child workflow can still reduce maintenance. If the two entry points need different sets of information, each parent can obtain only the fields it needs under its own identity and pass them to the shared formatter. If the child itself must read records, explicitly configure identity and scope for each route. Mistral documents that on-behalf-of mode requires a hardened deployment. In that mode, automatic or executor identity raises an error for runs with no triggering user. Preserve that result. It identifies a workflow that does not belong on a schedule and lets the maintainer design a separate route for unattended work.
Check identity as well as the final output. Two employees seeing the right files says little about what the deployment can see. One correct attachment does not show that an unauthorized lookup would be denied. Use synthetic documents, two test employees with different permissions and a deployment account with a narrow scope. Cover allowed and denied lookups, a schedule with no user and the child-workflow path. Check the identity per step, whether the restricted document stays blocked and whether the eventual ticket contains only the fields it needs. Record the identity category and business object reference without putting credentials or restricted content into the log.
What to compare during migration
Start with existing steps that call other systems. Write down the current identity and dataset, then compare them with the upgraded run. A pure formatting step has no external account to change. A step that reads a private attachment or sends a notification deserves attention earlier. The v4 worker can also choose which event categories it emits. Confirm that the new configuration preserves enough information to explain a denial, a referral and a recovery. If a migration changes a Studio schedule as well, compare results in an isolated environment and check that only one schedule is active after the switch. Two schedules can send the same batch of messages twice.
A read-only task with fixed access may still be simpler as a small scheduled program with a dedicated account. Separating identities is especially worthwhile when one business process combines occasional employee requests with unattended jobs. A successful migration should leave access records and outcomes for each route. One correct-looking output cannot tell the team which access boundary the run used.
Sources
- Mistral · Workflows SDK v4
Source published: · Accessed:
- Mistral · Migration from SDK v3 to v4
Accessed:
- Mistral · On-behalf-of workflows
Accessed:
- Cloud Changelog · Workflows v4 release
Source published: · Accessed:
Mokyun Editorial · neo@mokyun.com
