Skip to content

実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "claude-gpt live causal-evidence test の可用性判定 helper を、#2925 / PR #2932 後の CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせ、恒久 SKIP による coverage の silent 喪失を解消する"
change_kind: code
dedupe_key: "claude-gpt:live-causal-evidence-availability-launch-result-v1:v1"

Parent Issue

なし

Parent Goal Ref

Current Validated Scope

次は current main dfc2972 で rg / Read により確認済みの事実である(実装着手時に再確認する)。

Remaining Parent Gaps

  • なし。claude-gpt live causal-evidence test 自体(AC1 の live 実行)を実環境で PASS させる運用は本 Issue の範囲外で、可用な環境で既存 test が SKIP されず実行されることのみを担保する。

Background

発見元は #2938 の refinement で、#2925 / PR #2932 の取りこぼしである。#2938 #2943 #2843 #2949 #2939 は別 surface を所有し、本 Issue はそれらを再実装しない(参照のみ、dependency は作らない)。#2949 は auto_mode_canary の --auto-mode-check readback で別物。

scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py は #2231 の skip_conditions に基づく live-environment preflight helper を持つ。#2925 は launcher が proxy server の所有者の責務である ChatGPT 認証や proxy binary を判定しない設計に縮退したため、旧 shape 前提の本 helper だけが取り残された。local_proxy_binary_auxiliary は補助情報であり authority ではない。

upstream claude-code-proxy の公式仕様でも、client 側の Minimal client contract(ANTHROPIC_BASE_URL / dummy ANTHROPIC_AUTH_TOKEN / model 設定)は server 側設定と分離され、/healthz は provider credential や upstream availability を検証しない(liveness のみ)。/v1/models は model discovery であり ChatGPT inference の可用性証明ではない。したがって本 helper は connected-server readiness / model catalog の確認までを担い、chatgpt_auth probe や local proxy binary を authority に戻さない。end-to-end の実 capability 不足は既存 _run_smoke() が runner の EXIT_SKIP を pytest.skip() に変換する downstream 経路に残す。

Outcome

scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py の _claude_gpt_available() が、current CLAUDE_GPT_LAUNCH_RESULT_V1 に exact に bind した次の条件だけを可用判定の根拠とするよう更新されている。

  • preflight の exit code が 0
  • stdout の top-level JSON value が object で schema == "CLAUDE_GPT_LAUNCH_RESULT_V1"
  • status == "ok" かつ mode == "check_only"
  • connected_server が object で connected_server.reachable is True かつ connected_server.model_catalog_ok is True

さらに、新規 test file scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py に、fixture receipt / poison fixture に対する focused pytest と、実 scripts/claude-gpt/preflight.sh を local loopback fake server に対して実行する正常系 / 異常系の runtime test が追加されている。完了条件は下記 AC の VC がすべて満たされることである。

Runtime Verification Applicability

docs/dev/extension-surface-runtime-policy.yaml の evaluator(evaluate_allowed_paths)を本 Issue の Allowed Paths で fresh 実行した結果、scripts/agent-ops/** が subagent-lifecycle-start-stop-delegation-fallback rule の hard selector に一致し、evaluator の最終判定が immediate となった。そのため immediate として記述する。docs/dev/runtime-verification-policy.md は immediate に対し正常系 1 件以上・異常系 1 件以上を要求するため、AC5 を正常系、AC6 を異常系の runtime AC とする。

decision: immediate
reason: "Allowed Paths の scripts/agent-ops/** が subagent-lifecycle rule の hard selector に一致し evaluator の final_decision が immediate。本 Issue が変更するのは test helper の可用性判定であり SubAgent の start/stop / delegation は変更しない。runtime-verification-policy の immediate 要件(正常系 1 件以上・異常系 1 件以上)を、real preflight.sh を local loopback fake server に対して実行する AC5(正常系)と AC6(異常系)で満たす。"
applicable_acs: [AC5, AC6]
runtime_assertion_bindings:
  - profile: subagent-lifecycle-causal-evidence-smoke
    assertion: subagent_start_stop_causal_evidence_correlated
    disposition: not_applicable
    reason: "SubAgent の start/stop や delegation 挙動は変更しない。変更するのは live test の環境可用性判定 helper のみである"
execution_environment: "Current developer machine。sh と scripts/claude-gpt/preflight.sh が実行でき、127.0.0.1 の loopback socket を bind できること。正常系は scripts/claude-gpt/tests/_launcher_harness.py の FakeServer(compatible な /v1/models catalog を返す local loopback server)を ANTHROPIC_BASE_URL に向けて real preflight.sh を実行する。実 proxy server・外部 ChatGPT inference・実認証は要求しない。"
skip_conditions: "sh が存在しない、または loopback socket を bind できず local fake server を起動できない場合のみ SKIP。SKIP は PASS ではなく、Stop Conditions の runtime SKIP escalation に従う。helper が OSError を (False, reason) に変換した結果を AC5 / AC6 の PASS 根拠にしない。"
fallback_policy: "preflight.sh の receipt を解釈できない場合(非 JSON、top-level が object でない、schema 不一致、connected_server が object でない等)は例外にせず False と理由を返す(可用扱いにしない)。旧 shape を可用扱いにする fallback は置かない。"
artifact_requirements: "tested HEAD、正常系・異常系それぞれの実 preflight.sh の exit code と receipt の status、helper の返り値(bool と reason)。secret / token は記録しない。"

In Scope

  • _claude_gpt_available() から、receipt を解釈する pure な判定部を切り出し(例: preflight の exit code と stdout 文字列を受け取って (bool, reason) を返す関数)、subprocess 実行部と分離する。subprocess 実行部は、test が env(ANTHROPIC_BASE_URL 等)を注入して real preflight.sh を実行できるようにする。
  • 判定を exit code 0 / top-level JSON object / schema == "CLAUDE_GPT_LAUNCH_RESULT_V1" / status == "ok" / mode == "check_only" / connected_server が object / connected_server.reachable is True / connected_server.model_catalog_ok is True に置き換える。失敗時は status / exit code / classification など public-safe な理由を返し、例外を送出しない。既存 schema に fail-closed で bind するだけで、新 schema は追加しない。
  • 旧 shape の判定(payload.get("exit_code") / payload.get("binary_available") / proxy.get("absolute_path") / chatgpt_auth.get("available"))を 4 つとも撤去し、supplemental fallback としても残さない。
  • 新規 test file scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py に、fixture receipt / poison fixture に対する focused pytest を追加する(既存 file の helper を importlib.util.spec_from_file_location で一意名を付けて読み込んで検証する)(可用 receipt、status: failed と exit 7、旧 shape、下記 poison fixture)。
  • real preflight.sh を local loopback fake server に対して実行する runtime test を追加する。正常系: compatible catalog の FakeServer → preflight exit 0 → CLAUDE_GPT_LAUNCH_RESULT_V1 success receipt → helper True。異常系: closed port または incomplete catalog → preflight exit 7 / status: failed → helper が理由付き False。scripts/claude-gpt/tests/_launcher_harness.py は read-only で再利用し(bare import ではなく importlib.util.spec_from_file_location で一意名を付けて読み込む)、新しい恒久 harness は作らない。

poison fixture(判定関数は例外ではなく理由付き False を返す): wrong schema、missing schema、top-level []、top-level null、top-level scalar / string、connected_server が scalar / non-object、malformed / non-JSON、reachable が false、model_catalog_ok が false、wrong mode、status: ok だが exit code が 0 以外。

Out of Scope

  • ChatGPT 認証・proxy binary の有無の判定(local_proxy_binary_auxiliary は非 authority)。
  • 新 harness / 新 schema / 新 daemon / live ChatGPT 実行 / 実 proxy への依存の追加。
  • scripts/claude-gpt/** の変更、scripts/agent-ops/** のうち Allowed Paths 2 件以外の変更(_launcher_harness.py の変更を含む)、docs の変更。
  • 他 file の _claude_gpt_available 類似 helper の変更(見つかった場合は follow-up Issue)。

Acceptance Criteria

  • AC1: schema: CLAUDE_GPT_LAUNCH_RESULT_V1 / status: ok / mode: check_only / connected_server.reachable: true / connected_server.model_catalog_ok: true の receipt(exit 0)に対し、判定関数が True を返す。
  • AC2: status: failed の receipt(exit 7)に対し、判定関数が False と status / exit code を含む理由を返す。
  • AC3: 旧 shape の payload(exit_code: 0 / binary_available: true / proxy.absolute_path / chatgpt_auth.available: true のみで schema / status を持たない)に対し、判定関数が False を返す。
  • AC4: 次の各入力に対し、判定関数が例外を送出せず False と理由を返す: wrong schema、missing schema、top-level [] / null / scalar / string、connected_server が non-object、malformed / non-JSON、reachable false、model_catalog_ok false、wrong mode、status: ok かつ exit code 0 以外。
  • AC5: 正常系: real scripts/claude-gpt/preflight.sh を compatible な /v1/models catalog を返す local loopback FakeServer に ANTHROPIC_BASE_URL を向けて実行すると、preflight が exit 0 かつ CLAUDE_GPT_LAUNCH_RESULT_V1 の success receipt(status: ok / mode: check_only)を返し、helper が True を返す。test は preflight の exit 0 と receipt を helper の返り値とは独立に assert する。
  • AC6: 異常系: real preflight.sh を closed port、および incomplete model catalog の FakeServer に向けて実行すると、preflight が exit 7 かつ status: failed の receipt を返し、helper が preflight の status / exit code を含む理由付き False を返す。helper が preflight の起動失敗(OSError / timeout)を False に変換しただけの結果は AC6 の成立に数えない。
  • AC7: helper の本体から旧 shape の accessor 4 つ(payload.get("exit_code") / payload.get("binary_available") / proxy.get("absolute_path") / chatgpt_auth.get("available"))がすべて除去されている。
  • AC8: 既存 test file の既存 test が引き続き collect できる。lint(ruff check)は VC preflight allowlist 外のため VC には含めず、CI の ruff_check lane で検証する。

Verification Commands

# AC1
$ uv run --locked pytest scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py::test_availability_receipt_ok_returns_true
# AC2
$ uv run --locked pytest scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py::test_availability_failed_exit7_returns_false_with_reason
# AC3
$ uv run --locked pytest scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py::test_availability_legacy_shape_returns_false
# AC4
$ uv run --locked pytest scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py::test_availability_invalid_receipt_shape_returns_false
# AC5
$ uv run --locked pytest scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py::test_availability_real_preflight_loopback_success_returns_true
# AC6
$ uv run --locked pytest scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py::test_availability_real_preflight_failure_returns_false
# AC7
$ rg --files-without-match --fixed-strings -e 'payload.get("exit_code")' scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py
# AC7
$ rg --files-without-match --fixed-strings -e 'payload.get("binary_available")' scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py
# AC7
$ rg --files-without-match --fixed-strings -e 'proxy.get("absolute_path")' scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py
# AC7
$ rg --files-without-match --fixed-strings -e 'chatgpt_auth.get("available")' scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py
# AC8
$ uv run --locked pytest --collect-only -q scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py

未作成の test 名を参照する VC は baseline で exit 4(expected_fail)、実装後に exit 0 となる。AC5 / AC6 の runtime VC は SKIP(exit 5 相当を含む)を PASS として扱わない。negative assertion は rg --files-without-match --fixed-strings(1 command = 1 file)で書き、literal が残れば exit 1、除去済みなら exit 0 とする。

Allowed Paths

  • scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py
  • scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合(scripts/claude-gpt/tests/_launcher_harness.py の変更が必要な場合を含む)
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  • current main の preflight.sh の receipt が上記 Current Validated Scope の shape から変わっていた場合
  • scripts/claude-gpt/** の変更が必要になった場合
  • AC5 / AC6 の runtime VC が SKIP した場合(sh 不在や loopback bind 不能を含む)。SKIP は PASS ではなく、runtime-verification-policy の SKIP 規約に従い stop_condition として human escalation する
  • compatible catalog の local fake server に対して real preflight.sh が exit 0 / success receipt を返さない場合(launcher 側の変更は本 Issue の範囲外のため stop する)

Required Skills

なし

Required Design References

  • docs/dev/extension-surface-runtime-policy.yaml
  • docs/dev/runtime-verification-policy.md
  • scripts/claude-gpt/preflight.sh
  • scripts/claude-gpt/tests/_launcher_harness.py

Delivery Rule

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    on Oct 5, 2026
  2. squne121 commented on Oct 5, 2026

    @squne121
    OwnerAuthor

    判定

    REQUEST_CHANGES 相当です。 #2950 の問題設定とスコープ分離は妥当ですが、現状の contract には P1 1件、P2 2件あります。実装そのものは target test file 1件で完結でき、launcher や新しい恒久 harness を増やす必要はありません。

    Findings

    優先度 | 問題 | Impact | 最小修正 -- | -- | -- | -- P1 | AC5 が「実 preflight.sh の正常系」を必須化していない | proxy 不在の exit 7 → helper False だけでも AC5 が PASS でき、immediate runtime verification の正常系がゼロになり得る | real preflight.sh + local loopback fake server で exit 0 / current receipt → True を必須化。併せて closed port / incomplete catalog → False P2 | parser contract が schema と JSON object shape を検証対象にしていない | wrong schema を True 扱い、または [] / null / scalar connected_server で例外化できる | top-level dict、schema == CLAUDE_GPT_LAUNCH_RESULT_V1、connected_server dict を必須化し poison fixture を追加 P2 | In Scope では旧 exit_code accessor 撤去を要求するのに AC6/VC が検査していない | stale payload.get("exit_code") を残しても全 VC を通せる | AC6 と negative VC に payload.get("exit_code") の撤去確認を追加

    P1 — AC5 は current policy 上、runtime 正常系を証明できない

    #2950 は scripts/agent-ops/** の hard selector により Runtime Verification Applicability: immediate としています。この判定自体は current extension-surface-runtime-policy.yaml と整合しています。

    しかし current runtime-verification-policy.md は immediate に対して 正常系 ≥1 と異常系 ≥1 を要求しています。一方 #2950 の AC5 は、

    実 preflight.sh の出力と helper が整合する

    だけで、さらに execution_environment では proxy server が起動していなくてもよい としています。

    したがって実装が例えば、

    • preflight.sh → exit 7 / status: failed
    • helper → (False, reason)
    • test → 「整合しているので PASS」

    となっても AC5 を満たせます。これは runtime の異常系しか実行していません。

    さらに skip_conditions では sh / preflight.sh 実行不能を SKIP としていますが、Issue の Stop Conditions に current policy が要求する runtime VC SKIP → escalation がありません。実装次第では _claude_gpt_available() が OSError を (False, reason) に変換した結果、それすら「整合した False」として AC5 が通る余地があります。

    最小修正は外部 ChatGPT や live proxy を要求することではありません。既存 scripts/claude-gpt/tests/_launcher_harness.py の local FakeServer 相当を再利用し、target file 内から real preflight.sh を実行すれば十分です。

    AC5 を少なくとも「compatible local model catalog → real preflight exit 0 → current receipt → helper True」と「closed port または incomplete catalog → exit 7 → helper False」の2経路にしてください。sh 自体が無い等の場合だけ SKIP にし、その SKIP を Stop Condition に追加するのが repository-native です。

    P2 — CLAUDE_GPT_LAUNCH_RESULT_V1 を名乗ること自体を確認していない

    current main の success receipt は明確に、

    schema: CLAUDE_GPT_LAUNCH_RESULT_V1
    status: ok
    mode: check_only
    connected_server.reachable: true
    connected_server.model_catalog_ok: true

    です。ところが #2950 の Outcome / AC1–AC4 は schema を判定条件に含めていません。

    そのため例えば別 schema でも

    status=ok, mode=check_only, reachable=true, model_catalog_ok=true

    なら True にできてしまいます。「current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる」という Issue goal と一致しません。

    また AC4 は「非 JSON」は扱いますが、JSON として valid だが shape が不正なケースがありません。典型的な .get() 実装では []、null、"foo"、あるいは "connected_server": "foo" で例外になります。これは fallback_policy の「receipt を解釈できなければ False と理由」に反します。

    既存 schema を増やす話ではなく、既存 schema に fail-closed で bind するだけです。wrong/missing schema、top-level non-object、connected_server non-object を AC4 fixture に加えるのが適切です。

    P2 — bug の原因だった旧 exit_code dependency が VC の盲点

    Current Validated Scope / In Scope は旧 shape として

    exit_code / binary_available / proxy.absolute_path / chatgpt_auth.available

    を明示し、それらによる判定を撤去するとしています。

    ところが AC6 と Verification Commands が negative-check するのは後ろ3つだけで、payload.get("exit_code") が抜けています。

    例えば新条件を追加しつつ、

    if payload.get("exit_code") not in (None, 0):
        return False, ...

    のような stale dependency を残しても、AC1–AC5と現在のAC6 VCをすべて通せます。今回の Issue はまさに producer/consumer shape divergence が原因なので、ここは固定した方がよいです。

    確認できた live state

    レビュー終了時点の main は dfc297248e08e8e30ef30c5c718b9ae80bb57db7 です。#2950 が Current Validated Scope に記載した 9a0f24a… より1 commit進んでおり、PR #2945 / Issue #2939 の loopback/direct-routing 修正が merge 済みです。

    ただしこれは #2950 の Stop Condition を発火させる drift ではありません。current preflight.sh は引き続き launch.sh --check-only を exec し、success/failure の CLAUDE_GPT_LAUNCH_RESULT_V1 shape は維持されています。PR #2945 自身も schema change なしとしています。したがって Issue の根本仮説は現在も有効です。

    また #2950 は現在 open、コメント0、#2950 を参照する implementation PR はまだありません。dedupe 検索でも _claude_gpt_available / proxy.absolute_path 周辺の ownership は #2938 と #2950 のみで、#2950 の独立 Issue 化は妥当です。

    upstream 調査

    外部仕様側から見ても #2950 の方向性は正しいです。current claude-code-proxy の公式 Minimal client contract は ANTHROPIC_BASE_URL、dummy ANTHROPIC_AUTH_TOKEN=unused、main/small model 等を Claude Code client 側に設定し、CCP_* 等の server configuration と分離しています。したがって旧 helper が chatgpt_auth.available や local proxy binary を availability authority にしていた設計へ戻すべきではありません。 claude-code-proxy

    公式 HTTP API でも /healthz は provider credential/upstream availability を検証せず、/v1/models は Anthropic-shaped model discovery (data[].id) です。つまり current --check-only が証明するのは connected-server readiness/model catalog であって end-to-end ChatGPT inference availability ではありません。 claude-code-proxy.raine.dev

    これは #2950 の blocker ではありません。既存 _run_smoke() は runner の EXIT_SKIP を pytest.skip() に変換するため、実 runtime capability 不足の最終判定は downstream に残せます。この問題を理由に chatgpt_auth probe を helper へ再導入するのは逆方向です。

    upstream latest release は現在も v0.1.43 (2026-09-30) で、GPT-6 Sol/Luna support は v0.1.42 で導入済みです。今回の repository-side receipt consumer 修正を覆す新しい upstream change は確認できませんでした。 GitHub

    推奨 disposition

    #2950 は捨てたりスコープを広げたりせず、Issue contract を上記3点だけ修正してから issue-refinement-loop を通し、実装へ進めるのがよいです。

    特に P1 は merge 前に直した方がよく、P2 2件も同じ target file 内の数個の fixture/negative assertion で解決できます。新 schema、新 daemon、新 approval layer、新 security gate は不要です。

    ## 判定

    REQUEST_CHANGES 相当です。 #2950 の問題設定とスコープ分離は妥当ですが、現状の contract には P1 1件、P2 2件あります。実装そのものは target test file 1件で完結でき、launcher や新しい恒久 harness を増やす必要はありません。

    Findings

    優先度 問題 Impact 最小修正
    P1 AC5 が「実 preflight.sh の正常系」を必須化していない proxy 不在の exit 7 → helper False だけでも AC5 が PASS でき、immediate runtime verification の正常系がゼロになり得る real preflight.sh + local loopback fake server で exit 0 / current receipt → True を必須化。併せて closed port / incomplete catalog → False
    P2 parser contract が schema と JSON object shape を検証対象にしていない wrong schema を True 扱い、または [] / null / scalar connected_server で例外化できる top-level dict、schema == CLAUDE_GPT_LAUNCH_RESULT_V1、connected_server dict を必須化し poison fixture を追加
    P2 In Scope では旧 exit_code accessor 撤去を要求するのに AC6/VC が検査していない stale payload.get("exit_code") を残しても全 VC を通せる AC6 と negative VC に payload.get("exit_code") の撤去確認を追加

    P1 — AC5 は current policy 上、runtime 正常系を証明できない

    #2950 は scripts/agent-ops/** の hard selector により Runtime Verification Applicability: immediate としています。この判定自体は current extension-surface-runtime-policy.yaml と整合しています。

    しかし current runtime-verification-policy.md は immediate に対して 正常系 ≥1 と異常系 ≥1 を要求しています。一方 #2950 の AC5 は、

    実 preflight.sh の出力と helper が整合する

    だけで、さらに execution_environment では proxy server が起動していなくてもよい としています。

    したがって実装が例えば、

    • preflight.sh → exit 7 / status: failed
    • helper → (False, reason)
    • test → 「整合しているので PASS」

    となっても AC5 を満たせます。これは runtime の異常系しか実行していません。

    さらに skip_conditions では sh / preflight.sh 実行不能を SKIP としていますが、Issue の Stop Conditions に current policy が要求する runtime VC SKIP → escalation がありません。実装次第では _claude_gpt_available() が OSError を (False, reason) に変換した結果、それすら「整合した False」として AC5 が通る余地があります。

    最小修正は外部 ChatGPT や live proxy を要求することではありません。既存 scripts/claude-gpt/tests/_launcher_harness.py の local FakeServer 相当を再利用し、target file 内から real preflight.sh を実行すれば十分です。

    AC5 を少なくとも「compatible local model catalog → real preflight exit 0 → current receipt → helper True」と「closed port または incomplete catalog → exit 7 → helper False」の2経路にしてください。sh 自体が無い等の場合だけ SKIP にし、その SKIP を Stop Condition に追加するのが repository-native です。

    P2 — CLAUDE_GPT_LAUNCH_RESULT_V1 を名乗ること自体を確認していない

    current main の success receipt は明確に、

    schema: CLAUDE_GPT_LAUNCH_RESULT_V1
    status: ok
    mode: check_only
    connected_server.reachable: true
    connected_server.model_catalog_ok: true

    です。ところが #2950 の Outcome / AC1–AC4 は schema を判定条件に含めていません。

    そのため例えば別 schema でも

    status=ok, mode=check_only, reachable=true, model_catalog_ok=true

    なら True にできてしまいます。「current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる」という Issue goal と一致しません。

    また AC4 は「非 JSON」は扱いますが、JSON として valid だが shape が不正なケースがありません。典型的な .get() 実装では []、null、"foo"、あるいは "connected_server": "foo" で例外になります。これは fallback_policy の「receipt を解釈できなければ False と理由」に反します。

    既存 schema を増やす話ではなく、既存 schema に fail-closed で bind するだけです。wrong/missing schema、top-level non-object、connected_server non-object を AC4 fixture に加えるのが適切です。

    P2 — bug の原因だった旧 exit_code dependency が VC の盲点

    Current Validated Scope / In Scope は旧 shape として

    exit_code / binary_available / proxy.absolute_path / chatgpt_auth.available

    を明示し、それらによる判定を撤去するとしています。

    ところが AC6 と Verification Commands が negative-check するのは後ろ3つだけで、payload.get("exit_code") が抜けています。

    例えば新条件を追加しつつ、

    if payload.get("exit_code") not in (None, 0):
        return False, ...
    

    のような stale dependency を残しても、AC1–AC5と現在のAC6 VCをすべて通せます。今回の Issue はまさに producer/consumer shape divergence が原因なので、ここは固定した方がよいです。

    確認できた live state

    レビュー終了時点の main は dfc297248e08e8e30ef30c5c718b9ae80bb57db7 です。#2950 が Current Validated Scope に記載した 9a0f24a… より1 commit進んでおり、PR #2945 / Issue #2939 の loopback/direct-routing 修正が merge 済みです。

    ただしこれは #2950 の Stop Condition を発火させる drift ではありません。current preflight.sh は引き続き launch.sh --check-only を exec し、success/failure の CLAUDE_GPT_LAUNCH_RESULT_V1 shape は維持されています。PR #2945 自身も schema change なしとしています。したがって Issue の根本仮説は現在も有効です。

    また #2950 は現在 open、コメント0、#2950 を参照する implementation PR はまだありません。dedupe 検索でも _claude_gpt_available / proxy.absolute_path 周辺の ownership は #2938 と #2950 のみで、#2950 の独立 Issue 化は妥当です。

    upstream 調査

    外部仕様側から見ても #2950 の方向性は正しいです。current [claude-code-proxy](https://claude-code-proxy.raine.dev/using/configure-claude-code/) の公式 Minimal client contract は ANTHROPIC_BASE_URL、dummy ANTHROPIC_AUTH_TOKEN=unused、main/small model 等を Claude Code client 側に設定し、CCP_* 等の server configuration と分離しています。したがって旧 helper が chatgpt_auth.available や local proxy binary を availability authority にしていた設計へ戻すべきではありません。 claude-code-proxy

    公式 HTTP API でも /healthz は provider credential/upstream availability を検証せず、/v1/models は Anthropic-shaped model discovery (data[].id) です。つまり current --check-only が証明するのは connected-server readiness/model catalog であって end-to-end ChatGPT inference availability ではありません。 claude-code-proxy.raine.dev

    これは #2950 の blocker ではありません。既存 _run_smoke() は runner の EXIT_SKIP を pytest.skip() に変換するため、実 runtime capability 不足の最終判定は downstream に残せます。この問題を理由に chatgpt_auth probe を helper へ再導入するのは逆方向です。

    upstream latest release は現在も v0.1.43 (2026-09-30) で、GPT-6 Sol/Luna support は v0.1.42 で導入済みです。今回の repository-side receipt consumer 修正を覆す新しい upstream change は確認できませんでした。 [GitHub](https://github.com/raine/claude-code-proxy/releases)

    推奨 disposition

    #2950 は捨てたりスコープを広げたりせず、Issue contract を上記3点だけ修正してから issue-refinement-loop を通し、実装へ進めるのがよいです。

    特に P1 は merge 前に直した方がよく、P2 2件も同じ target file 内の数個の fixture/negative assertion で解決できます。新 schema、新 daemon、新 approval layer、新 security gate は不要です。

  3. squne121 commented on Oct 5, 2026

    @squne121
    OwnerAuthor

    確認した live state では、#2950 は open、対象 OWNER コメントは REQUEST_CHANGES 相当、現時点で #2950 を実装する PR は見つかりませんでした。main は確認時点で dfc297248e08e8e30ef30c5c718b9ae80bb57db7 ですが、実行時には必ず fresh に再取得させるのが適切です。

    推奨は、実装へ進まず #2950 の contract だけを3 findingに沿って修正 → current issue-refinement-loop を最後まで再実行 → approved または canonical stop で終了です。Allowed Paths は target test file 1件のまま維持し、新 schema・launcher 改修・恒久 harness 追加へ広げないのが妥当です。再発防止 Issue は、この実行指示自体を human authorization として workflow に入力させつつ、dedupe 後に genuine な別責務がある場合だけ起票させます。deterministic authority がなお human_judgment_required を返す場合だけ停止させます。

    そのまま既存の interactive Claude Code / auto mode session に貼れます。

    repo: squne121/loop-protocol

    対象:

    あなたは既に interactive Claude Code の auto mode session 上で動作している。この session をそのまま継続し、Claude Code を再起動したり permission mode を変更したりしないこと。

    Objective

    上記 OWNER コメントを対象に、current HEAD の .claude/skills/issue-refinement-loop/SKILL.md を正本として Issue #2950 の refinement loop を自律実行する。

    今回の目的は実装ではない。

    1. OWNER review の P1/P2 findings を 実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950 の Issue contract へ正確に反映する
    2. repository-native issue-refinement-loop を planner-first で最後まで実行する
    3. review finding があれば bounded loop 内で自動修正・再 review する
    4. canonical 判定が approved になるか、正規の termination condition に到達するまで進める
    5. approved になっても impl-review-loop、implementation worker、実装 worktree、code change、commit、push、PR 作成へは進まない
    6. 再発性のある独立問題を発見した場合は、重複を調査したうえで repository-native な方法で follow-up GitHub Issue を起票する

    Human authorization

    このユーザープロンプトは、今回の refinement に必要な通常の非破壊操作を明示的に承認している。

    追加の人間確認を求めず実行してよいもの:

    ただしこの authorization は canonical deterministic authority を無視する許可ではない。

    current repository workflowへこのユーザー指示を human authority input として正しく渡した後でも、
    decide_next_loop_action.py 等の canonical authority が最終的に
    human_judgment_required
    を返す場合は、それを捏造して approve にせず正規の human_escalation として停止すること。

    以下は承認していない:

    Step 0 — fresh state を取得する

    最初に stale な会話履歴を authority にせず、live state を再取得する。

    最低限確認する:

    過去に確認された main SHA を固定値として信用しないこと。
    実行開始時の current main を fresh に確定すること。

    既存 PR が存在する場合も、この invocation は refinement 専用なので implementation PR の変更へ勝手に移行しないこと。

    Step 1 — current Skill を読み、planner-first で実行する

    issue-refinement-loop の procedure をプロンプトから推測して再実装しない。

    current HEAD の SKILL.md と、それが参照する canonical references/scripts を読み、
    planner が返す REFINEMENT_LOOP_PLAN_V1 等の current contract に従う。

    特に:

    • investigation の要否
    • web research の要否
    • scope-signal 判定
    • anchor / human-context の正規化
    • review
    • rewrite
    • follow-up materialization
    • termination

    を main thread の独自判断で置き換えない。

    max iterations もこの prompt に固定せず、current Skill / loop policy の値を使うこと。

    OWNER review の必須反映事項

    対象 OWNER comment は REQUEST_CHANGES 相当で、最低限次の3 findingを contract に反映する必要がある。

    Finding 1 — P1: AC5 runtime verification の正常系を必須化

    現在の AC5 が
    「real preflight.sh の receipt と helper が整合する」
    だけでは、proxy 不在の

    • preflight.sh exit 7
    • status: failed
    • helper (False, reason)

    だけで PASS でき、immediate runtime verification の正常系がゼロになる。

    current runtime policy と fresh repository evidence を再確認したうえで、Issue contract を少なくとも以下へ強化すること。

    正常系:

    • real scripts/claude-gpt/preflight.sh を使う
    • local loopback fake server を使用する
    • compatible /v1/models catalog を返す
    • real preflight が exit 0
    • current CLAUDE_GPT_LAUNCH_RESULT_V1 success receipt
    • helper が True

    異常系:

    • closed port または incomplete model catalog 等
    • real preflight が failure path / exit 7
    • helper が理由付き False

    外部 ChatGPT inference や real remote proxy は要求しない。

    既存
    scripts/claude-gpt/tests/_launcher_harness.py
    の FakeServer / related utility を read/reuse できる設計を優先し、新しい恒久 harness を作らない。

    Runtime Verification Applicability、execution_environment、skip_conditions、artifact_requirements、AC/VC をこの要件と整合させること。

    runtime VC が SKIP した場合は PASS 扱いしない。
    current policy が要求するなら SKIP → escalation を Stop Conditions に明示する。

    Finding 2 — P2: parser を exact current schema / JSON object shape に fail-closed bind

    availability parser / pure decision function は success 判定時に少なくとも:

    • top-level JSON value が object/dict
    • schema == "CLAUDE_GPT_LAUNCH_RESULT_V1"
    • status == "ok"
    • mode == "check_only"
    • connected_server が object/dict
    • connected_server.reachable is True
    • connected_server.model_catalog_ok is True

    を要求する contract にする。

    以下の poison/negative fixture を contract / AC / VC へ含める:

    • wrong schema
    • missing schema
    • top-level []
    • top-level null
    • top-level scalar/string
    • connected_server が scalar/non-object
    • malformed/non-JSON
    • reachable false
    • model_catalog_ok false
    • wrong mode

    これらは exception crash ではなく、fallback policy と整合した理由付き False に倒れること。

    新 schema を追加するのではなく、既存 CLAUDE_GPT_LAUNCH_RESULT_V1 に bind するだけに留める。

    Finding 3 — P2: legacy exit_code accessor の negative VC を追加

    Issue の In Scope が撤去対象としている旧 shape:

    • payload.get("exit_code")
    • payload.get("binary_available")
    • proxy.get("absolute_path")
    • chatgpt_auth.get("available")

    について、AC と Verification Commands が 4つ全ての撤去を証明するよう修正する。

    特に現 contract で抜けている

    payload.get("exit_code")

    の negative assertion を追加すること。

    producer/consumer shape divergence の再発を防ぐ目的なので、旧 field を supplemental fallback として残さない。

    Scope constraints

    OWNER review は「target test file 1件で完結できる」としている。

    したがって原則として implementation Allowed Paths は引き続き:

    scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py

    のみとする。

    以下へスコープ拡大しない:

    • scripts/claude-gpt/** の implementation change
    • launcher implementation
    • new schema
    • new daemon
    • new permanent harness
    • auth probing
    • local proxy binary availability を authority に戻すこと
    • unrelated _claude_gpt_available helper の同時修正

    _launcher_harness.py は必要なら read-only reference / reusable test support として扱う。
    変更が本当に必要なら、勝手に Allowed Paths を広げず current scope-delta authority に通すこと。

    OWNER findings の3点を反映するだけで同じ機能領域・同じ Allowed Paths に収まるなら、単に「文面が増えた」ことを理由に人間確認へ戻さない。
    ただし canonical scope-signal guard の最終判定は尊重する。

    SubAgent execution requirements

    current Skill / planner が SubAgent を要求または許可する局面では、適切な SubAgent を実際に使うこと。

    特に planner が investigation required と判定した場合は current codebase-investigator contract に従うこと。
    review / edit / research / follow-up creation についても current Skill が指定する Agent / Skill boundary を使う。

    各 SubAgent には暗黙 context に依存させず最低限以下を明記する:

    • task
    • target Issue / target comment
    • authority
    • constraints
    • relevant repository paths
    • required evidence
    • mutation allowed / forbidden
    • expected structured output

    重要:
    SubAgent を dispatch しただけで step 完了扱いしてはいけない。

    各 dispatch 後は、その SubAgent の final result / handback / terminal completion を current Claude Code / repository contract に従って確認してから downstream step へ進むこと。

    Agent tool の開始 acknowledgement、prompt echo、途中 report だけを completion とみなさない。

    独立した read-only investigation は current workflow が許せば並列化してよい。
    依存関係のある
    investigate → review → edit → re-review
    は順序を守ること。

    nested SubAgent delegation が current contract で禁止・停止条件なら行わない。

    Review/fix loop

    OWNER finding を Issue body に反映したら、そこで終了しない。

    current issue-refinement-loop の review pipelineを fresh body に対して実行し、
    deterministic review / semantic review / scope guard 等の current canonical outputs を取得する。

    needs-fix / REQUEST_CHANGES 相当:

    • finding を具体的に解析
    • Issue contract を修正
    • fresh body で再 review
    • canonical bounded limit まで自動継続

    通常の review finding、validation failure、stale body、修正可能な contract error は人間確認の理由にしない。

    body mutation 後は必ず fresh remote readback を基準に次の review を行うこと。
    mutation 前 snapshot の review 結果を使い回さない。

    deterministic checker が authority の判断を prose で上書きしない。

    再発防止 Issue

    今回の refinement 中に、#2950 固有ではなく今後も再発しそうな別責務を具体的 evidence 付きで発見した場合、放置しない。

    候補例:

    • producer/consumer receipt shape drift を別 consumer でも繰り返す構造的欠陥
    • live test availability helper の stale-contract を横断的に検出できない問題
    • runtime verification contract が failure-only でも green になる同型の別 Issue/consumer
    • negative VC と In Scope の撤去要求が継続的に乖離する生成/検証 defect

    ただし一般論だけで Issue を増やさない。

    手順:

    1. current repository / open + closed Issues / PRs を検索
    2. semantic ownership と dedupe key を確認
    3. 既存 Issue が所有するなら新規作成せず、その Issue を再利用・参照
    4. 実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950 自体で解決されるものは follow-up 化しない
    5. 本当に別 scope で再発防止価値があるものだけ起票
    6. current create-issue / issue-creator 等の repository-native workflow を使用
    7. SubAgent に起票を委譲した場合も terminal completion と作成結果を待つ
    8. 実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950 と discovery source を明記
    9. implementation scope を 実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950 に混ぜない

    このユーザープロンプト自体が、上記条件を満たす再発防止 Issue の deduped creation を明示的に承認している。
    したがって generic な「新規 Issue を作ってよいか?」という追加確認は不要。

    ただし、この human authorization を current canonical workflow に入力した後でも deterministic authority が human_judgment_required を返す場合は、それを迂回しない。

    再発防止 Issue が無ければ、無理に作成しない。

    Web/upstream research

    OWNER comment には upstream claude-code-proxy 調査結果もあるが、それを永久に fresh とみなさない。

    current planner が web research を不要と判定するなら重複調査を強制しない。
    freshness 上必要、または finding の解決に外部仕様が material なら current official docs / upstream repository / release/spec を優先して調査する。

    特に client-side helper に chatgpt_auth probe や local proxy binary authority を再導入する方向には戻さない。
    current upstream / repository evidence が本当に変化している場合だけ再評価する。

    Expected refined contract direction

    最終的な #2950 は少なくとも次を満たす状態を目指す:

    • goal は current CLAUDE_GPT_LAUNCH_RESULT_V1 consumer alignment のまま
    • implementation Allowed Paths は target test file 1件
    • pure availability decision と subprocess execution の分離
    • exact schema + shape validation
    • malformed/legacy/wrong-schema input は fail-closed
    • real preflight.sh を通した local loopback success runtime path
    • real preflight.sh の failure runtime path
    • immediate runtime policy の success ≥1 / failure ≥1 を満たす
    • runtime SKIP を success 扱いしない
    • four legacy accessors の撤去を VC で固定
    • external ChatGPT service は AC の成立条件にしない
    • new harness / schema / launcher policy を作らない

    test function 名等の細部は current file / repository conventions を fresh に確認して決めること。
    古い Issue 本文の仮 test 名を盲目的に固定しない。

    Termination

    current Skill の canonical termination procedure に従う。

    approved の場合

    • approved body の fresh state を確認
    • current Skill が要求する termination comment / handoff artifact を publish
    • issue_kind が implementation なら current contract に従い handoff marker を生成
    • ここで終了する
    • impl-review-loop を開始しない
    • implementation worktree を作らない
    • code を変更しない
    • commit / push / PR を作らない

    human_escalation の場合

    • decide_next_loop_action.py 等の canonical output の termination cause を保持
    • diagnostic reason code と termination cause を混同しない
    • blockers を具体的に記録
    • false approve にしない

    Final report

    最後に短く、しかし検証可能な形で以下を報告する:

    • current main SHA
    • 対象 OWNER comment
    • refinement termination reason / cause
    • 実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950 body に反映した主要変更
    • final review verdict
    • scope-signal guard 結果
    • runtime-verification contract が success + failure を要求する状態になったか
    • Allowed Paths の最終状態
    • 実行した主要 deterministic verification
    • 使用した SubAgent と、それぞれ terminal completion を取得したこと
    • follow-up Issue:
      • created
      • reused
      • none
        のいずれかと URL / number
    • remaining blockers
    • approved の場合は「implementation-ready だが implementation 未開始」と明記

    調査・提案だけで止まらず、current repository-native issue-refinement-loop を実際に完遂すること。

    この prompt では、OWNER コメントで指摘された3点を明示しつつ、判定そのものは current planner/checker に委ねています。これにより「人間承認不要」を理由に scope guard を無効化することも、逆に通常の修正ごとに停止することも避けられます。

  4. squne121 commented on Oct 5, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop: human_escalation

    反映した内容

    • P1: AC5 を real preflight.sh と local loopback FakeServer の正常系(exit 0 / success receipt / helper True)、AC6 を closed port・incomplete catalog の異常系(exit 7 / helper 理由付き False)に分離した。runtime SKIP を PASS 扱いせず、Stop Conditions に SKIP の human escalation を追加した。
    • P2: 判定を exit 0・top-level object・schema == "CLAUDE_GPT_LAUNCH_RESULT_V1"・status・mode・connected_server の object 性と reachable / model_catalog_ok に fail-closed で bind した。poison fixture を AC4 に列挙した。
    • P2: 旧 accessor 4 つ(payload.get("exit_code") を含む)の撤去を AC7 と VC 4 本で固定した。
    • Step 2 deterministic review は iteration 0 で needs-fix(新規 test node-id が既存 file 参照の VC は canonical 外、uv run ruff は VC allowlist 外)となり、修正後の iteration 1 で approve。Step 2.5 は semantic_review_applicable: false。

    停止理由と blockers

    • scope_signal_guard_triggered
    • scope_signal_guard_reason_code:new_in_scope_area

    canonical review の VC 形状要件を満たすため、新規 test を同 directory の新規 file scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py に置き、Allowed Paths を 2 件にした。この In Scope 追加を scope signal guard が新規領域として検知し、decide_next_loop_action.py が human_escalation を返した。approve には倒していない。実装は開始していない。

    必要な人間判断

    • 次のいずれかを選択してください。
      • Allowed Paths への新規 test file 1 件の追加を承認する(ANCHOR_SCOPE_REFRAME_V1 を trusted anchor コメントとして投稿)。本文は既に反映済みで、承認後に再度 refinement を実行すれば approve に進める見込み。
      • 単一 file のまま進める場合は、既存 file への新規 node-id VC を許容する方針を明示する(ただし現行 checker では blocked になる)。
    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: issue-refinement-loop
      follow_up_issues: []
      note_only_observations:
        - "scripts/claude-gpt/workflow_capability_preflight.py の旧 shape 検証は退役済み Spark 経路で、#2938 が所有するため起票しない"
  5. squne121 commented on Oct 5, 2026

    @squne121
    OwnerAuthor

    推奨は 単一 file 方針へ戻さず、新規 test file の Allowed Paths 追加を承認して refinement を再開です。前回は deterministic review 自体は修正後 approve で、停止理由は scope guard の new_in_scope_area だけでした。貼り付けたテキスト(1)

    ただし、停止コメントの「人間が手書き ANCHOR_SCOPE_REFRAME_V1 を投稿する必要がある」という案は current repository contract より強すぎます。live main=dfc297248e08e8e30ef30c5c718b9ae80bb57db7 の current issue-refinement-loop は、operator-selected with_human_context の freeform directive を扱い、構造化 anchor の手入力を人間に要求しない経路を既に持っています。したがって 今回のユーザー承認を Claude Code が #2950 上の controlled comment として materialize → その canonical comment URL を with_human_context として使うのが repository-native です。

    再発防止については、現時点で類似 control-plane 問題を所有する open Issue #2842 が存在します。よって即座に重複 Issue を作らず、今回の正規経路でも同種停止が再現した場合はまず #2842 との同一性を判定し、別 root cause の場合だけ新規起票させるのが適切です。前回の実行では codebase-investigator / web-researcher / issue-editor の completion join まで実施済みです。貼り付けたテキスト(1)

    以下を、既に auto mode で動いている interactive Claude Code にそのまま貼れます。

    repo: squne121/loop-protocol

    対象:

    あなたは既に interactive Claude Code の auto mode session 上で動作している。この session を継続すること。Claude Code を再起動したり permission mode を変更したりしないこと。

    Objective

    Issue #2950 の前回 human_escalation を、今回の operator authorization を正式な human-context input として current issue-refinement-loop に渡して解消し、refinement を canonical approved または genuine な canonical stop まで自律継続する。

    今回は refinement の継続だけを行う。

    • implementation を開始しない
    • impl-review-loop を開始しない
    • production/test code を変更しない
    • implementation worktree を新規作成しない
    • implementation commit / push / PR を作成しない
    • approved になったら refinement handoff を完了して終了する

    Explicit operator authorization

    今回、operator は #2950 について以下を明示的に承認する。

    承認する scope delta

    既存 Allowed Path:

    scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py

    に加えて、次の新規 test file を Allowed Paths に含めることを承認する。

    scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py

    この 2-file scope を #2950 の implementation contract として承認する。

    理由:

    • current deterministic VC checker は、既存 file にまだ存在しない新規 test node-id を指定する VC を existing_file_missing_node_id_noncanonical として canonical 外にする。
    • そのため、新規 focused tests を同 directory の新規 test file に置くことは checker contract を満たすための最小変更である。
    • production surface、launcher、schema、daemon、恒久 harness への scope expansion ではない。
    • scripts/claude-gpt/tests/_launcher_harness.py は read-only reuse のままで、変更を承認していない。
    • 実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950 の current Issue body に既に反映されている 2-file Allowed Paths、AC1–AC8、AC5/AC6 runtime verification、AC7 negative assertions の方向を承認する。

    単一 file 方針へ戻し、checker を迂回または例外化することは承認しない。

    Authorization materialization

    このユーザープロンプト自体が operator authorization の source である。

    current issue-refinement-loop が scope authority を canonical GitHub issue-comment URL に bind する必要がある場合、人間へ ANCHOR_SCOPE_REFRAME_V1 の手書き投稿を要求して停止してはならない。

    current HEAD の以下を fresh に読み、正規経路を選ぶこと。

    • .claude/skills/issue-refinement-loop/SKILL.md
    • .claude/skills/issue-refinement-loop/references/anchor-comment-handling.md
    • .claude/skills/issue-refinement-loop/references/scope-signal-guard.md
    • current schema / scripts that Skill が参照するもの

    current Skill に従い、この operator authorization を controlled GitHub comment mutation で #2950 に materialize してよい。

    投稿する approval comment は少なくとも次を明確にすること:

    current Skill が structured ANCHOR_SCOPE_REFRAME_V1 を生成する canonical route を選ぶなら、schema を current HEAD から読み、正しい payload を agent 側で生成してよい。

    一方、current Skill の operator-selected freeform with_human_context route が正規経路なら、構造化 anchor を無理に生成せずその route を使う。

    人間にもう一度 YAML を手入力させることを completion condition にしてはならない。

    materialize した comment の canonical URL を取得し、current Skill が要求する preflight.run.with_human_context / subsequent trusted contract-update lane の --anchor-comment-url として使用する。

    この provenance は verified_human と表現せず、current repository contract に従い operator_asserted_human_context として扱う。

    Human authorization — 実行してよい操作

    追加確認なしで、今回の refinement 完了に必要な次の通常・非破壊操作を実行してよい。

    • Issue 実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950 / comments / labels / related Issues / related PRs の fresh read
    • current main HEAD の fresh read
    • repository files / Skills / Agents / references / schemas / scripts / tests の read
    • current Skill が要求する planner / validator / deterministic checker / readiness checker の実行
    • current Skill が要求する controlled Issue body/comment mutation
    • 上記 scope approval comment の controlled publish
    • preflight.run.with_human_context
    • current Skill が要求する trusted contract-update phase
    • bounded review → fix → fresh re-review
    • body readback / SHA verification
    • current Skill が要求する SubAgent dispatch
    • repository / GitHub の read-only investigation
    • 必要な upstream read-only research
    • follow-up Issue の dedupe search
    • genuine な独立 recurring defect が確認された場合の repository-native follow-up Issue 起票

    ただし以下は承認していない。

    • bypassPermissions
    • --dangerously-skip-permissions
    • permission policy の変更
    • secret / credential の取得・変更・表示
    • force push
    • merge / auto-merge
    • unrelated Issue / PR の mutation
    • implementation code/test の変更
    • impl-review-loop の開始
    • deterministic planner/checker を prose で再実装または迂回すること

    Step 0 — fresh state

    stale transcript を authority にせず、最初に live state を取得する。

    最低限確認する:

    1. 実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950 body / state / labels /全 comments
    2. comment 5996043359
    3. comment 5995725736
    4. 実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950 に対応する既存 implementation PR の有無
    5. current main HEAD
    6. current .claude/skills/issue-refinement-loop/SKILL.md
    7. current:
      • references/anchor-comment-handling.md
      • references/scope-signal-guard.md
      • termination / loop-state references
      • current scope authority scripts/schema
    8. Issue body の Allowed Paths が現在:
      • scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py
      • scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py
        の2件になっていること
    9. body の P1/P2 修正が失われていないこと
    10. current related control-plane Issues:

    過去の dfc297... を無条件に固定せず、実行時の main HEAD を fresh に取得する。ただし main が同 SHA ならそれをそのまま記録すればよい。

    SubAgent requirement

    SubAgent を使用すること。

    少なくとも、refinement を再開する前に read-only codebase-investigator を使い、次を確認させる。

    task:

    target:

    authority:

    • current main / current Skill / current GitHub state

    constraints:

    • read-only
    • mutation 禁止
    • current contract を prose で再実装しない

    expected output:

    SubAgent を dispatch しただけで完了扱いしてはならない。

    必ず terminal completion / final result を取得して join してから後続 phase へ進むこと。

    current Skill がさらに issue-editor、issue-design-reviewer、その他 SubAgent を要求する場合も同様に、dispatch → terminal completion join → result consume の順序を守る。

    independent な read-only investigation は必要なら並列化してよいが、contract mutation / fresh review / routing に dependency がある処理は順番を守る。

    Resume procedure

    current Skill を SSOT とし、手順をこの prompt から推測して再実装しない。

    特に今回の scope authorization は current repository の:

    • operator-selected human-context
    • trusted contract update
    • scope delta authority
    • issue_editor_required
    • fresh preflight
    • fresh review
    • fresh readiness

    の current routing semantics に従うこと。

    重要

    前回の termination comment が

    「ANCHOR_SCOPE_REFRAME_V1 を human が投稿する必要がある」

    と記載していても、それ自体を current Skill より上位の workflow contract として扱わない。

    current Skill が、構造化 anchor の欠如だけを理由に human_judgment_required へ落としてはならない current route を持つなら、その route を使用する。

    ただし今回の scope delta は前回 OWNER review の時点では明示承認されていなかったため、今回の operator authorization を GitHub comment として materialize してから human-context lane に入れること。

    Refinement target state

    #2950 body の現在の refinement 結果を維持する。

    特に:

    • AC5:
      real preflight.sh + compatible local loopback FakeServer
      → exit 0
      → CLAUDE_GPT_LAUNCH_RESULT_V1 success receipt
      → helper True

    • AC6:
      closed port と incomplete catalog
      → exit 7
      → failed receipt
      → helper reason付き False

    • runtime SKIP:
      PASS 扱いせず Stop Condition / escalation

    • parser:
      exit code 0

      • top-level object
      • exact schema == "CLAUDE_GPT_LAUNCH_RESULT_V1"
      • status == "ok"
      • mode == "check_only"
      • connected_server object
      • reachable is True
      • model_catalog_ok is True
    • poison fixtures:
      fail-closed、例外を出さず reason付き False

    • AC7:
      旧 accessor 4つの撤去:

      • payload.get("exit_code")
      • payload.get("binary_available")
      • proxy.get("absolute_path")
      • chatgpt_auth.get("available")
    • Allowed Paths:
      2 files のみ

    • scripts/claude-gpt/tests/_launcher_harness.py:
      read-only reuse

    これらを scope approval の名目で崩したり、元に戻したりしない。

    Review loop

    approval comment materialization と current canonical human-context route の消費後、current Skill に従って fresh refinement cycle を実行する。

    • fresh preflight
    • deterministic Step 2
    • semantic review applicability
    • applicable なら semantic SubAgent review + completion join
    • fresh scope guard
    • readiness
    • canonical next-action decision

    通常の needs-fix、deterministic repair、review finding は bounded loop 内で自動修正し、fresh body で再 review する。

    前回 review の approve をそのまま再利用せず、current body/current main に対して fresh review を取得する。

    Recurrence / follow-up Issue policy

    再発防止 Issue を無条件に新規作成しない。

    まず open + closed Issues を dedupe する。

    特に current open Issue #2842:

    trusted human-context の contract_update mutation lane が、freeform directive から不正な patch operation を導出し、失敗理由を出さずに停止する欠陥を是正する

    との ownership 重複を必ず確認する。

    また #2086 / #2620 / #2678 / #2785 の既存 ownership も確認する。

    reuse

    今回の正規 with_human_context continuation が失敗し、その root cause が #2842 の ownership
    (trusted human-context mutation lane / patch-operation derivation / reason-code observability 等)
    と一致する場合:

    create

    次の場合だけ新規 follow-up Issue を起票する。

    起票時は:

    • root cause
    • exact reproduction
    • expected current Skill route
    • actual route
    • relevant artifacts/reason codes
    • regression test strategy
      を含める。

    重複 Issue は作らない。

    Stop boundary

    以下は genuine stop として扱う。

    • current deterministic authority が、今回の operator authorizationを current human-context route へ正しく入力した後も genuine human_judgment_required を返す
    • destructive operation が必要
    • secret / credential operation が必要
    • permission bypass が必要
    • scope が今回承認した 2 Allowed Paths を超える
    • repository contract が明示的に human judgment を要求する
    • evidence integrity を維持できない
    • current loop 上限へ到達
    • irreconcilable contract conflict

    ただし通常の review finding、修正可能な checker failure、stale artifact、再実行可能な fresh-check failureだけで停止しない。

    Completion

    approved の場合

    current Skill の approved termination/handoff contract を最後まで完了する。

    その後 終了する。

    • impl-review-loop を開始しない
    • implementation code を変更しない
    • commit / push / PR を作らない

    human escalation の場合

    canonical evidence を保持し、approve を捏造しない。

    ただし、今回の operator scope approval が正しく current with_human_context route に投入されたことを証明してから escalation とする。

    Final report

    最後に簡潔に以下を報告する。

    • current main HEAD
    • 実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950 final body SHA
    • materialize した operator authorization comment URL
    • human-context route / anchor classification
    • Allowed Paths 最終状態
    • deterministic review verdict
    • semantic review applicability / verdict
    • scope guard result
    • readiness result
    • canonical termination reason/cause
    • 使用した SubAgent 一覧
    • 各 SubAgent の terminal completion を取得したこと
    • follow-up Issue:
      • reused(番号/URL)
      • created(番号/URL)
      • none
        のいずれか
    • remaining blockers
    • implementation を開始していないこと
    • commit / push / PR / merge を行っていないこと

    この prompt では、今回の承認を 「新規 test file の追加」まで具体化しつつ、current Skill の freeform human-context routeも使えるようにしています。これで再度「anchor を人間が手書きしてください」だけを理由に止まるのを避けつつ、canonical authority 自体は迂回しません。

  6. squne121 commented on Oct 5, 2026

    @squne121
    OwnerAuthor

    operator scope 承認: #2950 の Allowed Paths への新規 test file 追加

    operator(OWNER)は、#2950 の Allowed Paths に次の新規 test file 1 件を追加することを明示的に承認する。既存の Allowed Path と合わせて 2 file の scope を実装 contract として承認する。

    • 承認する新規 Allowed Path: scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py
    • 理由: deterministic VC checker は、既存 file に未作成の新規 test node-id を指定する VC を existing_file_missing_node_id_noncanonical として canonical 外にする。新規 focused test を同 directory の新規 test file に置くことは、この checker contract を満たすための最小の scope delta である。
    • 承認しないもの: production surface、launcher、schema、daemon、恒久 harness への拡張。scripts/claude-gpt/tests/_launcher_harness.py は read-only 再利用のままで変更を承認しない。単一 file 方針へ戻すことや checker の迂回・例外化も承認しない。
    • この承認は implementation の開始許可ではない。contract review / refinement preflight / allowed paths gate を fresh に再実行して refinement を継続してよい。

    この提示は operator が current session で明示した指示を転記したもので、provenance は operator_asserted_human_context として扱う。

    schema_version: ANCHOR_SCOPE_REFRAME_V1
    target:
      repo: squne121/loop-protocol
      issue_number: 2950
    decision: approve_scope_delta
    allowed_path_deltas:
      - "scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py"
    rationale: "deterministic VC checker の canonical shape(新規 test node-id は新規 test file 参照)を満たすための最小 scope delta。production / launcher / schema / harness への拡張は含まない。"
    required_rerun:
      - contract_review
      - refinement_preflight
      - allowed_paths_gate
  7. squne121 commented on Oct 5, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop 終了報告: approved

    Issue #2950 の refinement が approved で終了しました。実装・worktree 作成・impl-review-loop 起動・commit・push・PR 作成は行っていません。approved は実装開始の承認ではありません(implementation-ready だが implementation 未開始)。

    • 最終 body SHA256: 156b7fe8db3a011527e3e55bed47c9602c5906d813aad9862051b552d8c42810
    • 基準 main: dfc297248e08e8e30ef30c5c718b9ae80bb57db7
    • 元の OWNER review: 実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950 (comment)
    • 人間 context anchor(operator scope 承認): https://github.com/squne121/loop-protocol/issues/2950#issuecomment-6003839083(OWNER、構造化 ANCHOR_SCOPE_REFRAME_V1、preflight.run.with_human_context で束縛。provenance は operator_asserted_human_context)。承認した scope delta は新規 test file scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py の Allowed Paths 追加のみです。
    • Allowed Paths(最終): scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py と上記新規 test file の 2 件。scripts/claude-gpt/tests/_launcher_harness.py は read-only 再利用で変更を承認していません。
    • 再開後の判定: scope_delta_decision は approved_by_trusted_anchor(implementation_go: false)、scope_signal_guard は triggered: false、deterministic review は approve(blocker・finding なし)、Step 2.5 semantic review は semantic_review_applicable: false、contract review は go(baseline は expected_fail 10 件・expected_pass 1 件・unexpected_pass 0 件)、decide_next_loop_action.py は proceed_to_step_4_5。
    • body の P1 / P2 修正(AC5 正常系 runtime、AC6 異常系 runtime、runtime SKIP の escalation、exact schema bind と poison fixture、旧 accessor 4 つの撤去 VC)は維持されています。この再開では body を変更していません。
    LOOP_HANDOFF_RESULT_V1:
      status: refinement_approved
      routing_action: none
      contract_review:
        status: go
        gate_result: fresh_go
        latest_comment_url: "none (go comment は未投稿。CONTRACT_REVIEW_ONCE_RESULT_V1 の fresh 実行結果を根拠とする)"
        generated_at: "2026-10-05T21:57:56Z"
        body_sha256: "sha256:156b7fe8db3a011527e3e55bed47c9602c5906d813aad9862051b552d8c42810"
      metadata:
        title_prefix_ready: true
      label_sync_observation:
        kind: presentation_sync
        result: noop
        detail: "label の presentation sync は本 run で実施していない(non-authoritative)"
      auto_fixes:
        result: auto_fixed
        required: []
        skipped: []
      blockers: []
      permissions:
        unavailable: []
      generated_at: "2026-10-05T21:57:56Z"
      checked_body_sha256: "sha256:156b7fe8db3a011527e3e55bed47c9602c5906d813aad9862051b552d8c42810"
      checker_exit_code: 0
      missing_sections: []
      missing_contract_keys: []

    follow-up の実体化

    follow-up Issue は起票していません。planner 候補(他 file の _claude_gpt_available 類似 helper)は、git grep で対象 file 以外に該当 helper が存在しないことを確認しました。#2842 の ownership(freeform directive 由来の patch operation 導出欠陥)は、本 run が構造化 anchor の正規経路で成立したため再現せず、#2842 への追記も行っていません。

    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: issue-refinement-loop
      follow_up_issues: []
      note_only_observations:
        - dedupe_key: "931defce24b15309"
          source_url: "https://github.com/squne121/loop-protocol/issues/2950"
          source_note_id: "planner-candidate-similar-helper"
          summary: "他 file の _claude_gpt_available 類似 helper は存在しないことを git grep で確認。起票不要"
  8. squne121 commented on Oct 5, 2026

    @squne121
    OwnerAuthor

    確認結果として、#2950 は live GitHub 上で refinement approved まで到達済みで、実装はまだ開始されていません。現在の main は 14ae6126b56201cacae71fae2b622cf05b910077 まで進んでいますが、refinement 時点の dfc2972… からの差分は create-issue の VC guidance 関係だけで、#2950 の Allowed Paths には触れていません。target helper は依然として旧 exit_code / binary_available / proxy.absolute_path / chatgpt_auth.available を参照し、新規 focused test file はまだ存在せず、#2950 の実装 PR も確認できませんでした。添付ログ側でも refinement approved、Allowed Paths 2件、remaining blockers なし、implementation/PR 未開始まで記録されています。貼り付けたテキスト(1)

    推奨は、過去の LOOP_HANDOFF_RESULT_V1 を実装許可として再利用せず、current impl-review-loop の Root-Owned Synchronous Entry Transition を fresh に通してから、implementation-worker → test-runner → pr-reviewer を completion join 付きで回し、terminal gate が approved になる直前まで進めることです。以下をそのまま fresh interactive Claude Code / auto mode に貼れます。

    repo: squne121/loop-protocol

    対象 Issue:
    #2950

    current repository workflow:
    .claude/skills/impl-review-loop/SKILL.md

    重要な既存 context:

    あなたは既に fresh interactive Claude Code の auto mode session 上で動作している。この session をそのまま使用すること。Claude Code を再起動したり permission mode を変更したりしないこと。

    Objective

    Issue #2950 を、current HEAD の .claude/skills/impl-review-loop/SKILL.md とその current references/scripts を正本として実装し、repository-native な

    inspect → root entry → implement → verify → PR review → fix → re-verify → re-review

    の bounded loop を完遂する。

    到達点は 人間が merge 判断できる直前の current impl-review-loop terminal success state とする。

    実 merge / auto-merge は行わない。

    過去の refinement approved comment や LOOP_HANDOFF_RESULT_V1 は audit/context として参照してよいが、それ単独を Step 1 implementation authorization として扱ってはならない。current impl-review-loop が要求する Root-Owned Synchronous Entry Transition を、この invocation 内で fresh に成立させること。

    Explicit operator authorization

    このプロンプトは、#2950 をマージ直前まで自律処理するための通常の非破壊操作を明示的に承認する。

    追加の人間確認なしで実行してよい:

    • live Issue / comments / related Issue / related PR / current main / CI / runtime state の取得
    • current repository Skill / Agent / rules / policy / scripts / tests / schemas の read
    • current impl-review-loop が要求する capability preflight
    • Root-Owned Synchronous Entry Transition 内の current-run issue-contract-review
    • intake capsule / landing disposition / Allowed Paths gate / VC adjudication / mergeability routing 等の canonical deterministic producer の実行
    • repository-native worktree の作成・再利用
    • implementation-worker SubAgent の dispatch
    • 実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950 Allowed Paths 内の実装・テスト追加・修正
    • repository workflow が要求する commit
    • repository workflow が要求する push
    • Draft/open PR の新規作成、または既存 実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950 PR の再利用・更新
    • PR body hygiene / closing reference 等、current workflow が要求する非破壊的 PR metadata 更新
    • test-runner SubAgent による Verification Commands の独立実行
    • pr-reviewer SubAgent による current-head PR review
    • REQUEST_CHANGES finding の自動修正
    • update-branch が canonical route から要求された場合の mechanical branch update
    • fix → test → review の bounded iteration
    • current-head CI / required checks の再確認
    • current Skill が要求する controlled comment / human-history 等の publication
    • genuine な再発性 defect の dedupe search
    • genuine な独立 recurrence-prevention Issue の repository-native 起票

    iteration ごとの人間承認は不要。

    ただし次は承認していない:

    Current observed state — 必ず fresh 再確認すること

    この prompt 作成時点では:

    ただし、これらを固定値として信用しない。

    実行開始時に live state を fresh に取り直し、current main / Issue body / comments / PR candidates / target files / worktree state を再確認すること。

    Step 0 — current impl-review-loop contract を読む

    最初に current HEAD の少なくとも以下を読む:

    • .claude/skills/impl-review-loop/SKILL.md
    • .claude/skills/impl-review-loop/steps/preparation.md
    • .claude/skills/impl-review-loop/steps/step-1-implementation.md
    • .claude/skills/impl-review-loop/steps/step-2-verification.md
    • .claude/skills/impl-review-loop/steps/step-4-pr-review.md
    • .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md
    • .claude/skills/impl-review-loop/steps/step-5-mergeability-handling.md
    • .claude/skills/impl-review-loop/steps/context-protocol-and-guardrails.md
    • .claude/agents/implementation-worker.md
    • .claude/agents/test-runner.md
    • .claude/agents/pr-reviewer.md
    • current Skill が追加で MUST READ とする references/scripts

    procedure をこの prompt の文章から推測して再実装しないこと。

    Step 1 — Root-Owned Synchronous Entry Transition を成立させる

    過去の refinement handoff comment を implementation authorization packet とみなさない。

    current impl-review-loop / preparation.md が規定する root-owned synchronous entry を、同一の継続した invocation / control flow の中で実行する。

    current contract に従い概ね:

    1. capability preflight
    2. live Issue fetch
    3. current-run issue-contract-review
    4. 直後の live state 再取得
    5. canonical root-entry router
    6. route が implementation invocation を許した場合だけ Step 1 dispatch

    へ進む。

    review_verdict / body SHA / base SHA を過去 comment から再利用して起動判定しない。

    main drift や body drift があれば、current root router の fresh-review / rebind 経路に従う。

    root transition が canonical に implementation を許可しない場合は、結果を捏造せずその route に従う。

    Step 2 — pre-Step-1 landing disposition

    implementation-worker / new worktree / new PR を起動する前に、current preparation.md の Evidence-Based Landing Disposition を必ず実行する。

    producer が返す canonical disposition / start_data_plane / action をそのまま consume し、prose で再判定しない。

    特に:

    • implementation_already_landed
      → duplicate implementation を開始しない
    • existing_pr_resume
      → 既存 PR / branch / worktree を再利用し、duplicate PR を作らない
    • already_satisfied
      → current canonical already-satisfied route に従う
    • ordinary_dispatch_or_explicit_recovery
      → 通常 Step 1 へ進む
    • reconciliation_required
      → reconciliation を実施し、勝手に新規 worker / PR を作らない

    この prompt 作成時には exact #2950 PR は無かったが、実行時点では必ず fresh に判定すること。

    単に PR body に #2950 の文字列があるだけで implementation candidate と認定しない。

    Canonical Issue contract

    live #2950 body を正本とする。

    現在承認済み Allowed Paths は次の 2 件のみ:

    1. scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py
    2. scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py

    scripts/claude-gpt/tests/_launcher_harness.py は read-only reuse であり変更禁止。

    launcher / schema / daemon / docs /恒久 harness へ scope を広げない。

    Issue body の current Outcome / AC1–AC8 / Verification Commands / Runtime Verification / Stop Conditions を逐語的 authority として扱う。

    Implementation intent

    実装の中心は、既存 _claude_gpt_available() の stale consumer contract を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせることである。

    current Issue contract に従い:

    • subprocess execution と receipt interpretation の pure 判定部を分離
    • process exit code 0 を要求
    • top-level JSON object を要求
    • schema == "CLAUDE_GPT_LAUNCH_RESULT_V1" を要求
    • status == "ok"
    • mode == "check_only"
    • connected_server が object
    • connected_server.reachable is True
    • connected_server.model_catalog_ok is True
    • malformed / wrong schema / legacy shape / poison input は exception にせず理由付き False
    • old receipt shape を fallback として残さない

    旧 accessor:

    • payload.get("exit_code")
    • payload.get("binary_available")
    • proxy.get("absolute_path")
    • chatgpt_auth.get("available")

    は helper 本体からすべて撤去する。

    local_proxy_binary_auxiliary を availability authority に昇格させない。

    chatgpt_auth probe を再導入しない。

    Focused tests

    新規:

    scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py

    に current Issue contract の focused test を置く。

    既存 helper module と _launcher_harness.py を bare import で雑に import せず、Issue contract の指示どおり importlib.util.spec_from_file_location 等の一意 module name を用いる。

    fixture / poison coverage と real local runtime verification を分離して明確にテストする。

    Runtime verification

    AC5 / AC6 は runtime verification であり、単なる fixture-only test へ弱めない。

    AC5 正常系:

    • actual scripts/claude-gpt/preflight.sh
    • local loopback FakeServer
    • compatible /v1/models
    • ANTHROPIC_BASE_URL を fake server へ向ける
    • preflight exit 0 を独立 assert
    • current schema success receipt を独立 assert
    • helper True

    AC6 異常系:

    • closed port
    • incomplete model catalog FakeServer
    • actual preflight.sh
    • exit 7 を独立 assert
    • status: failed
    • helper False
    • reason に relevant status / exit information

    OSError / timeout を helper が (False, reason) に変換しただけの結果を AC5 / AC6 PASS に数えない。

    外部 ChatGPT inference / 実 credential / 実 proxy daemon は要求しない。

    SubAgent execution protocol — completion join 必須

    各 SubAgent は dispatch しただけで完了扱いしない。

    dispatch 後は 必ず terminal completion を取得し、structured final result を読んでから次 Step に進む。

    background 実行になった場合も:

    • 「started」
    • 「backgrounded」
    • dispatch receipt
    • task ID

    だけで downstream へ進まない。

    必ず completion / final hand-back / structured result を join する。

    少なくとも current workflow が要求する:

    • implementation-worker
    • test-runner
    • pr-reviewer

    を正規の Step で利用する。

    SubAgent に渡す task には、親 context を暗黙共有したと仮定せず以下を明示する:

    • task / mode
    • target Issue / PR
    • canonical live authority
    • Allowed Paths
    • current HEAD / expected HEAD where relevant
    • constraints
    • relevant AC / VC
    • evidence required
    • expected structured output
    • fix_delta when applicable

    nested delegation は current Agent/Skill contract が許す範囲だけにする。

    Step 1 — implementation-worker

    canonical landing disposition が ordinary dispatch を許した場合、current .claude/agents/implementation-worker.md の V1 route を使用する。

    root/main thread 自身が data-plane implementation worker の役割を肩代わりしない。

    worker は current .claude/skills/implement-issue/SKILL.md に従い:

    • canonical linked worktree 作成/再利用
    • live Issue contract 再確認
    • Allowed Paths 内だけを編集
    • implementation
    • local verification
    • commit
    • push
    • PR 作成/更新

    まで進める。

    Git push / PR creation は current repository-native skill / wrapper を使い、raw shortcut で workflow を迂回しない。

    foreign branch / foreign worktree / user dirty work は変更しない。

    worker completion の IMPLEMENT_RESULT_V1 または current equivalent を取得してから Step 2 へ進む。

    Step 2 — independent verification

    current test-runner の contract に従い、Issue body の Verification Commands を independent に実行する。

    baseline / current-head binding、command hash、VC adjudication 等は current Step 2 producer を使用する。

    test-runner の自己申告だけで PASS にしない。

    特に AC5 / AC6 runtime VC が実際に実行されることを確認する。

    Issue contract が明示する SKIP は PASS に昇格させない。

    AC5 / AC6 が environment SKIP した場合は #2950 の current Stop Condition なので、勝手に fixture PASS へ置換せず canonical stop とする。

    通常の修正可能な test failure は停止理由にせず、implementation loop の fix route へ戻す。

    Step 4 — adversarial PR review

    current pr-reviewer / pr-review-judge を使用する。

    reviewer は要約ではなく defect discovery を行う。

    重点:

    • Issue Outcome / AC / VC と実装のズレ
    • Allowed Paths 違反
    • wrong-schema / malformed shape の false positive
    • legacy shape fallback の残存
    • exit code と JSON payload 内 field の混同
    • fixture-only false green
    • AC5/AC6 real preflight coverage の欠落
    • local FakeServer が実 preflight を通っていない fake coverage
    • exception / scalar / null / list shape handling
    • existing live causal-evidence test の regression
    • hidden dependency on real proxy / auth / Claude binary
    • import/module collision
    • current-head / reviewed-head drift
    • CI/local 差
    • main drift
    • scope creep

    reviewer の terminal structured result:

    • verdict
    • reviewed_head_sha
    • blockers
    • warnings

    を root が取得する。

    reviewer 自身の mergeability 自己申告は authority にしない。

    Step 5 — route/fix/re-review

    current route_loop_verdict_v2() / step5-terminal-gate 等の canonical routing を使用する。

    REQUEST_CHANGES の場合:

    • blockers を fix_delta として structured に保持
    • implementation-worker の PR repair mode / current canonical repair routeへ委譲
    • 修正完了を join
    • current HEAD を再取得
    • Step 2 verification を再実行
    • Step 4 PR review を fresh HEAD で再実行
    • Step 5 を再評価

    通常の REQUEST_CHANGES / CI failure / stale reviewed HEAD / branch behind は、iteration 余裕がある限り自動修復する。

    BEHIND の場合は current router が合成する update_branch action を使い、その後 verification と review を両方再実行する。

    reviewed_head_sha が live PR HEAD とずれた場合は古い review で終了しない。

    BLOCKED / UNSTABLE / DRAFT を Git conflict と混同しない。

    actual CONFLICTING / DIRTY のみ current conflict runbook に従う。

    CI / final gate

    PR HEAD に対する current required CI/checks を fresh に確認する。

    prompt 作成時点の main branch protection は:

    • typecheck
    • lint
    • test
    • build
    • python-test
    • validate-generated-artifact

    だが、実行時に branch protection / required checks を fresh に取得し、それを authority とする。

    古い run / 別 head の green を利用しない。

    terminal approval は current step5-terminal-gate が要求する:

    • dispatch binding
    • current PR HEAD
    • Issue body SHA
    • ordered VC command hashes
    • valid Step 2 adjudication
    • reviewer result
    • same-response live mergeability

    等の current contractを満たした場合だけ成立させる。

    verdict: APPROVE 単独では完了扱いしない。

    External research policy

    本 Issue は repository-internal consumer alignment が中心なので、current impl-review-loop が外部調査不要と判定するなら web research はスキップしてよい。

    LOOP_STATE.external_research_skip_basis 等の current contractに理由を記録する。

    ただし implementation 中に current upstream仕様が material に影響する genuine な疑問が発生した場合だけ、current Skill の external research routeを使い、公式 docs / upstream repository / release/spec を優先する。

    外部調査を理由に scope を launcher/schema 変更へ拡大しない。

    Recurrence prevention

    作業中に「今回だけ修正しても同じ defect class が再発する」独立した systemic issue を発見した場合は、放置せず recurrence-prevention を検討する。

    ただし新規 Issue を即作成せず、まず open + closed Issue を root cause / dedupe key / relevant symbols で検索する。

    既存 ownership があれば再利用し、duplicate Issue を作らない。

    特に stale Claude-GPT launcher consumer 問題なら #2938 等の既存 ownership と重複していないか確認する。

    VC deletion/absence guidance の問題なら #2943 / #2947 の既存解決と同じ failure class でないか確認する。

    別の root cause で、repository-native script/test/Skill の恒久是正が必要な場合だけ current create-issue workflow で follow-up Issue を起票する。

    follow-up Issue には最低限:

    を含める。

    再発防止 Issue が #2950 の implementation を成立させるための dependency / scope split になった場合は、#2950 の Stop Conditions に従って勝手に scope expansion せず canonical stop とする。

    一方、#2950 本体は完遂可能で、follow-up が単なる独立 recurrence prevention なら、起票後も current impl-review-loop を継続する。

    Genuine stop boundaries

    次だけを genuine stop / escalation とする:

    • current 実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950 Stop Conditions に該当
    • Allowed Paths 外の変更が不可避
    • scripts/claude-gpt/** の変更が不可避
    • _launcher_harness.py の変更が不可避
    • current preflight receipt shape が Issue contract から変化
    • AC5 / AC6 runtime VC が canonical SKIP
    • compatible local FakeServer に対して real preflight が current contract の success path を返さない
    • irreconcilable scope conflict
    • secret / protected boundary
    • actual Git conflict
    • formal HUMAN_REVIEW_REQUIRED verdict
    • current canonical loop iteration 上限
    • evidence integrity を維持できない
    • user/OWNER の live 明示停止

    単なる warning、advisory artifact stale、contract snapshot telemetry不足、修正可能な test/CI/review failure、stale reviewed HEAD は停止理由にしない。

    Final target

    current canonical loop が terminal approval に到達したら終了する。

    merge / auto-merge は実行しない。

    最終報告には少なくとも:

    • Issue 実装: claude-gpt live causal-evidence test の可用性判定を current CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる #2950 final live body / relevant hash
    • implementation disposition
    • PR number / URL
    • PR current HEAD SHA
    • branch / worktree
    • changed files
    • Allowed Paths compliance
    • AC1–AC8 result
    • AC5 normal runtime evidence
    • AC6 failure runtime evidence
    • exact Verification Commands result
    • current-head CI result
    • pr-reviewer final verdict
    • final terminal-gate route/result
    • loop iteration count
    • 使用した SubAgent 一覧
    • 各 SubAgent の terminal completion を取得したこと
    • REQUEST_CHANGES と適用した fix_delta の履歴
    • main drift / branch update があればその処理
    • recurrence-prevention Issue:
      • reused / created / none
      • number / URL / rationale
    • remaining blockers
    • 「merge は実施していない」
    • 人間が次に行うべき判断が merge 可否のみか、それ以外の blocker があるか

    を明記する。

    調査・提案・SubAgent dispatch だけで止まらないこと。

    current repository-native impl-review-loop を実際に最後まで実行し、人間が merge 判断できる直前まで到達すること。

    この形なら、#2950 の approved contract を維持しつつ、現在の impl-review-loop で重要になっている root synchronous entry、landing disposition、current-head VC adjudication、SubAgent completion join、terminal gate を省略せず進められます。

  9. squne121 commented on Oct 5, 2026

    @squne121
    OwnerAuthor

    root-owned entry router audit

    route: invoke_impl_review_loop
    reason: fresh_review_go_live_equality

  10. squne121 commented on Oct 5, 2026

    @squne121
    OwnerAuthor

    implement-issue: 実装完了

  11. squne121 commented on Oct 5, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-10-05T23:10:10Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/2950
      body_sha256: "sha256:156b7fe8db3a011527e3e55bed47c9602c5906d813aad9862051b552d8c42810"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        product_spec_check: {"schema":"product_spec_check/v1","applicability":"applicable","decision":"pass","triggers":{"docs_product_allowed_paths":false,"tasks_md_mentioned":false,"specify_artifact_mentioned":false,"generated_task_mentioned":false,"product_spec_context_present":false,"machine_readable_contract_present":true},"conditions":{"docs_product_requires_spec_evidence":{"status":"pass","evidence":[]},"tasks_md_not_direct_source":{"status":"pass","evidence":[]},"specify_not_canonical":{"status":"pass","evidence":[]},"diff_first_rationale_present":{"status":"pass","evidence":[]},"generated_task_trace_present":{"status":"pass","evidence":[]},"task_dependencies_materialized":{"status":"pass","evidence":[]}},"blocked_reasons":[],"body_sha256":"sha256:156b7fe8db3a011527e3e55bed47c9602c5906d813aad9862051b552d8c42810","source_provenance":{"source_type":"body_file","body_file":"/tmp/contract_review_once_body_fvo34hh4.md"}}
        vc_preflight:
          decision: pass
          classifications: '[{"ac":"AC1","line":2,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py::test_availability_receipt_ok_returns_true","command_hash":"sha256:e8031458afcfd554640653bb571eb0ef983db2c253b51b3204e81c611bc11925","execution_key_hash":"sha256:90b2247ec8e57431513db4ac6557bb6a0a91c5faf7b8eab75cb498b69f659156","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_truncated":false,"stdout_original_line_count":9,"stderr_truncated":false,"stderr_original_line_count":3,"duration_ms":175,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:00bb834b9603c23a8daa0c05731dae183426a410eb1a68944ccd688e132e6113"}},{"ac":"AC2","line":4,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py::test_availability_failed_exit7_returns_false_with_reason","command_hash":"sha256:4dc4ab985a630440cf733dc5283685e5ad218bdb7472f7fd0a0ac6e577212326","execution_key_hash":"sha256:ce09879d83e4521c8cf13a417fec0a09c898f4e9dc2a70de78ce3fa2dbd53896","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_truncated":false,"stdout_original_line_count":9,"stderr_truncated":false,"stderr_original_line_count":3,"duration_ms":163,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:31c60e6beee49dd3659d489b5b32cd923198280200bc08859046adb304fd5eac"}},{"ac":"AC3","line":6,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py::test_availability_legacy_shape_returns_false","command_hash":"sha256:d164a8c5bdca7cbf7c22613006474ed592f3a8b4fb8766cb854f6212bfff0ba1","execution_key_hash":"sha256:aa37bd0d72244d51f72b4402fe1f771dc970b5da04b4029c6077b664a7d144d3","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_truncated":false,"stdout_original_line_count":9,"stderr_truncated":false,"stderr_original_line_count":3,"duration_ms":156,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:8a1ef538f69368edce06c4594dde66d9a04db1311bd2482e108fd4ab95d6f428"}},{"ac":"AC4","line":8,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py::test_availability_invalid_receipt_shape_returns_false","command_hash":"sha256:7d8b20b4c7dfd2d53dc5290ca920e81339185068b79e84e8f03b9c82d77c7914","execution_key_hash":"sha256:73de8b949767989f581bd2b8caa41dfbae69e7594261d73ccf08cd6d0010fc25","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_truncated":false,"stdout_original_line_count":9,"stderr_truncated":false,"stderr_original_line_count":3,"duration_ms":179,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:e62d040d941b71954a33943e4cbe8b00863cac43b9fccbfdaa713896c93e68cb"}},{"ac":"AC5","line":10,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py::test_availability_real_preflight_loopback_success_returns_true","command_hash":"sha256:56c4c8f33d3939561c96f81d1cd09d5ef403dc152428e7b9170fdf577393519e","execution_key_hash":"sha256:a412d5573975dceaa7e0c398123fb9049d87455fe82de53d6550c903797a831e","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_truncated":false,"stdout_original_line_count":9,"stderr_truncated":false,"stderr_original_line_count":3,"duration_ms":173,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:55bff3586dcf23237b1fefa33da4d217d619f7395101e54edbfa9797b618d008"}},{"ac":"AC6","line":12,"raw_command":"uv run --locked pytest scripts/agent-ops/tests/test_claude_gpt_availability_launch_result_v1.py::test_availability_real_preflight_failure_returns_false","command_hash":"sha256:97e38b1e3a629bfaf06b073cd3dc3b4d16f8a90a00d8796ecc7d7c17716905bf","execution_key_hash":"sha256:01edef2a11a8d1444d3d50966c889bbeefa103e0eebf3e0d2362183bee2671bf","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_truncated":false,"stdout_original_line_count":9,"stderr_truncated":false,"stderr_original_line_count":3,"duration_ms":174,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:1e7e20a32c3c84e92d7c3c8e40592396b2e3623639efa8fe22923f24c66ca8db"}},{"ac":"AC7","line":14,"raw_command":"rg --files-without-match --fixed-strings -e ''payload.get(\"exit_code\")'' scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py","command_hash":"sha256:dc7eaadbb58c7e0054516ed721fb39986834f343b2c93075a63b469e052dee19","execution_key_hash":"sha256:05bc6ef3d70ee329b66c181f95ff8e9a7af7c8a2714b9df349cbcaf118733a1a","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_truncated":false,"stdout_original_line_count":1,"stderr_truncated":false,"stderr_original_line_count":1,"duration_ms":2,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:dc28ac49820f66d80b6dd0eb237bed19880b165fa221598d7fbcf6bd100b856b"}},{"ac":"AC7","line":16,"raw_command":"rg --files-without-match --fixed-strings -e ''payload.get(\"binary_available\")'' scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py","command_hash":"sha256:4b88bc6a24b511b8e5a40183fc1d36491561edf8accee73d308f718288fc303b","execution_key_hash":"sha256:23d9524bf90af72b4f83e74b6c80f1e468f145ae02c00b328561b9167c2d81ea","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_truncated":false,"stdout_original_line_count":1,"stderr_truncated":false,"stderr_original_line_count":1,"duration_ms":2,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:dbd75b04994df56b14afa29039058b132568b3183d7c592c096d18d57d4db728"}},{"ac":"AC7","line":18,"raw_command":"rg --files-without-match --fixed-strings -e ''proxy.get(\"absolute_path\")'' scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py","command_hash":"sha256:ec27fedbb11bc6fd6168f3bd24c4692c0fe2d318e4e48a29887a2fb2f8030491","execution_key_hash":"sha256:80efae46e978c546a1bbc74f157f666462b004bd310eaa4ac86a01b588d3f020","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_truncated":false,"stdout_original_line_count":1,"stderr_truncated":false,"stderr_original_line_count":1,"duration_ms":1,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:e1a67dce618d33468d73758aabf0188c8860f4daafa1f7ba05cd678e07d0e9c3"}},{"ac":"AC7","line":20,"raw_command":"rg --files-without-match --fixed-strings -e ''chatgpt_auth.get(\"available\")'' scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py","command_hash":"sha256:9cd7634dee564330d62fe4ee5f1f3b07f4fb4a9fe2ef75a65906e45b4bb01339","execution_key_hash":"sha256:bfc47d4af8c57a2ba3a8bded4d88107492545078a7e642b5c10845912f518e23","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_truncated":false,"stdout_original_line_count":1,"stderr_truncated":false,"stderr_original_line_count":1,"duration_ms":1,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:124f5c7ed55a05ebbd72ec042d98f3f924eefca3fbd56003a74c15c1e799f5ed"}},{"ac":"AC8","line":22,"raw_command":"uv run --locked pytest --collect-only -q scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke_claude_gpt_live_causal_evidence.py","command_hash":"sha256:fd6e65b15a38263da966cef250c0239175f18aab5507b90860b60f45785ce54c","execution_key_hash":"sha256:da3910a3f5ccf5a21854cf6d1428cfbc05de9a1405b2ef7727a5f415b492fde2","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_truncated":false,"stdout_original_line_count":8,"stderr_truncated":false,"stderr_original_line_count":1,"duration_ms":210,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"timeout_provenance":{"timeout_seconds":150,"cleanup_tail_seconds":15,"source":"static_fallback","estimator_version":"v2","estimator_input_digest":"sha256:f8574545d5c9a43e8cc6f51024076db2e510888ab3923434bee175f44c610817"}}]'
          classifications_transport: {"schema":"vc_preflight_classifications_transport/v1","classification_count":11,"original_payload_sha256":"sha256:8ec38dbf09030570abf804f35adc3ddfb7009a29a3f3e926cde30b172bc2d571","compact":true,"truncated":true}
        declared_path_overlap: '{"schema":"declared_path_overlap/v1","advisory":true,"blocking":false,"decision":"advisory_only","disjoint":true,"overlapping_prs":[],"inventory":{"schema":"OPEN_PR_INVENTORY_V1","repo":"squne121/loop-protocol","state":"open","base_ref":"main","base_sha":"14ae6126b56201cacae71fae2b622cf05b910077","draft_policy":"include_drafts","prs":[{"number":2831,"title":"実装: Claude-GPT model/proxy runtime migration の3分類ルーティングを追加する","base_ref_name":"main","head_ref_name":"worktree-issue-2810-runtime-migration-classifier","head_ref_oid":"7c06e272c14b2d38e8f01899abdf85f3d0d5c9ec","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2831","changed_files_count_graphql":20},{"number":2914,"title":"fix: test-runner が mergeStateStatus=BLOCKED/UNSTABLE だけで TEST_VERDICT を FAIL にしないようにする","base_ref_name":"main","head_ref_name":"worktree-issue-2908-test-runner-blocked-not-fail","head_ref_oid":"2f44329742e2117b1bbbb34452417362558175aa","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2914","changed_files_count_graphql":1},{"number":2931,"title":"fix: Auto mode の固定 /tmp scratch 上書き false-deny を run-scoped workspace で解消する","base_ref_name":"main","head_ref_name":"worktree-issue-2860-run-scoped-scratch","head_ref_oid":"344f5da35326e04dacd13aa57dd962674888f336","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2931","changed_files_count_graphql":6},{"number":2940,"title":"feat: runner evidence に main-session init の permission_mode_observed を出力する","base_ref_name":"main","head_ref_name":"worktree-issue-2935-main-session-permission-mode","head_ref_oid":"37eb1ae20b98cc72fed816a7c88aca0d9b623a39","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2940","changed_files_count_graphql":3},{"number":2946,"title":"fix: runtime smoke fixture の child 起動先を general-purpose に是正し 2.1.289 で hook_id_correlated を成立させる (#2941)","base_ref_name":"main","head_ref_name":"worktree-issue-2941-claude-2-1-289-causal-evidence","head_ref_oid":"0fbc32e03e377b36d5800c940ab8311479c8cf46","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2946","changed_files_count_graphql":1},{"number":2951,"title":"feat: source-evidence C1 の初回取得後 operator 判断を束縛する (#2930)","base_ref_name":"main","head_ref_name":"worktree-issue-2930-source-evidence-human-review-operator-c1","head_ref_oid":"fef59b6d77559cb1c636d2dabb78caa53a049fe7","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2951","changed_files_count_graphql":4},{"number":2952,"title":"fix: launcher 縮退(#2925)で撤去された surface を参照する consumer と文書を現行 check-only receipt へ整合させる","base_ref_name":"main","head_ref_name":"worktree-issue-2938-claude-gpt-stale-surface","head_ref_oid":"6ba4c85203f81bbfa3009ecebcc889b781f454b2","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2952","changed_files_count_graphql":15},{"number":2955,"title":"test: claude-gpt live causal-evidence の可用性判定を CLAUDE_GPT_LAUNCH_RESULT_V1 に合わせる (#2950)","base_ref_name":"main","head_ref_name":"worktree-issue-2950-claude-gpt-availability-launch-result","head_ref_oid":"acf349959b9158b9a5c4895ed651177f4e0364b8","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2955","changed_files_count_graphql":2},{"number":2957,"title":"fix: auto_mode_canary が撤去済み launcher policy/readback を現在の観測値として主張しないようにする","base_ref_name":"main","head_ref_name":"worktree-issue-2949-auto-mode-canary-stale-readback","head_ref_oid":"0631044f1386eec5d6e998bbb40f4b7c9fbf6eff","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/2957","changed_files_count_graphql":3}],"fetched_count":9,"totalCount":9,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:f5a17c7492fd056412eaeb64d9aeff290131a4029e0823b4ebcdc5587e48424c","errors":[]},"inventory_digest_extended":"sha256:c99ef089b88f361bfe6883071808831608c25b005d548645cc8d25f8e0a2ec62","errors":[],"note":"changed-file 名の単純な重なりのみを証明する advisory check。3-way merge・hunk 競合・rename/delete 競合は評価しない(実 Git merge 競合の判定は Issue #1792 の PAIRWISE_MERGE_OBSERVATION_V1 producer の責務)。単独では blocking にしない。disjoint は tri-state(true/false/null)— 観測が不完全な場合は null。"}'
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: '{"issue_number":2950,"contract_source_kind":"issue_comment","contract_source_id":"6005107686","contract_body_sha256":"sha256:156b7fe8db3a011527e3e55bed47c9602c5906d813aad9862051b552d8c42810","allowed_paths_normalized_sha256":"411fccd9afe3b71b461860e6de0aa82467867e31eeb5255694f781f5ca7ce904","base_ref":"main","base_sha_at_snapshot":"14ae6126b56201cacae71fae2b622cf05b910077"}'
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/implementerenhancementphase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions