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

Does dbt Remember Between Runs? The Warehouse Table Does. The Reasoning Does Not.

Does dbt Remember Between Runs? The Warehouse Table Does. The Reasoning Does Not. Ask whether dbt remembers between runs and the honest answer starts with a design choice. dbt is built to be stateless and idempotent. A run does not need to know about any other run. Given the same code and the same raw data, a run produces the same transformed result, whether it is the first run or the thousandth. What looks like memory in a dbt project lives in specific places, and each place keeps a specific t

Does dbt Remember Between Runs? The Warehouse Table Does. The Reasoning Does Not.

Ask whether dbt remembers between runs and the honest answer starts with a design choice. dbt is built to be stateless and idempotent. A run does not need to know about any other run. Given the same code and the same raw data, a run produces the same transformed result, whether it is the first run or the thousandth. What looks like memory in a dbt project lives in specific places, and each place keeps a specific thing. None of them keeps what an AI step concluded while it worked.

The baseline: a stateless run, plus artifacts

Every dbt invocation compiles the project, runs the selected models, and then ends. The process does not stay alive between runs, and it carries no session forward. What a run leaves behind is files and warehouse objects.

The files are the artifacts. The most important is manifest.json, a point-in-time view of the project: every node, its code, its config, and its dependencies. Alongside it, run_results.json records what the last invocation did. Those artifacts become memory only when a later run is pointed at them. Passing a previous manifest with the --state flag lets dbt compare the current project against that earlier state.

That comparison powers two familiar workflows. The state:modified selector builds only the models whose code changed, plus their downstream children, which is the core of slim CI. Deferral lets an unselected upstream model resolve to the production relation recorded in the state manifest instead, so a small test run does not rebuild the whole chain. In both cases the memory is explicit and file-based. Forget to save or pass the manifest, and the next run has nothing to compare against.

Inside the warehouse: the table is the watermark

Incremental models show the same pattern inside the warehouse. An incremental model avoids rebuilding a full table by processing only new or changed rows. The mechanism is is_incremental(), which returns true when the target table already exists. On the first run the table is missing, the check returns false, and the model builds in full. On later runs the check returns true and the filter applies.

That filter usually reads its own target table, selecting source rows newer than the maximum updated_at already stored there. The table is therefore the watermark. There is no separate run log deciding where processing stopped. The data that landed last time defines what counts as new this time.

Snapshots keep a different kind of history. A snapshot tracks changes to mutable source rows over time, closing the old row with a dbt_valid_to timestamp and opening a new row with dbt_valid_from. The timestamp strategy watches an updated_at column. The check strategy compares named columns directly. Either way, a snapshot records what the source looked like each time dbt ran. It records row states, not decisions.

The newer layer: dbt State decides build, skip, or clone

Managed state adds one more layer. dbt State compares each node's logic and data against previous builds across environments on every run. If the logic is the same and the data is still fresh, dbt reuses an existing object: it clones a node from another location or skips the rebuild entirely. If the logic or the upstream data changed, it builds. A model-level lag_tolerance setting controls how stale a node may become before a rebuild is required.

This is real run-to-run memory, worth naming precisely. dbt State remembers enough to answer an execution question: would rebuilding this node change the result? It stores fingerprints, freshness, and build history. Some node types stay outside that reuse: Python models and models with custom materializations are built on every run, because skipping them cannot be proven safe. Even at its most capable, the layer remembers execution state. It does not remember reasoning.

Where the AI step starts blank

Now place an AI step inside that pipeline. A nightly job builds the incremental models, then an AI step reviews the new rows: flagging anomalies, drafting explanations, deciding which exceptions need a human and which are safe to pass.

Monday's run surfaces a familiar edge case. A customer's total drops sharply, the AI step flags it as churn risk, and a reviewer corrects the call: the drop is a known contract pause, already agreed, not a risk. The correction is exactly the kind of judgment the next run needs.

Tuesday's run works perfectly on the dbt side. The manifest compares cleanly, the watermark advances, dbt State skips everything unchanged. The AI step, though, opens with none of Monday's exchange in front of it. The warehouse holds Tuesday's rows and Monday's final output value. It does not hold the conversation that produced the correction, the reason behind it, or the rule the reviewer settled. Presented with the next contract pause, the step flags churn risk again, in the same way.

Saving more output to a table does not close that gap. A table stores a value: a label, a score, a status. The judgment lives in the history around the value, and history is what a stateless run, a manifest, and a watermark were never designed to carry.

The missing layer: memory the agent itself can read

The fix is to give the AI steps a memory that lives outside any single run and outside any single tool. That is what Vilix AI provides. Vilix AI is a cloud-hosted memory layer, so there is no infrastructure to deploy or maintain. An agent connects over MCP, the Model Context Protocol, and reads and writes the same memory from wherever it runs: inside a dbt-driven pipeline, in a separate automation tool such as n8n or Make, or in a chat session later that day.

Two properties matter for scheduled work. First, the memory is shared. A correction recorded during Monday's review is available to Tuesday's run and to every other connected tool, because all of them read one memory instead of separate run histories. Second, Vilix AI keeps full conversation history, not just extracted facts. The next run can see what was decided and how it was decided, rather than receiving a single flattened status value from a table.

Getting started does not require a project. Vilix AI offers a free plan that stays free forever, and a 7-day Pro trial with no card required. Memory can be exported or deleted at any time. Connect the AI step once, let it save each run's work as it goes, and the next run opens with that record already in front of it.

What to keep where

None of this replaces dbt's own mechanisms. Keep using artifacts and state selection for slim CI and deferral, incremental models for efficient loads, snapshots for row history, and dbt State for build, skip, and clone decisions. Those layers are the right home for code state and data movement.

Add a memory layer for the other half: the judgments, corrections, and context AI steps produce while they run. dbt remembers that the code changed and the rows moved. Vilix AI remembers what your agents learned while moving them. A scheduled pipeline needs both, and once the second half has a home, runs stop starting blank.

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 Snowflake Remember Between Runs? A Stream Offset Moves. The Reasoning Does Not.

Does Snowflake Remember Between Runs? A Stream Offset Moves. The Reasoning Does Not. Ask whether Snowflake remembers between runs and the answer splits in two. Snowflake remembers data movement very well: which rows changed, where a stream offset sits, and whether a task ran. It does not remember what an AI step inside that pipeline concluded, decided, or learned while it worked. Those are different kinds of memory, and the gap between them is exactly where scheduled AI workflows start repeatin

Does Apache Airflow Remember Between Runs? An XCom Lives for One Run. The Reasoning Lives Nowhere.

Does Apache Airflow Remember Between Runs? An XCom Lives for One Run. The Reasoning Lives Nowhere. Ask whether Apache Airflow remembers between runs and the answer splits cleanly in two. Airflow remembers the mechanics of a pipeline very well: which runs happened, which tasks succeeded, and what small values one task handed to the next inside a single run. It does not remember what an AI step inside that pipeline concluded, decided, or learned while it worked. Those are different kinds of memor

Does Matillion Remember Between Runs? The High Watermark Holds. The Reasoning Does Not.

Does Matillion Remember Between Runs? The High Watermark Holds. The Reasoning Does Not. Ask whether Matillion remembers between runs and the answer splits in two. Matillion remembers the data position of a pipeline very well, if you build that memory yourself in the warehouse. It does not remember what a run, an automation, or an AI agent was thinking while it worked. Those are different kinds of memory, and confusing them is where scheduled data workflows start repeating work they already fini