Local demo
Research use only. No clinical claims. The input data is synthetic, and the AI step’s answers are replayed from a recorded cassette: no model is called and no API key is needed.
demo/run.sh shows what v0.1 does in about half a minute, with Docker and bash only:
- A small Nextflow pipeline with an AI step runs twice with lineage enabled: once with
--greeting hello(run A) and once with--greeting bonjour(run B). - The AI step (
QC_NOTE, modelopenai/gpt-5-mini) is answered bybaqueano-replayfromdemo/cassettes/demo.jsonl, on an internal Docker network with no route to any model provider. - A scripted MCP client (
demo/tour.py) asksbaqueano-mcpwhat changed, what the AI step answered, where a file came from and whether a file is intact, and checks every answer. - The script prints the
claude mcp addcommand to ask Claude Code the same questions.
Run it
Section titled “Run it”Prerequisites: Docker (Engine or Desktop, running), bash, git, and a few GB of free disk for the images. No Rust toolchain, no Nextflow install, no API keys.
git clone https://github.com/pingedbrain/baqueano.gitcd baqueanodemo/run.shEverything lands in demo/.run/ (recreated on every run; override with DEMO_WORKDIR).
What happens
Section titled “What happens”run.sh ─ check workdir ─ check docker ─ build (or reuse) images ─ internal network ├─ nextflow plugin install [email protected] (the only step with network access) ├─ baqueano-replay --mode replay ◀── HTTP ──┐ cassette mounted read-only ├─ nextflow run main.nf (hello, bonjour) ──┘ → demo/.run/.lineage, results-*/ ├─ tour.py ⇄ baqueano-mcp over stdio (both --network none; store mounted read-only) └─ print the Claude Code commands; remove containers and network, on failure tooThe MCP server container is started with exactly the docker run -i … command you give Claude
Code. The tour writes the raw JSON-RPC exchange to demo/.run/transcript.jsonl.
Transcript
Section titled “Transcript”A real run on the machine described under Timings, images already built. Only the
checkout path was replaced with /path/to/baqueano.
$ demo/run.sh==> building baqueano-mcp:demo from source (first time: a few minutes)==> building baqueano-replay:demo from source (first time: a few minutes)==> fetching the nf-agent plugin (the only networked step)Downloading plugin [email protected]==> starting baqueano-replay in replay mode (internal network, no internet)==> running demo/main.nf twice: --greeting hello, then --greeting bonjourN E X T F L O W ~ version 26.10.7Launching `/src/main.nf` [agitated_raman] - revision: 380cdd93f2WARN: Agents are a preview feature -- syntax and behavior may change in future releases[02/50b7cf] Submitted process > GENERATE[7d/6e3ca6] Submitted process > TRANSFORM[04/5e1a13] Submitted process > SUMMARIZE[d6/448204] Submitted process > QC_NOTEQC verdict: [answer:no, confidence:0.9]
Outputs:
/demo/results-hello
upper: upper/upper.txt
summary: summary.txtN E X T F L O W ~ version 26.10.7Launching `/src/main.nf` [agitated_gilbert] - revision: 380cdd93f2WARN: Agents are a preview feature -- syntax and behavior may change in future releases[a5/cb79c9] Submitted process > GENERATE[e2/0ccbdd] Submitted process > TRANSFORM[40/a4bfc9] Submitted process > QC_NOTE[aa/f639a1] Submitted process > SUMMARIZEQC verdict: [answer:no, confidence:0.9]
Outputs:
/demo/results-bonjour
upper: upper/upper.txt
summary: summary.txt==> asking baqueano-mcp about the two runs (scripted MCP session, transcript in /path/to/baqueano/demo/.run/transcript.jsonl)1. list_runs: run A agitated_raman (lid://b39e82b08e476e3af186314183e72991), run B agitated_gilbert (lid://2385fd1470135349edfcd93be720f943)2. diff A -> B: params.greeting: "hello" → "bonjour" (nothing else changed)3. AI step QC_NOTE: model openai/gpt-5-mini, answer "no" (confidence 0.9) to "any lowercase letters?"4. provenance of run B summary.txt: SUMMARIZE ← TRANSFORM ← GENERATE ← seed.txt5. check run A summary.txt: Valid (/demo/results-hello/summary.txt)6. check again after appending a line to it: Mismatch (the file no longer matches its lineage)tour passed: 6/6 answers as expected
Demo finished in 24s. Research use only, no clinical claims: synthetic data, and the AI answers were replayed from a recorded cassette (demo/cassettes/demo.jsonl),no model was called.
Ask Claude Code the same questions (the server is read-only and has no network): claude mcp add --transport stdio baqueano-lineage -- docker run -i --rm --network none -v "/path/to/baqueano/demo/.run:/demo:ro" baqueano-mcp:demo --store /demo/.lineageor with the native binary (cargo install --path "/path/to/baqueano/crates/baqueano-mcp"): claude mcp add --transport stdio baqueano-lineage -- baqueano-mcp --store "/path/to/baqueano/demo/.run/.lineage" --path-map /demo="/path/to/baqueano/demo/.run"
Then ask, for example: What changed between my last two Nextflow runs? Where did summary.txt of the latest run come from? What did the AI step answer, and which model was it? Is results-hello/summary.txt still intact?Remove it with: claude mcp remove baqueano-lineageRun names, task hashes and LIDs change on every run. Step 6 appends a line to the demo’s own
demo/.run/results-hello/summary.txt (the tour refuses any path outside the workdir); the MCP
server itself never modifies anything.
Timings
Section titled “Timings”Measured on 2026-11-26 on a 12-thread desktop with 16 GB RAM, Linux, Docker Engine 29.7.
| Case | Time | Notes |
|---|---|---|
| Warm (second and later runs) | 24 s | images built, Nextflow image cached; plugin download included |
MCP_IMAGE / REPLAY_IMAGE set to existing images |
21 s | no build check |
| First run, building both images from source | 180 s | Rust, distroless and Nextflow base images already pulled |
| Fully cold (no images, no build cache) | not measured | adds pulling nextflow/nextflow:26.10.7 (≈ 880 MB; its pull took ≈ 23 s, measured separately) and the Rust base image |
| Cold with published images | pending | needs the release pipeline (images on GHCR) |
CI (docker job, step Local demo, :ci images) |
pending | recorded from the first PR run |
| Apple Silicon, WSL2 | not measured | reports welcome |
Ask Claude Code
Section titled “Ask Claude Code”Register the server with one of the two lines the script prints (absolute paths), then start Claude Code anywhere:
# Docker image, no network, store mounted read-onlyclaude mcp add --transport stdio baqueano-lineage -- docker run -i --rm --network none \ -v "$PWD/demo/.run:/demo:ro" baqueano-mcp:demo --store /demo/.lineage
# Native binary; --path-map translates the /demo paths recorded inside the containerscargo install --path crates/baqueano-mcpclaude mcp add --transport stdio baqueano-lineage -- baqueano-mcp \ --store "$PWD/demo/.run/.lineage" --path-map /demo="$PWD/demo/.run"Example prompts:
- “What changed between my last two runs?”
- “Where did results/summary.txt come from?” (the demo publishes it as
results-bonjour/summary.txtandresults-hello/summary.txt) - “What did the AI step answer, and which model was it?”
- “Are my published files still intact?” (after the tour,
results-hello/summary.txtis not)
Remove it with claude mcp remove baqueano-lineage. Other stores (S3, GCS, Azure) and the JSON form are
in the baqueano-mcp README.
Re-recording the cassette
Section titled “Re-recording the cassette”The committed demo/cassettes/demo.jsonl was recorded from the deterministic fake upstream in
crates/baqueano-replay/examples/fake_upstream.rs, not from a real model. Its fixed structured
answer ({"answer":"no","confidence":0.9}) is the correct answer to the question asked, so a real
model gives the same verdict.
If the pipeline, the agent plugin or the request format changes, replay returns HTTP 599 for the
new request and run.sh stops with a DEMO_RECORD=1 hint. To re-record from the fake upstream
(needs a Rust toolchain; the result is byte-identical when nothing changed):
cargo run -p baqueano-replay --example fake_upstream -- --port 18181 &BAQUEANO_REPLAY_API_KEY=unused DEMO_RECORD=1 UPSTREAM=http://127.0.0.1:18181 demo/run.shFrom a real provider:
BAQUEANO_REPLAY_API_KEY=sk-... DEMO_RECORD=1 UPSTREAM=https://api.openai.com demo/run.shRecord mode runs the proxy and Nextflow on the host network (so a local upstream on 127.0.0.1 is
reachable), passes the key to the proxy by name only, and copies the new cassette over
demo/cassettes/demo.jsonl only when both runs succeed. The tour still expects the answer no.
Cassettes never store the key; cargo test fails if a committed cassette contains a credential or
a host path. State the upstream (and, for a real model, the date) in your PR.
Cleanup
Section titled “Cleanup”rm -rf demo/.rundocker rmi baqueano-mcp:demo baqueano-replay:democlaude mcp remove baqueano-lineageThe script already removes its containers and network on exit, on failure too.
Troubleshooting
Section titled “Troubleshooting”docker is required: install Docker and start the daemon (docker infomust work withoutsudo).refusing to delete …:DEMO_WORKDIRpoints at a non-empty directory that the demo did not create. Pick a new or empty directory.- Plugin download fails: the
[email protected]plugin is fetched from the Nextflow plugin registry, the only step that needs the internet. Behind a proxy, make sure Docker containers can reach it. - HTTP 599 /
the cassette has no answer: the request no longer matches the cassette. Re-record it (above). - Apple Silicon: the Nextflow image is amd64-only and runs under emulation, which is slower. Enable Rosetta for x86/amd64 emulation in Docker Desktop. The Rust images build natively.
- WSL2: clone and run inside the Linux filesystem (
~/…, not/mnt/c/…) with Docker Desktop’s WSL integration enabled; bind mounts from/mnt/care slow and may break file ownership. - Files owned by root in
demo/.run: should not happen (Nextflow hands them back on exit); if a run was killed withSIGKILL, remove them withdocker run --rm -v "$PWD/demo:/d" alpine rm -rf /d/.run.