mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
2a33a64bb3
## Summary - New `scripts/update-cli-surface-counts.sh` with `--check` (default) and `--fix` modes to synchronize CLI heading counts across the smoke script and canary matrix JSON - Wires fast pre-flight count-check into contracts-sync CI (catches drift in ms before the 180s canary build) - Adding a new ao CLI command is now: add Go code → `generate-cli-reference.sh` → `update-cli-surface-counts.sh --fix` → push ## Test plan - [x] Script passes in check mode with current counts (75/188/263) - [x] Script detects simulated drift (exit 1 + clear error message) - [x] `--fix` mode correctly updates smoke script and matrix JSON - [x] Fixed files are byte-identical to originals (round-trip verified) - [x] `bash -n` syntax check passes - [x] Go build passes in worktree - [ ] CI contracts-sync passes with new pre-flight step Closes-scenario: ag-lkxx#cli-surface-regen Bounded-context: BC5-Runtime Evidence: scripts/update-cli-surface-counts.sh