mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-04-25 17:45:53 +03:00
[GH-ISSUE #157] [FEATURE]: Survival mode for Anthropic Subscription's 5-hour rolling usage windows #54
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shannon-KeygraphHQ#54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @UmbraDeorum on GitHub (Feb 22, 2026).
Original GitHub issue: https://github.com/KeygraphHQ/shannon/issues/157
Originally assigned to: @ajmallesh on GitHub.
Is your feature request related to a problem? Please describe.
A.
When an agent hits Anthropic's usage limit mid-run, the current
PRODUCTION_RETRYpolicy caps backoff at 30 minutes:Anthropic's usage limits reset on a rolling 5-hour window from when the session started for subscription models. With a 30-minute ceiling, the retry schedule plateaus well short of that window, causing the workflow to terminate with no completed agents and an un-resumable workspace.
B.
The parallel phase launches all 5 vuln/exploit pipeline pairs simultaneously via Promise.allSettled, which spikes LLM usage and makes hitting the limit more likely.
Describe the solution you'd like
A.
Either provide a preset 5+hour safe timeout for subscription users as a config option, or expose the values in PRODUCTION_RETRY, so that operators are able to configure them before launching (or both).
B.
Exposing a
max_concurrent_pipelinesconfig option would let operators tune the number of simultaneous pipelines launched, allowing for better control in low-tier subscriptions.This requires adding the field to Config in
src/types/config.tsand passing it through tobuildPipelineConfigs()insrc/temporal/workflows.ts.Include a section in README for subscriptions users, so that they may set this configuration properly beforehand, saving them from failed runs.
Describe alternatives you've considered
At this time, the only alternative is to directly modify the values in the respective sections in the code, which most likely means that a failed run has already taken place before someone goes through the effort of looking for them.
Additional context
No response