Four agent-native read-only harnesses that census the running kernel's exec-and-protection control surface: what images it will ACCEPT (kexec), what interpreters are REGISTERED (binfmt_misc), who may MINT user namespaces (unprivileged userns gates), and which filesystem protections are actually ON (fs.protected_*). Integer + stat + digit truth only; counts never invented; honest absence carried honestly. No other bundle owns this layer — process/exec trust (Bundle #38), boot-integrity lockdown/IMA (Bundle #41), sysctl/dmesg knob parsing (Bundle #14), and kernel maintenance (Bundle #54) are adjacent, not this.
kexec_loaded / kexec_crash_loaded / kexec_crash_size as integer truth (absent = state_absent rows, never guessed), every state file lstat'd with world/group-writable bits as findings, the newer /sys/kernel/kexec sibling dir censused one-hop (children counted + capped, stray names carried, never read as state), KEXEC_SURFACE_DRIFT when top and sibling surfaces disagree as integers (both values carried), the crash reservation law (crash_size 0 = NO_CRASH_RESERVATION, why=cmdline_reserve_missing when crashkernel= is on the cmdline), the cmdline scope law (ONLY crashkernel= echoed — root=/UUID, BOOT_IMAGE, credential-shaped tokens never printed), and the config posture law: SIG=y with force unset = KEXEC_SIG_UNENFORCED finding (unsigned images still accepted by the kernel itself), no SIG = KEXEC_SIG_DISABLED, SIG_FORCE=y = strict posture row, no config source = posture "unknown" honestly.kernel/unprivileged_userns_clone (absent = NS_GATE_ABSENT honest row; 0 = CLONE_RESTRICTED posture row; 1 = CLONE_OPEN posture row), user/max_user_namespaces (absent = NS_BUDGET_ABSENT row; 0 = NS_CREATION_BLOCKED finding — the namespace budget is closed; >0 = budget data row carried), and kernel/unprivileged_userns_apparmor_policy (absent row; 0/1 = policy-open / policy-restricted posture rows, both carried as data); every knob file lstat'd with world/group-writable bits as NS_KNOB_WORLD/GROUP_WRITABLE findings (a gate a non-root account can flip at runtime is not a gate); symlinked knobs resolved single-hop for stat only (link mask never judged; dangling = NS_KNOB_DANGLING finding; un-openable = uid-proof honest note); /proc/self/ns/user inode surface stat-law only (mode/uid/size carried; the file NEVER opened or read — canary-asserted; absent = NS_FILE_ABSENT row); knob values are public digits, never masked; unparsable values (including negative budgets) = NS_VALUE_UNPARSABLE notes with the knob's law family named.protected_fifos + protected_regular in 0/1/2 (0 = PROTECTED_*_OFF findings; 1 = sticky-dir-scope posture row; 2 = STRICT posture row) and protected_symlinks + protected_hardlinks in 0/1 (0 = OFF findings); knob files world/group-writable = findings (a protection a non-root account can flip at runtime is not a protection); honest absence (missing knob = ABSENT row, never guessed; whole surface unreadable = rc6); symlinked knobs resolved single-hop for stat only (link mask never judged; dangling = finding); unparsable values = notes with the knob's law family named.Battery truth: 190 executed-assert checks per sweep (kexecloadpeek 49 + interppeek 53 + nsprivpeek 47 + protectpeek 41) — python3 runner_count.py prints the counted truth. Fired ×2 on kit bytes + ×2 clean-room from THIS shipping zip; 0 failed every source. Zero test weakening; the content-canary and the read-only fingerprint law machine-checked every fire.
Laws (all four tools): zero subprocesses, zero network, zero writes; config surfaces parsed, never executed; register and ns-inode file contents never read or carried; per-tool exit laws stated in each docstring and battery-asserted (0 clean · 4 findings · 6 nothing-readable · 2 usage); honest absence is a verdict, never a fabricated clean; every report as human text and --json.
Run: cd <tool>/agent-harness && python3 -m cli_anything.<tool> --json — no pip required (stdlib-only, Python 3.8+, self-test batteries inside).
Bundle: CLI-Anything #64 · License: MIT · tikkunolam.today