docs(simulation): the segment walk and cable length live in .ts files, not .js #2496

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

docs/SIMULATION.md pointed readers at engine/segment.js (three rows) and engine/link.js:14-36. Neither file exists: engine/segment.js became engine/segment.ts (#2483) and engine/link.js became engine/link.ts (#2494).

Evidence at dfb3aee2: engine/index.js:5 and engine/topology.js:4 require ./link.ts; engine/simulator.js:116 requires ./segment.ts. The length claim (null means not stated) is engine/link.ts:137 + :169. The reason: 'link down' drop is engine/simulator.js:3337, not :3099, which lands inside _sendL3.

Docs-only. Guards run locally: syntax-check 555 files (547 JS, 8 TS) OK; docs-cli-transcript 9/9; docs-show-commands 7/7 (83 forms / 166 commands / 112 refusals, unchanged); help-completeness 8/8; help-key-is-not-a-value 40/40; help-key-works-in-every-prompt 10/10; no-form-help-key 81/81; doc-catalog-counts 43/43; check-doc-citations --strict clean (379 citations, 24 judged).

Not fixed here: scripts/check-doc-citations.js matches only .js|.json|.md|.yml|.html|.css, so a .ts citation is never judged - code-side, another PR.

docs/SIMULATION.md pointed readers at `engine/segment.js` (three rows) and `engine/link.js:14-36`. Neither file exists: `engine/segment.js` became `engine/segment.ts` (#2483) and `engine/link.js` became `engine/link.ts` (#2494). Evidence at dfb3aee2: `engine/index.js:5` and `engine/topology.js:4` require `./link.ts`; `engine/simulator.js:116` requires `./segment.ts`. The length claim (null means not stated) is `engine/link.ts:137` + `:169`. The `reason: 'link down'` drop is `engine/simulator.js:3337`, not `:3099`, which lands inside `_sendL3`. Docs-only. Guards run locally: syntax-check 555 files (547 JS, 8 TS) OK; docs-cli-transcript 9/9; docs-show-commands 7/7 (83 forms / 166 commands / 112 refusals, unchanged); help-completeness 8/8; help-key-is-not-a-value 40/40; help-key-works-in-every-prompt 10/10; no-form-help-key 81/81; doc-catalog-counts 43/43; check-doc-citations --strict clean (379 citations, 24 judged). Not fixed here: `scripts/check-doc-citations.js` matches only `.js|.json|.md|.yml|.html|.css`, so a `.ts` citation is never judged - code-side, another PR.
docs(simulation): the segment walk and cable length live in .ts files, not .js
All checks were successful
CI / Server smoke and Docker build (pull_request) Successful in 18s
CI / Typecheck (pull_request) Successful in 23s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 10s
CI / Test (Node 22) (pull_request) Successful in 52s
CI / Test (Node 24) (pull_request) Successful in 55s
CI / Arm auto-merge (pull_request) Successful in 6s
8a30969182
engine/segment.js became engine/segment.ts (#2483) and engine/link.js became
engine/link.ts (#2494); SIMULATION.md still sent a reader to the .js paths, which
no longer exist. The link-down drop citation was also stale: the drop is emitted
at engine/simulator.js:3337, not :3099 (which lands in _sendL3's return).

The length claim now cites the field declaration and the constructor default
that make "null means not stated" true: engine/link.ts:137 and :169.
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-24 00:30:51 +00:00
jaylouisw deleted branch docs/1124-0017 2026-11-24 00:39:21 +00:00
Sign in to join this conversation.
No description provided.