Shell as the Escape Hatch
REAL
The quantum playbooks do their work in Python. The local runtime they
pin cannot run a kind: python step. Every step is therefore
kind: shell, and the Python program is a command inside that step.
This section says which binary that pin is, why the playbooks are
shaped that way, and which costs this book can and cannot put a number
on.
The source is noetl/quantum at
commit 9208fa2: playbooks/vqcc_pipeline.yaml,
playbooks/vqcc_optimize.yaml, and playbooks/vqcc_portfolio.yaml.
The runtime behavior below is noetl/cli tag v5.3.2,
src/playbook_runner.rs.
Which binary "NoETL 5.3.2" is
The playbook headers say the files were checked on NoETL 5.3.2. At
this commit that name is one thing: the PyPI wheel noetl==5.3.2
(requirements-baseline.txt,
docs/tutorial/01-environment.md).
The wheel's recipe is packaging/pypi/ at noetl/noetl tag
pypi-v5.3.2. That directory's Cargo.toml depends on the crates.io
crate noetl at version 5.3 (default features off), and its
Cargo.lock resolves noetl 5.3.2. That crate version is the
noetl/cli release v5.3.2:
tag commit 5ff491e9f0d26729e509674090668b49ec1230a6 (the prefix
5ff491e the quantum tree cites), Cargo.toml version = "5.3.2",
published 2026-10-17.
The root pyproject.toml on tag pypi-v5.3.2 is a different file. It
says it is not a distribution, and the version written there is
4.26.2. Installing that checkout would not produce this CLI.
The book's own examples stay on CLI v6.4.1. Claims in this section about what a local step does are about CLI v5.3.2, unless they name v6.4.1.
Every step is shell
At 9208fa2, every step tool under playbooks/ is kind: shell:
| Playbook | Steps | Tool kind |
|---|---|---|
vqcc_pipeline.yaml | 11 | shell |
vqcc_optimize.yaml | 14 | shell |
vqcc_portfolio.yaml | 10 | shell |
The baseline's first step is the shape of the rest. The command is a shell string that runs the project's module:
- step: start
tool:
kind: shell
cmds:
- >-
cd "{{ workload.repo_root }}" && PYTHONUNBUFFERED=1 python3 -u -m vqcc.pipeline prepare
--mode "{{ workload.mode }}"
--data-dir "{{ workload.data_dir }}"
--runs-root "{{ workload.runs_root }}"
--repo-root "{{ workload.repo_root }}"
--seed "{{ workload.seed }}"
On the baseline, check-data, adapt, verify-official, cost,
package, and record are the same shape: python3 -u -m vqcc.pipeline
inside kind: shell. vqcc_optimize.yaml uses that module too.
vqcc_portfolio.yaml uses python3 -u -m vqcc.portfolio. None of the
three files has a kind: python step.
Why the local runtime forces that
CLI v5.3.2's execute_tool has an arm for Tool::Unsupported. It
prints "Tool not supported in local execution mode", lists the kinds it
does run (shell, http, playbook, duckdb, auth, sink,
provider, agent), and returns Ok(None). The step does not fail
the run. python is not in that list. A playbook that put the work in
kind: python would skip it and still be able to finish ok.
The playbook header says the same thing from the project's side: the
published local CLI that runs the file does not execute kind: python,
while the server grammar accepts both shell and python. Shell is how
the same file stays acceptable to both.
By CLI v6.4.1 that skip has become a hard refusal before the first step
(8.2). The escape hatch is still required.
What changed is the failure mode: a python step no longer disappears
inside a run that exits 0. It stops the run up front.
What that costs
Two facts about cost are verified. One number this book already published applies to a different CLI and a trivial command. The running time of these playbooks is not a number this book has.
The shell arm at CLI v5.3.2 sends the command through the tools bridge.
The comment there says the bridge collects stdout and stderr and
returns them when the command finishes, and that long-running shell
steps no longer show output line by line. PYTHONUNBUFFERED=1 and
python3 -u unbuffer the Python process. They do not make the CLI
print the step's output before the step exits. A step that runs for a
long time is silent in the CLI's step result until it returns.
A trivial local shell step cost ~3.3 ms in this book's measurement
on CLI 6.4.1 (2026-11-19, n = 10; 11.2). That
figure is a one-line command on a later CLI. It is not a measurement
of vqcc_pipeline.yaml or vqcc_optimize.yaml.
This book has not measured how long these playbooks take on CLI 5.3.2
or on any later CLI. It does not import timings from a competition
run. The cost this section stands behind is the shape: one shell
process per step, output at step exit, and no kind: python on the
local runtime the project pins.
What to copy
- Name the binary. "NoETL 5.3.2" here is the PyPI wheel of CLI crate
5.3.2 (release v5.3.2, 2026-10-17), not the root
pyproject.tomlon tagpypi-v5.3.2. - If the local runtime cannot run the kind you want, put that program
in
kind: shelland say so in the playbook header. A skippedpythonstep that still exits 0 is not a run of that step. - Expect the step result when the process exits. Unbuffering Python is a separate knob from the CLI collecting the step's output at the end.
- Keep the book's trivial-step figure labelled with its CLI and its date. Do not reuse it as the cost of a long compute step.