CLI-Anything Bundle #43 — Package Integrity Trust Recon (v1.0)

Four agent-native, read-only, zero-fork recon harnesses for the dpkg package integrity surface. No subprocesses, no network, no writes; honest rc contract on every tool.

dpkgpeek — installed-package state census

Status paragraph grammar with the full want/error/state token law: REINSTREQ, half-installed, half-configured, triggers-pending/awaited as findings; hold, essential, config-files as honest data; maintainer scripts with multiarch %3a decoding; interrupted status writes; status-old, arch, Conffiles blocks (digests never printed).

sumscovpeek — md5sums coverage census

Which installed packages carry verification records. Records are COUNTED, never printed. Grammar findings: malformed digest tokens, absolute paths, ../ escapes, duplicate records. Coverage percent with honest vacuous None.

verifypeek — packaged-file integrity verification

Explicit scope law (--package NAME[,NAME...] or --all), chunked in-process MD5 versus each dpkg record, verdict-only findings: MISMATCH, FILE_MISSING, TYPE_CHANGED, READ_ERROR — both digest values never printed. --max-files bounded runs with LIMIT_REACHED.

conffpeek — conffiles & diversions census

Declaration grammar with duplicate ownership findings (owners named), status Conffiles records shape-checked (digest values never printed), disk posture for every declared path always run (PRESENT / DECLARED_ABSENT / UNREADABLE), diversions raw-triplet law with local diversions honored.

rc contract (all four)

0 clean census / all verified files match
4 findings
6 no dpkg surface (honest absence)
2 usage

Run (per tool)

cd dpkgpeek/agent-harness    && python3 -m cli_anything.dpkgpeek    --root / --json
cd sumscovpeek/agent-harness && python3 -m cli_anything.sumscovpeek --root / --json
cd verifypeek/agent-harness  && python3 -m cli_anything.verifypeek  --package dpkg --json
cd conffpeek/agent-harness   && python3 -m cli_anything.conffpeek   --root / --json

Every tool ships with a counting battery. Verify your extract with sha256sum against the banked zip digest.