Skip to content

統合: merged Child A/B/C の単一 clean HEAD で issue-to-impl E2E を検証する #2278

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "#2271"
goal_ref: "Child A/B/C が統合された単一 clean HEAD 上で #2230 相当 workflow を実行し、Parent #2271 の Goal が実際に成立したことを確認する"
change_kind: workflow
runtime_verification_applicability: immediate

Parent Issue

#2271

Parent Goal Ref

Goal: Claude-GPT 上の root/main thread が、workflow capability preflight・optional Spark delegation・Issue 契約修復・impl-review-loop 実行までを安全かつ再開可能に実行できる状態にする。
Desired Destination: Child A/B/C の実装完了後、Claude-GPT が clean worktree から Issue #2230 相当の作業プロンプトを再実行し、typed terminal result(draft_pr_ready / blocked / human_judgment_required / implementation_not_authorized)のいずれかへ到達すること。

Current Validated Scope

Remaining Parent Gaps

本 Issue の完了により Parent #2271 の Desired Destination(typed terminal result への到達確認)が満たされる。本 Issue 完了後、Parent #2271 は closure requirements(mutation transport decision の current性、Child A/B/C PR merge 済み、#2311 merge 済み、本 Issue の green terminal result 等)を満たしていることを確認した上で close する。

Outcome

Child A(#2274)・Child B(#2273)・Child C(#2272)の実装 PR、および #2311 の実装 PR がすべて merge された後の単一 clean integration HEAD 上で、Issue #2230 相当の作業プロンプト(Claude-GPT root/main thread による workflow capability preflight → optional Spark delegation → Issue 契約修復 → fresh review → impl-review-loop handoff の一連の流れ)を、新設する runtime_smoke_test.sh --scenario issue_to_impl mode で再実行し、ISSUE_TO_IMPL_E2E_RESULT_V1 として以下を machine-checkable な証跡に記録した状態にする。

  • 定義済み typed terminal result(draft_pr_ready / blocked / human_judgment_required / implementation_not_authorized)のいずれかへの到達
  • SUT git SHA(integration HEAD)
  • Claude Code version
  • proxy version(Spark delegation 使用時)
  • 到達した terminal result と reason_code
  • 到達した phase と phase trace(reached_phase / phase_trace)
  • 中断時の deterministic resume_from
  • 未分類 Agent schema error が発生しないこと
  • 遅延した uv_not_found が発生しないこと
  • 未分類 GitHub mutation failure が発生しないこと

E2E 実行で新しい実装 defect が見つかった場合、本 Issue の scope へ無制限に code 修正を吸収せず、follow-up Issue として切り出す。

Runtime Verification Applicability

runtime_verification_applicability:
  decision: immediate
  reason: "Claude-GPT runtime での実行プロンプト再実行と typed terminal result 到達は、live smoke による即時実行可能な検証であり、docs/dev/runtime-verification-policy.md の immediate 区分に該当するため"
  applicable_acs: [AC1, AC2, AC3, AC4, AC5, AC6, AC7, AC8, AC9, AC11]
  execution_environment: "Child A/B/C・#2311 merge 済み clean integration HEAD 上で Claude-GPT root/main thread を実行できる、GitHub read/write route・Spark proxy に到達可能な認証済み実行環境"
  skip_conditions: "clean integration HEAD が用意できない、または GitHub read/write route・Spark proxy に到達不可の場合"
  fallback_policy: "fallback は許容しない。typed terminal result 未到達・未分類 error の発生は PASS へ昇格させない。単独の早期 blocked(AC4 の最小到達条件未達)は PASS へ昇格させない。"
  artifact_requirements: "ISSUE_TO_IMPL_E2E_RESULT_V1 として SUT git SHA・Claude Code version・proxy version・terminal result・reason_code・reached_phase・phase_trace・resume_from を含む実行証跡ログを記録する。"

In Scope

  • Child A/B/C・実装: issue-refinement-loop の Step 0 で workflow capability preflight をSubAgent起動前に実行する #2311 の実装 PR が merge された後の clean worktree/HEAD の準備
  • scripts/claude-gpt/runtime_smoke_test.sh への新しい --scenario issue_to_impl mode の薄い実装(既存 launch.sh / issue-refinement-loop / root entry router を使用し、GitHub state のみ既存 fake_gh.py の拡張で fake 化する)
  • ISSUE_TO_IMPL_E2E_RESULT_V1 集約結果 schema の定義(scenario / test_verdict / terminal_result / reason_code / reached_phase / phase_trace / resume_from / sut フィールドを持つ)
  • fixture 三点(prompt.md / issue.json / expected-phases.json)を scripts/claude-gpt/tests/fixtures/issue-2230-equivalent/ に追加し、各ファイルの SHA-256 を実行証跡に記録する
  • 準備した clean HEAD 上での Issue 実装: visual-impact-policy-trusted の decision/evidence artifact に run_attempt identity を結合する #2230 相当プロンプトの再実行(1回以上)
  • 到達した typed terminal result・SUT SHA・Claude Code version・proxy version の記録
  • 未分類 Agent schema error / 遅延 uv_not_found / 未分類 GitHub mutation failure の有無確認(到達した phase trace に紐付けて記録する)
  • 中断が発生した場合の deterministic resume_from の記録
  • 未知の --scenario 引数を exit 2 で拒否し default smoke へフォールバックしないことの確認
  • E2E で発見された新規 defect の follow-up Issue への切り出し(本 Issue 自体では実装しない)

Out of Scope

Acceptance Criteria

Verification Commands

AC1 は既知3件(Child A/B/C)について、merge 済み PR の merge commit ハッシュ(gh pr view <PR> --json mergedAt,mergeCommit で事前に確認済み・本文に固定値として記録)が integration HEAD の祖先であることを git merge-base --is-ancestor で検証する(linked:<issue番号> は GitHub Search API に存在しない構文であり無条件 pass するため使用しない)。#2311 は本改訂時点で未 merge のため PR 番号が確定しておらず、gh issue view による state 読み取り(常に exit 0 で成功する読み取り専用照会であり、返り値の中身の解釈は human judgment の責務)で # baseline-expect: pass を付与する。#2311 の PR が確定し merge された時点で、Child A/B/C と同じ git merge-base --is-ancestor 形式の VC に更新する。scripts/claude-gpt/runtime_smoke_test.sh は live E2E smoke であり VC preflight の command allowlist 対象外(VCP_COMMAND_NOT_ALLOWED)のため、AC2-AC10・AC11 は # preflight-scope: runtime_only を付与し、baseline_vc_preflight による静的実行の対象外(skipped)として明示する。AC10(follow-up Issue 起票)は同一 live smoke 実行の事後手順として human-supervised に確認する。実行自体は本 Issue の Runtime Verification Applicability セクション(execution_environment / artifact_requirements)が定める認証済み実行環境で human-supervised に行う。 git merge-base --is-ancestor は baseline_vc_preflight の git read-only allowlist(status/diff/log/show/ls-files/rev-parse)に merge-base が含まれないため、AC1 の該当3行は # preflight-scope: runtime_only を付与し静的実行の対象外(skipped)として明示する。ancestor 確認自体は本 Issue の Runtime Verification Applicability セクションが定める認証済み実行環境で human-supervised に実行する。

# AC1
# preflight-scope: runtime_only
$ git merge-base --is-ancestor 9b25eeb69491b702e73fa699c4582e93ec07c218 HEAD
# preflight-scope: runtime_only
$ git merge-base --is-ancestor ecc2e5032457036dce3e929496de697ced2f9ef9 HEAD
# preflight-scope: runtime_only
$ git merge-base --is-ancestor f9eb261f6a5882d0ee0227867768b56a354780cb HEAD
# baseline-expect: pass
$ gh issue view 2311 --repo squne121/loop-protocol --json state
# AC2
# AC3
# AC4
# AC5
# AC6
# AC7
# AC8
# AC9
# AC10
# preflight-scope: runtime_only
$ scripts/claude-gpt/runtime_smoke_test.sh --scenario issue_to_impl --fixture scripts/claude-gpt/tests/fixtures/issue-2230-equivalent/issue.json --evidence-out /tmp/issue-to-impl-result.json
# AC11
# preflight-scope: runtime_only
$ scripts/claude-gpt/runtime_smoke_test.sh --scenario does_not_exist

Allowed Paths

scripts/claude-gpt/runtime_smoke_test.sh
scripts/claude-gpt/tests/test_runtime_smoke_issue_to_impl.py
scripts/claude-gpt/tests/fixtures/issue-2230-equivalent/**
scripts/claude-gpt/tests/fixtures/fake_gh.py
docs/dev/workflow.md
docs/dev/agent-run-report.md

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(E2E で見つかった defect の follow-up 化はこれに該当し、Stop ではなく通常の follow-up 起票として扱う)
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  • E2E defect の修正実装へ scope が拡大する場合(follow-up Issue へ分離する)
  • Child A/B/C・実装: issue-refinement-loop の Step 0 で workflow capability preflight をSubAgent起動前に実行する #2311 のいずれかが未 merge のまま本 Issue に着手しようとした場合

Required Skills

なし

Required Design References

  • docs/dev/workflow.md
  • docs/dev/agent-run-report.md

Scope Delta(任意)

Allowed Paths を旧 2 ファイル(docs/dev/agent-run-report.md / docs/dev/workflow.md)から、scripts/claude-gpt/runtime_smoke_test.sh へ新しい --scenario issue_to_impl mode を薄く追加するために必要な以下へ拡張した(Issue #2278 semantic design review Finding 2 / OWNER レビュー反映)。既存 scripts/claude-gpt/tests/fixtures/fake_gh.py を issue_to_impl scenario 用の GitHub state fake 化のために拡張する必要があるため、同ファイルも Allowed Paths に追加する(Issue #2278 semantic re-review Finding、severity: high)。

scripts/claude-gpt/runtime_smoke_test.sh
scripts/claude-gpt/tests/test_runtime_smoke_issue_to_impl.py
scripts/claude-gpt/tests/fixtures/issue-2230-equivalent/**
scripts/claude-gpt/tests/fixtures/fake_gh.py

Related

Activity

  1. squne121 commented on Aug 23, 2026

    @squne121
    OwnerAuthor

    判定

    REQUEST_CHANGES。現状の #2278 は、統合ゲートとしては着手・完了判定ともに NO-GO です。

    確認基準は main@ecc2e5032457036dce3e929496de697ced2f9ef9 です。Child A の PR #2285、Child B の PR #2307、Child C の PR #2282 はすべて merge 済みですが、#2278 の契約はその後のスコープ変更を反映していません。

    敵対的に見ると、現在の #2278 には次の偽陽性経路があります。

    これは防御策の不足ではなく、検証対象と PASS 条件が接続されていない問題です。


    P0 — Merge blocker

    P0-1: #2311 が依存関係から欠落しており、Parent Goal を証明できない

    Parent #2271 の要求順序は、最初に workflow capability preflight を実施し、その後に Spark、Issue 契約修復、fresh review、implementation entry、impl-review-loop へ進むものです。

    しかし PR #2307 の最終レビューでは、#2273 の実装範囲を implementation-entry capability preflight に限定し、issue-refinement-loop の Step 0、Step 1、Step 1b、Step 4 より前に実行する本来の workflow-start preflight は、別 Issue #2311 に切り出したことを根拠に APPROVE されています。#2311 は現在も open です。

    一方、#2278 は依然として Blocked by: #2272, #2273, #2274 のみで、完了すれば Parent Desired Destination が満たされると主張しています。現行 issue-refinement-loop も、workflow 全体の開始前に #2311 の preflight を実行する構成にはなっていません。

    したがって、現在の依存関係では次が起こり得ます。

    1. A/B/C merge 済みとして 統合: merged Child A/B/C の単一 clean HEAD で issue-to-impl E2E を検証する #2278 を開始する。
    2. preflight より前に SubAgent、調査、または mutation 経路へ進む。
    3. integration smoke が何らかの typed result を返す。
    4. 統合: merged Child A/B/C の単一 clean HEAD で issue-to-impl E2E を検証する #2278 と Parent 導入: Claude-GPT → issue-refinement-loop → impl-review-loop の実行契約を end-to-end で整合させる #2271 を close する。
    5. 元の 実装: visual-impact-policy-trusted の decision/evidence artifact に run_attempt identity を結合する #2230 で問題だった「失敗検出が遅すぎる」欠陥は残る。

    必須修正:

    新しい hook を増やす必要はありません。Claude Code の SubagentStart hook は SubAgent 作成を阻止できないため、preflight は Agent 起動前の root/main thread、すなわち #2311 の Step 0 で直接実行するのが適切です。(Claude)


    P0-2: 唯一の E2E Verification Command が実装されていない

    #2278 は AC2–AC10 の確認コマンドとして、次を正本扱いしています。

    scripts/claude-gpt/runtime_smoke_test.sh --issue-2230-equivalent-e2e

    しかし、現行 runtime_smoke_test.sh の scenario 引数処理で確認できる専用モードは、少なくとも次の二系統です。

    • --spark-delegation
    • --scenario issue_create

    --issue-2230-equivalent-e2e を処理する mode、result schema、fixture、判定分岐は定義されていません。

    つまり現在の Verification Command は、#2230 相当 workflow を選択するコマンドになっていません。未知引数が default smoke に落ちるか、後段へ流れて失敗するかにかかわらず、AC3 の E2E 実行を証明できません。

    さらに Allowed Paths は次の docs 二件だけです。

    docs/dev/agent-run-report.md
    docs/dev/workflow.md
    

    この範囲では、欠けている scenario runner、fixture、parser、テストを追加できません。

    個人開発向けの最小修正は、大型の汎用ハーネスを作ることではありません。既存 runner に薄い scenario を一本追加すれば足ります。

    scripts/claude-gpt/runtime_smoke_test.sh
    scripts/claude-gpt/tests/test_runtime_smoke_issue_to_impl.py
    scripts/claude-gpt/tests/fixtures/issue-2230-equivalent/**
    docs/dev/workflow.md
    docs/dev/agent-run-report.md
    

    提案するインターフェースは次です。

    scripts/claude-gpt/runtime_smoke_test.sh \
      --scenario issue_to_impl \
      --fixture scripts/claude-gpt/tests/fixtures/issue-2230-equivalent/issue.json \
      --evidence-out /tmp/issue-to-impl-result.json

    追加要件は二つだけで十分です。

    1. 未知の --scenario は exit 2 で拒否し、default smoke に落とさない。
    2. scenario は production の launch.sh、issue-refinement-loop、root entry router を使い、外部 GitHub state だけを fake にする。

    既存 fake_gh.py は auth、repo read、Issue list/create/view/comment/close、状態永続化、call trace、未対応コマンドの非ゼロ拒否を既に備えています。これを拡張すればよく、別の mutation broker や仮想 GitHub 実装は不要です。


    P0-3: 「typed terminal result」が統一された型になっていない

    #2278 は次の四値のいずれかを terminal result としています。

    draft_pr_ready
    blocked
    human_judgment_required
    implementation_not_authorized
    

    ところが、現在の各 component は異なる語彙を使っています。

    • root entry router は invoke_impl_review_loop、rerun_contract_review、rerun_base_preflight、stop を返す。
    • impl-review-loop は approved 時に IMPL_REVIEW_LOOP_RESULT_V1.status: draft_pr_ready を emit する。
    • validate_autonomy_policy_result.py は status 等のフィールド存在を確認するだけで、統合: merged Child A/B/C の単一 clean HEAD で issue-to-impl E2E を検証する #2278 の四値 enum や phase 到達条件を検証しない。

    #2278 には、各 component の出力を誰が四値へ変換するか、どの reason_code を正本とするか、未知 status をどう拒否するかがありません。この状態では、最終 prose や grep 結果を terminal result と誤認できます。

    特に blocked の扱いが危険です。Parent の anchor review が述べるように、期待された境界で正しく停止した typed blocked は有効な契約検証になり得ます。しかし、GitHub auth 不足や proxy 不在で最初に停止しただけの blocked は、A/B/C/2311 の統合を何も検証していません。現在の AC4 はこの二者を区別しません。

    薄い集約結果を一つ定義するべきです。

    schema: ISSUE_TO_IMPL_E2E_RESULT_V1
    scenario: positive | expected_block | resume
    test_verdict: pass | fail | skipped
    
    terminal_result: >-
      draft_pr_ready |
      blocked |
      human_judgment_required |
      implementation_not_authorized
    
    reason_code: "<stable code>"
    reached_phase: >-
      workflow_preflight |
      spark_disposition |
      issue_mutation_readback |
      fresh_contract_review |
      implementation_entry |
      impl_review_loop_entry |
      terminal
    
    phase_trace:
      - phase: workflow_preflight
        status: completed
    
    resume_from: null
    
    sut:
      git_sha: "<40hex>"
      git_dirty: false
      claude_code_version: "<version>"
      proxy_version: null
    
    unexpected_errors: []

    判定規則は以下で十分です。

    • positive scenario は impl_review_loop_entry 以上へ到達しなければ fail。
    • expected_block は、事前宣言した phase と reason で停止した場合だけ pass。
    • terminal_result: blocked 単独では PASS にしない。
    • skipped は Parent closure の証拠にしない。
    • 未知 status、未知 error、phase trace 欠落は fail。

    最終出力を prose から抽出する必要もありません。Claude Code は非対話実行で --output-format json --json-schema を提供し、schema 準拠結果を structured_output として返せます。launcher が当該フラグを透過できるなら、これを使う方が grep ベースより単純で堅牢です。(Claude)


    P0-4: AC1 の linked:227x 検索式は GitHub の仕様に存在しない

    現在の AC1 は次の検索を使っています。

    gh pr list --repo squne121/loop-protocol --search "linked:2274 is:merged"

    GitHub の linked: qualifier が受け取る値は番号ではなく、linked:pr または linked:issue です。linked:2274、linked:2273、linked:2272 という構文は定義されていません。加えて gh pr list は通常、既定で open PR のみを列挙します。([GitHub Docs]3)

    また、Issue 本文は「空リストでも exit 0 なので baseline pass」と説明していますが、空リストを成功扱いする確認は、PR が存在しない場合を検出できないため、前提条件の検証として逆です。

    既知の child→PR 対応を明示的に固定してください。

    integration_prs:
      2274: 2285
      2273: 2307
      2272: 2282
      2311: <merged PR number>

    検証は gh pr view と Git ancestor 確認で十分です。

    check_merged_pr() {
      pr="$1"
    
      data="$(
        gh pr view "$pr" \
          --repo squne121/loop-protocol \
          --json mergedAt,mergeCommit
      )"
    
      jq -e '
        .mergedAt != null and
        (.mergeCommit.oid | type == "string")
      ' <<<"$data" >/dev/null
    
      merge_sha="$(jq -r '.mergeCommit.oid' <<<"$data")"
      git merge-base --is-ancestor "$merge_sha" HEAD
    }
    
    check_merged_pr 2285
    check_merged_pr 2307
    check_merged_pr 2282
    check_merged_pr <PR_FOR_2311>

    gh pr view --json は mergedAt、mergeCommit、closingIssuesReferences 等を提供します。必要なら closing reference も補助確認できますが、明示的に固定した PR 番号と merge commit の ancestor 確認を正本にする方が単純です。([GitHub CLI]4)


    P1 — 重要な品質欠陥

    P1-1: 「Issue #2230 相当プロンプト」が再現可能な入力として固定されていない

    #2230 は実在する implementation Issue で、visual-impact artifact の run-attempt binding を扱う大きな契約です。#2278 は「#2230 相当」としか書いておらず、次を固定していません。

    • 実際に投入する prompt 全文
    • target Issue body の snapshot
    • body SHA-256
    • Claude Code の起動引数
    • Spark mode と fallback policy
    • 許可される mutation
    • 期待する phase sequence
    • fixture の初期 GitHub state

    したがって、実行者ごとに「相当」の解釈が変わり、後から #2230 の本文や関連コメントが編集されれば再現性も失われます。実在 #2230 を直接対象にすると、意図しない Issue 編集、branch 作成、PR 作成へ進む可能性もあります。

    次の三ファイル程度で固定すべきです。

    scripts/claude-gpt/tests/fixtures/issue-2230-equivalent/
    ├── prompt.md
    ├── issue.json
    └── expected-phases.json
    

    evidence には三ファイルの SHA-256 を記録します。production の skill と launcher は本物を使用し、GitHub provider だけを fake にしてください。実 GitHub に disposable Issue や cleanup workflowを追加する必要はありません。


    P1-2: AC6–AC8 が「通った経路」ではなく「文字列が無かったこと」しか見ていない

    現在の次の AC は、すべて不在確認です。

    • 未分類 Agent schema error が発生しない。
    • 遅延 uv_not_found が発生しない。
    • 未分類 GitHub mutation failure が発生しない。

    workflow preflight で即停止すれば、Agent、uv、mutation の各経路を一度も実行せず、三条件を自明に満たせます。

    最低限、次の phase coverage を結果に含めるべきです。

    workflow_preflight
    spark_disposition
    issue_fetch
    issue_repair_and_readback       # repair が必要な fixture の場合
    fresh_contract_review
    implementation_entry
    impl_review_loop_entry
    terminal
    

    各 phase は completed | expected_block | failed | not_applicable のいずれかを持たせます。全 tool event や transcript を保存する必要はありません。phase 境界だけで十分です。


    P1-3: AC9 の resumability が一度も検証されない可能性がある

    AC9 は「中断が発生した場合」にだけ resume_from を要求します。正常実行だけなら AC9 は一度も評価されず、Parent Goal の「再開可能」を証明しないまま close できます。

    網羅的な chaos harness は不要です。既存 root entry router には audit comment mutation の partial failure 後に live readback から resume_from を導出する経路があり、PR #2282 でもそのテストが実装されています。

    統合 E2E では一件だけ、決定論的な interruption を追加してください。

    1. 最初の run で既知の phase に fault を注入する。
    2. typed resume_from を確認する。
    3. 同じ fixture state で二回目を実行する。
    4. 完了済み mutation が重複しないことを fake provider の state/call trace で確認する。
    5. 二回目が次の phase へ進むことを確認する。

    これで十分です。mutation phase ごとの全 fault matrix は不要です。


    P1-4: optional Spark が実質 mandatory になっている

    Parent Goal は Spark delegation を optional としています。一方 #2278 の execution environment と skip condition は、Spark proxy に到達できない場合に E2E 自体を skip する契約です。evidence 側では proxy version を「使用時のみ」としているため、同じ Issue 内で optional/mandatory が矛盾しています。

    趣味開発の運用を止めない構成は次です。

    • 統合 positive lane: preferred + fallback allowed
    • 結果に spark_disposition: used | fallback | not_requested を記録
    • integration HEAD 上の Spark 単体 live smoke: entitlement と proxy が利用可能な場合に既存 --spark-delegation を再実行
    • proxy 不在は統合 positive lane の SKIP 理由にしない
    • Spark required lane が必要なら、別の optional evidence として扱う

    Child A 自体は PR #2285 で live Spark E2E と model-resolution evidence を実装済みです。#2278 で再び巨大な Spark harness を作る必要はありません。


    P1-5: agent_run_report/v1 を新しい control-plane にしてはいけない

    既存 agent_run_report/v1 は、public-safe 化、redaction、GitHub comment upsert、marker ownership、pagination completeness などを扱う汎用公開レポート基盤です。#2278 の scenario 実行や phase 判定を行う runner ではありません。

    これを #2278 の実行許可や PASS 判定へ組み込むと、今回必要のない公開用ハーネスが workflow を支配します。

    推奨する責務分離は次です。

    • ISSUE_TO_IMPL_E2E_RESULT_V1: ローカルの一枚の JSON。テスト判定の正本。
    • agent_run_report/v1: 必要なら上記 JSON の要約と artifact ref を公開するだけ。
    • GitHub comment: SHA、terminal result、reason、reached phase、evidence ref の短い要約だけ。
    • 新しい authorization packet、ledger、digest chain、enforcing hook、mutation brokerは追加しない。

    最小改訂案

    #2278 の Acceptance Criteria は、以下程度まで削って組み直すのが妥当です。

    1. Prerequisite
      実装: Spark delegation の per-invocation model pin 回帰を解消し final-diff live E2E を必須化する #2274→PR fix: spark-codex model binding を session-local agent definition 専有にする (#2274) #2285、実装: Claude-GPT に workflow-profile capability preflight と controlled GitHub route を配線する #2273→PR 実装: Claude-GPT に workflow-profile capability preflight と controlled GitHub route を配線する #2307、実装: issue-refinement-loop から impl-review-loop への fresh implementation entry contract を統一する #2272→PR 実装: issue-refinement-loop から impl-review-loop への fresh implementation entry contract を統一する (#2272) #2282、実装: issue-refinement-loop の Step 0 で workflow capability preflight をSubAgent起動前に実行する #2311→対応 PR が merge 済みで、各 merge commit が integration HEAD の ancestor である。

    2. Clean SUT
      git status --porcelain が空で、SUT SHA を記録する。

    3. Pinned input
      実装: visual-impact-policy-trusted の decision/evidence artifact に run_attempt identity を結合する #2230-equivalent prompt、Issue fixture、expected phases の digest を記録する。

    4. Positive E2E
      production launch.sh と production skills を使用し、少なくとも impl_review_loop_entry まで到達する。早期 blocked は positive lane の PASS にしない。

    5. Expected-block E2E
      一件だけ、宣言済みの capability failure を注入し、期待 phase・reason の typed blocked を確認する。

    6. Resume E2E
      一件だけ deterministic interruption を注入し、resume_from、重複 mutation 不在、二回目の進行を確認する。

    7. Structured evidence
      ISSUE_TO_IMPL_E2E_RESULT_V1 を JSON Schema で検証し、unexpected_errors == []、git_dirty == false を要求する。

    8. Closure rule
      skipped、環境不足による早期 blocked、未知 status、phase trace 欠落は Child D および Parent closure の証拠にしない。

    現在の AC10「defect が見つかった場合に follow-up Issue を起票する」は、E2E の受け入れ条件ではなく事後運用へ移すべきです。Issue 作成能力の不調で本来の E2E 証跡まで失敗扱いにする必要はありません。


    最終結論

    #2278 の方向性、すなわち「個別 Child の green ではなく統合 HEAD で元の workflow を再実行する」という判断自体は正しいです。ただし、現在の契約はその目的を実行可能な形に落とせていません。

    着手前に必要なのは、セキュリティ層や汎用ハーネスの追加ではなく、次の三点です。

    1. 実装: issue-refinement-loop の Step 0 で workflow capability preflight をSubAgent起動前に実行する #2311 を正式な blocker に追加する。
    2. 実在する薄い issue_to_impl scenario runner を追加する。
    3. positive/negative/skip を区別する一枚の structured result を定義する。

    この三点を満たすまでは、#2278 が green になっても Parent #2271 の Goal 完了を示しません。

    最終判定: REQUEST_CHANGES。現行 Issue contract のまま実行開始すべきではありません。

    本レビューは current main の Issue、PR、コメント、リポジトリ資産と公式仕様を照合したものです。Claude-GPT の実機 E2E smoke 自体は実行していません。

  2. squne121 commented on Aug 23, 2026

    @squne121
    OwnerAuthor

    root-owned entry router audit

    route: invoke_impl_review_loop
    reason: fresh_review_go_live_equality

  3. squne121 commented on Aug 23, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop 終了報告

    Status: approved

    対象コメント(#2278 (comment) )の REQUEST_CHANGES 判定(P0-1〜P0-4, P1-1〜P1-5)を踏まえ、本文を3回の rewrite iteration で改訂しました。

    • Iteration 1: Blocked by へ 実装: issue-refinement-loop の Step 0 で workflow capability preflight をSubAgent起動前に実行する #2311 追加、Allowed Paths 拡張、ISSUE_TO_IMPL_E2E_RESULT_V1 schema 導入、AC1/AC4/AC6-8/AC11 再構成、AC1 VC を linked: qualifier から git merge-base --is-ancestor ベースへ置換
    • Iteration 2: AC1 の git merge-base 系VC行が baseline_vc_preflight の git read-only allowlist(status/diff/log/show/ls-files/rev-parse)外のため # preflight-scope: runtime_only へ修正(deterministic checker VERDICT: needs-fix → approve)
    • Iteration 3: issue-design-reviewer の semantic re-review で検出した high finding(fake_gh.py が Allowed Paths / Scope Delta から欠落)を解消

    最終 body_sha256: sha256:ea82b76524d6d78c594954b792b67628dddabdfc6aee0787d1ba66e2c6b5c13e

    Step 2 (deterministic checker): VERDICT approve, blockers 0
    Step 2.5 (semantic design review, issue-design-reviewer): assessment clear, findings 0(medium/low findings 3件は owner 判断待ちとして本文外に記録・保留: AC1 runtime-verification タグ整合性、AC9 deterministic interruption sub-scenario 要否、Spark disposition optional/mandatory 矛盾)

    LOOP_HANDOFF_RESULT_V1:
      status: impl_ready
      routing_action: run_impl_review_loop
      contract_review:
        status: go
        gate_result: fresh_go
        latest_comment_url: null
        generated_at: "2026-08-23T03:43:09Z"
        body_sha256: "sha256:ea82b76524d6d78c594954b792b67628dddabdfc6aee0787d1ba66e2c6b5c13e"
      metadata:
        title_prefix_ready: true

    Note: root-owned entry router(root_entry_router.py)は route: invoke_impl_review_loop / invoked: true を返しましたが、本 Issue の Blocked by には現在も未 merge の #2311 が含まれています。issue-contract-review の go 判定は contract 自体の構造的着手可能性のみを確認するものであり、#2311 の merge 状況(外部前提条件)までは検証しません。今回のタスクスコープは issue-refinement-loop の実行(Issue 本文の改善)であったため、impl-review-loop の実際の起動は本ターンでは見送り、人間判断に委ねます。#2311 の merge 完了後に改めて impl-review-loop 起動を検討してください。

  4. self-assigned this
    on Aug 23, 2026
  5. squne121 commented on Aug 23, 2026

    @squne121
    OwnerAuthor

    implement-issue: 実装完了 (2026-08-24T00:00:00Z)

    • PR: feat: runtime_smoke_test.sh に --scenario issue_to_impl を追加し統合 E2E を live 実行検証する #2325
    • Worktree: .claude/worktrees/issue-2278-runtime-smoke-issue-to-impl
    • Branch: worktree-issue-2278-runtime-smoke-issue-to-impl
    • Verification: pnpm typecheck/lint/test/build 4/4 PASS、gemini model_routing pytest 24 PASS、scripts/claude-gpt/tests/ pytest 247 passed / 1 skipped
    • Runtime Verification (AC1-AC11、decision: immediate): 全て human-supervised に live 実行し確認済み
      • AC1: git merge-base --is-ancestor 3件すべて exit 0(Child A/B/C merge commit が integration HEAD の祖先)。gh issue view 2311 --json state = {"state":"CLOSED"}
      • AC2-AC10: runtime_smoke_test.sh --scenario issue_to_impl --fixture .../issue-2230-equivalent/issue.json --evidence-out /tmp/issue-to-impl-result.json を2回実行し両方 PASS。test_verdict: pass, reached_phase: impl_review_loop_entry, terminal_result: blocked, reason_code: smoke_harness_does_not_execute_real_mutation_by_design。phase_trace 5件(workflow_capability_preflight: completed / spark_delegation: not_applicable / issue_contract_repair: completed / fresh_review: completed / impl_review_loop_entry: expected_block)。未分類 error・遅延 uv_not_found・未分類 GitHub mutation failure は観測なし。resume_from は中断が発生しなかったため null。
      • AC11: runtime_smoke_test.sh --scenario does_not_exist は exit 2 で拒否、default smoke へのフォールバックなしを確認
    • 後続: PR レビュー(pr-review-judge)→ マージ → post-merge-cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions