Four agent-native read-only harnesses that census the CPU mitigation-posture trust surface: what the running kernel discloses about speculative-execution vulnerabilities (the per-vulnerability status files under /sys/devices/system/cpu/vulnerabilities), what mitigation capability the CPUs actually expose (flags, the kernel's own bugs: list, microcode revisions from /proc/cpuinfo), whether Simultaneous Multithreading leaves the L1TF/MDS-class posture open (SMT control + active + per-cpu topology), and what the boot command line actually ordered (the mitigations= family and per-vulnerability overrides in /proc/cmdline). No other bundle owns this surface — CPU hardware inventory (Bundle #12), boot integrity/IMA/EVM (Bundle #41), kernel maintenance (Bundle #54) and probe/trace trust (Bundle #52) are adjacent, not this.
/sys/devices/system/cpu/vulnerabilities: every file classed by its own first words — Not affected carried as data; Vulnerable: = VULNERABLE_STATUS; Mitigation: = data unless the line admits remaining exposure (...; SMT vulnerable) = MITIGATION_PARTIAL — the partially-covered law most tools miss; Unknown: = UNKNOWN_STATUS, an empty file = EMPTY_STATUS, an unreadable file = VULN_FILE_UNREADABLE. The 64-file census cap is named when hit; symlinks are resolved one hop and judged on the target, never on the link's own 0777; file modes ride along as data, never judged (kernel-managed). The boot command line posture rides inside: mitigations=off = MITIGATIONS_OFF, other values as data, bare nosmt noted./proc/cmdline under its own token law: MITIGATIONS_OFF for the kill-switch, per-vulnerability <key>=off = PERVULN_OFF across the 15 documented keys (spectre_v1, spectre_v2, spec_store_bypass, retbleed, mds, l1tf, mmio_stale_data, tsx, tsx_async_abort, itlb_multihit, ssb, srbds, srso, gather_data_sampling, reg_file_data_sampling), NO_PTI for nopti/pti=off, DUPLICATE_OPTION when mitigations= repeats, honest data rows for auto/nosmt/custom values, a bounded CMDLINE_TOKENS census, BOOT_IMAGE carried, and honest rc6 when the cmdline is absent or unreadable — an empty cmdline is honest data, never fabricated clean./proc/cpuinfo as the hardware-trust witness: CAP_PRESENT rows for the mitigation-relevant flag set (spec_ctrl, ibrs, ibpb, stibp, ssbd, arch_capabilities, spec_store_bypass) with per-flag cpu counts; SPEC_FLAGS_ABSENT when no CPU exposes any of them; CPU_BUG rows parsed from the kernel's own bugs: field (25-distinct cap named with a truncation row); BUGS_FLAGLESS when bugs are declared but no mitigation flag exists anywhere; MICROCODE / MICROCODE_ZERO / MICROCODE_MIXED / MICROCODE_ABSENT truth; FLAGS_DIVERGENT per-cpu flag-set consistency; CPU_MODEL + CPU_COUNT from cpu0, honest rc6 with zero processor blocks./sys/devices/system/cpu/smt plus per-cpu topology: SMT_ENABLED finding when control says on AND active says 1 (the value pair carried beside the finding — the L1TF/MDS-class exposure posture); the control state law (on / off / forceoff / notsupported / other-as-data); SMT_CONTROL_WRITABLE / _GROUP_WRITABLE mask law; symlinks resolved one hop with the link's own mask never judged; per-cpu online census with the 128-cpu cap named; sibling pairs from thread_siblings_list with SIBLING_UNPARSED and SIBLING_WIDE honesty; nosmt and mitigations=auto,nosmt cmdline tokens carried as posture data.Contract: rc0 clean / rc4 findings / rc6 nothing readable / rc2 usage, --json emits the full report per tool with path-override flags (--sysdir, --cmdline, --cpuinfo) so a battery can point the census laws at any fixture. Pure Python stdlib; zero subprocesses, zero writes, zero sockets; vulnerability status files, cpuinfo, cmdline and smt controls are only ever READ — the census never "fixes" an exposed posture, it names it.
Self-test battery: 222 fixture-based executed assertions inside (runner_count.py) — verified fired twice consecutively from this exact tree plus two clean-room fires from this shipping zip, 0 failed.
MIT license · stdlib-only · Python 3.8+. Read-only by construction: nothing is mitigated, disabled, or written by the census.