gates / gates (push) Successful in 1m58s
Read-only measurement on demo-hp, demo-felhom and Tester 1, two readings. Audit folder documentation/audits/space-list-2026-11-10/ (README, TABLE, MATRIX, evidence, tools). 360 answers: A 294, D 0, K 19, N 47. Register 225 -> 230: R-1368 (host places that only grow: kernels, agent binaries), R-1369 (no written way out of a full disk), R-1370 (no space budget for the host disk), R-1371 (no space alarm; host-disk mail goes to the household), R-1372 (small guest places). A dated line on nine existing rows. Section headings set to the real counts; R-1268 and R-1312 moved to their category's section. STATUS: new Updated paragraph, decisions D67-D70. N100 diary line. Two stale facts corrected in 05-hub-architecture.md and 11-os-updates.md. Nothing was changed on any machine. Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
67 lines
3.5 KiB
Bash
67 lines
3.5 KiB
Bash
#!/usr/bin/env bash
|
|
# The searches behind every N ("nobody asked") answer. Read-only: grep over the git clones on DooPlex.
|
|
# Each search prints hit counts for: architecture folder, open register, closed register, runbooks, source.
|
|
# Controls first: a word that MUST hit and a word that must NOT — a search that fails its control proves nothing.
|
|
set -u
|
|
W=/mnt/5_hdd/felhom.eu/git
|
|
D=$W/felhom.eu/documentation
|
|
SRC="$W/felhom-agent/internal $W/felhom-agent/configs $W/felhom-agent/cmd $W/felhom-controller/controller/internal $W/felhom-controller/controller/cmd $W/felhom.eu/hub/internal $W/felhom.eu/scripts"
|
|
count() { # count <pattern>
|
|
local p="$1"
|
|
printf '%-58s arch=%-4s open=%-4s closed=%-4s runbooks=%-4s source=%s\n' "$p" \
|
|
"$(grep -rliE -- "$p" $D/architecture 2>/dev/null | wc -l)" \
|
|
"$(grep -ciE -- "$p" $D/backlog/OPEN-ITEMS.md)" \
|
|
"$(grep -ciE -- "$p" $D/backlog/CLOSED-ITEMS.md)" \
|
|
"$(grep -rliE -- "$p" $D/runbooks 2>/dev/null | wc -l)" \
|
|
"$(grep -rliE --include='*.go' --include='*.sh' --include='felhom-*' -- "$p" $SRC 2>/dev/null | grep -v _test.go | wc -l)"
|
|
}
|
|
echo "# searches run $(date -u +%FT%TZ) — counts are FILES for arch/runbooks/source and LINES for the two registers"
|
|
echo "## controls"
|
|
count 'thin'
|
|
count 'kernel'
|
|
count 'megtel' # Hungarian ASCII fragment, positive control ("megtelt" = it is full)
|
|
count 'zzqxnope' # negative control
|
|
echo "## S1 old kernels: who removes them"
|
|
count 'autoremove'
|
|
count 'old kernel|kernel.*(remov|purge|prune)|(remov|purge|prune).*kernel'
|
|
count '/lib/modules'
|
|
echo "## S2 agent self-update staging folder: who prunes it"
|
|
count 'selfupdate.*(prune|clean|remove old|keep)|(prune|clean).*selfupdate'
|
|
count 'felhom-agent/selfupdate'
|
|
echo "## S3 golden archive left in the dump folder"
|
|
count 'remove-golden|golden.*(archive|tar\.zst).*(delete|remove|prune|keep)'
|
|
count 'vzdump-lxc-9100'
|
|
echo "## S4 host-disk alarm: who receives it"
|
|
count 'host_disk_(warning|critical)'
|
|
count 'storage_fill_(warning|critical)'
|
|
count 'host_disk_'
|
|
count 'storage_fill_'
|
|
echo "## S5 a space budget for the host system disk"
|
|
count 'space budget|disk budget|budget for (the )?(host|root|system)'
|
|
echo "## S6 a written way out of a full disk"
|
|
count 'disk[- ]full|No space left|ENOSPC'
|
|
count 'megtelt|betelt|tele van'
|
|
echo "## S7 helper images: a rule that deletes or refreshes them"
|
|
count 'helper image'
|
|
count 'hello-world'
|
|
count '"alpine"'
|
|
echo "## S8 off-site restore copy: an age or size limit"
|
|
count 'offsite-restore'
|
|
count 'offsite-restore.*(days|limit|age|sweep|prune)|(sweep|prune).*offsite-restore'
|
|
echo "## S9 guest root filesystem: a watcher"
|
|
count 'guest.{0,12}root ?(fs|filesystem).*(warn|alarm|watch)|rootfs.*(warn|alarm|fill)'
|
|
echo "## S10 restic cache"
|
|
count 'restic.{0,6}cache|RESTIC_CACHE_DIR|--cache-dir|--no-cache'
|
|
echo "## S11 template cache"
|
|
count 'template/cache|pveam'
|
|
echo "## S12 container log cap re-check on a running box"
|
|
count 'max-size|log-opts'
|
|
echo "## S13 EFI partition: what happens when it fills, who watches it"
|
|
count '/boot/efi' # how often the place is named at all (boot mechanics)
|
|
count '(boot/efi|\besp\b|efi partition).{0,80}(full|fills|free space|no space|percent|megtel)'
|
|
echo "## S14 the system log's storage and cap (host and guest)"
|
|
count 'journald\.conf|SystemMaxUse|RuntimeMaxUse|Storage=(volatile|persistent|auto)'
|
|
count 'guest.{0,40}journal.{0,60}(memory|volatile|/run|lost|persist)'
|
|
echo "## S15 the log of a failed whole-box backup run"
|
|
count 'vzdump.{0,60}\.log.{0,60}(remove|delete|prune|keep|stay)|failed.{0,30}vzdump.{0,30}log'
|