A workflow in Sommatic AI is a sequence of steps: receive an email, sort it with artificial intelligence, query a system, ask for an approval, reply. This month we changed how those steps run under the hood.
What changed
Before, steps ran as functions inside the same process. Now each step runs as a supervised process, with an explicit lifecycle:
- It is created, inactive and with a unique identifier.
- It is activated with what it needs: the input data, the step’s configuration, and the state of the flow.
- It returns its result in a standard format: whether it succeeded, what data it produces, and which output the flow should follow.
- It is stopped and its resources are released.
If a step fails, the failure stays contained in that step. The flow knows exactly where it happened, with what data, and why, and it can continue through its error output instead of failing entirely.
Why it matters
- Flows that resume: the state of the flow is saved after every step. If something is interrupted, it resumes from the last completed step, not from the beginning.
- Clear limits: each run has a ceiling of steps per cycle, so a design mistake never turns into an endless loop.
- Isolation when needed: heavier steps can run in separate threads without slowing the rest.
- Visibility while testing: while someone tests a flow, every step reports in real time when it starts, what it produces, and when it ends.
A flow that cannot be explained step by step should not run in production.
What did not change
Existing flows keep working the same way. The names of each type of step, their configuration, and their outputs stay the same. The change is underneath, in how they run and are supervised.
What comes next
On this foundation we are adding new types of steps to connect more systems, and better tools to see the history of each run. All with the same principle: deterministic execution, reconstructable step by step, that works even without artificial intelligence when a rule is enough.