2.7 KiB
AO-Command Landing — the surfaces a new ao command must regenerate
Adding (or renaming/removing) an ao command or subcommand touches more than the
generated CLI reference. scripts/regen-all.sh regenerates the bulk of the derived
surfaces, but it only WARNS about two that it cannot regenerate for you — those
are the dominant fix-and-repush cause when landing a command. Regenerate them in the
same pass before opening the PR, not piecemeal.
This is the command-surface parallel of new-skill-landing.md (the six derived surfaces a skill edit must regenerate).
The shortcut
scripts/regen-all.sh regenerates cli/docs/COMMANDS.md, registry.json, the
skill/context maps, the embedded skills, and the cli-surface inventory in one pass —
prefer it over running the individual generators. Then hand-fix the two surfaces it
only warns about (below), and finally run scripts/regen-all.sh --check.
The two surfaces regen-all only WARNS about
-
Cobra
expectedCmds(x2 lists) —cli/cmd/ao/cobra_commands_test.gohardcodes the registered-command list twice: once inTestCobraCommandTreeRegistrationand once inTestCobraExpectedCmdsMatchRegistration(the second comment even says "Same list as TestCobraCommandTreeRegistration"). BothexpectedCmdsslices must gain the new top-level command name, or the second test fails with "registered command %q is not in expectedCmds — add it to keep the list in sync". -
cli-command-surfaceheading counts — the generated reference'saoheading counts (top/sub/all) are asserted in two offline canaries that must move together:evals/agentops-core/fixtures/cli-command-surface-smoke.sh— thetop_count/sub_count/all_countliterals (currently76/192/268).evals/agentops-core/cli-command-surface-matrix.json— the public canary that enumerates every documented command/subcommand help page.
Run the smoke fixture to read the exact new counts rather than computing them by hand:
bash evals/agentops-core/fixtures/cli-command-surface-smoke.sh # On a count mismatch it prints: unexpected command heading counts: top=.. sub=.. all=.. # Update the literals in the fixture (and the matrix.json cases) to the printed values.(Automating this regen is tracked as
ag-jy12.)
See also
- new-skill-landing.md — the six derived surfaces a skill edit regenerates (the sibling discipline for the skills axis).
- gate-hygiene.md — pre-push diff-scope check + pre-existing-vs-mine red triage that keeps a command-landing PR one-shot-green.