Files
clawmates/crates/bins/clawmates-server
Omar SobhandClaude Opus 5.5 318a6791b9
deploy / test (push) Successful in 5m35s
deploy / build (push) Successful in 6m0s
feat(judge): watch the judge providers' plan usage; switch to the fallback before the wall
GLM's weekly window ran out while the judge had spent ~0.1% of it: other
consumers of the shared key starve the judge, and ClawMates learned only from
failed phases. A poller now reads z.ai's quota API and Kimi's usages API every
10 minutes, warns once per window per reset at 80%, and the evaluator skips a
judge whose plan is at 95% in any window for the (equally independent)
fallback — only on a real reading, never on a missing one. GET
/api/judge/quota shows the readings.

Parsers pinned to the shapes both APIs returned on 2026-09-23.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-23 07:55:10 -05:00
..