MIMiguel Arroyocommented 2d ago
Describe the bug
Burn-rate alerts fire spuriously during traffic shifts — surfaces on thresholdctl in the high-priority path. The full reproduction is below, along with the workaround we use in staging.
Reproduce
- Clone
ln-dev7/thresholdctlat the tip ofmain. - Run the smoke suite:
pnpm test --workspace thresholdctl. - Notice the test for the affected contract flakes within the first 50 iterations.
Expected behavior
The contract should hold deterministically across the full matrix — staging, production, and the local dev runtime.
Environment
- node
22.x - pnpm
9.x - OS: macOS 15.2 (also reproduced on Linux 6.x)
Labels: bug