Free forever, no credit card.Get Started for Free →
← All posts
November 29, 2026 · 5 min read

Does StackStorm Remember Between Runs? Its Datastore Keeps the Values. Your AI Actions Still Start Without the Last Run's Reasoning.

Does StackStorm Remember Between Runs? Its Datastore Keeps the Values. Your AI Actions Still Start Without the Last Run's Reasoning. StackStorm remembers between runs, but only the parts someone deliberately saved. StackStorm is an event-driven automation platform: sensors watch for events, rules match those events against conditions, and actions or workflows run in response. A disk fills up, a rule fires, a remediation workflow runs. Tomorrow the same event fires again, and the platform has to

Does StackStorm Remember Between Runs? Its Datastore Keeps the Values. Your AI Actions Still Start Without the Last Run's Reasoning.

StackStorm remembers between runs, but only the parts someone deliberately saved. StackStorm is an event-driven automation platform: sensors watch for events, rules match those events against conditions, and actions or workflows run in response. A disk fills up, a rule fires, a remediation workflow runs. Tomorrow the same event fires again, and the platform has to decide what it actually knows from yesterday. The answer splits into three layers, and only one of them is real, reusable memory.

Layer one: the datastore, the memory StackStorm gives you on purpose

StackStorm ships a datastore service built for exactly this question. It stores key-value pairs that sensors, actions, and rules can read and write, through the CLI, the Python client, or template references inside definitions. The everyday commands are simple:

st2 key set last_backup_status success
st2 key list

Inside an action or workflow definition, a stored value comes back with a template reference such as {{st2kv.system.last_backup_status}}. By default, keys live in the system scope, readable by every user. Keys can carry a TTL so stale values expire on their own, and values marked as secrets are stored encrypted.

This is genuine persistence. The datastore contents are held in MongoDB alongside StackStorm's operational data, so a value set by one execution is still there for the next one, next week, or after a restart. A remediation workflow can record which host it already restarted, a sensor can keep a cursor for the log it polls, and a rule can read a threshold instead of hard-coding it into YAML.

The shape of that memory is a string

The datastore has a strict shape, and the shape decides what it is good at. Every value is stored as a string. Numbers go in as text and come back as text. Objects and arrays only fit if the action serializes them to JSON first and deserializes them on the way out. There is no structure, no index, and no search: a key returns exactly the value stored under that key, nothing more.

That makes the datastore a settings drawer, not a notebook. It holds endpoints, counters, flags, and cursors well. It holds the story of a run badly. A workflow that wants to remember why it escalated an alert, which three hypotheses it already ruled out, or what the on-call engineer replied in chat has nowhere natural to put any of that. It can flatten the story into a JSON string under one key, but then the next run has to know that key exists, parse the blob, and decide what inside it matters. The remembering becomes a second automation project of its own.

One scoping detail matters for scheduled and event-driven work. User-scoped keys exist, but the user scope is only available when actions and workflows are run manually. Work kicked off by rules, which is most production StackStorm work, has no user scope to read from. Anything a rule-triggered workflow needs has to live in the system scope, shared with everyone.

Layer two: execution history remembers for you, not for the workflow

StackStorm also records every execution: which action ran, with what parameters, what it returned, and whether it succeeded. That history lives in MongoDB too, and it is excellent for audits, debugging, and proving what happened during an incident.

But history is written for humans looking backward, not for workflows looking forward. The next run does not open the previous execution, read its reasoning, and continue from it. A rule fires, a fresh execution starts, and the only past it can see is whatever someone copied into the datastore or passed in as a parameter. The record of yesterday's run and the memory of yesterday's run are different things, and StackStorm only gives the automation the first one automatically.

Layer three: the AI step starts blank either way

This is where the gap shows up for teams adding AI actions to StackStorm packs. An action that calls a model to triage an alert, summarize an incident, or draft a remediation plan receives its inputs fresh each time. The datastore can hand it a handful of string values. The execution history could, with custom code, be queried through the API and pasted into a prompt. Nothing in the platform assembles the relevant past, the earlier incidents on this service, the decisions already made, the corrections a human gave last time, and presents it to the model as context.

So the pattern repeats across runs. The AI action re-derives conclusions it reached yesterday. It asks for information the team already provided. It suggests a fix that was tried and rejected, because the rejection lives in a closed execution record instead of in memory the next run can use. The platform remembered the values. The reasoning was never stored anywhere the next run reads.

The fix: give every run the same shared memory

The pattern that works is to stop treating the platform's storage as the agent's memory and give the runs a memory layer built for context instead. Vilix AI is a cloud-hosted memory service for AI tools and agents, reached over MCP, the open protocol for connecting models to external context. There is no infrastructure to run: no database to provision, no store to back up, no serialization format to invent. A StackStorm action, a scheduled job in another tool, and an assistant on a laptop can all read and write the same memory, because the memory lives outside any single platform.

What gets stored is also different in kind. Vilix AI keeps full conversation history, not just extracted facts or final values, so the next run inherits the reasoning, the rejected options, and the human corrections, not only the outcome. When a run starts, it retrieves the relevant past before acting, and when it finishes, it saves what it learned for the run after it. The free plan is free forever, the Pro plan starts with a 7-day trial and no card, and the memory can be exported or deleted at any time, so the shared past stays under the team's control.

StackStorm's datastore is the right tool for thresholds, cursors, and flags, and its execution history is the right tool for audits. Neither was designed to hand an AI step its past. Add a memory layer that was, and the run that fires tomorrow starts from everything the runs before it learned. Start at vilix.ai.

Get Started for Free

Persistent memory across ChatGPT, Claude, and the AI tools you already use in Vilix AI.

Get Started for Free

Free forever, no credit card.

Keep reading
Does Azkaban Remember Between Runs? The History Is Kept. The Reasoning Is Not.

Does Azkaban Remember Between Runs? The History Is Kept. The Reasoning Is Not. Azkaban remembers that a flow ran, when it ran, whether it succeeded, and what it printed to its logs. It does not remember what the work inside the flow learned. Each new execution starts from the project files, the schedule, and whatever parameters are handed in at launch. If a step inside that flow is an AI agent, the agent wakes up with a job definition and no past: none of the findings, decisions, or open questi

Does Apache Ignite Remember Between Runs? The Grid Holds Data. The Agent Starts Empty.

Does Apache Ignite Remember Between Runs? The Grid Holds Data. The Agent Starts Empty. Apache Ignite remembers the data placed in its caches, and with one optional setting it remembers that data across a full cluster restart. Without that setting it remembers nothing once the cluster stops. Either way, what Ignite holds is current data under keys and in tables. It does not hold a run: what a scheduled AI agent checked, concluded, or promised to do next. An automation that wakes tomorrow can que

Does Hazelcast Remember Between Runs? The Map Holds Values. The Agent Starts Empty.

Does Hazelcast Remember Between Runs? The Map Holds Values. The Agent Starts Empty. Hazelcast remembers exactly what its data structures were told to hold, for exactly as long as the cluster, a backup, or an optional persistence layer keeps them alive. An IMap entry put by one process can be read by another process seconds or days later, as long as the cluster stays up or the entry was written through to an external store. What Hazelcast never holds is a run. It stores current values under keys