Runs and evidence
critterstack is your run console. It serves the run board, a page per run and per specification, and the runners on http://localhost:5525, the address every Bobcat suite publishes to: open Runs in critterstack's top bar. These pages are Bobcat's own console (the Bobcat.Ui package, the same pages bobcat ui serves), in critterstack's colours and under critterstack's bar. See The Bobcat UI for what they show.
You do not need bobcat ui as well. Started after critterstack, it sees a console on 5525 and stands aside; started before, it holds the port and critterstack says so and does not start. See critterstack and bobcat ui.
What critterstack builds on the runs
- a
test-run-gategoes done on a green run carrying itsBOBCAT_RUN_TAG; - a slice node's evidence is the latest verdict of each spec it binds, a theory's rows folded under their method;
- the run MCP tools (
list_runs,failing_tests,failing_spec,slice_coverage,await_run_completion, …) read them; - the plan page shows a gate's live progress while its suite runs;
- the Event Model page colours slices from a run and drills into its specifications.
A run needs no configuration to reach critterstack: with BOBCAT_MONITOR_URL unset a Bobcat publisher sends to 5525. A run checks its address once at startup (GET /api/ping, with a short timeout) and stops publishing if it does not answer, so a critterstack that is down never slows or fails a test suite.
Exports
GET /api/runs/{runId}/export?format=… (or the button on a run's card).
| Format | |
|---|---|
| CTRF | The default and the richest. Retries, flaky tests and each spec's steps have their own fields. |
| JUnit XML | Loses detail, but GitLab, Jenkins, Azure DevOps and CircleCI read it natively. |
| Cucumber Messages | ?format=cucumber, for tools that read Cucumber's own report. |
| NDJSON | The raw event stream the run published, for debugging or replay. |
How long runs are kept
Two settings bound two different things.
Monitor:RetentionRuns (default 5) | How many runs the board lists, per job (a repository plus a suite), so a busy repository cannot push a quiet one's runs out. |
Monitor:RetentionDays (default 14) | How long an archive is kept. The only setting that ever deletes a file. |
A run that falls off the list is ejected: its archive moves to ejected/ and is not deleted. A live run is never ejected automatically, since its publisher's next event would bring it back. An orphaned run, whose publisher went silent for Monitor:OrphanSeconds (default 30), can be.
Correlating a run to work
BOBCAT_RUN_TAG is an opaque string Bobcat stamps on a run and never interprets — a plan node, a ticket id, a build number:
BOBCAT_RUN_TAG=critter-parity/fisher-1-10 dotnet testGET /api/runs?tag=… filters on it, and a plan's test-run-gate node reads through it, so the evidence that closes a node is the run itself.
That bare {plan}/{node} tag is for a gate that declares no steps. A gate with steps reads each step's runs under {plan}/{node}/{step}, and a run under the bare tag counts for none of them; a step whose command starts a Bobcat Gate publishes one run per unit under {plan}/{node}/{step}/{project}.{framework}. Running the steps with critterstack gate run sets all of this for you. See How a step is decided.
Run evidence joins back to the model
A Bobcat run records the types each scenario actually touched: the aggregate it arranged, the command it dispatched, the events the stream gained, the messages sent and the read model loaded. It never records what an assertion merely names. A scenario that expects a refusal records its rejected command and no event type.
That is how a run joins back to the Event Model's slices, and what lets slice_coverage tell "never specified" apart from "specified but never exercised".
See also
- The Bobcat UI — what the run pages show
- The Event Model
- Ports and wire contracts
- What a run publishes — the publisher's side, in Bobcat's docs
