Repository navigation
Commit 486c9e4
committed
fix(dashboard): the phase table mirrors the engine's metric groups, and
CI caught a real omission: `bench-dashboard.py` keeps PHASE_ORDER/PHASE_COST as an exact mirror of
`metric::METRICS`, and adding the Cost group to the engine without updating them left the dashboard
describing a five-group cell that no longer exists. The self-test that failed exists precisely to
make that cross-file contract impossible to break silently, and it did its job on the first push.
RENORMALISED, NOT APPENDED. The weights are a fraction of ONE cell and the test asserts they sum to
exactly 1.0, so bolting a sixth group on would claim a cell is 101.1% of itself and skew every ETA
the dashboard prints. `cost` runs ONE load window and `added_latency` runs TWO (gateway leg and
direct leg) for 0.022, so one window is ~0.011; the other five keep their measured proportions
exactly - each its old weight over the new total - with the 1e-6 rounding drift absorbed into the
largest, `memory`, where it is far below the noise in the estimate it feeds.
All seven python suites pass.cost was missing1 parent 122ac9c commit 486c9e4
1 file changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
109 | 118 | | |
110 | 119 | | |
111 | 120 | | |
112 | | - | |
| 121 | + | |
113 | 122 | | |
114 | 123 | | |
115 | 124 | | |
| |||
0 commit comments