Epic: LLM Agent Runtime Stabilization — reliability, resource enforcement & correctness hardening #77
Notifications
Due Date
No due date set.
Depends on
#2 Clever Actors only accepts GRAPH actors, not LLM actors.
cleveragents/cleveractors-core
#6 compile_actor() drops graph-level system_prompt — not threaded into CompiledActor
cleveragents/cleveractors-core
#39 fix(runtime): add input validation, credential safety, and proper error propagation
cleveragents/cleveractors-core
#57 LLMAgent.cleanup() closes shared cached httpx clients, breaking subsequent LLM requests
cleveragents/cleveractors-core
#61 feat(tool-loop): add token-budget awareness and tool output pruning
cleveragents/cleveractors-core
#63 fix(agents): validate LLMAgent tool dispatch against declared tools list
cleveragents/cleveractors-core
#65 bug(agents): LLM token consumption undercounted — pruning model calls untracked, earlier loop rounds overwritten
cleveragents/cleveractors-core
#69 LLM Agent Communication Retry Mechanisms with Exponential Backoff
cleveragents/cleveractors-core
#71 ConnectionError retry exhaustion silently swallowed, producing empty response instead of propagating ExecutionError
cleveragents/cleveractors-core
#75 Implement real `type: tool` graph node execution by wiring `NodeConfig.tool` to `ToolAgent._execute_tool`
cleveragents/cleveractors-core
#76 Enforce USD budget at each agent invocation (incl. pruning): skip pruning when tripped, fail immediately with no retries at zero/negative balance
cleveragents/cleveractors-core
#82 feat(agents): surface timeout budget in tool schemas and errors
cleveragents/cleveractors-core
#93 Expose sandboxed read_file/write_file helpers to inline code (Python_exec) in unsafe mode
cleveragents/cleveractors-core
Reference: cleveragents/cleveractors-core#77
Reference in New Issue
Block a user
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?
Metadata
Commit Message:
chore(epic): track LLM agent runtime stabilizationBackground and context
Beyond the two standards-conformance tracks — the Actor Configuration Standard Legendary (#9) and the Package Registry Client Epic (#22) — a distinct body of work has accumulated whose purpose is not new capability or spec conformance but operational hardening of the LLM agent runtime: making agent execution correct, resilient, and resource-bounded under real-world conditions (transient LLM/network failures, tool-call loops, token accounting, credential handling, cost ceilings).
These tickets were filed independently, are all recent (repo created 2026-05-17; every issue below falls within the last ~2.5 months), and — unlike the registry (#22) and public-API (#17) clusters — had no parent Epic. This Epic groups them so stabilization progress is visible as a single track.
Scope
In scope — features or bugfixes that stabilize the existing runtime (correctness, reliability, resource enforcement) and are not already owned by another Epic.
Explicitly out of scope (and why):
stream_message), #73 (tool_agent_class), #75 (type: toolgraph node) add functionality rather than stabilize existing behavior. (#67 is borderline — parity work; flag if it should move in.)Child issues
Bugfixes (runtime correctness & reliability):
compile_actor()drops graph-levelsystem_promptfix(runtime): input validation, credential safety, proper error propagationLLMAgent.cleanup()closes shared cached httpx clients, breaking subsequent runsfix(agents): validateLLMAgenttool dispatch against declared tools listbug(agents): LLM token consumption undercounted (pruning calls untracked)Stabilization features (resilience & resource enforcement):
feat(tool-loop): token-budget awareness and tool-output pruningAcceptance criteria
This Epic is done when all child issues above are closed and their individual Definition-of-Done criteria are met, and specifically:
system_promptthreaded (#6).noxfull suite passes.Dependency graph
Relationship to other trackers
Complements — but is deliberately kept separate from — Legendary #9 (spec conformance) and Epic #22 (registry). Where a stabilization fix also advances conformance, the child issue notes it.
Definition of Done
noxreturns all-green.