Skip to content

実装: preparation / debrief phase の最小 HUD 操作面を導入する #775

Closed as duplicate

Description

@squne121

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: code

Parent 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 背景説明

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.ts
  • src/main.ts
  • tests/e2e/**
  • 必要最小限の関連 test file

Notes 補足事項

Activity

  1. squne121 commented on Jun 9, 2026

    @squne121
    OwnerAuthor

    post-merge-cleanup:

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions