Four agent-native, read-only trust-recon CLI harnesses for the drive & SMART trust surface — what your drives self-report, what the smartd daemon believes about them, and what the block layer looks like right now. AI agents get one command per census with honest verdicts, row-class caps, and zero writes.
Censuses /etc/smartd.conf + /etc/default/smartmontools + the /etc/smartmontools listing. DEVICESCAN and device-token rows; the full -directive law (bare -a/-H/-f/-t; arg flags -d/-l/-W/-F/-P/-s/-n/-S/-o/-M/-m/-I/-i/-e/-C/-U/-r/-R), -W three-comma-integer law (MALFORMED_DIRECTIVE), -s interval text carried capped and never compiled, never executed; UNKNOWN_DIRECTIVE and DIRECTIVE_ARG_MISSING findings; secret-named keys masked length-only; honest rc6 when the config is absent.
Censuses /var/lib/smartmontools/smartd.state + smartd.warning.state + the directory listing. Device-type tokens carried positionally capped; epoch tokens ISO-noted; a present-with-content warning state is a DRIVE_WARNING_ACTIVE finding (counted, never interpreted); an absent state file is an honest NOT_PRESENT row — the daemon has simply never stamped one.
Censuses the attrlog.<device>.<bus>.csv histories under /var/lib/smartmontools — the per-device drive truth trail. Rows: epoch-seconds or YYYY-MM-DD HH:MM:SS datetime token0 (epoch-keyed); (id, norm, raw) attribute triplets with UNPAIRED_ATTRS / ATTR_ID_RANGE / ATTR_DUP laws; monotonic timestamp law — a decrease is TIMESTAMP_REGRESS, an equal pair TIMESTAMP_STALE; per-file census rows with first/last epoch keys. Real-world attrlog files (datetime rows) parse cleanly.
Censuses /dev/disk/by-* (lstat only — no /dev node bytes ever opened): dangling links, shared targets, non-symlinks; block-node stat law (world-writable = finding, group-writable labeled the disk-group normal); /sys/block disk nodes with size→bytes (512-byte law), rotational, and device model — device serials are NEVER read, serials_read: false is a first-class field in every report.
rc0 clean / rc4 findings / rc6 nothing readable (honest absence, never fabricated clean) / rc2 usage. --json emits the full report; --conf/--dir point the census laws at any file or tree. Pure stdlib, zero subprocesses, zero writes, zero network, row-class caps 10 + TRUNC, 200-file census cap, 2 MiB read cap. MIT licensed.
732 fixture-based executed assertions (210 + 194 + 185 + 143), fired twice plus clean-room fires from this exact shipping zip, 0 failed. Run python3 runner_count.py inside any unpacked bundle to reproduce the counted truth.