small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo

refactor(quota): decide the poll schedule in a pure module

The poller actor mixed its schedule with process plumbing, so cadence, backoff and retirement could be checked only by timing a daemon. The rules move to `quota_schedule` (tick, enumerated, polled, delay, wait_seconds), and the actor runs the discovery and polls each step answers. History filter parsing moves from the server into `quota.filter_from`, and `quota.record` becomes public for the history test. quota_schedule_test replays generated ticks, discoveries, finished and crashed polls and on/off switches against a model of quota.md's rules; quota_history_test checks paging, filters, `since` and the latest readings against a scan of what was recorded. Removed from e2e/quota_test.py, and what now catches each defect: - cadence, busy interval and backoff timed on wall clock -> quota_schedule_test (and quota_test's wait examples) - QuotaRetirementTest, a removed account's in-flight poll finishing once -> quota_schedule_test - history order, paging, filters, since, partial filters, latest without a recovered failure -> quota_history_test, a_history_filter_names_all_three_or_none The scenario keeps raw readings for every account, the Antigravity heal, a second poll of one account, and the filter-bound continuation (14.4 s -> 2.6 s).


Author aly.codes
Date Commit Parent 260a5955
+842 -536
8 changed files
+842 -536
8 changed files