Files
wbin90620andClaude Opus 5.5 950bb5ab07 spec: pin cloud f9c56af2b (v8.5.1267), what production serves; a local alias owns its spelling
The forge `cicd` job's client lane checks spec/cloud.json against the document
api.hanzo.ai serves. That moved to v8.5.1267, so every main run from cli#56
through cli#60 failed with "genspec --check: STALE ... would gain 53 operations
and lose 6".

Re-pinned onto the served document (sha256 3e882d56...). Ran genspec and
genproduct, then `make live` (read-only GETs) so spec/live.json matches the new
capture. The CLI gains 53 commands (billing checkouts/quote/catalog/topup
intents, channel, post, agent groups, build logs and others). It loses 6 that
production no longer publishes: ci runs, git explore and three other git reads,
commerce store trial, and deploy rollback. `billing wire` becomes
`billing wire get`, alongside `billing wire reconcile`.

The re-pin exposed a bug in `absorb`. It compared local subcommand NAMES only.
Cloud now publishes DELETE /v1/post/{id}, which folds to the verb `rm`. The
hand-written `hanzo post delete` has the alias `rm`, so a second `rm` was
mounted and clap panicked on every `hanzo post` ("command name `rm` is
duplicated"). The drift gate then called `post` an orphan. `absorb` now counts
aliases as owned, matching `resolve` (clap's find_subcommand matches aliases).
New test: a_local_alias_owns_its_spelling_and_the_generated_verb_stands_down.
The absorbed-product walk now checks for a shadow before parsing, because a
shadowing local command may require its own operand (`post create <CONTENT>`).

The UNFALSIFIABLE ceiling goes from 64 to 67. The three new literal GETs
(/v1/agent/groups, /v1/channel/groups, /v1/channel/providers) sit under
prefixes whose control answers 401. The reason is recorded at the constant.

Testing: genspec --check went red (53/6) before and green after. The two new and
existing tree tests went red before the absorb fix and green after. make test
passes (installer checks plus cargo test --workspace). clippy -D warnings is
clean. make verify reports no drift and 154 of 154 products reachable.

Refs hanzo-inc/cloud#765

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 03:32:40 -08:00
..