Four NEW agent-native read-only harnesses for the sudo/doas delegation surface — who gets WHAT root-class power, what sudo is CONFIGURED to do, and whether every grant and every group member actually resolves. Zero subprocesses, zero writes, no sockets, no sudo/doas runs.
Grant anatomy per row from /etc/sudoers + /etc/sudoers.d: identity (user, %group, +netgroup, alias ref), host list (missing host carried as ALL), (runas) parens truth, tag sets. The danger law: NOPASSWD on ALL or * — direct, wildcard, or transitive through Cmnd_Alias chains (depth-capped, cycle-safe) — is NOPASSWD_ALL, a FINDING; PASSWD ALL grants and per-command NOPASSWD are honest census. Alias law: ALIAS_REDEF (sudo keeps the last), UNKNOWN_ALIAS resolved against the COMPLETE alias map across the whole include tree, DUPLICATE_GRANT across files. Include law: @includedir sorted with sudo's '.'/'~' skip rule NAMED as SKIPPED_NAME, single @include resolving against the including file, absolute targets root-mapped INSIDE --root, consumed-once VIA_INCLUDE rows, DANGLING_INCLUDE / INCLUDE_LOOP (cycle-first) / INCLUDE_DEPTH (cap 8). sudo's writable-file refusal law = SUDOERS_MODE findings; ownership as POSTURE_NONROOT_OWNER data. rc0 clean / rc4 findings / rc6 no sudoers files / rc2 usage.
Every Defaults directive with scope truth: bare GLOBAL Defaults, Defaults@Host, :User, >Runas, !Cmnd forms; parameters classed FLAG / NEGATED / BIND / LAPPEND / LREMOVE with sudo's list-value law (unquoted known-list bindings absorb comma items). secure_path trust decomposition: every entry stat-checked under --root — MISSING, NOT_A_DIR, and SECURE_PATH_WORLD_WRITABLE / GROUP_WRITABLE findings (binaries sudo will trust, writable by group/other). env_keep / env_delete / env_check variable names carried verbatim; a '*' entry = PASS_THROUGH_WILDCARD. Secret-name masking: PASS/SECRET/TOKEN/KEY/CRED values print ***:LEN. Unknown Defaults names are honest Unknown rows; syntactically broken parameters are UNPARSABLE findings. Same include/skip/posture law. rc0 clean / rc4 findings / rc6 no sudoers files / rc2 usage.
permit / deny rules with nopass, persist, keepenv, setenv { members with values } anatomy, :group identities, as-targets, cmd paths with args. Danger law: NOPASS_GRANT (passwordless elevation) and SHELL_GRANT (interactive shells and interpreters: sh, bash, zsh, dash, ksh, csh, tcsh, fish, su, sudo, python*, perl, ruby, lua) are findings; doas's absolute-cmd rule = INVALID_CMD; deny rows counted SAFE. setenv values with secret-named members masked ***:LEN; an unclosed brace pair is UNPARSABLE (doas rules are single-line). doas's config posture refusal = DOAS_MODE findings. /etc/doas.d files censused as sibling files (doas has NO include directive — the drop-in layout is a distro convention) with NON_DROPIN_NAME honesty; hosts without doas = NO_DOAS_FILES absence. rc0 clean / rc4 findings / rc6 no doas config / rc2 usage.
Registry verdicts for the KNOWN names only (nothing guessed): elevation groups sudo / wheel / admin and container-deleg groups docker / lxd / incus / incus-admin / podman with PRESENT truth (gid, members, resolved, ghosts, password-field class) or honest ABSENT rows. Member law: every member must resolve in /etc/passwd — GHOST_MEMBER is a FINDING; EMPTY_ELEVATION rows; GID_DUP with both names; merged duplicate group rows. uid-0 truth: UID0_ROW per account, MULTIPLE_UID0 as a finding beyond root, root shell class NON_LOGIN/INTERACTIVE (classes only — GECOS and hash material never read, shadow never opened, group password text never printed). sudoers %-group reference scan on grant-shaped lines with the '.'/'~' skip law — DANGLING_GROUP findings with file:line provenance, no grant text printed. rc0 clean / rc4 findings / rc6 a required store missing / rc2 usage.
unzip CLI-Anything_Bundle40_SudoTrustRecon_v1.0.zip cd sudograntpeek/agent-harness && python3 -m cli_anything.sudograntpeek --root / --json cd sudoconfpeek/agent-harness && python3 -m cli_anything.sudoconfpeek --root / --json cd doaspeek/agent-harness && python3 -m cli_anything.doaspeek --root / --json cd wheelpeek/agent-harness && python3 -m cli_anything.wheelpeek --root / --json
sha256sum CLI-Anything_Bundle40_SudoTrustRecon_v1.0.zip
Battery truth: 582 checks total per full sweep (sudograntpeek 165 + sudoconfpeek 169 + doaspeek 122 + wheelpeek 126) — fired twice from the kit + a clean-room fire from this exact shipping zip, 0 failed every time. Apache-2.0, stdlib-only, Python 3.8+.