A provider rate limit or outage fails investigations that --resume cannot retry
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Read internal/llm/httpx.go first to trace how response errors and retry waits work, then follow investigation handling in internal/engine/agentic.go and resume state in internal/engine/resume.go. Run the relevant tests and make test-short as described in the issue. Done means Retry-After is honored within the cap and context, repeated provider failures produce a resumable outcome, and scan --resume retries those investigations.
索引モデルが issue の本文から書いたものです。
説明
Summary
A provider 429 or outage fails each remaining investigation after 6 seconds, the run still ends as completed, and --resume cannot pick those investigations up. Proposal: honor Retry-After, stop early on repeated provider failures, and let --resume retry them.
Where
internal/llm/httpx.go:24-26,:47-56(3 attempts, fixed 2 s and 4 s waits)internal/llm/httpx.go:114-115(doOncenever reads response headers)internal/engine/agentic.go:377-384,:489(failed investigation settles leads as incomplete and goes on)internal/engine/resume.go:114-117,:169-171(--resumecontinues budget skips only)internal/cli/scan.go:31
Details
doOnce turns a non-2xx response into an API error and ignores Retry-After and the rate-limit reset headers. After 6 seconds the call fails. investigateOne records a reject, settles the leads as incomplete and continues, so during a rate-limit window every remaining investigation fails the same way. The leads come out as unconfirmed with "did not produce a usable result" and the run outcome stays completed. loadResume continues only the intents named in a budget skip, and Resumable requires the budget-exhausted outcome, so the only way to investigate those leads is a full new scan that plans and pays again.
Impact
Anyone running the agentic pipeline on a rate-limited key (low usage tiers, shared organization keys, parallel CI jobs) or during a provider incident. The run looks finished, the report is mostly unconfirmed leads, and the money already spent on the planner and the earlier investigations is not reusable.
Suggested fix
Three parts, each useful alone. (1) Parse Retry-After (seconds or HTTP date) in doOnce, carry it on the API error, and have doJSON wait for it, bounded by a cap (for example 60 s) and by the context. (2) After N consecutive investigations that fail with a retryable API error or a transport error, stop the loop the way a budget stop does, with a note that names the provider failure, so the rest of the plan is recorded as not reached. (3) Include in the resume state the intents whose reject has stage investigator and a failure reason (a distinct ledger field, not a text match), and make Resumable and the "To continue" hint cover that outcome.
Acceptance criteria
- A 429 with
Retry-After: 5is retried after about 5 s, within the cap and the deadline - Consecutive provider failures end the run with a distinct, resumable outcome
-
scan --resumeretries investigations that failed on a provider error
Related: #35, #66, #79
Getting started
- Relevant files: internal/cli/scan.go, internal/engine/agentic.go, internal/engine/resume.go, internal/llm/httpx.go
- How to run tests:
make test-short(Unix) or.\make.ps1 test-short(Windows PowerShell);make lintbefore you call it done - Related docs: CONTRIBUTING.md, docs/ARCHITECTURE.md
Filed by repo-audit/full-audit at 50e92ec. Severity: medium. Effort: M. audit-key: enhancement|internal/llm/httpx.go|doJSON-retry-after
- 主要言語
- Go
- スター
- 0
- フォーク
- 1
- 平均マージ
- 8時間 14分
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TMHSDigital/Spackle のほかの issue
-
ci good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
TMHSDigital/Spackle#206 ·
メンテナーはふだん 1 日以内に返信
-
ci severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
TMHSDigital/Spackle#205 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
TMHSDigital/Spackle#199 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
TMHSDigital/Spackle#195 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue severity: medium
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
TMHSDigital/Spackle#188 ·
メンテナーはふだん 1 日以内に返信
TMHSDigital/Spackle の issue をすべて見る
似ている issue
-
bug effort:s impact:med raised-by:worker risk:low to:worker
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
medici-finance/assay#8120 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
factory:subtask
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
agent-substrate/substrate#4308 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
celestiaorg/celestia-app#8877 ·
メンテナーはふだん 1 日以内に返信
-
sweep
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
bketelsen/truenas-mcp#112 ·
メンテナーはふだん 1 日以内に返信