docs(simulation): the BGP row's CLI pointers land in no dns zone and two IPv6 handlers #2551

Merged
jaylouisw merged 1 commit from docs/1124-0917 into main 2026-11-24 09:38:19 +00:00
Owner

What was untrue

docs/SIMULATION.md §5.6 lists, for the BGP section's last row, the three places in engine/cli.js that implement router bgp, _bgp() and neighbor ... remote-as. It cited:

  • engine/cli.js:2009-2010 for router bgp
  • engine/cli.js:3361 for _bgp()
  • engine/cli.js:3394-3405 for neighbor ... remote-as

Evidence from the code

Read off this tree (ebaa7546):

  • 2009 is inside the no dns zone handler (engine/cli.js:2007-2015); the router bgp door is at 2052.
  • 3361 is if (key === 'valid') valid = n; inside _ipv6Nd()'s RA-prefix lifetime parser; _bgp(tokens) is defined at 3404.
  • 3394 is if (!p.valid) return ['% Invalid IPv6 prefix ...'] inside _ipv6Route(); the neighbor <ip> remote-as <as> block is 3438-3448 (its usage line at 3450).

The three moved together because #2532 and #2537 added code above all of them — +43, +43, +44 lines. The paragraph under the row already narrates one earlier round of exactly this rot (1901/3168/3202 → 1944/3246/3279 → 2009/3361/3394); this change records the fifth reading and names what the fourth one now lands in, so the paragraph is not silently contradicted by the table above it.

No code changed. The console's BGP surface itself is unchanged and still exercised by test/bgp*.test.js.

Guards

  • node scripts/syntax-check.js — 565 files, all OK
  • test/docs-show-commands.test.js — 91 forms, 182 commands, 118 refusals, 7 passed
  • test/help-completeness.test.js — 19 mechanisms, 16 show commands, 8 passed
  • test/no-form-help-key.test.js — 81 passed
  • test/docs-cli-transcript.test.js — 9 passed
  • node scripts/check-doc-citations.js — 364 citations, 24 judged, none more than 40 lines from the code it names
  • node scripts/check-control-bytes.ts — clean
## What was untrue `docs/SIMULATION.md` §5.6 lists, for the BGP section's last row, the three places in `engine/cli.js` that implement `router bgp`, `_bgp()` and `neighbor ... remote-as`. It cited: - `engine/cli.js:2009-2010` for `router bgp` - `engine/cli.js:3361` for `_bgp()` - `engine/cli.js:3394-3405` for `neighbor ... remote-as` ## Evidence from the code Read off this tree (`ebaa7546`): - `2009` is inside the `no dns zone` handler (`engine/cli.js:2007-2015`); the `router bgp` door is at **2052**. - `3361` is `if (key === 'valid') valid = n;` inside `_ipv6Nd()`'s RA-prefix lifetime parser; `_bgp(tokens)` is defined at **3404**. - `3394` is `if (!p.valid) return ['% Invalid IPv6 prefix ...']` inside `_ipv6Route()`; the `neighbor <ip> remote-as <as>` block is **3438-3448** (its usage line at 3450). The three moved together because #2532 and #2537 added code above all of them — +43, +43, +44 lines. The paragraph under the row already narrates one earlier round of exactly this rot (1901/3168/3202 → 1944/3246/3279 → 2009/3361/3394); this change records the fifth reading and names what the fourth one now lands in, so the paragraph is not silently contradicted by the table above it. No code changed. The console's BGP surface itself is unchanged and still exercised by `test/bgp*.test.js`. ## Guards - `node scripts/syntax-check.js` — 565 files, all OK - `test/docs-show-commands.test.js` — 91 forms, 182 commands, 118 refusals, 7 passed - `test/help-completeness.test.js` — 19 mechanisms, 16 `show` commands, 8 passed - `test/no-form-help-key.test.js` — 81 passed - `test/docs-cli-transcript.test.js` — 9 passed - `node scripts/check-doc-citations.js` — 364 citations, 24 judged, none more than 40 lines from the code it names - `node scripts/check-control-bytes.ts` — clean
docs(simulation): the BGP row's CLI pointers land in no dns zone and two IPv6 handlers
All checks were successful
CI / Typecheck (pull_request) Successful in 16s
CI / Server smoke and Docker build (pull_request) Successful in 1m25s
CI / Test (Node 22) (pull_request) Successful in 1m14s
CI / Test (Node 24) (pull_request) Successful in 1m15s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 17s
CI / Arm auto-merge (pull_request) Successful in 5s
0c18036e90
The row names three places in `engine/cli.js`: the `router bgp` door, `_bgp()`
and the `neighbor ... remote-as` handler. It cited 2009-2010, 3361 and
3394-3405, which is where a fourth reading found them.

They have moved. #2532 and #2537 grew the console above all three, so 2009 now
falls inside the `no dns zone` handler, 3361 inside `_ipv6Nd()`'s lifetime
parser and 3394 inside `_ipv6Route()` - the same three-way rot the paragraph
above the row already describes once, now repeated one reading later.

Re-read off this tree: 2052 (`router bgp`), 3404 (`_bgp()`), 3438-3448
(`neighbor ... remote-as`), which is 43, 43 and 44 lines below the fourth
reading. The paragraph says so, and says what the fourth reading had rotted
into, so the next reader knows the numbers move rather than that the code did.
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-24 09:29:17 +00:00
forgejo-actions canceled auto merging this pull request when all checks succeed 2026-11-24 09:30:50 +00:00
jaylouisw deleted branch docs/1124-0917 2026-11-24 09:38:26 +00:00
Sign in to join this conversation.
No description provided.