Repository navigation
Upgrading
-
Re-run
crucible-axi installafter upgrading. It fills two settings an older install never wrote,
and never overwrites a value already set:- the install's
crucible.tomlgains[client] url, built from the port the board already listens on,
so the clients reach the board through configuration. A client whose project and install name no
board refuses rather than posting anywhere; - the server's own settings file gains
[server] port, the port that server already boots on (no
new port is probed).
The install output lists each file it
filled, and each it left alone undernotFilledwith the
reason. An install with no local server has no port to build the url from: declare
[client] url = "http://<host>:<port>"in itscrucible.toml. The install output warns under
boardUndeclared, naming the file and the key, whenever it leaves no board declared. - the install's
-
The rust gate's lint step is renamed. A stack file or script that reads the rust
pre-merge-gateenvelope now seesstage: "lint"instead of"clippy", and the warning
lint-gate-abortinstead ofclippy-gate-abort.--skip-clippystill works, as an alias of
--skip-lint. -
Every gate runs a lint stage. A project with no
[lint]table, and no default for its stack,
gets alint-not-declaredwarning and its gate goes on; declare the project's linter in a
[lint]table of itscrucible.tomlto lint it. -
Python 3.14 is now the floor.
crucible-axirequires Python 3.14 or later; 0.3.0 required
3.10. uv keeps a tool environment's interpreter across an upgrade, so the install one-liner
rebuilds an environment that runs an older Python on 3.14, and says so first, naming the Python
it ran. To upgrade by hand, runuv tool install --upgrade crucible-axi --python 3.14. -
The store migrates from schema v20 to v25. The first 0.4.0 boot upgrades a 0.3.0 store.
Before migrating, it writes a recovery copy beside the store,crucible.db.pre-upgrade-<epoch>,
and the boot log names the migration and the backup. A store written by a newer build is refused
rather than touched. -
Ingests are bounded by two new server limits. Both live in the server's own
crucible.toml,
beside its database.ingest_body_bytes, by default134217728(128 MiB), bounds an ingest's request body and a
run's whole test stream. A larger body, or a stream batch that would pass it, is refused with a
JSON 413 naming the limit.GET /api/healthadvertises it underlimits, and the clients
refuse an oversized body before sending it.raw_output_chars, by default2000000, bounds the captured runner output a run stores.
Longer output keeps its first and last halves around a line naming how much was cut. A server
with no operator file now cuts output that 0.3.0 stored whole.
-
regressionmeasures coverage only when asked. Every client'sregressionruns the whole
suite as theregressiontier without coverage unless--coverageis given. Without it, maven
applies no coverage profile and sends nojacoco.csv, and rust runs nextest with no
cargo llvm-covand nocargo clean. A coverage-only flag given without--coverage
(--coverage-profile,--lcov-output,--keep-target,--cov-source) is refused. The
pre-merge-gateis unchanged.
Added
-
A Go project reports through its own client.
go-crucible.pyjoins the fleet as its sixth
client: the install lays it down beside the other five, and the manifest lists it under
clients.go. It runs the toolchain's owngo test -json, needs go 1.24 or later onPATH, and
streams every test run to the board'sgo-testcodec, its total counted first with
go test -list.testruns one module;regressionandpre-merge-gaterun every module under
the project dir into one run. Its compile, coverage and tiers are described below, and its
declaration under "Stack declaration changes". -
An open run shows its tests as they finish. A client streams its runner's results to the run
it opened, throughPOST /api/v2/runs/<runId>/stream, in throttled batches as it is written. The
board holds each batch it acknowledges, so a restart loses none, and fills the run's live state
as the batches land.GET /api/healthgainscodecs.stream, the codecs whose stream is a run's record
(crucible-events,go-test,nextest), andcodecs.view, the codecs that only fill the live
view (bun-console,surefire-console).- A record stream is decoded into the run at its close, and no final test report is read. The
crucible-eventsshape is newline-delimited JSON: arun-start, onetest-endper test and a
run-endwith the runner's totals. A run whose tests disagree with itsrun-end, that has no
run-end, holds lines that cannot be decoded or was cut atingest_body_bytesis stored
flagged incomplete. An aborted streamed run keeps the tests it streamed. - The Runs tab's running card shows a progress bar, done of total, the current file, the
failures so far and the timer. It opens a live drill-in at/run/<runId>that lists each
failure as it happens and becomes the run's own page when the run settles. The agent's card
readsrunning N/M · <file>from the same state, whichGET /api/v2/runs/<runId>/liveserves. - Each stack's runner streams. Python's own unittest runner,
subtest_runner.py, writes the
stream: the python client no longer uses xmlrunner, andunittest-xml-reportingleaves the
devextras. A pytest run keeps its JUnit report. bun relaysbun test's console to the
bun-consoleview codec and keeps its JUnit report as the record. Vitest and Playwright stream
through the shipped reporters. rust streams through nextest, arduino through its native
harness, maven shows its surefire console live, and go streamsgo test -json(see "Stack
declaration changes").
-
The install ships Vitest and Playwright reporters.
reporters/vitest-crucible.tsand
reporters/playwright-crucible.tsland under<target-dir>/clients/. The bun client names that
directory to a run inCRUCIBLE_REPORTERS, so a project's Vitest or Playwright config adds the
reporter from it without naming a machine path. The reporter writes thecrucible-eventsstream
to the fileCRUCIBLE_STREAMnames, and a script declares it in itscrucible.targetsentry
with"stream": {"codec": "crucible-events", "path": "env:CRUCIBLE_STREAM"}.- A Vitest run states no total up front, so its live view shows a count with no total.
- The Playwright reporter files one test per scenario and browser, from its last attempt, with
its Gherkin steps under it, so a BDD run is counted by scenario, not by step.
-
The board decodes every stack's reports. Every client sends its runner's own reports to
POST /api/v2/runsand parses nothing itself: its JUnit or stream, its coverage report (lcov,
jacocoorgo-coverprofile) and its captured output, inline. The stored run names the codec
that decoded it, and every figure a client prints is the board's answer.datamay be one report or a list of them, merged into one run. A report that cannot be
decoded is skipped with a warning, and coverage that cannot be decoded is dropped with one.- No client posts to
/api/v2/runs/parsedany more.
-
Every client has a
lintverb.python,bun,rust,go,mvnandarduino-crucible.py lint [--agent ID] [--cycle N]run the linter a project declares in a[lint]table of itscrucible.toml
(command, a list; optionalformatandname) and, with--agent, file its output on the compile
route as a lint record carryinglint,formatandrunnerExit. The linter's exit is the verdict.- The table resolves as
[gate]does: the project's file, then the install's. A project with no file
of its own inherits an install-wide[lint], which replaces its stack's default. - The defaults: rust runs
cargo clippy --workspace --all-targets --all-features -- -D warnings, go
runsgo vet ./...in each module. Other stacks have none, and answerskipped: not-declared. - Each
pre-merge-gategains a fail-fast lint stage in its own order: python and buncheck→ lint
→ tests, arduinocompile→ lint → tests, rust lint → regression, go lint → its regression run,
maven lint → docker-up. A failing lint stops the gate withlint-gate-abort; nothing declared
goes on with alint-not-declaredwarning;--skip-lintskips the stage. runsandrunword a lint record aslintand its tool; its brief keepskind: "compile".check's next step nameslint; a clean lint's namestest, a failing one'slintagain.- The shipped
crucible.tomldocuments[lint]in a commented block and declares none.
- The table resolves as
-
A lint finding reaches the board as a marked compile record. A linter's run posts to
POST /api/v2/runs/compilewithlint: "<tool>"and the linter'srunnerExit, and is stored as a
lint record: a compile event carrying its linter's name, with no new kind, route or column.- The linter's exit is the verdict: a clean exit with no output is filed clean, and a non-zero exit
whose output records no error gains one synthetic error naming the exit. A lint record answers
LINT FAILED — N errors, M warningsorLINT OK — M warnings. - Two decoders,
ruffandclippy, and the hint aliasesgo vetandclang-tidy. On a lint post
stating its exit, gcc's no-error fallback to raw is off, so clang-tidy warnings are decoded. - The Compile tab draws a Lint group beside the Compile group, each headed with its count. A lint
card names its tool, carries a broom glyph and readsN lint errors(1 lint errorfor one) or
lint clean; its drill-in is headed<tool> lintand shows each finding's rule code. /api/v2/statusgainslastLint, andlastCompilenever holds a lint record. The projects
rollup gainslastEventNotLint, so a project's status line reads as if lint records did not
exist. Lint records count toward retention as compile records do.
- The linter's exit is the verdict: a clean exit with no output is filed clean, and a non-zero exit
-
A run's coverage is kept and shown file by file. The board keeps each file of a green run's
coverage report with the run: its name, its lines and, where the report states them, its
functions. The Coverage tab lists the files of the project's latest green coverage run beneath
its totals, least covered first, and a test run's own page shows one coverage line above its
test tree that unfolds the same table. A run of more than 50 files opens on its first 50, with
oneshow allcontrol.- An
lcovfile is anSF:record and ago-coverprofilefile is a file of the profile's
blocks, with lines only. Ajacocofile is a class, since the CSV names no source file. - A row shows the name without the directories every file of the run shares. A name too long
for its cell is cut on the left, and the row's hover title is the whole name. On touch media
the name is shown whole and wrapped instead. GET /api/v2/events/<id>?depth=coveragereads a run's files without its tree or its raw
output:coverageFileCount,coverageFilesandcoverageRootinsideevent.&files=<n>
answers only the firstnfiles.?depth=suitescarriescoverageFileCountwhen the run has
files.- The answer of
POST /api/v2/runsgainscoverageFileCountandcoverageFiles(the first 10
files) in itsrunblock when the run kept files. - A failing run keeps no coverage and so no files. A run filed before this change, or through
/api/v2/runs/parsed, has totals only, and the board saysno per-file coverage for this run. - A run's coverage keeps only the files inside the run's tree. A file whose name climbs out of
the run's tree, such as../../tmp/x/c.mjs, is not kept, and the run'slinesandfunctions
totals are the sums the report states, less the counters of the files left out, each percent
taken from what remains. An absolute name is kept. A report whose every file lies outside the
run's tree keeps no coverage, with onecoverage-droppedwarning.
- An
-
A coverage run's envelope names its least covered files. Every stack's run that kept coverage
states acoverageblock in its envelope:linesandfunctions, the run's percents
(functionsabsent for a run with no functions axis), thenevent, the run's id,fileCount,
how many files the run has,moreFiles, how many of them are not listed, andfiles, its 10
least covered files, least covered first.- A row of
filesisfile,linesPercent,linesCovered,linesTotal,functionsPercent,
functionsCoveredandfunctionsTotal. The three function keys are null for a file with no
functions axis. Every figure is the board's own. - A run whose answer carries no files states
linesandfunctionsalone. A run that kept no
coverage states no block. run <event-id> --files <n>|alllists a stored run's files in the same block, after
failingTests: thenleast covered, 10 by default, or every file withall. A value that
is neither is refused before any request, exit 2. A run without files prints as before, and
a file list that cannot be read refuses the verb.- A gate composed of several runs states
coverageRuns: one row per run whose envelope carried
a block, in the order the runs ran. A row issuite, the whole-suite label or the suite's
target,stack, then the block's own keys. The key is absent when no run carried a block,
and the gate states no total across its runs. A gate that is one run alone prints that run's
envelope, with itscoverage.
- A row of
-
testruns the script a bun project marks. Acrucible.targetsentry marked"test": trueis
the script everytestruns, with the files and--namepassed on in the flag its framework takes
(-tforbun-testandvitest,--grepforplaywrightandplaywright-bdd). The run carries
the entry's framework. With no files,testruns the whole script. With no entry marked,test
runsbun test, as before. -
The bun gate runs every declared framework.
pre-merge-gateruns eachtest:script whose
entry names a framework other thanbun-test(Vitest, Playwright) as a suite of its own, filed under
the tier its name names, with its own row, counts and outcome, and its counts in the gate's totals.
Before this, such a target was reported as covered bybun testwithout running.- The whole
bun testrun is skipped only when the package declares at least one bun suite and
every bun suite, excluded ones included, runs under another framework. The envelope's
wholeSuitefield then says so. --suites <target>on a non-bun-testtarget runs only that target.- These suites measure no coverage, and the gate warns of none.
- The other stacks' gates are unchanged.
- The whole
-
The Go client compiles and measures coverage.
checkrunsgo build ./...in the module
testresolves;check --testscompiles every package and test file instead, running no test and
no vet check. With--agent, a failing compile is filed as one compile run of formatgo; a clean
one files nothing.--coverageontestandregressionwrites each module's coverprofile in the
run's own reports dir and sends them all with the run's close, codecgo-coverprofile.- Go coverage is statement coverage, stored on the run's
linesaxis: covered statements over all
statements, a block listed more than once counted once. The run has no functions axis. - The client adds no
-coverpkg. A project that wants it setsGOFLAGS=-coverpkg=./..., which
everygocommand the client runs inherits. - A
--coveragerun is refused before it opens when the board's health does not list
go-coverprofile. When a module's profile was not written, the run is closed with no coverage
and acoverage-not-measuredwarning naming the module.
- Go coverage is statement coverage, stored on the run's
-
A Go project declares its tiers by build tag. The Go client's tier verbs,
unit,module,
integration,e2eandbdd, run a tier the project declares with//go:build <tier>in a
_test.gofile that declares a test. A tier verb runs only the tests its tag adds, never an
untagged test, into one run filed under its tier. A tier no module declares is refused, and so is a
tier test whose name is also declared in a test file the untagged build compiles, since-run
cannot select it alone.regressionruns the untagged tests and then every declared tier's tests,
in one run. Thepre-merge-gateruns each declared tier as a suite with its own row, filed under
that tier, beside theuntaggedrow, the whole run, filed underregression;e2eis listed and
excluded.- The Go client's
check --testsalso compiles each declared tier's test files under its tag
(-tags <tier>). Every compile runs, and the failing ones are filed as one compile run, each
error once. - The Go client's
unitrun carries theunit-run-wall-exceeds-cpuwarning when it spends its
wall time waiting, as the other clients'unitruns do.
- The Go client's
-
A Go run ticks its progress. While the relay lands no batch, a Go run posts
running N/M,
with N its top-level test results so far and M its listed total (running Nwhen its listing
failed), as every other stack does. Subtests are not counted. Under a gated run, the ticks are
observed by the run's gated identity. -
A release's notes are drafted from the board. Every client's
release-notes --release <label>
drafts the release'sCHANGELOG.mdsection: its## [<label>] - YYYY-MM-DDheading, then one
### Changedline per CR the release completed, each carrying the CR's title and its id, in the
order the CRs landed. The lines are a draft, to be edited and sorted into their groups before the
notes are committed.--format markdownprints the section alone, ready to paste. Undertoon, the default, and
json, the envelope carries the section aslines, withrelease,state,dateand
count.- The heading's date is the UTC day the release shipped, else today's UTC date.
--date YYYY-MM-DDsets it. - A title is the CR's latest merged plan's, else its queue entry's, and is written on one line.
A CR with neither is its id alone. - The verb only reads the board and takes no
--agent.
-
A project registers itself on the board. Every client's
project-create --project-dir <root> --name <name> --token <token> --agent <id>creates the project, or finds it, and prints its key.
The key is derived from the token, so a re-run with the same token answers the same project with
created: false, whatever its--name. A UUID key already in the project's.envis used and
never replaced; one the board does not know, or whose project is archived, is refused.--project-diris required: the verb never looks for the root in the working directory or git.- The same call registers
--agentas the project's ORCHESTRATOR and seeds its metadata:
PROJECT_TOKEN,PROJECT_ACRONYM(with--acronym) and each--set KEY=VALUE. --write-envwritesCRUCIBLE_PROJECT_KEY=<key>into<root>/.envwhen its key line is
empty or missing, keeping every other byte. Without it,.envis never written.
-
runsandrunread stored runs back. Every client'sruns --cycle <id>or
runs --release <label>lists that cycle's or release's stored test and compile runs, newest
first, a compile row with its errors and warnings and a test row with its counts.
run <event-id>shows one run of the client's own project, with its failing tests. Both only
read the board and take no--agent. -
The python client runs a pytest project.
[python] runner = "pytest"in the project's own
crucible.toml(or"unittest", the default) chooses the runner fortest,regression, the
tier verbs andpre-merge-gate, and--runner <name>overrides it for one call. A value that is
neither name, orpytestwith an interpreter that cannot import it, is refused before anything
is posted. A pytest collection error is filed as a failed test. A run whose passing subtests
pytest left uncounted carries asubtests-uncountedwarning. -
An arduino agent can run only its own native tests.
testandunittake
--tests <stem> …, handed tomakeasTESTS, and--name <names>, handed tomakeas
TEST_NAMEfor Unity's-f. Ill-formed input is refused withnarrowing-refusedbefore
anything reaches the board. The tier verbs,regression,auto-ingestand the gate never
narrow. -
A scoped re-run after a red gate can close the CR.
pre-merge-gate --suites <targets>runs
only the named declared suites. Each gate milestone records itsscope(fullorscoped) and
onesuitesentry per suite it ran, with its outcome, counts and failing tests, and
GET /api/healthstatesmilestones: {gate: ["scope", "suites"]}.cr-closejudges suite by
suite: the latest full gate is the base, and a later result for one of its suites replaces that
suite's. Every envelope also statesevents, the ids of the runs the call filed. -
The arduino stack's compile errors are decoded. The board gains a
gcccompile codec for
GCC and g++ diagnostics and both linker shapes ofundefined reference, and the arduino client
names it on its compile ingest. Anote:belongs to the diagnostic above it. Agccreport with
no error falls back to the raw report, so a failed build never reads clean. The Compile pane
omits a missing line or column instead of printingundefined.
Changed
- A client with no board declared refuses. A client whose project and install
crucible.toml
name no[client] urlnow refuses every verb that must reach the board, with one envelope naming
each file and why it was passed over, instead of posting to the server's packaged port. The
shippedclients/crucible.tomldeclares no board; the installer writes the install's. An install
with no local server must declare[client] url = "http://<host>:<port>". An upgraded install whose
file never named a board has none untilcrucible-axi installis re-run, which fills it from the
local server's port. A verb that sends nothing still runs, and every client's--helpends with a
"Board:" paragraph naming where its board comes from. - The
junitreadings follow the framework. pytest's grouping by classname applies to a run of
frameworkpytestwhose report holds one suite namedpytest, and bun's console reading to a run
of frameworkbun-test, whatever the run's stack. A close that states no framework reads under the
one its run was started with. A run that states none (any client older than 0.4.0) gets neither
reading. - The python client states its runner as the framework. Every run
test,regressionand each
pre-merge-gatetier file statespytestorunittest.auto-ingest, which runs nothing, states
the runner[python] runnerdeclares in the project'scrucible.toml, elseunittest. - The store migrates to schema v25. The runs filed through the
playwrightcodec move to
frameworkplaywright-bdd, in the shape the stream stores: a suite per feature and browser, a case
per scenario, its steps under it. They are recounted by scenario, not by step, so a run whose
scenario failed with no failing step turns red. Each keepscodecplaywrightas the record of
how it was filed. A suite'sfeatureis now set only on aplaywright-bddrun.- Days already folded into the rollups keep their step counts.
- The specification view is chosen by framework. The run detail opens a test run of framework
playwright-bddas feature → scenario → step, whatever its codec. - A bun project's
regressionand gate run the script it marks. On a project whose
crucible.targetsentry is marked"test": true,regressionand thepre-merge-gate's
whole-suite step run that script in place ofbun test, filed underregression, and a full gate
never skips that run. The gate runs every other declared bun suite on its own, whatever its
framework, and records only the marked script's suite as covered by the whole-suite run. Coverage
flags go only to abun-testentry withjunit: flag(or a script with no entry); any other
script run with--coveragecarries onecoverage-not-measuredwarning. An unmarked project runs
as before. - A client finds its board in the install when its project names none. A client takes
[client] urlfrom the firstcrucible.tomlthat declares a non-empty one: the project's, then
the install's. A file without one, or one that does not parse, is passed over, and when neither
declares one the client refuses. Before this, a project file without[client]sent every verb to
the server's packaged port and the install's file was never read. The limits and[gate] skip
keep the first file that parses. An envelope namescontext.boardonly when the board differs
from the install's declaredurl, or always when the install declares none. - A re-install fills in the connection an older install never wrote, keeping the live port. An
existing servercrucible.tomlwith no[server] portgains the port its server boots on today,
the template's ownport, with no probe. An existing installcrucible.tomlwith no[client] url
gains the board url built from that port. Only an absent key is filled; a value already set, in
any form, is never overwritten. The[manifest]stage names each file it filled with its key and
value underfilled, and each file it could not safely touch with the reason undernotFilled.
The range is probed only for a server file the install lays down fresh. - The project's ruff rule set is pinned.
pyproject.tomldeclares[tool.ruff.lint]with
select = ["E4", "E7", "E9", "F"], soruff checkreads the same rules on every machine, and
ruffjoins thedevoptional dependencies (pip install '.[dev]').clients,crucible_axi
andtestspass it clean. The installer's own tests now declare only ephemeral ports in the
server templates they provision, never one in the shipped 3800–3899 window. - No project is anyone's default.
[bun] package_dirand[python] runnerare read from the
project's owncrucible.tomlonly, never the install's. The bun client'sintegrations/pi
fallback is gone: the package dir is--package-dir, then$BUN_CRUCIBLE_PACKAGE_DIR, then
[bun] package_dir, then the project root. A declared package dir that holds nopackage.json
is refused before anything is posted. - No client creates a project. The arduino client no longer registers the key its
.env
names, so a run under a key no project holds is refused by every client. The envelope carries the
board'sunknown project: <key>, itshelp[]on registering a project, and a warning naming the
.envthe key was read from. The arduino client no longer readsCRUCIBLE_PROJECT_NAME. finishrefuses a release with no notes.scripts/release.sh finishreads the version's
CHANGELOG.mdsection as committed at the release branch's HEAD, through
scripts/release-notes.sh, the extractor the release workflow also uses. It refuses, before it
writes anything, when the section is missing or empty or its heading carries no date. Its
provenance report reads the queue throughqueue --format json, which every client now accepts,
and no longer lists voided CRs as work that never landed.- A gate files a python suite under the tier its start directory names. When a gate's python
suite is apython -m unittest discover -s <dir>script whose<dir>ends in a tier the gate
covers (unit,integration, …), the gate runs it as that tier's verb, so the board shows its
run as that tier. Any other start directory still runs asregression. - The suites declare their tiers by directory.
test:clientis replaced bytest:client-unit
andtest:client-integration(tests/client/<tier>), andtest:unit/test:integrationrun
./tests/unitand./tests/integrationby path. The source-text classifier
scripts/test-targets.tsis gone; a test's tier is the directory that holds it. - The client suite runs offline from its own caches. Run
scripts/provision-test-caches.shonce,
online, to fill the suite's maven repository under.cache/test-suite/; the suite fills its go
and uv caches there itself. Thedevextra now also carrieshatchlingandhatch-vcs, so the
suite builds its wheels with--no-isolation.
Removed
- ⚠ The bun client's older declaration keys are refused. A
package.jsondeclaring
crucible.reportPath,crucible.rawReportorcrucible.testScriptis refused bytest,
regression, every tier verb andpre-merge-gate, before anything is filed. Declare
crucible.targetsinstead:crucible.reportPath.<script>becomes the entry'sjunit(flagorenv:<VAR>);crucible.rawReportbecomes the entry'sstream;crucible.testScriptbecomes"test": trueon the script's entry.
- ⚠ The
playwrightcodec. The board no longer accepts Playwright's JSON report: a
POST /api/v2/runsnamingcodec: "playwright"is refused with 400unknown codec: playwright,
and nothing is stored.GET /api/healthno longer listsplaywrightundercodecs.test, which
now listscrucible-events,go-test,junitandnextest. A
Playwright run files through the shipped reporter'scrucible-eventsstream instead.
Fixed
- A filed lint run is named in its envelope's
events.lint --agentlists the board's event
for its run inevents, as every verb that files a run does;eventsstays empty when nothing
was filed. - The Runs tab stays responsive while a run streams. A streamed batch updates only the running
cards, which sit in a container of their own; the timeline of settled runs is no longer rebuilt
and re-styled on every batch. The timeline's rows skip their style and layout while off screen.
The same holds on the home timeline.- A run card's agent id wider than the card now ends in an ellipsis inside the card.
- The dashboard no longer loads the Tailwind browser runtime. What it generated (its theme
variables, base reset and two utilities) is served as a static, vendored stylesheet
(/vendor/tailwind-4.2.4.css) linked after the dashboard's own, so a class name entering the
page no longer rewrites a stylesheet. The page looks as before.
- A run keeps the stack it was made on. Every client states its stack on every ingest, and the
board carries a run's start stack and tier onto the event that closes it. A closing ingest whose
stack, tier or framework differs from its start's is refused with 400, and nothing is written.
stacknow comes back on the events list and every brief, not only on the detail read. - Every python subtest is counted, pass or fail. A unittest run counts each passing subtest as
its own case, so a suite's total no longer shrinks when its subtests pass. - A python project's coverage config decides what is measured. With no
--cov-source, the
python client reads the project's own coverage.py configuration. When it declares what to
measure, the run passes no--source; when it declares nothing, the run measures the project
root and warnscoverage-source-undeclared. An earlier run's coverage data is erased first, so
it is never merged into the next run. - An interrupted run leaves nothing behind. A SIGINT or SIGTERM anywhere in a test verb's run
removes the agent's run identity, aborts the opened run and exits 128 plus the signal number, with
one envelope naming the signal. A signal during the ingest lets the ingest finish first, so the
results the runner earned are kept.- An interrupted runner's whole process tree is taken down, so a server it started no longer
outlives it. - The bun client gives every test runner it spawns a run-scoped
TMPDIRand removes it when the
runner exits. - A runner that exits non-zero with an empty report is a failure, never a
total: 0run.
- An interrupted runner's whole process tree is taken down, so a server it started no longer
- A runner that failed is never filed as green. Every client sends its runner's exit code with
each test ingest asrunnerExit. When it is non-zero and the report records no failure, the
board adds one failing case, suiterunner, caseexit <n>. A verb exits non-zero whenever its
runner did or its run has a failure, and each bun test file that fails to load is a failing case. - A bun test run refuses an entry that names no test.
bun-crucible.py test --testsreads its
entries as paths relative to the package directory. When one names nothing that exists
(tests-not-found) or names a file that is not a test (tests-not-a-test-file), nothing runs,
no run is opened, and one envelope lists the refused entries; before, bun read a missing entry as
a file-name filter that matched nothing and ran the rest green. The entries reachbun testas
./paths, so an entry no longer also selects other files whose path contains it. A script the
crucible.targetstable marks asteststill receives the entries unchanged, as its runner's
filters. - A python run through a symlinked install imports the project's own modules. When the
install'sclientsdirectory is a symlink, the python runner still puts the working directory
first on the module search path, so a project's tests import its own modules (CR-CRU-260). - A rust project outside git takes no gate lock. The rust gate lock is no longer placed in the
parent directory of a project outside git, where every such project shared it. Such a run goes
on unlocked and says so on stderr. - A dropped connection is answered. When the board resets or drops a connection mid-request, a
client answersconnection lost: …naming the board instead of failing with a traceback. It
reports the run as it reports one an unreachable board never took, and tries to abort the open
run:run-abortedwhen the board takes the abort,run-left-openwhen it cannot reach the board
either, and a warning that the board may hold the run when it was already settled. - A gate decision and a release are reported as they happened.
gate-respondjudges a decision
by whether the step it answered moved on, so a decision no-mistakes accepted is recorded and
reported as accepted even when the wait ran out. A held run's report names the reattaching
command,gate-run --intent "<intent>". A gate snapshot posted with no release keeps the release
of the run's earlier snapshots, andhistory --releasetells a planned release the project holds
from an unknown one. - Board fixes.
- On a phone, a tap on a history cycle line opens its runs:
→ Runssits only in the expanded
runs there, and on a touch screen the pill has a target of at least 44 px wherever it shows. - A milestone, gate or compile result is never drawn as a run chip on a cycle line, the collapsed
cue counts only test runs, and an aborted run's chip readsaborted. The project's status line
reads its newest test run or compile result, never a0/0milestone. - The run detail's failure jump counts the failures not yet opened (
▸ 1 more failure), its first
press opens the first failure, and once every failure has been opened it reads
▸ failure k of N. - An agent's card follows its streaming run's live counts from the first batch.
- An agent's card keeps a long running file inside it: the count stays whole and the path is cut
from its start, with the whole path as its hover title. - A tombstoned agent's runtime is never negative.
- On a phone, a tap on a history cycle line opens its runs:
Stack declaration changes
The stack declaration schema:
- The installer ships
crucible-declaration.schema.json, version 3. It lands beside the clients
at<target-dir>/clients/crucible-declaration.schema.json(~/.crucible/clients/by default).
An upgrade overwrites it; an uninstall leaves it, like every fleet file. - The manifest lists it.
crucible-clients.jsongainsdeclaration_schema: {path, version},
the version read from the packaged copy. A packaged schema that is missing, is not JSON or has no
integerversionfails the install fail-fast, naming its path. - The writer rule. A declaration writer writes only the stacks and fields it knows. It warns
when the schema'sversionis newer than the one it was built for. It never removes a field it
does not know. With no schema installed it writes nothing it cannot check. - Version 2 adds the
gostack.crucible-declaration.schema.jsongains agostack, which
reads no[targets]entry and declares only its[go] module_dirtable. - Version 3 exempts the marked entry from the bun gate's key rule. The bun
entry.key.gate
descriptor gains"marked": "exempt", and the bunmarkerdescriptor gains
"read_by": ["test", "regression", "pre-merge-gate"]:test,regressionand the gate read
the marked entry. A reader computing the gate rule from version 2 would refuse it.
For the bun stack (package.json's crucible block):
- Refused keys.
crucible.reportPath,crucible.rawReportandcrucible.testScriptare refused,
with or withoutcrucible.targets, by every verb and bypre-merge-gatebefore its tsc step. The
refusal (declaration-refused) names each key and what replaces it, exits non-zero and files
nothing.reportPath.<script>becomescrucible.targets.<script>.junit.rawReportbecomescrucible.targets.<script>.stream.testScriptbecomescrucible.targets.<script>.test: true.
- The
"test": truemarker.test,regressionand the gate (pre-merge-gate) read the
marker; the tier verbs ignore it.- Each of them refuses it when two entries carry it, when it is anything but
true(an unmarked
entry omits the field, sofalseis refused too), or when the marked script is missing from
scriptsor has an empty body. The gate refuses before its tsc step, posting nothing. - The gate also refuses, before its tsc step, a marked entry whose own entry is refused, and a
marked entry whose key names a tier the gate excludes (test:e2e), whichregressionruns. --nameis passed as-ttobun-testandvitest, and as--greptoplaywrightand
playwright-bdd.
- Each of them refuses it when two entries carry it, when it is anything but
- The gate.
pre-merge-gateruns each non-bun-testtarget as its own suite.- It refuses a non-
bun-testentry whose key is not atest:script, or is atest:key with
no script of that name inscripts, because it could not otherwise run it. The marked entry is
exempt: it is the gate's whole-suite run.
- Playwright's JSON report. A Playwright config needs no
jsonreporter: the client no longer
points one (PLAYWRIGHT_JSON_OUTPUT_NAME) into a stream run's reports dir, and the board no longer
reads it. Remove thejsonreporter from the config. Thejunitreporter stays, still pointed by
PLAYWRIGHT_JUNIT_OUTPUT_NAME. - Model B surfaces to reword. The
block-direct-bun-testhook and the bun agent templates name
crucible.testScriptandcrucible.reportPath. They should name thecrucible.targetsentry's
"test": truemarker and itsjunitinstead.
For the python stack (crucible.toml):
auto-ingestreads[python] runner. It states that runner as the run's framework, so a
pytest project that files throughauto-ingestdeclares[python] runner = "pytest". With nothing
declared, its runs stateunittestand get no pytest grouping. A declared value that is neither
pytestnorunittestis refused, with an envelope and nothing posted, as the running verbs
refuse it.auto-ingesttakes no--runnerand does not check that pytest imports.
For the rust stack (crucible.toml and .config/nextest.toml):
-
Every run streams through nextest. With an agent,
test,unit,integration,e2e,
regression-ingest,smoke-test,docker-e2e-gate,workspace-regression,regressionand
pre-merge-gatelist their tests, run them with nextest'slibtest-json-plusstream on, and the
board files the run from that stream. They no longer file nextest's JUnit report;auto-ingest
still does. -
The
[targets.<profile>]table. A project declares its runs in its owncrucible.toml, keyed
by nextest profile, with bun'scrucible.targetsvocabulary. The rust entry is
framework = "nextest"withstream = { codec = "nextest", path = "stdout" }. Undeclared
profiles (no entry, or nocrucible.toml) stream by default as if they declared it. Another
stack's entry (one naming another stack's framework,go-testincluded) is now skipped rather
than refused. Any other entry, or a project file that does not parse, is refused before anything
runs. The install's file
never declares. -
The standard profiles. A scaffold sets up
defaultandci(every test but the docker tier)
ande2e(the docker tier alone, run bydocker-e2e-gate) in.config/nextest.toml. A declared
tier profile no longer needs ajunittable. -
The minimum nextest. cargo-nextest 0.9.130 or later is required; an older one, or one whose
version cannot be read, is refused before anything runs. -
--ignore-run-failis retired.workspace-regressionandregressionrefuse it: a coverage
run now always writes its lcov withcargo llvm-cov report --failure-mode all. -
A board that lists no
nextestundercodecs.streamrefuses the run before anything runs. -
The gate's clippy step is its lint stage.
pre-merge-gaterunslintfirst, whose rust default
is the same workspace clippy command, so a project with no[lint]lints as before. A declared
[lint]replaces it. Model B's stack files read the gate's envelope; the mapping:Before After stage: "clippy"stage: "lint"errors,lintserrors,lints(unchanged), null when the board refuses the lint postclippy-gate-abortlint-gate-abort, the same in every client--skip-clippy--skip-lint;--skip-clippystays as its aliasCARGO_BUILD_JOBSenvunchanged clippyandworkspace-clippykeep their arguments; their records now carrylint: "clippy",
and a failingclippyexits non-zero.
For the arduino stack (crucible.toml and the native Makefile):
- A declared target streams its tests. A project declares a native run in its own
crucible.toml, keyed by native dir (--dir, relative to--project-dir) joined by/to the
make target:[targets."tests/native/junit"]withframework = "arduino-native"and
stream = { codec = "crucible-events", path = "env:CRUCIBLE_STREAM" }. Every field is required;
junit,consoleandcoverageare refused, as is a project file that does not parse. Another
stack's entry is skipped, andgo-testnow joins that skip set: ago-testentry, refused before,
is skipped. An undeclared target runs as before. - The
CRUCIBLE_STREAMmake contract. On a declared run with an agent,makeis handed
CRUCIBLE_STREAM, the absolute<REPORTS_DIR>/crucible-events.ndjson, emptied first. The
harness appends onetest-endline per test as it ends (pass,failorpending), in one
write, flushing after each line. It writes norun-startand norun-end: the client appends the
run-endfrom the run'sTEST-*.xml, which the harness still writes. When the variable is unset,
the harness writes nothing. - A board that lists no
crucible-eventsundercodecs.stream, or nolcovfor a coverage
run, refuses a declared run before anything runs. - Model B surfaces to update. Native harness templates adopt the stream; Crucible ships none.
For the maven stack (crucible.toml):
- The
[targets.<tier>]table. A project declares a tier's console in its owncrucible.toml,
keyed by the client's tier vocabulary (unit,module,integration,e2e,bdd,
regression;testreadsunit, andpre-merge-gatereadsregression). The maven entry is
framework = "surefire"withconsole = "surefire-console". Both fields are required;junit,
streamandcoverageare refused, as is a project file that does not parse, before any board
call,docker-upor maven. Another stack's entry is skipped, andgo-testnow joins that skip
set: ago-testentry, refused before, is skipped. A tier with no entry runs as before. - The
surefire-consoleview codec. A declared console is read on the board by the
surefire-consoleview codec. A board whose health lists nosurefire-consoleunder
codecs.viewrefuses a declared run before anything runs; a health that cannot be read refuses
nothing.
For the go stack (crucible.toml):
- The
[go] module_dirtable. A project may declare the directory holding itsgo.modas
[go] module_dir = "<dir>", relative to the project dir.testreads it after--module-dir,
GO_CRUCIBLE_MODULE_DIRand the nearestgo.modat or above the working directory. A project
file that does not parse declares nothing.regressionandpre-merge-gateread no declaration:
they run every module under the project dir (skippingvendor,testdata,node_modulesand
hidden dirs) into one run. TestMainruns twice per run. Thego test -listthat counts the run's total builds and
starts every test binary once more, so a package'sTestMainruns twice: once for the list and
once for the run. ATestMainwith side effects should tolerate that.- Below Go 1.27 the board reads the text form. That form cannot tell a
t.Logline from a
t.Errorline. So a test's log lines are carried in its failure message, and a parent's own
error beside a failing subtest is carried by the subtest's failure, not counted as its own case.