Skip to content

test(#483): manual playtest の実施証跡を docs/playtest/m2-combat-mvp.md に追加する #543

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
goal_ref: "#483 M2 Combat MVP Gate の Product Acceptance を達成する"
change_kind: docs
parent_issue: 483

Parent Issue

#483

Parent Goal Ref

Current Validated Scope

Remaining Parent Gaps

  • WSL2/Ubuntu manual playtest 実行環境 runbook・preflight の整備(別 Issue で管理)

Outcome

docs/playtest/m2-combat-mvp.md に ## Human Playtest Evidence セクションが追加され、人間が pnpm build && pnpm preview で実際にブラウザ操作した証跡(manual_operator・executed_at・tested_commit・git_status_short・dependency_state・OS/browser・3シナリオ別 artifact)が記録された状態。status が accepted または accepted_with_deferred に更新されている。

Background

#483 の anchor comments が「manual playtest 未実施のまま M2 完了とは言えない」と指摘。#483 の親 AC「1 sortie を開始→WASD 操作→mouse 射撃→enemy 接近→collision→damage→victory or defeat まで通せる」は自動テストの代理指標では満たせず、人間の目視確認が必要。

この Issue は以下が main に入った後に実施する:

WSL2/Ubuntu での実行環境 runbook・preflight の整備は別途 child Issue(#543 の前提準備)として管理する。

AI による自動操作・Playwright 実行は補助証跡にすぎず、この Issue の目的である「人間が実際にブラウザで操作して確認した証跡」の代替にはならない。

In Scope

Out of Scope

  • AI による自動テスト代行・Playwright での代替証跡
  • WSL2/Ubuntu runbook の作成(別 Issue で管理)
  • M2 戦闘仕様の変更
  • CanvasRenderer / HudController の実装変更
  • Playwright E2E spec の拡張

Acceptance Criteria

  • AC1: docs/playtest/m2-combat-mvp.md に ## Human Playtest Evidence セクションが存在する
  • AC2: 証跡に manual_operator が記載されている
  • AC3: 証跡に executed_at(タイムゾーン付き)が記載されている
  • AC4: 証跡に tested_commit(フル SHA)が記載されている
  • AC5: 証跡に git_status_short: "" が記載されている(clean working tree)
  • AC6: 証跡に dependency_state が記載され、feat(#483): CanvasRenderer と HudController に M2 combat entities と sortie 結果表示を追加する #541/spec/impl(#483): MVP sortie を敵機全滅勝利・30秒終了に変更する #542 相当の変更が tested_commit に含まれることが明記されている
  • AC7: 証跡に command.serve: pnpm preview が明記されている
  • AC8: 証跡に os / browser(バージョン含む)/ viewport / device_pixel_ratio / input_device が記載されている
  • AC9: シナリオ all_enemies_defeated_victory の artifact と confirmed 観察結果が記載されている
  • AC10: シナリオ hp_zero_defeat の artifact と confirmed 観察結果が記載されている
  • AC11: シナリオ timeout_30s_defeat の artifact と confirmed 観察結果が記載されている
  • AC12: WASD 移動・mouse 射撃・enemy 可視・collision・damage・HUD HP update・Canvas overlay と HUD 結果一致の確認結果が記載されている
  • AC13: status が accepted または accepted_with_deferred に更新されている
  • AC14: pnpm typecheck && pnpm lint && pnpm test && pnpm build が通る

Verification Commands

# AC14
$ pnpm typecheck
$ pnpm lint
$ pnpm test
$ pnpm build
# AC1
$ rg "^## Human Playtest Evidence" docs/playtest/m2-combat-mvp.md
# AC2
$ rg "manual_operator:" docs/playtest/m2-combat-mvp.md
# AC3
$ rg "executed_at:" docs/playtest/m2-combat-mvp.md
# AC4
$ rg -U "## Human Playtest Evidence[\s\S]*tested_commit:" docs/playtest/m2-combat-mvp.md
# AC5
$ rg "git_status_short:" docs/playtest/m2-combat-mvp.md
# AC6
$ rg "dependency_state:" docs/playtest/m2-combat-mvp.md
# AC7
$ rg "command\.serve:" docs/playtest/m2-combat-mvp.md
# AC8
$ rg "viewport:" docs/playtest/m2-combat-mvp.md
# AC9
$ rg "all_enemies_defeated_victory" docs/playtest/m2-combat-mvp.md
# AC10
$ rg "hp_zero_defeat" docs/playtest/m2-combat-mvp.md
# AC11
$ rg "timeout_30s_defeat" docs/playtest/m2-combat-mvp.md
# AC12
$ rg "WASD\|wasd\|movement" docs/playtest/m2-combat-mvp.md
# AC13
$ rg "^status: accepted" docs/playtest/m2-combat-mvp.md

Allowed Paths

  • docs/playtest/m2-combat-mvp.md

Stop Conditions

Runtime Verification Applicability

  • decision: not_applicable
  • reason: この Issue は AI による実装作業ではなく、人間が直接ブラウザ操作して証跡を記録する作業である。AI が実装する成果物が存在しないため runtime verification は適用外。証跡の記録と docs 更新のみが変更対象。
  • deferred_destination: N/A

Required Skills

  • M2 Combat MVP の仕様理解(全敵撃破 victory、HP 0 defeat、30s timeout defeat)
  • WSL2/Ubuntu でのブラウザ実行(Windows browser → localhost または WSLg 経由)
  • pnpm / Node.js 環境操作・pnpm build && pnpm preview

Notes

  • この Issue は人間が直接プレイして記録する作業を含む。AI による自動代行は不可。
  • Depends on: feat(#483): CanvasRenderer と HudController に M2 combat entities と sortie 結果表示を追加する #541(CanvasRenderer 描画)、spec/impl(#483): MVP sortie を敵機全滅勝利・30秒終了に変更する #542(勝敗仕様変更)が main HEAD に入っていること。
  • WSL2/Ubuntu での manual playtest 実行環境(runbook・preflight)は別 Issue(docs/test: WSL2/Ubuntu human playtest 実行環境 runbook と preflight を追加する)として管理し、本 Issue の実施前に完了させること。
  • pnpm dev は optional smoke path として許容するが、Product Acceptance の証跡は pnpm build && pnpm preview で取得すること。pnpm dev のみの確認は accepted_with_deferred 扱いに留める。
  • Playwright や E2E のスクリーンショット/動画は補助証跡として有用だが、人間観察の代替にはならない。

Activity

  1. added
    documentation
    on May 31, 2026
  2. squne121 commented on Jun 2, 2026

    @squne121
    OwnerAuthor

    人間からのコメントです。
    人間によるプレイテストについて、実行環境については考慮されていますか?文言によるプレーテストについて、実行環境については考慮されていますか?WSL2、Ubuntu上で実行できるか。検討や準備の不足があれば、そのためのイシューを起票してほしいです。

  3. squne121 commented on Jun 2, 2026

    @squne121
    OwnerAuthor

    #543 (comment)

    結論: #543 だけでは不足です。
    #543 は「人間が pnpm dev または pnpm preview で実際にブラウザ確認し、証跡に OS/browser を書く」ことを求めていますが、WSL2 / Ubuntu 上で人間が実行できる前提・手順・トラブル時の逃げ道を検証する Issue にはなっていません。(GitHub)

    現状の関連情報を見ると、docs/playtest/m2-combat-mvp.md には既に platform: linux (WSL2)、browser: chromium (Playwright) が記録されています。ただしこれは主に Playwright 自動 E2E の環境証跡であり、手動チェックは「human tester が pnpm preview または pnpm dev をブラウザで実行する」としか書かれていません。(GitHub)
    さらに親 Issue #483 でも Open Questions に「manual playtest の実施方法(local dev server vs preview build)」が残っています。つまり、今回の人間コメントは正当です。(GitHub)

    WSL2/Ubuntu での実行可能性については、技術的には可能です。Windows 側ブラウザから WSL 内の Node/Vite サーバーへ localhost でアクセスする経路は Microsoft の WSL networking docs に記載されています。(Microsoft Learn)
    また、WSLg を使えば WSL2 上で Linux GUI アプリも実行できますが、Windows 10 build 19044+ または Windows 11、vGPU ドライバ、WSL2 などの前提があります。(Microsoft Learn)
    Vite 側も WSL2 では host 設定に注意が必要で、特に LAN 経由アクセスは host: true だけでは不十分と公式 docs が明記しています。(vitejs)

    したがって、#543 に直接混ぜるより、#543 の前提準備 Issueとして起票するのがよいです。

    起票案

    Title:
    docs/test: WSL2/Ubuntu human playtest 実行環境 runbook と preflight を追加する
    
    ## Machine-Readable Contract
    
    ```yaml
    contract_schema_version: v1
    issue_kind: implementation
    parent_issue: 543
    goal_ref: "#543 の human manual playtest を WSL2/Ubuntu 環境で再現可能に実行できる状態にする"
    change_kind: docs+tooling

    Summary

    #543 は human manual playtest の証跡追加を要求しているが、WSL2/Ubuntu 上で人間が pnpm dev / pnpm preview を起動し、ブラウザで確認できるかの実行環境準備が明文化されていない。

    本 Issue では、WSL2/Ubuntu での manual playtest 実行手順、前提条件、推奨ブラウザ経路、preflight check、失敗時の切り分けを文書化する。必要であれば最小の deterministic preflight script を追加する。

    Background

    #543 は manual playtest evidence として OS/browser、起動コマンド、commit SHA、スクリーンショット/動画を要求している。しかし、以下が未定義である。

    • WSL2/Ubuntu 上で pnpm install / pnpm dev / pnpm preview が実行可能か
    • Windows browser から WSL 内 Vite server へアクセスする想定か
    • WSLg 上の Linux browser / Playwright Chromium headed を使う想定か
    • pnpm preview と pnpm dev のどちらを正とするか
    • port / host binding の既定値
    • browser 起動・スクリーンショット・動画取得方法
    • WSL2 固有の networking / GUI / browser dependency 失敗時の切り分け

    #543 の playtest 実施前に、実行環境を deterministic に準備できる状態にする必要がある。

    Outcome

    WSL2/Ubuntu で manual playtest を行うための runbook が追加され、#543 の tester が迷わず以下を実行できる状態になる。

    1. 環境確認
    2. 依存関係 install
    3. dev server または preview server 起動
    4. Windows browser または WSLg browser でアクセス
    5. 操作確認
    6. screenshot / video evidence 取得
    7. docs/playtest/m2-combat-mvp.md へ証跡記録

    In Scope

    • WSL2/Ubuntu manual playtest runbook の追加
    • pnpm preview を primary path、pnpm dev を fallback path として明記
    • Windows browser から http://localhost:<port> へアクセスする経路の明記
    • WSLg / Linux browser 経路は optional path として明記
    • Node / pnpm / browser / Playwright browser install 状態の確認手順
    • Vite server の host / port / strictPort 方針の明記
    • screenshot / video evidence の取得手順
    • test(#483): manual playtest の実施証跡を docs/playtest/m2-combat-mvp.md に追加する #543 の docs/playtest/m2-combat-mvp.md に runbook 参照を追加
    • 必要なら scripts/check-manual-playtest-env.mjs を追加し、最低限の preflight を自動化する

    Out of Scope

    • M2 戦闘仕様の変更
    • CanvasRenderer / HudController の描画仕様変更
    • game balance tuning
    • Playwright E2E spec の拡張
    • Windows / macOS native 環境の完全サポート
    • LAN / mobile device からのアクセス保証

    Acceptance Criteria

    • docs/playtest/manual-playtest-runbook.md が追加されている

    • runbook に WSL2/Ubuntu primary path がある

    • runbook に以下が明記されている

      • required OS/runtime: WSL2 + Ubuntu
      • required commands: corepack enable, pnpm install, pnpm build, pnpm preview
      • primary browser route: Windows browser → http://localhost:<port>
      • optional browser route: WSLg/Linux browser
      • expected ports and host binding
      • screenshot/video evidence capture method
      • common failure cases and remedies
    • docs/playtest/m2-combat-mvp.md から runbook が参照されている

    • test(#483): manual playtest の実施証跡を docs/playtest/m2-combat-mvp.md に追加する #543 の manual playtest evidence に記録すべき environment fields が runbook と整合している

    • preflight script を追加する場合、以下を確認できる

      • Node version
      • pnpm availability
      • package install state
      • pnpm build availability
      • preview port availability
      • WSL detection best-effort
    • pnpm typecheck && pnpm lint && pnpm test && pnpm build が通る

    Verification Commands

    pnpm typecheck
    pnpm lint
    pnpm test
    pnpm build
    
    test -f docs/playtest/manual-playtest-runbook.md
    rg "WSL2|Ubuntu|pnpm preview|localhost|screenshot|video" docs/playtest/manual-playtest-runbook.md
    rg "manual-playtest-runbook" docs/playtest/m2-combat-mvp.md

    If preflight script is added:

    node scripts/check-manual-playtest-env.mjs

    Allowed Paths

    • docs/playtest/manual-playtest-runbook.md
    • docs/playtest/m2-combat-mvp.md
    • scripts/check-manual-playtest-env.mjs
    • package.json

    Stop Conditions

    
    ## #543 へのコメント案
    
    ```md
    環境観点の不足を確認しました。
    
    #543 は human manual playtest evidence として OS/browser/起動コマンドの記録を要求していますが、WSL2/Ubuntu 上で人間が実行できるか、どのブラウザ経路を使うか、`pnpm dev` / `pnpm preview` のどちらを正とするか、host/port/networking/WSLg の前提を明文化していません。
    
    `docs/playtest/m2-combat-mvp.md` には WSL2 + Chromium の E2E 実行証跡がありますが、これは Playwright 自動テスト寄りであり、human manual playtest の実行環境準備としては不足しています。
    
    #543 に混ぜると playtest evidence 追加と環境 runbook 整備が混ざるため、前提準備 Issue として以下を別途起票するのが妥当です。
    
    - WSL2/Ubuntu manual playtest runbook の追加
    - Windows browser → WSL localhost 経路を primary path として明記
    - WSLg/Linux browser は optional path として明記
    - `pnpm preview` primary / `pnpm dev` fallback の切り分け
    - screenshot/video evidence の取得手順
    - common failure cases の切り分け
    - 必要なら preflight script 追加
    
    この Issue が閉じてから #543 の human manual playtest を実施する順序にしたいです。
    

    私から GitHub に直接起票はできません。上の Issue 本文をそのまま使えばよいです。

  4. squne121 commented on Jun 2, 2026

    @squne121
    OwnerAuthor

    判定: REQUEST_CHANGES

    #543 は方向性としては必要ですが、このまま実装・close させると #483 の Product Acceptance 証跡として弱い です。特に、依存先の状態、#542 による勝敗条件変更、手動証跡の真正性、dev/preview の配布物検証差分が契約に落ちていません。

    #543 自体は「人間がブラウザで実際に M2 Combat MVP を遊び、日時・commit SHA・OS/browser・操作・スクショ/動画を docs/playtest/m2-combat-mvp.md に追記する」Issue です。Allowed Paths も同 doc のみに限定されています。これは #483 の「Engineering Complete だが Product Acceptance Pending」という状態を解消するための最後の人間確認として位置づけられています。([GitHub]1)

    Blocker 1: 依存先の merge 状態と tested commit が契約化されていない

    #543 の Notes には「描画追加」と「playtest doc 修正」に依存するとありますが、AC には 依存 Issue/PR が main に入った exact commit を確認する要件 がありません。#541 は CanvasRenderer/HUD の可視化を扱い、#542/#552 は MVP の勝敗条件を 30 秒・全敵撃破勝利へ変えています。したがって #543 の手動 playtest は、少なくとも #541 相当の可視化実装 と #542/#552 の勝敗仕様変更 を含む main HEAD に対して実施される必要があります。([GitHub]1)

    要求すべき追記:

    dependency_state:
      required_issues:
        - "#541 visual/HUD rendering merged into tested commit"
        - "#542 30s/all-enemies victory semantics merged into tested commit"
      tested_commit: "<git rev-parse HEAD>"
      working_tree_clean: true

    git status --short が空でない状態の証跡は、Product Acceptance 証跡として不可にすべきです。

    Blocker 2: #543 の勝敗確認が #542 後の仕様に追従していない

    #543 は「victory/defeat」を確認すると書いていますが、#542 で仕様はより具体化されています。現在の M2 MVP は 全敵撃破で victory、30 秒到達で timeout defeat、HP 0 で defeat、優先順位は HP 0 defeat > all enemies defeated victory > 30s timeout defeat です。([GitHub]2)

    したがって #543 の AC は最低限、次を明示すべきです。

    manual_scenarios:
      - id: movement_and_shooting
        required: true
      - id: enemy_visible_and_approaches
        required: true
      - id: collision_damage_visible
        required: true
      - id: all_enemies_defeated_victory
        required: true
      - id: hp_zero_defeat
        required: true
      - id: timeout_30s_defeat
        required: true

    単に「victory/defeat を確認」では、旧仕様の 120 秒 survival victory と新仕様の 30 秒 timeout defeat の取り違えを検出できません。#552 は 120,000ms から 30,000ms への変更、全敵撃破勝利、30 秒 timeout defeat、優先順位の修正を含めて merge されています。([GitHub]3)

    Blocker 3: 証跡スキーマが弱く、後から検証できない

    #543 の現行 AC は「screenshot/video link or inline attachment」を求めていますが、証跡の検証性としては不足です。GitHub は issue/PR/comment/Markdown に画像などを drag/drop・paste・file select で添付できますが、添付しただけでは「どの commit・どの build・どの terminal state の証跡か」が曖昧になります。([GitHub Docs]4)

    docs/playtest/m2-combat-mvp.md には、スクショ/動画ごとに最低限これを要求すべきです。

    human_playtest_evidence:
      manual_operator: "<human name or handle>"
      executed_at: "2026-06-02T..:..:..+09:00"
      tested_commit: "<full SHA>"
      git_status_short: ""
      command:
        build: "pnpm build"
        serve: "pnpm preview"
      url: "http://127.0.0.1:4173/"
      os: "<OS/version>"
      browser: "<browser/version>"
      viewport: "1280x720"
      device_pixel_ratio: 1
      input_device: "keyboard+mouse"
      artifacts:
        - scenario: "all_enemies_defeated_victory"
          file: "<github attachment or repo-relative path>"
          artifact_sha256: "<sha256 if local/repo artifact>"
          observed: "victory overlay and HUD result matched"
        - scenario: "hp_zero_defeat"
          file: "<...>"
          observed: "defeat overlay and HUD result matched"
        - scenario: "timeout_30s_defeat"
          file: "<...>"
          observed: "defeat after 30s timeout"

    rg "commit" のような検証コマンドは弱すぎます。tested_commit が git rev-parse HEAD と一致すること、作業ツリーが clean であること、実行コマンドと成果物が対応することを確認すべきです。

    Blocker 4: pnpm dev と pnpm preview を同列に扱うべきではない

    #543 は pnpm dev または pnpm preview を許していますが、Product Acceptance なら pnpm build && pnpm preview を正に近い確認経路 として優先すべきです。Vite の vite は開発サーバーを起動するコマンドで、vite preview は production build をローカルでプレビューするためのコマンドです。Vite 公式 docs も、preview は vite build 後の dist を見る用途であり、本番サーバーそのものではないと説明しています。([vitejs]5)

    修正案:

    required_runtime_path:
      primary:
        - "pnpm build"
        - "pnpm preview"
      optional_smoke:
        - "pnpm dev"

    pnpm dev のみの確認は accepted_with_deferred 扱いに留めるべきです。

    Major: AI 自動化と人間 playtest の境界を明文化すべき

    #543 は「AI 自動操作では不可」と書いていますが、AC には 人間が何を見て、何を判断したか の粒度が不足しています。既存の docs/playtest/m2-combat-mvp.md は Playwright + manual checklist の形になっており、ステータスも accepted_with_unknowns です。現状の未解決点は「人間が実際に見て遊んだか」であり、E2E は補助証跡にすぎません。([GitHub]6)

    Playwright の screenshot/video/trace は補助証跡として有用です。公式 docs では page.screenshot()、video recording、Trace Viewer、visual comparison が提供されています。ただし #543 の目的は人間確認なので、これらは「人間 playtest の代替」ではなく「再現・レビュー用の補助成果物」と位置づけるべきです。([Playwright]7)

    推奨する #543 の契約修正

    ## Acceptance Criteria
    
    - `docs/playtest/m2-combat-mvp.md` に `## Human Playtest Evidence` セクションが存在する。
    - Evidence は次を含む:
      - human operator
      - executed_at with timezone
      - full tested commit SHA
      - `git status --short` が空であること
      - dependency state: #541/#542 相当の変更が tested commit に含まれること
      - command path: `pnpm build && pnpm preview`
      - OS/browser/browser version
      - viewport and devicePixelRatio
      - input device
      - artifact links or repo-relative paths
    - 人間が次を browser runtime で確認している:
      - WASD movement
      - mouse aiming/shooting
      - enemy visible and approaching
      - projectile hit/collision
      - player damage/HUD HP update
      - all enemies defeated => victory
      - HP zero => defeat
      - 30s timeout => defeat
      - Canvas overlay and HUD result are consistent
    - Evidence status:
      - `accepted` only if all required scenarios are observed.
      - `accepted_with_deferred` only if deferred item is explicitly non-blocking for #483 Product Acceptance.
    - Quality gates pass:
      - `pnpm typecheck`
      - `pnpm lint`
      - `pnpm test`
      - `pnpm build`

    推奨 Verification Commands

    git rev-parse HEAD
    git status --short
    
    pnpm typecheck
    pnpm lint
    pnpm test
    pnpm build
    
    rg "^## Human Playtest Evidence" docs/playtest/m2-combat-mvp.md
    rg "tested_commit:" docs/playtest/m2-combat-mvp.md
    rg "manual_operator:" docs/playtest/m2-combat-mvp.md
    rg "all_enemies_defeated_victory" docs/playtest/m2-combat-mvp.md
    rg "hp_zero_defeat" docs/playtest/m2-combat-mvp.md
    rg "timeout_30s_defeat" docs/playtest/m2-combat-mvp.md
    rg "artifact" docs/playtest/m2-combat-mvp.md

    そのまま貼れるレビューコメント

    ## Verdict: REQUEST_CHANGES
    
    #543 is necessary, but the current contract is too weak to serve as #483 Product Acceptance evidence.
    
    ### Blockers
    
    1. The issue does not require proving that the tested commit includes the dependent visual/HUD implementation and the #542/#552 victory-condition change. Manual evidence must be taken against a clean main/head commit that includes those dependencies, and the evidence must record the exact full SHA plus clean `git status --short`.
    
    2. The manual scenarios are stale/underspecified after #542. The contract says “victory/defeat”, but the MVP semantics are now:
       - all enemies defeated => victory
       - HP zero => defeat
       - 30s timeout => defeat
       - priority: HP zero defeat > all-enemies victory > timeout defeat
    
       #543 must require explicit human evidence for all-enemies victory, HP-zero defeat, and 30s timeout defeat.
    
    3. Screenshot/video evidence is not sufficiently structured. The doc must record operator, timestamp with timezone, full commit SHA, command path, OS/browser/browser version, viewport/DPR, input device, scenario-by-scenario observations, and artifact links or hashes.
    
    4. Product Acceptance should prefer `pnpm build && pnpm preview`, not `pnpm dev` alone. `dev` can be an optional smoke path, but release-like evidence should come from the built app preview.
    
    5. AI/E2E evidence may supplement the result, but it must not replace human playtest evidence. The issue should explicitly require human-observed outcomes and distinguish them from Playwright/automation artifacts.
    
    ### Required contract changes
    
    Please update AC and Verification Commands so that `docs/playtest/m2-combat-mvp.md` proves:
    - tested commit and dependency state,
    - clean worktree,
    - build+preview runtime path,
    - human operator and environment,
    - artifacts per terminal outcome,
    - all-enemies victory,
    - HP-zero defeat,
    - 30s timeout defeat,
    - HUD/Canvas overlay consistency.
    
    Until then, this should not close #483 Product Acceptance.

    結論として、#543 は「必要な最終証跡 Issue」ですが、現状では 人間が触ったという記録 にはなっても、#483 の Product Acceptance を閉じる検証契約 としては不足です。特に #542 後の勝敗条件と、tested commit の依存関係を明文化する修正が必須です。

  5. squne121 commented on Jun 2, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop 完了報告

    LOOP_STATE:
      issue_number: 543
      iterations_run: 2
      max_iterations: 3
      last_verdict: approve
      termination_reason: approved
      anchor_comments:
        - url: "https://github.com/squne121/loop-protocol/issues/543#issuecomment-4598038555"
          final_classification: human_decision
          scope_impact: follow_up_materialization
        - url: "https://github.com/squne121/loop-protocol/issues/543#issuecomment-4598040134"
          final_classification: human_decision
          scope_impact: contract_revision
      improvements_applied:
        - "AC を AC1〜AC14 の番号付き形式に拡充(dependency_state / command.serve / シナリオ別 3 件 / 12 項目)"
        - "Blocker 1 対応: dependency_state フィールド追加(AC6・VC・Outcome)"
        - "Blocker 2 対応: #542 仕様追従 — all_enemies_defeated_victory / hp_zero_defeat / timeout_30s_defeat シナリオ明示(AC9/10/11)"
        - "Blocker 3 対応: 証跡スキーマ強化 — git_status_short / manual_operator / tested_commit / command.serve / viewport 等"
        - "Blocker 4 対応: pnpm build && pnpm preview を primary path に明示(AC7・Summary・Notes)"
        - "構造追加: Parent Issue / Parent Goal Ref / Current Validated Scope / Remaining Parent Gaps / Required Skills セクション"
        - "Stop Conditions を bullet 6 件形式に修正"
        - "Runtime Verification Applicability に decision: not_applicable を追加"
        - "VC を $ prefix + # AC<N> コメント付き個別 bash block 形式に統一"
      check_results:
        C1_required_sections: pass
        C2_stop_conditions_6: pass
        C3_ac_checkbox_format: pass
        C4_vc_commands_present: pass
        C5_ac_vc_number_alignment: pass
        C6_no_subjective_phrasing: pass
        C7_required_skills_semantics: pass
        C8_outcome_concreteness: pass
        C9_runtime_applicability_present: pass
        C10_deferred_destination_present: pass
        C11_decision_tag_consistency: pass
    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: issue-refinement-loop
      follow_up_issues:
        - request_dedupe_key: "follow-up:squne121/loop-protocol:issuecomment-4598038555:wsl2-runbook"
          status: created
          issue:
            number: 561
            url: "https://github.com/squne121/loop-protocol/issues/561"
          reason: "anchor comment 4598038555 が WSL2/Ubuntu manual playtest 実行環境 runbook の起票を提案。#543 の前提準備 child Issue として新規起票。"
      note_only_observations: []
  6. squne121 commented on Jun 2, 2026

    @squne121
    OwnerAuthor

    人間からのコメントです。

    WSL2 Ubuntuで

    squne@DESKTOP-TB4VBD9:~/projects/LOOP_PROTOCOL$ node scripts/check-manual-playtest-env.mjs
    [check-manual-playtest-env] Starting preflight checks...

    [pass] wsl2-detected: WSL2 confirmed via /proc/sys/kernel/osrelease: 6.6.87.2-microsoft-standard-WSL2
    [pass] ubuntu-detected: Ubuntu distro confirmed (ID=ubuntu
    [pass] node-version: Node 24.15.0 (>= 20 required)
    [pass] pnpm-available: pnpm 11.1.2 found (node 24.15.0 — compatible)
    [pass] pnpm-lockfile: pnpm-lock.yaml exists
    [pass] build-script: "build" script present: tsc && vite build
    [pass] preview-port: Port 4173 on 127.0.0.1 is available

    [ok] All checks passed.
    squne@DESKTOP-TB4VBD9:/projects/LOOP_PROTOCOL$ pnpm install
    Already up to date
    Done in 212ms using pnpm v11.1.2
    squne@DESKTOP-TB4VBD9:
    /projects/LOOP_PROTOCOL$ pnpm build
    $ tsc && vite build
    vite v8.0.13 building client environment for production...
    ✓ 29 modules transformed.
    computing gzip size...
    dist/index.html 0.46 kB │ gzip: 0.29 kB
    dist/assets/index-kaUIgtsl.css 2.63 kB │ gzip: 1.20 kB
    dist/assets/index-BTLTRdUk.js 14.77 kB │ gzip: 5.24 kB

    ✓ built in 82ms
    squne@DESKTOP-TB4VBD9:~/projects/LOOP_PROTOCOL$ pnpm preview -- --host 127.0.0.1 --port 4173 --strictPort
    $ vite preview -- --host 127.0.0.1 --port 4173 --strictPort
    ➜ Local: http://localhost:4173/
    ➜ Network: use --host to expose
    ➜ press h + enter to show help
    h

    Shortcuts
    press o + enter to open in browser
    press q + enter to quit
    q

    Windows11上Chromeブラウザでプレイテストを行った。

    証跡を以下に配置した。
    docs/playtest/playtest-defeat-2026-06-02 150402.mp4
    docs/playtest/playtest-victory- 2026-06-02 150022.mp4

    操作性、ロジックについて特に指摘はない。MVPとしてはよくできていると思う。
    RTSではなく、見下ろしシューティングアクションゲームのMVPという感じ。

    自機の中心から弾丸を発射する方向に伸びている棒の意図が不明。
    マウスカーソルに追従するわけでもない。
    伸縮する。
    当たり判定がある。

    おそらく、武装を抽象化したものであり、マウスカーソルにリアルタイムで追従する仕様を目指していると思われるが、実装が悪いのだと思う。

    敵機のHP表現にも問題点がある。桁溢れで表示が悪い。MVP特有の仕様と思うが、メイン開発でも数値を表示するときは注意する。

    人間によるプレイテストの動線についてもブラッシュアップの余地がある。
    docs/playtest/manual-playtest-runbook.md が英語なので日本語に直してほしい。
    今回はShift + Windows + Sで画面を録画した。

    録画した情報をClaudeCodeは適切に認識できるのか不安。

    無料のアプリサーバなどにプッシュしてもっと簡単にプレイテストできないか?

    今後の方針を相談したい。メインゲームの開発に移ってもよいか?

  7. squne121 commented on Jun 2, 2026

    @squne121
    OwnerAuthor

    Contract Review: BLOCKED (2026-06-02T06:31:40Z)

    不足項目

    VC preflight: AC4 の予期しない baseline pass

    該当 VC:
    ```bash

    AC4

    $ rg "tested_commit:" docs/playtest/m2-combat-mvp.md
    ```

    原因: docs/playtest/m2-combat-mvp.md の既存 YAML frontmatter に tested_commit: "e46be8a5f0f8781f8d22c9d2cc3e5b7ad78e7279" が既に存在するため、baseline(実装前)でこの VC が pass してしまっています。

    修正案: AC4 の VC を ## Human Playtest Evidence セクション内の tested_commit: を検証するように変更する。以下のいずれか:

    # AC4
    # preflight-scope: pr_review_only
    $ rg "tested_commit:" docs/playtest/m2-combat-mvp.md

    (pr_review_only marker を追加して baseline チェックをスキップする方法)

    推奨アクション

    issue-refinement-loop で Issue #543 の VC を修正するか、手動で Issue 本文の ## Verification Commands セクション内 AC4 VC に # preflight-scope: pr_review_only を追加してください。

    修正後に issue-contract-review を再実行してください。


    CONTRACT_REVIEW_RESULT_V1:
      status: blocked
      generated_at: "2026-06-02T06:31:40Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/543
      checks:
        template_compliance: pass
        state_label: ok
        allowed_paths_present: pass
        vc_present: pass
        stop_conditions_complete: pass
        vc_preflight:
          passed: false
          vc_failed_as_expected: 12
          vc_passed_unexpectedly: 1
          vc_unrunnable: 0
          vc_expected_pass: 4
          vc_skipped: 0
          classifications:
            - ac: AC14
              command: "pnpm typecheck"
              exit_code: 0
              category: regression_gate
              scope_class: regression_gate
              classification: expected_pass
              confidence: low
              decision: go
            - ac: AC14
              command: "pnpm lint"
              exit_code: 0
              category: regression_gate
              scope_class: regression_gate
              classification: expected_pass
              confidence: low
              decision: go
            - ac: AC14
              command: "pnpm test"
              exit_code: 0
              category: regression_gate
              scope_class: regression_gate
              classification: expected_pass
              confidence: low
              decision: go
            - ac: AC14
              command: "pnpm build"
              exit_code: 0
              category: regression_gate
              scope_class: regression_gate
              classification: expected_pass
              confidence: low
              decision: go
            - ac: AC1
              command: 'rg "^## Human Playtest Evidence" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC2
              command: 'rg "manual_operator:" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC3
              command: 'rg "executed_at:" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC4
              command: 'rg "tested_commit:" docs/playtest/m2-combat-mvp.md'
              exit_code: 0
              category: unexpected_pass
              scope_class: baseline_fail_expected
              classification: unexpected_pass
              confidence: medium
              evidence:
                stdout_excerpt: 'tested_commit: "e46be8a5f0f8781f8d22c9d2cc3e5b7ad78e7279"'
              decision: blocked
              fix_hint: "frontmatter の既存 tested_commit フィールドがマッチ。pr_review_only marker を追加するか、VC をより限定的に変更すること。"
            - ac: AC5
              command: 'rg "git_status_short:" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC6
              command: 'rg "dependency_state:" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC7
              command: 'rg "command\.serve:" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC8
              command: 'rg "viewport:" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC9
              command: 'rg "all_enemies_defeated_victory" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC10
              command: 'rg "hp_zero_defeat" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC11
              command: 'rg "timeout_30s_defeat" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC12
              command: 'rg "WASD|wasd|movement" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC13
              command: 'rg "^status: accepted" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
        ac_verifiability: pass
        product_spec_check:
          applicability: not_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
        worktree_branch_collision: clear
      next_action: propose_refinement_loop
      blocked_reasons:
        - check: vc_preflight
          ac: AC4
          command: 'rg "tested_commit:" docs/playtest/m2-combat-mvp.md'
          reason: >
            baseline で unexpected_pass(exit 0)。既存 frontmatter の tested_commit フィールドがマッチするため。
            AC4 は Human Playtest Evidence セクションの tested_commit を検証すべきだが、
            VC が frontmatter の既存フィールドも対象にしてしまっている。
          fix: >
            AC4 の VC に `# preflight-scope: pr_review_only` marker を追加するか、
            VC を Human Playtest Evidence セクション限定の検索に変更する。
      warnings: []
  8. squne121 commented on Jun 2, 2026

    @squne121
    OwnerAuthor
    ❯ https://github.com/squne121/loop-protocol/issues/543#issuecomment-4599352702
      を対象に impl-review-loop で実装とレビューループをマージ直前まで承認不要で行って。
    
    ● Skill(impl-review-loop)
      ⎿  Successfully loaded skill
    
    ● まず Issue #543 の内容とcontract snapshotを確認します。
    
    ● Bash(gh issue view 543 --repo squne121/loop-protocol 2>&1 | head -100)
      ⎿  title:     test(#483): manual playtest の実施証跡を docs/playtest/m2-combat-mvp.md
         に追
         加する
         state:     OPEN
         … +96 lines (ctrl+o to expand)
    
    ● Bash(gh issue view 543 --repo squne121/loop-protocol --comments 2>&1 | grep -A 30
          "CONTRACT_REVIEW_RESULT_V1" | head -60)
      ⎿  (No output)
    
    ● Bash(gh issue view 543 --repo squne121/loop-protocol --comments 2>&1 | tail -100)
      ⎿      C3_ac_checkbox_format: pass
             C4_vc_commands_present: pass
             C5_ac_vc_number_alignment: pass
         … +97 lines (ctrl+o to expand)
    
    ● Bash(gh api repos/squne121/loop-protocol/issues/comments/4599352702 2>&1)
      ⎿  {
           "url": "https://api.github.com/repos/squne121/loop-protocol/issues/comments/4599
         352702",
         … +63 lines (ctrl+o to expand)
    
    ● Bash(gh issue view 543 --repo squne121/loop-protocol --comments --json comments 2>&1 |
          python3 -c "
          import sys, json…)
      ⎿  (No output)
    
    ● コメントの内容を確認しました。次にcontract review状態と既存ファイルを確認します。
    
    ● Bash(gh issue view 543 --repo squne121/loop-protocol --comments --json comments 2>&1 |
          python3 -c "
          import sys, json…)
      ⎿  (No output)
    
    ● Bash(ls docs/playtest/ 2>&1 && git log --oneline -5)
      ⎿  m2-combat-mvp.md
         manual-playtest-runbook.md
         playtest-defeat-2026-06-02 150402.mp4
         … +11 lines (ctrl+o to expand)
    
      Read 2 files (ctrl+o to expand)
    
    ● Bash(gh issue view 543 --repo squne121/loop-protocol --json title,labels,state --jq
          '"Title: " + .title + "\nState: " + .state + "\nLabels: " + (.labels | map(.name)…)
      ⎿  Title: test(#483): manual playtest の実施証跡を docs/playtest/m2-combat-mvp.md
         に追
         加する
         State: OPEN
         Labels: documentation
    
    ● Bash(REPO=$(gh repo view --json nameWithOwner --jq .nameWithOwner)
          gh api --paginate "repos/${REPO}/issues/543/comments?per_page=100" \…)
      ⎿  (No output)
    
    ● CONTRACT_REVIEW_RESULT_V1 コメントが存在しないため、まず issue-contract-review
      を実行します。
    
    ● Skill(issue-contract-review)
      ⎿  Successfully loaded skill
    
    ● Issue #543 の contract review を開始します。
    
    ● Bash(gh issue view 543 --repo squne121/loop-protocol --json title,body,labels,comments
          2>&1 | python3 -c "
          import sys, json…)
      ⎿  === TITLE ===
         test(#483): manual playtest の実施証跡を docs/playtest/m2-combat-mvp.md に追加する
         … +15 lines (ctrl+o to expand)
    
    ● Bash(gh issue view 543 --repo squne121/loop-protocol --json body --jq '.body' | grep -E
          "^## " | head -30)
      ⎿  ## Machine-Readable Contract
         ## Parent Issue
         ## Parent Goal Ref
         … +13 lines (ctrl+o to expand)
    
    ● Bash(gh issue view 543 --repo squne121/loop-protocol --json body --jq '.body' | grep -A 30
          "## Allowed Paths")
      ⎿  ## Allowed Paths
    
         - `docs/playtest/m2-combat-mvp.md`
         … +33 lines (ctrl+o to expand)
    
    ● Bash(gh issue view 543 --repo squne121/loop-protocol --json body --jq '.body' | grep -A 30
          "## Stop Conditions")
      ⎿  ## Stop Conditions
    
         - #541 または #542 が main に入っていないことが判明した場合、即座に作業を停止し Is
         … +30 lines (ctrl+o to expand)
    
      Read 1 file (ctrl+o to expand)
    
    ● Bash(REPO=$(gh repo view --json nameWithOwner --jq .nameWithOwner)
          bash .claude/skills/issue-contract-review/scripts/check_blockers.sh 543 "$REPO" 2>&1)
      ⎿  OK: blocker なし(Issue #543 は着手可能)
    
    ● Bash(REPO=$(gh repo view --json nameWithOwner --jq .nameWithOwner)
          python3 .claude/skills/issue-contract-review/scripts/check_product_spec_contract.py
          \…)
      ⎿  {
           "applicability": "not_applicable",
           "decision": "pass",
         … +35 lines (ctrl+o to expand)
    
    ● Bash(REPO=$(gh repo view --json nameWithOwner --jq .nameWithOwner)
          python3 .claude/skills/issue-contract-review/scripts/baseline_vc_preflight.py \…)
      ⎿  Error: Exit code 1
         {
           "schema": "baseline_vc_preflight/v1",
           "issue": 543,
           "repo": "squne121/loop-protocol",
           "generated_at": "2026-06-02T06:31:24.764563Z",
           "source": {
             "kind": "github_issue",
             "body_sha256":
         "sha256:13f8bad23e5d2410517c54284681b89601b77a1dfbe9cae0807d948922ce7de1"
           },
         … +305 lines (ctrl+o to expand)
    
    ● Bash(REPO=$(gh repo view --json nameWithOwner --jq .nameWithOwner)
          python3 .claude/skills/issue-contract-review/scripts/baseline_vc_preflight.py \…)
      ⎿  Status: blocked
         Summary: {'expected_fail': 12, 'unexpected_pass': 1, 'blocked': 0, 'human_judgment
         ': 0, 'expected_pass': 4, 'skipped': 0, 'extraction_errors': 0}
         … +25 lines (ctrl+o to expand)
    
    ● Bash(SLUG=$(echo "manual playtest no jisshi shoteki wo docs playtest m2 combat mvp md ni
          tsuika suru" | sed 's/ /-/g' | cut -c1-40)
          # より正確なslug計算…)
      ⎿  SLUG: manual-playtest-docs-playtest-m2-combat-
         WORKTREE: .claude/worktrees/issue-543-manual-playtest-docs-playtest-m2-combat-
         BRANCH: worktree-issue-543-manual-playtest-docs-playtest-m2-combat-
         … +2 lines (ctrl+o to expand)
    
    ● Bash(git branch -v | grep "issue-543")
      ⎿  No matches found
    
    ● Bash(git log worktree-issue-543-manual-playtest-docs-playtest-m2-combat- --oneline -5
          2>&1)
      ⎿  Error: Exit code 128
         fatal: ambiguous argument
         'worktree-issue-543-manual-playtest-docs-playtest-m2-combat-': unknown revision or path
         not in the working tree.
         Use '--' to separate paths from revisions, like this:
         'git <command> [<revision>...] -- [<file>...]'
    
    ● Bash(git branch -a | grep "issue-543" 2>&1)
      ⎿  No matches found
    
    ● Bash(BRANCH="worktree-issue-543-manual-playtest-docs-playtest-m2-combat-"
          echo "Testing: git branch --list '$BRANCH'"…)
      ⎿  Testing: git branch --list 'worktree-issue-543-manual-playtest-docs-playtest-m2-co
         mbat-'
         Exit: 0
         no 543 branch found
    
    ● Bash(gh issue view 543 --repo squne121/loop-protocol --json body --jq '.body' | grep -A 50
          "## Verification Commands")
      ⎿  ## Verification Commands
    
         ```bash
         … +48 lines (ctrl+o to expand)
    
    ● すべてのチェック結果が揃いました。CONTRACT_REVIEW_RESULT_V1 を集約します。
    
      VC preflight BLOCKED: AC4 の VC rg "tested_commit:" docs/playtest/m2-combat-mvp.md が
      baseline で unexpectedly pass している(既存 frontmatter に tested_commit:
      "e46be8a5f0f8781f8d22c9d2cc3e5b7ad78e7279" が存在するため)。
    
      この結果を GitHub にコメントして投稿します。
    
    ● Bash(REPO=$(gh repo view --json nameWithOwner --jq .nameWithOwner)
          GENERATED_AT=$(date -u +%Y-%m-%dT%H:%M:%SZ)…)
      ⎿  https://github.com/squne121/loop-protocol/issues/543#issuecomment-4599397812
    
    ● LOOP_STATE:
        issue_number: 543
        contract_snapshot_url: null
        contract_snapshot_source: materialized_by_issue_contract_review
        iteration: 0
        max_iterations: 3
        worktree: .claude/worktrees/issue-543-manual-playtest-docs-playtest-m2-combat-
        branch: worktree-issue-543-manual-playtest-docs-playtest-m2-combat-
        last_step: preparation
        last_loop_verdict: null
        blockers_history: []
        external_research_skip_basis: "docs-only change, internal only"
        termination_reason: human_escalation
        product_spec_preflight:
          source: contract_snapshot.checks.product_spec_check
          applicability: not_applicable
          decision: pass
          blocked_rule_ids: []
          routing_action: continue
    
      ---
      impl-review-loop が preparation ステップで停止しました。
    
      停止理由: issue-contract-review が status: blocked を返しました。
    
      具体的な問題: Issue #543 の AC4 の VC が baseline で予期せず pass しています。
    
      - VC: rg "tested_commit:" docs/playtest/m2-combat-mvp.md
      - 原因: 既存の docs/playtest/m2-combat-mvp.md frontmatter に tested_commit:
      "e46be8a5f0f8781f8d22c9d2cc3e5b7ad78e7279" が既に存在しており、実装前でも VC が pass
      してしまう。
    
      修正方法(2択):
    
      1. 簡単な方法: Issue #543 の ## Verification Commands セクションの AC4 VC に #
      preflight-scope: pr_review_only を追加する
      # AC4
      # preflight-scope: pr_review_only
      $ rg "tested_commit:" docs/playtest/m2-combat-mvp.md
      2. より正確な方法: VC を ## Human Playtest Evidence セクション内に限定した検索に変更する
    
      → Issue #543 のコメント:
      https://github.com/squne121/loop-protocol/issues/543#issuecomment-4599397812
    
      修正後に impl-review-loop 543 を再実行してください。
    

    From: https://chatgpt.com/c/6a1e79d8-913c-83e9-934d-042e21c6689a

    you asked

    message time: 2026-06-02 15:37:56

    「修正後に impl-review-loop 543 を再実行してください。」とあるが修正するのはClaudeCodeであり人間ではないから、人間への質問はどのように修正すればいいか、推奨案とその理由にして。あるいは issue-refinement-loop をやり直してもよいか。簡易な修正であれば実行した後 impl-review-loop を再開してもよいか。

    改善Issue案を起票して。


    chatgpt response

    対象は「人間に修正実行を求める」のではなく、「ClaudeCode/worker が判断・修正・再開できるようにする」改善として整理します。添付ログも根拠にして、GitHub Issue に貼れる形式で作ります。

    以下をそのまま GitHub Issue として起票できる形にしました。
    根拠は、Issue #543 の impl-review-loop が issue-contract-review status: blocked により preparation で停止し、最後に「修正後に impl-review-loop 543 を再実行してください」と人間向けに返している点です。添付ログでは、AC4 の VC rg "tested_commit:" docs/playtest/m2-combat-mvp.md が baseline で既に pass していたことが停止理由になっています。


    Issue Title

    fix(impl-review-loop): contract blocked 時の人間向け「修正後に再実行」指示を worker 実行可能な推奨案・自律再開判断に置換する

    Issue Body

    ## Problem
    
    `impl-review-loop` が preparation 中に `issue-contract-review` の `status: blocked` を受けた場合、現状の出力が人間に対して「修正後に impl-review-loop <issue> を再実行してください」となっている。
    
    しかし、修正主体は原則として人間ではなく ClaudeCode / worker であるべきであり、人間へ求めるべきなのは「どの修正方針を採用すべきか」の判断、または「自律修正・再開してよいか」の承認である。
    
    ### Observed case
    
    Issue #543 で `impl-review-loop` を実行したところ、`issue-contract-review` の baseline VC preflight が blocked になった。
    
    原因は、AC4 の Verification Command:
    
    ```bash
    rg "tested_commit:" docs/playtest/m2-combat-mvp.md

    が実装前 baseline で既に pass していたこと。既存 frontmatter に tested_commit: が存在していたため、VC が「変更後に初めて満たされる検証」になっていなかった。

    現状の停止メッセージは以下のような趣旨だった:

    修正後に impl-review-loop 543 を再実行してください。

    これは人間が Issue 本文を修正する前提に見えるため不適切。

    Goal

    impl-review-loop / issue-contract-review の blocked 時エスカレーション文言と分岐を、以下の方針に修正する。

    • 人間に「修正してください」と依頼しない
    • ClaudeCode / worker が修正主体である前提にする
    • 人間には、必要な場合のみ「推奨修正案と理由」「自律修正・再開してよいか」「issue-refinement-loop をやり直すべきか」を提示する
    • 簡易な contract hygiene 修正であれば、ClaudeCode が Issue 本文を修正し、issue-contract-review を再実行し、status: go なら impl-review-loop を再開できるようにする
    • 契約の意味変更、AC/VC 再設計、Allowed Paths 変更、成果物 scope 変更を伴う場合は issue-refinement-loop へ戻す

    Proposed behavior

    1. blocked reason を分類する

    issue-contract-review status: blocked を受けた時、impl-review-loop は少なくとも以下に分類する。

    A. Simple contract hygiene fix

    例:

    • VC が baseline で既に pass している
    • preflight-scope: pr_review_only を付ければ妥当
    • VC を対象セクション内に限定すれば妥当
    • AC/VC の意味は維持される
    • Allowed Paths / deliverables / acceptance semantics は変わらない

    この場合は、ClaudeCode が推奨修正案を提示し、許可がある運用では Issue 本文を直接修正してよい。

    B. Contract refinement required

    例:

    • AC の意味自体が曖昧
    • VC が成果物の本質を検証していない
    • Allowed Paths が不足または過剰
    • Stop Conditions / Dependencies / deliverables の再設計が必要
    • 修正により Issue の scope が変わる

    この場合は issue-refinement-loop をやり直すことを推奨する。

    C. Human decision required

    例:

    • 仕様判断が必要
    • human playtest の実施可否や証跡の正当性判断が必要
    • 既存成果物を正とするか、再取得するかのプロダクト判断が必要

    この場合のみ、人間に選択肢を提示する。

    2. 出力文言を置換する

    禁止する文言:

    修正後に impl-review-loop <issue> を再実行してください。
    

    推奨文言:

    impl-review-loop は preparation で停止しました。
    
    停止理由:
    - issue-contract-review が status: blocked を返しました。
    - <具体的 blocker>
    
    推奨対応:
    1. 推奨: <具体的修正案>
       理由: <なぜ最小・安全・契約意味を変えないか>
    
    2. 代替: issue-refinement-loop をやり直す
       理由: <契約意味変更が必要な場合>
    
    自律実行可否:
    - この修正は <simple_contract_hygiene_fix | contract_refinement_required | human_decision_required> と判定しました。
    - simple_contract_hygiene_fix の場合、ClaudeCode が Issue 本文を修正し、issue-contract-review を再実行し、status: go なら impl-review-loop を再開してよい。
    

    3. Issue #543 相当の具体例

    Issue #543 の場合は、次のように出すべき。

    推奨案:
    AC4 の VC を `tested_commit:` の存在確認から、Human Playtest Evidence セクション内の `tested_commit` 確認へ限定する。
    
    理由:
    既存 frontmatter に `tested_commit:` が存在しているため、現在の VC は baseline で既に pass する。
    単に `preflight-scope: pr_review_only` を付けるより、対象セクションを限定した VC にする方が、今回追加する証跡の検証として正確。
    
    代替案:
    Issue 本文全体の AC/VC 設計が不十分と判断する場合は issue-refinement-loop をやり直す。
    
    自律実行:
    この修正が AC4 の検証対象を「今回追加する Human Playtest Evidence」に限定するだけで、成果物 scope や acceptance semantics を変えない場合、ClaudeCode が Issue 本文を簡易修正し、issue-contract-review を再実行し、status: go なら impl-review-loop を再開してよい。
    

    Acceptance Criteria

    • impl-review-loop の blocked 時メッセージから、人間に直接「修正後に再実行してください」と求める表現が除去されている
    • blocked reason が simple_contract_hygiene_fix / contract_refinement_required / human_decision_required の少なくとも3分類で扱われる
    • simple contract hygiene fix の場合、ClaudeCode / worker が Issue 本文を修正し、issue-contract-review を再実行し、status: go なら impl-review-loop を再開できる運用が明文化されている
    • contract semantics が変わる修正は issue-refinement-loop へ戻すことが明文化されている
    • Issue test(#483): manual playtest の実施証跡を docs/playtest/m2-combat-mvp.md に追加する #543 相当の baseline VC unexpectedly pass ケースを fixture またはテストケースとして追加している
    • 出力例に「推奨案」「理由」「代替案」「自律実行可否」が含まれている

    Verification Commands

    # impl-review-loop の文言に、人間へ修正実行を丸投げする表現が残っていないこと
    rg "修正後に.*impl-review-loop.*再実行してください|fix.*then.*rerun" .claude/skills/impl-review-loop .claude/skills/issue-contract-review
    
    # blocked reason の分類が実装または文書化されていること
    rg "simple_contract_hygiene_fix|contract_refinement_required|human_decision_required" .claude/skills/impl-review-loop .claude/skills/issue-contract-review
    
    # 推奨案・理由・代替案・自律実行可否の出力仕様があること
    rg "推奨案|理由|代替案|自律実行可否|Recommended|Rationale|Alternative" .claude/skills/impl-review-loop .claude/skills/issue-contract-review
    
    # Issue #543 相当の baseline VC unexpectedly pass fixture/test があること
    rg "tested_commit|baseline.*unexpectedly pass|pr_review_only|Human Playtest Evidence" .claude/skills tests

    Non-goals

    • 人間による最終承認を不要にすること
    • contract semantics を worker が勝手に変更できるようにすること
    • issue-refinement-loop の責務を impl-review-loop に移すこと
    • baseline VC preflight を弱めること

    Notes

    この改善の本質は、blocked 時の責務分離である。

    • 人間: 方針判断、例外承認、仕様判断
    • ClaudeCode / worker: 修正案作成、簡易修正、再検証、loop 再開
    • issue-refinement-loop: contract semantics の再設計
    • issue-contract-review: gate 判定
    • impl-review-loop: 実装・レビュー loop の orchestration

    したがって、人間への問いは「修正してください」ではなく、次の形にする。

    推奨案は A、理由は B。代替として issue-refinement-loop の再実行も可能。これは simple contract hygiene fix と判定できるため、ClaudeCode が修正後に issue-contract-review を再実行し、go なら impl-review-loop を再開してよいか。

    
    ## `gh issue create` 用
    
    ```bash
    gh issue create \
      --repo squne121/loop-protocol \
      --title "fix(impl-review-loop): contract blocked 時の人間向け「修正後に再実行」指示を worker 実行可能な推奨案・自律再開判断に置換する" \
      --label "bug" \
      --label "automation" \
      --body-file /tmp/issue-impl-review-loop-blocked-escalation.md
    

    ラベルは既存運用に合わせるなら bug, automation, claude-skill, process あたりが妥当です。

  9. squne121 commented on Jun 2, 2026

    @squne121
    OwnerAuthor

    Contract Snapshot (2026-06-02T06:41:16Z)

    • Outcome: docs/playtest/m2-combat-mvp.md に ## Human Playtest Evidence セクションが追加され、人間が pnpm build && pnpm preview で実際にブラウザ操作した証跡(manual_operator・executed_at・tested_commit・git_status_short・dependency_state・OS/browser・3シナリオ別 artifact)が記録された状態。status が accepted または accepted_with_deferred に更新されている。
    • Acceptance Criteria: AC1〜AC14(14項目)
    • Verification Commands: pnpm typecheck / lint / test / build + AC1〜AC13 rg/rg-U チェック
    • Allowed Paths: docs/playtest/m2-combat-mvp.md
    • Worktree: .claude/worktrees/issue-543-manual-playtest-docs-playtest-m2-combat-
    • Branch: worktree-issue-543-manual-playtest-docs-playtest-m2-combat-
    • VC preflight: baseline fail = 13, 想定外 pass = 0, 実行不可 = 0
    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-06-02T06:41:16Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/543
      checks:
        template_compliance: pass
        state_label: ok
        allowed_paths_present: pass
        vc_present: pass
        stop_conditions_complete: pass
        vc_preflight:
          passed: true
          vc_failed_as_expected: 13
          vc_passed_unexpectedly: 0
          vc_unrunnable: 0
          vc_expected_pass: 4
          vc_skipped: 0
          classifications:
            - ac: AC14
              command: "pnpm typecheck"
              exit_code: 0
              category: regression_gate
              scope_class: regression_gate
              classification: expected_pass
              confidence: low
              decision: go
            - ac: AC14
              command: "pnpm lint"
              exit_code: 0
              category: regression_gate
              scope_class: regression_gate
              classification: expected_pass
              confidence: low
              decision: go
            - ac: AC14
              command: "pnpm test"
              exit_code: 0
              category: regression_gate
              scope_class: regression_gate
              classification: expected_pass
              confidence: low
              decision: go
            - ac: AC14
              command: "pnpm build"
              exit_code: 0
              category: regression_gate
              scope_class: regression_gate
              classification: expected_pass
              confidence: low
              decision: go
            - ac: AC1
              command: 'rg "^## Human Playtest Evidence" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC2
              command: 'rg "manual_operator:" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC3
              command: 'rg "executed_at:" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC4
              command: 'rg -U "## Human Playtest Evidence[\s\S]*tested_commit:" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC5
              command: 'rg "git_status_short:" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC6
              command: 'rg "dependency_state:" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC7
              command: 'rg "command\.serve:" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC8
              command: 'rg "viewport:" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC9
              command: 'rg "all_enemies_defeated_victory" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC10
              command: 'rg "hp_zero_defeat" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC11
              command: 'rg "timeout_30s_defeat" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC12
              command: 'rg "WASD|wasd|movement" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
            - ac: AC13
              command: 'rg "^status: accepted" docs/playtest/m2-combat-mvp.md'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              classification: expected_fail
              confidence: high
              decision: go
        ac_verifiability: pass
        product_spec_check:
          applicability: not_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
        worktree_branch_collision: clear
      next_action: implement_issue
      blocked_reasons: []
      warnings: []
  10. added 3 commits that reference this issue on Jun 2, 2026
  11. added 2 commits that reference this issue on Jun 2, 2026
  12. squne121 commented on Jun 2, 2026

    @squne121
    OwnerAuthor

    post-merge-cleanup: 完了 (2026-06-02T08:30:01Z)

    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: post-merge-cleanup
      follow_up_issues:
        - request_dedupe_key: "follow-up:squne121/loop-protocol:issue/483:blocker-rendering-enemies"
          status: skipped_closed_completed
          issue:
            number: 541
            url: "https://github.com/squne121/loop-protocol/issues/541"
          reason: "Issue #541 (CanvasRenderer + HudController, PR #548) が CLOSED/completed。実装済み。"
    
        - request_dedupe_key: "follow-up:squne121/loop-protocol:issue/483:blocker-rendering-hud"
          status: skipped_closed_completed
          issue:
            number: 541
            url: "https://github.com/squne121/loop-protocol/issues/541"
          reason: "同上。Issue #541 で HudController も対応済み。"
    
        - request_dedupe_key: "follow-up:squne121/loop-protocol:pr/570:evidence-artifact-standardization"
          status: reused_open
          issue:
            number: 576
            url: "https://github.com/squne121/loop-protocol/issues/576"
          reason: "Issue #576 (動画証跡 ADR) が OPEN で対応中。Issue #577 (runbook 日本語化) も同セッションで起票済み。"
    
      note_only_observations:
        - dedupe_key: "post-merge-cleanup:issue/543:parent-483-keep-open"
          source_url: "https://github.com/squne121/loop-protocol/issues/483"
          summary: "親 Issue #483 (M2 Combat MVP Gate) は declared children (#484-#490, #541-#543) が全 CLOSED。ただし今後の開発フェーズ移行の判断は人間が行う。"
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

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions