Skip to content

M2 playtest: AC11 timeout_30s_terminal の人間観察動画を M3 gate 前に採取して waiver を解消する #690

Closed

Description

@squne121

M2 AC11 の deferred waiver を、30秒 timeout が defeat ではなく中立な terminal state(「戦闘終了」/ outcome: "timeout")として人間に確認可能な動画証跡によって解消する。docs/playtest/m2-combat-mvp.md の AC11 を deferred_exception から accepted/resolved へ更新する。

Important

本 Issue は #725 / #732(共にマージ・クローズ済み, 2026-06-07)による契約更新を反映して reframe 済み。
旧シナリオ名 timeout_30s_defeat は historical note としてのみ残し、現行契約・実行シナリオ名・UI 期待値としては使用しない。30秒 timeout は defeat ではなく中立な terminal state である。

Outcome

M3 gate 前の手動プレイテストで「30秒 timeout 到達時に DEFEAT ではなく中立な terminal state(「戦闘終了」)へ遷移する」ことを人間が観察した動画証跡を採取し、第三者が後から検証可能な形(GitHub-hosted attachment URL + メタデータ)で docs/playtest/m2-combat-mvp.md の AC11 に記録して、deferred waiver を解消する。

成功した状態:

  • AC11 が deferred_exception から accepted(resolved)へ更新されている。
  • 現行契約・実行シナリオ名・UI 期待値として timeout_30s_defeat が残っていない(historical note を除く)。
  • timeout の人間観察結果が outcome: "timeout" / endReason: "timeout" / HUD「戦闘終了」/ Canvas overlay が DEFEAT ではない、と読める。

背景

PR #687 で AC11 の formal waiver が記録された。waiver の expiry_condition は「M3 gate 前の次回手動プレイテストで timeout の人間動画を採取し、GitHub-hosted artifact URL を playtest evidence 文書へ添付すること」を要求している。#543 が明記する通り、E2E テストは人間観察の代替にならない。

契約更新による reframe(重要):

  • 実装: sortie の 30秒タイムアウトを defeat と区別し中立な「戦闘終了」表示にする #725(CLOSED)/ fix(systems): sortie timeout as neutral terminal #732(MERGED, 2026-06-07)により、30秒 timeout は defeat ではなく中立の terminal state として確定した。
  • 現行実装(src/systems/SortieSystem.ts / src/ui/HudController.ts)と仕様(docs/product/features/sortie.md)では:
    • SortieResult.outcome = "timeout"、SortieResult.endReason = "timeout"
    • HUD ラベル = 戦闘終了
    • Canvas overlay = 中立(青系)であり DEFEAT(赤系)ではない
  • したがって本 Issue の旧名称 timeout_30s_defeat のまま実装・完了判定すると、古い「timeout = defeat」意味論を再固定してしまう。本 Issue はシナリオ ID を timeout_30s_terminal に改名し、期待値を timeout 中立 terminal に揃える。

採取済み候補証跡(要検証)

#690 のコメント(issuecomment-4641688172)で、以下の動画 attachment と Evidence Panel YAML が提示されている。これは 候補であり、本 Issue の AC を満たすかは解消 PR 側で検証する。

  • 動画: https://github.com/user-attachments/assets/af06e34d-6f5d-4b69-b76b-f52e7f79b024
  • 提示された Evidence Panel: source_url = https://squne121.github.io/loop-protocol/pr-743/、app_under_test.commit = f7d66c19d43da9475763637947359214220c605e、browser = Chrome 149 / Windows、viewport = 1920x911、device_pixel_ratio = 1

未検証点(解消 PR で確認すること):

  • 提示された Evidence Panel YAML は AC8 panel ラベル(viewport/DPR 用)であり、timeout シナリオ固有のフィールド(outcome / endReason / scenario_id)を含まない。
  • 動画が実際に「30秒 timeout 到達 → 中立 terminal(戦闘終了)」を映しているか、また DEFEAT 表示でないかは人間レビューで確認が必要。
  • 動画ファイルの sha256 / bytes / mime_type が未記載。
  • tested_commit f7d66c1... が timeout 中立 terminal 実装(fix(systems): sortie timeout as neutral terminal #732 マージ後)を含むかの確認が必要。

候補が AC を満たさない場合は、M3 gate 前に新規動画を採取し直す。

In Scope

  • docs/playtest/m2-combat-mvp.md の AC11 エントリを deferred_exception → accepted/resolved へ更新する。
  • timeout 中立 terminal の人間観察動画 URL と検証メタデータを AC11 証跡として記録する。
  • 旧名称 timeout_30s_defeat を historical note に限定し、現行契約から除去する。

Out of Scope(Non-goals)

Allowed Paths

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

Acceptance Criteria

本 Issue が解消する M2 受け入れ条件は docs/playtest/m2-combat-mvp.md の timeout deferred_exception エントリ(旧名 timeout_30s_defeat)。下記 AC1〜AC6 は本 Issue 自身の受け入れ条件。

  • AC1(human observation / human_judgment_required): 人間が timeout シナリオをプレイし、30秒到達時に DEFEAT ではなく中立 terminal(HUD「戦闘終了」)へ遷移することを観察した動画が採取されている。観察チェックリスト:
    • 30秒到達前に victory(全敵撃破)が成立していない
    • HP 0 による defeat でもない
    • timeout 到達時に terminal state へ遷移する
    • HUD が 戦闘終了 と読める
    • Canvas overlay が DEFEAT(赤系)ではない
  • AC2(deterministic): docs/playtest/m2-combat-mvp.md の timeout エントリが deferred_exception から accepted(resolved)相当へ更新され、当該エントリに deferred_exception が残っていない。
  • AC3(deterministic): 当該証跡に GitHub-hosted attachment の動画 URL(https://github.com/user-attachments/... 等の repo 参照可能 URL)が記録されている。ローカルパスを正本証跡にしない。
  • AC4(deterministic): 当該証跡に検証メタデータが記録されている — sha256、bytes、tested_commit(40-char SHA)、route、browser、viewport、device_pixel_ratio、operator(human)。
  • AC5(deterministic): docs/playtest/m2-combat-mvp.md の現行記述・シナリオ名・期待値に旧語 timeout_30s_defeat が live label として残っていない(historical note としての言及は許容)。期待値は outcome: timeout / endReason: timeout / HUD 戦闘終了 / overlay ≠ DEFEAT で記述されている。
  • AC6(deterministic): 必須品質ゲート(下記 Verification Commands)が緑である。

Verification Commands

# AC1: human observation のため決定論コマンドなし。動画レビューで AC1 チェックリストを人間確認する。
# AC2: timeout エントリが deferred_exception でなくなっている(更新後に再確認)
$ rg -n "deferred_exception" docs/playtest/m2-combat-mvp.md
# AC3: 動画 URL が記録されている
$ rg -n "user-attachments" docs/playtest/m2-combat-mvp.md
# AC4: 検証メタデータが記録されている
$ rg -n "sha256|tested_commit" docs/playtest/m2-combat-mvp.md
# AC5: 旧 live label が残っていない(historical note 以外のヒットを目視確認)
$ rg -n "timeout_30s_defeat" docs/playtest/m2-combat-mvp.md
# AC5: 期待値が timeout 中立 terminal で記述されている
$ rg -n "戦闘終了|outcome.*timeout|endReason.*timeout" docs/playtest/m2-combat-mvp.md
# AC6: 品質ゲート(docs-only でも実行)
$ pnpm typecheck
$ pnpm lint
$ pnpm test
$ pnpm build

Runtime Verification Applicability

decision: deferred
deferred_verification_condition: "M3 gate 前の次回手動プレイテストで timeout 中立 terminal(HUD「戦闘終了」/ outcome=timeout / overlay ≠ DEFEAT)の人間観察動画を採取し、docs/playtest/m2-combat-mvp.md に記録すること(本 Issue の AC1)。"

人間観察(runtime verification)は automation で代替できない(#543)。本 Issue の核は人間によるプレイテスト観察であり、検証は M3 gate 前の次回手動プレイテストへ deferred される。

References


This issue body was refined by issue-refinement-loop. Reframe authorized by the human anchor comment (issuecomment-4641684676) under human_decision_reframe; the supplied candidate artifact is from issuecomment-4641688172.

Activity

  1. added
    enhancement
    on Jun 6, 2026
  2. added 5 commits that reference this issue on Jun 6, 2026
  3. squne121 commented on Jun 7, 2026

    @squne121
    OwnerAuthor

    敵対的レビュー結論

    判定: REQUEST_CHANGES。#690 の目的は必要だが、このまま実装・完了判定に進めると危険です。

    最大の問題は、#690 が timeout_30s_defeat の人間動画採取を要求している一方で、その後の #725 / #732 により、30秒タイムアウトは defeat ではなく中立の「戦闘終了 / timeout」状態として扱う方向へ契約が更新されている点です。#725 は timeout_30s_defeat という旧語を #690 に残したままだと古い意味論を再固定する、と明示的に問題化しています。#732 側も SortieResult の outcome/endReason に timeout を導入し、HUD/Canvas 表示を victory/defeat/timeout で分離する実装・テスト・文書更新を掲げています。([GitHub]1)

    したがって #690 は、「timeout_30s_defeat の waiver 解消」ではなく、「30秒 timeout が defeat と誤認されないことの人間観察証跡を採取する Issue」へ再定義すべきです。


    確認した関連関係

    #690 自体は、PR #687 で formal waiver として残された AC11 timeout_30s_defeat の人間動画を、M3 gate 前の次回 manual playtest で採取し、docs/playtest/m2-combat-mvp.md を更新して deferred waiver を解消する、という内容です。完了条件には GitHub artifact または repo 参照可能な動画保存、AC11 行の更新、waiver 解消が含まれています。([GitHub]2)

    この waiver の由来は #543 / PR #570 の M2 human playtest evidence です。#543 は「自動 proxy ではなく、人間が sortie 開始・WASD・射撃・敵接近・衝突・ダメージ・勝敗を視覚確認する必要がある」としており、PR #570 では victory と hp_zero_defeat は人間確認済み、timeout_30s_defeat は E2E のみで deferred とされています。([GitHub]3)

    PR #687 は AC8/AC11 の waiver fields を formalize し、AC11 については #690 により M3 gate 前の次回 manual playtest で timeout video を採取する、という期限条件を設定しています。([GitHub]4)

    #689 / PR #723 は AC8 Evidence Panel の waiver 解消だけを扱い、AC11 #690 は意図的に未解決のまま残しています。つまり #690 はまだ独立した M3 前ブロッカーです。([GitHub]5)


    ブロッカー指摘

    1. Issue 名とシナリオ名が stale

    timeout_30s_defeat という名称は、現在の設計契約と衝突しています。docs/product/features/sortie.md の現在仕様では timeout は独立状態であり、30秒到達時は HUD ラベルも defeat ではなく「戦闘終了」、結果 union も outcome: "timeout" / endReason: "timeout" と定義されています。([GitHub]6)

    修正案:

    • Issue title を変更

      • 旧: AC11 timeout_30s_defeat の人間動画
      • 新: AC11 timeout_30s_terminal の人間観察証跡
    • シナリオ ID を変更

      • 旧: timeout_30s_defeat
      • 新: timeout_30s_terminal または timeout_30s_neutral_terminal
    • 旧語 timeout_30s_defeat は historical note に閉じ込める。

    • 完了条件に「DEFEAT と表示されないこと」を明記する。

    この修正をしないと、古い「timeout = defeat」仕様への回帰を、waiver 解消作業が逆に正当化してしまいます。


    2. 「動画を保存する」だけでは証跡品質が足りない

    #690 の完了条件は「動画 URL がある」「docs を更新する」に寄りすぎています。必要なのは、第三者があとから検証できる 証跡パッケージです。

    既存 runbook / ADR は、正本を GitHub-hosted attachment URL とし、ローカルパスは evidence として扱わない、SHA256・bytes・timestamp・ffmpeg frame 抽出・Evidence Panel 情報を要求する設計です。([GitHub]7)

    最低限、#690 の AC に以下を追加すべきです。

    scenario_id: timeout_30s_terminal
    artifact:
      url: GitHub-hosted issue_or_pr_attachment_url
      sha256: required
      bytes: required
      mime_type: video/mp4 or video/webm
      codec: H.264 preferred
    execution:
      tested_commit: 40-char SHA
      route: GitHub Pages main | PR preview | local preview
      browser: required
      viewport: required
      device_pixel_ratio: required
      operator: human
    review_points:
      - before_timeout_timestamp
      - timeout_transition_timestamp
      - after_timeout_timestamp
    expected_observation:
      - player does not satisfy victory before timeout
      - terminal state occurs at timeout
      - HUD/result shows neutral timeout / 戦闘終了
      - Canvas overlay is not DEFEAT

    3. “GitHub artifact or repo-referenceable location” は曖昧で危険

    GitHub Actions artifacts は既定で 90 日保持であり、public repository の retention は 1〜90 日の範囲です。M3 gate 用の長期レビュー証跡としては、単に Actions artifact に置く設計は弱いです。([GitHub Docs]8)

    一方で、動画を repo に直接 commit するのも危険です。GitHub は 50MiB 超のファイルに警告、100MiB 超をブロックし、通常リポジトリは小さく保つことを推奨しています。([GitHub Docs]9)

    GitHub issue / PR attachment は、ドラッグ&ドロップで本文に URL が挿入され、public repository の upload は認証なしでも閲覧可能です。動画は .mp4, .mov, .webm がサポートされ、互換性のため H.264 が推奨されています。([GitHub Docs]10)

    推奨: #690 は “GitHub attachment URL を正本” に限定する。Actions artifact は補助に留める。


    4. 人間観察の対象が曖昧

    「人間動画を採取する」だけでは、人間が何を確認したのか不明です。#543 の要求は「自動テストの代替ではない人間視覚確認」であり、単なる録画ファイルの存在ではありません。([GitHub]3)

    #690 の完了条件は、以下の観察項目を明文化すべきです。

    • 30秒到達前に victory が成立していない。
    • HP 0 defeat でもない。
    • timeout 到達時に terminal state へ遷移する。
    • HUD が timeout / 戦闘終了 と読める。
    • Canvas overlay が DEFEAT ではない。
    • Evidence Panel の tested_commit が動画対象と一致する。
    • 動画内または添付テキストで timestamp が示されている。

    5. #732 後の仕様に合わせた回帰テストが必要

    #732 は timeout を公式 terminal state として導入し、HUD/Canvas/SortieResult/E2E/unit/docs を更新する内容です。([GitHub]11)

    したがって #690 解消 PR は、単に動画を添付して docs を accepted に変えるだけでは不十分です。最低限、以下の確認が必要です。

    pnpm typecheck
    pnpm lint
    pnpm test
    pnpm build
    pnpm test:e2e -- tests/e2e/m2-combat-mvp.spec.ts

    package.json には test:e2e が VITE_E2E_MODE=true pnpm build && playwright test として定義されています。([GitHub]12)

    加えて、grep で旧語の残存を確認すべきです。

    rg "timeout_30s_defeat|timeout.*defeat|DEFEAT" docs src tests

    ただし historical note や旧 waiver の説明に限るなら残存を許容してよいです。実行シナリオ名・現行 AC・現行 UI 期待値として残っている場合は NGです。


    実装・運用の高品質化案

    A. Issue contract を差し替える

    #690 の本文は次のように更新するのが妥当です。

    ## Goal
    
    M2 AC11 の deferred waiver を、30秒 timeout が defeat ではなく neutral terminal state として人間に確認可能である証跡によって解消する。
    
    ## Scenario
    
    - scenario_id: timeout_30s_terminal
    - old_name: timeout_30s_defeat
    - expected terminal state:
      - SortieResult.outcome = timeout
      - SortieResult.endReason = timeout
      - HUD label = 戦闘終了 / timeout
      - Canvas overlay != DEFEAT
    
    ## Required evidence
    
    - GitHub-hosted issue/PR attachment URL
    - sha256
    - bytes
    - tested_commit: 40-char SHA
    - browser / OS / viewport / DPR
    - Evidence Panel raw output
    - human operator name or handle
    - timestamps:
      - before timeout
      - transition moment
      - after timeout
    
    ## Acceptance Criteria
    
    - Human video evidence is attached and reviewable without local paths.
    - `docs/playtest/m2-combat-mvp.md` changes AC11 from `deferred_exception` to accepted/resolved.
    - No current contract still names the scenario `timeout_30s_defeat`, except historical notes.
    - Tests pass:
      - pnpm typecheck
      - pnpm lint
      - pnpm test
      - pnpm build
      - pnpm test:e2e -- tests/e2e/m2-combat-mvp.spec.ts

    B. Evidence Panel を正本メタデータ生成器にする

    人間が手で SHA や URL を書くと壊れやすいので、Evidence Panel に以下をコピー可能な YAML として出すのがよいです。

    playtest_evidence:
      scenario_id: timeout_30s_terminal
      tested_commit: "<40-char SHA or unknown_with_reason>"
      route: "<url>"
      browser: "<ua>"
      viewport: "<width>x<height>"
      device_pixel_ratio: "<number>"
      expected:
        outcome: timeout
        end_reason: timeout
        hud_label: 戦闘終了
        overlay_not: DEFEAT

    PR #723 で AC8 Evidence Panel は #690 を対象外にしていますが、#690 側では Evidence Panel の出力を AC11 用に拡張または再利用するのが自然です。([GitHub]13)


    C. ブラウザ内録画は補助としては有効

    MediaRecorder API は主要ブラウザで広く利用可能で、MediaRecorder.isTypeSupported() により video/webm や video/mp4 の対応確認ができます。また Canvas は canvas.captureStream() で MediaStream 化し、MediaRecorder に渡せます。([MDNウェブドキュメント]14)

    ただし、Canvas capture は ブラウザ全体・Evidence Panel・URL bar・操作文脈を含まない可能性があります。#690 の正本は人間の screen recording とし、MediaRecorder は canvas-only の補助 artifact に限定するのが安全です。


    最終指摘

    #690 は「未採取だった timeout 動画を撮る」Issue としては正しいですが、今のままだと古い timeout = defeat 契約を延命する危険があります。

    実施前に以下を必ず直すべきです。

    1. timeout_30s_defeat を現行契約から外す。
    2. timeout_30s_terminal / timeout_30s_neutral_terminal に改名する。
    3. 期待値を defeat ではなく timeout / 戦闘終了 にする。
    4. GitHub attachment URL + SHA256 + bytes + tested_commit + timestamps を必須化する。
    5. Actions artifact や repo commit ではなく、GitHub attachment を正本にする。
    6. fix(systems): sortie timeout as neutral terminal #732 後の timeout semantic に合わせて docs / tests / evidence を揃える。

    この修正後なら、#690 は M3 gate 前の妥当な evidence debt 解消 Issue になります。

  4. squne121 commented on Jun 7, 2026

    @squne121
    OwnerAuthor
    20260607-0643-02.1714120.mp4

    Loop Protocol Playtest Evidence

    Generated by playtestEvidence panel (AC8)

    playtest_evidence_schema_version: v1
    generated_at: "2026-06-07T06:43:51.004Z"
    source_url: "https://squne121.github.io/loop-protocol/pr-743/"
    app_under_test:
    name: loop-protocol
    commit: f7d66c1
    browser:
    version: 149.0.7827.54
    version_source: userAgentData
    platform: Windows
    user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
    environment:
    viewport:
    inner_width: 1920
    inner_height: 911
    client_width: 1905
    client_height: 911
    visual_viewport_width: 1905
    visual_viewport_height: 911
    visual_viewport_scale: 1
    device_pixel_ratio:
    value: 1
    note: device_pixel_ratio はページズームおよび OS の display scaling 設定によって変化します。1.0 が物理ピクセル等倍とは限りません。
    screen:
    width: 1920
    height: 1080
    avail_width: 1920
    avail_height: 1032
    timezone: Asia/Tokyo
    language: ja
    hashes: {}

  5. changed the title [-]M2 playtest: AC11 timeout_30s_defeat の人間動画を M3 gate 前に採取して waiver を解消する[/-] [+]M2 playtest: AC11 timeout_30s_terminal の人間観察動画を M3 gate 前に採取して waiver を解消する[/+] on Jun 7, 2026
  6. squne121 commented on Jun 7, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Approved

    The issue has been approved and is ready for implementation.

  7. squne121 commented on Jun 7, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop ハンドオフ(人間判断待ち)

    本文の refinement を完了しました。決定論チェッカー(C1〜C13)は verdict: approve / blocking 0 / non-blocking 0 です。

    適用した reframe(anchor comment 準拠)

    issuecomment-4641684676 の REQUEST_CHANGES(human_decision_reframe)に従い、#725(CLOSED)/ #732(MERGED, 2026-06-07)後の契約へ揃えました。

    • タイトルとシナリオ名を timeout_30s_defeat → timeout_30s_terminal に改名。旧語は historical note のみに限定。
    • 期待値を defeat ではなく中立 terminal(outcome: "timeout" / endReason: "timeout" / HUD「戦闘終了」/ Canvas overlay ≠ DEFEAT)へ修正。実装は src/systems/SortieSystem.ts / src/ui/HudController.ts で確認済み。
    • 証跡要件を強化(GitHub-hosted attachment URL を正本 / sha256 / bytes / tested_commit(40-char) / browser / viewport / DPR / operator / 人間観察チェックリスト)。
    • ## Outcome と ## Runtime Verification Applicability(decision: deferred、検証は M3 gate 前の次回手動プレイテストへ)を追加。

    要確認(次の解消 PR でのブロッカー)

    issuecomment-4641688172 で提示された動画は 候補であり、本 Issue の AC をまだ満たしていません。本文「採取済み候補証跡(要検証)」に記載の通り:

    • 添付された Evidence Panel は AC8 panel(viewport/DPR 用)で、timeout シナリオ固有のフィールド(outcome / endReason / scenario_id)を含みません。
    • 動画が「30秒 timeout → 中立 terminal(戦闘終了)」を映し DEFEAT でないことの人間確認が未了です。
    • sha256 / bytes / mime_type が未記載です。

    次アクション(人間)

    1. M3 gate 前の手動プレイテストで timeout 中立 terminal を人間観察・録画する(候補動画が AC を満たすなら再利用可)。
    2. docs/playtest/m2-combat-mvp.md の timeout エントリを deferred_exception → accepted へ更新し、動画 URL と検証メタデータを記録する(Allowed Paths は当該ファイルのみ)。

    注: 本ループ中、探索委譲した補助 worker が一度 Issue 本文を捏造内容(存在しない npm run timeout_30s_terminal 等)で上書きしましたが、control-plane が検出し検証済み本文へ復旧しました。現在のライブ本文は正本です。

  8. added a commit that references this issue on Jun 7, 2026
  9. squne121 commented on Jun 7, 2026

    @squne121
    OwnerAuthor

    Resolution note(旧名 timeout_30s_defeat → timeout_30s_terminal の変換経緯)

    本 Issue はオープン当時、timeout が defeat として扱われていたため timeout_30s_defeat の人間動画証跡を追跡していました。その後 #725 / #732 により live contract が timeout_30s_terminal に変更されています:

    • status: timeout
    • result.outcome: timeout / result.endReason: timeout
    • HUD「戦闘終了」/ Canvas overlay は neutral(non-DEFEAT)

    This issue originally tracked timeout_30s_defeat because timeout was treated as defeat when #690 was opened. After #725 / #732, the live contract is timeout_30s_terminal: a 30s timeout produces status: timeout, result.outcome/endReason: timeout, and a neutral HUD(「戦闘終了」)/ overlay (non-DEFEAT). The renamed live contract is what the evidence is validated against.

    解決 PR: #755 — operator squne121 の人間観察動画証跡で AC11 deferred waiver を解消し、docs/playtest/m2-combat-mvp.md の AC11 を deferred_exception → accepted に更新しました。旧名 timeout_30s_defeat は historical note としてのみ残しています。

  10. added a commit that references this issue on Jun 7, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions