LLM Agent Communication Retry Mechanisms with Exponential Backoff #69
Labels
No labels
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#77 Epic: LLM Agent Runtime Stabilization — reliability, resource enforcement & correctness hardening
cleveragents/cleveractors-core
#70 feat(agents): add LLM agent retry mechanisms with exponential backoff
cleveragents/cleveractors-core
Reference
cleveragents/cleveractors-core#69
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?
Description
Introduce configurable retry mechanisms for all LLM agent communications (main agent and pruning agent) to handle transient LLM server failures gracefully.
The retry loop employs exponential backoff (initial 0.5s, doubled each retry) and terminates when either
max_retriesormax_retry_timeis reached, whichever comes first. Setting either value to-1disables that guard (infinite retries or infinite retry time). If bothmax_retriesandmax_retry_timeare-1, retries continue indefinitely (strongly discouraged). Counter and accumulated wait time are reset on success. On eventual failure, the library exits with a timeoutExecutionErrorthat includes the target URL and actor graph name.Applies uniformly to both the main agent and the pruning agent (when
allow_tool_output_pruningis active).Acceptance Criteria
max_retries(default 7) andmax_retry_time(default 60s) are configurable per LLM agent.max_retries = -1allows infinite retries (bounded only bymax_retry_timeif finite).max_retry_time = -1allows infinite retry time (bounded only bymax_retriesif finite).-1creates infinite retries (documentation warns against this).max_retriesis reached or accumulated wait time >=max_retry_time(whichever comes first), considering-1as disabled.ExecutionError(kind="timeout")with URL, actor graph name, retry count, and accumulated wait time in the message.Metadata
feat(agents): add LLM agent retry mechanisms with exponential backofffeature/m2-llm-agent-retry-mechanismsSubtasks
max_retriesandmax_retry_timeconfig fields in agent schema, with-1sentinel for unbounded guardsLLMAgentcommunication path, handling-1guardsExecutionErrorwith URL, actor graph name, retry count, accumulated time, and disabled-guard indication)-1sentinel casesdocs/adr/ADR-2032-llm-agent-retry-mechanisms.md(included in this branch)nox(all default sessions), fix any errorsDefinition of Done
This issue is complete when:
master, reviewed, and merged before this issue is marked done.