Repository navigation
Warn before tasks run on extra usage, defer until reset - #18
Merged
Merged
Conversation
Codex: the last token_count's rate_limits in its saved conversation (both windows, their resets, and its credits), and a refusal after it. Claude Code: a refused request's quotaLimits (the hard stop, with its exact reset), and its status line input: the board's settings file for a Claude agent now names `herdr-projects statusline` as its status line, which keeps rate_limits beside the task (window-<role>.json) and then runs your own status line command on the same input, so the pane shows yours. Each program's window on the machine is kept in usage.json, with its episode of extra usage (a window at 100% while answers are served) until it resets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The keeper's pass reads each working agent's usage window, keeps it as its program's window, and marks the task while its agent is on extra usage: its row says since when, `details` has a `usage` entry, board.notify is told once per task and episode (`extra usage`), and the board's header shows each program's window where it is known. usage.extra (task, repo entry, you, the repo's file, built in `allow`): - allow: today's behaviour, with the warnings. - ask: the agent is stopped at once (the limits' own stop, `what: usage`), its work kept, and the task waits for you; carrying on is leave for that episode; no task starts on extra usage without your retry. - defer: the next agent on worker.fallback not on extra usage takes over; else the agent is stopped at once and waits for its window, carrying on by itself at the reset (reset not known: it waits for you). A start is held in the queue without a slot until the reset, or goes to the fallback. A turn out of allowance waits for its window too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page shows each area of settings as a group of its own, so the new `usage.` area takes two more lines on the screens these tests size to fit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… setting Review fixes: - A defer hand-over to worker.fallback no longer takes the task's extra usage mark off before board.notify was told: a mark goes only once told, and the row says it only for the agent that is on it. - A task stopped for extra usage follows usage.extra as it reads now: set from ask to defer while it waits, it waits for the window (not for you) and its line says so; back to ask, it waits for you again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PRJ-26 is built and committed: the board now reads each agent's usage window, warns when an agent runs on paid extra usage, and acts on a new setting,
usage.extra(allow,askordefer). The 20 new tests pass. My one full run ofnpm run check -- --allhad two failures; after the fix those two pass, but I haven't re-run the full check, so the board's own check is the final word.How it detects, with no model calls:
herdr-projects statusline. That keeps the window readings beside the task, then runs your own status line, so the agent's pane looks the same.showsays so.What you see, for every task:
detailsshows since when and until when.board.notifyfires once per task and window, with the eventextra usage.The setting:
allow(the default): only the warnings above.ask: the agent is stopped at once with its work kept, and the task waits for you. Carrying on lets it use extra usage until that window resets. While the program is on extra usage, a task won't start until you retry it.defer: the next agent onworker.fallbackthat isn't on extra usage takes over. Otherwise the agent is stopped at once, waits, and carries on by itself when the window resets. If the reset time isn't known, it waits for you. A start is held in the queue without taking a slot, or goes to the fallback. A turn that ends because the usage limit was hit also waits for the reset.The full write-up is in
docs/extra-usage.md.Where I left the plan:
deferstops the agent at once, as you decided, so there's no stop at the end of the turn except after a turn that ran out of allowance.tests/main.rswas at the 300-line limit; I removed its one blank line so the new test module fits.limit.tokenstest checks that a task stopped at its token limit stays stopped there, sincedeferno longer stops at the end of a turn.Checks:
~/.claude/projectsfor this worktree.statuslinecommand, run on a scratch board: it printed your own status line unchanged, and kept nothing when given a wrong token.Also noticed:
crates/flow/src/plan/build.rs: after the plan was approved, this agent stayed in the read-only sandbox until a second message.docs/settings.mdleavescheck.againandmerge.pushTimeoutout of the repo file's list of allowed settings;docs/fallback.mdanddocs/gate.mdstill say "seven facts".crates/board/src/board/update/actions.rsandtests/main.rsare now at the 300-line limit.tests/coordinator*.rs: compiler warnings for unusedtopvariables.Task: PRJ-26 (herdr-projects/26)