Issue-agent: make failed tool calls a first-class quality gate #105

Closed
opened 2026-04-27 09:20:53 -07:00 by nelsong6 · 5 comments
nelsong6 commented 2026-04-27 09:20:53 -07:00 (Migrated from github.com)

Problem

Failed tool calls waste time, consume tokens, and often reveal prompt/tool-surface mismatches. We now capture failed tool-call categories, but they are not yet a first-class quality signal or gate.

Examples from recent runs include failed memory reads and failed build attempts due to predictable missing restore state.

Desired Outcome

Track failed tool calls per phase as a first-class metric and optionally fail/warn when preventable failures occur.

Acceptance Criteria

  • Per-phase failed tool-call counts and categories are included in artifacts and job summary.
  • Preventable failures such as disallowed tool attempts, ambient-memory reads, stale tool references, and obvious missing-file reads are called out separately.
  • Successful output containing words like Failed: 0 is not counted as a failed tool call.
  • Add a configurable threshold for warning/failing a phase based on failed tool calls.
  • Final issue/PR summary includes failed tool-call totals by phase and grand total.
## Problem Failed tool calls waste time, consume tokens, and often reveal prompt/tool-surface mismatches. We now capture failed tool-call categories, but they are not yet a first-class quality signal or gate. Examples from recent runs include failed memory reads and failed build attempts due to predictable missing restore state. ## Desired Outcome Track failed tool calls per phase as a first-class metric and optionally fail/warn when preventable failures occur. ## Acceptance Criteria - Per-phase failed tool-call counts and categories are included in artifacts and job summary. - Preventable failures such as disallowed tool attempts, ambient-memory reads, stale tool references, and obvious missing-file reads are called out separately. - Successful output containing words like `Failed: 0` is not counted as a failed tool call. - Add a configurable threshold for warning/failing a phase based on failed tool calls. - Final issue/PR summary includes failed tool-call totals by phase and grand total.
github-actions[bot] commented 2026-04-27 21:30:01 -07:00 (Migrated from github.com)
Issue-agent run started: https://github.com/nelsong6/spirelens/actions/runs/25033955353
github-actions[bot] commented 2026-04-27 21:32:21 -07:00 (Migrated from github.com)
Issue-agent run started: https://github.com/nelsong6/spirelens/actions/runs/25034026168
github-actions[bot] commented 2026-04-27 21:49:57 -07:00 (Migrated from github.com)
Issue-agent run started: https://github.com/nelsong6/spirelens/actions/runs/25034494215
github-actions[bot] commented 2026-04-27 22:13:18 -07:00 (Migrated from github.com)
Issue-agent run started: https://github.com/nelsong6/spirelens/actions/runs/25035185582
nelsong6 commented 2026-07-05 15:45:33 -07:00 (Migrated from github.com)

Closing during repository issue cleanup. If this becomes active work again, we can reopen or recreate it as a fresh, specific task.

Closing during repository issue cleanup. If this becomes active work again, we can reopen or recreate it as a fresh, specific task.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens#105
No description provided.