Repository navigation
Commit b95eb37
committed
fix(qualify): give the box the baseline it cannot have, so the guard judges
Every snapshot in results/ says outcome "seed", baseline_samples 0, drift null -
on every box, for every gateway, in every run since the check was written. The
box qualification has never once judged anything.
The cause is where the history lives. `qualify_history` reads previous
observations out of the results directory, which is correct when the engine runs
beside the record. In the field it does not: every gateway gets a fresh EC2
instance that fetches its own manifest and the rig and nothing else, so the
directory is empty, the baseline is absent, and judging degrades to seeding. A
box running well under the field's rate would have seeded a fresh baseline,
reported "seed", and had a whole gateway column measured on it.
The orchestrator holds what the box cannot, so it now hands it over in
OTB_QUALIFY_BASELINE, appended to whatever the directory yields rather than
replacing it. The observation is the RIG's own loopback throughput at a fixed
concurrency, not the gateway's, so the baseline pools across all gateways rather
than per gateway: it is the box being qualified, and the boxes are identical by
construction. Median, so one anomalous past box cannot move it.
Sized against the real field rather than a guess. Across the 2026-07-28 run the
14 boxes observed 475906 to 509142 rps against a 497862 median - a worst
deviation of 4.4% - and the band is 20%, so activating the guard fails no
healthy box. The test asserts exactly that: the slowest and fastest real boxes
of that field both pass, and 300000 fails.
Confirmed RED without the handed baseline: the history comes back empty, which
is the seed-forever behaviour the field has had all along.1 parent cbff1a5 commit b95eb37
2 files changed
Lines changed: 109 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
760 | | - | |
| 760 | + | |
761 | 761 | | |
762 | | - | |
763 | | - | |
764 | | - | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
765 | 779 | | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
766 | 792 | | |
767 | 793 | | |
768 | 794 | | |
| |||
1685 | 1711 | | |
1686 | 1712 | | |
1687 | 1713 | | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
1688 | 1764 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
260 | 289 | | |
261 | 290 | | |
262 | 291 | | |
| |||
0 commit comments