CLI-Anything Bundle #119 — Alertmanager Trust Recon Pack

alertmanagerpeek — install + runtime posture census: alertmanager/amtool binaries stat-only (BIN1 tokens, never executed), config roots with main alertmanager.yml and conf.d fragments graded by key PRESENCE only over 26 public keys, templates dir counted never read, data/run children (silence, nflog, WAL, pid, sock) stat-only with bodies never opened, alertmanager*.service unit census. Findings BARE_TOOL / CONF_WITHOUT_TOOL / CONF_PERM / DATA_PERM / TEMPLATE_PERM.

alertconfpeek — config grammar + security census with a hand-rolled line parser (no yaml, no configparser): section presence, 26-key presence, receiver and route-receiver counts, matcher count, nesting depth, URL scheme class, interval duration class. Findings NO_ROUTE (only when config files exist), REPEAT_INTERVAL_SHORT, WEBHOOK_HTTP, CRED_IN_FILE_PERM. Credential-shaped keys emit CRED-PRESENT with no value, length or hash.

alertroutepeek — routing-tree grammar census: node count, nesting depth, per-node matcher presence, continue flags, receiver references. Findings CATCH_ALL_FIRST (matcher-less child ordered before matched siblings), ROUTE_AFTER_CATCH_ALL, ROUTE_NO_MATCHERS, DEEP_NESTING, DUP_RECEIVER_REF — with the root route correctly excluded from catch-all grading.

alertsilencepeek — silence/state + log artifact census: silence, nflog, WAL, pid and socket children graded by size bucket, age bucket and permission class with bodies NEVER opened; logs get a capped 4KB head reduced to severity counts, message text discarded. Findings SILENCE_WIDE, DATA_PERM, LOG_PERM, STALE_SILENCE (>30d), HUGE_LOG (>64MB); notes ERROR_SPIKE, EMPTY_LOGS.

Read-only by construction — no binary executed, no socket opened, no silence/nflog/WAL body read, no credential value, receiver name or log message text ever printed. rc-law 0/4/6/3 with usage rc3, env overrides per tool, and an honest alt-path fixture census on zero-surface hosts.

1,199 executed census checks (276 + 331 + 314 + 278), 0 failed, clean-room fired x2 from the exact shipping zip (/tmp room and home-path room, identical counts). 105 unit tests green (25 + 29 + 27 + 24). Python 3.8+ stdlib-only. MIT license.