Router: "money left" is the pool's allowance when a pool takes the worker's route #175
Closed
opened 2026-10-19 01:10:52 +00:00 by teahubxyz
·
0 comments
No Branch/Tag Specified
main
gh-pages
well-known-mail
havre/catalog-18-plus-20261024
havre/byok-unfiltered-20261024
time/card-260
modern-havre
uncensor-havre
havre-split-hide
havre-split
havre-model-sort
time/card-244
time/card-223
havre-art-and-snap
havre-remix-edit
havre-voice-in-tools
havre-asmr-mode
havre-update-pill
havre-whisper
claude/card-202-truncated-review-2wh43h
time/card-211
claude/card-198-superseded-cards-p3jqzg
havre-live
havre-open
claude/taskmaster-haggle-checkout-f57aux
havre-memory
havre-photoshoot
havre-workflows
claude/card-173-rank-spine-cards
ceo/sync-back-union
claude/card-171-router-optimization-7t2dp6
claude/router-pick-outcomes-99zcnh
time/card-48
time/card-98
time/card-170
time/card-89
time/card-160
time/card-114-gh-pages
time/card-113-gh-pages
time/card-96-gh-pages
time/card-85
havre-next2
havre-cast
time/card-82
time/card-80
time/card-79
ceo/worker-base-and-slack
time/card-87
time/card-94
chatgpt/parallel-api
time/card-95
time/card-71
mention-ledger-token
astra-board
havre-next
venture/slyng
havre-brutalist
ship-from-repo
time/card-63
time/card-60
time/card-61
No results found.
Labels
Clear labels
accessibility
andon
astra
bug
cloud
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
planned
question
queued
ready
signal
signup
spec
venture
venture-batch
wontfix
Barrier affecting people with disabilities
Something isn't working
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Good for newcomers
Extra attention is needed
This doesn't seem right
Further information is requested
Time picks this up on the next heartbeat
👍 = I want the next version
early-access signup for a venture
This will not be worked on
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: teahubxyz/time#175
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Follows #168 and #82 (#174).
router_tickgivesrouter.pickTIME_DAILY_USDminus today's spend as the day's money left. Since #174, Claude calls answer to theanthropic-creditspool intime/pools.json(about $8/day while the credit lasts), not to the daily cap. So in live mode the router would queue cards against money the worker can't spend.Changes (
astra.py):TIME_WORKER's provider, asbudget_checksees it) givesallowance(pool) - pool_spent(pool). Without a pool, it staysTIME_DAILY_USD - today. Either way it is capped by what's left of the monthly cap.pickgets $2. Without a pool, the old figure. With the month nearly spent, the monthly cap's remainder.DONE: PR open with the code above,
python3 .github/time/test_time.pygreen including the new checks, CI green