plans(bgp): the decision process has three inputs and no way to type them #2538

Merged
jaylouisw merged 1 commit from plan/1124-0637 into main 2026-11-24 07:08:42 +00:00
Owner

Forward plan only, no code. docs/plans/bgp-policy-layer.md turns the existing 1,176-line docs/BGP-POLICY.md specification into nine ordered PR-sized steps.

Grounded on 4c051c04: the comparator (engine/bgp.js:526) is complete, but every path is built from constants (engine/simulator.js:1972) and show ip bgp prints hardcoded metric: 0 / weight: 0 / locPrf (engine/cli.js:6116-6128). grep finds no communities, route maps, next-hop-self or denial counters anywhere in engine/. It also records a real compliance bug: advertise() emits LOCAL_PREF to eBGP peers (engine/bgp.js:657), and test/bgp.test.js:340-341 currently asserts that wrong behaviour.

Nine steps, S/M/L sized, each one PR. No step needs Jay's approval. No open issues exist, so this closes none.

Forward plan only, no code. `docs/plans/bgp-policy-layer.md` turns the existing 1,176-line `docs/BGP-POLICY.md` specification into nine ordered PR-sized steps. Grounded on `4c051c04`: the comparator (`engine/bgp.js:526`) is complete, but every path is built from constants (`engine/simulator.js:1972`) and `show ip bgp` prints hardcoded `metric: 0` / `weight: 0` / `locPrf` (`engine/cli.js:6116-6128`). `grep` finds no communities, route maps, `next-hop-self` or denial counters anywhere in `engine/`. It also records a real compliance bug: `advertise()` emits LOCAL_PREF to eBGP peers (`engine/bgp.js:657`), and `test/bgp.test.js:340-341` currently asserts that wrong behaviour. Nine steps, S/M/L sized, each one PR. No step needs Jay's approval. No open issues exist, so this closes none.
plans(bgp): the decision process has three inputs and no way to type them
All checks were successful
CI / Typecheck (pull_request) Successful in 16s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 9s
CI / Server smoke and Docker build (pull_request) Successful in 45s
CI / Test (Node 22) (pull_request) Successful in 49s
CI / Test (Node 24) (pull_request) Successful in 53s
CI / Arm auto-merge (pull_request) Successful in 3s
1c33feed86
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-24 06:42:00 +00:00
forgejo-actions canceled auto merging this pull request when all checks succeed 2026-11-24 06:57:32 +00:00
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-24 06:57:50 +00:00
forgejo-actions canceled auto merging this pull request when all checks succeed 2026-11-24 07:00:33 +00:00
jaylouisw deleted branch plan/1124-0637 2026-11-24 07:08:48 +00:00
Sign in to join this conversation.
No description provided.