smoke-private-path: preflight a host-memory floor — earlyoom killed the guest mid-drive, twice, as a confusing deep red #375
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#375
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 Task-3 gate drives (2026-08-09,
runs
20260809T204304Z+20260809T205457Z). Both drives died 6-7 minutesin at
enroll-activatebecause the HOST hit earlyoom's 10% floor (swapalready 100% full) and earlyoom SIGTERMed the 4 GiB qemu guest:
The harness exists to turn confusing failures into named ones
(
scripts/smoke-private-path.sh's own words), and this failure modecurrently surfaces as a deep journey red plus a WRONG classifier remedy
(#374). It must be a named refusal at second 0 instead.
Shape: in the preflight block (beside the /dev/kvm gate), read
MemAvailablefrom /proc/meminfo and refuse (die_host) when it is belowthe guest's allocation (4096 MiB, see the qemu
-min the unit) plus adrive-stack allowance (electron + chromium + builds; ~2 GiB — tune from the
two runs' evidence: both kills came with qemu VmRSS ~3.2-3.7 GiB and avail
at 1.38 GiB). Name earlyoom in the message when /usr/bin/earlyoom is
present, since it makes the kill CERTAIN rather than possible. A
swap-nearly-full warning line (not a refusal) is worth printing too.
Acceptance:
it refuses with a PREFLIGHT: line naming the numbers and the remedy
(close consumers / run on a bigger host), before any build
unchanged
Landed as
3d49b67on origin/main.scripts/smoke-private-path.shnow preflights a host-memory floor beside the /dev/kvm gate: it reads MemAvailable from /proc/meminfo anddie_hosts (PREFLIGHT: line, before any build) when it is belowOC_HOST_MEM_FLOOR_MIB=6144(4096 MiB founding guest per GatewayFloor in internal/founding/standup.go + ~2048 MiB drive stack). The refusal names the numbers and the remedy (close consumers / bigger host); when /usr/bin/earlyoom is present it says the kill is CERTAIN. A swap ≥90%-full WARNING (not a refusal) is printed too. The floor is a named constant carrying the two runs (20260809T204304Z + 20260809T205457Z) evidence in its comment. A healthy host is unchanged; a kernel with no MemAvailable line prints a note and skips.Verified against synthetic /proc/meminfo: the 1.38 GiB kill point refuses with exit 3 and the numbers; a healthy host passes; swap 95% warns but passes; a missing MemAvailable line skips gracefully. All three acceptance clauses met.
Third earlyoom kill of the day, from the Nextcloud-provision drive (
20260809T215349Z, worktree bridge-cse):earlyoom: mem avail: 1376 of 13844 MiB (9.94%), swap free: 37 of 4095 MiB (0.92%) — at or below SIGTERM limits: mem 10%, swap 10%. The sweep took mattermost, chrome, and the guest's qemu;ourcloud-guest.servicerestart counter hit 1 at 17:05:46, and the drive'senroll-activateleg red'd as "disk could not be laid out" when its SSH died mid-step.enroll-activatedid uncached guest-side work the morning greens never did (github flake unpacks + asops-install-secretssource build at the disk step) — both today's post-payload-rebuild drives hit it. That lengthens the high-pressure window; I'll file it separately once my headroom re-drive isolates it from the memory kill.