clan: classify mislabels any failure whose log mentions the disko flake as FailDisk — operator told to reformat #374
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#374
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found by the #183 rehearsal ratchet's first Task-3 gate drive
(2026-08-09, run
20260809T204304Zon the driver laptop) — filed by hand;the ratchet's reporter (#373) will file this class automatically once built.
classify(internal/clan/errors.go:167-176) routes a failed phase toFailDisk— "the disk could not be laid out", remedy "reformat it, thencontinue" — whenever stderr+stdout contains the substring
disko. But everyclan invocation that evaluates the community flake prints
as a PROGRESS line — the flake input's own URL. So any failure whose log
excerpt happens to include the unpack line (in this drive: the install phase
died mid-
copying path ... from cache.nixos.org, guest qemu exited and wasrestarted by its unit at 15:51:29) is reported to the operator as a disk-
layout fault with a reformat remedy — a wrong, destructive-sounding
instruction for what was plausibly a transient substitution/connectivity
death. Fail-loud got fail-wrong.
The
espsubstring in the same case arm has the same shape of risk(
expand-response-paramsstore paths containesp? no — but any path ormessage containing
espmatches, e.g.expand-response-paramsdoes NOT, itlacks the bare
esp… verify with a test), so the fix should anchor all ofthis arm's matches to real disko/mount failure shapes, not bare substrings.
Acceptance:
progress line (fixture from run
20260809T204304Z's fault text), whenclassifyruns, then the result is NOTFailDiskclassifyruns, thenFailDiskstill firesRoot cause of the triggering red is now PROVEN, and it confirms this
mislabel exactly as feared — twice in one afternoon.
Drives
20260809T204304Zand20260809T205457Z(driver laptop) both wentred at
enroll-activatewith the byte-identical "the disk could not be laidout — reformat it" failure. The guest's console journal has the true cause:
and earlyoom's own log at both moments:
The HOST ran out of memory and earlyoom killed the guest; clan's output
stopped mid-
copying path;classifythen matched thediskoflake-unpackprogress line and told the operator their disk could not be laid out and to
reformat it. A host-memory kill was reported as a target-disk fault with a
destructive-sounding remedy. The acceptance criteria in the body stand; this
comment is the live fixture material (both run dirs retained).
Fixed on
origin/main(a7cab09).The
FailDiskcase arm matched a baredisko/espsubstring anywhere in message+log, so the disko flake INPUT's own progress line (unpacking 'github:nix-community/disko/<hash>...' into the Git cache...) and a...expand-response-params...copy path (whoseresponsecarries a bareesp) both read as a disk fault — the earlyoom host-OOM kill of run20260809T204304Z/205457Zwas reported as "the disk could not be laid out — reformat it".Replaced the arm with a line-scanning
logSaysDiskhelper (internal/clan/errors.go), same discipline aslogSaysFailed: it fires only on a real mount/space failure line (could not mount/failed to mount/cannot mount/unable to mount/no space left) or adiskoname alongside anerror/failed/fatalmarker on the SAME line — the flake input appears only on unpacking/copying progress lines that carry no such marker, so it can never trip a match.Evidence:
TestClassify_DiskFlakeUnpackIsNotDisk(internal/clan/clan_test.go) table-pins both — the run20260809T204304Zfault text (flake-unpack + cache-copy + earlyoom SIGTERM) is NOTFailDisk, and genuine disko-mount / disko-error / no-space logs still fireFailDisk. Existingbaddisk(adapter_test) and taxonomy fixtures keep passing; fullgo build/vet/testgate green (all packages).sopstoken mislabels itmissing_varand eats the transport retry #1210sopstoken mislabels itmissing_varand eats the transport retry #1210config_eval— the one-shot transport retry never fires and the operator is told to fix a flake that is fine #1272