Workflow guides
Why workflow versions should be immutable
Keep the instructions behind each run traceable. Review workflow snapshots, provider dependencies, release tests, and recovery without rewriting history.

A customer received a follow-up call yesterday. Today, someone edits the workflow’s message and shortens its delay. When you investigate the call, the editor now shows instructions that did not produce it.
An immutable workflow version preserves the instructions associated with an execution. It makes a practical question answerable: what was this run supposed to do? That record matters when a customer reports repeated outreach, a release behaves unexpectedly, or a team needs to recover an earlier configuration.
The useful standard is specific: identify the version, preserve the accepted configuration and inputs, and know which dependencies can still change outside that record.
Separate the workflow, its version, and each run
These identifiers answer different questions:
- Workflow identity: which configured process was requested?
- Workflow version: which release of that process was accepted?
- Run ID: which individual execution are we investigating?
A workflow can produce many runs from the same version. A new release changes the configuration available to subsequent runs; it should not rewrite the evidence attached to earlier ones. A readable workflow name helps people navigate, but it is not sufficient to identify the configuration that ran.
Tremi’s run API exposes this distinction through id, strategy, and strategy_version. This illustrative response excerpt contains only those identity fields:
{
"id": "00000000-0000-4000-8000-000000000001",
"strategy": "00000000-0000-4000-8000-000000000002",
"strategy_version": 7
}
Store the returned run ID with your originating business event. Record the returned version rather than inferring it from whichever version the editor displays later.
The general release pattern is established elsewhere too: AWS Step Functions versions are numbered snapshots that cannot be edited. Updating a definition and publishing another version preserves the distinction between releases. Each product still has its own rules for selecting a version when execution starts.
Know what the accepted run preserves
Tremi records a run’s workflow version together with snapshots of its configuration, normalized inputs, and resolved execution plan. These are retained execution values rather than a fresh reading of today’s draft whenever someone inspects the run.
That gives an investigation useful starting points:
- Which steps and completion conditions were configured?
- Which declared input values were accepted?
- Which destinations, sender choices, and provider references were resolved?
- Which timing rules applied to the planned outreach?
A saved draft is working material. Publishing promotes reviewed configuration; merely saving an edit does not establish that new runs use it. Likewise, a pending publication should not be treated as a completed release until its outcome is confirmed.
Preserve the accepted input values instead of reconstructing them from a CRM record that has since changed. Keep access to those records appropriate to the data they contain. An audit trail does not require copying raw customer information into every log, spreadsheet, or support message.
Check provider versions as a separate dependency
A frozen workflow can still refer to something mutable. An agent ID, a sender configuration, a template, or a label such as “production” may resolve differently after a change in another system.
Tremi’s recorded configuration and selected dependency revisions do not freeze an entire third-party account. Inspect how each integration selects its resources, including whether it uses an explicit version or a moving selector. Keep the actual provider identifiers returned for the operation when available.
Retell’s create-call API, for example, accepts agent-version selectors and returns an agent_version on the call. A selector such as latest_published describes how to choose a version; the returned version identifies what the call used. Verify that the integration preserves the evidence you need.
External business data is another dependency. Two runs using the same workflow version can encounter different appointment availability or order status. Record the relevant result and time of a lookup where your integration supports it. Do not assume a configuration snapshot reproduces the past state of a connected app or guarantees an identical AI conversation.
Review a release against work already in progress
Consider a fictional service-business workflow. Version 7 sends a text, then allows a call after thirty minutes. A draft for version 8 changes the delay to ten minutes and adds an email step.
A useful release review follows the work across that change:
- Create a controlled run under version 7 and retain its ID and accepted configuration.
- Save and review the proposed version 8 changes, including timing, channel permissions, reply handling, and the new email dependency.
- Test the intended behavior and record which saved configuration the test actually used. The newest text visible in an editor is not proof of the tested version.
- Publish the reviewed candidate and confirm the publication succeeded. With the workflow enabled, create another controlled run and inspect its returned version.
- Check that the earlier run still has version 7’s accepted instructions while the new run has version 8’s. Review both the configuration and the resulting attempts.
These are acceptance checks for your configured workflow, not a report of a customer deployment. Tests that dispatch through real providers can contact recipients and incur charges; begin with offline checks and use controlled destinations for delivery tests.
A successful single-step test is useful evidence for that step. It does not establish that the full sequence, reply handling, completion conditions, and connected-app updates work together.
Restore earlier content through a new release
Suppose version 8’s new sequence is unsuitable. Recovering version 7’s content should produce a reviewed version 9, preserving the history of what changed and when. Tremi’s configuration publication model supports restoring historical content into a new candidate and publishing it forward.
Review dependencies again before releasing restored content. A previously valid sender, connection, or agent selection may no longer be available. Restoring text does not prove the old environment still exists.
The new release also does not undo actions already taken by version 8. Decide separately what to do with affected active runs: let them finish, request cancellation where appropriate, or review them before further outreach. Preserve their original version and the operational decision that followed it. An accepted call or delivered message cannot be undone by changing the workflow.
Keep the API request history in this review. Tremi includes the current workflow version when comparing run-creation requests for idempotent recovery. Publishing between two attempts can produce a conflict even with unchanged input values. The idempotency guide explains how to investigate that without creating duplicate outreach.
Let execution respond to new information
Freezing instructions does not freeze reality. Runs still receive replies, accumulate provider evidence, and change state. A customer may book through another route or ask the business to stop contacting them.
Define how those events reach the correct run and which configured rules stop, pause, or continue work. Versioning alone does not connect an external booking system or implement an opt-out policy. The stop-conditions guide covers those decisions.
Keep operational changes in the run’s history alongside the accepted configuration. A late callback belongs to the attempt it describes, even if a newer workflow version now exists. Current editor settings should not relabel that earlier attempt as though it came from the new release.
Use a release checklist that produces evidence
Before relying on a versioned workflow, verify these cases with controlled examples:
- Saving an unpublished edit leaves the published behavior distinguishable from the draft.
- A run accepted before publication retains its configuration after the release.
- A run accepted after confirmed publication records the intended new version.
- A provider-side change can be investigated using the retained selection and actual operation evidence, rather than the workflow name alone.
- Restoring earlier content creates a later release without rewriting previous runs.
- Cancellation, replies, and late callbacks remain associated with the correct execution.
Start incident review with the run ID, accepted version, inputs, and attempt evidence. Then compare those facts with the change being investigated. Use the API integration guide to carry that identity through your application, and the build-or-buy guide to decide who owns release and recovery work.