CLI-Anything Bundle #28 — IPC Recon Pack

Bundle #28 — IPC Recon Pack. Four NEW agent-native CLI harnesses that answer the SysV IPC question end to end — nothing inferred, nothing invented, nothing changed.

ipcpeek — the grand census: what SysV IPC exists on this host, and against what published limits? One pass over /proc/sysvipc/msg, /proc/sysvipc/sem, and /proc/sysvipc/shm with the schema read dynamically from each table's own header (whatever the kernel prints is the schema), values typed where digits and carried verbatim as the kernel's raw strings where they are not, the perms column parsed as octal exactly as printed with decode into owner/group/other trios of the kernel's documented read/write pair (alter for semaphore sets), key 0 named IPC_PRIVATE by the kernel's own convention with private_only flagged when every key on a table is 0, malformed rows carried with reasons and never dropped — plus every published limit knob censused (msgmax, msgmnb, msgmni, shmmax, shmall, shmmni read individually, absent knobs named, a ≥2^63 arithmetic saturation class stated as a value fact, and the sem quad semmsl/semmns/semopm/semmni parsed from /proc/sys/kernel/sem with a wrong-token-count carried as malformed sem-line data, never rounded to fit).

msgpeek — what message queues exist right now? The /proc/sysvipc/msg table in the kernel's own words: per-row send/recv and timestamp zeros named as field facts, a bytes/msg floor quotient, byte/message oddities carried as named DATA_ODD facts (qnum>0 with cbytes==0, qnum==0 with cbytes!=0), and the cbytes vs published msgmnb comparison as a REFERENCE verdict (WITHIN_REF_CAP / OVER_MSGMNB_REF / UNKNOWN_CAPPED / UNCOUNTABLE) — explicitly labeled a reference, never an enforcement claim, with the cap basis printed on every report.

sempeek — what semaphore sets exist? The /proc/sysvipc/sem table with read/alter permission decode, nsems==0 and otime/ctime zeros as field facts, and reference verdicts against the published sem quad: per-row nsems vs semmsl (WITHIN_SEMMSL_REF / OVER_SEMMSL_REF) plus a table-wide sum verdict vs semmns — UNKNOWN_CAPPED when the knob is absent or malformed, UNCOUNTABLE for malformed rows, and a malformed sem-line carried rather than rounded to fit.

shmpeek — what shared memory exists? The /proc/sysvipc/shm table with attachment classified arithmetically from the printed nattch field (ATTACHED when nattch>0, UNATTACHED when 0, UNCOUNTABLE when not an integer), table totals (total_size, total_nattch, attached_segments, unattached_segments, total_swap only when the swap column exists), rss/swap columns carried verbatim with their presence named (unit left exactly as the table leaves it, never guessed), and size vs the published shmmax cap as a reference verdict.

The pipeline: ipcpeek (everything at once) → msgpeek (queues) → sempeek (semaphore sets) → shmpeek (shared memory). Four read-only stages over the kernel's own tables; nothing is guessed and nothing is ever written.

Hard lines held: read-only by construction — nothing is created, attached, sent to, altered, read from, or removed; no msgget, semget, semop, shmget, or shmat is ever called; zero subprocesses; no sockets. Unusable surfaces report honestly with named exits (exit 2, UNUSABLE_PROC, never stack traces). Cap comparisons are reference verdicts (WITHIN_/OVER_/UNKNOWN_CAPPED/UNCOUNTABLE), never enforcement claims. Stdlib only, Python 3.8+.

Batteries shipped in-pack, live-fired twice at ship: 1,760 executed checks, 0 failed, 0 errors (ipcpeek 460 · msgpeek 405 · sempeek 277 · shmpeek 618 — counts adapt to host) plus a clean-room fire from the shipping zip. Apache-2.0. Source included; every skill also runs as a plain CLI.