plans: a PoE budget is one number, and Ubiquiti publishes five #2014

Merged
jaylouisw merged 1 commit from plan/1118-1811 into main 2026-11-18 18:24:46 +00:00
Owner

Forward plan at docs/plans/poe-budget-variants.md. Measured on bf587889. No code.

The finding. devices/ubiquiti/usw-ultra.json:124 stores poe.budgetW: 42; :125 puts the other four input rows ("PoE++ input 42 W, PoE+ input 16 W, 60 W AC adapter 52 W, 210 W AC adapter 202 W") in a note string that nothing in engine/, devices/registry.js or web/ reads. ecs-24-poe.json:385-386 does the same for 1,050 W. A lab powering a USW-Ultra from the 210 W adapter is capped at 42 W, and the engine reports that as arithmetic because poeBudgetSource is research.

Supporting evidence in the plan:

  • resolution ladder engine/device.js:189-194, five sources, one scalar; poeBudgetSource read only at :276 and scripts/audit-poe-budget.js:83-84 — never by show power inline (engine/cli.js:5285), so the 20 name-inferred budgets (incl. ES-48-500W, a PSU rating) print like sourced ones
  • computePoe() skips budget === 0 (engine/simulator.js:2553), so the 128 silent PSEs never enter the table and the console says "budget not modelled" (engine/cli.js:5222-5223)
  • scripts/audit-poe-budget.js:120 exits at import (no require.main guard) and is in no script or workflow, so no test can call it
  • poe.budgetW is documented in neither CONTRIBUTING.md nor docs/
  • the census doc says 129 silent / 40 prose; today's run says 128 / 39 — #2010 promoted one and nobody updated it

Nine steps, each one PR: askable audit + a conditionality cohort (S) → poe.budgetVariants (S, needs Jay's approval) → provenance in show power inline (S) → the same in web/app.js:2039 so the panel and console cannot drift (S) → move 16 conditional notes onto the field (S) → the 20 name-inferred, five per PR (M) → three models that claim PoE and resolve to 0 (S) → document the field (S) → gate --strict last (S, same package.json:11 line as docs/plans/catalogue-audit-agreement.md step 5).

Closes no issue — the queue is empty (0 issues, 3 open PRs) and #2012 already owns the prose cohort, which this plan deliberately does not re-propose. Per-port LLDP power negotiation is left out as a much larger change.

Forward plan at `docs/plans/poe-budget-variants.md`. Measured on `bf587889`. No code. **The finding.** `devices/ubiquiti/usw-ultra.json:124` stores `poe.budgetW: 42`; `:125` puts the other four input rows ("PoE++ input 42 W, PoE+ input 16 W, 60 W AC adapter 52 W, 210 W AC adapter 202 W") in a `note` string that nothing in `engine/`, `devices/registry.js` or `web/` reads. `ecs-24-poe.json:385-386` does the same for 1,050 W. A lab powering a USW-Ultra from the 210 W adapter is capped at 42 W, and the engine reports that as arithmetic because `poeBudgetSource` is `research`. **Supporting evidence in the plan:** - resolution ladder `engine/device.js:189-194`, five sources, one scalar; `poeBudgetSource` read only at `:276` and `scripts/audit-poe-budget.js:83-84` — never by `show power inline` (`engine/cli.js:5285`), so the 20 name-inferred budgets (incl. `ES-48-500W`, a PSU rating) print like sourced ones - `computePoe()` skips `budget === 0` (`engine/simulator.js:2553`), so the 128 silent PSEs never enter the table and the console says "budget not modelled" (`engine/cli.js:5222-5223`) - `scripts/audit-poe-budget.js:120` exits at import (no `require.main` guard) and is in no script or workflow, so no test can call it - `poe.budgetW` is documented in neither `CONTRIBUTING.md` nor `docs/` - the census doc says 129 silent / 40 prose; today's run says 128 / 39 — #2010 promoted one and nobody updated it **Nine steps, each one PR:** askable audit + a conditionality cohort (S) → `poe.budgetVariants` (S, needs Jay's approval) → provenance in `show power inline` (S) → the same in `web/app.js:2039` so the panel and console cannot drift (S) → move 16 conditional notes onto the field (S) → the 20 name-inferred, five per PR (M) → three models that claim PoE and resolve to 0 (S) → document the field (S) → gate `--strict` last (S, same `package.json:11` line as `docs/plans/catalogue-audit-agreement.md` step 5). **Closes no issue** — the queue is empty (0 issues, 3 open PRs) and #2012 already owns the prose cohort, which this plan deliberately does not re-propose. Per-port LLDP power negotiation is left out as a much larger change.
plans: a PoE budget is one number, and Ubiquiti publishes five
All checks were successful
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 3s
CI / Classify the change (pull_request) Successful in 5s
CI / Server smoke test (pull_request) Successful in 9s
CI / Docker build (pull_request) Successful in 20s
CI / Test (Node 20) (pull_request) Successful in 50s
CI / Test (Node 22) (pull_request) Successful in 55s
CI / Test (Node 18) (pull_request) Successful in 59s
CI / Arm auto-merge (pull_request) Successful in 30s
a0f8d7c23b
The USW-Ultra stores budgetW 42 and puts the other four input rows in a
`note` string nothing reads; ECS-24-PoE does the same for 1,050 W. The
field cannot express a budget that is a function of how the box is
powered, so a lab on the 210 W adapter is capped at 42 W.

Nine steps, each one PR, from making scripts/audit-poe-budget.js askable
(it exits at import, :120, and is in no script or workflow) to gating it
last. Closes no issue: the queue is empty and #2012 already owns the
prose cohort.
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-18 18:20:14 +00:00
jaylouisw deleted branch plan/1118-1811 2026-11-18 18:24:47 +00:00
Sign in to join this conversation.
No description provided.