feat(agents): surface timeout budget in tool schemas and errors #84
No reviewers
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
2 participants
Notifications
Due date
No due date set.
Blocks
#82 feat(agents): surface timeout budget in tool schemas and errors
cleveragents/cleveractors-core
Reference
cleveragents/cleveractors-core!84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/m2-tool-timeout-awareness"
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?
Summary
timeout(seconds) in the LLM-facing schemas forshellandhttp_request— the only two built-in tools whose execution actually enforces it — so the model knows upfront these calls are time-boxed.timeoutas the adjustable config field (not just the elapsed seconds), andhttp_requestnow distinguishes a timeout from other request failures instead of collapsing everything into a generic "HTTP request failed" message. Non-timeout HTTP failures are unaffected.benchmark_regressionnox session into CI as a new, non-blockingbenchmarkjob — ASV benchmarks existed (asv.conf.json,benchmarks/) but were never invoked by any workflow. Kept informational (not instatus-check's required list) since a local run took ~15 minutes.Closes #82
Test plan
nox -s lint— cleannox -s format -- --check— cleannox -s typecheck— 0 errors (1 pre-existing, unrelated warning:langchain_google_genaiimport)nox -s security_scan— 0 findings (bandit + semgrep)nox -s dead_code— cleannox -s unit_tests— 141 features / 2782 scenarios / 13172 steps passednox -s coverage_report— 96.8% (>= 96.5% threshold);llm_tools.py100%,tool.py98% (no missing coverage on changed lines)nox -s integration_tests(Robot Framework) — 27/27 suites passednox -s benchmark_regression(ASV) — "BENCHMARKS NOT SIGNIFICANTLY CHANGED", as expected for a messaging-only change🤖 Generated with Claude Code
0ddbdd8312to91cb2b0f9591cb2b0f952d3b45f2f52d3b45f2f5c04b7ba7ebc04b7ba7eb4b354f5b2dPR Review: !84 (Ticket #82)
Verdict: Approve
The implementation correctly surfaces the configurable
timeoutbudget in the LLM-facing schemas forshellandhttp_request, and enriches both timeout error paths with thetimeoutconfig field name while preserving the existing message shape for non-timeout HTTP failures. Tests cover the new schema wording and both timeout error messages, plus the non-timeout HTTP failure regression guard. No critical or major correctness, security, or performance issues were found.Critical Issues
None
Major Issues
None
Minor Issues
noxfile.py:27,CONTRIBUTING.md:317-318, issue #82 acceptance criteria): The PR reports overall coverage of 96.8%, which passes theCOVERAGE_THRESHOLD = 96.5actually enforced bynox -s coverage_report, but falls below the 97% threshold stated inCONTRIBUTING.mdand in the issue's acceptance criteria. This is a pre-existing project inconsistency, but it means the issue's stated coverage criterion is not technically met. Recommendation: reconcile the documented threshold (CONTRIBUTING.md, issue template) with the value innoxfile.py, or bring coverage to ≥97%.Nits
None
Summary
A focused, well-tested change that extends the ADR-2030 precedent for schema hints and actionable error messages to the
timeoutconfig field. The timeout-awareness wording is accurate relative to Actor Configuration Standard §4.5, and the newasyncio.TimeoutErrorbranch in_http_request_toolcorrectly distinguishes timeouts from other request failures without changing non-timeout behavior. Safe to merge after the minor coverage-threshold discrepancy is acknowledged or resolved.