Ports and wire contracts
One process, one port: 5525.
| Address | What it carries |
|---|---|
http://localhost:5525 | Everything: critterstack's web UI, the plan, repository and memory API, the SignalR hub, the MCP endpoint, and the run console (bobcat ui's routes and pages), composed from Bobcat's Bobcat.Ui package |
5525 is the address every Bobcat publisher sends to by default, so a run reaches critterstack with no configuration. critterstack bound 5526 and 5527 before; both are retired.
The address is a default. ASPNETCORE_URLS replaces it; a --urls argument on the command line has no effect. See Configuration.
critterstack and bobcat ui
bobcat ui (Bobcat's free tool) serves the same run console on the same port. critterstack is that console plus everything critterstack adds, so the two never run side by side:
critterstack started first: a later
bobcat uifinds a console already answering on 5525, says so in one line, and stands aside (exit 0). The runs it would have shown are already on critterstack's pages.bobcat uistarted first: critterstack says what holds 5525 and stops, leaving it running:texthttp://localhost:5525 is taken: `bobcat ui` 1.2.4 is listening there. critterstack serves its pages, its API and the run console on http://localhost:5525, the address every Bobcat publisher sends to, so it did not start. Nothing was stopped. ...Stop
bobcat uiand start critterstack again. The same goes for another critterstack, or anything else, on 5525.
A Bobcat publisher sends to every URL in BOBCAT_MONITOR_URL and to 5525 when it is unset. critterstack gate exec and critterstack gate run leave the variable as the command inherited it. If you move critterstack off 5525, name its address there for runs to reach it:
export BOBCAT_MONITOR_URL="http://localhost:6525"The run console's surface
Bobcat's Bobcat.Ui serves these, exactly as bobcat ui does; see The Bobcat UI and What a run publishes for each one. They are public wire contracts: Bobcat's publisher, its runners and the bobcat CLI rely on their shapes.
| Route | |
|---|---|
GET /api/ping | The probe. A publisher calls it once at startup with a tight timeout and goes no-op for the whole run if nothing answers. It answers {"tool":"bobcat",…}, which is how a later bobcat ui knows a console is here. |
POST /api/ingest | Batches of monitor events. The only ingestion path. |
GET /api/runs, GET /api/runs/{runId}, GET /api/runs/{runId}/whereabouts | The run list (?tag=), one run's detail, and where a run is (on the board, ejected, unknown). |
GET /api/runs/{runId}/export | ?format=ctrf (default), junit, cucumber or ndjson (the raw archive). |
DELETE /api/runs/{runId}, DELETE /api/runs | Eject one run, or a set (?olderThan=, ?exceptRunId=, ?repository=, ?unattributed=true). |
GET /api/retention | The retention settings in force. |
GET /api/event-model, GET /api/event-models | The merged Event Model (?name= for one model), and every model held with its sources. |
PUT /api/event-model[/{source}] | A push. Names its source and replaces only that source. Optional root, repository and branch say where it came from. |
DELETE /api/event-model/{source} | A person removes one half (?name= for a model other than the current one). Its producer's next push brings it back. |
GET|POST /api/runners… | The resident runners and their commands. |
GET|POST /api/build-status | A build's status, for the console's status line. |
GET /api/agent/… | The queries the bobcat CLI reads. |
/api/messages | The SignalR hub, shared with critterstack's own live updates. |
What critterstack adds
| Route | |
|---|---|
GET /api/event-model/halves | Each producer's half of each model: when it was pushed, from where, how many slices it carries, and whether it is flagged stale (more than CritterStack:EventModelStaleAfterDays, default 7, older than the newest half of its model, or pushed from another repository or checkout). A flag, never a drop. |
PUT /api/event-model-warnings[/{source}] | What wolverine scaffold --json or bobcat import-event-model --json could not decide; critterstack warnings push sends it. A push replaces its source's warnings. GET reads them all. |
POST /api/event-model-warnings/dismissals · DELETE …/dismissals/{key} | A person's dismissal of one warning, and taking it back. A push that no longer reports the warning drops its dismissal. |
GET /api/about | The version, and where the docs and release notes are. See Version. |
/api/mcp | The MCP endpoint, the run tools included. |
…and the coordination API in the REST reference.
Ejection is not deletion
An ejected run (by DELETE, or by Monitor:RetentionRuns) still has its NDJSON archive on disk; it moves to ejected/. Only the age policy (Monitor:RetentionDays) ever deletes a file. A live run is never ejected automatically: its publisher's next event would bring it straight back. An orphaned run, whose publisher has gone silent for Monitor:OrphanSeconds (default 30), can be.
One model, several producers
A model has producers compiled into different assemblies: the running application knows its Wolverine chains and its store's projections, and a Bobcat spec assembly knows the slices its scenarios declare. Neither can see the other.
So a push names its source and replaces only that source, and GET serves the merge. The merge is keyed on the model name, which is why [assembly: EventModelName("…")] in a spec assembly matters: the sources must agree on the name, or they show as separate models instead of one. Every model stays reachable by name.
The publisher's side
Everything a Bobcat run emits (the events, the transport, the environment variables) is documented in Bobcat's own repository, because that is where it ships:
critterstack composes Bobcat's console as a package and Bobcat references nothing of critterstack's. The wire shape is Bobcat's contract.
Runs received on another server
By default, test-run gates read the runs this host's console holds. To have gates read runs from a run console on another server instead, set CritterStack:BobcatUrl to its address; critterstack then polls its GET /api/runs every CritterStack:BobcatPollSeconds (default 15). The run MCP tools still read this host's console.
