Skip to content

実装: Claude-GPT proxy互換性変更の完了判定で canonical launcher smoke を fixture で代替しない #2807

Closed

Description

@squne121

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

current 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 にできない。

最低限、次を区別する。

  1. fixture semantics AC: catalog mismatch / repair / precedence 等のロジックを hermetic fixture で検証する。
  2. canonical runtime acceptance AC: current-head production launcher を通常の binary resolution で external process として起動し、actual selected proxy identity と --check-only result を観測する。

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.md selector, 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

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

Allowed 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.py
  • docs/dev/runtime-verification-policy.md

Required Skills

なし

Required Design References

  • docs/dev/runtime-verification-policy.md
  • .claude/skills/pr-review-judge/references/evidence-policy.md
  • docs/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

Activity

  1. added
    phase/implementation
    agent/implementer
    follow-up
    on Sep 27, 2026
  2. squne121 commented on Sep 27, 2026

    @squne121
    OwnerAuthor

    判定

    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 に、

    # AC1 / AC4 / AC6 / AC7
    # pr-review-judge regression: ...
    

    のようなコメントしかなく、実行する $ ... command がありません。

    current main の .claude/skills/issue-contract-review/scripts/vc_contract_syntax.py は VC grammar を明確に固定しており、

    • command は ```bash fence 内
    • AC marker は # AC1 または # AC1, AC4
    • command は $ で開始
    • # 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 では、

    .claude/skills/**/SKILL.md
    

    への変更は 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.md selector と conservative overlap すれば runtime requirement を発火させることを固定しています。

    #2807 の Allowed Paths は、

    .claude/skills/pr-review-judge/
    

    と directory 全体を許可しているため、この hard trigger に該当し得ます。しかし #2807 には現状、

    • ## Runtime Verification Applicability
    • decision: immediate
    • applicable_acs
    • runtime_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

    は冒頭で明示的に、

    static text / contract-wiring checks であり、actual PR review における LLM semantic judgment は自動化しない

    という責務境界を持っています。

    ところが #2807 AC1 は、

    actual-runtime AC + fixture-only VC + real smoke SKIP の regression fixture に対し semantic review が APPROVE ではなく blocker を返す

    AC7 も、

    旧 iteration 1 相当の APPROVE route が再発しない

    と、semantic reviewer の runtime behavior まで test が証明するように読めます。

    実装者が既存 precedent に従って SKILL.md / reference の文字列 assertion だけ追加すると、pytest は green でも、実際の pr-review-judge が #2802 型の入力で REQUEST_CHANGES を返すことは証明されません。まさに #2807 が防ごうとしている evidence-substitution の再演になります。

    最小修正は二層に分けることです。

    1. 通常 CI: instruction wiring の static contract regression
    2. one-shot runtime: 既存 skill runtime verification 経路で、bounded な 実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2801 相当 fixture をレビューさせ、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-judge evidence policy より弱い

    #2807 AC3 は canonical runtime evidence に、

    • current-head production launcher
    • fake proxy override なし
    • selected proxy path/version

    を要求しています。方向は正しいですが、path/version だけでは current-head evidence として弱いです。

    current pr-review-judge は authoritative independent VC を、

    exact head SHA + literal command SHA256

    に束縛する方針です。

    さらに既存 scripts/claude-gpt/runtime_smoke_test.sh は既に、

    • git head
    • dirty status
    • launch.sh SHA-256
    • lib.sh SHA-256
    • smoke script SHA-256
    • selected proxy absolute path
    • proxy version
    • proxy SHA-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 に到達する前に、

    scripts/claude-gpt/launch.sh --check-only

    を通常 binary resolution のまま一度起動すれば検出できます。

    したがって canonical runtime acceptance を full runtime_smoke_test.sh のみに寄せると、

    catalog preflight は検証可能なのに auth がないので SKIP

    という新しい不必要な merge blockerを作ります。

    推奨分離:

    • 必須: current-head launch.sh --check-only、CLAUDE_GPT_PROXY_BIN override なし
    • 必要な Issue だけ追加: 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 ではない

    現在、

    - 上記に直接対応する既存 test/fixture 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 を選んだ際に、

    • required model
    • missing model
    • proxy identity
    • proxy_model_catalog_incompatible
    • repair command

    まで返しており、#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 の設計

    大幅な再設計は不要です。現在の主眼を保ったまま、以下に絞るのがよいです。

    1. body-authoring.md に fixture semantics と actual/canonical runtime acceptance を別 AC/VC にする規則を追加。
    2. pr-review-judge に AC が要求する evidence source と、提出 evidence の source が一致するか確認する semantic rule を追加。
    3. static regression は「その rule の instruction wiring」が消えないことだけを保証。
    4. existing skill-invocation-runtime-smoke を使った one-shot runtime evidence で、実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2801 型 fixture に対する実 reviewer verdict を確認。
    5. Claude-GPT canonical acceptance 自体は、full smoke より先に direct launch.sh --check-only、override なしを必須 VC とする。
    6. evidence は current head / dirty=false / command / launcher hash / proxy path+version+hash に bind。
    7. permanent network CI gate、daemon、generic NLP parser、evidence schema registryは追加しない。

    既存 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 の方向性は妥当です。しかし現状のまま実装へ渡すと、

    • VC 自体が executable contract ではない
    • Skill 変更に必要な RVA がない
    • static wiring test を semantic-behavior test と誤認する第二の false-green が起き得る
    • canonical runtime evidence の identity binding が不足
    • full runtime smoke を使うと不要な auth SKIP が混入する

    という問題があります。

    まず Issue refinement で上記5点を修正してから impl-review-loop へ渡すのが最小かつ堅い経路です。新しい恒久 harness は不要で、current repository の既存 policy・runtime assetsだけで閉じられます。

  3. squne121 commented on Sep 27, 2026

    @squne121
    OwnerAuthor

    確認した live state では、指定コメントは OWNER authored の trusted human context、current main は c9c8e35c7e461b7b8b0d272c669bb0e4a4f11d5f です。推奨は、#2807 を実装へ進めず、まず指定コメントを anchor に current issue-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

    対象:

    この 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 に取得・確認してください。

    1. current main HEAD と working tree / worktree 状態
    2. Issue 実装: Claude-GPT proxy互換性変更の完了判定で canonical launcher smoke を fixture で代替しない #2807 の current body、labels、state、全 comments
    3. anchor comment 5856155529 の current metadata と本文
    4. anchor が Issue 実装: Claude-GPT proxy互換性変更の完了判定で canonical launcher smoke を fixture で代替しない #2807 に属し、trusted OWNER human context であること
    5. 関連する Issue / PR:
    6. current repository canonical assets。少なくとも:
      • CLAUDE.md
      • applicable .claude/rules/**
      • .claude/skills/issue-refinement-loop/SKILL.md
      • 同 Skill が今回の route で要求する references/**
      • .claude/skills/issue-contract-review/scripts/vc_contract_syntax.py
      • docs/dev/extension-surface-runtime-policy.yaml
      • docs/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.md
      • scripts/claude-gpt/launch.sh
      • scripts/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_context route に従ってください。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-editor SubAgent を使ってください。

    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-reviewer SubAgent を canonical Step 2 の代わりに起動しないでください。

    Anchor comment で必ず解消すべき事項

    anchor comment の指摘を単に要約せず、current repository evidence と照合して Issue contract に反映してください。

    特に次を解消してください。

    1. Verification Commands を executable canonical VC にする

      • current VC grammar を確認する。
      • AC marker と $ command を canonical syntax で記述する。
      • 「実装時に exact node-id を決める」という placeholder のまま approved にしない。
      • 未実装 test を VC にする repository precedent が現在も有効なら、exact path/node-id を current layout から確定し baseline-fail contract として記述する。
      • node-id/path は推測で作らず、current repository layout に基づいて決定する。
    2. Runtime Verification Applicability を正しく決める

      • .claude/skills/pr-review-judge/ の broad Allowed Path が current runtime policy の SKILL.md selector と conservative overlap するか実際に確認する。
      • SKILL.md 変更が不要なら Allowed Paths を reference/test の exact machine-actionable paths へ狭め、不必要な hard runtime trigger を避ける。
      • SKILL.md 変更が必要なら current skill-invocation-runtime-smoke 等の既存 profile を再利用して RVA / bindings を contract に記述する。
      • 新しい runtime harness を作らない。
    3. static regression と semantic runtime behavior を混同しない

      • current test_enumerated_ac_evidence_coverage_contract.py 等の責務境界を確認する。
      • static pytest が instruction wiring しか保証しない場合、「actual reviewer が REQUEST_CHANGES を返すことまで pytest が証明する」と AC/VC に書かない。
      • static wiring regression と、必要なら既存 runtime verification 経路による one-shot semantic observation を別 evidence として扱う。
      • generic LLM evaluator / generic NLP semantic parser を新設しない。
    4. canonical runtime evidence provenance を current policy に合わせる

      • path/version だけで current-head acceptance としない。
      • existing assets で取得可能な範囲で、少なくとも current head、dirty state、実行 command identity、launcher identity/hash、selected proxy absolute path/version/hash を current evidence policy に整合させる。
      • stale run、fixture binary、同 path 上の binary replacement を actual SUT evidence と誤認しない。
      • 新しい schema registry は作らない。
    5. catalog acceptance と authenticated full runtime smoke を分離する

      • 今回の catalog/proxy compatibility を検出する最低限の canonical acceptance は、current-head production launch.sh --check-only を通常 binary resolution、fake CLAUDE_GPT_PROXY_BIN override なしで実行する経路を優先して検討する。
      • ChatGPT subscription auth が不要な段階で検出可能な failure を、full runtime_smoke_test.sh の auth preflight SKIP によって検証不能にしない。
      • real account/network request が意味的に必要な AC のみ、別 evidence として full smoke を要求する。
      • SKIP / exit 77 / environment blocked を required PASS に昇格させない。
    6. Allowed Paths を machine-actionable にする

      • 上記に直接対応する既存 test/fixture path のような prose entry を残さない。
      • investigation 後に current repository の exact path または repository parser が正式に受理する bounded glob を列挙する。
      • scope を広げるための曖昧 wildcard は使わない。

    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 で以下を確認してください。

    • current body hash / freshness
    • AC と VC の semantic correspondence
    • exact Allowed Paths
    • RVA completeness
    • external claims の unresolved state
    • related Issue / PR との scope overlap
    • duplicate mechanism の追加がないこと

    Recurrence / follow-up issue

    investigation または refinement 中に、#2807 の scope に混ぜるべきでない 別の再発性 defect / workflow defect が fresh evidence で見つかった場合:

    1. open/closed Issue、関連 PR、dedupe key を検索する。
    2. 既存 Issue が同じ root cause / outcome を所有しているなら重複起票せず、その Issue を参照する。
    3. 未追跡で、再発防止として独立 Issue にする価値がある場合は issue-creator SubAgent を使い、current create-issue contract に従って follow-up Issue を実際に起票する。
    4. issue-creator の terminal result と GitHub readback を待ってから完了扱いにする。
    5. 実装: Claude-GPT proxy互換性変更の完了判定で canonical launcher smoke を fixture で代替しない #2807 の Allowed Paths や AC を勝手に広げて吸収しない。

    新規 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 境界です。

    • current repository contract が返す human_judgment_required
    • canonical loop 上限到達
    • destructive operation
    • secret / credential の取得・変更・公開
    • permission bypass が必要
    • irreconcilable scope conflict
    • authority 外変更が不可避
    • evidence integrity / freshness を維持できない
    • trusted anchor binding が成立しない

    bypassPermissions、--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 を再生産しないことを優先しています。

  4. squne121 commented on Sep 27, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop 終了報告(approved)

    anchor comment(OWNER, https://github.com/squne121/loop-protocol/issues/2807#issuecomment-5856155529)の指摘を trusted human context として消費し、本 Issue の contract を implementation-ready へ改訂しました。

    対応内容

    • テンプレート必須セクション(Parent Goal Ref / Current Validated Scope / Remaining Parent Gaps / Runtime Verification Applicability / Required Skills / Required Design References)を追加。
    • Verification Commands を canonical な executable form($ uv run --locked pytest ..., bare # AC<N> marker)へ書き換え、baseline-fail 用の未作成 test node-id を明記。
    • Runtime Verification Applicability を decision: not_applicable とし、.claude/skills/pr-review-judge/SKILL.md を変更対象から除外していることを根拠として明記(docs/dev/extension-surface-runtime-policy.yaml の hard trigger は SKILL.md path のみ)。
    • AC1/AC4/AC7 に static wiring と live semantic judgment の分離を明示する disclaimer を追加。
    • AC3 の canonical runtime evidence provenance を run_head_sha + git_dirty + command identity + launcher hash + proxy hash まで拡張。
    • Allowed Paths を prose entry なしの具体的な既存/新規ファイルパス列挙へ変更。
    • semantic design review(Step 2.5, issue-design-reviewer)で2回検出された AC4/AC5 の VC granularity 不備(別シナリオの AC が同一 test function に相乗りしていた)を、専用 test function への分離で解消。

    実行した検証

    • Step 0f preflight(preflight.run.with_human_context): STATUS: pass / NEXT_ACTION: proceed
    • Step 2 canonical review(run_root_review_pipeline.py produce): VERDICT: approve / canonical_step2_route: step_2_5
    • Step 2.5 semantic design review(issue-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 実行することを推奨します。

    LOOP_HANDOFF_RESULT_V1:
      status: refinement_approved
      routing_action: none
      contract_review:
        status: not_run
        gate_result: missing_go
        latest_comment_url: null
        generated_at: null
        body_sha256: null
      metadata:
        title_prefix_ready: true
      auto_fixes:
        result: auto_fixed
        required: []
        skipped: []
      blockers: []
      permissions:
        unavailable: []
      generated_at: "2026-09-27T13:59:00Z"
      checked_body_sha256: "4257174eb324cb2c51fdbd1eab34d89bb910ea4677a87430f41926fb1c998366"
      checker_exit_code: 0
      missing_sections: []
      missing_contract_keys: []

    status: refinement_approved は issue-refinement-loop が approved で終了したという audit telemetry のみを表し、impl-review-loop の implementation dispatch を authorize しません(#2740)。実装は別途明示的に依頼してください。

  5. squne121 commented on Sep 27, 2026

    @squne121
    OwnerAuthor

    確認した 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-run issue-contract-review → Step 1 を同一 invocation 内で実行するのが適切です。

    現時点の検索では #2807 を close する既存 PR、2807 branch、関連 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_approved comment
    • 古い LOOP_HANDOFF_RESULT_V1
    • 古い contract snapshot
    • refinement 時の main SHA

    を Step 1 authorization として再利用しないでください。

    current .claude/skills/impl-review-loop/SKILL.md と
    steps/preparation.md が定める Root-Owned Synchronous Entry Transition を使い、root/main thread の同一 continuous invocation 内で:

    1. capability preflight
    2. live Issue fetch
    3. current-run issue-contract-review
    4. 直後の live Issue / base 再取得
    5. canonical root entry routing
    6. route が許可した場合のみ Step 1 の直接起動

    まで連続して実行してください。

    issue-contract-review を別ターンで実行して、その結果や comment/token を後から authorization packet として再提示する旧方式は使わないでください。

    Freshness / authority

    開始時に current state を fresh に確認してください。過去チャットや古い SHA を authority にしないでください。

    最低限確認するもの:

    • current main HEAD
    • current root checkout / working tree / worktree 状態
    • Issue 実装: Claude-GPT proxy互換性変更の完了判定で canonical launcher smoke を fixture で代替しない #2807 の live body、state、labels、全 comments
    • current .claude/skills/impl-review-loop/SKILL.md
    • 同 Skill が参照する:
      • steps/preparation.md
      • steps/step-1-implementation.md
      • steps/step-2-verification.md
      • steps/step-4-pr-review.md
      • steps/step-5-feedback-and-termination.md
      • steps/step-5-mergeability-handling.md
      • steps/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.md
    • docs/dev/runtime-verification-policy.md
    • docs/dev/extension-surface-runtime-policy.yaml
    • docs/dev/workflow.md
    • applicable .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、2807 branch、関連 commit は見つかっていませんが、この情報を authority にせず実行時の live discovery を優先してください。

    Technical recommendation for #2807

    live Issue contract を正本としつつ、実装方針は以下を第一候補にしてください。

    1. evidence-policy.md

    actual/canonical/default runtime acceptance を要求する AC と、fixture semantics を明確に区別してください。

    最低限、instruction wiring として次を明示する方向で実装してください。

    • AC が actual/canonical/default runtime selection を要求する場合、fixture proxy を注入した hermetic VC の PASS だけでは充足しない。
    • real/canonical runtime evidence が SKIP / exit 77 / unavailable の場合、fixture PASS で actual-runtime AC を PASS に昇格させない。
    • PR body [x]、Safety Claim、self-report は actual-runtime evidence の代替にならない。
    • canonical runtime evidence は current head / clean-or-explicit-dirty state / literal command identity / launcher identity・hash / selected proxy absolute path・version・hash 等、actual SUT と current head を結び付ける provenance を持つ。
    • 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.md

    Issue authoring guidance として:

    • fixture semantics AC
    • canonical runtime acceptance AC

    を区別してください。

    両者を要求する場合は 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-only
    • scripts/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.md
    • Claude-GPT launcher/proxy implementation 本体
    • generic runtime harness
    • daemon
    • permanent network-required CI gate
    • unrelated parser/framework

    docs/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:

    1. Step 1:
      implementation-worker
    2. Step 2:
      test-runner
    3. Step 4:
      pr-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 について:

    1. spawn_agent が返した canonical task_name を保存する。
    2. wait_agent は mailbox activity を待つ用途だけに使う。
    3. timeout / steer / 中間 update を成功扱いしない。
    4. child の final result を実際に取得・consume する。
    5. その後 list_agents で同じ canonical task name が terminal completed であることを確認する。
    6. final result + terminal completed の両方が確認できて初めて downstream routing へ進む。
    7. errored / interrupted / shutdown / not_found は成功扱いしない。

    特に Step 2 → Step 4 では、test-runner の final result と terminal completion の両方を確認するまで pr-reviewer を起動しないでください。

    child prompt は親 session の暗黙 context に依存させず、必ず materialize 済みの:

    • task
    • actual Issue / PR
    • authority
    • Allowed Paths
    • AC / literal VC
    • current head/body binding
    • constraints
    • expected structured output

    を明示してください。

    placeholder や current のような曖昧参照を child に渡さないでください。

    Implementation → verification → review loop

    current impl-review-loop の max_iterations 既定値を使用してください。

    Step 1

    implementation-worker に current live Issue contract を渡し、implement-issue Skill で:

    • canonical worktree/branch
    • implementation
    • focused verification
    • commit/push
    • Draft/open PR
    • 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 に戻す
    • fix 後 → Step 2 を current head で再実行
    • その後 → Step 4 を fresh head で再 review
    • BEHIND → canonical update_branch worker route
    • stale head → fresh head で再 review
    • ordinary CI/test failure →可能なら自動修正して継続
    • APPROVE 単独では終了しない
    • live mergeability + blockers 条件を満たした canonical approved route のみ merge-ready 終了とする

    レビュー finding をコメントしただけで loop を終了しないでください。

    Recurrence prevention / follow-up Issues

    実装・検証・レビュー中に #2807 とは別の 再発性のある root cause を発見した場合:

    1. repository の open/closed Issue を root cause / dedupe key / relevant symbols で検索する。
    2. 既存 Issue が同じ failure class を扱う場合は新規 Issue を作らず、その Issue を final report に記載する。
    3. distinct failure class で既存 Issue が無い場合は、GitHub Issue を人間承認なしで起票する。
    4. follow-up Issue には最低限:
      • concrete observed failure
      • root cause
      • reproduction/evidence
      • affected canonical asset
      • minimal deterministic prevention
      • regression test expectation
      • explicit non-goals
      • related Issue/PR
      • dedupe key
        を含める。
    5. enterprise-style generic hardening、恒久 approval layer、generic wrapper、不要な schema/framework は提案しない。
    6. follow-up の内容を 実装: Claude-GPT proxy互換性変更の完了判定で canonical launcher smoke を fixture で代替しない #2807 の PR diff に混在させない。

    既知の 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 は停止理由にしないでください。

    停止するのは主に:

    • destructive operation が必要
    • secret / credential の取得・変更・公開が必要
    • permission bypass が必要
    • force push 等の履歴破壊が必要
    • live Issue Allowed Paths と必要修正が irreconcilable
    • explicit human veto
    • canonical max-iteration 上限到達
    • evidence integrity を維持できない genuine blocker
    • repository contract が明確に human judgment を hard require するケース

    です。

    --dangerously-skip-permissions / bypassPermissions 等を要求しないでください。

    foreign worktree / unrelated dirty work を変更・削除しないでください。

    Completion target

    merge はしません。

    以下を全て満たすところまで進めてください。

    その時点で停止し、人間の merge 判断へ引き渡してください。

    Final report

    最後に簡潔に以下を報告してください。

    SubAgent の dispatch 状況ではなく、全 child task の final result と terminal completion を確認した後の最終状態を報告してください。

    このプロンプトでは、#2807 の refinement 後に main が進んだ点と、現行 Skill の「current-run contract review を同一 invocation 内で行う」契約を特に強く固定しています。

  6. squne121 commented on Sep 27, 2026

    @squne121
    OwnerAuthor

    root-owned entry router audit

    route: invoke_impl_review_loop
    reason: fresh_review_go_live_equality

  7. squne121 commented on Sep 27, 2026

    @squne121
    OwnerAuthor

    implement-issue: 実装完了 (2026-09-27)

    Changed 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)は無変更です。

  8. squne121 commented on Sep 27, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 完了 (2026-09-28T00:00:00Z)

    IMPL_REVIEW_LOOP_RESULT_V1:
      schema_version: 1
      status: draft_pr_ready
      pr_url: "https://github.com/squne121/loop-protocol/pull/2809"
      head_sha: "457bc1d4ea840136a459772626c5bda3809ab834"
      issue_number: 2807
      termination_reason: approved
      merge_ready: true
      iteration: 1
    
    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: impl-review-loop
      follow_up_issues:
        - request_dedupe_key: "malformed-scope-coverage-marker-idempotent-passthrough"
          status: created
          issue:
            number: 2811
            url: "https://github.com/squne121/loop-protocol/issues/2811"
          reason: null
      note_only_observations: []
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/implementerfollow-upphase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions