Skip to content

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

Merged
squne121 merged 4 commits into
mainfrom
worktree-issue-2807-canonical-launcher-smoke
Sep 27, 2026
Merged

squne121 merged 4 commits into
mainfrom
worktree-issue-2807-canonical-launcher-smoke

Conversation

@squne121

@squne121 squne121 commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Claude-GPT の model/proxy compatibility・launcher lifecycle 変更で AC が actual/canonical/default runtime selection を要求する場合、fixture proxy を明示注入する hermetic test(fixture-only VC)だけではその AC を PASS にできないことを instruction wiring として明文化した。
  • .claude/skills/create-issue/references/body-authoring.md に「fixture semantics AC」と「canonical runtime acceptance AC」を区別し、両方必要な場合は別 AC/VC に分離する規則を追加した。
  • .claude/skills/pr-review-judge/references/evidence-policy.md に、AC の evidence-source requirement(actual/canonical vs fixture)と VC/test implementation の evidence source を照合するルール、PR body の [x] / Safety Claim / self-report のみでの APPROVE 禁止規則、canonical smoke が cause: proxy_model_catalog_incompatible / non-zero を返した場合に同一 head の fixture compatibility tests が PASS でも actual-runtime AC を昇格させない instruction wiring を追加した。
  • 上記 instruction wiring を固定する static regression test を新規3ファイルで追加した(.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)。
  • .claude/skills/pr-review-judge/SKILL.md 本文(Procedure / output contract)は変更していない。docs/dev/runtime-verification-policy.md も変更していない(cross-reference の追加は不要と判断した)。
  • 既存 fixture tests(scripts/claude-gpt/tests/test_proxy_model_compatibility.py 等)や scripts/claude-gpt/launch.sh / runtime_smoke_test.sh は変更していない(既存資産の参照のみ)。

Checks

  • pnpm typecheck
  • pnpm lint
  • pnpm test
  • pnpm build
  • uv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py
  • 上記コマンドをすべてローカルで実行し、成功したことを確認してからチェックしました

Schema Change Applicability

  • decision: not_schema_change
  • reason: 本 PR は Markdown 参照ドキュメント(body-authoring.md / evidence-policy.md)へのガイダンス追記と、新規 static pytest 3 ファイルの追加のみで、JSON/YAML の producer/consumer schema(CLAUDE_GPT_LAUNCH_RESULT_V1 等)を新規追加・変更しない。

Schema Consumer Inventory

N/A
reason: schema 定義・producer・consumer のいずれも変更していないため(decision: not_schema_change)。

Safety Claim Matrix

各 Claim は実装済み・確認済みの範囲に射程を限定して記載しています。本 PR は .claude/skills/ 配下のファイルを変更するため safety-sensitive path として本表を記載します。

Claim Implemented? Not controlled Evidence Follow-up
.claude/skills/pr-review-judge/SKILL.md 本文(Procedure / output contract)は変更していない yes git diff main...HEAD -- .claude/skills/pr-review-judge/SKILL.md(差分なし) N/A
変更対象は Allowed Paths に列挙された5ファイルのみで、それ以外のファイルは変更していない yes git diff --name-only main...HEAD(5ファイルのみ表示) N/A
新規追加した3つの static pytest はいずれもリポジトリ内 Markdown ファイルのテキスト読み取り・存在確認のみを行い、外部プロセス起動・network 呼び出し・daemon 起動を行わない yes 3ファイルのソース(Path.read_text / Path.is_file のみを使用、subprocess 呼び出しなし) N/A
既存 fixture tests(scripts/claude-gpt/tests/test_proxy_model_compatibility.py)は本 PR で変更していない yes git diff main...HEAD -- scripts/claude-gpt/(差分なし。Allowed Paths 外のため touch していない) N/A
新しい permanent daemon / generic runtime harness / network-required merge gate を追加していない yes git diff --name-only main...HEAD に新規スクリプト・ワークフロー追加は含まれない(Markdown 2ファイル更新 + pytest 3ファイル新規のみ) N/A

記載ルール: 上記の通り、Not controlled はいずれも空欄です。「安全」「read-only」「sandboxed」「complete」等の無限定な主張はしていません。

受け入れ条件の達成状況

  • AC1: 実装: Claude-GPT launcher の model/proxy 互換性を事前検証し、互換 proxy の復旧経路を提供する #2801 相当の regression fixture(actual/canonical compatible proxy selection を要求する AC + fake CLAUDE_GPT_PROXY_BIN を注入する fixture-only VC + real smoke SKIP)に対し、evidence-policy.md の instruction wiring が「fixture-only 証跡では actual-runtime AC を充足しない」ことを明示していることを test_fixture_pass_and_real_smoke_skip_is_insufficient_for_actual_runtime_ac で確認済み。
  • AC2: body-authoring.md に actual/canonical/default runtime acceptance と fixture semantics を区別し、両方必要な場合は別 AC/VC にする規則を追加し、test_actual_runtime_ac_cannot_be_satisfied_by_fixture_only_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 のみでは不十分と明記していることを test_evidence_policy_requires_current_head_proxy_identity_binding_and_no_new_harness で確認済み。
  • AC4: canonical smoke が cause: proxy_model_catalog_incompatible / non-zero を返した場合、同 head の fixture compatibility tests が PASS でも actual-runtime AC を PASS に昇格させないという instruction wiring の存在を test_canonical_smoke_nonzero_result_blocks_promotion_despite_fixture_pass で確認済み。
  • AC5: 既存 fixture tests(scripts/claude-gpt/tests/test_proxy_model_compatibility.py 等)は hermetic implementation-semantics coverage として変更せず維持し、通常 CI は real ChatGPT account/network を必須にしないことを test_existing_fixture_tests_unchanged_and_ci_not_network_dependent で確認済み(この static test はマーカー文字列の存在確認であり、fixture file のバイト単位 unchanged 証明ではない。fixture file が実際に変更されていないことは Allowed Paths + git diff --name-only main...HEAD の diff evidence で担保する)。
  • AC6: PR body の [x] / Safety Claim / self-report だけでは AC1〜AC4 の記述上の不足を覆せないことを evidence-policy.md に明記し、test_fixture_pass_and_real_smoke_skip_is_insufficient_for_actual_runtime_ac の 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 根拠が存在しないことを test_fixture_pass_and_real_smoke_skip_is_insufficient_for_actual_runtime_ac で確認済み。
  • AC8: new permanent daemon / generic runtime harness / network-required merge gate を追加せず、既存 runtime verification assets(launch.sh --check-only, runtime_smoke_test.sh)への参照のみを追加したことを test_evidence_policy_requires_current_head_proxy_identity_binding_and_no_new_harness で確認済み(この static test はドキュメント内の禁止マーカー文字列の不在確認であり、リポジトリ全体に new harness が存在しないことの網羅的証明ではない。new harness を追加していないことは Allowed Paths + actual changed-files で担保する)。

検証コマンド結果

current-head SHA: c1bd41d47bb8ac7cbde5e60c5c9b0aad81c68a5d(実際の commit SHA は下記 IMPLEMENTATION_SCOPE_COVERAGE_V1.pr_head_sha を正とする)

Issue #2807 記載の Verification Commands(AC1〜AC8)を個別 node-id で実行し、全て成功(PASS)した:

AC1/AC6/AC7: 1 passed (test_fixture_pass_and_real_smoke_skip_is_insufficient_for_actual_runtime_ac)
AC4: 1 passed (test_canonical_smoke_nonzero_result_blocks_promotion_despite_fixture_pass)
AC2: 1 passed (test_actual_runtime_ac_cannot_be_satisfied_by_fixture_only_vc)
AC3/AC8: 1 passed (test_evidence_policy_requires_current_head_proxy_identity_binding_and_no_new_harness)
AC5: 1 passed (test_existing_fixture_tests_unchanged_and_ci_not_network_dependent)

標準4コマンドおよび project-constitution 必須 pytest も実行済み:

pnpm typecheck: exit 0
pnpm lint: exit 0
pnpm test: 108 files / 1943 tests passed
pnpm build: exit 0 (vite build 成功)
uv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py: 24 passed

Notes

  • Related issue: Closes 実装: Claude-GPT proxy互換性変更の完了判定で canonical launcher smoke を fixture で代替しない #2807
  • MVP scope: instruction wiring(body-authoring.md / evidence-policy.md)+ static regression test のみ。live runtime proof は本 Issue のスコープ外(Runtime Verification Applicability: not_applicable)。
  • AI / NotebookLM usage: なし
  • 備考: docs/dev/runtime-verification-policy.md は Allowed Paths に含まれるが、In Scope 記載どおり「cross-reference が必要な場合のみ」の条件付きであり、既存記述(SKIP≠PASS 等)で本 Issue の意図が既に担保されていると判断し変更しなかった。
IMPLEMENTATION_SCOPE_COVERAGE_V1:
  schema_version: "IMPLEMENTATION_SCOPE_COVERAGE_V1"
  issue_number: 2807
  issue_body_sha256: "sha256:4257174eb324cb2c51fdbd1eab34d89bb910ea4677a87430f41926fb1c998366"
  normalized_scope_manifest_sha256: "sha256:77af0e66eb1ac4cd82901c565ce70f7f96fa9732ccbad2afa8419375bb7e419f"
  pr_head_sha: "c1bd41d4b581cc5e92f4d44dc45da7cb2f04eaa0"
  scope_manifest: {"acceptance_criteria": ["#2801 / PR #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 自体は証明しない。", "#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 を返すことまでは証明しない。", "PR body の [x] / Safety Claim / self-report だけでは AC1〜AC4 の記述上の不足を覆せないことを evidence-policy.md の記述として固定し、pr-review-judge focused test で instruction wiring を確認する。", "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 の充足として明示的に不十分と記載されている。", "body-authoring.md に、actual/canonical/default runtime acceptance と fixture semantics を区別し、両方必要な場合は別 AC/VC にする規則が明記されている。", "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 を返すことまでは証明しない。", "new permanent daemon / generic runtime harness / network-required merge gate を追加せず、既存 runtime verification assets(launch.sh --check-only, runtime_smoke_test.sh)への参照のみを追加することを regression test で固定する。", "既存 fixture tests(scripts/claude-gpt/tests/test_proxy_model_compatibility.py 等)は hermetic implementation-semantics coverage として変更されず維持され、通常 CI は real ChatGPT account/network を必須にしないことを regression test で固定する。"], "allowed_paths": [".claude/skills/create-issue/references/body-authoring.md", ".claude/skills/create-issue/tests/test_body_authoring_actual_vs_fixture_runtime_ac_separation.py", ".claude/skills/pr-review-judge/references/evidence-policy.md", ".claude/skills/pr-review-judge/tests/test_canonical_smoke_asset_reuse_no_new_harness.py", ".claude/skills/pr-review-judge/tests/test_fixture_only_actual_runtime_evidence_mismatch.py", "docs/dev/runtime-verification-policy.md"], "change_kind": "workflow", "goal_ref": "Claude-GPT の model/proxy compatibility 変更で actual/canonical runtime acceptance を要求する AC を fixture-only VC で完了扱いせず、current-head の canonical launcher が実際に選択する proxy identity と check-only 結果を merge 判断へ反映する", "in_scope": [".claude/skills/create-issue/references/body-authoring.md の runtime AC/VC authoring guidance:", ".claude/skills/pr-review-judge/references/evidence-policy.md の semantic evidence review:", "AC が actual/canonical/default runtime selection を要求する場合、fixture-only VC を同一 AC の唯一の evidence にしない。", "AC の evidence-source requirement(actual/canonical vs fixture)と VC/test implementation の evidence source を照合するルールを追加する。", "Claude-GPT 用 canonical smoke は既存 launch.sh --check-only / runtime_smoke_test.sh を再利用し、新しい permanent runtime harness を作らない(本 Issue はこれらを実行しない。既存資産の再利用を規定するのみ)。", "PR body の [x] 自己申告や fixture PASS だけで actual-runtime AC を APPROVE しない。", "fixture semantics と canonical runtime acceptance が両方必要なら AC/VC を分離する。", "上記 boundary の focused regression tests(static pytest)。#2801 / PR #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 を追加する。"], "schema_version": "IMPLEMENTATION_SCOPE_MANIFEST_V1"}

…替しない (#2807)

actual/canonical/default runtime selection を要求する AC を fixture-only VC
で完了扱いしないよう、body-authoring.md(起票ガイダンス)と evidence-policy.md
(pr-review-judge の semantic evidence review ルール)に instruction wiring を
追加し、#2801/PR #2802 の failure class(fixture PASS + real smoke SKIP のまま
APPROVE)を再現しない static regression test を新設する。

- body-authoring.md: fixture semantics AC と canonical runtime acceptance AC
  を区別し、両方必要な場合は別 AC/VC に分離する規則を追加
- evidence-policy.md: AC の evidence-source requirement と VC/test
  implementation の evidence source を照合するルール、PR body の `[x]` /
  self-report のみでの APPROVE を禁止する規則、canonical smoke が
  proxy_model_catalog_incompatible / non-zero を返した場合に fixture PASS
  でも actual-runtime AC を昇格させない instruction wiring を追加
- 新規 static pytest 3ファイル(fixture-only evidence mismatch、
  body-authoring の AC 分離、canonical smoke 資産再利用+no-new-harness)

新しい permanent daemon / generic runtime harness / network-required merge
gate は追加せず、既存 launch.sh --check-only / runtime_smoke_test.sh への
参照のみ。既存 fixture tests は変更しない。

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@github-actions

github-actions Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Preview URL

Preview removed (PR #2809 closed).

Test and others added 2 commits September 27, 2026 23:46
新規追加見出しが英語識別子中心で per-block Japanese ratio 閾値を下回っていたため、
技術用語をインラインコード化して日本語表現を主体にした見出しへ修正する。

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@squne121

Copy link
Copy Markdown
Owner Author

判定

REQUEST_CHANGES 相当です。
PR #2809 の実装方向そのものは Issue #2807 の root cause に合っています。current HEAD d96dfc22c53a3c0706862d2ce7fcf3458dcefa2d では CI も green で、新規3本の pytest も通常の python-test lane に含まれています。

ただし、merge 前に直した方がよい defect が 1件の blocker + 2件の高優先度 semantic gap として残っています。

P0 — PR body の IMPLEMENTATION_SCOPE_COVERAGE_V1 が canonical consumer 上で malformed

問題

PR #2809 の current body にある durable marker は、repository の正規 consumer が受理できません。

現在の marker は次を含んでいます。

normalized_scope_manifest_sha256: "n/a"
pr_head_sha: "c1bd41d47bb8ac7cbde5e60c5c9b0aad81c68a5d"

しかし .claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py の _parse_marker() は、

  • normalized_scope_manifest_sha256 が sha256:<64 hex> 形式
  • かつ実際の scope_manifest の canonical digest と一致

することを要求します。"n/a" は必ず scope_coverage_manifest_digest_mismatch になります。

さらに marker の pr_head_sha も PR #2809 の commit history に存在しません。PR 公開時の実 implementation commit は

c1bd41d4b581cc5e92f4d44dc45da7cb2f04eaa0

であり、marker の

c1bd41d47bb8ac7cbde5e60c5c9b0aad81c68a5d

とは先頭8文字以外が異なります。なお marker は publication-time snapshot なので、現在の HEAD d96d… と異なること自体は問題ではありません。問題は、記録された publication SHA が実 PR commit ではないことです。

impact

同 consumer は open/draft PR でも malformed marker を reconciliation_required にします。merge 後も malformed marker は fail-closed です。

つまり、PR #2809 が解決しようとしている「正しい evidence で lifecycle を継続する」workflow 自身に、壊れた durable evidence が残っています。現在 CI が green でもこの問題は検出されません。

さらに pre-existing な再発経路もあります。.claude/skills/open-pr/scripts/open_pr.py::append_implementation_scope_coverage() は body に文字列 IMPLEMENTATION_SCOPE_COVERAGE_V1: が既にあれば、内容を検証せずそのまま返します。一方 validate_pr_body.py にはこの marker の validation がありません。

最小修正

PR body の marker を手書き修正せず、implementation_landed_evidence.py の canonical producer (build_scope_coverage_marker() / render_scope_coverage_marker()) で publication snapshot から再生成し、正規 PR update wrapper 経由で反映してください。その後、同 consumer で status != invalid を readback して確認するのがよいです。

producer 側の「marker が存在すれば無条件 idempotent」問題は #2807 の Allowed Paths 外なので、本 PR に混ぜず follow-up Issue にするのが適切です。OPEN Issue を検索した範囲では、この malformed-marker validation gap を直接追跡する既存 Issue は見つかりませんでした。


P1 — AC3 の「必須フィールド」と既存 runtime evidence producer の実 schema に対応表がない

問題

今回追加された body-authoring.md と evidence-policy.md は canonical runtime evidence の必須フィールドを、

  • run_head_sha
  • git_dirty
  • 実行 command identity
  • launcher hash
  • selected proxy absolute path / version / hash

と定義しています。

一方、再利用対象として指定している実 producer は別の形です。

scripts/claude-gpt/runtime_smoke_test.sh の CLAUDE_GPT_SMOKE_RESULT_V1 は、

sut.git_head
sut.git_dirty
sut.launch_sh_sha256
proxy.absolute_path
proxy.version
proxy.sha256

を生成します。run_head_sha という field はなく、literal invocation も artifact の field ではありません。

逆に scripts/claude-gpt/launch.sh --check-only の structured result は、

proxy.absolute_path
proxy.version

までは出しますが、proxy hash、launcher hash、full git head は result JSON に入りません。

impact

#2807 の root cause はまさに「AC が要求する evidence semantics と、VC が実際に生成する evidence semantics の不一致」です。今回その mismatch を policy wording と existing producer の境界にもう一度作っています。

LLM reviewer が semantic equivalence を正しく補えば通りますが、

  • run_head_sha が literal に無いので reject
  • sut.git_head を無根拠に equivalent とみなす
  • launch.sh --check-only 単体で全 provenance が取れたと誤認する

という判断 drift が残ります。

最小修正

新 schema や wrapper は不要です。reference に短い mapping を追加するだけで十分です。

例えば、

run_head_sha := CLAUDE_GPT_SMOKE_RESULT_V1.sut.git_head
git_dirty := .sut.git_dirty
launcher hash := .sut.launch_sh_sha256
proxy identity := .proxy.absolute_path / version / sha256
command identity := authoritative VC evidence の literal command + command SHA256 binding

のように、required evidence facts と既存 producer field の対応を明示してください。

run_head_sha を新しい runtime schema field として追加する必要はありません。


P1 — catalog acceptance と authenticated full smoke の分離が、最終 policy wording から弱くなっている

Issue #2807 の trusted review / refinement で重要だった点の一つは、

proxy/model catalog compatibility を確認するためだけに full authenticated runtime smoke を必須にしない

ことでした。

実コードでも違いがあります。

runtime_smoke_test.sh は Phase A の launch.sh --check-only より前に、

preflight.sh --env-only

を実行し、ChatGPT subscription auth が使えないと exit 77 / SKIP して Phase A に到達しません。

一方、今回の追加文書は最後に、

canonical runtime evidence の取得には既存の launch.sh --check-only および runtime_smoke_test.sh を再利用する

と並列に書いているだけで、「どちらをどの AC に要求するか」の境界が消えています。

impact

将来の Issue author / reviewer がこれを「canonical acceptance なら full runtime_smoke_test.sh も必要」と解釈すると、

model catalog compatibility は確認可能なのに、account auth が無いため environment_blocked

という不要な merge blockerを再導入します。これは #2807 の発端に近い evidence classification failure であり、個人開発で避けたい harness friction でもあります。

upstream の current changelogでは claude-code-proxy v0.1.42 で GPT-6 Sol/Luna が追加されており、v0.1.36 は GPT-6 Astra 世代でした。したがって source incident の「v0.1.36 の catalog が Sol/Luna を持たない」という整理は upstream と整合しています。:chatgpt-content-reference{index="0"} また upstream は Codex provider を ChatGPT account と model registration の組み合わせとして扱っており、binary/catalog capability と account-backed request acceptance を別レイヤーとして検証する設計は妥当です。:chatgpt-content-reference{index="1"}

最小修正

両 reference に2文程度追加するのがよいです。

  • catalog / proxy-selection AC: fake override なしの direct launch.sh --check-only を canonical acceptance の最低限とする。
  • authenticated request / transport AC: その意味論が必要な場合だけ runtime_smoke_test.sh を追加する。
  • full smoke の auth SKIP は authenticated-runtime AC の PASS にはならないが、direct canonical catalog check が成立する catalog-only AC を不必要に block しない。

新しい harness は不要です。


P2 — AC5 / AC8 の regression test が、PR body の主張ほど強いことを証明していない

test_existing_fixture_tests_unchanged_and_ci_not_network_dependent() は test_proxy_model_compatibility.py が「unchanged」であることを比較していません。現在のファイルに特定文字列が残っていることを確認しているだけです。

同様に test_evidence_policy_requires_current_head_proxy_identity_binding_and_no_new_harness() の「no new harness」側も、

  • 既存 asset が存在する
  • policy 文に reuse wording がある
  • 数個の forbidden marker string が文書内に無い

ことしか確認しておらず、repository に新 harness が追加されていないことは証明していません。

impact

今の PR が安全なのはこれら pytest のためではなく、Allowed Paths と actual changed-files が5ファイルに限定されているためです。テスト名・PR body が「regression test が unchanged/no-new-harness を保証した」と主張すると、また evidence の過大解釈になります。

最小修正

新しい差分 scanner は作らない方がよいです。

  • tests は「instruction wiring / existing asset reference を保持する」とだけ表現する。
  • 「fixture file unchanged」「new harness を追加していない」は current PR の Allowed Paths / diff evidence に委ねる。
  • PR body の AC5/AC8 達成説明も同じ責務分離に直す。

これが最も軽量です。

問題なかった点

実装の中心方針は適切です。

pr-review-judge/SKILL.md は references/evidence-policy.md を明示的にロードする契約なので、今回の reference 変更は dead documentation ではありません。body-authoring.md も create/edit/review Issue 系から参照されています。

また新規3 test file は .github/ci/python-test-plan.json の既存 directory target に入っており、current HEAD の python-test-core は 16,688 passed、serial lane も 150 passed で終了しています。したがって「新規 tests がローカルでしか走らない」という問題はありません。

pr-review-judge/SKILL.md Procedure/output contract、launcher/proxy implementation、CI network gate を変更していない点も #2807 のスコープと一致しています。新しい generic runtime harness を増やしていないのも妥当です。

修正優先順

まず P0 の malformed durable marker を修正してください。次に P1 2件を reference wording の小変更だけで閉じるのが最小です。P2 は test/framework を増やすのではなく、テスト名・説明・PR body の evidence claim を実際に証明している範囲へ狭めるのが適切です。

この4点以外には、現行 diff と Issue #2807 AC1〜AC8 の間で merge-blocking な実装欠陥は見つけていません。

@squne121

Copy link
Copy Markdown
Owner Author

live stateを確認しました。PR #2809 は open / draft / mergeable、HEAD は d96dfc22c53a3c0706862d2ce7fcf3458dcefa2d、このHEADの主要CIは成功しています。対象コメントはOWNERによる REQUEST_CHANGES で、現HEADにはまだ反映されていません。

推奨は、通常の impl-review-loop に直行する前に P0 の malformed IMPLEMENTATION_SCOPE_COVERAGE_V1 を canonical producer + update_pr.py でreconcile することです。これを放置すると pre-Step-1 の landing disposition 自体が reconciliation_required になります。その後、P1×2/P2を既存PR/branchで修正し、fresh verification → pr-reviewer → fix loopを回します。再発経路である open_pr.py の「marker文字列が存在すれば内容未検証でidempotent扱い」は、現在OPEN Issueに直接の重複を確認できなかったため、別Issue化が妥当です。#2810 はruntime migration ownershipであり別件です。

以下を、既に auto mode で起動している対話的 Claude Code にそのまま貼り付けてください。

repo = squne121/loop-protocol

対象:

この interactive Claude Code session は既に auto mode で起動済みです。session を作り直さず継続してください。

現在のユーザー指示は、上記 OWNER REQUEST_CHANGES を修正対象の fix-delta として扱い、PR #2809 を impl-review-loop でマージ直前まで自律的に進めることです。対象コメントの存在だけを理由に停止しないでください。このrunでは、その指摘を修正して再検証・再レビューすることが明示的に承認されています。

実merge、auto-merge、force push、履歴破壊、secret/credential の取得・変更・公開、permission bypass は行わないでください。

0. 最初に fresh state を再取得する

過去の値を信用せず、最初に live state を取得してください。

最低限確認:

2026-09-28 05:56 JST 時点の外部観測では PR HEAD は
d96dfc22c53a3c0706862d2ce7fcf3458dcefa2d
だったが、必ず live 値で再bindしてください。

既存 PR #2809 / branch / worktree を再利用し、duplicate PR や別実装branchを作らないでください。

1. P0 durable marker を最初に reconcile する

通常の Step 1 dispatch より先に、対象コメントの P0 を処理してください。

理由:
current PR body の IMPLEMENTATION_SCOPE_COVERAGE_V1 は canonical consumer
.claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py
上で malformed であり、このままでは Evidence-Based Landing Disposition が
reconciliation_required になり得ます。

現在指摘されている異常:

  • normalized_scope_manifest_sha256: "n/a"
  • marker の pr_head_sha が実際の publication-time PR commit と一致しない

ただしコメント記載値を無条件で信用せず、PR commit history / publication state を live に確認してください。
OWNER comment が示す expected publication commit は
c1bd41d4b581cc5e92f4d44dc45da7cb2f04eaa0
ですが、実データで検証してから使用してください。

P0 の修復方法

marker の digest や manifest を手書き生成しないこと。

canonical producer:

  • build_scope_coverage_marker()
  • render_scope_coverage_marker()

を .claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py から使用し、
live Issue #2807 body と、live evidence から確定した publication-time PR head を入力して再生成してください。

PR body の mutation は raw gh pr edit --body-file を直接使わず、
.claude/skills/open-pr/scripts/update_pr.py
wrapper を使用してください。

body-only repair は可能なら implementation-worker の
IMPLEMENTATION_WORKER_REQUEST_V2
mode: update_pr_body_hygiene
として委譲してください。SubAgent message に以下を materialize してください:

修復後は GitHub から PR body を fresh readback し、
canonical implementation_landed_evidence.py consumer で
scope_coverage.status != invalid
かつ marker 起因で reconciliation_required にならないことを確認してください。

「update_pr.py の通常validatorが通った」だけを成功条件にしないでください。
今回の defect はまさにそのvalidatorが marker malformed を見ていないことです。

P0 は PR body-only mutation なので、head SHA が変わらない限り、この操作単独を理由にコード verification を再実行する必要はありません。ただし後続のコード修正後は fresh Step 2 を必ず実行してください。

2. landing disposition を fresh に再評価する

P0 reconciliation 後に canonical pre-Step-1 landing disposition を再実行してください。

期待 route は existing PR #2809 の existing_pr_resume です。

以下は禁止:

  • malformed marker を無視して ordinary dispatch
  • duplicate PR 作成
  • new worktree を不要に作る
  • reconciliation_required を prose 判断で上書きする

canonical consumer の結果をそのまま使用してください。

3. target OWNER comment を fix_delta として実装修正する

対象コメントの残る3カテゴリをすべて処理してください。

P1-A: AC3 required evidence facts と既存 producer schema の mapping 明示

.claude/skills/create-issue/references/body-authoring.md
および
.claude/skills/pr-review-judge/references/evidence-policy.md
の current wording を確認し、必要最小限の mapping を追加してください。

意図は新 schema の追加ではありません。

最低限、既存 CLAUDE_GPT_SMOKE_RESULT_V1 との意味対応を明文化すること:

  • run_head_sha → sut.git_head
  • git_dirty → sut.git_dirty
  • launcher hash → sut.launch_sh_sha256
  • selected proxy absolute path → proxy.absolute_path
  • selected proxy version → proxy.version
  • selected proxy hash → proxy.sha256
  • command identity → authoritative VC evidence に束縛された literal command とその command SHA256

run_head_sha という新しい runtime result field を追加しないでください。
producer/consumer schema変更、新wrapper、新registryは不要です。

mapping wording と regression test を、Issue #2807 Allowed Paths の範囲内で修正してください。

P1-B: catalog/proxy-selection acceptance と authenticated full smoke を明確に分離する

reference wording を最小変更して以下を固定してください。

  • catalog / proxy-selection AC:
    fake CLAUDE_GPT_PROXY_BIN override なしの current-head production
    scripts/claude-gpt/launch.sh --check-only
    を canonical acceptance の最低限とする。
  • authenticated request / transport AC:
    その意味論自体をACが要求するときだけ
    scripts/claude-gpt/runtime_smoke_test.sh
    を追加要求する。
  • full smoke が auth 不足で SKIP / exit 77 になっても、
    direct canonical launch.sh --check-only が満たした
    catalog-only AC を不要に failure 扱いしない。
  • 逆に authenticated request/transport AC 自体は full smoke SKIP では PASS にしない。

新しい harness、daemon、network-required CI gate は追加しないでください。

P2: regression test / PR body の evidence overclaim を縮小する

OWNER comment の指摘どおり、現在の tests は:

  • fixture file が historical baseline から「unchanged」であること
  • repository 全体に「new harness が追加されていない」こと

を直接証明していません。

この責務を誇張しないよう修正してください。

方針:

  • static pytest が保証するのは instruction wiring / existing asset reference の保持まで
  • 「fixture file unchanged」は current PR changed-files / diff evidence の責務
  • 「new harness を追加していない」は Allowed Paths + actual changed-files の責務
  • PR body の AC5 / AC8 / Safety Claim / verification説明も実証範囲に合わせて縮小する

新しい diff scanner や generic validator は追加しないでください。

Issue #2807 の Verification Commands が既存 pytest node-id を literal に参照していることに注意してください。
function名のrenameが Issue contract のVC node-idを壊す場合は、まず contract stability を優先し、
docstring / assertion scope / surrounding explanation / PR body を正確化してください。

名称自体が fresh pr-reviewer によって blocker と判定された場合に限り、
current repository-native contract update procedure に従って Issue VC を正規更新し、
body SHA / VC binding を fresh に取り直してください。
安易に stale VC を作らないでください。

4. 実装修正は implementation-worker に委譲する

PR branch 上のファイル修正は root thread が直接編集せず、
current implementation-worker の PR repair route を使ってください。

target OWNER comment を review artifact / fix_delta source とし、
可能なら IMPLEMENTATION_WORKER_REQUEST_V2 の
apply_pr_review_fix_delta
を使用してください。

materialize する値:

Allowed Paths 外へ実装を広げないでください。

P0 follow-up defect は本PRのコード変更に混ぜません。

5. SubAgent completion protocol を厳守する

各 SubAgent dispatch について必ず:

  1. canonical task_name を保存
  2. wait_agent は mailbox activity 待ちにのみ使う
  3. timeout / intermediate update / steer response を完了扱いしない
  4. child の final result を取得
  5. list_agents で同じ canonical task が terminal completed であることを確認
  6. final result + terminal completed の両方が揃ってから次工程へ進む

errored / interrupted / shutdown / not_found は成功扱いしない。

SubAgent dispatchしただけで「作業完了」にしないでください。

6. Step 2 verification を fresh head で実行する

コード/doc/test fix が push されたら、current-head で
impl-review-loop Step 2 を canonical test-runner SubAgent に委譲してください。

Issue #2807 の literal Verification Commands を live body から再取得し、すべて実行してください。

加えて repository contract が要求する standard checks / constitution checks も current Skill に従って実施してください。

重要:

  • old HEAD の CI / local evidence を使い回さない
  • SKIP / fallback / exit 77 を required PASS にしない
  • test-runner の final result と terminal completed を確認する
  • VC_ADJUDICATION_RESULT_V1 を current head / current Issue body / current command hashes にbindする
  • head/body/commandが変わった場合は stale evidence として再実行する

7. Step 4 PR review を fresh head で実行する

Step 2 が non-blocking になった場合のみ current Skill の Step 4 を実行してください。

required CI を current head に対して待機し、
pr-reviewer SubAgent に actual PR diff / live Issue AC / Allowed Paths / current verification evidence を渡してください。

pr-reviewer は .claude/skills/pr-review-judge/SKILL.md の current procedure を使用すること。

期待出力:

  • verdict
  • reviewed_head_sha
  • blockers
  • warnings

reviewer の self-reported mergeability や merge_ready は authority にしないこと。
live mergeability は root control-plane が GitHub から直接取得してください。

REQUEST_CHANGES が返った場合は、修正可能な blocker を fix_delta として implementation-worker に戻し、
fix → fresh Step 2 → fresh Step 4
を継続してください。

通常の test failure、CI failure、stale head、修正可能な review finding は人間停止理由にしないでください。

current impl-review-loop の canonical iteration上限までは承認不要で自動修復してください。

8. malformed marker 再発防止 Issue を起票する

target OWNER comment の P0 で露出した以下は #2807 Allowed Paths 外の pre-existing recurrence path です。

.claude/skills/open-pr/scripts/open_pr.py::append_implementation_scope_coverage()
が body に文字列
IMPLEMENTATION_SCOPE_COVERAGE_V1:
が存在するだけで内容を検証せずそのまま返す一方、
validate_pr_body.py も同 marker の canonical validation をしていません。

このrun開始前の検索では、この malformed-marker validation gap を直接所有する OPEN Issue は見つかっていませんでした。
ただし必ず fresh に dedupe 検索してください。

#2810 は runtime migration ownership のIssueであり、このmarker defectとは別問題です。

重複がなければ current .claude/skills/create-issue/SKILL.md の正規手順で follow-up Issue を起票してください。
raw ad-hoc issue作成ではなく repository-native create-issue workflowを使用してください。

この follow-up Issue 起票は今回ユーザーが明示的に要求しているため、
Issue #2807 の「新規Issueが必要なら停止」という Stop Condition を、
追加の人間承認要求として解釈しないでください。
ただし #2807 / PR #2809 の実装scopeへ混入させないこと。

推奨する issue goal:

IMPLEMENTATION_SCOPE_COVERAGE_V1 の既存markerを単なるsubstring存在だけでidempotent扱いせず、canonical consumer/producer semantics に基づいて検証し、malformed durable marker が open-pr/update-pr lifecycle を通過しないようにする。

最小設計:

  • valid historical marker は retry で保持する
  • malformed marker は無条件idempotent扱いしない
  • canonical parser/consumerを再利用し、独自parserを増やさない
  • validate_pr_body.py / open-pr側の責務境界をcurrent repositoryから調査して最小修正を決める
  • focused regression test
  • new schema / daemon / generic approval layer / heavyweight validator は追加しない

issue title / Allowed Paths / AC / VC は fresh repository調査後に確定してください。

9. 最終状態

以下すべてを満たすまで進めてください。

current Skill が draft_pr_ready を terminal state とする場合はその状態で終了してください。

merge / auto-merge はしないでください。
人間が最終merge判断できる直前で停止してください。

停止してよい条件

通常の review finding / test failure / CI failure / stale evidence / stale head は停止条件ではありません。

停止/escalationは原則として以下のみ:

  • destructive operation が必要
  • secret / credential の取得・変更・公開が必要
  • sudo / privilege escalation / permission bypass が必要
  • force push 等の履歴破壊が必要
  • actual Git conflict が repository-native recovery で解消不能
  • Allowed Paths 外の変更が不可避で current user instructionでも正当化できない
  • canonical loop の iteration上限到達
  • evidence integrity を維持できない
  • current repository contract が明示する genuine human_judgment_required
  • ユーザーからの新しい明示停止

最後に日本語で以下を報告してください:

  • initial/final PR head SHA
  • P0/P1/P1/P2 ごとの実施内容
  • changed files
  • verification結果
  • CI結果
  • final pr-reviewer verdict
  • live mergeability
  • follow-up Issue URL(作成した場合)または dedupe先
  • remaining blocker
  • merge未実行であること

ポイントは P0を先にreconcileしてからループへ戻すことです。これを入れないと、正規の implementation_landed_evidence.py がPRを malformed evidence と判定して、修正workerへ到達する前に詰まる可能性があります。

evidence-policy.md と body-authoring.md に必須 evidence フィールドと
CLAUDE_GPT_SMOKE_RESULT_V1 producer schema の対応表を追記し、
catalog/proxy-selection AC と authenticated request/transport AC の
evidence 分離を明文化する。また回帰テストの docstring を静的検証の
実証範囲に合わせて縮小する。

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@squne121

Copy link
Copy Markdown
Owner Author

pr-review-judge 判定 (impl-review-loop, 2026-09-28)

OWNER の fix-delta comment(P0/P1-A/P1-B/P2)を反映した fresh head 457bc1d4ea840136a459772626c5bda3809ab834 に対する independent review 結果です。

Mergeability

  • mergeable: MERGEABLE
  • merge_state_status: CLEAN

Evidence Check

  • Allowed Paths Gate: ok(changed files 5件は live Issue 実装: Claude-GPT proxy互換性変更の完了判定で canonical launcher smoke を fixture で代替しない #2807 本文の Allowed Paths 内)
  • Required CI: 全6件 SUCCESS(python-test / build / typecheck / test / lint / validate-generated-artifact)
  • Issue 実装: Claude-GPT proxy互換性変更の完了判定で canonical launcher smoke を fixture で代替しない #2807 の AC1〜AC8 に対応する Verification Commands を node-id 単位で独立に再実行し、全て PASS
  • OWNER 指摘4点の修正確認:
    • P0(PR body marker malformed): implementation_landed_evidence.py canonical producer で再生成し、consumer 上 status: covered_exactly を readback で確認済み
    • P1-A(AC3 evidence field mapping 欠如): evidence-policy.md / body-authoring.md に CLAUDE_GPT_SMOKE_RESULT_V1 の実 schema field への mapping を追加(新規 schema field なし)
    • P1-B(catalog/authenticated smoke 分離): catalog/proxy-selection AC と authenticated request/transport AC の evidence 要件を明示的に分離
    • P2(regression test の evidence overclaim): 該当テストの docstring を実証範囲(マーカー文字列存在確認のみ)に縮小し、PR body の AC5/AC8 記述も同様に縮小

Blockers

なし

Non-blockers(Warnings)

  • PR body 内の「current-head SHA: c1bd41d47bb8ac7cbde5e60c5c9b0aad81c68a5d」という記載行が、marker の pr_head_sha(publication-time head, 正しくは c1bd41d4b581cc5e92f4d44dc45da7cb2f04eaa0)とも live head(457bc1d4...)とも異なる第三の値のまま残っている。advisory な self-report であり merge-blocking にはしないが、次回 body 更新時に修正することを推奨する。
verdict: APPROVE
reviewed_head_sha: "457bc1d4ea840136a459772626c5bda3809ab834"
blockers: []
warnings: []

@squne121
squne121 marked this pull request as ready for review September 27, 2026 21:33
@squne121
squne121 merged commit 077919b into main Sep 27, 2026
58 of 68 checks passed
@squne121
squne121 deleted the worktree-issue-2807-canonical-launcher-smoke branch September 27, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant