Repository navigation
Closed
9 / 109 of 10 issues completedLabels
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: parent
goal_ref: "右側 command rail を廃止し、LoopPhase を正本にしたゲーム内 DOM overlay UI として title / preparation / running / result / pause の画面体験を統合する"
change_kind: mixed
parent_mode: delivery-rollup
closure_mode: child-completeSummary
現在の battle-stage と command-rail の二列構成を、Canvas 戦闘領域の内側に重なる DOM overlay UI へ段階移行する parent tracker。
Goal
右側 command rail に常時表示されている情報と操作を、LoopPhase に従う title / preparation / running / result / pause の画面単位へ分解し、通常プレイでは単一の battle surface 内で完結する UI にする。
Desired Destination
title_menu/preparation/running/result/ pause が battle-stage 内 DOM overlay として表示される- Canvas は world 表示と visual cue を担い、interactive control は DOM control として残る
- 旧
aside.command-railと二列 shell は機能パリティ確認後に削除される - [Deferred] 実装: 戦闘中ステータス(HULL/HP)を戦闘描画画面(Canvas)に集約表示する #727 の Canvas 集約方向は再開せず、
ui-information-architecture.mdの DOM HUD overlay 方針に沿う
Current Validated Scope
src/main.tsはbattle-stageとaside.command-railを兄弟として生成しているsrc/style.cssは.app-shellをminmax(0, 1fr) 340pxの二列グリッドとして定義しているsrc/ui/HudController.tsは Pilot feed / Progress / Sortie / Wingmates / Pilot updates / pause / actions を一つの右レールへ描画しているdocs/product/features/ui-information-architecture.mdは Canvas と DOM HUD の責務分離、phase-aware UI、[Deferred] 実装: 戦闘中ステータス(HULL/HP)を戦闘描画画面(Canvas)に集約表示する #727 の rewrite/replacement 方針を定義している- 実装: HUD に upgrade purchase surface と player-facing state を追加する #1282 / PR feat: HUDにupgrade purchase surfaceとplayer-facing stateを追加する #1365 は merge 済みであり、UI 統合 child は post-実装: HUD に upgrade purchase surface と player-facing state を追加する #1282 の
HudController/main.tsshape を intake 済みとして扱う - 現行 pause は
LoopPhaseではなく runtime-localproductPause.isPausedが interruption overlay の正本であり、独立uiScreenstate は導入しない - 実装: command rail 統合前に UI IA と sortie timer authority を整理する #1372 は
sortie.md30 秒 authority とgame-logic.md120 秒記述の conflict を解消する blocker child であり、timer / result UI child は 実装: command rail 統合前に UI IA と sortie timer authority を整理する #1372 merge 後に進める
Decisions Fixed
- 2026-07-07: Canvas に button / menu を描かず、DOM overlay として battle-stage 内へ統合する
- 2026-07-07:
LoopPhaseを phase selection の正本とし、独立したuiScreenstate は導入しない - 2026-07-07: pause overlay は
productPause.isPausedから導出し、LoopPhaseに pause phase を追加しない - 2026-07-07: 右レール削除は最後の child に限定し、先に overlay shell と phase screen を段階導入する
- 2026-07-07:
src/ui/HudController.ts/src/main.tsを触る child は 実装: HUD に upgrade purchase surface と player-facing state を追加する #1282 / PR feat: HUDにupgrade purchase surfaceとplayer-facing stateを追加する #1365 merge 後の shape を前提にする
Quality Decision Record
Status: N/ADecision Date: 2026-07-07Does this prove the parent goal complete?: N/AReason: delivery-rollup parent のため、quality-gate 判定ではなく child 完了で close 判定するEvidence: N/ANext Action: child issue を依存順に実装する
Parent Closure Rule
delivery-rollup: Child Issues がすべて close され、旧 command rail 削除後の E2E / build verification が PASS したら close するquality-gate: N/Arouting-map: N/Adecision-log: N/A- 非
quality-gateparent のQuality Decision RecordはN/A扱いでよく、close 判定の必須材料にしない
Child Issues
- 実装: command rail 統合前に UI IA と sortie timer authority を整理する #1372 — docs 境界整理: UI IA と sortie timer authority を統合 UI 前提として明確化する
- 実装: battle-stage 内 DOM overlay shell を追加する #1373 — overlay shell: battle-stage 内 DOM layer を追加し、既存 HudController を移設可能にする(実装: command rail 統合前に UI IA と sortie timer authority を整理する #1372 merge 後)
- 実装: title と preparation を phase screen overlay に移す #1374 — phase screens: title / preparation を battle-stage 内 overlay screen に移す
- 実装: running 用 combat HUD を battle-stage 内 overlay に再配置する #1375 — combat HUD: running 中の HUD を最小 overlay に再配置する
- 実装: result screen と pause overlay を battle-stage 内に統合する #1376 — result / pause: result screen と pause overlay を battle-stage 内に出す
- 実装: 旧 command rail を削除し overlay UI を E2E 検証する #1377 — rail removal: 旧 command rail と二列 CSS を削除し、E2E で遷移を確認する
Remaining Parent Gaps
- 実装: command rail 統合前に UI IA と sortie timer authority を整理する #1372 で 実装: HUD に upgrade purchase surface と player-facing state を追加する #1282 / PR feat: HUDにupgrade purchase surfaceとplayer-facing stateを追加する #1365 merge 後の current HUD shape と sortie timer authority を docs に反映する
- [Deferred] 実装: 戦闘中ステータス(HULL/HP)を戦闘描画画面(Canvas)に集約表示する #727 に本 parent の DOM overlay 方針へ routing するコメントを残す、または最終 child closure 前に supersede / close / rewrite を記録する
Phase Handoff Contract
Desired Destination: battle-stage 内 DOM overlay UI へ段階移行。Canvas は world / visual cue のみを担い、interactive control は DOM overlay が正本Current Validated Scope:src/main.ts/src/ui/HudController.ts/src/style.css/ relevant tests / UI IA docsRemaining Parent Gaps: child ごとに本文へ列挙Current Objective: child issue の Outcome に従うBounded Current Context: Canvas に interactive control を焼き込まない。pause はproductPause.isPaused由来の interruption overlay として扱うNormative References:docs/product/features/ui-information-architecture.md,docs/product/features/sortie.md,docs/product/game-design.md,docs/adr/0001-architecture-baseline.mdAllowed Paths: child issue ごとに限定Required Skills: TypeScript / DOM UI / CSS overlay / Vitest / PlaywrightValidation Commands: child issue ごとに単一コマンドで列挙Stop Conditions: implementation template の 6 定型項目を継承Open Questions: [Deferred] 実装: 戦闘中ステータス(HULL/HP)を戦闘描画画面(Canvas)に集約表示する #727 の最終処理、safe margin / collapse threshold の最終値Next Action: docs 境界整理 child から着手するArtifact Refs:src/main.ts,src/ui/HudController.ts,src/style.css,tests/hud-controller.test.ts,tests/main-loop.test.ts,tests/e2e/m3-loop-mvp.spec.tsHandoff Prompt Draft: Issue contract を正本として専用 worktree で実装するLinked PR: implementation child で作成する
Outcome
Child issue contract が anchor comment の指摘を反映し、右側 command rail 廃止までの blocker 順序、pause source-of-truth、preview evidence、#727 routing が parent tracker から追跡できる状態。
Product Spec Context
product_spec_id: UI-OVERLAY-PARENT-1370
requirement_id: REQ-1370
source_task_id: TASK-1370
source_of_truth: docs/product/features/ui-information-architecture.md
diff_rationale: "#1370 anchor review comment 4903849229 により、DOM overlay 統合 parent の blocker 順序、pause source-of-truth、preview evidence、#727 routing を明確化するため"
changed_requirement_id: UI-OVERLAY-PARENT-1370
affected_sections:
- Desired Destination
- Current Validated Scope
- Child Issues
- Remaining Parent Gaps
- Acceptance Criteria
- Verification Commands
product_spec_change_mode: parent_tracker_contract_syncAcceptance Criteria
- AC1: Child Issues が依存順に起票され、parent linkage と 実装: command rail 統合前に UI IA と sortie timer authority を整理する #1372 blocker 順序が登録されている
- AC2: すべての child issue が close されている
- AC3: 最終 child で
pnpm typecheck/pnpm lint/pnpm test/pnpm buildが PASS している - AC4: 旧
aside.command-railが runtime shell から削除され、通常プレイ UI が battle-stage 内 DOM overlay で完結している - AC5: [Deferred] 実装: 戦闘中ステータス(HULL/HP)を戦闘描画画面(Canvas)に集約表示する #727 の最終 routing(supersede / close / rewrite)が記録され、導入: 右側 command rail をゲーム内 DOM overlay に統合する #1370 と競合する Canvas interactive UI 実装が残っていない
- AC6: 最終 child の preview evidence に page URL / commit SHA / GitHub Actions run ID / artifact names または availability reason / viewport / DPR / zoom / userAgent / timezone が残っている
Verification Commands
# AC1
$ gh issue view 1370 --json body
# AC2
$ gh issue view 1370 --json body
# AC3
$ pnpm build
# AC4
$ rg -c "command-rail" src/main.ts
# AC5
$ gh issue view 727 --json body,comments
# AC6
$ gh pr checksRuntime Verification Applicability
decision: not_applicable
reason: parent tracker refinement のため、runtime verification は implementation child で実施する。
Allowed Paths
- docs/product/features/ui-information-architecture.md
- docs/product/features/sortie.md
- docs/product/game-logic.md
- docs/product/game-design.md
- src/main.ts
- src/style.css
- src/ui/HudController.ts
- src/ui/index.ts
- src/ui/productPause.ts
- tests/main-loop.test.ts
- tests/hud-controller.test.ts
- tests/product-pause.test.ts
- tests/e2e/m2-combat-mvp.spec.ts
- tests/e2e/m3-loop-mvp.spec.ts
- tests/e2e/hud-hull-overflow.spec.ts
- tests/e2e/product-pause.spec.ts
- tests/e2e/screenshots/
Notes
- Spark subagent には read-only で分割案を確認済み。最終起票は main thread が validator / transaction helper 経由で行う。
docs/product/features/ui-information-architecture.mdは [Deferred] 実装: 戦闘中ステータス(HULL/HP)を戦闘描画画面(Canvas)に集約表示する #727 の Canvas 集約方向を supersede しており、本 parent はその方針に従う。
Sub-issues
Collapse Sub-issuesSub-issues
Loading 10 sub-issues
Activity
squne121 commentedon Jul 7, 2026
判定
REQUEST_CHANGES。方向性は妥当だが、#1370 は parent contract としてまだ硬さが足りません。
「Canvas に操作 UI を焼かず、battle-stage 内 DOM overlay に集約する」という判断は、既存の UI IA と Web 標準の両方に合っています。ただし現状の #1370 は、依存状態が stale、pause の source-of-truth が曖昧、docs conflict が未解消、AC/VC が
rg中心で弱く、実装者が「右レールを battle-stage の上に移しただけ」の状態で通せてしまいます。このレビューでは、#1370、子 Issue #1372–#1377、#1282、#727、PR #1365、関連コメント、
src/main.ts/HudController.ts/ CSS / specs / E2E / deploy workflow を確認しました。新規にpnpmは実行していません。#1282 対応 PR #1365 については、PR コメント上で最終的に typecheck / lint / test / build が PASS と記録されています。P0: そのまま進めると破綻する点
1. #1282 blocker 情報が stale
#1370 本文は #1282 を「merge 後に UI child intake」として残しており、#1373 も「#1282 が未マージの場合は着手しない」としています。
しかし #1282 は現在 closed / completed で、PR #1365 は merged 済みです。 PR #1365 は
Weapon Power、Upgrade weapon、quoteUpgrade()authority、failure copy mapping、同期hud.render()seam を入れたと説明しており、Closes #1282です。修正必須: #1370 の
Remaining Parent Gapsから #1282 blocker を削除し、#1373–#1377 のstate/blocked/ 着手条件を更新してください。残すなら「#1282 merge 後の現行HudControllershape を前提に intake 済み」と書き換えるべきです。2. 「LoopPhase を screen selection の正本」と「pause screen」が矛盾している
#1370 は
LoopPhaseを screen selection の正本にし、独立uiScreenstate は導入しないと固定しています。しかし現行
LoopPhaseはtitle_menu/load_menu/preparation/running/result/ legacy debrief だけで、pauseは含みません。PhaseTransitionSystemにも pause transition はありません。 現行 pause はproductPause.isPausedという runtime-local state で、handleTogglePause()が running 中だけ entry を許可しています。修正案:
uiScreenを追加しない方針は維持してよいですが、screen selector は次の形に明文化すべきです。つまり、LoopPhase は phase の正本、
productPause.isPausedは interruption overlay の正本です。pauseまで LoopPhase だけから導出すると、現行 state model と矛盾します。3. #1372 の 30秒 / 120秒 conflict は実在するので docs-only child を軽視できない
#1372 は
sortie.mdとgame-logic.mdの timer authority を整理するとしています。 これは仮説ではなく実在する conflict です。sortie.mdは 30 秒 timeout を正本とし、targetTicks = ceil(30_000 / fixedDeltaMs)、duration はelapsedTicks * fixedDeltaMsと定義しています。 一方、game-logic.mdは timer 120 秒を victory/termination 要件としてまだ持っています。修正必須: #1372 は単なる前座ではなく、#1373 以降の blocker にしてください。UI は timer / result / duration を表示するため、SSOT conflict を残すと running HUD と result screen が仕様上不安定になります。
4. 現行
HudControllerは “phase screen” ではなく “全パネル常時生成 + disabled 切替”createHudController()は Pilot feed / Progress / Sortie / Wingmates / Armory / Pilot updates / pause status / actions を全て一括生成しています。render()は phase に応じて button disabled を切り替えていますが、構造上は action surface が常に DOM に存在します。 現行テストも running 中に Save / Load / Reset 等が「disabled で存在する」ことを確認しています。これは #1374 / #1375 の「title / preparation screen」「running combat HUD」と噛み合いません。右レールを battle-stage 内に移すだけなら AC を満たしたように見えますが、UI IA が求める phase-aware overlay にはなりません。
修正必須: 子 Issue の AC を「disabled」から「visible / hidden / inert / focusable の明示検証」に引き上げてください。特に running 中は New Game / Save / Load / Reset が tab order に残らないことを Playwright と jsdom の両方で確認すべきです。
P1: 高リスク設計指摘
5. overlay の
pointer-events設計が弱い#1373 は overlay CSS に
position / inset / pointer-events foundationを追加するとしていますが、AC はposition: absolute相当の確認に留まっています。 現行 CSS では.battle-stageにposition: relativeがなく、overlay root もありません。外部仕様上、
pointer-events: noneはポインターイベントを下層へ通せますが、子孫は別値で targetable にできます。また、pointer-events: noneだけでは Tab focus から除外されません。([MDNウェブドキュメント]1)したがって CSS だけでは accessibility state を制御できません。
追加すべき実装規約:
加えて、inactive screen は
hiddenまたはinertで tab order / accessibility tree から外すべきです。MDN はinertが click / focus / tab order / accessibility tree から対象を除外すると説明しています。([MDNウェブドキュメント]2)6. pause overlay / result screen の dialog semantics が未規定
#1376 は DOM dialog semantics / focus management を Required Skills に入れていますが、AC では focus trap、focus return、
aria-modal、Escape behavior の合否条件が薄いです。WAI-ARIA APG の modal dialog pattern では、modal 表示中は外側 content が inert になり、Tab / Shift+Tab は dialog 内を循環し、Escape で閉じ、閉じた後は通常 invoking element に focus を戻します。
role="dialog"とaria-modal="true"は、実際に外部 interaction をブロックして視覚的にも modal になっている場合だけ使うべきです。([W3C]3)修正案: pause overlay を本当に modal にするなら、#1376 AC に以下を追加してください。
Resumebutton へ移る。aria-modal="true"を使う場合、外側 battle controls は実際に inert になる。aria-modalを使わず、role="status"/ labelled region にする。7. accessible name regression を AC で捕まえるべき
UI IA は Canvas を唯一の interactive control surface にしないと明記しています。 外部仕様でも、focusable interactive element は accessible name が必要で、可能なら可視テキストを優先すべきです。([W3C]4)
#1374–#1376 の AC は「button が存在する」だけでなく、
getByRole('button', { name: '...' })で検証してください。特にaria-labelを多用すると、可視ラベルと accessible name が drift します。8. Canvas result overlay は visual cue に留める必要がある
現行
CanvasRendererは sortie result に応じて Canvas 全面に色 overlay を描きます。 これは visual cue としては許容できますが、#1376 の result screen は DOM 側が authoritative surface であるべきです。MDN も Canvas は bitmap であり、semantic HTML のように accessibility tree に露出しないため、accessible UI を Canvas のみで構成すべきでないと説明しています。([MDNウェブドキュメント]5)
したがって #1376 は「Canvas result fill は non-authoritative visual cue。Return to hangar / result details は DOM overlay が正本」と明記してください。
9. #727 の扱いが弱い
#727 は OWNER 判断で Deferred であり、再開条件が満たされるまで実装 PR を作らないと明記されています。 UI IA も #727 をそのまま resume せず、
Canvas visual cues + DOM HUD player status integrationへ rewrite または replace すると定義しています。#1370 は「本 parent 完了後に #727 を rewrite / close / supersede 判断」としていますが、これは後回しにしすぎです。少なくとも #1372 で #727 に routing comment を残す、または #1370 の child closure 条件に「#727 の最終 routing が記録済み」を入れるべきです。そうしないと、#1370 と #727 から相反する UI 実装 PR が発生します。
P2: 品質を上げる改善
10. Allowed Paths が monolith 化を誘発している
#1373–#1376 はほぼ
src/ui/HudController.tsに変更を集中させています。現行
HudController.tsは既に HUD rendering、copy mapping、button wiring、upgrade surface を抱えています。提案: child Issue の Allowed Paths に、新規 UI module を許可してください。
src/ui/battleOverlay.tssrc/ui/phaseScreens.tssrc/ui/combatHud.tstests/phase-screens.test.tsまたは既存hud-controller.test.ts1 ファイルに overlay shell / phase screen / running HUD / result dialog / pause overlay を詰めると、後続改修で不可避に崩れます。
11. legacy debrief phases の表示方針が未定義
LoopPhaseにはdebrief_pending_rewardとdebrief_reward_claimedがまだ残っています。 現行 HUD には legacy 用のCollect payout/Prepare next sortieもあります。 #1376 はそれらを通常 result UI から隠すとしていますが、legacy phase に入った場合の overlay fallback が曖昧です。追加 AC: legacy debrief phase は normal overlay で露出しない、または compatibility-only hidden/debug surface に隔離する、と明文化してください。
12. UI IA の readability / viewport / evidence policy を子 Issue が引き継いでいない
UI IA は 1920x1080 baseline、major HUD text 18 CSS px 以上、200% zoom で critical warning 可視、safe margin、viewport / zoom / DPR 検証を定義しています。 Evidence policy も commit SHA、run ID、page URL、artifact names/digests、retention、viewport、DPR、zoom、userAgent、timezone、screenshot/video を要求しています。
#1375 / #1377 にこれを落とし込まないと、通常プレイ UI が battle-stage 内に収まっただけで、可読性 evidence は残りません。
配布物・Web 実装調査を反映した要求
Vite / GitHub Pages
Vite の公式 docs は、GitHub Pages で repository path 配下に deploy する場合、
base: '/<REPO>/'が必要と説明しています。([vitejs]6)この repo は
vite.config.tsでVITE_BASE_PATHを検証し、末尾 slash を正規化しています。 deploy workflow も main では/${repo}/、PR preview では/${repo}/pr-${number}/を注入し、dist 内 asset base path を grep で検証しています。#1370 最終 child に追加すべき AC:
dist/index.htmlに/loop-protocol/pr-<PR>/assets/が入り、/assets/直指定がない。VITE_LOOP_STORAGE_NAMESPACE=pr-<PR>が preview bundle に反映され、main save key と衝突しない。Playwright screenshot / E2E
Playwright の
toHaveScreenshot()は初回に reference を生成し、以後比較しますが、rendering は OS / version / hardware / headless 等で変わるため、同じ環境で実行する必要があります。volatile 要素は style injection で隠す運用も公式に説明されています。([Playwright]7)#1377 の E2E は最低限これを確認すべきです。
.command-railが存在しない。getByRole('button', { name: 'New Game' })等の主要 control が.battle-stage配下にある。Issue 本文への具体的修正案
#1370 parent に追加
#1373 overlay shell AC 追加
#1374 / #1375 phase screen AC 追加
#1376 result / pause AC 追加
#1377 final verification AC 追加
推奨順序
command-railはまだ削除しないが、Hud mount を battle-stage 内に移す。この順序なら、#1370 の方針は維持しつつ、「DOM overlay に移しただけ」「disabled な旧 rail が画面内に残っただけ」「pause が LoopPhase 契約を破る」といった失敗を防げます。
squne121 commentedon Jul 7, 2026
Refinement Loop: Approved
The issue has been approved and is ready for implementation.
approvedsqune121 commentedon Oct 2, 2026
Backlog audit (2026-10-02): close as completed. Parent closure conditions are satisfied: child Issues #1372 through #1377 are all CLOSED / completed; the legacy competing route #727 is CLOSED / not_planned; and the final rail-removal child #1377 landed via merged PR #1998. #1377 records PASS for typecheck/lint/test/build and the remaining local E2E visual delta as pre-existing on clean main rather than introduced by the child. No residual parent-owned delivery scope was found.