matou-workstation: /tmp holds 43 G on an 88%-full root disk — matou-test-backend.log alone is 3.8 G with a 29-day-old tail pinning it #1223

Closed
opened 2026-09-04 20:38:26 +00:00 by ben · 2 comments
Owner

Found 2026-09-04 while re-attributing #1207's host evidence (the workstation turned out NOT to be #1207's box — this is its own, different timebomb).

State (live survey)

  • Root disk /dev/vda1: 203 G used of 232 G (88%), 29 G free. /tmp here is disk-backed (not tmpfs) and holds 43 G of it.
  • Top residents: matou-test-backend.log 3.8 G (an open log — a tail process 29 days old holds it, alongside a node process of the same vintage), /tmp/claude-1000 1.7 G (session scratchpads), android-repro 1.6 G, heal-fix 1.1 G, ci-repro-pr7 1.0 G, heal-inspect 673 M, plus a long nix-shell.* tail.

Why it matters

At the current accumulation rate the factory's primary runner runs its root disk to 100%, and a full root disk kills everything on the box at once — Forgejo jobs, the session-runner, the healer — in ways that present as anything but "disk full" (GOTCHAS #92 class: the failure will surface far from the cause).

Fix shape

  • Truncate, don't delete, the open log (: > /tmp/matou-test-backend.log) — deleting it keeps the space pinned by the open fd. Then ask whether the 29-day-old tail/node pair (matou-app test backend?) should be running on this box at all — it looks like leaked test infrastructure, the matou-app#331 class.
  • Sweep /tmp entries older than a few days (same policy as the elitebook clean in #1207: user-owned, ≥2 days, keep active work).
  • Consider the same tmpfiles.d age rule being applied to elitebook under #1207, so this never needs a hand-sweep again.

Host access and the truncate need hands or a ! (the auto-mode classifier walls remote state-writes from sessions).

Found 2026-09-04 while re-attributing #1207's host evidence (the workstation turned out NOT to be #1207's box — this is its own, different timebomb). ## State (live survey) - Root disk `/dev/vda1`: **203 G used of 232 G (88%)**, 29 G free. `/tmp` here is disk-backed (not tmpfs) and holds **43 G** of it. - Top residents: `matou-test-backend.log` **3.8 G** (an open log — a `tail` process 29 days old holds it, alongside a node process of the same vintage), `/tmp/claude-1000` 1.7 G (session scratchpads), `android-repro` 1.6 G, `heal-fix` 1.1 G, `ci-repro-pr7` 1.0 G, `heal-inspect` 673 M, plus a long `nix-shell.*` tail. ## Why it matters At the current accumulation rate the factory's primary runner runs its root disk to 100%, and a full root disk kills everything on the box at once — Forgejo jobs, the session-runner, the healer — in ways that present as anything but "disk full" (GOTCHAS #92 class: the failure will surface far from the cause). ## Fix shape - **Truncate, don't delete, the open log** (`: > /tmp/matou-test-backend.log`) — deleting it keeps the space pinned by the open fd. Then ask whether the 29-day-old `tail`/node pair (matou-app test backend?) should be running on this box at all — it looks like leaked test infrastructure, the matou-app#331 class. - Sweep `/tmp` entries older than a few days (same policy as the elitebook clean in #1207: user-owned, ≥2 days, keep active work). - Consider the same `tmpfiles.d` age rule being applied to elitebook under #1207, so this never needs a hand-sweep again. Host access and the truncate need hands or a `!` (the auto-mode classifier walls remote state-writes from sessions). <!-- session-host: matou-workstation -->

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: ready-for-session (pinned to matou-workstation), category bug

The ruling. This is host hygiene on matou-workstation — truncate the leaked-fd log, sweep aged /tmp scratch, and decide the 29-day-old tail/node pair's fate. The reporter states host access + the truncate need "hands or a !" (the auto-mode session escape for remote state-writes). Because a ! session can do it, this does not require Ben's hands or eyes — so it is not ready-for-human. It also cannot go to the swarm (ready-for-agent): swarm workers have no host standing on matou-workstation, and this is a live-infrastructure state-write. ADR 0174 rule 5 mints exactly this case as ready-for-session.

Why it's a two-way door. The targets are leaked test-infra scratch (matou-test-backend.log, an escaped matou-app test backend — the matou-app#331 class) and /tmp entries older than a few days. This is routine host hygiene under the established #1207 precedent (user-owned, ≥2 days, keep active work), not the ADR 0174 "destroying data" one-way door, which guards member/production data. The box keeps running; anything the swept scratch fed can be re-run. Truncating with : > (not rm) deliberately preserves the open fd so the space actually frees.

What proves it. df -h / and du -sh /tmp/* before and after — the pass reclaims the ~43 G and drops root below the 88% line. A follow-up df on a later session confirms it holds (i.e. the tail isn't re-growing).

Pinned to the host (#746). Only matou-workstation holds the disk and the door, so a session-host marker is added to the body — other hosts skip it at pick time rather than burning an escalation attempt (the #743 failure mode).


Agent brief (for the session that picks this up)

Goal. Bring matou-workstation's root disk back under pressure and stop the leaked test backend from re-filling it.

Steps.

  1. Survey first: df -h / and du -sh /tmp/* 2>/dev/null | sort -rh | head -30 — capture the before-state in a comment.
  2. Truncate the open log, do not delete it: : > /tmp/matou-test-backend.log. Deleting leaves the 3.8 G pinned by the holding tail/node fd.
  3. Investigate the 29-day-old tail + node pair (ps -o pid,etime,cmd -p <pids>). If it's a leaked matou-app test backend (matou-app#331 class) with nothing depending on it, stop it and note what it was; if unsure, leave it running but record the finding — killing a leaked test proc is itself a two-way door.
  4. Sweep aged /tmp scratch with the #1207 policy: user-owned, mtime ≥ 2 days, keep anything that looks like active work (android-repro, heal-fix, heal-inspect, ci-repro-pr7, the nix-shell.* tail — check mtimes, don't blanket-delete live sessions).
  5. Durability: apply the same tmpfiles.d age rule being wired for elitebook under #1207 so this never needs a hand-sweep again. (If #1207's rule isn't merged yet, add a depends_on on it or note the coupling.)
  6. Re-survey: post df -h / + top /tmp residents after, confirming the reclaim.

Guardrails. : > not rm on the open log. Don't touch non-/tmp paths. If a swept dir turns out to belong to a live session, that's the line — stop and report.

Related: #1207 (elitebook cold-tmpfs / tmpfiles.d age rule — the sibling host), GOTCHAS #92 class (a full root disk surfaces far from its cause), matou-app#331 (leaked test infrastructure).

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** ## Ruling: `ready-for-session` (pinned to matou-workstation), category `bug` **The ruling.** This is host hygiene on `matou-workstation` — truncate the leaked-fd log, sweep aged `/tmp` scratch, and decide the 29-day-old `tail`/node pair's fate. The reporter states host access + the truncate need "hands **or** a `!`" (the auto-mode session escape for remote state-writes). Because a `!` session *can* do it, this does **not** require Ben's hands or eyes — so it is not `ready-for-human`. It also cannot go to the swarm (`ready-for-agent`): swarm workers have no host standing on `matou-workstation`, and this is a live-infrastructure state-write. ADR 0174 rule 5 mints exactly this case as `ready-for-session`. **Why it's a two-way door.** The targets are leaked test-infra scratch (`matou-test-backend.log`, an escaped matou-app test backend — the matou-app#331 class) and `/tmp` entries older than a few days. This is routine host hygiene under the established **#1207** precedent (user-owned, ≥2 days, keep active work), **not** the ADR 0174 "destroying data" one-way door, which guards member/production data. The box keeps running; anything the swept scratch fed can be re-run. Truncating with `: >` (not `rm`) deliberately preserves the open fd so the space actually frees. **What proves it.** `df -h /` and `du -sh /tmp/*` before and after — the pass reclaims the ~43 G and drops root below the 88% line. A follow-up `df` on a later session confirms it holds (i.e. the tail isn't re-growing). **Pinned to the host (#746).** Only `matou-workstation` holds the disk and the door, so a `session-host` marker is added to the body — other hosts skip it at pick time rather than burning an escalation attempt (the #743 failure mode). --- ## Agent brief (for the session that picks this up) **Goal.** Bring `matou-workstation`'s root disk back under pressure and stop the leaked test backend from re-filling it. **Steps.** 1. Survey first: `df -h /` and `du -sh /tmp/* 2>/dev/null | sort -rh | head -30` — capture the before-state in a comment. 2. **Truncate the open log, do not delete it:** `: > /tmp/matou-test-backend.log`. Deleting leaves the 3.8 G pinned by the holding `tail`/node fd. 3. Investigate the 29-day-old `tail` + node pair (`ps -o pid,etime,cmd -p <pids>`). If it's a leaked matou-app test backend (matou-app#331 class) with nothing depending on it, stop it and note what it was; if unsure, leave it running but record the finding — killing a leaked test proc is itself a two-way door. 4. Sweep aged `/tmp` scratch with the **#1207 policy**: user-owned, mtime ≥ 2 days, keep anything that looks like active work (`android-repro`, `heal-fix`, `heal-inspect`, `ci-repro-pr7`, the `nix-shell.*` tail — check mtimes, don't blanket-delete live sessions). 5. **Durability:** apply the same `tmpfiles.d` age rule being wired for elitebook under #1207 so this never needs a hand-sweep again. (If #1207's rule isn't merged yet, add a `depends_on` on it or note the coupling.) 6. Re-survey: post `df -h /` + top `/tmp` residents after, confirming the reclaim. **Guardrails.** `: >` not `rm` on the open log. Don't touch non-`/tmp` paths. If a swept dir turns out to belong to a live session, that's the line — stop and report. **Related:** #1207 (elitebook cold-tmpfs / tmpfiles.d age rule — the sibling host), GOTCHAS #92 class (a full root disk surfaces far from its cause), matou-app#331 (leaked test infrastructure).
Author
Owner

Fixed and verified live (2026-09-05, Ben's hands + session verification):

  1. The leaked pair is dead. The log's writer turned out to be a quasar dev server (/home/dev/matou/matou-app/frontend) running 29 days, with a 30-day-old tail -20 beside it — both killed after verifying their command lines still matched (a guard against pid recycling), then the log deleted outright (4.05 G and still growing at kill time — no truncate needed once the writer was gone).
  2. The sweep: 43,381 dev-owned /tmp entries ≥2 days old removed; /tmp/claude-1000 (live session scratchpads) deliberately excluded. Root disk 92% → 78% (33 G freed — it had crept 4 points further in the day since filing), /tmp 44 G → 5.3 G.
  3. The standing rule: /etc/tmpfiles.d/tmp.conf now shadows the stock 30-day rule with D /tmp 1777 root root 3d; systemd-tmpfiles-clean ran Result=success at 05:07 UTC. Same regime as elitebook-03 (#1207): residue can no longer accumulate past 3 days on either factory host.

Note for matou-app folks: if that quasar dev server was somebody's standing manual-testing surface, it's gone — restart it deliberately (and log somewhere rotated, not /tmp).

**Fixed and verified live (2026-09-05, Ben's hands + session verification):** 1. **The leaked pair is dead.** The log's writer turned out to be a `quasar dev` server (`/home/dev/matou/matou-app/frontend`) running 29 days, with a 30-day-old `tail -20` beside it — both killed after verifying their command lines still matched (a guard against pid recycling), then the log deleted outright (4.05 G and still growing at kill time — no truncate needed once the writer was gone). 2. **The sweep:** 43,381 dev-owned `/tmp` entries ≥2 days old removed; `/tmp/claude-1000` (live session scratchpads) deliberately excluded. Root disk **92% → 78%** (33 G freed — it had crept 4 points further in the day since filing), `/tmp` 44 G → 5.3 G. 3. **The standing rule:** `/etc/tmpfiles.d/tmp.conf` now shadows the stock 30-day rule with `D /tmp 1777 root root 3d`; `systemd-tmpfiles-clean` ran `Result=success` at 05:07 UTC. Same regime as elitebook-03 (#1207): residue can no longer accumulate past 3 days on either factory host. Note for matou-app folks: if that quasar dev server was somebody's standing manual-testing surface, it's gone — restart it deliberately (and log somewhere rotated, not `/tmp`).
ben closed this issue 2026-09-05 05:08:43 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1223
No description provided.