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 Softr Remember Between Runs?

Does Softr Remember Between Runs? No. A Softr workflow or scheduled agent remembers nothing from one run to the next on its own. Inside a single run, workflow variables carry data from step to step, and an app agent remembers details about a user during that conversation. Between runs, the only things that survive are what you wrote into a database record, and the run log Softr keeps for you to read. What does a Softr workflow remember inside one run? Quite a lot, while the run is alive. Var

Does Promtail Remember Between Runs? Its Positions File Resumes the Log. Nothing Resumes the Reasoning.

Does Promtail Remember Between Runs? Its Positions File Resumes the Log. Nothing Resumes the Reasoning. Promtail is the agent that ships local logs to Grafana Loki. It tails files, reads the systemd journal, discovers container logs, runs each line through pipeline stages, and pushes batches to Loki. It also restarts constantly in real deployments: config reloads, package upgrades, container recreations, host reboots. So the practical question matters. What does Promtail still know when it come

Markdown Files Are Everyone's Agent Memory Now. Here's Where They Break.

Markdown Files Are Everyone's Agent Memory Now. Here's Where They Break. Ask a room of people who run coding agents how their agent remembers anything between sessions, and you will hear the same answer in different fonts. A CLAUDE.md. A PLAN.md. A notes file in the repo. Somebody always says some version of: it's just markdown, it works, why would I pay for anything else. They are not wrong. That is exactly why the pattern won. A text file needs no account, no API key, no migration. It sits i