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

Does Consul Remember Between Runs? It Keeps the Latest Value. It Drops the Story Behind It.

Does Consul Remember Between Runs? It Keeps the Latest Value. It Drops the Story Behind It. Consul remembers between runs by design, and that is exactly why its limits are worth understanding. HashiCorp Consul is a service networking tool: agents run across a fleet, servers hold the shared state, and automations lean on two of its stores every day. The service catalog tracks which nodes exist, which services run on them, and whether those services pass their health checks. The key/value store h

Does Consul Remember Between Runs? It Keeps the Latest Value. It Drops the Story Behind It.

Consul remembers between runs by design, and that is exactly why its limits are worth understanding. HashiCorp Consul is a service networking tool: agents run across a fleet, servers hold the shared state, and automations lean on two of its stores every day. The service catalog tracks which nodes exist, which services run on them, and whether those services pass their health checks. The key/value store holds configuration and coordination data that scripts, templates, and scheduled jobs read at the start of a run and update at the end. A tool built to be the fleet's shared memory clearly carries something forward between runs. The useful question is what shape that memory takes, because Consul keeps four kinds of state, and all four store the present far better than the past.

Piece one: server state is replicated, durable, and built to survive

Consul servers agree on state through the Raft consensus protocol, and every server keeps a copy. That state lives in the agent's data directory, which HashiCorp documents as required for every agent and durable across reboots, with server state called out as especially critical to persist. Restart a server and it rejoins with its catalog and key/value data intact. Lose a server entirely and the remaining servers still hold the same record, because each write was committed across the cluster before it counted. The snapshot command adds a point-in-time copy of that state, restorable on demand. As infrastructure memory goes, this layer is serious: replicated while running, persisted on disk, and backed up on a schedule an operator controls.

Piece two: the catalog remembers what exists right now

The catalog is Consul's picture of the fleet. Agents register services and health checks locally, and anti-entropy keeps the agent's local registrations in sync with the servers' catalog, so the catalog converges on reality without anyone re-entering it. A scheduled job can ask the catalog where a service lives and whether it is healthy, and the answer reflects the current fleet rather than last week's spreadsheet. The catalog is also deliberately present-tense. When a service deregisters or a check starts failing, the catalog updates to match. It answers "what is true now" with real discipline, and it keeps no diary of what was true during last Tuesday's incident or which node hosted a workload before a reschedule moved it.

Piece three: the KV store keeps the latest value, with an index instead of a history

The key/value store is where automations most often try to build run-to-run memory. A job writes a key at the end of a run, and the next run reads it back. Each datacenter has its own store, values are capped at 512 KB, and every entry carries a CreateIndex showing when it was created and a ModifyIndex showing the last index that changed it. Check-and-set writes use that ModifyIndex to prevent two runs from overwriting each other blindly, and blocking queries let a watcher wait on an index and wake the moment a key changes. Sessions layered on keys provide distributed locks, so one run at a time can hold a critical section.

Notice what that design stores: the current value, plus counters describing its freshness. A write replaces the previous value. The ModifyIndex climbs, but the earlier contents are gone, and no read returns them. The store can prove a value changed. It cannot show what the value said before or what reasoning produced it. An operator who needs yesterday's state has to build that archive somewhere else, one export or snapshot at a time.

Piece four: watches react to change without remembering it

Consul watches and blocking queries give automations reflexes. A template tool can watch a prefix, render new configuration when a key changes, and restart a service with fresh settings, all within moments of the write. That reactivity is real memory of a narrow kind: the system responds to the newest state everywhere at once. It is still not a record. A watch delivers the new value, not the sequence that led there, and a run that starts after three rapid changes sees only the final one. The intermediate steps, which often contain the actual story of an incident, pass through without being kept.

Where an AI agent step fits into this picture

Add an AI agent step to a scheduled automation that reads Consul, and the pattern sharpens. The agent can read the catalog to find healthy services, pull configuration and checkpoint keys from the KV store, and take a lock before doing risky work. What it cannot pull is the previous run's reasoning: which endpoints were already checked, which alert turned out to be noise, which change was tried and rolled back. If the last run summarized its findings into a KV value, the agent gets that summary, capped at 512 KB and overwritten by the next run in turn. If it did not, the run starts from current values and current health, with the judgment of every earlier run simply absent. Operators end up encoding the story into key names and JSON blobs, maintaining a hand-built journal inside a store designed for configuration.

Give the agent a memory built to keep the story

The fix is to keep agent memory in a layer designed for history rather than current state. Vilix AI is a cloud-hosted memory layer for AI tools, reached over MCP, the Model Context Protocol. There is zero infrastructure to run: no servers to raft together, no data directory to protect, no snapshot schedule to maintain. The scheduled job calls the same memory on every run, and the same memory is reachable from the other tools in the stack, so an automation, a chat session, and a coding assistant all read one shared past.

What gets stored matters as much as where. Vilix AI keeps full conversation history, not just extracted facts and not just the latest value, so the next run can read what the agent actually said, what it was told, and how a decision was reached. Where a KV entry shows the newest checkpoint and an index, the history shows the road that led to the checkpoint, including the dead ends that explain why the current value looks the way it does.

Getting started is deliberately light. The free plan is free forever, and the Pro plan offers a 7-day trial with no card required. Memory stays under the operator's control, with export and delete available anytime, so the shared past can be inspected, moved, or removed on demand. Consul keeps holding the fleet's current truth, while the agent's reasoning stops depending on whatever fit into the last KV write.

Consul's memory is coherent on its own terms: replicated state, a present-tense catalog, a latest-value store, and fast reactions to change. None of those layers was built to carry what an agent learned from one run to the next. Put that learning in a memory layer built for it, and the next run starts from the full story instead of the final value alone.

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