Repository navigation
Closed as duplicate
Description
Machine-Readable Contract 機械可読契約
contract_schema_version: v1
issue_kind: implementation
parent_issue: "親Issue は #733"
goal_ref: "M3: Loop MVP Gate の browser runtime で preparation / debrief phase に対応する最小操作面を導入し、Start sortie / Claim reward / Next sortie を実行可能にする"
change_kind: codeParent Issue 親課題
親Issue は #733
Parent Goal Ref 親ゴール参照
- Goal: M3: Loop MVP Gate (v0.3.x) として sortie 結果から報酬を獲得し localStorage へ進行を永続化して reload 後に復元する
- Desired Destination:
src/ui/HudController.tsとsrc/main.tsに preparation / debrief phase 用の最小操作面を追加し、PR preview / browser runtime でpreparation -> running -> debrief_pending_reward -> debrief_reward_claimed -> next sortieを手動で進められるようにする
Background 背景説明
- Issue 実装: sortie 後の debrief / preparation フェーズを導入する #738 は headless loop phase state machine と reward claim handoff を導入する implementation issue であり、UI 操作面は Out of Scope として扱っている
- PR feat: add sortie debrief loop phases #773 の preview では戦闘が自動開始せず、owner playtest comment
https://github.com/squne121/loop-protocol/pull/773#issuecomment-4661430593で「戦闘が始まらないことを確認した。今回の Issue ではこれが目的か。準備フェーズなどの作り込みは別 Issue か」と確認が入っている - Issue 実装: sortie 後の debrief / preparation フェーズを導入する #738 の Remaining Parent Gaps でも「preparation / debrief phase の最小 HUD 操作面(Start sortie / Claim reward / Next sortie / Quick Load)の導入」は follow-up issue で扱うと明記済み
Outcome 目的状態
PR preview / browser runtime で、fresh load 後に preparation に留まった状態からプレイヤーが Start sortie を押して戦闘を開始でき、terminal result 後に Claim reward を押して debrief_reward_claimed へ進み、Next sortie で次の sortie を開始できる。少なくとも #773 単体で発生している「戦闘が始まらない」混乱が browser runtime 上で解消される。
In Scope 対象範囲
src/ui/HudController.tsにStart sortie/Claim reward/Next sortieの最小 button surface を追加するsrc/main.tsでloopPhaseに応じて button action を bind し、startSortie(...)/claimPendingReward(...)を操作可能にする- preparation 中は
Start sortie、debrief_pending_reward中はClaim reward、debrief_reward_claimed中はNext sortieが有効になる - runtime 表示上、現在の phase と action 可否が最低限分かるようにする
- browser runtime / preview で fresh load から手動開始できることを E2E または playtest で確認する
Out of Scope 対象外
- reward claim 後の snapshot 保存と reload 復元
- Quick Load 実装本体
- Quick Save/Quick Load の完全な phase-aware policy UI
- weapon upgrade / resource 消費ロジック
LoopPhase/ reward claim domain contract の再設計
Runtime Verification Applicability 実行時検証方針
applicability: immediate
decision: immediate
reason: browser runtime での戦闘開始可否と debrief 操作面は preview / Playwright で直接確認できるため
notes: この issue は即時に runtime 検証できる
Acceptance Criteria 受け入れ条件
- AC1: fresh browser load 後、preview / local runtime で
Start sortieによりpreparationからrunningへ進める - AC2: terminal result 後、
Claim rewardによりdebrief_pending_rewardからdebrief_reward_claimedへ進める - AC3: reward claim 後、
Next sortieにより次の sortie を開始できる - AC4: phase に応じて無効な action は押せない、または no-op として明示される
- AC5: browser runtime / preview で「戦闘が始まらない」状態が解消される
- AC6: 関連 unit / e2e / build が通る
Allowed Paths 変更許可範囲
src/ui/HudController.tssrc/main.tstests/e2e/**- 必要最小限の関連 test file
Notes 補足事項
- 発端コメント:
https://github.com/squne121/loop-protocol/pull/773#issuecomment-4661430593 - 実装: sortie 後の debrief / preparation フェーズを導入する #738 は headless domain state machine を先に固定する issue であり、本 issue は browser runtime の操作面に限定する
Metadata
Metadata
Assignees
Labels
No labels
Activity
squne121 commentedon Jun 9, 2026
post-merge-cleanup: