Project Bourne
Every experiment has a history.
Universal experiment provenance and reproducibility for science and engineering.
Project Bourne records how arbitrary scientific and engineering commands were executed, which files were explicitly used and produced, and how one experiment derived from another. It is local-first, framework-agnostic, and requires no changes to the program being recorded.
This repository documents Project Bourne v0.2.0. Install the latest published release from PyPI; during release preparation, the published package can briefly lag the repository:
python -m pip install bourneprov
bourne run python examples/demo.py
bourne list
bourne show @1
Bourne wraps any executable, not only Python:
bourne run bash -c "echo hello"
bourne run ./solver case.yaml
bourne run julia simulation.jl
bourne run mpirun -np 64 ./solver
Program stdout and stderr remain visible during execution and are preserved in the experiment record.
Artifacts and lineage
Project Bourne v0.2 adds explicit input/output fingerprints, a minimal derived_from relationship, safe execution-context observations, and artifact tracing. Run the deterministic example from an isolated directory:
cp -R examples/provenance /tmp/bourne-provenance-demo
cd /tmp/bourne-provenance-demo
export BOURNE_DB="$PWD/bourne.sqlite3"
bourne run \
--input config_A.json \
--output result_A.csv \
-- python demo_simulation.py config_A.json result_A.csv
bourne run \
--derived-from @1 \
--input config_B.json \
--input result_A.csv \
--output result_B.csv \
-- python demo_simulation.py config_B.json result_B.csv
bourne show @2
bourne show @1
bourne trace result_B.csv
Inputs are fingerprinted before execution. Outputs are fingerprinted afterward, including expected outputs that are missing after a failed or interrupted run. SHA-256 reads are streamed in chunks; Bourne does not copy or upload declared files.
A path is not artifact identity. Each capture has a stable ULID, while SHA-256 distinguishes content versions. When a historical path could identify several versions and the current file content cannot disambiguate them, bourne trace lists candidates and refuses to guess.
See Artifacts, lineage, and execution context for exact capture, trace, migration, and security semantics.
Human-friendly experiment references
Canonical experiment identities remain 26-character ULIDs. Commands that accept an experiment also understand:
01M02GDJEW... case-insensitive unique ULID prefix
latest most recent experiment
@1 most recent experiment
@2 second-most-recent experiment
@3 third-most-recent experiment
For example:
bourne show latest
bourne show 01M02GDJEW
bourne compare @2 @1
bourne run --derived-from @1 -- ./solver case_B.yaml
Bourne never guesses when a prefix is ambiguous. bourne list displays a 10-character prefix by default; bourne list --full-id displays canonical IDs.
Shell completion
Completion candidates include canonical experiment IDs, latest, and recent @N references. Activate completion for the current shell session with:
# Bash
source <(bourne completion bash)
# Zsh
source <(bourne completion zsh)
# Fish
bourne completion fish | source
Completion for bourne show and bourne compare queries the currently configured database, including BOURNE_DB.
What Bourne records
Every experiment records:
- execution status (completed, failed, or interrupted), exact argument vector, working directory, UTC timestamps, duration, and exit code;
- live and captured stdout/stderr;
- Git repository root, commit, branch, and dirty state when available;
- operating system, architecture, hostname, CPU, and optional NVIDIA runtime metadata;
- requested and resolved executable paths plus strictly allow-listed virtualenv/Conda context hints;
- explicitly declared input/output artifact versions and immediate lineage.
Collectors degrade gracefully. Missing Git, NVIDIA tooling, GPUs, environment hints, or executable resolution does not stop the workload. Arbitrary environment variables are not persisted, so credentials and tokens are not captured by default.
Failed and interrupted commands are saved before bourne returns their process semantics:
bourne run --output expected.csv -- python -c "raise RuntimeError('boom')"
bourne show @1
On POSIX systems, Bourne uses a dedicated process group so Ctrl+C normally terminates descendants without targeting unrelated processes.
Execution success is not scientific verification. Verification is deliberately separate and is not implemented in v0.2.
Local storage and migration
The default SQLite path is:
~/.local/share/bourne/experiments.sqlite3
Use a project-specific database with:
export BOURNE_DB=/path/to/experiments.sqlite3
Opening a v0.1.1 database performs a transactional schema 1 to schema 2 migration. Existing completed, failed, and interrupted experiments remain readable and naturally have no artifact or lineage relationships. Unknown or newer schema versions fail explicitly; Bourne never resets an existing database.
Development
The repository package version is 0.2.0. PyPI publication is a separate release step. The runtime has zero third-party dependencies.
Run the source-tree tests with:
PYTHONPATH=src python -W error::ResourceWarning -m unittest discover -s tests -v
stdout and stderr are still accumulated in memory before final persistence. Disk-spooled logs, automatic artifact discovery, artifact archival, environment resolution, schedulers, remote execution, profiling, scientific verification, MCP, and agents remain future work. See docs/VISION.md for the longer-term direction.
Metadata
Release files for bourneprov 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bourneprov-0.2.0.tar.gz | 48.2 kB | With provenance | Details for bourneprov-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bourneprov-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for bourneprov-0.2.0-py3-none-any.whl |
Total release size: 77.5 kB
Release files / bourneprov-0.2.0.tar.gz
| Download URL | bourneprov-0.2.0.tar.gz |
|---|---|
| Size | 48.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fce99c0c8140266d398575e17b9485da496721b8c3f6b2026cbf7d6eab6f0a7
|
|
BLAKE2b-256 checksum How to use checksums |
a881c9323eeaf91b3eada623bcbcd8b2f39517c7d77d90e0f513940dae583902
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 15, 2026.
Transparency logRelease files / bourneprov-0.2.0-py3-none-any.whl
| Download URL | bourneprov-0.2.0-py3-none-any.whl |
|---|---|
| Size | 29.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
920aa4b04e7f474248d1a8afb3df790ade84f6bdcc14e722287dc712527aeffe
|
|
BLAKE2b-256 checksum How to use checksums |
55f8ec4ad48b3de9d4f97d38ed93f76214a40fc37a97a0630ff3603ff26e7061
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 15, 2026.
Transparency logSecurity for bourneprov 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for bourneprov-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.