Skip to content

調査: Claude-GPT の 503 / completed-without-output 停止を authoritative lifecycle で再集計し recovery owner を特定する #2710

Closed

Description

@squne121

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-only

Background

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

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

これらは 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

  1. added
    phase/research
    agent/research
    on Sep 21, 2026
  2. squne121 commented on Sep 21, 2026

    @squne121
    OwnerAuthor

    Research Record (transport-recovery-investigator, 2026-09-21)

    主要訂正: 前回の「154件」は二重計上

    authoritative dedupe(main-session-level)の結果:

    metric value
    in-window jsonl files scanned 938
    main-session-file raw hits 206(前回の154件はsubagent transcript内の同一失敗の再カウントを含む混合値)
    unique sessions affected 23 / 938 (2.4%)
    unique retry chains(main-session level) 155
    terminal_unresolved 0 / 155

    Chain disposition: 84%が新規turnを経て回復、15%は新規turn無しで同一session内回復(≒automatic)、1%判定不能。23サンプル中、main session fileがEOFで未解決のまま終わったものは0件。

    AC別disposition

    • AC1: 達成。exact signature抽出、raw/unique/chain/terminal-unresolvedを分離。
    • AC2: 達成(disposition表は上記)。ただし「新規turn」がuser介入かorchestrator自動継続かは文面のみでは確実に区別不能と明記。
    • AC3: 達成。scripts/claude-gpt/lib.sh/launch.sh/preflight.sh/transport_log.pyを読解。503/completed-without-output specificのretryコードはlauncher/proxy wrapper側に存在しない。ただしinstalled claude-code-proxyバイナリ(v0.1.36、in-repoコメントの"pinned 0.1.34"とは不一致=evidence note)にRust製retry::sleepモジュールが存在(strings解析、カバレッジ範囲は未確認)。
    • AC4: 達成。attribution: proxy側でのempty_codex_completion→503合成が中〜高確信度、host側の自動retryは無し(高確信度)、backend/upstream真因は中確信度(未確定)。
    • AC5: 部分達成(1/23セッションのサンプルでduplicate mutation無しを確認、網羅的ではない)。
    • AC6: insufficient_evidence。「154件あるのでretry追加」という結論は書かない。proxy binaryが既にretry機構を持つ可能性があり、その対象範囲が未確認のまま launcher/host側にretryを追加するのは時期尚早。

    Implementation follow-upは提案しない(evidence不足、既存proxy retry機構の対象範囲確認が先決)。

  3. squne121 commented on Sep 21, 2026

    @squne121
    OwnerAuthor

    Research disposition: insufficient_evidence(evidence-basedのretry実装提案なし)。詳細は上記research recordを参照。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/researchphase/research

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions