You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fb33da1
Browse filesBrowse the repository at this point in the historyBrowse files
fix(mothership): close abandoned tool meters once instead of alarming every tick (#8479)
* fix(mothership): close abandoned tool meters once instead of alarming every tick
A tool meter row (cost unknown) stays open when the process that owned the
tool ends mid-execution, and nothing ever closed it. The replay tick counted
those rows and logged "Service usage requires reconciliation" at ERROR on
every tick in every process, forever. Its 5-minute threshold also flagged
tools that were still legitimately running.
The replay tick now closes meters older than twice the longest tool watchdog,
keeping a pricing failure's error or recording that the tool never finished,
and logs each closed meter once with its stream, tool call and reason. Known
spend is unaffected: it is saved and delivered as separate receipts.
* fix(mothership): keep a closed tool meter final against a late tool completion
0 commit comments