Skip to content

How the execution strategy for a run is resolved

Every configured step is checked before it is honoured, so an engine that is configured but not available cannot capture the default and strand a run.

The rule

Normative: this is the rule
  1. The strategy for a run MUST be resolved in this order: a run started from a pre-save trigger uses direct synchronous execution; otherwise the strategy configured on the trigger; otherwise the strategy configured for the implementation; otherwise asynchronous.
  2. A configured strategy MUST NOT be accepted unless it validates as usable.
  3. A step that does not validate MUST be skipped in favour of the next.

What it means

The chain runs presave first, unconditionally. Even where a trigger declares asynchronous and the implementation's own default is state graph, a run fired by a presave event still executes synchronously, because the record's save is still in flight and only an in-request pass can observe it before it lands.

What counts as presave is a substring match, not a fixed prefix: any event name that carries .presave anywhere in it qualifies. A differently-prefixed event forces the same synchronous strategy as the conventional one.

Past that first step, each remaining step in the chain is honoured only if it validates as usable — a step naming a strategy the implementation cannot resolve is skipped in favour of the next, so a stale or uninstalled configuration cannot silently capture the default.

Example

A run whose trigger defaults to asynchronous and whose implementation defaults to state graph, fired by two differently-named presave events:

A conventionally-prefixed presave eventsynchronous
"entity.node.presave"
A presave event with an unrelated prefixsynchronous
"flowdrop.custom.presave.something"

Both resolve to the synchronous strategy, ahead of either configured default.

Why

Recorded under OPEN-25.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · ORC-2 · changed in spec 1.0