CLI-Anything Bundle #108 — Varnish Cache 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 Varnish cache trust surface — the layer that tells you whether a CDN/cache deployment's binaries, backend config grammar, VCL grammar and log story can still be TRUSTED. Read-only by construction: no binary is ever executed, nothing is ever written, nothing networks, and no backend host, header value, ACL body or credential ever prints raw (values ride BIN1/CONF1/HOST1/HDR1/ACL1/CRED-PRESENT token classes only; localhost/127.0.0.0 doc-shapes MAY print); MIT, stdlib-only, self-test batteries inside (862 executed checks across the four tools — 226 + 211 + 208 + 217 — fired three times at 0 failed, plus clean-room fires unpacked from this exact shipping zip, 0 failed).
- varnishpeek — varnish binary/config/service posture census: install posture census: the varnishd/varnishadm/ varnishlog/varnishhist binaries globbed across the lookup dirs (default /usr/sbin, VARNISH_PEEK_BIN colon-list overrides) ride stat-only TOOL_BINS rows with BINn tokens — binaries are NEVER executed, PATH is never resolved; the /etc/varnish conf dir rides presence + perm (CONF rows, CONF_PERM) with a *.vcl name census (CONFn tokens, contents never read); /var/lib/varnish + its varnishd subdir ride stat-only size rows (DATAn tokens, DYN_WIDE on wri (226 checks)
- varnishconfpeek — varnish config grammar census: config grammar census: /etc/varnish *.conf + *.vcl files (CONF rows, name + size + perm, CONFn tokens, CONF_PERM on writable files/dirs) then a LINE-BASED grammar census over PUBLIC varnish vocabulary as KEY-PRESENCE rows: vcl 4.0/4.1 declarations, backend blocks + .host/.port, directors, probes + the five probe keys, acls, sub routines (the nine public vcl_* routines + generic subs), imports, return(pass/lookup/hash) in both () and bare forms, std.log, req.http / bereq.* / resp.* sightings. Bac (211 checks)
- varnishvclpeek — varnish VCL grammar census: VCL grammar census: /etc/varnish (or the VARNISH_PEEK_CONF override) *.vcl files ride stat-only PERM-class rows plus a capped 256KB head read driving a LINE-BASED grammar over the public VCL vocabulary (vcl 4.x/4.1 headers, sub vcl_recv/vcl_backend_response/vcl_deliver/vcl_hash blocks with brace-depth closure, return(...) CLASS rows, set req.http./ bereq.http./resp.http. rows with header NAMES on HDR1 tokens and values NEVER printed, backend/probe/acl blocks, .host/.port/.url key-presence rows). (208 checks)
- varnishlogpeek — varnish log census (line-counts-only): varnish log census: /var/log/varnish (or the VARNISH_PEEK_LOG override) varnish.log* stat-only rows (LOG1 token names, size, PERM class); rotators varnish.log.N / .gz STAT-ONLY (never decompressed, never parsed); capped-4KB-head LINE-COUNTS-ONLY parse (request / backend-fail / expiry / cache-hit / cache-miss counts under the word-boundary law); log line content NEVER rides any row. Findings LOG_PERM; notes MISS_SPIKE / EMPTY_LOGS / HUGE_LOG >100MB / NOTHING_READABLE; rc0/4/6/3 law. (217 checks)