The layout of _build/juggernaut/ and its version (design notes §7).
ensure/1 creates the directory and its LAYOUT file. A directory with another
layout version (or with content but no LAYOUT) is moved aside to a sibling
juggernaut-old-<UTC timestamp> and a fresh one is started; old data is never read
with the wrong layout and never deleted. A store moved aside within the same second as an
earlier one gets a numbered name (-2, ...). Failures are infrastructure errors (exit 3).
ensure/2 comes first: a run calls it once, before anything else touches the store. The
writers (Store.Lock.acquire/3, Store.History.append/2, Store.Runs.write/2) call
check/1 and refuse a root without the current LAYOUT, because a later ensure/2
would move such a store, and everything just written into it, aside.
Summary
Functions
cache/results/: the per-mutant result cache, sharded by file (Juggernaut.Cache.Shard).
:ok when root is a store of the current layout (ensure/2 has run); otherwise an
infrastructure error. The store writers check this before writing.
coverage/index.etf: the coverage index.
Makes root a store of the current layout: {:ok, :created}, {:ok, :current}, or
{:ok, {:moved, old_path}} when an incompatible store was moved aside.
runs/<run_id>/events.ndjson: the NDJSON event stream.
runs/<run_id>/harness.log: worker stderr and diagnostics.
history/runs.ndjson: one summary line per finished run.
LAYOUT: the layout version.
lock: the checkout lock.
runs/<run_id>/mutation.json: the mutation-testing-elements export.
runs/<run_id>/mutants.ndjson: one {mutant, result} per line.
report/index.html: the last dashboard.
runs/<run_id>/.
runs/<run_id>/run.json: the run without mutants and results.
runs/: one directory per run.
sandbox/: the persistent project mirror.
server/: the warm server's address and token.
The layout version this Juggernaut writes.
Functions
cache/results/: the per-mutant result cache, sharded by file (Juggernaut.Cache.Shard).
@spec check(Path.t()) :: :ok | {:error, Juggernaut.Error.t()}
:ok when root is a store of the current layout (ensure/2 has run); otherwise an
infrastructure error. The store writers check this before writing.
coverage/index.etf: the coverage index.
@spec ensure(Path.t(), DateTime.t()) :: {:ok, :created | :current | {:moved, Path.t()}} | {:error, Juggernaut.Error.t()}
Makes root a store of the current layout: {:ok, :created}, {:ok, :current}, or
{:ok, {:moved, old_path}} when an incompatible store was moved aside.
runs/<run_id>/events.ndjson: the NDJSON event stream.
runs/<run_id>/harness.log: worker stderr and diagnostics.
history/runs.ndjson: one summary line per finished run.
LAYOUT: the layout version.
lock: the checkout lock.
runs/<run_id>/mutation.json: the mutation-testing-elements export.
runs/<run_id>/mutants.ndjson: one {mutant, result} per line.
report/index.html: the last dashboard.
runs/<run_id>/.
runs/<run_id>/run.json: the run without mutants and results.
runs/: one directory per run.
sandbox/: the persistent project mirror.
server/: the warm server's address and token.
@spec version() :: String.t()
The layout version this Juggernaut writes.