masked_exit false-positives on a genuinely-complete install (enroll-configure) — and excerpt() floods Detail with benign token noise so the tripping line is invisible #451
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.
Blocks
Reference
Matou/idss#451
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?
Re-scoped after live investigation (Ben-approved ruling, 2026-08-11 ~23:00Z)
Drive
20260811T221125Zred at enroll-configure withmasked_exit("clan reported success but the log shows a real failure"). The install actually succeeded. Probe of the kept droplet (clan-lab-rehearsal-970eb093, 170.64.173.170, before its TTL reap): disko partitioned (vda1/vda2-boot/vda3-root), a complete NixOS tree mounted at /mnt, 692 store paths, sshd config present. The box sat in the kexec installer only because the leg faulted before issuing the reboot. Exit code was 0; some line in the install output trippedlogSaysFailed's marker scan (failed to/error:/fatal:/traceback/cannot).Which line tripped it is unknowable from the filed evidence — that is the second defect.
classify()(internal/clan/adapter.go~354) feeds the FULL output toClassify, then narrowsDetailtoexcerpt(), whose token list includesevaluation,sops, andesp. The 8-line cap filled with kanidm eval-warnings (evaluation), sops-install-secrets build progress (sops), and a cache-copy line matchingespINSIDEperl…XML-NamespaceSupport— the same substring-on-progress-noise class as #374. The real marker line was cut, the full output is persisted nowhere, the healer declined, the reporter's diagnosis was unparseable, and this ticket arrived evidence-free as ready-for-human.Work (test-first)
Classifycarries its own proof. WhenlogSaysFailedfires, the masked_exitFailure.DetailMUST contain the exact line(s) that matched — return them from the detector instead of re-grepping withexcerpt()'s noisy token list.classify()must not overwrite that proof with the excerpt.excerpt().evaluation warning:lines,…-sops-install-secrets-…drv/build progress, and store-path/copying lines must not consume the 8-line budget (line-by-line discipline, same aslogSaysDisk's #374 fix). Realevaluationerrors (does not evaluate,failed assertions) still kept.logSaysFailed's exemptions besidefailed to reloadanderror (ignored), with a comment naming this drive.internal/clan/clan_test.go: (a) a zero-exit log whose only marker line is the newly-exempted benign phrase classifies nil (success); (b) a zero-exit log with a real failure line beside that phrase still classifies masked_exit AND its Detail contains the real line; (c) excerpt() drops eval-warning/sops-progress/NamespaceSupport noise.Notes
test-results/…/20260811T221125Z/on matou-workstation (founding-state.log carries the truncated fault; droplet-journal.txt is installer boot noise only).rehearsal drive red at enroll-configureto masked_exit false-positives on a genuinely-complete install (enroll-configure) — and excerpt() floods Detail with benign token noise so the tripping line is invisibleFixed in
b102fcc(on origin/main).Defect 2 (excerpt floods Detail) — fully fixed.
excerpt()now drops progress/warning noise line-by-line (isBenignExcerptNoise):evaluation warning:lines, store-path copies (copying path/unpacking '/downloading '), and drv-build progress (building '….drv') no longer consume the 8-line budget. Real eval errors (does not evaluate,failed assertions, bareerror:) are kept. Same substring-on-progress discipline as #374.Defect 1 (proof unknowable) — fixed at the mechanism.
logSaysFailednow RETURNS the exact line(s) that tripped its marker scan, andClassifycarries those verbatim as the masked_exitDetail.classify()(adapter.go) no longer overwrites that proof with the excerpt (only non-masked kinds are narrowed). The tripping line now travels with the failure instead of being re-grepped away.Item 3 (exempt the benign phrase). The drive's exact cut line is unknowable from the filed (truncated) evidence —
excerpt()had already discarded it before it was persisted. I exempted nix's own softwarning: error: … retrying(a substitution nix retries then succeeds — the benign classrunRawNixcites atenrollment.go:948-951), besidefailed to reload/error (ignored), naming this drive in the code comment. This is the best-supported candidate. Because defect 1 now makes any residual tripping line self-evident in the masked_exitDetail, a re-drive will either go green or surface the exact line for a one-line follow-up exemption — no longer evidence-free.Tests (
internal/clan/):TestClassify_MaskedExitCarriesTheTrippingLine(proof is the tripping line only, no benign noise),TestClassify_BenignNixWarningIsNotMasked(4a/4b: benign-only → nil; a real line beside it → masked_exit carrying the real line),TestExcerpt_DropsProgressAndWarningNoise(4c),TestExcerpt_KeepsRealEvalErrors. Fullgo test ./internal/clan/green; pre-push gate green.Rationale in the commit message and the STATUS.md milestone-log entry.