Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: research
parent_issue: "none"
goal_ref: >-
Claude-GPT 実セッションで観測された "API Error: 503 Codex completed without producing output"
系の停止候補を authoritative な session/tool lifecycle で再集計し、proxy / backend / Claude Code host /
retry-recovery のどの層が停止を所有するかを確定した上で、必要なら最小 implementation follow-up を作れる状態にする
change_kind: research-onlyBackground
2026-09-21 の agent-retrospective 手動実行で、ローカル transcript の heuristic scan により
Claude-GPT 934 session 中 230 session が human-required stop 候補、そのうち 154 件が
transport_or_proxy_failure(主に API Error: 503 Codex completed without producing output)として分類された。
ただしこの数値は、各 JSONL の最終 substantive 発言末尾 350 文字を正規表現分類した exploratory evidence であり、
retry 後に同一 session が回復したケース、resume、重複 error surface、実際に user intervention が必要だったかを
authoritative に判定していない。したがって「Claude-GPT 停止の主因は 503」と実装判断へ直結させるには evidence が不足している。
既存 #2647 / #2654 / PR #2659 / #2658 / #2709 は auto-mode classifier / routing / policy exposure を所有し、
本 Issue の transport/backend availability と retry effectiveness は別 concern とする。
Outcome
同一 bounded window の Claude-GPT 実セッションについて、503/completed-without-output 候補を
session identity・turn lifecycle・tool/retry sequence・proxy/backend evidence と照合し、以下を区別できる research record を残す。
- transient error が自動回復した
- bounded retry が尽きて本当に task が停止した
- user intervention が必要だった
- proxy translation / response-shape が原因
- upstream/backend availability が原因
- root cause を特定できない
根拠が retry 実装を支持する場合だけ、idempotency / mutation readback を壊さない最小 implementation Issue を follow-up として提案する。
In Scope
- 2026-09-06 以降の Claude-GPT production transcript と利用可能な sanitized proxy/runtime evidence の read-only 調査
- exact 503 / completed-without-output signature の抽出と session/turn 単位 dedupe
- retry / resume / subsequent-success の追跡
- mutation-heavy operation と read-only operation の区別
- existing launcher/proxy/Claude Code retry policy の current source readback
- proxy vs backend vs host vs task-level stop の layer classification
- numerator/denominator と coverage limitation の明示
- retry が必要と判明した場合の最小 follow-up scope の提案
Out of Scope
- 根拠確認前の blanket retry 追加
- auto-mode classifier の再設計(実装: Claude-GPT launcher の classifyAllShell を native default と同様に省略する #2709)
- generic broker / new persistent control-plane / new monitoring service
- secret・raw transcript・credential の GitHub 公開
- destructive live mutation を使った再現
Acceptance Criteria
- AC1: 503/completed-without-output 候補を unique session / turn / retry chain で dedupe し、raw substring count と actual terminal-stop count を分離する
- AC2: 各 terminal-stop sample について subsequent automatic recovery / user intervention / unresolved の disposition を付与する
- AC3: current launcher/proxy/host の既存 retry/recovery route を source readback し、「retry が無い」と推測で断定しない
- AC4: proxy / backend / host / unknown の attribution を evidence strength 付きで記録し、相関を root cause として扱わない
- AC5: GitHub mutation を伴う operation では duplicate mutation と authoritative readback の有無を確認する
- AC6: implementation が必要な場合だけ、最小 follow-up Issue の scope / verification を提示する。insufficient evidence なら research disposition で終了する
Dedupe / Related
- 調査: native Claude Code / Claude-GPT の auto mode 過剰ブロックを実効ポリシー・分類基準を揃えて比較し、最小修正先を確定する #2647 — auto-mode denial disparity
- 調査: Claude-GPT auto mode の実効 classifier routing・policy 不整合を切り分け、既存設定による過剰拒否軽減策を確定する #2654 / PR feat: claude-gpt lane の auto mode classifier request の routing 先を明示設定する #2659 — classifier destination routing
- 実装: claude-gpt launcher の auto mode classifier 入力文言(GitHub credential 記述)をPR #2299/#2303後の実装に一致させる #2658 — stale autoMode prose
- 実装: Claude-GPT launcher の classifyAllShell を native default と同様に省略する #2709 — classifyAllShell native alignment
これらは classifier/policy owner であり、本 Issue は transport/backend availability と recovery effectiveness に限定する。
Stop Conditions
- secret/credential の内容読み出しが必要
- raw transcript 全文の公開が必要
- destructive mutation なしでは再現不能
- evidence から layer attribution が不能な場合は
insufficient_evidenceとして research を完了し、推測で implementation しない
Delivery Rule
research-only。repository tracked change は行わない。具体的 fix が確定した場合のみ別 implementation Issue に分離する。
Activity
squne121 commentedon Sep 21, 2026
Research Record (transport-recovery-investigator, 2026-09-21)
主要訂正: 前回の「154件」は二重計上
authoritative dedupe(main-session-level)の結果:
Chain disposition: 84%が新規turnを経て回復、15%は新規turn無しで同一session内回復(≒automatic)、1%判定不能。23サンプル中、main session fileがEOFで未解決のまま終わったものは0件。
AC別disposition
scripts/claude-gpt/lib.sh/launch.sh/preflight.sh/transport_log.pyを読解。503/completed-without-output specificのretryコードはlauncher/proxy wrapper側に存在しない。ただしinstalledclaude-code-proxyバイナリ(v0.1.36、in-repoコメントの"pinned 0.1.34"とは不一致=evidence note)にRust製retry::sleepモジュールが存在(strings解析、カバレッジ範囲は未確認)。empty_codex_completion→503合成が中〜高確信度、host側の自動retryは無し(高確信度)、backend/upstream真因は中確信度(未確定)。insufficient_evidence。「154件あるのでretry追加」という結論は書かない。proxy binaryが既にretry機構を持つ可能性があり、その対象範囲が未確認のまま launcher/host側にretryを追加するのは時期尚早。Implementation follow-upは提案しない(evidence不足、既存proxy retry機構の対象範囲確認が先決)。
squne121 commentedon Sep 21, 2026
Research disposition: insufficient_evidence(evidence-basedのretry実装提案なし)。詳細は上記research recordを参照。