Four NEW agent-native CLI harnesses that answer the four "who is
isolated from whom on this machine" questions every AI agent runs into
but usually improvises: what namespaces does this process actually sit
in (the kernel's own link table), who shares each of those namespaces
with the baseline, who shares which PID namespace with whom, and who
maps to whom in the user namespace (with the arithmetic of every
uid/gid mapping row validated). Everything is read-only kernel-file
truth, read directly from /proc/*/ns/* linklines and the
uid_map/gid_map tables: no setns, no unshare, no writes, no
daemon sockets (this is not container-manager recon — it is what the
kernel itself reports), zero subprocesses. Nothing is guessed, nothing
is inferred — the kernel's own files are the only sources.
/proc/PID/ns with its target verbatim (e.g. net:[4026531840]) and
the inode parsed as an integer beside it, an initial /
non-initial / unverifiable verdict per namespace type decided
only when /proc/1/ns can be read and compared against,
UNPARSABLE and TYPE_MISMATCH rows carried with their raw target
never silently fixed, and namespace types absent from this pid's
ns/ dir as an honest absence list. Namespace membership is NEVER
changed; an unreadable ns/ dir is a named UNUSABLE_PID refusal,
not a guess./proc/PID/ns/pid inode, members
sorted, an initial / non-initial / unverifiable verdict per
group decided only against /proc/1/ns/pid, unreadable pids counted
AND listed as refused (never merged into a group they were never
read from), pid_for_children divergence named pid-by-pid with both
inodes carried, and a namespace link named pid carrying another
kind's target landed in the unparsable list verbatim — never
accepted as PID-namespace truth. --focus N adds the one group
holding N.initial / non-initial / unverifiable verdict decided only
against /proc/1/ns, refused and nonconforming scans counted and
printed beside the row (truth stays counted, never invented into a
mate), requested-but-absent types as honest absence rows, and
never-heard-of types as a UNUSABLE_NS refusal./proc/PID/ns/user inode (size, verdict,
members capped with truncation named, and the uid/gid map SHAPES the
members actually carry — ok-1 / ok-2 / empty / malformed /
unread), and --pid N opening both mapping tables row by row with
arithmetic validation (the initial namespace's 4294967295 full-range
row parses clean; malformed and out-of-range rows are carried
verbatim with their reason, never fixed), beside the kernel's
max_user_namespaces knob when exposed (honest absence otherwise).
Maps are READ, never written, never resolved, never translated: no
newuidmap, no newgidmap.The four harnesses are ordered the way the isolation questions nest:
nspeek --pid N — what namespace table does this pid sit in?pidnspeek — across the whole host, who shares which PID
namespace with whom (and where is pid N in that forest)?nsmates --pid N — for every type the pid carries, exactly which
other processes share it?nsuserpeek — who maps to whom in the user namespace, and what
can a uid really become here?Run all four against the same suspect pid and you have a complete, kernel-attested isolation dossier: every namespace membership, every sharer, every pid/children divergence, every user-mapping row — from the kernel's own answer files.
One step per skill: unzip the pack and copy the skill folder
(nspeek/, pidnspeek/, nsmates/, nsuserpeek/) into your agent's
skills directory. Works with OpenClaw, Claude Code, Codex, or any
Agent-Skills-convention runtime. Every skill also runs as a plain CLI
(Python 3.8+, standard library only) with --json output:
cd nspeek/agent-harness && python3 -m cli_anything.nspeek --pid 1234
cd pidnspeek/agent-harness && python3 -m cli_anything.pidnspeek --focus 1234
cd nsmates/agent-harness && python3 -m cli_anything.nsmates --pid 1234 --json
cd nsuserpeek/agent-harness && python3 -m cli_anything.nsuserpeek --pid 1234
Read-only by construction: the only kernel surface touched is
readlink on /proc/*/ns/* and open() reads of /proc map tables —
no setns, no unshare, no nsenter, no writes anywhere, no
subprocesses, no sockets, stdlib only, Python 3.8+. Unusable surfaces
report honestly (exit 2, named — UNUSABLE_PID / UNUSABLE_NS /
UNUSABLE_BASELINE / UNUSABLE_FOCUS), impossible requests are named
refusals, never stack traces. Unreadable or nonconforming pids are
counted and carried, never filled with invented truth.
Two full-kit fires on the shipping kit, zero failures (counts are host-adaptive):
python3 runner_count.py nspeek/agent-harness/cli_anything/nspeek/tests/test_core.py
python3 runner_count.py pidnspeek/agent-harness/cli_anything/pidnspeek/tests/test_core.py
python3 runner_count.py nsmates/agent-harness/cli_anything/nsmates/tests/test_core.py
python3 runner_count.py nsuserpeek/agent-harness/cli_anything/nsuserpeek/tests/test_core.py
Apache 2.0, source included, stdlib-only, Python 3.8+.
Questions: reply or email [email protected] with subject "BUNDLE25 NSISO" and your order number.