Consist: Provenance-Aware Caching and Queryable Provenance for Scientific Workflows

Publication Type

Journal Article

Date Published

10/2026

Author

DOI

Abstract

Computational scientific workflows produce outputs that depend on three things: the code
used to produce them, the configuration settings that parameterize their behavior, and the
set of input objects they consume. Each of those inputs may itself be the output of an
earlier computational step, creating dependency chains that can extend across model runs. In
practice, these chains are rarely explicit: researchers frequently cannot trace which exact code,
configuration, and upstream inputs produced a given result, or which downstream outputs are
affected by an upstream change.
Consist is a Python library that makes this lineage explicit, persistent, and queryable. It wraps
ordinary Python computations in a provenance layer that records which code, configuration,
and input artifacts produced each output, computing a deterministic identity signature. Each
step’s identity incorporates the identities of its inputs, including the signatures of the runs that
produced them. As a result, any output can be traced back through its full chain of upstream
dependencies to the original inputs and assumptions at the system boundary. A consequence
of this identity-based lineage is correct, automatic caching: upstream changes invalidate only
the downstream steps that genuinely depend on them, and unchanged steps are safely reused
without re-execution.
Provenance is persisted in a local DuckDB database (Raasveldt & Mühleisen, 2019) that
also serves as an analytical engine: users can query across run outputs—whether ingested
or remaining distributed on disk—so that cross-scenario comparison, lineage tracing, and
result recovery are available through standard SQL. The entire stack is self-contained with no
external services, reducing barriers to provenance tracking in research settings where simplicity
of deployment matters.

Journal

The Journal of Open Source Software

Year of Publication

2026

URL

Organization

Research Areas

Related Files