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.
fstrim binary statted ONLY under /usr/sbin, /usr/bin, /usr/local/bin, /usr/local/sbin — BINARY_PRESENT/BINARY_ABSENT rows, never executed; fstrim.timer + fstrim.service presence rows across /lib/systemd/system, /usr/lib/systemd/system, /etc/systemd/system with multi-user/timers wants-link HINT rows (targets never read, AUTOSTART_HINT finding class); /var/lib/systemd/timers stamp-fstrim.timer mtime AGE BUCKET rows (STAMP_FRESH/STAMP_STALE/STAMP_ABSENT — content never read); /sys/block/<dev>/queue discard_max_bytes/discard_granularity/discard_zeroes_data presence rows with DISCARD_CAPABLE counts (devices as DEV1/DEV2 tokens); drift laws NO_TIMER / TRIMER_UNENABLED / TRIM_STALE / DISCARD_UNMAINTAINED; rc6 honest).fstrim.timer (+ --file/--unit-dir overrides) in systemd grammar: SECTION_ROWS for [Timer]/[Unit]/[Install]; OnCalendar SCHEDULE CLASS rows (WEEKLY/DAILY/MONTHLY/QUARTERLY/OTHER — raw calendar text NEVER prints); OnBootSec/OnUnitActiveSec INTERVAL classes; Persistent flag rows; AccuracySec class; companion .service lookup with ExecStart VALUE redacted (EXECSPEC row — binary+args never printed); WantedBy TARGET classes; findings TIMER_WITHOUT_SERVICE / NO_SCHEDULE / NOT_PERSISTENT / EMPTY_SCHEDULE / DUP_SECTION; UNPARSEABLE rows never crash; rc6 honest).--file override) in 6-field mount-row grammar: device/mountpoint ride M1/M2/DEV tokens (never raw), fstype family classes; DISCARD_FLAG + DISCARD_MODE rows per mount; commit/interval + atime-class adjacent hygiene rows; SSD-ADJACENT fs classes lacking discard => NO_DISCARD finding; tmpfs-with-discard => POINTLESS_DISCARD; duplicate mountpoint => DUP_MOUNT; root-no-discard => ROOT_NO_DISCARD; wrong-field-count => UNPARSEABLE (never crash); swap-row + bad-pass classes; rc6 honest).issue_discards ON/OFF class rows + PERM classes; /sys/block/dm-* count-only DEVICE_MAPPER rows; findings UNSUPPORTED_DISCARD / LVM_DISCARD_OFF / DISCARD_UNUSED; rc6 honest).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.
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.
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