docs(cli): the round-trip sweeps 2,208 Ethernet models, and 1,044 answer with no spanning tree #2601

Open
jaylouisw wants to merge 6 commits from contrib/gh-pr-1602 into main
Owner

docs(cli): the round-trip sweeps 2,208 Ethernet models, and 1,044 answer with no spanning tree

Two counts in docs/CLI.md were one off, and a single spec change moved both of them.

What was untrue

  1. Line 4785: "the round-trip guard, test/config-roundtrip.test.js, replays the 2,207 models that have an Ethernet port to seed a config on". It replays 2,208 now.
  2. Line 2665: "1,045 of the 2,359 at this tree (counted by asking each model for show spanning-tree and reading the ones that answer No spanning tree instance exists.)". It is 1,044.

Evidence

Both numbers were correct when #2559 and #2565 wrote them — I checked the commit that wrote each one. At c5476313, a probe over loadCatalog('./devices') counts 2,207 models with an Ethernet port and 1,045 models that answer the no-instance line. At this tree the same probe counts 2,208 and 1,044.

The cause is devices/mikrotik/ccr1036.json in #2581: the spec grew its two SFP+ cages and declared l2-forward alongside them, so the CCR1036 now has an Ethernet port and a spanning tree. Diffing the per-model answers between c5476313 and HEAD names exactly one model that moved — mikrotik/CCR1036 (ethernet 0 -> 1, no-instance 1 -> 0) — and no other.

The round-trip number is not remembered, it is printed: test/config-roundtrip.test.js ends with ✓ the sweep covered the catalogue (2208 models). The spanning-tree number has no guard, so it was counted the way the sentence says — every model in the catalogue asked for show spanning-tree: 1,315 print a tree, 1,044 print the no-instance line, 1,315 + 1,044 = 2,359.

Guards (before -> after)

  • node scripts/syntax-check.js — 575 files (566 JS, 9 TS), all OK — unchanged.
  • test/docs-show-commands.test.js — 95 forms, 190 commands, 118 refusals; 7 passed / 0 failed — unchanged (the edit touches prose, not a show code span).
  • test/help-completeness.test.js — 8 passed / 0 failed — unchanged.
  • test/no-form-help-key.test.js (the no-form help-key guard) — 81 passed / 0 failed — unchanged.
  • test/docs-cli-transcript.test.js — 9 passed / 0 failed — unchanged.
  • node scripts/check-control-bytes.ts — no control bytes; node scripts/check-doc-citations.js — no judged citation more than 40 lines off.

One file, two numbers, no prose rewritten.


Bridged from GitHub PR #1602 by @Jaylouisw — https://github.com/Jaylouisw/packetforge/pull/1602

docs(cli): the round-trip sweeps 2,208 Ethernet models, and 1,044 answer with no spanning tree Two counts in `docs/CLI.md` were one off, and a single spec change moved both of them. ## What was untrue 1. Line 4785: "the round-trip guard, `test/config-roundtrip.test.js`, replays **the 2,207 models** that have an Ethernet port to seed a config on". It replays **2,208** now. 2. Line 2665: "**1,045** of the 2,359 at this tree (counted by asking each model for `show spanning-tree` and reading the ones that answer `No spanning tree instance exists.`)". It is **1,044**. ## Evidence Both numbers were correct when #2559 and #2565 wrote them — I checked the commit that wrote each one. At `c5476313`, a probe over `loadCatalog('./devices')` counts 2,207 models with an Ethernet port and 1,045 models that answer the no-instance line. At this tree the same probe counts 2,208 and 1,044. The cause is `devices/mikrotik/ccr1036.json` in #2581: the spec grew its two SFP+ cages and declared `l2-forward` alongside them, so the CCR1036 now has an Ethernet port and a spanning tree. Diffing the per-model answers between `c5476313` and `HEAD` names exactly one model that moved — `mikrotik/CCR1036` (ethernet 0 -> 1, no-instance 1 -> 0) — and no other. The round-trip number is not remembered, it is printed: `test/config-roundtrip.test.js` ends with `✓ the sweep covered the catalogue (2208 models)`. The spanning-tree number has no guard, so it was counted the way the sentence says — every model in the catalogue asked for `show spanning-tree`: 1,315 print a tree, 1,044 print the no-instance line, 1,315 + 1,044 = 2,359. ## Guards (before -> after) - `node scripts/syntax-check.js` — 575 files (566 JS, 9 TS), all OK — unchanged. - `test/docs-show-commands.test.js` — 95 forms, 190 commands, 118 refusals; 7 passed / 0 failed — unchanged (the edit touches prose, not a `show` code span). - `test/help-completeness.test.js` — 8 passed / 0 failed — unchanged. - `test/no-form-help-key.test.js` (the `no`-form help-key guard) — 81 passed / 0 failed — unchanged. - `test/docs-cli-transcript.test.js` — 9 passed / 0 failed — unchanged. - `node scripts/check-control-bytes.ts` — no control bytes; `node scripts/check-doc-citations.js` — no judged citation more than 40 lines off. One file, two numbers, no prose rewritten. --- > Bridged from GitHub PR #1602 by @Jaylouisw — https://github.com/Jaylouisw/packetforge/pull/1602
The project moved back to GitHub on 2026-11-27 and the guards and the live
documentation still said Forgejo. This flips the truth they enforce.

- scripts/canonical.ts: BASE is https://github.com/jaylouisw/packetforge.
  source() builds /blob/<branch>/<path>, badge() builds
  /actions/workflows/<file>/badge.svg, actions() is the run page. FORBIDDEN now
  matches the archive repository, and FORBIDDEN_IN_DOCS matches its lab-network
  API address in markdown. FORGE_CLAIMS catches the sentence a URL check cannot:
  prose that calls the archive the workshop.
- scripts/check-canonical-urls.js: the rule is inverted, not deleted.
  E_STALE_FORGE_URL names the file, the line and the URL; EXEMPT_PREFIXES keeps
  docs/plans/ a historical record; a new rule requires the tracker doc to name
  the repository and the gh CLI.
- test/canonical-urls.test.js: proves it both ways - a planted Forgejo URL is
  caught and quoted, a planted GitHub URL passes - and proves the archive prose
  rule fires on the claim while a dated note about the archive passes.
- docs/agents/issue-tracker.md rewritten for the gh CLI (already authenticated,
  no token file), docs/MIRRORING.md inverted to name the retained archive, and
  the clone, issue and CI instructions re-pointed in CONTRIBUTING, README,
  SECURITY, the wiki sources and the app's report button.

Historical records are untouched: CHANGELOG.md and docs/plans/ still describe the
moves as they happened.

Co-authored-by: packetforge-bot <packetforge-bot@users.noreply.git.jayw.uk>
#1597 flipped the product's report URL to GitHub but left four assertions
encoding the old world, so main was red the moment CI could see it - which is
the first thing GitHub Actions found, and the reason it exists.

bug-report: 'points at the Forgejo instance' becomes 'points at the GitHub
repository', and 'is not the retired GitHub mirror' becomes 'is not the retired
Forgejo archive' - the same two assertions with the hosts exchanged, keeping the
intent (a report must land on the tracker somebody reads) rather than the host.
The static href assertion follows the anchor.

sweep-requests: the script's token error still said 'needs a Forgejo token' and
listed FORGEJO_TOKEN first while reporting to a GitHub URL. It now names a
GitHub token, puts GH_TOKEN first, and keeps FORGEJO_TOKEN as the archive
fallback; the assertion follows the new wording.

Co-authored-by: Hermes Agent <jay@jayw.uk>
Both counts in this page were one off, and one spec change moved both. `ccr1036.json` grew its two SFP+ cages in #2581 and declared `l2-forward` with them, so the CCR1036 is now a bridge with an Ethernet port: the catalogue's Ethernet-ported models went 2,207 -> 2,208, and the models that answer `show spanning-tree` with 'No spanning tree instance exists.' went 1,045 -> 1,044.

Measured, not remembered. At c5476313 - the commit that wrote both numbers - a probe over loadCatalog() gives 2,207 Ethernet-port models and 1,045 no-instance models, which is why the page was right then. At this tree the same probe gives 2,208 and 1,044, and the only model whose answer differs between the two trees is mikrotik/CCR1036 (ethernet 0->1, no-instance 1->0).

The round-trip guard prints its own number: `test/config-roundtrip.test.js` ends with 'the sweep covered the catalogue (2208 models)'. The spanning-tree number has no guard, so it was counted by asking every model in the catalogue for `show spanning-tree`, exactly as the sentence describes: 1,315 print a tree, 1,044 print the no-instance line, and 1,315 + 1,044 = 2,359.
* ci(github): port the pipeline from Forgejo Actions to GitHub Actions

The five checks keep their names, because those names are what a branch
protection rule reads: Test (Node 22), Test (Node 24), Typecheck,
Server smoke and Docker build, Arm auto-merge.

Same jobs, same gates, GitHub idioms: actions/checkout@v4,
actions/setup-node@v4 (matrix 22 and 24), npm ci --ignore-scripts, and no
fetch retry ladder, no act_runner cache workaround and no pinned Docker
CLI - those existed for the self-hosted runner, and ubuntu-latest brings
its own daemon.

Kept because they are gates and not workarounds: the 22.18 Node floor
asserted by scripts/check-node-floor.js in every job that runs source,
the step-level timeouts with their ::error titles, the data-only
classification, the liveness stand-down, the disk bound on the image
build, and the merge gate that reads every check before it arms.

.forgejo/workflows/ is untouched: it is the archive. docs/CI.md and the
README badge now point at GitHub, and the reasoning that outlives the
platform is kept while the platform facts are updated.

* ci(github): empty commit to trigger the first GitHub Actions run

Actions was disabled on the repository, so the pull_request event at open time
created no run at all. This commit gives the new workflow something to run on.

---------

Co-authored-by: Jay Louis <jay@jayw.uk>
Co-authored-by: packetforge-bot <packetforge-bot@users.noreply.git.jayw.uk>
Co-authored-by: packetforge-bot <bot@packetforge.local>
Merge branch 'main' into docs/1127-1625
Some checks failed
CI / Typecheck (pull_request) Successful in 29s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 21s
CI / Test (Node 24) (pull_request) Failing after 1m3s
CI / Test (Node 22) (pull_request) Successful in 1m4s
CI / Server smoke and Docker build (pull_request) Successful in 1m14s
CI / Arm auto-merge (pull_request) Successful in 2s
4e73cda0db
Some checks failed
CI / Typecheck (pull_request) Successful in 29s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 21s
CI / Test (Node 24) (pull_request) Failing after 1m3s
CI / Test (Node 22) (pull_request) Successful in 1m4s
CI / Server smoke and Docker build (pull_request) Successful in 1m14s
CI / Arm auto-merge (pull_request) Successful in 2s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin contrib/gh-pr-1602:contrib/gh-pr-1602
git switch contrib/gh-pr-1602
Sign in to join this conversation.
No description provided.