Commit a951a19
committed
fix: publish the cost window's own load, and drop the aborted run's orphan row
AUDITING THE FIRST COST-CARRYING SNAPSHOT FOUND A NUMBER NOBODY COULD CHECK.
one-api published cpu_us_per_request 13,207 and cost_core_utilisation 2.56%. Those two are consistent
only if the cost window carried about 7.75 rps - but the sweep's rung at the SAME concurrency carried
35. Both readings are defensible and they mean opposite things: either the gateway is genuinely cheap,
or that window simply did less work than the sweep did. Nothing in the artifact could separate them,
because `cpu_us_per_request` is CPU divided by a request count that was published NOWHERE.
A number that re-derives from nothing is the thing this project refuses to ship. `cost_window_ok` and
`cost_window_rps` now publish the window's own completed count and rate, so the cost divides by
something a reader can see.
Worth recording, because it nearly passed: my first check of these figures was
`cpu_us_per_request x rps_per_cpu_second == 1,000,000`, and it "passed". It is TAUTOLOGICAL - the two
are the same quantity inverted, so the product is a million by construction whatever the data says. A
check that cannot fail told me the numbers were sound while the real question went unasked.
ALSO REVERTED: the aborted run's one-api row (525f9c5). Killing a run mid-flight left one gateway
published at engine 26c7436 while the other thirteen sat at dd58497 - a mixed board, and a row
measured by a run that was stopped before it could be trusted. R3 caught it immediately ("the board is
rendering from a stale/mis-selected run"), which is the freshness guard doing exactly its job. An
aborted run must leave nothing behind.
514 engine tests, clippy/fmt clean, 206 site tests, check-consistency clean, auditor fixtures pass.1 parent 525f9c5 commit a951a19
6 files changed
Lines changed: 30 additions & 17673 deletions
File tree
- engine/src
- results/snapshots
- site
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1764 | 1764 | | |
1765 | 1765 | | |
1766 | 1766 | | |
| 1767 | + | |
| 1768 | + | |
1767 | 1769 | | |
1768 | 1770 | | |
1769 | 1771 | | |
| |||
1825 | 1827 | | |
1826 | 1828 | | |
1827 | 1829 | | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
1828 | 1840 | | |
1829 | 1841 | | |
1830 | 1842 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
430 | 440 | | |
431 | 441 | | |
432 | 442 | | |
| |||
870 | 880 | | |
871 | 881 | | |
872 | 882 | | |
| 883 | + | |
| 884 | + | |
873 | 885 | | |
874 | 886 | | |
875 | 887 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
| |||
1335 | 1337 | | |
1336 | 1338 | | |
1337 | 1339 | | |
| 1340 | + | |
| 1341 | + | |
1338 | 1342 | | |
1339 | 1343 | | |
1340 | 1344 | | |
| |||
0 commit comments