docs(cli): the round-trip guard replays 2,207 Ethernet models, not 2,205 #2565

Merged
jaylouisw merged 1 commit from docs/1124-1147 into main 2026-11-24 12:08:53 +00:00
Owner

What was untrue

docs/CLI.md (hostname section) said test/config-roundtrip.test.js "replays the 2,205 models that have an Ethernet port".

Evidence from the code

Running the guard on this tree prints:

  ✓ the sweep covered the catalogue (2207 models)

Measured directly against devices/registry.js: 2,359 catalogue models, 2,207 with a non-parent ethernet interface, and all 2,207 of those print a non-empty show running-config (so the sweep's checked count is the Ethernet count).

2,205 was correct when written in 3367120a (#2532) - at that commit the catalogue was 2,358 models and 2,205 had an Ethernet port. The two Arista 7280SR variants added in 31bad30d (#2554) moved it to 2,207, and nothing was watching this number the way test/doc-catalog-counts.test.js watches the registry pages.

Change

One number: 2,205 -> 2,207.

Guards (before == after)

  • node scripts/syntax-check.js - 567 files, all OK
  • docs-show-commands (docs-commands) - 7 passed, 95 show forms / 190 commands / 118 legitimate refusals
  • help-completeness (help-coverage) - 8 passed, 19 mechanisms, 16 show commands
  • help-key-works-in-every-prompt (help-forms) - 10 pass, 0 fail; no-form-help-key - 81 passed
  • docs-cli-transcript - 9 passed; doc-catalog-counts - 43 passed; doc-citations - 26 passed; document-stamp - 31 passed; check-control-bytes - clean

Not touched: the sibling clause "which is why four catalogue models needed a legal name seeded", which appears verbatim in the test's own comment and understates the seeding (54 catalogue models, 53 of them swept, have a model string longer than 63 characters). Correcting it means editing the code comment too, so it belongs in its own run.

## What was untrue `docs/CLI.md` (hostname section) said `test/config-roundtrip.test.js` "replays the 2,205 models that have an Ethernet port". ## Evidence from the code Running the guard on this tree prints: ``` ✓ the sweep covered the catalogue (2207 models) ``` Measured directly against `devices/registry.js`: 2,359 catalogue models, **2,207** with a non-parent `ethernet` interface, and all 2,207 of those print a non-empty `show running-config` (so the sweep's `checked` count is the Ethernet count). 2,205 was correct when written in `3367120a` (#2532) - at that commit the catalogue was 2,358 models and 2,205 had an Ethernet port. The two Arista 7280SR variants added in `31bad30d` (#2554) moved it to 2,207, and nothing was watching this number the way `test/doc-catalog-counts.test.js` watches the registry pages. ## Change One number: 2,205 -> 2,207. ## Guards (before == after) - `node scripts/syntax-check.js` - 567 files, all OK - `docs-show-commands` (docs-commands) - 7 passed, 95 show forms / 190 commands / 118 legitimate refusals - `help-completeness` (help-coverage) - 8 passed, 19 mechanisms, 16 show commands - `help-key-works-in-every-prompt` (help-forms) - 10 pass, 0 fail; `no-form-help-key` - 81 passed - `docs-cli-transcript` - 9 passed; `doc-catalog-counts` - 43 passed; `doc-citations` - 26 passed; `document-stamp` - 31 passed; `check-control-bytes` - clean Not touched: the sibling clause "which is why four catalogue models needed a legal name seeded", which appears verbatim in the test's own comment and understates the seeding (54 catalogue models, 53 of them swept, have a model string longer than 63 characters). Correcting it means editing the code comment too, so it belongs in its own run.
docs(cli): the round-trip guard replays 2,207 Ethernet models, not 2,205 (#2554)
All checks were successful
CI / Typecheck (pull_request) Successful in 33s
CI / Server smoke and Docker build (pull_request) Successful in 34s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 24s
CI / Test (Node 22) (pull_request) Successful in 1m2s
CI / Test (Node 24) (pull_request) Successful in 52s
CI / Arm auto-merge (pull_request) Successful in 5s
df4c0037e1
The hostname section quotes the count test/config-roundtrip.test.js prints, and the
catalogue grew by the two Arista 7280SR variants in 31bad30d (#2554): 2,207 models
now have a non-parent Ethernet port, and the guard reports 'the sweep covered the
catalogue (2207 models)'. Measured on this tree: 2,359 catalogue models, 2,207 with
an Ethernet port, 2,207 of those printing a non-empty running-config.
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-24 11:53:04 +00:00
jaylouisw deleted branch docs/1124-1147 2026-11-24 12:08:58 +00:00
Sign in to join this conversation.
No description provided.