CLI-Anything Bundle #76 — FSTRIM Trust Recon Pack

Four agent-native read-only harnesses that census the SSD/TRIM maintenance trust surface: the layers that decide whether a Linux box's storage-trim story can still be TRUSTED — the install + discard-support posture (the fstrim binary statted under the standard bin dirs and NEVER executed, fstrim.timer/fstrim.service unit + multi-user/timers wants-link hints, last-run stamp age buckets, /sys/block discard-capability rows), the trim schedule + unit grammar (systemd .timer parsing with OnCalendar schedule CLASS rows — raw calendar text never printed — Persistent law, companion-service ExecStart redaction), the fstab trim/discard option census (6-field row grammar, discard flag/mode classes, stale-discard findings), and the sysfs + mounts discard posture (granularity/max class rows, active-discard mount rows, lvm.conf issue_discards stance, device-mapper counts). No other bundle owns this surface — #53 keeps the audit-rules layer, #63 the bootloader/EFI layer, #66 the AIDE integrity layer, #67 the firejail sandbox layer, #68 the USBGuard device-authorization layer, #69 the rootkit/malware-detection layer, #70 the watchdog keepalive layer, #71 the ZeroTier mesh layer, #72 the dnsmasq DNS/DHCP layer, #73 the dovecot mail-server layer, #74 the LXC container-trust layer, #75 the ARP-filter layer (census: 0 exact / 0 name-class substring token collisions across the whole shipping catalog, 149 Gumroad products pulled fresh). The TRIM/discard trust layer is unclaimed census territory.

The contract

Every tool: rc0 clean / rc4 findings / rc6 honest nothing-readable / rc3 usage; --version prints exactly 1.0.0 (CLI-Anything Bundle #76) and exits 0; --json emits one report object per tool (keys: data/findings/notes/rc/summary/tool). Pure Python stdlib — zero subprocesses, zero writes, zero sockets, zero network, zero process enumeration; the binaries are statted and NEVER executed; nothing is ever dialed, and no device name, mountpoint, UUID, or schedule literal is ever printed. TRIM identity rides class tokens only: devices print as DEV1/DEV2, mountpoints/fstab specs as M1/M2 tokens, calendar values as WEEKLY/DAILY/MONTHLY/INTERVAL classes, ExecStart values as EXECSPEC redactions — batteries assert the never-in-text laws over every stdout row and the full JSON dumps. UNPARSEABLE lines ride honest rows, never a crash. The census reads — your storage state is never touched.

Self-test battery inside

1,231 fixture-based executed assertions (fstrimpeek 257 + fstrimschedpeek 323 + fstabtrimpeek 321 + fsdiscardpeek 330; checks.py + runner_count.py per bundle norm) — verified as: three green fires from the shipping tree (1,231/0 every fire) and two clean-room fires from THIS exact shipping zip (1,231/0 every fire; sha256 38ca02b1f384f2e3a1d883d76351b206921e92713f289e6aa22f9ca95ca4a8c9), one unpack under /tmp and one under a home path — the battery verifies the 9-file tree from ANY unzip location — plus real-host smoke fires of all four tools (contract-consistent honest census on a box WITH the fstrim binary family, both units, a fresh stamp and 29 discard-capable devices: fstrimpeek rc0 all stances strong; fstrimschedpeek rc0 over the live timer + service pair; fstabtrimpeek rc4 with the real NO_DISCARD/ ROOT_NO_DISCARD drift; fsdiscardpeek rc4 with the honest DISCARD_UNUSED finding over 29 capable devices and zero active discard mounts). The battery pins rc laws, every finding code, the never-execute / never-open-socket / never-harvest-identity laws, bucket-membership edges, caps, masking laws, stat hygiene, and write-nothing fingerprints with zero scratch remnants.

Who this is for

Admins who can't honestly answer whether their box's TRIM story still holds (fstrim.timer unenabled, stamp stale, discard-capable drives that never get trimmed, fstab rows where discard was forgotten at provision time, lvm.conf issue_discards left off); hardening teams proving install posture, schedule grammar, fstab options and sysfs capability still form a closed loop; agent builders who want their AI to census a host's storage-trim trust surface without ever executing a binary, opening a socket, or harvesting a device name, mountpoint, or UUID. The census reads — your storage state is never touched.

MIT licensed · Python 3.8+ · 40 files · stdlib-only