Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: research
parent_issue: "none"
goal_ref: >-
current main の agent-retrospective について、--since-last-retrospective + --enable-full-analysis の
canonical CLI path を production source wiring のまま end-to-end で再実行し、coverage / observer wave /
evaluator / finalize のどこで失敗するかを確定する
change_kind: research-onlyBackground
2026-09-21 の manual retrospective 最終報告では
「canonical --enable-full-analysis 経路を2回実行し、2回とも observer wave で失敗」と記録された。
しかし実行ログを再レビューすると、記録されている canonical CLI invocation は
--since-last-retrospective --prior-watermark-file ... の coverage run で、
--enable-full-analysis は付いていない。
その後の full analysis は scratchpad の run_full.py が
run_retrospective.run_cli() を直接呼び、
collect_session_sources(required_sources=["claude_code"], ...) と custom prompts を与えた経路だった。
この custom path は production cross-runtime request と同一ではなく、
Claude-GPT source は canonical coverage で collector_not_configured だった。
さらに custom run_cli() 実行は2回とも
- retrospective-runtime-observer: nonzero_exit
- codebase-investigator: missing_structured_output
- web-researcher: missing_structured_output
で fail-closed し、evaluator は未起動だった。
既存 #2341、#2642、#2644、#2645、#2646 は過去の structured-output / transport / fan-in / coverage 問題を扱い CLOSED。
今回の current-main exact CLI success path が成立しているかは改めて確認が必要。
Outcome
current main と current installed Claude Code で、
推測や custom runner ではなく canonical CLI contract の exact invocation を使い、
- window selection
- Claude Code source
- Claude-GPT source
- coverage disposition
- observer 3体
- evaluator
- finalize / proposal-only result
- checkpoint advance/non-advance
を end-to-end で観測し、最初に壊れる production boundary を特定する。
失敗が再現した場合だけ、既存 CLOSED Issue との dedupe を行い、
regression follow-up implementation Issue が必要かを決める。
In Scope
- current
.claude/skills/agent-retrospective/SKILL.mdとrun_retrospective.py --helpから exact CLI を解決 --since-last-retrospective --enable-full-analysisの production invocation- production-default source discovery と explicit override の差の記録
- Claude-GPT
collector_not_configuredの原因確認 - observer aggregate
status/reason_code/exit_codeの sanitized capture - evaluator が起動したかの確認
- checkpoint/watermark が failure 時に進まないことの確認
- 実装: agent-retrospective canonical run が retrospective-runtime-observer の missing_structured_output で fail-closed する回帰を解消する #2341/P0: agent-retrospective の Claude-GPT self-hosted run を完走可能にし all-terminal fan-in と runtime coverage を統合する #2642/実装: agent-retrospective: runtime source coverage と checkpoint 確定を分離し、未観測を誤って resolved にしない #2644/実装: agent-retrospective: Claude-GPT headless transport の event-array 出力を既存 result-wrapper validation へ正規化する #2645/実装: agent-retrospective: required observer 3体の all-terminal fan-out/fan-in barrier を実装する #2646 との regression dedupe
Out of Scope
- scratchpad custom
run_cli()を canonical success proof として扱うこと - required source を Claude Code のみに狭めて cross-runtime success とみなすこと
- schema validation / fail-closed boundary の弱体化
- raw transcript / raw stdout / credential の public posting
- 原因未確定のまま compatibility workaround を実装すること
Acceptance Criteria
- AC1: exact CLI argv に
--since-last-retrospectiveと--enable-full-analysisが同時に含まれ、current source の required identifiers/options を満たす - AC2: requested runtime sources と実際に wired された collectors を記録し、
collector_not_configuredを 0 件観測と同一視しない - AC3: full analysis attempt について required observer 3体の terminal result を sanitized aggregate で記録する
- AC4: observer 全成功時だけ evaluator/finalize が実行されること、失敗時は evaluator 0 回であることを確認する
- AC5: failed/incomplete analysis で checkpoint/watermark が advance しないことを確認する
- AC6: success-path が成立しない場合、実装: agent-retrospective canonical run が retrospective-runtime-observer の missing_structured_output で fail-closed する回帰を解消する #2341/P0: agent-retrospective の Claude-GPT self-hosted run を完走可能にし all-terminal fan-in と runtime coverage を統合する #2642/実装: agent-retrospective: runtime source coverage と checkpoint 確定を分離し、未観測を誤って resolved にしない #2644/実装: agent-retrospective: Claude-GPT headless transport の event-array 出力を既存 result-wrapper validation へ正規化する #2645/実装: agent-retrospective: required observer 3体の all-terminal fan-out/fan-in barrier を実装する #2646 のどれが ownership を持つか、または新しい regression shape かを明示する
- AC7: 最終 disposition を
success_path_verified | regression_confirmed | source_unavailable | insufficient_evidenceのいずれかで記録する
Related / Dedupe
- 実装: agent-retrospective canonical run が retrospective-runtime-observer の missing_structured_output で fail-closed する回帰を解消する #2341 — missing_structured_output live regression(CLOSED)
- P0: agent-retrospective の Claude-GPT self-hosted run を完走可能にし all-terminal fan-in と runtime coverage を統合する #2642 — retrospective self-hosting parent
- 実装: agent-retrospective: runtime source coverage と checkpoint 確定を分離し、未観測を誤って resolved にしない #2644 — runtime coverage/checkpoint integration
- 実装: agent-retrospective: Claude-GPT headless transport の event-array 出力を既存 result-wrapper validation へ正規化する #2645 — headless transport normalization
- 実装: agent-retrospective: required observer 3体の all-terminal fan-out/fan-in barrier を実装する #2646 — all-terminal observer barrier
既存 CLOSED Issue の修正が current main に存在していても、current exact production path の success proof が無ければ
「解消済み」と推測しない。
Stop Conditions
- secret/credential/raw transcript の公開が必要
- destructive mutation が必要
- exact canonical CLI path が current source から解決不能なら
insufficient_evidenceとして終了
Delivery Rule
research-only。再現した defect の owner が確定した場合のみ regression implementation Issue を別途起票する。
Activity
squne121 commentedon Sep 21, 2026
Research Record (canonical-retrospective-verifier, 2026-09-21)
実行したexact CLI(production契約のまま、required sourceをclaude_codeに狭めず)
exit 0。observer/evaluator/finalizeのキーは出力に一切現れず、pipelineは未起動。
追加で
--publish-authorizedを付与した2回目の試行(SubAgent/親セッションの両方で実施)は、いずれも本セッション自身のClaude Code auto-mode classifierにより拒否(reason: Safety Bypass Flag / Auto-Mode Bypass)。ワークアラウンドは行っていない。AC別disposition
--since-last-retrospectiveと--enable-full-analysisを同時使用、--session-sourcesはデフォルト(claude_code,claude_gpt)のまま狭めていない。source_not_presentとclaude_gpt=collector_not_configuredは異なるreason_codeであり、いずれも「0件観測」と同一視していない。_claude_code_project_slug()がリポジトリパス中の_を-へ変換しておらず(LOOP_PROTOCOL→LOOP_PROTOCOLのまま)、実ディレクトリ名-home-squne-projects-LOOP-PROTOCOLと不一致。実session historyが存在するにもかかわらずsource_not_presentになるcurrent main上の実バグ(run_retrospective.pyL6218-6227)。CLAUDE_GPT_HOOK_SINK_PATH環境変数のみを見る設計で、実session data(~/.claude-gpt/claude/projects/**/*.jsonl)は元々対象外(by design、bugではない)。checkpoint_advanced: false/blocked_missing_required_source。--publish-authorizedゲート」「slugバグ」はどちらも新規・非重複。insufficient_evidence。production CLI契約自体は正しく組み立てたが、(a) 本環境のauto-mode classifierが--publish-authorized実行を拒否し観測不能、(b) claude_codeソースは上記slugバグにより到達不能、(c) claude_gptソースはdesign上observation対象外、という3つの独立した理由でobserver/evaluator境界を一度も検証できていない。新規発見2(未文書化のprecondition)
--enable-full-analysisのhelpテキストは--publish-authorizedが実際のanalysis_runner起動条件であることに触れていない(run_retrospective.pyL6694付近)。ドキュメントと実装の乖離。いずれもコード修正は行っていない(research-only)。concrete rootcauseが確定した2件(slugバグ、--publish-authorized未文書化)についてのみ、dedupe後に最小限のimplementation follow-up Issueを別途起票する。
squne121 commentedon Sep 21, 2026
Research disposition: insufficient_evidence(auto-mode classifier拒否・slugバグ・design上の未wiringの3要因でobserver/evaluator境界を検証不能)。確定した2件のconcrete defectはfollow-up issueへ分離予定。