[Feature] Bound repeated tool-validation failures while allowing corrected calls

Đang mở
#11,086 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
ai, backend

Hướng nghiên cứu

Start by reading #7388 and #7387 for the existing repeated-call notices, then review the runner and tool-validation paths that classify failures before execution. The issue calls for agreement on the threshold, opt-in mechanism, and error classification before a general implementation; verify that corrected calls and successful repeated calls remain available, while unchanged validation failures are bounded within one run.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Feature Description

Provide a bounded recovery policy for repeated, deterministic tool-validation failures while allowing corrected requests to proceed.

In a scheduling incident, the agent made 16 invalid future_task(action="create") calls: 12 omitted the one-time switch and four later omitted reminder content. All failed before persistence. Repeated-call notices were logged, but the run continued making invalid calls.

#7388 already supplies escalating notices after repeated calls. This discussion concerns what should happen when the model continues submitting the same arguments and receives the same deterministic validation error despite those notices.

Proposed Behavior for Discussion
  • Identify pre-execution validation failures reliably, preferably through explicit error classification rather than matching arbitrary error text.
  • Track the same tool, equivalent arguments, and validation failure within one run. Reset the streak when arguments are corrected or execution succeeds.
  • After a small bounded number of unchanged failures, stop executing that offending tool for the current run and have the agent report that the requested operation was not completed. Keep unrelated tools available and restore normal availability on the next run.
  • Preserve successful repeated calls and legitimate polling; a repeated tool name alone is insufficient evidence of failure.
  • Treat uncertain outcomes such as network timeouts separately. A create request may already have succeeded, so state verification and request idempotency need separate design rather than blind retry.

The threshold, tool opt-in mechanism, and error classification should be agreed before implementing a general runner change. A local future_task-specific mitigation has been isolated and tested, but this issue does not propose importing the broader #6259 patch or claim a generic solution is already implemented.

Use Case

Natural-language reminders and other state-changing tools whose missing arguments can otherwise consume the entire agent step budget without making progress. The focused companion fix for one-time reminder inference is #11085, addressing #11084.

Related Work
  • #6259: closed, unmerged proposal containing error-loop protection and other mechanisms.
  • #7388 and #7387: repeated-call notices and the original looping report.
  • #8163: configurable notice thresholds; related, but does not itself specify a bounded response to deterministic validation failures.
Checklist
  • Searched existing issues and PRs; related and historical proposals are linked above.
  • This concerns AstrBot core rather than a plugin.
  • Read and will follow the project Code of Conduct.
Ngôn ngữ chính
Python
Star
46.9k
Fork
3.6k
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
136

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AstrBotDevs/AstrBot

Tất cả issue của AstrBotDevs/AstrBot

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.