Skip to content

v0.3.2 — garbage-budget guards

Latest

Choose a tag to compare

@asiagenawi asiagenawi released this 18 Jul 22:18

Hardens local estimation against leftover test/demo configs after a field incident where the hook warned "1085.7% of the 5-hour window" with negative minutes-to-limit.

  • Config budgets under 100,000 weighted tokens are ignored as test/demo leftovers (diagnostic logged).
  • Local estimates above 150% discard themselves with a diagnostic (block tokens, budget, budget source); 100-150% clamps to 100%.
  • Minutes-to-limit projection floored at 0; the "~N minutes away" clause only renders when positive.
  • Missing OAuth token now logs the fallback to local estimation (throttled hourly) instead of failing silently.
  • New sandboxed CI regression test covering all of the above on unix and Windows.

Full details in CHANGELOG.md.