Does Pulumi Remember Between Runs? Yes, in a Checkpoint. It Just Never Checks Whether the Checkpoint Is Still True.
Does Pulumi Remember Between Runs? Yes, in a Checkpoint. It Just Never Checks Whether the Checkpoint Is Still True. Pulumi remembers between runs, and it remembers in exactly one place: a state file called the checkpoint. Pulumi is an infrastructure as code tool, which means you describe cloud resources, networks, buckets, clusters, databases, in a general-purpose programming language such as TypeScript, Python, Go, C#, or Java, and Pulumi builds what you described. To know what it built last t
Does Pulumi Remember Between Runs? Yes, in a Checkpoint. It Just Never Checks Whether the Checkpoint Is Still True.
Pulumi remembers between runs, and it remembers in exactly one place: a state file called the checkpoint. Pulumi is an infrastructure as code tool, which means you describe cloud resources, networks, buckets, clusters, databases, in a general-purpose programming language such as TypeScript, Python, Go, C#, or Java, and Pulumi builds what you described. To know what it built last time, what to change, and what to delete, it keeps a ledger. Understanding that ledger, where it lives, what is written in it, and what never gets written in it, explains almost every confusing Pulumi moment.
The checkpoint: one ledger per stack
Every Pulumi stack, a named, isolated instance of a program such as dev, staging, or prod, has its own state. The checkpoint is a JSON document listing every resource Pulumi manages for that stack: each resource's URN, the stable identifier that ties a resource in your code to a resource in the ledger, its type, the properties it ended up with, its dependencies on other resources, and the stack's exported outputs. Secrets are stored encrypted rather than as plain text.
When you run pulumi up, the engine executes your program to build the desired state, reads the checkpoint to get the last recorded state, and diffs the two. Resources in the program but not in the ledger get created. Resources in both, with different properties, get updated. Resources in the ledger that have left the program get destroyed. When the run finishes, the new reality is written back as the updated checkpoint. Delete the checkpoint and Pulumi forgets the stack entirely: the cloud resources still exist, but nothing connects them to your program anymore, which is why state files are backed up and guarded like production data.
Where the memory lives: the backend
The checkpoint lives in a backend you choose with pulumi login. The default is Pulumi Cloud, Pulumi's hosted service, which stores state and adds locking, so two updates cannot run over each other, plus a history of past updates. The alternative is a self-managed backend in storage you already own: a local directory over file://, an Amazon S3 bucket, Azure Blob Storage, or Google Cloud Storage. The commands and behavior are the same either way. Only the address of the ledger changes.
Each stack also keeps its configuration in a Pulumi..yaml file beside the shared Pulumi.yaml project file. That config, values such as region, instance size, or replica count, is the other half of what a run knows when it starts: the program says what should exist in general, the config fills in the per-stack specifics, and the checkpoint says what existed last time.
The catch: pulumi up never asks the cloud
Here is the part that surprises people. A normal pulumi up or pulumi preview does not query your cloud provider to check what actually exists right now. It compares your program against the recorded state and trusts the ledger completely. Pulumi's own documentation gives the reasons plainly: asking every provider about every resource on every run adds serious latency on large stacks, and the program is meant to be the source of truth for intent, with outside changes treated as a decision for you, not something to absorb silently.
The result is that three states are always in play. The desired state is what your program declares. The current state is what the checkpoint says exists. The actual state is what is really running in the cloud. When someone edits a resource by hand in a console, or another tool changes it, actual state moves and the checkpoint does not. That gap is drift, and a plain pulumi up cannot see it, because it never looks.
Refresh: the deliberate act of re-checking reality
Closing the gap is a separate, explicit step. Running pulumi refresh queries each resource's provider, compares the answer with the checkpoint, and writes the real values back into the state file. Adding --preview-only turns it into pure detection: you get the drift as a diff, with nothing modified, and --expect-no-changes makes the command fail outright when drift exists, which is how CI pipelines turn drift into a hard signal. pulumi up --refresh folds the check into the update itself, syncing first and then applying your program against reality instead of against a stale ledger.
So Pulumi's memory is real but narrow and passive. It is an accurate record of what Pulumi itself last did, refreshed only when someone remembers to refresh it. It says nothing about anything that happened outside Pulumi's own runs.
What the checkpoint never records
Notice what kind of thing the checkpoint holds: resources and properties. It does not hold reasons. Why a security group rule was opened, which warning an engineer saw and decided to accept, what an AI coding assistant changed in the program last Tuesday and what it was trying to fix, which of three sizing options the team picked and what the rejected two were: none of that is in the ledger, because the ledger was designed to answer one question, what exists, not the question every second run actually needs, which is why things are the way they are.
That second question is where scheduled automations and AI agents lose their time. An agent asked to adjust a Pulumi program starts by reconstructing intent from code comments, commit messages, and whatever the last session happened to leave behind. The infrastructure has a memory. The work around the infrastructure does not, and every run pays the reconstruction cost again.
That is the gap Vilix AI is built to close. Vilix AI is a cloud-hosted memory layer for AI tools and agents: zero infrastructure to run, and the same memory is available everywhere over MCP, the standard protocol AI tools use to reach outside services. It keeps full conversation history, not just extracted facts, so the reasoning behind a change, the options that were weighed, and the decision that was made are all still there when the next session, in a different tool, on a different day, comes looking. A free plan is available forever, and the Pro plan comes with a 7-day free trial with no card required. Everything stored can be exported or deleted at any time.
Pulumi solved the resource half of remembering: a checkpoint that tells the next run exactly what it built. The other half, remembering the work itself, is the half worth giving your agents next. Start free at vilix.ai and let the next run begin already knowing why.