feat(kvb-cleanup): take the inventory from pkgmgr gc --report

The /tmp inventory starts from one read-only pkgmgr gc --report pass over /tmp and the write-scope dirs, du -sh only without pkgmgr. The worktree-orphans rule moves into worktrees.md, keeping SKILL.md under its 600-word cap at unchanged token cost.

🎯 Fix: 95 %
💥 Break: 2 %
💸 Cost: 100 %
⏱️ Time: 100 %
🛡️ Security: 100 %
🏆 Score: 93
🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 %

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit ad2e97aae428fe23e3a4828776ff045766ff9722)
This commit is contained in:
Kevin Veen-Birkenbach committed 2026-11-12 10:38:54 +00:00
1 parent ebe7886654
commit 7199e6bfba
2 files changed
+6 -7

No files matched your search

+4 -7
View File
@@ -25,14 +25,11 @@ Code: `sandbox.filesystem.allowWrite`) and session scratch dirs; never
another user's files. Prefer the project's cleanup and teardown targets; obey
rules forbidding raw commands.
- **/tmp**: `du -sh` per own top-level entry; system entries (`.X11-unix`,
`.ICE-unix`, `systemd-private-*`, `ssh-*`, `tmux-*`, sockets) are never
candidates.
- **/tmp**: `pkgmgr gc --report --docker --root /tmp --root <write dir>`,
else `du -sh` per own entry; system entries (`.X11-unix`, `.ICE-unix`, `systemd-private-*`,
`ssh-*`, `tmux-*`, sockets) are never candidates.
- **Docker**, **worktrees**: read `docker.md` (its `⚠ Volumes` checklist
joins Step 4) and `worktrees.md` next to this file when present. Only at
watch stage `warn` or worse, or with worktrees among the biggest consumers:
`kvb-git-worktree-orphans --sizes`, its largest orphaned worktrees as
candidates.
joins Step 4) and `worktrees.md` next to this file when present.
- **Agent dirs**: pip, npm, pre-commit, act, gh, buildx caches; Ansible and
build temp dirs.
- **Register**: `council.py list --long`; `rasci.py artifacts` (`kvb-org-artefacts`,
+2
View File
@@ -7,6 +7,8 @@ whether its HEAD is in an integration line (the default branch and every
branch the project merges features into; ask the operator or the project's
memory). With `pkgmgr`, `pkgmgr gc --json --sizes --merged-into <line>`
(one per line) measures it all; its candidates go to the `kvb-git-gc` skill.
At `warn` or worse, or with worktrees on top of the report, add the largest of
`kvb-git-worktree-orphans --sizes`.
Clean and in a line: medium, its ignored files (`node_modules`, build output,
evidence) are lost. Dirty: a candidate only when every changed, staged and