fix(triage): stop asking a model that is down (#462) #475

Merged
sharang merged 1 commits from fix/462-triage-breaker into main 2026-10-05 22:48:16 +00:00
Owner

Follow-up to #472 for #462.

The per-id retries in #472 ask about a finding up to three times, and the third try sends each critical/high finding on its own. If the model accepts requests but never answers, every call waits for the client's 300 s timeout. A scan could then make up to about 720 calls, where it used to make at most about 60. Now, when every call in flight fails at once, the triage treats the model as down. It keeps the verdicts it already has and records the rest as skipped: no answer. An unreadable answer (garbage or truncated JSON) still counts as an answer, so those findings are asked about again as before.

Tests:

  • The model-down test now expects 1 call (before: 5).
  • New test: the model goes down after four chunks. 40 findings are confirmed, 5 are recorded as skipped (no answer), and 5 calls are made.

cargo fmt, cargo clippy -p compliance-agent --all-targets -- -D warnings and cargo test -p compliance-agent --lib (632 passed) all pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB

Follow-up to #472 for #462. The per-id retries in #472 ask about a finding up to three times, and the third try sends each critical/high finding on its own. If the model accepts requests but never answers, every call waits for the client's 300 s timeout. A scan could then make up to about 720 calls, where it used to make at most about 60. Now, when every call in flight fails at once, the triage treats the model as down. It keeps the verdicts it already has and records the rest as `skipped: no answer`. An unreadable answer (garbage or truncated JSON) still counts as an answer, so those findings are asked about again as before. Tests: - The model-down test now expects 1 call (before: 5). - New test: the model goes down after four chunks. 40 findings are confirmed, 5 are recorded as skipped (no answer), and 5 calls are made. `cargo fmt`, `cargo clippy -p compliance-agent --all-targets -- -D warnings` and `cargo test -p compliance-agent --lib` (632 passed) all pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang added 1 commit 2026-10-05 22:35:56 +00:00
fix(triage): stop asking a model that is down (#462)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 10m2s
2401ae6485
The per-id retries of #472 ask about a finding up to three times, the
critical/high ones on their own. A model that accepts requests and never
answers would hold each call for the client's 300 s timeout: up to 720
calls instead of 60. When every call in flight fails at once, the model
is taken as down; what it answered so far is kept, the rest is recorded
as "skipped: no answer". An unreadable answer still counts as an answer
and is asked about again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang merged commit 0c0eedb242 into main 2026-10-05 22:48:16 +00:00
Sign in to join this conversation.