docs(catalogue): 2,358 models, not 2,357 � and the round-trip sweep covers 2,205 #2523

Merged
jaylouisw merged 1 commit from docs/1124-0417 into main 2026-11-24 04:37:58 +00:00
Owner

Docs-only. Four quoted catalogue counts were stale; the code is the truth.

Evidence, run in this tree:

node -e "const {loadCatalog}=require(./devices/registry);const s=loadCatalog(./devices).filter(x=>!x.error);console.log(models,s.length,vendors,new Set(s.map(x=>x.vendor)).size,categories,new Set(s.map(x=>x.category)).size)"
models 2358 vendors 258 categories 25

node -e "...count specs answering \"No spanning tree instance exists.\"..."
models 2358 answered 2358 noInstance 1046

node -e "...count firewall capability / category..."
total 2358 caps-firewall 752 category-firewall 64

node test/config-roundtrip.test.js
[check] the sweep covered the catalogue (2205 models)

Changes:

  • docs/SIMULATION.md:693 � 2,357 -> 2,358 models across 258 vendors. The page prints that very command eight lines above the sentence it contradicted, and the command outputs 2358.
  • docs/SIMULATION.md:365 � denominator 2,357 -> 2,358 (752 specs still declare the firewall capability; 64 models are firewalls).
  • docs/CLI.md:2607 � denominator 2,357 -> 2,358 (1,046 still answer no spanning-tree instance).
  • docs/CLI.md:4656 � round-trip sweep replays 2,205 models, not 2,199.
  • docs/BUG_REPORTS.md:21 � the scale example follows the catalogue: 2,358.

Guards after: syntax 562 files OK; docs-cli-transcript 9/0; docs-show-commands 7/0; help-completeness 8/0; no-form-help-key 81/0; doc-catalog-counts 43; doc-citations 11/0 � all unchanged, all green.

Not done here: test/doc-catalog-counts.test.js only polices README.md and docs/DEVICE_REGISTRY.md, which is why these pages could drift. Extending it to SIMULATION/CLI is a test change, so it is left out of a docs-only PR.

Docs-only. Four quoted catalogue counts were stale; the code is the truth. Evidence, run in this tree: ``` node -e "const {loadCatalog}=require(./devices/registry);const s=loadCatalog(./devices).filter(x=>!x.error);console.log(models,s.length,vendors,new Set(s.map(x=>x.vendor)).size,categories,new Set(s.map(x=>x.category)).size)" models 2358 vendors 258 categories 25 node -e "...count specs answering \"No spanning tree instance exists.\"..." models 2358 answered 2358 noInstance 1046 node -e "...count firewall capability / category..." total 2358 caps-firewall 752 category-firewall 64 node test/config-roundtrip.test.js [check] the sweep covered the catalogue (2205 models) ``` Changes: - `docs/SIMULATION.md:693` � 2,357 -> 2,358 models across 258 vendors. The page prints that very command eight lines above the sentence it contradicted, and the command outputs 2358. - `docs/SIMULATION.md:365` � denominator 2,357 -> 2,358 (752 specs still declare the firewall capability; 64 models are firewalls). - `docs/CLI.md:2607` � denominator 2,357 -> 2,358 (1,046 still answer no spanning-tree instance). - `docs/CLI.md:4656` � round-trip sweep replays 2,205 models, not 2,199. - `docs/BUG_REPORTS.md:21` � the scale example follows the catalogue: 2,358. Guards after: syntax 562 files OK; docs-cli-transcript 9/0; docs-show-commands 7/0; help-completeness 8/0; no-form-help-key 81/0; doc-catalog-counts 43; doc-citations 11/0 � all unchanged, all green. Not done here: `test/doc-catalog-counts.test.js` only polices README.md and docs/DEVICE_REGISTRY.md, which is why these pages could drift. Extending it to SIMULATION/CLI is a test change, so it is left out of a docs-only PR.
docs(catalogue): the tree holds 2,358 models, so the three pages saying 2,357 are one short
All checks were successful
CI / Server smoke and Docker build (pull_request) Successful in 22s
CI / Typecheck (pull_request) Successful in 24s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 11s
CI / Test (Node 22) (pull_request) Successful in 57s
CI / Test (Node 24) (pull_request) Successful in 1m1s
CI / Arm auto-merge (pull_request) Successful in 3s
d928ce3760
The catalogue grew one model (2,357 -> 2,358 across 258 vendors) and the round-trip
sweep now replays 2,205 models, not 2,199. Both numbers were quoted as current.

  node -e "const {loadCatalog}=require('./devices/registry');const s=loadCatalog('./devices').filter(x=>!x.error);console.log('models',s.length,'vendors',new Set(s.map(x=>x.vendor)).size,'categories',new Set(s.map(x=>x.category)).size)"
  -> models 2358 vendors 258 categories 25

docs/SIMULATION.md already prints that command eight lines above the sentence it
contradicted. The numerators hold: 752 specs declare the firewall capability, 64
models are firewalls, and 1,046 of 2,358 answer 'No spanning tree instance exists.'
docs/CLI.md's 2,199 came from
A running-config pasted back reproduces itself:
  ✓ the printer closes each interface block with the vendor's `!` separator
  ✓ and never with `exit`, which no box prints in this file
  ✓ and never prints undefined
  ✓ no line is rejected on the way back in
  ✓ and the running-config is byte-identical afterwards
  ✓ the address is on the interface it was configured on
  ✓ and the shutdown is on the interface it was configured on
  ✓ the static route survived
  ✓ nothing was applied to the parent interface instead

A config copied out before the fix still replays:
  ✓ the old shape still has interface blocks
  ✓ it is accepted without a single complaint
  ✓ with the address on the right interface
  ✓ and the shutdown on the right interface
  ✓ and the global section after the last block was applied

Comments are comments, and interface mode switches:
  ✓ a comment at the exec prompt prints nothing
  ✓ a comment in config mode prints nothing
  ✓ a hash comment in interface mode prints nothing
  ✓ a new interface line inside interface mode is not an error
  ✓ and the following command applies to the new interface
  ✓ leaving the previous one alone
  ✓ an interface that does not exist is still refused

No model in the catalogue rejects its own running-config:
  ✓ the sweep covered the catalogue (2205 models)
  ✓ and a route was seeded on every model that can forward (1192 of them)
  ✓ every model accepts its own running-config back

Nothing configurable is left out of the config (#1232):
  ✓ the whole battery is accepted
  ✓ the VLAN table is printed
  ✓ the DHCP pool is printed
  ✓ its range is printed
  ✓ its gateway is printed
  ✓ its DNS server is printed
  ✓ its excluded address is printed
  ✓ its lease is printed
  ✓ its reservation is printed
  ✓ the DNS zone is printed
  ✓ its A record is printed
  ✓ its MX record is printed
  ✓ the VRRP address is printed
  ✓ the VRRP priority is printed
  ✓ the VRRP advert interval is printed
  ✓ the VRRP group is inside its interface block
  ✓ the printed config is accepted back unchanged
  ✓ and reproduces itself
  ✓ the vlans object survives the round trip
  ✓ the dhcpPools object survives the round trip
  ✓ the dnsZones object survives the round trip
  ✓ the vrrp object survives the round trip
  ✓ every configured value appears somewhere in the printed config

47 passed, 0 failed

The config prints what a port references before the port that references it (#1507):
  ✓ the switch accepts the reference and the objects it names
  ✓ the VLAN is defined above the port that names it
  ✓ the access list is defined above the port that binds it
  ✓ and nothing in it is rejected on the way back in
  ✓ the ACL binding survives the restore, in and out
  ✓ and the config reproduces itself byte for byte

A VRRP group whose preemption is off survives the round trip:
  ✓ the group takes the line that turns preemption off
  ✓ and the group is still configured, with preemption off
  ✓ the printer writes the line back
  ✓ and the paste is accepted
  ✓ with the group still there
  ✓ preemption still off and the priority intact
  ✓ and it reproduces itself, which reports
'the sweep covered the catalogue (2205 models)'.
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-24 04:21:24 +00:00
jaylouisw deleted branch docs/1124-0417 2026-11-24 04:38:02 +00:00
Sign in to join this conversation.
No description provided.