docs(lag): every LAG citation points at engine/lag.ts, at the line the symbol is on #2509

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

engine/lag.js became engine/lag.ts in #2504 and every symbol moved. Six pages still cited the old file name, and the line numbers under it pointed past EOF or at unrelated code. The docs/CLI.md hash-policy citation was already wrong before the conversion (engine/cli.js:4140 vs the hashPolicy: 'l2' write at 4262, per git blame 5dd75ae1c).

What changed:

  • docs/SIMULATION.md §2.3: all six LAG rows repointed to engine/lag.ts with today's line numbers — HASH_POLICIES 235, fnv1a() 337, hashFrame() 372, negotiationVerdict() 488, memberSuspension() 521, maxMembers() 260, MAX_ACTIVE_LINKS 254, carryingMembers() 427, activeMembers() 443, standbyMembers() 448, the minLinks field 39 and its normalisation 299-301, selectMember() 407. Three simulator.js ranges in the same rows had drifted too: the lag event is 3739-3752, the computeStp() grouping 922-925, _egressRefusal()'s bundle answer 3795.
  • docs/CLI.md: prose citations lag.js -> lag.ts, lag.js:94 -> lag.ts:235, lag.js:264 -> lag.ts:407, simulator.js:3710 -> 3739, cli.js:4140 -> 4262 (where channel-group writes hashPolicy: 'l2').
  • docs/CI.md: the typecheck note was an unreproducible transcript — the resolver prints engine/lag.ts:131 require('./iface-name') today, not engine/segment.ts:118 require('./lag'), and the lag.js -> .ts break it warned about has happened.
  • docs/LINK-STATE.md, docs/PHYSICAL_LAYER.md, docs/ROADMAP.md, docs/UPSTREAM-DESIGN.md: path-only references, plus hashFrame() at lag.ts:372.

docs/plans/ and research/ are untouched: dated planning and evidence records, not claims about the current tree.

Guards, before -> after (unchanged): docs-cli-transcript 9/0 -> 9/0, docs-show-commands 7/0 -> 7/0, help-completeness 8/0 (16 show commands) -> same, no-form-help-key 81/0 -> 81/0. node scripts/syntax-check.js: 561 files OK. check-control-bytes.ts: clean. check-doc-citations.js: 379 -> 364 citations (the 15 dead lag.js:<line> ones retired), same 4 pre-existing long-distance suspects.

Docs-only; no engine change.

`engine/lag.js` became `engine/lag.ts` in #2504 and every symbol moved. Six pages still cited the old file name, and the line numbers under it pointed past EOF or at unrelated code. The `docs/CLI.md` hash-policy citation was already wrong before the conversion (`engine/cli.js:4140` vs the `hashPolicy: 'l2'` write at 4262, per `git blame` 5dd75ae1c). What changed: - **docs/SIMULATION.md** §2.3: all six LAG rows repointed to `engine/lag.ts` with today's line numbers — `HASH_POLICIES` 235, `fnv1a()` 337, `hashFrame()` 372, `negotiationVerdict()` 488, `memberSuspension()` 521, `maxMembers()` 260, `MAX_ACTIVE_LINKS` 254, `carryingMembers()` 427, `activeMembers()` 443, `standbyMembers()` 448, the `minLinks` field 39 and its normalisation 299-301, `selectMember()` 407. Three `simulator.js` ranges in the same rows had drifted too: the `lag` event is 3739-3752, the `computeStp()` grouping 922-925, `_egressRefusal()`'s `bundle` answer 3795. - **docs/CLI.md**: prose citations `lag.js` -> `lag.ts`, `lag.js:94` -> `lag.ts:235`, `lag.js:264` -> `lag.ts:407`, `simulator.js:3710` -> `3739`, `cli.js:4140` -> `4262` (where `channel-group` writes `hashPolicy: 'l2'`). - **docs/CI.md**: the `typecheck` note was an unreproducible transcript — the resolver prints `engine/lag.ts:131 require('./iface-name')` today, not `engine/segment.ts:118 require('./lag')`, and the `lag.js` -> `.ts` break it warned about has happened. - **docs/LINK-STATE.md**, **docs/PHYSICAL_LAYER.md**, **docs/ROADMAP.md**, **docs/UPSTREAM-DESIGN.md**: path-only references, plus `hashFrame()` at `lag.ts:372`. `docs/plans/` and `research/` are untouched: dated planning and evidence records, not claims about the current tree. Guards, before -> after (unchanged): docs-cli-transcript 9/0 -> 9/0, docs-show-commands 7/0 -> 7/0, help-completeness 8/0 (16 `show` commands) -> same, no-form-help-key 81/0 -> 81/0. `node scripts/syntax-check.js`: 561 files OK. `check-control-bytes.ts`: clean. `check-doc-citations.js`: 379 -> 364 citations (the 15 dead `lag.js:<line>` ones retired), same 4 pre-existing long-distance suspects. Docs-only; no engine change.
docs(lag): the module is engine/lag.ts now, so every LAG citation is repointed
All checks were successful
CI / Server smoke and Docker build (pull_request) Successful in 23s
CI / Typecheck (pull_request) Successful in 24s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 16s
CI / Test (Node 22) (pull_request) Successful in 54s
CI / Test (Node 24) (pull_request) Successful in 58s
CI / Arm auto-merge (pull_request) Successful in 4s
ed9b1bfbc0
#2504 converted `engine/lag.js` to TypeScript and moved every symbol. Six pages still
cited the old file, and the line numbers under it were past EOF or on the wrong code:

- docs/SIMULATION.md §2.3 - all six LAG rows (`lag.js:94/194/229/345/378/119/113/284/300/305`
  and the minLinks row) now name `lag.ts` and the line each symbol is on today:
  HASH_POLICIES 235, fnv1a 337, hashFrame 372, negotiationVerdict 488, memberSuspension 521,
  maxMembers 260, MAX_ACTIVE_LINKS 254, carryingMembers 427, activeMembers 443,
  standbyMembers 448, minLinks field 39, normalisation 299-301, selectMember 407.
  Three `simulator.js` ranges in the same rows had drifted with the file: the lag event is
  3739-3752, the `computeStp()` grouping 922-925, `_egressRefusal()`'s `bundle` answer 3795.
- docs/CLI.md - the two `lag.js` prose citations, `lag.js:94` and `lag.js:264`, plus
  `engine/simulator.js:3710` -> `3739`, and `engine/cli.js:4140` -> `4262`, which is
  where `channel-group` actually writes `hashPolicy: 'l2'` (`git blame` 5dd75ae1c).
- docs/CI.md - the `typecheck` note was a transcript that no longer reproduces: the
  resolver prints `engine/lag.ts:131 require('./iface-name')` now, not
  `engine/segment.ts:118 require('./lag')`, and the `lag.js`->`.ts` break it warned about
  has happened (`node scripts/check-module-paths.ts`).
- docs/LINK-STATE.md, docs/PHYSICAL_LAYER.md, docs/ROADMAP.md, docs/UPSTREAM-DESIGN.md -
  path-only references, `lag.js` -> `lag.ts` (`hashFrame()` at `lag.ts:372`).

docs/plans/ and research/ are left alone: those are dated planning and evidence records,
not claims about the current tree.
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-24 01:53:46 +00:00
jaylouisw deleted branch docs/1124-0147 2026-11-24 02:09:16 +00:00
Sign in to join this conversation.
No description provided.