CLI-Anything Bundle #78 — Udisks Storage Trust Recon Pack

Four agent-native read-only harnesses that census the UDisks2 storage trust surface: the layers that decide whether your host's storage-automation story can still be TRUSTED — the install + surface census (daemon binaries statted never executed, udisksctl CLI + org.freedesktop.UDisks2 D-Bus service classes, udisks2.service unit presence + drop-ins, vendor polkit actions census, kernel module token classes), the persistence/config census (/etc/udisks2 config family grammar — keyval format classes, ENCRYPTION/IDLE/MODULES knob classes, permission findings, duplicate-key laws — device-ish values tokenized, never printed), the loop-device trust census (/sys/block/loop* flag+backing classes — dangling, sticky, and world-writable-backing findings with backing paths tokenized — plus loop module parameter rows), and the mount-allow policy census (polkit rules family grammar — public udisks2 action-ID surfaces, result vocabulary rows, WIDENED_MOUNT/WIDENED_LOOP/ORPHAN_ACTION findings, vendor-policy delta rows, subject identities tokenized). No other bundle owns this surface — #70 keeps the watchdog keepalive layer, #74 the LXC layer, #75 the ARP-filter layer, #76 the fstrim/discard layer (census: 0 exact / 0 name-class substring token collisions across the whole shipping catalog, 151 Gumroad products pulled fresh). The UDisks2 storage-trust layer is unclaimed census territory.

The contract

Every tool: rc0 clean / rc4 findings / rc6 honest nothing-readable / rc3 bad usage (argparse subclass law); --json emits exactly one report object with the keys data/findings/notes/rc/summary/tool; the default mode prints one human summary line plus capped findings rows. python3 -m cli_anything.<tool> [--json] with per-tool UDK_* env overrides (see each SKILL.md). Pure Python stdlib — zero spawned lines, zero writes, zero network; binaries, units, configs, kernels, sysfs and rules are read and statted once, and nothing is ever executed. The daemon and polkit surfaces are never executed; no socket/pid/lock is ever opened or connected; block-device nodes/UUIDs/mountpoints/backing paths/polkit subjects print as class tokens only (DEV1/UUID1/MP1/BACKING1/SUBJECT1). The census never "fixes" a posture — it names it.

Self-test battery inside

2566 fixture-based executed assertions (checks.py + runner_count.py per bundle norm) — verified as: three green fires from the shipping tree and two clean-room fires from THIS exact shipping zip (2566/0 every fire; sha256 32250774fdccf0920bc1818fcb0e4a2e4f9d084b595fbe35cb8c3dac70a8ddc7), plus real-host smoke fires of all four tools (honest rc4 policy-class finding / rc0 / rc4 backing-class finding / rc0). The battery pins rc laws, every finding code, the never-execute law, grammar edges, caps, masking laws, the clean-room location law (green from ANY unzip location), and zero-scratch fingerprints.

Who this is for

Admins who can't honestly answer whether their UDisks2 install posture, persistence layer, loop-device state and mount-allow policy still hold together on this host; hardening teams proving daemon units, config grammar, loop flags and polkit bindings still form a closed loop; agent builders who want their AI to census a host's storage-automation trust story without ever touching it. The census reads — your storage stack is never touched.

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