Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "Claude-GPT の model/proxy compatibility 変更で actual/canonical runtime acceptance を要求する AC を fixture-only VC で完了扱いせず、current-head の canonical launcher が実際に選択する proxy identity と check-only 結果を merge 判断へ反映する"
change_kind: workflow
dedupe_key: "claude-gpt:runtime-verification:canonical-proxy-smoke-no-fixture-substitution:v1"Parent Issue
none(#2801 / PR #2802 の post-merge runtime verification gap として観測した独立 follow-up)。
Parent Goal Ref
- Goal: Claude-GPT の canonical launcher/proxy 互換性変更で、actual/canonical runtime acceptance を要求する AC が fixture-only VC で merge 判断に代替されないようにする
- Desired Destination: N/A(単独改善 Issue のため)
Current Validated Scope
.claude/skills/create-issue/references/body-authoring.md.claude/skills/pr-review-judge/references/evidence-policy.md.claude/skills/pr-review-judge/tests/test_fixture_only_actual_runtime_evidence_mismatch.py(新規).claude/skills/create-issue/tests/test_body_authoring_actual_vs_fixture_runtime_ac_separation.py(新規).claude/skills/pr-review-judge/tests/test_canonical_smoke_asset_reuse_no_new_harness.py(新規)docs/dev/runtime-verification-policy.md(cross-reference 追記が必要な場合のみ)
Remaining Parent Gaps
なし(単独改善 Issue のため)
Source / Incident
2026-09-27、#2801 / PR #2802 が merge 済みの current main commit c9c8e35c7e461b7b8b0d272c669bb0e4a4f11d5f で、通常 operator environment から repository-owned launcher を実行すると、canonical binary resolution が PATH 上の /home/squne/.local/bin/claude-code-proxy v0.1.36 を選択し、GPT-6 Sol/Luna catalog incompatibility で停止した。
$ bash /home/squne/projects/LOOP_PROTOCOL/scripts/claude-gpt/launch.sh
launcher=/home/squne/projects/LOOP_PROTOCOL/scripts/claude-gpt/launch.sh git=c9c8e35 dirty=false proxy=claude-code-proxy 0.1.36
{"schema":"CLAUDE_GPT_LAUNCH_RESULT_V1","status":"failed","reason":"model_alias_not_resolved","model_alias_ok":false,"port":42086,"cause":"proxy_model_catalog_incompatible","required_models":["gpt-6-sol","gpt-6-luna"],"missing_models":["gpt-6-sol","gpt-6-luna"],"proxy":{"path":"/home/squne/.local/bin/claude-code-proxy","version":"claude-code-proxy 0.1.36"},"minimum_known_compatible_version":"0.1.42","repair_command":"scripts/claude-gpt/repair_proxy.sh"}この structured failure 自体は #2801 の意図どおりであり、launcher の診断 regression ではない。問題は、#2801 の完了判定までにこの canonical/default resolution path が実環境で acceptance されず、fixture-only evidence で actual runtime AC が満たされた扱いになったことである。
Directly Validated Gap
1. #2801 AC11 と literal VC の semantic mismatch
#2801 AC11 は次を要求していた。
- current-head で actual compatible proxy(GPT-6 Sol/Luna を live catalog に持つ v0.1.42+ 相当)を選択する
launch.sh --check-onlyが PASS する- 可能なら同じ selected binary で bounded real ChatGPT subscription smoke を行う
一方、AC11 の literal Verification Command は次だけだった。
uv run --locked pytest scripts/claude-gpt/tests/test_proxy_model_compatibility.py::test_check_only_passes_with_compatible_proxy -qcurrent test_proxy_model_compatibility.py 自身が、このファイルの catalog compatibility checks は fixture-based であり、AC11 の real subscription smoke は実行しないと明記している。また helper は CLAUDE_GPT_PROXY_BIN を fake proxy に明示 override するため、operator environment の default resolution(managed binary → PATH)を検証しない。
2. PR #2802 は fixture PASS + real smoke SKIP のまま AC11 を [x] にした
PR #2802 は AC11 を [x] とし、fixture test_check_only_passes_with_compatible_proxy の PASS を根拠にしつつ、real ChatGPT subscription smoke は environment-blocked / SKIP と記録した。
iteration 0 の pr-review-judge comment も「AC11 の fixture ベース check-only PASS + 実 smoke の明示的 SKIP/environment_blocked」を実質充足として扱い、implementation defect はないと判断した。iteration 1 は PR body のみ修正後、同一 code head に APPROVE を返した。
3. 既存 policy は SKIP≠PASS を既に要求している
current docs/dev/runtime-verification-policy.md、.claude/agents/test-runner.md、.claude/skills/pr-review-judge/references/evidence-policy.md は、exit 77 / SKIP / fallback を required PASS として扱わないことを既に定めている(evidence-policy.md L26: 「skipped / fallback PASS / exit 77 / SKIP: は required pass として扱わない」)。
また .claude/skills/create-issue/references/body-authoring.md は、runtime assertion binding の structural completeness と「その VC が AC の意味を実際に証明する semantic sufficiency」を分離し、後者を semantic review(pr-review-judge 等)の責務としている。
したがって本件は、新しい汎用 runtime framework が不足している問題ではなく、actual/canonical runtime を要求する AC に対して fixture-only VC が割り当てられた semantic mismatch を issue authoring / review が止められなかったことが主要 failure class である。
4. 新しい runtime harness は不要
既存 scripts/claude-gpt/runtime_smoke_test.sh は claude_gpt_resolve_proxy_bin() で actual SUT proxy を解決し、Phase A で production launch.sh --check-only を実行し、proxy path/version/hash を evidence に含める。
今回の障害は、少なくとも current-head の通常環境で launch.sh --check-only を fake CLAUDE_GPT_PROXY_BIN override なしに一度実行すれば、ChatGPT request に到達する前の catalog preflight で観測可能だった。
Outcome
Claude-GPT の model/proxy compatibility・launcher lifecycle 変更で AC が actual / canonical / default runtime selection を要求する場合、fixture proxy を明示注入する hermetic test だけではその AC を PASS にできない。
最低限、次を区別する。
- fixture semantics AC: catalog mismatch / repair / precedence 等のロジックを hermetic fixture で検証する。
- canonical runtime acceptance AC: current-head production launcher を通常の binary resolution で external process として起動し、actual selected proxy identity と
--check-onlyresult を観測する。
fixture semantics の PASS は canonical runtime acceptance の代替にならない。canonical smoke が proxy_model_catalog_incompatible を返した場合、fixture tests が全て green でも actual-runtime AC を PASS / ready-for-merge としない。
Runtime Verification Applicability
- decision: not_applicable
- reason: 本 Issue の AC/VC は既存 policy ドキュメント(
body-authoring.md/evidence-policy.md/runtime-verification-policy.md)へのテキスト追記と、それらの instruction wiring を検証する static pytest regression(新規ファイルのみ、.claude/skills/pr-review-judge/SKILL.mdの Procedure 本文・output contract は変更しない)で完結する。外部プロセス起動・SKILL.md 手順変更を伴わないためdocs/dev/extension-surface-runtime-policy.yamlのskill-invocation-runtime-smoke(.claude/skills/**/SKILL.mdselector, hard trigger)には該当しない。actual pr-review-judge の live semantic verdict(実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2801 型 fixture への実観測)は、既存worktree-agent-runtime-smokeの verification_profiles(skill-invocation-runtime-smoke等)に本ケース向けの assertion が存在しないため、新規 generic harness を作らずに本 Issue の必須 AC としては要求しない。static wiring regression の PASS は「semantic rule の instruction wiring が失われていないこと」のみを保証し、「actual reviewer が REQUEST_CHANGES を返すこと」自体は保証しない(AC1 / AC7 参照)。
In Scope
.claude/skills/create-issue/references/body-authoring.mdの runtime AC/VC authoring guidance:- AC が actual/canonical/default runtime selection を要求する場合、fixture-only VC を同一 AC の唯一の evidence にしない。
- fixture semantics と canonical runtime acceptance が両方必要なら AC/VC を分離する。
.claude/skills/pr-review-judge/references/evidence-policy.mdの semantic evidence review:- AC の evidence-source requirement(actual/canonical vs fixture)と VC/test implementation の evidence source を照合するルールを追加する。
- PR body の
[x]自己申告や fixture PASS だけで actual-runtime AC を APPROVE しない。
- 上記 boundary の focused regression tests(static pytest)。実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2801 / PR 実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2802 相当の「actual proxy を要求する AC + fixture-only VC + real smoke SKIP」のケースが APPROVE にならないことを固定する。instruction wiring の存在を保証するのみで、live semantic judgment 自体は自動化しない。
- 必要なら既存
docs/dev/runtime-verification-policy.mdに semantic sufficiency の短い cross-reference を追加する。 - Claude-GPT 用 canonical smoke は既存
launch.sh --check-only/runtime_smoke_test.shを再利用し、新しい permanent runtime harness を作らない(本 Issue はこれらを実行しない。既存資産の再利用を規定するのみ)。
Out of Scope
- 実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2801 / PR 実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2802 で既に修正済みの installer release tag、Bash interpreter、managed binary precedence の再実装。
- normal launch ごとの自動 proxy upgrade / network update。
- PATH 上の複数 proxy を比較して自動選択する selector framework。
- 新しい daemon、schema registry、approval layer、恒久的な network-dependent CI required gate。
- fixture test 自体の廃止。fixture はロジック検証として維持する。
- 実装: Claude-GPT runtime verification の auth 判定を canonical credential profile に束縛する #2803 が扱う
CLAUDE_GPT_HOMEcredential provenance / auth 誤分類。 - operator machine の proxy を本 Issue の implementation 中に無断で更新すること。
.claude/skills/pr-review-judge/SKILL.md本文(Procedure / output contract)の変更。- pr-review-judge に実際に 実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2801 型 fixture をレビューさせる one-shot runtime harness の新設(既存
worktree-agent-runtime-smokeの assertion catalog に該当 assertion が無いため、本 Issue のスコープ外とする)。
Acceptance Criteria
- AC1: 実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2801 相当の regression fixture(AC 本文は actual/canonical compatible proxy selection を要求、literal VC は fake
CLAUDE_GPT_PROXY_BINを注入する fixture-only test、real smoke は SKIP)に対し、pr-review-judgeの evidence-policy 記述(instruction wiring)が「fixture-only 証跡では actual-runtime AC を充足しない」ことを明示していることを static test で固定する。この AC は instruction wiring の存在のみを保証し、live pr-review-judge が実際に REQUEST_CHANGES を返すことまでは証明しない。 - AC2:
body-authoring.mdに、actual/canonical/default runtime acceptance と fixture semantics を区別し、両方必要な場合は別 AC/VC にする規則が明記されている。 - AC3:
body-authoring.md/evidence-policy.mdの canonical runtime acceptance evidence 記述が、current-head production launcher を fake proxy override なしで external process 起動した結果と actual selected proxy identity(少なくともrun_head_sha+git_dirty+ 実行 command identity + launcher hash + selected proxy absolute path/version/hash)を要求することを明記している。fixture proxy の path/version のみの evidence はこの AC の充足として明示的に不十分と記載されている。 - AC4: canonical smoke が
cause: proxy_model_catalog_incompatible/ non-zero を返した場合、同 head の fixture compatibility tests が PASS でも actual-runtime AC を PASS に昇格させないという instruction wiring の存在を regression test で固定する。この AC は instruction wiring の存在のみを保証し、live pr-review-judge が実際に non-zero smoke 結果を検出して REQUEST_CHANGES を返すことまでは証明しない。 - AC5: 既存 fixture tests(
scripts/claude-gpt/tests/test_proxy_model_compatibility.py等)は hermetic implementation-semantics coverage として変更されず維持され、通常 CI は real ChatGPT account/network を必須にしないことを regression test で固定する。 - AC6: PR body の
[x]/ Safety Claim / self-report だけでは AC1〜AC4 の記述上の不足を覆せないことをevidence-policy.mdの記述として固定し、pr-review-judge focused test で instruction wiring を確認する。 - AC7: 実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2801 / PR 実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2802 の observed failure class(actual-runtime AC + fixture-only PASS + real smoke SKIP)を再現した static fixture で、評価対象の evidence-policy 記述に基づけば旧 iteration 1 相当の APPROVE 根拠が存在しないことを regression test で固定する。この AC は instruction wiring の regression 固定のみを保証し、live pr-review-judge の実際の verdict 自体は証明しない。
- AC8: new permanent daemon / generic runtime harness / network-required merge gate を追加せず、既存 runtime verification assets(
launch.sh --check-only,runtime_smoke_test.sh)への参照のみを追加することを regression test で固定する。
Verification Commands
# AC1
# AC6
# AC7
$ uv run --locked pytest .claude/skills/pr-review-judge/tests/test_fixture_only_actual_runtime_evidence_mismatch.py::test_fixture_pass_and_real_smoke_skip_is_insufficient_for_actual_runtime_ac -q
# AC4
$ uv run --locked pytest .claude/skills/pr-review-judge/tests/test_fixture_only_actual_runtime_evidence_mismatch.py::test_canonical_smoke_nonzero_result_blocks_promotion_despite_fixture_pass -q
# AC2
$ uv run --locked pytest .claude/skills/create-issue/tests/test_body_authoring_actual_vs_fixture_runtime_ac_separation.py::test_actual_runtime_ac_cannot_be_satisfied_by_fixture_only_vc -q
# AC3
# AC8
$ uv run --locked pytest .claude/skills/pr-review-judge/tests/test_canonical_smoke_asset_reuse_no_new_harness.py::test_evidence_policy_requires_current_head_proxy_identity_binding_and_no_new_harness -q
# AC5
$ uv run --locked pytest .claude/skills/pr-review-judge/tests/test_canonical_smoke_asset_reuse_no_new_harness.py::test_existing_fixture_tests_unchanged_and_ci_not_network_dependent -qAllowed Paths
.claude/skills/create-issue/references/body-authoring.md.claude/skills/pr-review-judge/references/evidence-policy.md.claude/skills/pr-review-judge/tests/test_fixture_only_actual_runtime_evidence_mismatch.py.claude/skills/create-issue/tests/test_body_authoring_actual_vs_fixture_runtime_ac_separation.py.claude/skills/pr-review-judge/tests/test_canonical_smoke_asset_reuse_no_new_harness.pydocs/dev/runtime-verification-policy.md
Required Skills
なし
Required Design References
docs/dev/runtime-verification-policy.md.claude/skills/pr-review-judge/references/evidence-policy.mddocs/dev/extension-surface-runtime-policy.yaml
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- current repository の semantic review authority が別 canonical asset に移動している場合は、duplicate mechanism を追加せずその authority を更新する。
- 修正に generic NLP semantic parser / permanent network gate / daemon が必要と判断した場合は scope を拡張せず停止し、より小さい design を再検討する。
- 実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2801 の repair implementation 自体の別 regression が fresh evidence で見つかった場合は本 Issue に混在させず dedupe 後に別 Issue とする。
- destructive operation、secret/credential の取得・変更・公開、permission bypass が必要な場合は停止する。
Related
- Source implementation: 実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2801
- Source PR: 実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2802
- Related model adoption: 実装: Claude-GPT の既定モデルを GPT-6 Sol/Astra/Luna に更新し、Auto mode classifier を Luna に戻す #2772 / PR feat: claude-gpt を GPT-6 Sol/Luna 既定へ更新し Astra を on-demand escalation にする #2800
- Separate auth/profile verification gap: 実装: Claude-GPT runtime verification の auth 判定を canonical credential profile に束縛する #2803
Activity
squne121 commentedon Sep 27, 2026
判定
REQUEST_CHANGES 相当です。
Issue #2807 が特定している failure class 自体は正しいです。#2801 / PR #2802 では、AC11 が actual compatible proxy / current-head canonical launcher を要求しているのに、literal VC は fake
CLAUDE_GPT_PROXY_BINを注入する fixture test だけでした。その状態で real smoke がSKIP / environment_blockedのまま、PR #2802 の iteration 1 は同一 code head にAPPROVEを返しています。また、2026-09-27 の current main
c9c8e35c7e461b7b8b0d272c669bb0e4a4f11d5fで operator 環境の通常 launcher が PATH 上の v0.1.36 を実際に選び、proxy_model_catalog_incompatibleで停止したことは、この evidence gap の具体的な再現になっています。ただし、Issue #2807 自身が現在の repository contract に対して implementation-ready ではありません。 重要度順に以下を直した方がよいです。
P0 —
Verification Commandsが canonical VC になっておらず、実行契約が成立していない現在の #2807 は
## Verification Commandsに、のようなコメントしかなく、実行する
$ ...command がありません。current main の
.claude/skills/issue-contract-review/scripts/vc_contract_syntax.pyは VC grammar を明確に固定しており、```bashfence 内# AC1または# AC1, AC4$で開始# AC1 textのような suffix 付き marker は non-canonicalです。さらに通常コメント行は command として無視されます。
したがって
# AC1 / AC4 / AC6 / AC7は grouped marker でもなく、実 command もゼロです。#2807 の「実装時に exact node-id を確定する」は設計メモとしては理解できますが、現在の repository-native issue contract とは合いません。最小修正: 実装前 refinement の時点で executable VC を確定してください。未作成 test なら、この repo が既に採用している「存在しない新規 test file/node-id を baseline-fail VC として記述する」方式で十分です。新しい VC framework は不要です。
P0 —
.claude/skills/pr-review-judge/を変更対象にしているのに Runtime Verification Applicability がないこれは #2807 の目的と直接衝突します。
current
docs/dev/extension-surface-runtime-policy.yamlでは、への変更は
issue_time_enforcement: hardで、default_decision: immediate、verification profile はskill-invocation-runtime-smokeです。さらに既存 matcher の regression test は、
.claude/skills/some-new-skill/**のような broad Allowed Path でもSKILL.mdselector と conservative overlap すれば runtime requirement を発火させることを固定しています。#2807 の Allowed Paths は、
と directory 全体を許可しているため、この hard trigger に該当し得ます。しかし #2807 には現状、
## Runtime Verification Applicabilitydecision: immediateapplicable_acsruntime_assertion_bindingsがありません。
最小修正: 新しい harness を作らず、既存
skill-invocation-runtime-smokeをそのまま使う RVA を追加するのが適切です。逆に、調査の結果SKILL.mdを変更せず reference/test だけで済むなら Allowed Paths を具体的な reference/test path へ狭め、不要な hard trigger を避ける方が軽量です。P1 — AC1 / AC4 / AC7 が「semantic reviewer の実挙動を regression test できる」ように書かれているが、現行 test architecture はそれを保証しない
ここが一番危険な false-green 候補です。
既存の
.claude/skills/pr-review-judge/tests/test_enumerated_ac_evidence_coverage_contract.pyは冒頭で明示的に、
という責務境界を持っています。
ところが #2807 AC1 は、
AC7 も、
と、semantic reviewer の runtime behavior まで test が証明するように読めます。
実装者が既存 precedent に従って
SKILL.md/ reference の文字列 assertion だけ追加すると、pytest は green でも、実際の pr-review-judge が #2802 型の入力でREQUEST_CHANGESを返すことは証明されません。まさに #2807 が防ごうとしている evidence-substitution の再演になります。最小修正は二層に分けることです。
REQUEST_CHANGESと evidence-insufficiency blocker を実観測ただし、既存
worktree-agent-runtime-smokeでこの fixture を投入できないなら、generic LLM evaluator を新設するべきではありません。その場合は AC1/AC7 の表現を「semantic rule の wiring が失われない」に弱め、live semantic behavior は one-shot manual/runtime evidence として分離する方が合理的です。P1 — AC3 の provenance が current
pr-review-judgeevidence policy より弱い#2807 AC3 は canonical runtime evidence に、
を要求しています。方向は正しいですが、path/version だけでは current-head evidence として弱いです。
current
pr-review-judgeは authoritative independent VC を、に束縛する方針です。
さらに既存
scripts/claude-gpt/runtime_smoke_test.shは既に、launch.shSHA-256lib.shSHA-256を採取できます。
したがって新 schema は不要です。AC3 を少なくとも、
run_head_sha+git_dirty=false+ executed command identity + launcher hash + selected proxy absolute path/version/hashまで要求すると、stale smoke や「同じ path に別 binary が置き換わった」ケースを閉じられます。
これは enterprise hardening ではなく、今回の「fixture と actual SUT の取り違え」を直接防ぐ identity binding です。
P1 —
runtime_smoke_test.shを canonical catalog acceptance の必須経路にすると、不要な auth dependency が入る#2807 は既存
runtime_smoke_test.shの再利用を挙げていますが、この script の current main は、Phase A のlaunch.sh --check-onlyより前に共通 env gate を通します。preflight.sh --env-onlyが ChatGPT subscription auth unavailable を返すと、Phase A に到達する前に exit 77 / SKIP します。今回の incident はそうではありません。v0.1.36 の catalog incompatibility は、ChatGPT request や account auth に到達する前に、
を通常 binary resolution のまま一度起動すれば検出できます。
したがって canonical runtime acceptance を full
runtime_smoke_test.shのみに寄せると、という新しい不必要な merge blockerを作ります。
推奨分離:
launch.sh --check-only、CLAUDE_GPT_PROXY_BINoverride なしruntime_smoke_test.shによる real ChatGPT subscription requestこれは #2772 AC10 が既に採用している「local catalog / selected binary / actual account request acceptance を別 evidence として扱う」方針とも一致します。
upstream も、model list は docs より速く変化するため live catalog を優先するよう案内し、unknown model に implicit fallback はないとしています。:chatgpt-content-reference{index="0"} また、local registration は account access を保証しないと明記しています。:chatgpt-content-reference{index="1"}
P2 — Allowed Paths の末尾が machine-actionable path ではない
現在、
という entry があります。
current Allowed Paths parser は bullet prose を意味解釈せず、基本的に path-like string として扱います。「必要なら適当に探してよい」という意図を machine contract に混ぜるより、調査後に具体的 path/glob を列挙すべきです。
特に今回
.claude/skills/**は runtime policy trigger に関係するため、broad path と曖昧 path の組合せは余計な scope 判定を招きます。failure class 自体について
ここは #2807 の分析を維持してよいです。
launcher implementation の failure ではありません。merge evidence の failure です。
current main の launcher は v0.1.36 を選んだ際に、
proxy_model_catalog_incompatibleまで返しており、#2801 の診断改善は機能しています。
上流でも GPT-6 Sol/Luna が追加されたのは v0.1.42(2026-09-23)であり、v0.1.36 は Astra までの世代です。:chatgpt-content-reference{index="2"} したがって current operator environment で v0.1.36 が選択されて失敗した観測自体は整合しています。
問題は「その状態が merge 前 canonical acceptance で発見されるべき AC だったにもかかわらず、fake proxy の PASS が代替証拠になった」という点です。
推奨する Issue #2807 の設計
大幅な再設計は不要です。現在の主眼を保ったまま、以下に絞るのがよいです。
body-authoring.mdに fixture semantics と actual/canonical runtime acceptance を別 AC/VC にする規則を追加。pr-review-judgeに AC が要求する evidence source と、提出 evidence の source が一致するか確認する semantic rule を追加。skill-invocation-runtime-smokeを使った one-shot runtime evidence で、実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2801 型 fixture に対する実 reviewer verdict を確認。launch.sh --check-only、override なしを必須 VC とする。既存
pr-review-judgeはすでに「PR body self-report 単独では APPROVE 不可」「SKIP / exit 77 は required PASS ではない」を持っています。したがって #2807 で増やすべきものは新しい汎用 verification frameworkではなく、AC が要求する evidence provenance と実際の evidence provenance の semantic correspondence だけです。総括
#2807 の root-cause diagnosis と scope の方向性は妥当です。しかし現状のまま実装へ渡すと、
という問題があります。
まず Issue refinement で上記5点を修正してから
impl-review-loopへ渡すのが最小かつ堅い経路です。新しい恒久 harness は不要で、current repository の既存 policy・runtime assetsだけで閉じられます。squne121 commentedon Sep 27, 2026
確認した live state では、指定コメントは
OWNERauthored の trusted human context、currentmainはc9c8e35c7e461b7b8b0d272c669bb0e4a4f11d5fです。推奨は、#2807 を実装へ進めず、まず指定コメントを anchor に currentissue-refinement-loopを完走して implementation-ready contract に直すことです。特に、canonical VC、RVA、static wiring と実 semantic behavior の分離、runtime evidence provenance、auth 不要の direct
launch.sh --check-onlyと full smoke の分離、Allowed Paths の具体化を refinement の中心に置くべきです。以下をそのまま、既に auto mode で起動している対話的 Claude Code に貼れます。repo:
squne121/loop-protocol対象:
.claude/skills/issue-refinement-loop/SKILL.mdこの invocation は Issue #2807 の refinement を完了させるための明示的な作業依頼です。既に起動済みの対話的 Claude Code / auto mode session をそのまま継続してください。Claude Code の permission mode、auto mode、backend model mapping、launcher profile を変更・再起動しないでください。
Goal
指定 anchor comment のレビュー指摘を trusted human context として消費し、current repository の canonical
issue-refinement-loopを人間の iteration 承認なしで terminal completion まで実行してください。目的は #2807 の Issue contract を implementation-ready にすることです。この invocation では production implementation、
impl-review-loopの自動起動、実装 branch/PR 作成までは行わないでください。refinement のapprovedは implementation authorization の代替ではありません。Freshness / authority
作業開始時に必ず fresh に取得・確認してください。
mainHEAD と working tree / worktree 状態5856155529の current metadata と本文CLAUDE.md.claude/rules/**.claude/skills/issue-refinement-loop/SKILL.mdreferences/**.claude/skills/issue-contract-review/scripts/vc_contract_syntax.pydocs/dev/extension-surface-runtime-policy.yamldocs/dev/runtime-verification-policy.md.claude/skills/create-issue/references/body-authoring.md.claude/skills/pr-review-judge/.claude/skills/pr-review-judge/references/evidence-policy.md.claude/skills/pr-review-judge/tests/test_enumerated_ac_evidence_coverage_contract.py.claude/skills/worktree-agent-runtime-smoke/SKILL.mdscripts/claude-gpt/launch.shscripts/claude-gpt/runtime_smoke_test.sh過去の chat、古い Skill 手順、古い main SHA を authority にしないでください。判断時点の current HEAD を正本にしてください。
issue-refinement-loop の実行
current
SKILL.mdを正本として canonical flow を実行してください。判定ロジックを prose で再実装しないでください。anchor comment は trusted human context なので、current Skill contract が引き続き同じなら canonical root/main lane の
preflight.run.with_human_contextを使ってください。preflight.run.with_anchorを human-origin の代用にしたり、内部 wrapper を直接 bypass したりしないでください。preflight / planner が trusted contract update を要求した場合は current Skill の canonical
contract_update.run.with_human_contextroute に従ってください。deterministic repair が返された場合も current command registry / controlled consumer を使ってください。needs-fixは Skill の bounded loop policy に従い、人間承認を挟まず自動修正・fresh review を継続してください。current Skill の canonical max iteration を使用し、上限到達時のみ contract に従って escalation してください。SubAgent requirements
必要な SubAgent を必ず使ってください。dispatch しただけで完了扱いにせず、それぞれ terminal result を待ち、出力 contract を検証・consume してから次工程へ進んでください。
Step 1 investigation
current Skill が要求する
codebase-investigatorを使ってください。child prompt には暗黙 context に頼らず、少なくとも以下を明示してください。
SubAgent が完了するまで待ってから downstream に進んでください。
Web research
planner / current Skill が external critical claim を disposition に必要と判定した場合は
web-researcherを使い、公式 docs / upstream repository / release notes など一次資料を優先してください。external claim が dispositive でなければ、不要な web research を恒久 requirement にしないでください。
Issue rewrite
Issue body の rewrite が必要な場合は current canonical route の
issue-editorSubAgent を使ってください。reviewer_feedback_urlには指定 anchor comment URL を渡し、raw anchor 本文を別 provenance の feedback として再構成しないでください。issue-editorの完了と GitHub readback を待ってから fresh review に進んでください。canonical Step 2 は current
issue-refinement-loopの root-owned review pipeline を使ってください。legacy/diagnostic 用issue-reviewerSubAgent を canonical Step 2 の代わりに起動しないでください。Anchor comment で必ず解消すべき事項
anchor comment の指摘を単に要約せず、current repository evidence と照合して Issue contract に反映してください。
特に次を解消してください。
Verification Commands を executable canonical VC にする
$command を canonical syntax で記述する。Runtime Verification Applicability を正しく決める
.claude/skills/pr-review-judge/の broad Allowed Path が current runtime policy のSKILL.mdselector と conservative overlap するか実際に確認する。SKILL.md変更が不要なら Allowed Paths を reference/test の exact machine-actionable paths へ狭め、不必要な hard runtime trigger を避ける。SKILL.md変更が必要なら currentskill-invocation-runtime-smoke等の既存 profile を再利用して RVA / bindings を contract に記述する。static regression と semantic runtime behavior を混同しない
test_enumerated_ac_evidence_coverage_contract.py等の責務境界を確認する。canonical runtime evidence provenance を current policy に合わせる
catalog acceptance と authenticated full runtime smoke を分離する
launch.sh --check-onlyを通常 binary resolution、fakeCLAUDE_GPT_PROXY_BINoverride なしで実行する経路を優先して検討する。runtime_smoke_test.shの auth preflight SKIP によって検証不能にしない。SKIP/ exit 77 / environment blocked を required PASS に昇格させない。Allowed Paths を machine-actionable にする
上記に直接対応する既存 test/fixture pathのような prose entry を残さない。Scope discipline
#2807 の root cause は「launcher implementation failure」ではなく、actual/canonical runtime acceptance を要求する AC に fixture-only evidence が代替された merge evidence / semantic sufficiency failure という現在の主眼を維持してください。ただし fresh evidence がこれを否定する場合は、その evidence を優先してください。
以下は追加しないでください。
既存 mechanism で解決できる問題に enterprise-style gate / wrapper / approval layer を追加しないでください。
Review/fix loop
Issue rewrite 後は必ず current body を再取得し、fresh preflight、fresh canonical Step 2 review、必要な readiness checks を実行してください。
needs-fix/ deterministic repair / ordinary validation failure は停止理由にせず、Skill contract の範囲で自動修正して再検証してください。各 iteration で以下を確認してください。
Recurrence / follow-up issue
investigation または refinement 中に、#2807 の scope に混ぜるべきでない 別の再発性 defect / workflow defect が fresh evidence で見つかった場合:
issue-creatorSubAgent を使い、currentcreate-issuecontract に従って follow-up Issue を実際に起票する。issue-creatorの terminal result と GitHub readback を待ってから完了扱いにする。新規 Issue は具体的な observed failure class、dedupe key、Outcome、AC、executable VC、Allowed Paths を持たせ、抽象的な「hardening」Issue は作らないでください。
Human approval / stop boundaries
通常の refinement iteration ごとの人間承認は不要です。auto mode の既存 session で bounded loop を継続してください。
ただし以下は停止・escalation 境界です。
human_judgment_requiredbypassPermissions、--dangerously-skip-permissions等を有効化しないでください。foreign branch / worktree / dirty work を変更・削除しないでください。
Completion criteria
次のどちらかの terminal state まで実行してください。
A. approved
B. legitimate escalation
repository-native authority が本当に
human_judgment_required等を返した場合のみ停止し、blocker と evidence を具体的に報告する。Final report
最後に簡潔に以下を報告してください。
refinement が approved でも
impl-review-loopは自動起動せず、ユーザーが次に実装を明示依頼できる状態で終了してください。この prompt では、指定コメントを単なるレビュー文ではなく current Skill が扱える OWNER human-context anchor として正規 route に載せる点と、SubAgent の dispatch 後に必ず結果取得まで同期する点を明示しています。特に #2807 では、refinement 自体が false-green を再生産しないことを優先しています。
squne121 commentedon Sep 27, 2026
issue-refinement-loop 終了報告(approved)
anchor comment(OWNER, https://github.com/squne121/loop-protocol/issues/2807#issuecomment-5856155529)の指摘を trusted human context として消費し、本 Issue の contract を implementation-ready へ改訂しました。
対応内容
$ uv run --locked pytest ..., bare# AC<N>marker)へ書き換え、baseline-fail 用の未作成 test node-id を明記。decision: not_applicableとし、.claude/skills/pr-review-judge/SKILL.mdを変更対象から除外していることを根拠として明記(docs/dev/extension-surface-runtime-policy.yamlの hard trigger は SKILL.md path のみ)。run_head_sha+git_dirty+ command identity + launcher hash + proxy hash まで拡張。実行した検証
preflight.run.with_human_context):STATUS: pass/NEXT_ACTION: proceedrun_root_review_pipeline.py produce):VERDICT: approve/canonical_step2_route: step_2_5issue-design-reviewer×2回、semantic_review_trigger→pin-bundle→ SubAgent →record-result→join_review_results): 1回目needs-fix(AC4/AC5 分離要求)→ rewrite → 2回目approve(low severity non-blocking finding 1件のみ残存、AC6 の VC 命名対称性についての非拘束的指摘)Follow-up recurrence(dedupe 済み、新規起票なし)
investigation 中に
validate_issue_body.pyの LP016 チェック(_validate_lp016_vc_ac_marker_with_description)が comma-grouped AC marker(# AC1, AC4, AC6, AC7)を誤って reject するバグを確認しましたが、これは既存 OPEN Issue #1719(#2277 を統合済み)が同一 root cause として既に追跡しているため、新規 Issue は起票していません。LOOP_HANDOFF_RESULT_V1 に関する既知の制約
本サイクルは refinement のみを実行し、
issue-contract-review(実装着手直前の preflight)は実行していません(依頼スコープ外)。したがって下記 marker のcontract_reviewサブフィールドは実行済みCONTRACT_REVIEW_RESULT_V1を持たずstatus: not_runとしています。実装着手前にissue-contract-reviewを fresh 実行することを推奨します。status: refinement_approvedはissue-refinement-loopがapprovedで終了したという audit telemetry のみを表し、impl-review-loopの implementation dispatch を authorize しません(#2740)。実装は別途明示的に依頼してください。squne121 commentedon Sep 27, 2026
確認した live state では、Issue #2807 は refinement 済みで
approved、実装可能な AC/VC/Allowed Paths に更新されています。一方、refinement 終了時のLOOP_HANDOFF_RESULT_V1はcontract_review.status: not_runのままです。また、その後mainはc9c8e35...からa3bbd85ca2b82129820371383769984401f160dbへ進んでいます。したがって、古い refinement snapshot を流用せず、現行impl-review-loopが規定する Root-Owned Synchronous Entry Transition から current-runissue-contract-review→ Step 1 を同一 invocation 内で実行するのが適切です。現時点の検索では #2807 を close する既存 PR、
2807branch、関連 commit は見つかっていません。ただし実行時には skill 自身の Evidence-Based Landing Disposition を正本として再確認させます。実装の中心はbody-authoring.md/evidence-policy.mdの semantic evidence rule と3本の static regression test で、pr-review-judge/SKILL.md、新しい runtime harness、network-required gate は触らない方針が最小です。再発防止については、refinement 中に発見された grouped AC marker / LP016 の drift は OPEN Issue #1719 が同一 root cause を既に追跡しています。そのため現時点では新規 Issue を起票していません。新しい独立 failure class が実装中に見つかった場合のみ、重複検索後に follow-up を起票させます。
以下を、既に auto mode で起動している対話的 Claude Code にそのまま渡せます。
repo:
squne121/loop-protocol対象 Issue:
#2807
使用する repository-native Skill:
.claude/skills/impl-review-loop/SKILL.md既に起動済みの対話的 Claude Code / auto mode session をそのまま継続してください。permission mode、auto mode、Claude-GPT launcher/profile、backend model mapping を変更・再起動しないでください。
Objective
Issue #2807 を current repository の canonical
impl-review-loopで、fresh intake → current-run contract review → implementation → independent verification → PR review → fix → re-verification → fresh reviewまで自律実行し、人間が merge 判断できる直前まで進めてください。
iteration ごとの人間承認は不要です。
実 merge、auto-merge、force push、不可逆 cleanup は行わないでください。
Important current-state fact
Issue #2807 の
issue-refinement-loopは approved で終了していますが、その終了コメントのLOOP_HANDOFF_RESULT_V1.contract_review.statusはnot_runです。さらに refinement 時点以降に
mainは進んでいます。したがって:
refinement_approvedcommentLOOP_HANDOFF_RESULT_V1を Step 1 authorization として再利用しないでください。
current
.claude/skills/impl-review-loop/SKILL.mdとsteps/preparation.mdが定める Root-Owned Synchronous Entry Transition を使い、root/main thread の同一 continuous invocation 内で:issue-contract-reviewまで連続して実行してください。
issue-contract-reviewを別ターンで実行して、その結果や comment/token を後から authorization packet として再提示する旧方式は使わないでください。Freshness / authority
開始時に current state を fresh に確認してください。過去チャットや古い SHA を authority にしないでください。
最低限確認するもの:
mainHEAD.claude/skills/impl-review-loop/SKILL.mdsteps/preparation.mdsteps/step-1-implementation.mdsteps/step-2-verification.mdsteps/step-4-pr-review.mdsteps/step-5-feedback-and-termination.mdsteps/step-5-mergeability-handling.mdsteps/context-protocol-and-guardrails.md.claude/agents/implementation-worker.md.claude/agents/test-runner.md.claude/agents/pr-reviewer.md.claude/skills/implement-issue/SKILL.md.claude/skills/pr-review-judge/SKILL.md.claude/skills/pr-review-judge/references/evidence-policy.md.claude/skills/create-issue/references/body-authoring.mddocs/dev/runtime-verification-policy.mddocs/dev/extension-surface-runtime-policy.yamldocs/dev/workflow.md.claude/rules/**関連履歴として少なくとも fresh に確認する:
必要ならその他の related Issue/PR も追ってください。
Existing implementation / PR discovery
Step 1 dispatch より前に current canonical landing-disposition / existing-PR discovery を実行してください。
既存 branch / worktree / open PR / draft PR / landed implementation が存在する場合は canonical disposition に従い再利用し、duplicate branch / worktree / PR を作らないでください。
こちらで事前確認した範囲では #2807 を close する既存 PR、
2807branch、関連 commit は見つかっていませんが、この情報を authority にせず実行時の live discovery を優先してください。Technical recommendation for #2807
live Issue contract を正本としつつ、実装方針は以下を第一候補にしてください。
1.
evidence-policy.mdactual/canonical/default runtime acceptance を要求する AC と、fixture semantics を明確に区別してください。
最低限、instruction wiring として次を明示する方向で実装してください。
[x]、Safety Claim、self-report は actual-runtime evidence の代替にならない。cause: proxy_model_catalog_incompatible等の canonical launcher non-zero result が存在する場合、同 head の fixture compatibility PASS を APPROVE 根拠にしない。ただし static reference wording を deterministic semantic parser に変換しないでください。generic NLP evaluator / LLM evaluator / schema registry は追加しません。
2.
body-authoring.mdIssue authoring guidance として:
を区別してください。
両者を要求する場合は AC/VC を分離し、actual/canonical runtime AC の唯一の VC を fixture-only test にしないことを明文化してください。
existing structural completeness と semantic sufficiency の責務境界を維持してください。
3. Regression tests
Issue #2807 の live Allowed Paths と literal Verification Commands を正本に、以下の新規 focused tests を実装してください。
.claude/skills/pr-review-judge/tests/test_fixture_only_actual_runtime_evidence_mismatch.py.claude/skills/create-issue/tests/test_body_authoring_actual_vs_fixture_runtime_ac_separation.py.claude/skills/pr-review-judge/tests/test_canonical_smoke_asset_reuse_no_new_harness.pyこれらは instruction wiring / documented contract の static regression を固定するものです。
pytest green を
「live pr-review-judge が実際に semantic REQUEST_CHANGES を返すことの runtime proof」
として過大解釈しないでください。
4. Runtime assets
既存:
scripts/claude-gpt/launch.sh --check-onlyscripts/claude-gpt/runtime_smoke_test.shを canonical runtime evidence asset として参照できますが、Issue #2807 自体のための新しい generic runtime harness は作らないでください。
catalog/proxy acceptance と authenticated ChatGPT subscription smoke を混同しないでください。
この Issue の current RVA が
not_applicableである理由を live policy と照合し、.claude/skills/pr-review-judge/SKILL.mdを変更しない限り unnecessary runtime hard trigger を導入しないでください。5. Scope discipline
live Issue #2807 の Allowed Paths を厳守してください。
特に以下は原則変更しない:
.claude/skills/pr-review-judge/SKILL.mddocs/dev/runtime-verification-policy.mdは live Issue contract が許す「cross-reference が必要な場合のみ」に限定してください。Allowed Paths 外の変更が本当に不可避なら、勝手に scope を拡張せず hard conflict として扱ってください。
SubAgent execution requirements
canonical
impl-review-loopの SubAgent を必ず使用してください。標準 loop の主な dispatch:
implementation-workertest-runnerpr-reviewer必要な repair/update_branch も current skill の canonical worker route を使用してください。
Completion contract — 必須
SubAgent を dispatch しただけで完了扱いにしないでください。
current
step-4-pr-review.mdのCommon Completion Protocolを全 dispatch site で厳守してください。各 task について:
spawn_agentが返した canonicaltask_nameを保存する。wait_agentは mailbox activity を待つ用途だけに使う。list_agentsで同じ canonical task name が terminalcompletedであることを確認する。completedの両方が確認できて初めて downstream routing へ進む。errored/interrupted/shutdown/not_foundは成功扱いしない。特に Step 2 → Step 4 では、test-runner の final result と terminal completion の両方を確認するまで pr-reviewer を起動しないでください。
child prompt は親 session の暗黙 context に依存させず、必ず materialize 済みの:
を明示してください。
placeholder や
currentのような曖昧参照を child に渡さないでください。Implementation → verification → review loop
current
impl-review-loopのmax_iterations既定値を使用してください。Step 1
implementation-workerに current live Issue contract を渡し、implement-issueSkill で:Closes #2807まで進めてください。
root thread が直接 implementation worker の data-plane 作業を代行しないでください。
Step 2
test-runnerに live Issue の literal Verification Commands を独立実行させてください。head SHA、Issue body SHA、literal command hash を binding し、SKIP / fallback / stale evidence を PASS 扱いしないでください。
Issue #2807 の Verification Commands は live body から読み直して、そのまま実行してください。古い prompt 内のコマンド文字列を authority にしないでください。
全 VC と必要な regression suite が通るまで修正してください。
Step 4
current-head
VC_ADJUDICATION_RESULT_V1.blocking == falseを確認してからpr-reviewerを起動してください。required CI は current-head scoped に待機してください。
pr-reviewer は current
.claude/skills/pr-review-judge/SKILL.mdを実行し、Issue contract / diff / Allowed Paths / evidence / CI を独立レビューしてください。Step 5
route_loop_verdict_v2()の canonical route をそのまま消費し、prose で再実装しないでください。REQUEST_CHANGES→ blockers をfix_deltaとして Step 1 worker に戻すBEHIND→ canonicalupdate_branchworker routeAPPROVE単独では終了しないapprovedroute のみ merge-ready 終了とするレビュー finding をコメントしただけで loop を終了しないでください。
Recurrence prevention / follow-up Issues
実装・検証・レビュー中に #2807 とは別の 再発性のある root cause を発見した場合:
を含める。
既知の LP016 / grouped AC marker drift は OPEN Issue #1719 が既に同一 root cause を追跡しているため、これを再発見しても duplicate Issue を作らないでください。
この invocation は distinct recurrence follow-up Issue の dedupe 後起票を明示的に許可します。Issue #2807 の実装 scope 自体を広げる authorization ではありません。
External research
本 Issue は基本的に repository-internal policy/reference/static regression の変更です。
external specification が merge decision に materially 必要な場合のみ current canonical external-research route を使ってください。
外部調査が不要ならその理由を
external_research_skip_basisに記録し、無意味な network research や恒久 dependency を追加しないでください。Stop boundaries
通常の test failure、CI failure、REQUEST_CHANGES、stale head、BEHIND、修正可能な review finding は停止理由にしないでください。
停止するのは主に:
です。
--dangerously-skip-permissions/bypassPermissions等を要求しないでください。foreign worktree / unrelated dirty work を変更・削除しないでください。
Completion target
merge はしません。
以下を全て満たすところまで進めてください。
Closes #2807を保持その時点で停止し、人間の merge 判断へ引き渡してください。
Final report
最後に簡潔に以下を報告してください。
SubAgent の dispatch 状況ではなく、全 child task の final result と terminal completion を確認した後の最終状態を報告してください。
このプロンプトでは、#2807 の refinement 後に
mainが進んだ点と、現行 Skill の「current-run contract review を同一 invocation 内で行う」契約を特に強く固定しています。squne121 commentedon Sep 27, 2026
root-owned entry router audit
route: invoke_impl_review_loop
reason: fresh_review_go_live_equality
squne121 commentedon Sep 27, 2026
implement-issue: 実装完了 (2026-09-27)
.claude/worktrees/issue-2807-canonical-launcher-smokeworktree-issue-2807-canonical-launcher-smoketest_model_routing.py: 全PASSChanged files(Allowed Paths 5ファイル、全一致)
.claude/skills/create-issue/references/body-authoring.md.claude/skills/pr-review-judge/references/evidence-policy.md.claude/skills/pr-review-judge/tests/test_fixture_only_actual_runtime_evidence_mismatch.py(新規).claude/skills/create-issue/tests/test_body_authoring_actual_vs_fixture_runtime_ac_separation.py(新規).claude/skills/pr-review-judge/tests/test_canonical_smoke_asset_reuse_no_new_harness.py(新規)docs/dev/runtime-verification-policy.mdは Allowed Paths に含まれるが「cross-reference が必要な場合のみ」の条件付きのため、既存記述で担保できると判断し変更していません。.claude/skills/pr-review-judge/SKILL.md本文(Procedure/output contract)は無変更です。fix: PR Body Japanese Check の見出し日本語比率不足を修正する (#2807)
squne121 commentedon Sep 27, 2026
impl-review-loop: 完了 (2026-09-28T00:00:00Z)
実装: Claude-GPT proxy互換性変更の完了判定で canonical launcher smoke を fixture で代…