CLI-Anything Bundle #85 — OVS Switch Trust Recon Pack (4 New AI Agent Skills)
v1.0.0 · MIT · stdlib-only · read-only by construction
Four agent-native, read-only trust-recon CLI tools covering the Open vSwitch trust surface — the layer that tells you whether a box's switch layer itself can still be TRUSTED (an operator whose OVS install posture, config db, run state, schema grammar and flow grammar cannot be honestly censused has no bridge-trust story at all): the install + daemon posture layer, the JSON config-grammar + bridge-block layer, the schema + ovsdb grammar layer, and the OpenFlow flow-grammar + address-blackout layer. Each tool stats/globs binaries, configs and schema/flow files, and parses documented grammar line-based — nothing is ever executed, no ovs binary is ever spawned, no config db or schema is ever parsed beyond its presence/perm class or documented JSON shape, and no credential VALUE is ever read or printed (CRED-PRESENT presence rows only; controllers ride CTRL tokens; binaries ride BIN tokens; sockets ride SOCK tokens; flow addresses ride FLOW1/FLOW2 and PORT1 tokens).
The four tools
- ovspeek — OVS install + daemon posture census: ovs-* binary glob plus exact ovsdb-server / ovs-vswitchd lookup dirs (TOOL_BINS presence/perm class rows, BIN tokens, binaries NEVER executed, PATH never resolved); conf.db presence + PERM class in the db dir (contents never parsed by this tool); run-state pidfile/ctl-socket presence classes (SOCK tokens); openvswitch* systemd unit names + perm class (contents never read); permission findings (DB_PERM on a loose conf.db or run dir, RUN_PERM on a world-writable pidfile run dir); posture findings (BARE_TOOL, DB_WITHOUT_TOOL, NOT_RUNNING); honest rc6 when no key surface is readable; rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
- ovsconfpeek — OVS JSON config-grammar + bridge-block census: *.conf/*.db/*.json/ovs* config file census (perm class rows); line-based grammar census of the top-level OVS vocabulary (bridge, port, interface, external_ids, other_config, fail_mode, protocols) as KEY-PRESENCE rows; JSON-shaped files parsed with stdlib json when valid (JSON_BAD honest note); bridge names ride BR tokens unless public br0/br-ex shapes; fail_mode custom values ride MODE1; controller presence rides PRESENCE class only with CTRL tokens (targets never print raw; localhost doc shapes like 127.0.0.1:6640 MAY print); CRED-PRESENT class on credential-shaped external_ids/other_config keys with VALUES never read or printed; a .db file NEVER parses beyond a BINARY_DB note; findings CONF_PERM; honest NO_CONTROLLER + EMPTY_CONF note rows; rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
- ovsdbpeek — OVS schema + ovsdb grammar census: ovsdb-server schema-file census (JSON schema grammar: table/column vocabulary as SCH rows; identities ride SCH<n> tokens) plus explicit --schema-file override entries (FILE= prefix law); schema JSON parsed with stdlib json when valid (JSON_BAD honest note); ovsdb table-name vocabulary rides PRESENCE rows (contents never parsed beyond names); SCHEMA_PERM on loose/sensitive schema files; honest rc6 when nothing readable; rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
- ovsflowpeek — OpenFlow flow-grammar + address-blackout census: .flows/.ofl/*.flow flow-file census (perm class rows); line-based OpenFlow grammar census (actions, output ports, matches) as KEY-PRESENCE rows; addresses/ports ride FLOW1/FLOW2 and PORT1 tokens unless public doc shapes; cred-shaped flow keys ride CRED-PRESENT with VALUES never read or printed; FLOW_PERM on loose flow files; honest rc6 when nothing readable; rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
rc-law (every tool)
0 = clean posture, 4 = findings (trust-relevant), 6 = nothing readable (honest absence — the tool never invents surfaces), 3 = usage error.
Trust posture guarantees
- No ovs binary is ever executed or resolved from PATH — every binary rides stat/glob presence rows only.
- No config db, schema file or flow file is ever parsed beyond its documented census class or documented grammar — never beyond its name, stat class and capped line text.
- Credential values, controller addresses and peer addresses never cross a report row (CRED-PRESENT presence class only; CTRL/BR/SOCK/BIN tokens; public doc shapes like
127.0.0.1:6640 MAY print per the brief law).
- Zero subprocesses, zero sockets, zero network, zero writes — stdlib-only (argparse, glob, json, os, re, stat, sys).
- Clean-room proven: the battery re-fires at
0 failed from any unzip location (one /tmp room, one home-path room, both from this exact shipping zip).
The battery
Read-only by construction — no ovs binary is ever executed, nothing is ever written, nothing networks, and no credential value, controller address, peer address or identifying filename ever prints raw (values ride BIN1/SOCK1/CTRL1/BR1/MODE1/CONF1/SCH1/FFILE1/FLOW1/FLOW2/PORT1/CRED-PRESENT class tokens only); MIT, stdlib-only, self-test batteries inside (892 executed checks across the four tools — 215 + 233 + 219 + 225 — fired three times at 0 failed, plus clean-room fires unpacked from this exact shipping zip (one /tmp room, one home-path room), 0 failed).
Quick start
unzip CLI-Anything_Bundle85_OvsSwitchTrustRecon_v1.0.zip
cd CLI-Anything_Bundle85_OvsSwitchTrustRecon_v1.0
python3 -m cli_anything.ovspeek --json # from ovspeek/agent-harness/
python3 ovspeek/agent-harness/cli_anything/ovspeek/core.py --help
python3 runner_count.py # fire all 4 batteries
This pack never modifies, fixes or hardens anything. It is a read-only trust-recon census: it tells you whether your Open vSwitch deployment's posture and grammar can still be TRUSTED.