Repository navigation
Make the creation limit a broad runaway guard - #1693
Merged
Merged
Conversation
The limit was max(10, 2 x the previous seven UTC days' mean) over a rolling 24 hours. Bot creation is bursty, with nightly and weekly runs and CI fan-outs, so a repository's busiest 24 hours run 3-6 times its mean, and 2x tripped on ordinary traffic. Replaying 61 days of six consumers' bot creations, it would have refused on 26 repository-days, all legitimate. worktrunk tripped at 11 creations, about five a day on average with a busy Sunday. The limit is now max(30, 4 x the daily average of the seven days before the last 24 hours). The same replay refuses on one day: leaf's surge when CI failures first flowed through issues, at 116% of its limit. A maintainer's close of the tracker now resets the count: creations before the close stop counting. That replaces seven-day approval floors (twice the larger of the baseline and usage at the close, each with its own expiry). Bot and App closes, and closes before the tracker's latest rename or label, still approve nothing. The tracker title becomes "Creation allowance exhausted", so the next refusal files a tracker describing the new approval rather than reopening one that promises a seven-day floor. The proxy no longer keeps receipts reconciled from GitHub's responses. Instead it forwards one creation at a time: a creation holds a lock until mitmproxy's response or error hook, so each admission's history lists every creation the proxy forwarded before. A refusal, failure or cancellation releases it at once. Separate runners can still overshoot by a few. Eval fixtures that described the old policy now describe this one.
tend-agent
approved these changes
Nov 15, 2026
A close used to reset the count, so each one bought one more allowance, and approving a sustained 30x surge took 7-9 closes, mostly on its first day. Each human close of the tracker in the past 24 hours now doubles the limit instead, and every creation in the rolling 24 hours still counts. Simulating sustained surges with a close at every refusal, a 10x jump needs 2-3 closes and a 30x jump 5-6.
tend-agent
approved these changes
Nov 16, 2026
Merged
max-sixty
added a commit
that referenced
this pull request
Nov 16, 2026
Bumps the generator to 0.3.26, syncs `uv.lock`, and adds the 0.3.26 section to `CHANGELOG.md`, which the tag's release workflow publishes as the GitHub Release notes. The release ships the 5 commits since 0.3.25 (plus the 0.3.25 regeneration). The one it was cut for is #1693: the creation limit becomes four times the previous week's daily average with a floor of 30, each maintainer close of the tracker doubles it for 24 hours, and the proxy forwards one creation at a time. worktrunk tripped the old limit at 11 creations this morning. > _This was written by Claude Code on behalf of max-sixty_
max-sixty
pushed a commit
to max-sixty/worktrunk
that referenced
this pull request
Nov 16, 2026
Updates the tend workflows from 0.3.25 to 0.3.26. The diff only moves the `max-sixty/tend` action pins and the generator stamp; the behavior changes come with the new action version. - **The issue/PR creation limit is much harder to hit.** The proxy's limit on bot-created issues and PRs is now max(30, 4 × the daily average of the prior week), all rolling. Before, it was 2× the daily average with a floor of 10, and this repo hit it at 11 creations in 24 hours on ordinary nightly and weekly traffic. Each maintainer close of the tracker in the past 24 hours doubles the limit, replacing the seven-day approval floors. The tracker is retitled `Creation allowance exhausted` (max-sixty/tend#1693). - **Claude Code 2.1.325** in the agent runtime (max-sixty/tend#1690). The other upstream changes are tend's own tooling, evals and dependency bumps, with no effect on these workflows. [Full upstream diff](max-sixty/tend@0.3.25...0.3.26) Co-authored-by: worktrunk-bot <[email protected]>
leaf-agent
added a commit
to max-sixty/leaf
that referenced
this pull request
Nov 16, 2026
Regenerates the Tend workflows with tend 0.3.26 (from 0.3.25). The diff only moves the `max-sixty/tend` action pins and the generator stamp; `.config/tend.yaml` and its model pins are unchanged. What changes for this repository: - **Creation limit.** The bot's issue and PR creation limit becomes a broad runaway guard: in any rolling 24 hours it may create up to four times its daily average over the previous week, with a floor of 30 (it was twice the previous seven UTC days' average, with a floor of 10). Each maintainer close of the tracker in the past 24 hours doubles the limit, replacing the seven-day approval floors. Refusals now file a tracker titled `Creation allowance exhausted` ([max-sixty/tend#1693](max-sixty/tend#1693)). Upstream's replay puts leaf's median limit at about 112 a day, up from about 56. - **Tooling.** Sessions run Claude Code 2.1.325 and uv 0.13.8 ([max-sixty/tend#1690](max-sixty/tend#1690), [max-sixty/tend#1691](max-sixty/tend#1691)). Full upstream diff: [0.3.25...0.3.26](max-sixty/tend@0.3.25...0.3.26). Co-authored-by: leaf-agent <[email protected]>
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.
The creation limit tripped on ordinary traffic: worktrunk hit it today at 11 creations in 24 hours. Bot creation is bursty (nightly and weekly runs, CI fan-outs), so a repository's busiest 24 hours run 3–6× its daily mean, and a limit of 2× the mean with a floor of 10 sits inside normal variation. Replaying the last 61 days of six consumers' bot creations, the old rule refuses on 26 repository-days, all legitimate; the new one refuses on 1 (leaf's surge when CI failures first went through issues, at 116% of its limit).
This makes the limit a broad runaway guard with fewer moving parts:
Creation allowance exhaustedso no consumer reopens an old tracker whose body promises a seven-day floor.To weigh: 4× and 30 are judgment calls. In leaf the median limit rises from ~56 to ~112 a day, which is what a runaway could create before refusal. A repository whose whole week is one batch larger than 30 would trip on its next batch; a peak-based rule (2× the busiest 24 hours last week) avoids that but refused on the same single day in the replay, and grows faster under a sustained runaway.
Requested by max-sixty. Codex reviewed four rounds; its findings (a concurrency bound, stale tracker text, eval fixtures, a cancellation leak) are fixed. Full
uv run pytestpasses (1687).