Skip to content

実装: title と preparation を phase screen overlay に移す #1374

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1370"
goal_ref: "右側 command rail をゲーム内 DOM overlay UI へ段階移行する"
change_kind: code

Parent Issue

#1370

Parent Goal Ref

  • Goal: 右側 command rail を廃止し、LoopPhase を正本にしたゲーム内 DOM overlay UI として title / preparation / running / result / pause の画面体験を統合する
  • Desired Destination: battle-stage 内 DOM overlay UI で通常プレイが完結する

Current Validated Scope

  • LoopPhase には title_menu / load_menu / preparation / running / result が存在する
  • HudController はすべての panel と action を常時 DOM に生成し、phase によって button disabled を切り替えている
  • src/systems/PhaseTransitionSystem.ts が LOOP_PHASE_TRANSITIONS を正本として遷移を管理する。現状 preparation から load_menu への遷移は定義されていない(title_menu からの open_load_menu のみ)
  • 実装: battle-stage 内 DOM overlay shell を追加する #1373 が battle-stage 内 overlay root と pointer/focus foundation を用意する
  • overlay shell child が先に battle-stage 内 root を用意する

Remaining Parent Gaps

  • running combat HUD 実装
  • result / pause overlay 実装
  • 旧 command rail 削除と E2E 検証

Outcome

title_menu と preparation の主要操作が battle-stage 内 phase screen として表示され、右レールを見なくても New Game / Load Game / Launch sortie / Save / Reset の準備導線を操作できる状態。preparation から Load を開いた場合は load_menu の Back で preparation に戻り、title_menu から開いた場合は title_menu に戻る。load 失敗時は load_menu に留まりエラーを表示する。

In Scope

  • HudController 内部を phase screen view と persistent status view に分ける
  • title_menu / load_menu / preparation の visible / hidden mapping を LoopPhase から導出する
  • title screen に New Game / Load Game を配置する
  • preparation screen に Launch sortie / Save / Load / Reset と必要な Progress / Sortie summary を配置する
  • PhaseTransitionSystem.ts の LOOP_PHASE_TRANSITIONS.preparation に open_load_menu: 'load_menu' を追加し、preparation から load_menu を開けるようにする
  • LOOP_PHASE_TRANSITIONS.load_menu に back_to_preparation: 'preparation' を追加し、preparation 由来で開いた load_menu の Back が preparation に戻るようにする(title_menu 由来は既存の back_to_title を使う)。呼び出し元(HudController / phaseScreens.ts)が load_menu を開いた起点(title_menu か preparation か)を保持し、Back 押下時に正しい intent を選択する
  • load 失敗時は phase 遷移を発生させず load_menu に留まり、エラーメッセージを表示する
  • unit test で phase ごとの visible controls を role/name query と hidden / inert / focusable 状態で検証する
  • unit test で load_menu の Back が起点 phase(title_menu / preparation)に応じて正しい遷移先へ戻ることを検証する
  • unit test で load 失敗時に load_menu へ留まりエラー表示されることを検証する
  • running 中に New Game / Save / Load / Reset が tab order に残らないことを検証する
  • raw LoopPhase / telemetry / internal enum copy を normal overlay text に出さない

Out of Scope

  • running combat HUD の最終配置
  • result modal / pause overlay
  • 旧 command rail の削除
  • Canvas 描画変更
  • アクセシビリティの heading level 詳細、viewport / zoom 要件、preview 環境での E2E 検証、画面要素の網羅的な表示要否定義(anchor comment 実装: title と preparation を phase screen overlay に移す #1374 (comment) が提起した追加要件。本 Issue のスコープには含めず、必要なら follow-up Issue で扱う)

Acceptance Criteria

  • AC1: title_menu で title screen が表示され、New Game と Load Game の DOM button が存在する
  • AC2: preparation で preparation screen が表示され、Launch sortie / Save / Reset が操作可能になる
  • AC3: running では title / preparation の大パネルが hidden または inert になり、keyboard tab order から外れる
  • AC4: visible controls は getByRole(..., { name }) 相当で検証され、data-action selector だけに依存しない
  • AC5: 画面切替は state.loopPhase から導出され、別の uiScreen state を追加しない
  • AC6: running 中に New Game / Save / Load / Reset は focusable ではない
  • AC7: typecheck / lint / test / build が PASS する
  • AC8: preparation から開いた load_menu で Back を押すと preparation に戻り、title_menu から開いた場合は title_menu に戻る
  • AC9: load 失敗時は load_menu に留まりエラーメッセージが表示され、不正な phase 遷移は発生しない

Verification Commands

# AC1
# baseline-expect: pass
$ rg -n "title_menu" src/ui/HudController.ts tests/hud-controller.test.ts
# AC2
# baseline-expect: pass
$ rg -n "preparation" src/ui/HudController.ts tests/hud-controller.test.ts
# AC3
# baseline-expect: pass
$ rg -n "running" src/ui/HudController.ts tests/hud-controller.test.ts
# AC4
$ rg -n "getByRole" tests/hud-controller.test.ts tests/main-loop.test.ts
# baseline-expect: pass
$ rg -n "role" tests/hud-controller.test.ts tests/main-loop.test.ts
# AC5
# baseline-expect: pass
$ rg -n "loopPhase" src/ui/HudController.ts tests/hud-controller.test.ts
# AC6
# baseline-expect: pass
$ rg -n "focus" tests/hud-controller.test.ts tests/main-loop.test.ts
# baseline-expect: pass
$ rg -n "inert" tests/hud-controller.test.ts tests/main-loop.test.ts
# baseline-expect: pass
$ rg -n "hidden" tests/hud-controller.test.ts tests/main-loop.test.ts
# AC7
$ pnpm build
# AC8
$ rg -n "back_to_preparation" src/systems/PhaseTransitionSystem.ts tests/phase-transition-system.test.ts
# AC9
$ rg -n "loadFailure" tests/hud-controller.test.ts tests/main-loop.test.ts

Runtime Verification Applicability

decision: immediate
reason: phase screen visibility / hidden or inert / role-name controls / load_menu 遷移先の分岐は user-visible runtime UI で検証が必要。
applicable_acs: AC1, AC2, AC3, AC4, AC6, AC8, AC9
execution_environment: Vitest DOM tests and local build
skip_conditions: DOM test environment unavailable
fallback_policy: 実装を停止し、Issue comment で blocker を記録する
artifact_requirements: role/name query, hidden or inert state, focus exclusion, load_menu back-destination, and load-failure test output

Allowed Paths

  • src/ui/HudController.ts
  • src/ui/index.ts
  • src/ui/battleOverlay.ts
  • src/ui/phaseScreens.ts
  • src/style.css
  • src/systems/PhaseTransitionSystem.ts
  • tests/hud-controller.test.ts
  • tests/main-loop.test.ts
  • tests/phase-transition-system.test.ts
  • docs/dev/visual-baseline-registry.md
  • tests/e2e/screenshots/visual-overlay.spec.ts/vrt-running-hud-overlay.png
  • src/main.ts
  • tests/e2e/phase-screens.spec.ts
  • tests/e2e/screenshots/phase-screens.spec.ts/
  • tests/e2e/m4-upgrade-loop.spec.ts
  • .github/workflows/ci.yml

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Required Skills

  • TypeScript
  • DOM UI controller
  • Accessibility semantics
  • Vitest

Required Design References

  • docs/product/features/ui-information-architecture.md
  • docs/product/game-design.md

Scope Delta(任意)

  • 変更内容: src/systems/PhaseTransitionSystem.ts を Allowed Paths に追加し、preparation → load_menu および load_menu → preparation(back_to_preparation)の遷移を新設する

  • 理由: OWNER anchor comment (実装: title と preparation を phase screen overlay に移す #1374 (comment)) が指摘した「preparation 画面への Load 配置が現行 state machine と矛盾する」問題への対応

  • 承認根拠: OWNER 直接回答(2026-07-27, issue-refinement-loop 内のエスカレーションへの回答: 「(a) PhaseTransitionSystem.ts を Allowed Paths に追加して遷移を新設する」)

  • 変更内容: docs/dev/visual-baseline-registry.md と tests/e2e/__screenshots__/visual-overlay.spec.ts/vrt-running-hud-overlay.png を Allowed Paths に追加する

  • 理由: AC3(running 中は title/preparation パネルを hidden/inert にする)実装に伴うレイアウト変更で既存 VRT ベースラインが乖離し CI e2e job が FAIL していたため(PR 実装: title と preparation を phase screen overlay に移す (#1374) #1815 iteration 2 review: https://github.com/squne121/loop-protocol/pull/1815#pullrequestreview-4783380254)

  • 承認根拠: OWNER 直接回答(2026-07-27, impl-review-loop control-plane からのエスカレーションへの回答: 「Scope Delta で Allowed Paths を拡張しこの PR で修正」)。承認記録: 実装: title と preparation を phase screen overlay に移す #1374 (comment)

  • 変更内容: src/main.ts、tests/e2e/phase-screens.spec.ts、tests/e2e/__screenshots__/phase-screens.spec.ts/ を Allowed Paths に追加する

  • 理由: OWNER の PR 実装: title と preparation を phase screen overlay に移す (#1374) #1815 REQUEST_CHANGES レビュー(https://github.com/squne121/loop-protocol/pull/1815#issuecomment-5090610137)で、phase screen(title/load/preparation)を battle-hud-layer ではなく main.ts が既に用意する battle-screen-layer へ配置し直す設計修正、および HudController の GameState 直接変更を intent 通知(onOpenLoadMenu / onBackFromLoadMenu)に置き換えて main.ts の transitionByIntent() に一本化する修正が必須修正 1-3 として指摘されたため。新規 E2E テスト(実 Playwright role/name/focus/visibility 検証)とその VRT ベースラインもこの指摘(必須修正 5-6)に基づく

  • 承認根拠: OWNER 本人の PR レビューコメント自体が Scope Delta 拡張を明示的に指示(「1. Issue #1374のScope Deltaにsrc/main.tsとtests/e2e/phase-screens.spec.tsを追加する。」)

  • 変更内容: tests/e2e/m4-upgrade-loop.spec.ts と .github/workflows/ci.yml を Allowed Paths に追加する

  • 理由: 必須修正1-6の実装により、tests/e2e/m4-upgrade-loop.spec.ts が依存していた旧単一ボタン load フローが新アーキテクチャ(screen layer 分離)と非互換になったため更新が必要。また .github/workflows/ci.yml の check-visual-artifact-pipeline.py が新規7件の VRT capture(title-menu, load-menu-empty/available/failure, preparation-default/upgrade-available, running-minimal-hud)を capture manifest に登録することを要求しているため

  • 承認根拠: OWNER 直接回答(2026-07-27, impl-review-loop control-plane からのエスカレーションへの回答: 「Scope Deltaで両方とも拡張しこのPRで対応」)

Delivery Rule

  • 1 Issue = 1 PR
  • 専用 worktree を使う
  • overlay shell child の merge 後に着手する

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    state/blocked
    on Jul 7, 2026
  2. squne121 commented on Jul 26, 2026

    @squne121
    OwnerAuthor

    判定

    REQUEST_CHANGES。実装着手前に Issue 契約の修正が必要です。

    DOM overlay 化の方向自体は妥当です。しかし現状の #1374 は、次の問題を残しています。

    • Allowed Paths と現行アーキテクチャが噛み合っていない

    • preparation からの Load 要件が状態遷移モデルと矛盾している

    • load_menu の操作・退出条件が未定義

    • hidden or inert では、見えているが操作不能な画面でも AC を通せる

    • role/name・focus・Tab 順序を検証するためのテスト経路がスコープ外

    • 後から整備された Playwright/VRT/preview 資産を取り込めていない

    #1374 にはコメントがなく、state/blocked のままです。一方、直接の前提である #1373 と PR #1398 は既に完了しています。検索範囲では、#1374 を実装・close する PR は確認できず、PR #1398 も phase screen を #1374 以降へ明示的に委譲しています。


    P0: 契約上のブロッカー

    1. battle-screen-layer の所有者を変更できない

    #1373 後の構造では、battle-screen-layer は main.ts で生成され、初期状態で hidden inert です。一方、createHudController() に渡されているのは battleHudLayer だけで、battleScreenLayer は controller に渡されていません。

    しかし #1374 の Allowed Paths には src/main.ts がありません。

    この状態で phase screen を実装すると、次のいずれかになります。

    1. HudController が closest() や sibling query で別 layer を探す

    2. battleOverlay.ts に state-aware rendering を押し込む

    3. 本来 screen layer に置くべき画面を battle-hud-layer に置く

    いずれも責務境界を悪化させます。特に 3 は「右レールを stage 内へ移しただけ」という既存レビューの失敗形を再発させます。親Issueのレビューでも、現在の HUD が全パネル常時生成型であり、単なる移設では phase-aware UI にならないと指摘されています。

    修正必須: src/main.ts を Allowed Paths に追加し、次のどちらかを契約で固定してください。

    createHudController(
      {
        hudLayer,
        screenLayer,
      },
      actions,
    )
    

    または責務を分離します。

    createHudController(hudLayer, actions)
    createPhaseScreenController(screenLayer, actions)
    

    後者を推奨します。


    2. preparation の Load は現行 state machine では実行できない

    #1374 は preparation screen に Launch sortie / Save / Load / Reset を配置するとしています。

    しかし現在の phase transition は次の構造です。

    • title_menu + open_load_menu -> load_menu

    • load_menu + load_success -> preparation

    • preparation には save_progress、reset_sortie、start_sortie、purchase_upgrade しかない

    • preparation から load_menu へ遷移する intent はない

    実装も同じで、title で Load を押した場合は load menu へ遷移するだけです。実際の storage load は load_menu で再度 Load を実行した場合に限られます。

    したがって、現行スコープのまま preparation に Load を置くと、以下のどれかになります。

    • 押しても何も起きない

    • state machine を迂回して直接 load する

    • PhaseTransitionSystem.ts を変更する必要が生じ、Stop Condition に到達する

    推奨: #1374 から preparation の Load を削除してください。preparation 中のロードを本当に必要とするなら、状態破棄・確認ダイアログ・pause/reset との整合を別Issueで設計すべきです。


    3. load_menu の受け入れ条件が欠落している

    In Scope では title_menu / load_menu / preparation の mapping を実装すると書かれていますが、Acceptance Criteria は title と preparation しか確認していません。

    現行 transition model には load_menu -> title_menu の back_to_title が存在しますが、現在の HUD には Back 操作がありません。

    このままでは次が未定義です。

    • load menu に何を表示するか

    • save が存在しない場合の表示

    • load 失敗後にどこへ戻るか

    • Back / Cancel の操作

    • focus の初期位置

    • title へ戻った際の focus return

    修正必須: load_menu を正式な screen として AC に追加してください。最低限、Load saved game と Back が必要です。


    4. hidden or inert は論理条件として弱い

    AC3 は running 中に大パネルが「hidden または inert」としています。これは不十分です。

    inert は focus、click、Tab 順序、アクセシビリティツリーから subtree を除外しますが、視覚的には非表示にしません。そのため、running 中に title screen が全面表示されたまま inert でも AC3 を通せます。(MDN Web Docs)

    契約は次の二軸に分ける必要があります。

    • 視覚状態: inactive screen は表示されない

    • 操作状態: inactive screen の descendant は focusable / clickable / accessibility tree exposed ではない

    推奨条件は次です。

    inactiveScreen.hidden === true
    inactiveScreen.inert === true
    

    aria-hidden も保持する場合は、hidden / inert と同期していることをテストしてください。手動属性を三つ管理するより、可能なら hidden と inert を正本にする方が安全です。


    5. AC4 を実証するテスト経路が Allowed Paths にない

    #1374 は role/name query による検証を要求しています。しかし現行 unit test は独自の [data-action] helper に依存しており、title・preparation・running についても disabled の確認が中心です。running では「disabled のまま DOM に存在する」ことを明示的に肯定するテストまであります。

    リポジトリには Playwright があり、getByRole、accessible name、focus、hidden、role assertion を利用できます。一方、Testing Library は依存関係に存在しません。

    Testing Library の getByRole はアクセシビリティツリーと accessible name に基づき、既定では hidden element を除外します。これは今回の要件に適しています。(テスティングライブラリ) Playwright でも toBeFocused、toBeHidden、toHaveAccessibleName、toHaveRole を直接検証できます。(Playwright)

    ところが #1374 の Allowed Paths には以下がありません。

    • tests/e2e/**

    • package.json

    • pnpm-lock.yaml

    つまり、Testing Library の追加も Playwright E2E の追加も契約上できません。

    推奨: 新規依存は追加せず、既存 Playwright を使ってください。少なくとも以下を Allowed Paths に追加すべきです。

    src/main.ts
    tests/e2e/phase-screens.spec.ts
    scripts/ci/preview_playability_smoke.mjs
    

    P1: 高リスク設計指摘

    6. render() 内で画面DOMを再生成すると focus が毎フレーム破壊される

    現在の hud.render() は requestAnimationFrame ごとに呼び出されます。

    したがって、phase screen 実装で次のようなコードを入れるのは危険です。

    render(state) {
      screenLayer.innerHTML = ...
    }
    

    これを行うと、毎フレーム次の問題が起きます。

    • focused node が破棄される

    • Tab navigation が不安定になる

    • input value や selection が消える

    • listener の重複または再登録が発生する

    • assistive technology が更新を連続通知する

    追加 AC: controller 作成時に DOM を一度だけ構築し、同一 phase の連続 render で button node identity と focus が維持されること。

    const before = getByRole('button', { name: 'Launch sortie' })
    controller.render(preparation)
    const after = getByRole('button', { name: 'Launch sortie' })
    

    expect(after).toBe(before)


    7. title が三重化する可能性がある

    現在、main.ts の battle-stage header に LOOP_PROTOCOL の <h1> があり、HudController の Pilot feed にも別の <h1> があります。

    ここへ title screen を追加すると、可視 <h1> が三つになる可能性があります。

    追加 AC:

    • title phase では可視 <h1> が一つ

    • preparation / running では title screen の heading は非表示

    • static battle header を残す場合、その heading level と表示 phase を明示する


    8. persistent status view の内容が未定義

    Issue は HudController を phase screen view と persistent status view に分けるとしていますが、何を persistent に残すかが定義されていません。

    現在の HUD は次を常時生成しています。

    • Progress

    • Sortie

    • Wingmates

    • Armory

    • Pilot updates

    • Pause status

    • 全 action button

    さらに render() は state.telemetry.status と lastCommandSummary をそのまま表示しています。

    UI IA は normal UI に LoopPhase、telemetry、raw internal state を出さないと定義しています。

    「必要な Progress / Sortie summary」という曖昧な表現のままでは、既存右レールの大部分を preparation screen に移植して完了扱いにできます。

    契約で固定すべき preparation 表示:

    • 表示可: Resources、Weapon Power、選択中 upgrade、出撃準備状態

    • 必要なら表示: Hull の簡略 summary

    • 非表示: Shots、Cooldown、Kills、live Duration、Outcome、Assist status

    • 非表示: telemetry status、last command summary、LoopPhase copy

    • legacy action: Collect payout / Prepare next sortie は非表示


    9. focus handoff が定義されていない

    role/name と focus exclusion は指定されていますが、phase transition 後にどこへ focus を移すかは未定義です。

    最低限、次を定めるべきです。

    Transition Focus target
    initial title heading または Begin new run
    title → load load screen heading
    load → title Open save または Begin new run
    title → preparation Launch sortie
    load success → preparation Launch sortie
    preparation → running canvas
    running → preparation 後続 result child が管理

    Playwright は keyboard.press('Tab') や Escape を用いた実ブラウザ検証が可能です。(Playwright)

    jsdom のみでは browser-native focus、CSS visibility、inert の相互作用で false positive / false negative が起こり得ます。Vitest 自身も、実ブラウザが必要な focus・accessibility・layout 系では Browser Mode を案内しています。(Vitest) (Vitest) (Vitest)


    10. 200% zoom で screen が clip される可能性が高い

    現在の .battle-stage は overflow: hidden です。battle-screen-layer は全面 absolute 配置ですが、scroll や overflow の規則がありません。

    一方、UI IA は以下を要求しています。

    • 1920×1080、1366×768、1280×720

    • zoom 100%、125%、150%、200%

    • critical UI が 200% zoom でも可視

    • safe margin

    • viewport / DPR / zoom evidence

    大きな preparation screen を absolute layer に追加すると、200% zoom や高さの低い viewport で下部 action が stage 境界に切られる可能性があります。

    追加 AC:

    • 1280×720・200% zoom で主要 action がスクロールまたは縮退により到達可能

    • focus outline が stage の overflow: hidden で切れない

    • screenLayer の scroll container 方針を固定する

    • Canvas のみ clip し、DOM screen は別 wrapper で overflow 管理する案も検討する


    11. title / preparation が VRT のシナリオ体系から漏れている

    後発の VRT 基盤では、scenario は次に限定されています。

    • running-hud

    • running-hud-paused

    • result-timeout

    • final-no-command-rail

    title / load / preparation は存在しません。

    現在の primary VRT も running HUD のみ active で、pause/result/final は pending です。

    VRT tracker #1380 にも #1374 向け frozen baseline child がありません。

    これは、title / preparation が画面占有率の大きい UI であるにもかかわらず、後続の combat/result より視覚回帰保護が弱い状態です。

    高品質化案:

    • title-menu

    • load-menu-empty

    • load-menu-available

    • preparation-default

    • preparation-upgrade-available

    を scenario registry に追加する follow-up を #1380 配下で追跡する。

    #1374 自体で VRT まで実装しない場合も、follow-up reference を Delivery Rule に明記すべきです。


    12. production preview smoke が false-green になる

    現在の preview smoke は以下の selector を使用しています。

    button[data-action="new-game"]
    button[data-action="start-sortie"]
    

    そのため accessible name、heading、screen visibility が壊れていても、button がクリック可能なら PASS します。

    PR preview の direct URL と iframe wrapper を検証する仕組み自体は既にありますが、#1374 の品質要件を担保するには selector を role/name 中心へ更新する必要があります。

    Vite の公式仕様上、GitHub Pages の repository path 配下では適切な base 設定が必要で、ローカル preview のみを本番配布証跡とみなすべきではありません。(vitejs)

    推奨変更:

    frame.getByRole('button', { name: 'Begin new run' })
    frame.getByRole('button', { name: 'Launch sortie' })
    

    さらに各遷移後に、対応する screen heading の可視性と前画面の非表示を検証してください。


    P2: 契約・運用上の改善

    13. state/blocked が stale

    #1374 は state/blocked ですが、Delivery Rule 上の前提である overlay shell #1373 は完了しています。

    着手前 AC として以下を追加すべきです。

    AC0: #1373 / PR #1398 が merged であり、
    state/blocked ラベルが解除されている。
    残す場合は blocker reason を Issue comment に記録する。
    

    14. Verification Commands が rg に偏りすぎている

    文字列が存在することは、次を証明しません。

    • 正しい screen に配置された

    • hidden/inert が runtime で効く

    • accessible name が正しい

    • Tab 順序から外れた

    • focus が維持された

    • role が正しい

    • preview で asset と UI が動作する

    現行 #1374 の AC7 は typecheck / lint / test / build を要求しながら、Verification Commands は pnpm build しか実行しません。

    各コマンドを独立 gate としてください。


    修正後の Acceptance Criteria 案

    以下まで契約を引き上げれば、実装可能かつ false-green を抑えられます。

    AC0 — dependency

    AC1 — screen ownership

    • .battle-screen-layer 配下に title / load / preparation screen が存在する

    • phase screen を .battle-hud-layer に配置しない

    • src/main.ts から screen controller へ明示的に layer を渡す

    AC2 — title screen

    • title_menu で可視 <h1> は一つ

    • Begin new run

    • Open save

    • 両方を role/name で取得可能

    • save 不在時は Open save が disabled で、理由が認識可能

    AC3 — load screen

    • load_menu で Load saved game と Back が存在

    • load failure 後も Back が操作可能

    • preparation の通常画面には Load を置かない

    AC4 — preparation screen

    • Launch sortie

    • Save progress

    • Reset sortie

    • Upgrade weapon

    • Resources / Weapon Power

    • live combat fields、telemetry、legacy action は非表示

    AC5 — inactive screens

    • inactive screen は hidden

    • inactive screen は inert

    • running では title / load / preparation の button が accessibility tree と Tab 順序に存在しない

    AC6 — stable rendering

    • 同一 phase の連続 render で DOM node identity が変化しない

    • focused button が RAF render により失われない

    • listener が重複しない

    AC7 — focus

    • title → load → title

    • title → preparation

    • load success → preparation

    • preparation → running

    について focus target を runtime test で検証する

    AC8 — vocabulary

    normal overlay に以下が出ない。

    • raw LoopPhase

    • telemetry

    • internal enum

    • Collect payout

    • Prepare next sortie

    • live cooldown / shots / kills in preparation

    AC9 — responsive accessibility

    • 1920×1080

    • 1366×768

    • 1280×720

    • 956×1032

    • 200% zoom

    で primary action が可視または keyboard 到達可能

    AC10 — distribution

    • production preview direct URL

    • iframe wrapper

    • role/name navigation

    • title → preparation → running

    • asset base path

    • storage namespace

    を検証する

    AC11 — gates

    pnpm typecheck
    pnpm typecheck:e2e
    pnpm lint
    pnpm test
    pnpm build
    pnpm test:e2e
    

    推奨 Allowed Paths

    src/main.ts
    src/ui/HudController.ts
    src/ui/index.ts
    src/ui/battleOverlay.ts
    src/ui/phaseScreens.ts
    src/style.css
    

    tests/hud-controller.test.ts
    tests/main-loop.test.ts
    tests/battle-overlay.test.ts
    tests/e2e/phase-screens.spec.ts

    scripts/ci/preview_playability_smoke.mjs

    VRT scenario まで同一Issueで扱うなら、さらに registry・visual fixture・baseline 関連 path が必要です。ただしスコープ増大を避けるなら、#1380 配下の明示的 follow-up として分離する方が妥当です。


    最終評価

    #1374 は、親レビューで指摘された以下の点を本文には取り込んでいます。

    • role/name

    • hidden / inert

    • focus exclusion

    • LoopPhase を正本にする

    • raw internal text を出さない

    しかし、それを実装・検証可能にする Allowed Paths、state transition、テスト経路、focus contract、visual evidence が追いついていません。

    現状のまま実装すると、最も起こりやすい結果は以下です。

    1. 既存 HUD を battle-hud-layer 内でグループ分けする

    2. button を disabled または CSS 非表示にする

    3. rg と jsdom test を通す

    4. production preview smoke は data-action で通る

    5. 実ブラウザでは load menu が行き止まり、200% zoom で操作が切れ、focus が不安定になる

    したがって、まず Issue 本文を修正し、特に preparation Load の削除、load_menu AC、src/main.ts と E2E の Allowed Paths 追加、hidden AND inert、stable DOM identity を固定してから着手すべきです。

    本レビューは GitHub 上の現行 main、Issue、PR、コメント、テスト・配布資産と公式技術資料を静的に確認したものです。ローカルで pnpm コマンドは実行していません。

    # 判定

    REQUEST_CHANGES。実装着手前に Issue 契約の修正が必要です。

    DOM overlay 化の方向自体は妥当です。しかし現状の #1374 は、次の問題を残しています。

    • Allowed Paths と現行アーキテクチャが噛み合っていない
    • preparation からの Load 要件が状態遷移モデルと矛盾している
    • load_menu の操作・退出条件が未定義
    • hidden or inert では、見えているが操作不能な画面でも AC を通せる
    • role/name・focus・Tab 順序を検証するためのテスト経路がスコープ外
    • 後から整備された Playwright/VRT/preview 資産を取り込めていない

    #1374 にはコメントがなく、state/blocked のままです。一方、直接の前提である #1373 と PR #1398 は既に完了しています。検索範囲では、#1374 を実装・close する PR は確認できず、PR #1398 も phase screen を #1374 以降へ明示的に委譲しています。


    P0: 契約上のブロッカー

    1. battle-screen-layer の所有者を変更できない

    #1373 後の構造では、battle-screen-layer は main.ts で生成され、初期状態で hidden inert です。一方、createHudController() に渡されているのは battleHudLayer だけで、battleScreenLayer は controller に渡されていません。

    しかし #1374 の Allowed Paths には src/main.ts がありません。

    この状態で phase screen を実装すると、次のいずれかになります。

    1. HudController が closest() や sibling query で別 layer を探す
    2. battleOverlay.ts に state-aware rendering を押し込む
    3. 本来 screen layer に置くべき画面を battle-hud-layer に置く

    いずれも責務境界を悪化させます。特に 3 は「右レールを stage 内へ移しただけ」という既存レビューの失敗形を再発させます。親Issueのレビューでも、現在の HUD が全パネル常時生成型であり、単なる移設では phase-aware UI にならないと指摘されています。

    修正必須: src/main.ts を Allowed Paths に追加し、次のどちらかを契約で固定してください。

    createHudController(
      {
        hudLayer,
        screenLayer,
      },
      actions,
    )

    または責務を分離します。

    createHudController(hudLayer, actions)
    createPhaseScreenController(screenLayer, actions)

    後者を推奨します。


    2. preparation の Load は現行 state machine では実行できない

    #1374 は preparation screen に Launch sortie / Save / Load / Reset を配置するとしています。

    しかし現在の phase transition は次の構造です。

    • title_menu + open_load_menu -> load_menu
    • load_menu + load_success -> preparation
    • preparation には save_progress、reset_sortie、start_sortie、purchase_upgrade しかない
    • preparation から load_menu へ遷移する intent はない

    実装も同じで、title で Load を押した場合は load menu へ遷移するだけです。実際の storage load は load_menu で再度 Load を実行した場合に限られます。

    したがって、現行スコープのまま preparation に Load を置くと、以下のどれかになります。

    • 押しても何も起きない
    • state machine を迂回して直接 load する
    • PhaseTransitionSystem.ts を変更する必要が生じ、Stop Condition に到達する

    推奨: #1374 から preparation の Load を削除してください。preparation 中のロードを本当に必要とするなら、状態破棄・確認ダイアログ・pause/reset との整合を別Issueで設計すべきです。


    3. load_menu の受け入れ条件が欠落している

    In Scope では title_menu / load_menu / preparation の mapping を実装すると書かれていますが、Acceptance Criteria は title と preparation しか確認していません。

    現行 transition model には load_menu -> title_menu の back_to_title が存在しますが、現在の HUD には Back 操作がありません。

    このままでは次が未定義です。

    • load menu に何を表示するか
    • save が存在しない場合の表示
    • load 失敗後にどこへ戻るか
    • Back / Cancel の操作
    • focus の初期位置
    • title へ戻った際の focus return

    修正必須: load_menu を正式な screen として AC に追加してください。最低限、Load saved game と Back が必要です。


    4. hidden or inert は論理条件として弱い

    AC3 は running 中に大パネルが「hidden または inert」としています。これは不十分です。

    inert は focus、click、Tab 順序、アクセシビリティツリーから subtree を除外しますが、視覚的には非表示にしません。そのため、running 中に title screen が全面表示されたまま inert でも AC3 を通せます。([MDN Web Docs]1)

    契約は次の二軸に分ける必要があります。

    • 視覚状態: inactive screen は表示されない
    • 操作状態: inactive screen の descendant は focusable / clickable / accessibility tree exposed ではない

    推奨条件は次です。

    inactiveScreen.hidden === true
    inactiveScreen.inert === true

    aria-hidden も保持する場合は、hidden / inert と同期していることをテストしてください。手動属性を三つ管理するより、可能なら hidden と inert を正本にする方が安全です。


    5. AC4 を実証するテスト経路が Allowed Paths にない

    #1374 は role/name query による検証を要求しています。しかし現行 unit test は独自の [data-action] helper に依存しており、title・preparation・running についても disabled の確認が中心です。running では「disabled のまま DOM に存在する」ことを明示的に肯定するテストまであります。

    リポジトリには Playwright があり、getByRole、accessible name、focus、hidden、role assertion を利用できます。一方、Testing Library は依存関係に存在しません。

    Testing Library の getByRole はアクセシビリティツリーと accessible name に基づき、既定では hidden element を除外します。これは今回の要件に適しています。([テスティングライブラリ]2) Playwright でも toBeFocused、toBeHidden、toHaveAccessibleName、toHaveRole を直接検証できます。([Playwright]3)

    ところが #1374 の Allowed Paths には以下がありません。

    • tests/e2e/**
    • package.json
    • pnpm-lock.yaml

    つまり、Testing Library の追加も Playwright E2E の追加も契約上できません。

    推奨: 新規依存は追加せず、既存 Playwright を使ってください。少なくとも以下を Allowed Paths に追加すべきです。

    src/main.ts
    tests/e2e/phase-screens.spec.ts
    scripts/ci/preview_playability_smoke.mjs
    

    P1: 高リスク設計指摘

    6. render() 内で画面DOMを再生成すると focus が毎フレーム破壊される

    現在の hud.render() は requestAnimationFrame ごとに呼び出されます。

    したがって、phase screen 実装で次のようなコードを入れるのは危険です。

    render(state) {
      screenLayer.innerHTML = ...
    }

    これを行うと、毎フレーム次の問題が起きます。

    • focused node が破棄される
    • Tab navigation が不安定になる
    • input value や selection が消える
    • listener の重複または再登録が発生する
    • assistive technology が更新を連続通知する

    追加 AC: controller 作成時に DOM を一度だけ構築し、同一 phase の連続 render で button node identity と focus が維持されること。

    const before = getByRole('button', { name: 'Launch sortie' })
    controller.render(preparation)
    const after = getByRole('button', { name: 'Launch sortie' })
    
    expect(after).toBe(before)

    7. title が三重化する可能性がある

    現在、main.ts の battle-stage header に LOOP_PROTOCOL の <h1> があり、HudController の Pilot feed にも別の <h1> があります。

    ここへ title screen を追加すると、可視 <h1> が三つになる可能性があります。

    追加 AC:

    • title phase では可視 <h1> が一つ
    • preparation / running では title screen の heading は非表示
    • static battle header を残す場合、その heading level と表示 phase を明示する

    8. persistent status view の内容が未定義

    Issue は HudController を phase screen view と persistent status view に分けるとしていますが、何を persistent に残すかが定義されていません。

    現在の HUD は次を常時生成しています。

    • Progress
    • Sortie
    • Wingmates
    • Armory
    • Pilot updates
    • Pause status
    • 全 action button

    さらに render() は state.telemetry.status と lastCommandSummary をそのまま表示しています。

    UI IA は normal UI に LoopPhase、telemetry、raw internal state を出さないと定義しています。

    「必要な Progress / Sortie summary」という曖昧な表現のままでは、既存右レールの大部分を preparation screen に移植して完了扱いにできます。

    契約で固定すべき preparation 表示:

    • 表示可: Resources、Weapon Power、選択中 upgrade、出撃準備状態
    • 必要なら表示: Hull の簡略 summary
    • 非表示: Shots、Cooldown、Kills、live Duration、Outcome、Assist status
    • 非表示: telemetry status、last command summary、LoopPhase copy
    • legacy action: Collect payout / Prepare next sortie は非表示

    9. focus handoff が定義されていない

    role/name と focus exclusion は指定されていますが、phase transition 後にどこへ focus を移すかは未定義です。

    最低限、次を定めるべきです。

    Transition Focus target
    initial title heading または Begin new run
    title → load load screen heading
    load → title Open save または Begin new run
    title → preparation Launch sortie
    load success → preparation Launch sortie
    preparation → running canvas
    running → preparation 後続 result child が管理

    Playwright は keyboard.press('Tab') や Escape を用いた実ブラウザ検証が可能です。(Playwright)

    jsdom のみでは browser-native focus、CSS visibility、inert の相互作用で false positive / false negative が起こり得ます。Vitest 自身も、実ブラウザが必要な focus・accessibility・layout 系では Browser Mode を案内しています。([Vitest]5) ([Vitest]6) ([Vitest]7)


    10. 200% zoom で screen が clip される可能性が高い

    現在の .battle-stage は overflow: hidden です。battle-screen-layer は全面 absolute 配置ですが、scroll や overflow の規則がありません。

    一方、UI IA は以下を要求しています。

    • 1920×1080、1366×768、1280×720
    • zoom 100%、125%、150%、200%
    • critical UI が 200% zoom でも可視
    • safe margin
    • viewport / DPR / zoom evidence

    大きな preparation screen を absolute layer に追加すると、200% zoom や高さの低い viewport で下部 action が stage 境界に切られる可能性があります。

    追加 AC:

    • 1280×720・200% zoom で主要 action がスクロールまたは縮退により到達可能
    • focus outline が stage の overflow: hidden で切れない
    • screenLayer の scroll container 方針を固定する
    • Canvas のみ clip し、DOM screen は別 wrapper で overflow 管理する案も検討する

    11. title / preparation が VRT のシナリオ体系から漏れている

    後発の VRT 基盤では、scenario は次に限定されています。

    • running-hud
    • running-hud-paused
    • result-timeout
    • final-no-command-rail

    title / load / preparation は存在しません。

    現在の primary VRT も running HUD のみ active で、pause/result/final は pending です。

    VRT tracker #1380 にも #1374 向け frozen baseline child がありません。

    これは、title / preparation が画面占有率の大きい UI であるにもかかわらず、後続の combat/result より視覚回帰保護が弱い状態です。

    高品質化案:

    • title-menu
    • load-menu-empty
    • load-menu-available
    • preparation-default
    • preparation-upgrade-available

    を scenario registry に追加する follow-up を #1380 配下で追跡する。

    #1374 自体で VRT まで実装しない場合も、follow-up reference を Delivery Rule に明記すべきです。


    12. production preview smoke が false-green になる

    現在の preview smoke は以下の selector を使用しています。

    button[data-action="new-game"]
    button[data-action="start-sortie"]

    そのため accessible name、heading、screen visibility が壊れていても、button がクリック可能なら PASS します。

    PR preview の direct URL と iframe wrapper を検証する仕組み自体は既にありますが、#1374 の品質要件を担保するには selector を role/name 中心へ更新する必要があります。

    Vite の公式仕様上、GitHub Pages の repository path 配下では適切な base 設定が必要で、ローカル preview のみを本番配布証跡とみなすべきではありません。([vitejs]8)

    推奨変更:

    frame.getByRole('button', { name: 'Begin new run' })
    frame.getByRole('button', { name: 'Launch sortie' })

    さらに各遷移後に、対応する screen heading の可視性と前画面の非表示を検証してください。


    P2: 契約・運用上の改善

    13. state/blocked が stale

    #1374 は state/blocked ですが、Delivery Rule 上の前提である overlay shell #1373 は完了しています。

    着手前 AC として以下を追加すべきです。

    AC0: #1373 / PR #1398 が merged であり、
    state/blocked ラベルが解除されている。
    残す場合は blocker reason を Issue comment に記録する。
    

    14. Verification Commands が rg に偏りすぎている

    文字列が存在することは、次を証明しません。

    • 正しい screen に配置された
    • hidden/inert が runtime で効く
    • accessible name が正しい
    • Tab 順序から外れた
    • focus が維持された
    • role が正しい
    • preview で asset と UI が動作する

    現行 #1374 の AC7 は typecheck / lint / test / build を要求しながら、Verification Commands は pnpm build しか実行しません。

    各コマンドを独立 gate としてください。


    修正後の Acceptance Criteria 案

    以下まで契約を引き上げれば、実装可能かつ false-green を抑えられます。

    AC0 — dependency

    AC1 — screen ownership

    • .battle-screen-layer 配下に title / load / preparation screen が存在する
    • phase screen を .battle-hud-layer に配置しない
    • src/main.ts から screen controller へ明示的に layer を渡す

    AC2 — title screen

    • title_menu で可視 <h1> は一つ
    • Begin new run
    • Open save
    • 両方を role/name で取得可能
    • save 不在時は Open save が disabled で、理由が認識可能

    AC3 — load screen

    • load_menu で Load saved game と Back が存在
    • load failure 後も Back が操作可能
    • preparation の通常画面には Load を置かない

    AC4 — preparation screen

    • Launch sortie
    • Save progress
    • Reset sortie
    • Upgrade weapon
    • Resources / Weapon Power
    • live combat fields、telemetry、legacy action は非表示

    AC5 — inactive screens

    • inactive screen は hidden
    • inactive screen は inert
    • running では title / load / preparation の button が accessibility tree と Tab 順序に存在しない

    AC6 — stable rendering

    • 同一 phase の連続 render で DOM node identity が変化しない
    • focused button が RAF render により失われない
    • listener が重複しない

    AC7 — focus

    • title → load → title
    • title → preparation
    • load success → preparation
    • preparation → running

    について focus target を runtime test で検証する

    AC8 — vocabulary

    normal overlay に以下が出ない。

    • raw LoopPhase
    • telemetry
    • internal enum
    • Collect payout
    • Prepare next sortie
    • live cooldown / shots / kills in preparation

    AC9 — responsive accessibility

    • 1920×1080
    • 1366×768
    • 1280×720
    • 956×1032
    • 200% zoom

    で primary action が可視または keyboard 到達可能

    AC10 — distribution

    • production preview direct URL
    • iframe wrapper
    • role/name navigation
    • title → preparation → running
    • asset base path
    • storage namespace

    を検証する

    AC11 — gates

    pnpm typecheck
    pnpm typecheck:e2e
    pnpm lint
    pnpm test
    pnpm build
    pnpm test:e2e

    推奨 Allowed Paths

    src/main.ts
    src/ui/HudController.ts
    src/ui/index.ts
    src/ui/battleOverlay.ts
    src/ui/phaseScreens.ts
    src/style.css
    
    tests/hud-controller.test.ts
    tests/main-loop.test.ts
    tests/battle-overlay.test.ts
    tests/e2e/phase-screens.spec.ts
    
    scripts/ci/preview_playability_smoke.mjs
    

    VRT scenario まで同一Issueで扱うなら、さらに registry・visual fixture・baseline 関連 path が必要です。ただしスコープ増大を避けるなら、#1380 配下の明示的 follow-up として分離する方が妥当です。


    最終評価

    #1374 は、親レビューで指摘された以下の点を本文には取り込んでいます。

    • role/name
    • hidden / inert
    • focus exclusion
    • LoopPhase を正本にする
    • raw internal text を出さない

    しかし、それを実装・検証可能にする Allowed Paths、state transition、テスト経路、focus contract、visual evidence が追いついていません。

    現状のまま実装すると、最も起こりやすい結果は以下です。

    1. 既存 HUD を battle-hud-layer 内でグループ分けする
    2. button を disabled または CSS 非表示にする
    3. rg と jsdom test を通す
    4. production preview smoke は data-action で通る
    5. 実ブラウザでは load menu が行き止まり、200% zoom で操作が切れ、focus が不安定になる

    したがって、まず Issue 本文を修正し、特に preparation Load の削除、load_menu AC、src/main.ts と E2E の Allowed Paths 追加、hidden AND inert、stable DOM identity を固定してから着手すべきです。

    本レビューは GitHub 上の現行 main、Issue、PR、コメント、テスト・配布資産と公式技術資料を静的に確認したものです。ローカルで pnpm コマンドは実行していません。

  3. squne121 commented on Jul 26, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Human Escalation Required

    The loop has terminated and requires human review. Cause: human judgment required

    Blockers

    "review-issue subagent が producer_failure(output_budget_violation) を返却し、validate_review_compact_output.py が validation_status=invalid(envelope_kind=producer_failure、ARTIFACT絶対パス拒否含む)と判定。fail-closed policy によりこれ以上の自動 routing 不可。"
    
    "決定論的checkerによる指摘: AC1-AC6 に対応する8件のVerification Commandsに `# baseline-expect: pass` 注釈が欠落(VCP_UNEXPECTED_PASS)。実装Issueとしてこれらのgrepが現時点でpassするのが意図通りか、baseline failを期待すべきかの確認が必要。"
    
    "OWNER anchor comment (issuecomment-5084280599) の指摘は control-plane の直接コードベース検証(git grep)で裏付けを取得: (1) `PhaseTransitionSystem.ts` が実在するが Allowed Paths に含まれていない、(2) `preparation` フェーズの遷移定義に `load_menu` へのパスが存在せず、Issue の In Scope/AC2(preparationにLoad配置)と現行 state machine が矛盾、(3) `load_menu` の遷移は back_to_title/load_success のみで load失敗時の遷移が未定義、(4) 現在 LoadGameButton は preparation フェーズで常時disabled固定であり Issue の想定と不一致。"
    
    "anchor comment はさらにアクセシビリティ詳細(heading level・role/name・Tab順序・focus維持)、viewport/zoom要求(1920x1080/1366x768/1280x720/956x1032、200%zoom)、overflow/scroll方針、画面要素配置の詳細、preview環境でのE2E検証を要求しているが、これらは現在の Acceptance Criteria / Verification Commands に反映されていない。"
    
    "gemini-cli-headless-delegation が auth timeout(setup_check.py で auth.ok:false, status:timeout)により継続的に失敗し、codebase-investigator の正規調査ルートが使用不可だった(control-planeが git grep で代替検証済み)。"
    
  4. squne121 commented on Jul 26, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Human Escalation Required

    The loop has terminated and requires human review. Cause: human judgment required

    Blockers

    "review-issue subagent が producer_failure(output_budget_violation) を返却し、validate_review_compact_output.py が validation_status=invalid(envelope_kind=producer_failure、ARTIFACT絶対パス拒否含む)と判定。fail-closed policy によりこれ以上の自動 routing 不可。"
    
    "決定論的checkerによる指摘: AC1-AC6 に対応する8件のVerification Commandsに `# baseline-expect: pass` 注釈が欠落(VCP_UNEXPECTED_PASS)。実装Issueとしてこれらのgrepが現時点でpassするのが意図通りか、baseline failを期待すべきかの確認が必要。"
    
    "OWNER anchor comment (issuecomment-5084280599) の指摘は control-plane の直接コードベース検証(git grep)で裏付けを取得: (1) `PhaseTransitionSystem.ts` が実在するが Allowed Paths に含まれていない、(2) `preparation` フェーズの遷移定義に `load_menu` へのパスが存在せず、Issue の In Scope/AC2(preparationにLoad配置)と現行 state machine が矛盾、(3) `load_menu` の遷移は back_to_title/load_success のみで load失敗時の遷移が未定義、(4) 現在 LoadGameButton は preparation フェーズで常時disabled固定であり Issue の想定と不一致。"
    
    "anchor comment はさらにアクセシビリティ詳細(heading level・role/name・Tab順序・focus維持)、viewport/zoom要求(1920x1080/1366x768/1280x720/956x1032、200%zoom)、overflow/scroll方針、画面要素配置の詳細、preview環境でのE2E検証を要求しているが、これらは現在の Acceptance Criteria / Verification Commands に反映されていない。"
    
    "gemini-cli-headless-delegation が auth timeout(setup_check.py で auth.ok:false, status:timeout)により継続的に失敗し、codebase-investigator の正規調査ルートが使用不可だった(control-planeが git grep で代替検証済み)。"
    
  5. squne121 commented on Jul 26, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Human Escalation Required

    The loop has terminated and requires human review. Cause: human judgment required

    Blockers

    "AGY(Antigravity CLI) provider でも codebase-investigator 委譲は失敗(tool_profile非互換によるバリデーションエラー、再試行後もタイムアウト)。control-planeが check_issue_contract.py / baseline_vc_preflight.py --strict を直接実行し確定的証拠を取得。"
    
    "VC baseline問題: AC1/AC2/AC3/AC5/AC6 に対応する計7件のgrepが unexpected_pass(title_menu/preparation/running/loopPhase/focus/inert/hiddenの文字列は既存の別AC実装により実装前から既に出現するため)。単純な baseline-expect:pass 注釈では検証内容が空文になるため、新規実装固有の属性を検証するVCへの具体化を推奨。"
    
    "アーキテクチャ不整合(人間判断必須・自動修正範囲外): src/systems/PhaseTransitionSystem.ts が実在するがAllowed Paths外。同ファイルのpreparationフェーズの遷移定義にload_menuへのパスが存在せず、IssueのIn Scope/AC2(preparation画面にLoad配置)が現行state machineで実現不可能。loadGameButton.disabledは現在title_menu/load_menuでのみ有効化される設計であり、Issueの想定と矛盾。(a) PhaseTransitionSystem.tsをAllowed Pathsに追加し遷移を新設する、(b) In Scopeからpreparation画面へのLoad配置を除外する、のいずれかのOWNER判断が必要(Allowed Paths新規ファイル追加はSKILLのスコープ変更停止条件に該当するため自動化不可)。"
    
    "anchor comment (issuecomment-5084280599) が要求するアクセシビリティ詳細/viewport・zoom要求/overflow方針/画面要素配置/preview環境E2E検証は、上記アーキテクチャ判断確定後にまとめてIssue本文へ反映する想定。"
    
  6. squne121 commented on Jul 26, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Approved

    The issue has been approved and is ready for implementation.

    LOOP_HANDOFF_RESULT_V1:
      status: blocked
      routing_action: blocked
      contract_review:
        status: blocked
        gate_result: missing_go
        latest_comment_url: https://github.com/squne121/loop-protocol/issues/1374
        generated_at: '2026-07-26T23:12:00Z'
        body_sha256: sha256:e20667bc546ea78870ea5a573c75ad3aca49ea2771e88a86ff09e9d7e545933b
      metadata:
        title_prefix_ready: true
        phase_label_ready: true
      auto_fixes:
        result: auto_fixed
        required: []
        skipped: []
      blockers:
      - kind: contract_review_not_run
        description: issue-contract-review skill (baseline VC full preflight + go/blocked
          gate) has not yet been executed against this issue. review-issue deterministic
          checker approves (0 blockers), but the pre-implementation contract-review gate
          is a separate downstream step.
      permissions:
        unavailable: []
      generated_at: '2026-07-26T23:12:00Z'
  7. removed
    state/blocked
    on Jul 26, 2026
  8. squne121 commented on Jul 26, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-26T23:25:02Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1374
      body_sha256: "sha256:e20667bc546ea78870ea5a573c75ad3aca49ea2771e88a86ff09e9d7e545933b"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        product_spec_check: {"schema":"product_spec_check/v1","applicability":"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,"machine_readable_contract_present":true},"conditions":{"docs_product_requires_spec_evidence":{"status":"pass","evidence":[]},"tasks_md_not_direct_source":{"status":"pass","evidence":[]},"specify_not_canonical":{"status":"pass","evidence":[]},"diff_first_rationale_present":{"status":"pass","evidence":[]},"generated_task_trace_present":{"status":"pass","evidence":[]},"task_dependencies_materialized":{"status":"pass","evidence":[]}},"blocked_reasons":[],"body_sha256":"sha256:e20667bc546ea78870ea5a573c75ad3aca49ea2771e88a86ff09e9d7e545933b","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":3,"raw_command":"rg -n \"title_menu\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:aadee4d1cea803c03b5e62e03f208c991a79cdb10d31dfa78dad921f9c3412b9","execution_key_hash":"sha256:300fc8430e7641b216c0837ffe927fb16f01fd1bd5b709c9df4dafe6a224edc0","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["src/ui/HudController.ts:15:  /** Load Game (AC3, AC9): only valid from title_menu / load_menu. */","src/ui/HudController.ts:114:    case 'title_menu':","src/ui/HudController.ts:364:      const isMenuPhase = state.loopPhase === 'title_menu' || state.loopPhase === 'load_menu'","src/ui/HudController.ts:365:      // new-game: only in title_menu (AC1)","src/ui/HudController.ts:366:      newGameButton.disabled = state.loopPhase !== 'title_menu'","src/ui/HudController.ts:377:      // load-game: title_menu or load_menu only (AC3, AC9)","tests/hud-controller.test.ts:163:  it('GIVEN title_menu WHEN render called THEN new-game enabled, load-game enabled, start-sortie disabled (AC1)', () => {","tests/hud-controller.test.ts:164:    hudController.render(createState('title_menu'), false)","tests/hud-controller.test.ts:175:  it('GIVEN title_menu without loadable snapshot WHEN render called THEN new-game enabled, load-game disabled (AC1)', () => {","tests/hud-controller.test.ts:177:    hudController.render(createState('title_menu'), false)","tests/hud-controller.test.ts:194:  it('GIVEN title_menu without a loadable snapshot WHEN render called THEN load-game is disabled (AC9)', () => {","tests/hud-controller.test.ts:197:    hudController.render(createState('title_menu'), false)","tests/hud-controller.test.ts:511:    expect(textSurface).not.toContain('title_menu')","tests/hud-controller.test.ts:538:// AC3: Load Game spy test — storage.load() only called from title_menu / load_menu","tests/hud-controller.test.ts:541:describe('AC3: Load Game phase gate — onLoadGame only fires from title_menu / load_menu', () => {","tests/hud-controller.test.ts:565:  it('GIVEN title_menu with loadable snapshot WHEN load-game button is clicked THEN onLoadGame is called once (AC3)', () => {","tests/hud-controller.test.ts:566:    hudController.render(createState('title_menu'), false)"],"stdout_truncated":false,"stdout_original_line_count":18,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":5,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC2","line":6,"raw_command":"rg -n \"preparation\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:8090e3915aa66effa8bce430b1e5978a2eac85dafdc15b2b8b8c52cc2c0af598","execution_key_hash":"sha256:12ad40a8d153e225860238bad23171f9c8ce52faca01758c612fc291bcb34c8b","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["src/ui/HudController.ts:10:  /** Confirm result and return to preparation (AC5). */","src/ui/HudController.ts:13:  /** Save operation (AC2, AC8): caller must gate to preparation phase only. */","src/ui/HudController.ts:62:  'not-preparation': {","src/ui/HudController.ts:64:    summary: 'Return to preparation before upgrading.',","src/ui/HudController.ts:118:    case 'preparation':","src/ui/HudController.ts:134:      return state.loopPhase === 'preparation' ? 'Ready' : 'Standing by'","src/ui/HudController.ts:260:        title=\"Reset sortie is a destructive boundary and is only available during preparation.\"","src/ui/HudController.ts:367:      startSortieButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:375:      // save: preparation only (AC2, AC8)","src/ui/HudController.ts:376:      saveButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:381:      resetButton.disabled = state.loopPhase !== 'preparation'","tests/hud-controller.test.ts:24:function createState(loopPhase: LoopPhase = 'preparation', resultRewardStatus: ResultRewardStatus = 'pending'): GameState {","tests/hud-controller.test.ts:149:  it('GIVEN preparation WHEN render called THEN phase copy and preparation actions are enabled', () => {","tests/hud-controller.test.ts:150:    hudController.render(createState('preparation'), false)","tests/hud-controller.test.ts:219:    hudController.render(createState('preparation'), false, {","tests/hud-controller.test.ts:400:    hudController.render(createState('preparation'), false)","tests/hud-controller.test.ts:465:    state.telemetry.lastCommandSummary = 'Confirm result to save and return to preparation.'","tests/hud-controller.test.ts:474:      'Confirm result to save and return to preparation.',","tests/hud-controller.test.ts:503:    hudController.render(createState('preparation'), false)","tests/hud-controller.test.ts:583:  it('GIVEN preparation phase WHEN load-game button is clicked THEN onLoadGame is NOT called (AC3)', () => {"],"stdout_truncated":true,"stdout_original_line_count":40,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":5,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC3","line":9,"raw_command":"rg -n \"running\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:0e348c0c1fc3ae80bcbdfae9d18f839c2c3c1bd1cb38f3359b7902b7efa32e46","execution_key_hash":"sha256:c8af8c90c1df5c4fbbc27d08761957b2ba937345ad23875e00c1e9b3811799c2","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["src/ui/HudController.ts:120:    case 'running':","src/ui/HudController.ts:135:    case 'running':","src/ui/HudController.ts:164:  if (state.loopPhase !== 'running' || state.sortie.status !== 'running') {","src/ui/HudController.ts:368:      assistPlayerButton.disabled = state.loopPhase !== 'running'","src/ui/HudController.ts:406:      // BLOCKER 1: pause button is disabled when not in running phase and not already paused","src/ui/HudController.ts:407:      togglePauseButton.disabled = state.loopPhase !== 'running' && !isPaused","src/ui/HudController.ts:420:        // Count defeated enemies for live kills display during running","src/ui/HudController.ts:426:      // Terminal: use result.durationMs; running: use elapsedTicks-derived ticks","src/ui/HudController.ts:434:        // running or idle: elapsedTicks / 60 Hz approximation (display only)","src/ui/HudController.ts:440:        // the running-duration display is derived from that authority.","tests/hud-controller.test.ts:81:      loopPhase === 'running'","tests/hud-controller.test.ts:83:            status: 'running',","tests/hud-controller.test.ts:202:  it('GIVEN running WHEN render called THEN button.disabled marks the full action surface as disabled', () => {","tests/hud-controller.test.ts:203:    hudController.render(createState('running'), false)","tests/hud-controller.test.ts:234:  it('GIVEN running WHEN render called THEN disabled overlay buttons remain present but are inert-ready hit-test surfaces', () => {","tests/hud-controller.test.ts:235:    hudController.render(createState('running'), false)","tests/hud-controller.test.ts:243:  it('GIVEN running with ally and living enemy WHEN render called THEN assist status reports ready and assist button is reachable', () => {","tests/hud-controller.test.ts:244:    const state = createState('running')","tests/hud-controller.test.ts:277:  it('GIVEN running without allies WHEN render called THEN assist status reports no ally available', () => {","tests/hud-controller.test.ts:278:    const state = createState('running')"],"stdout_truncated":true,"stdout_original_line_count":33,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":3,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":8,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC4","line":11,"raw_command":"rg -n \"getByRole\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:9368c948d7926b221c15844e7490886446036ffd0b853d9b6e64f21be7bd45a2","execution_key_hash":"sha256:fa1d2e7acd1b2a5aded6597ebc879a1c67e0b76dc1665f18c247044ce5795796","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":3,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC4","line":13,"raw_command":"rg -n \"role\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:9e552b02223f83cc2f05388c6153806a75c50efc22b191c8a8704e6865564fa2","execution_key_hash":"sha256:05ade088813c5b79d991434f4bae7571670ce09467175ee42fa0b91fea0e9338","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:260:        role: 'enemy_chaser',","tests/hud-controller.test.ts:272:    expect(assistStatus?.getAttribute('role')).toBe('status')","tests/hud-controller.test.ts:293:        role: 'enemy_chaser',","tests/hud-controller.test.ts:350:        role: 'enemy_chaser',","tests/hud-controller.test.ts:384:        role: 'enemy_chaser',","tests/hud-controller.test.ts:471:    expect(status?.getAttribute('role')).toBe('status')","tests/hud-controller.test.ts:774:  it('GIVEN an upgradeView WHEN render called THEN the Upgrade weapon button, cost, and a role=status/aria-live=polite/aria-atomic=true live region are present (AC2)', () => {","tests/hud-controller.test.ts:788:    expect(upgradeStatus?.getAttribute('role')).toBe('status')"],"stdout_truncated":false,"stdout_original_line_count":9,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":12,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC5","line":16,"raw_command":"rg -n \"loopPhase\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:94335c8faa56770f98673704addc1d72c4772de1289c9d096c2a58ee770270ea","execution_key_hash":"sha256:e6ae12c4225ce3fabd58a86b71672d3e80eac4ab2dec530215b00e2c1c72bccc","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["src/ui/HudController.ts:112:function getMissionPhaseCopy(loopPhase: GameState['loopPhase']): string {","src/ui/HudController.ts:113:  switch (loopPhase) {","src/ui/HudController.ts:134:      return state.loopPhase === 'preparation' ? 'Ready' : 'Standing by'","src/ui/HudController.ts:164:  if (state.loopPhase !== 'running' || state.sortie.status !== 'running') {","src/ui/HudController.ts:332:  const loopPhase = queryField(container, 'loop-phase')","src/ui/HudController.ts:361:      loopPhase.textContent = getMissionPhaseCopy(state.loopPhase)","src/ui/HudController.ts:364:      const isMenuPhase = state.loopPhase === 'title_menu' || state.loopPhase === 'load_menu'","src/ui/HudController.ts:366:      newGameButton.disabled = state.loopPhase !== 'title_menu'","src/ui/HudController.ts:367:      startSortieButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:368:      assistPlayerButton.disabled = state.loopPhase !== 'running'","src/ui/HudController.ts:370:      claimRewardButton.disabled = state.loopPhase !== 'debrief_pending_reward'","src/ui/HudController.ts:372:      confirmResultButton.disabled = state.loopPhase !== 'result'","src/ui/HudController.ts:374:      nextSortieButton.disabled = state.loopPhase !== 'debrief_reward_claimed'","src/ui/HudController.ts:376:      saveButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:381:      resetButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:385:      // re-derives eligibility from state.loopPhase itself.","src/ui/HudController.ts:407:      togglePauseButton.disabled = state.loopPhase !== 'running' && !isPaused","tests/hud-controller.test.ts:24:function createState(loopPhase: LoopPhase = 'preparation', resultRewardStatus: ResultRewardStatus = 'pending'): GameState {","tests/hud-controller.test.ts:25:  const isDebrief = loopPhase === 'debrief_pending_reward' || loopPhase === 'debrief_reward_claimed'","tests/hud-controller.test.ts:26:  const isResult = loopPhase === 'result'"],"stdout_truncated":true,"stdout_original_line_count":26,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":3,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":15,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC6","line":19,"raw_command":"rg -n \"focus\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:5650df2353bb86e5a8ad8ba257b55395bd3388841f77295d0c36c9720d6c0f8f","execution_key_hash":"sha256:afe06272310a3a60200f603bed0211688d4e695e2a4f25df42b0fd0fbf355c4c","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:262:        targetingPolicy: 'focus_player',","tests/hud-controller.test.ts:295:        targetingPolicy: 'focus_player',","tests/hud-controller.test.ts:352:        targetingPolicy: 'focus_player',","tests/hud-controller.test.ts:386:        targetingPolicy: 'focus_player',"],"stdout_truncated":false,"stdout_original_line_count":5,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":3,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":18,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC6","line":21,"raw_command":"rg -n \"inert\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:2f6988ccdf7914c1f5445b62ab25afd5ea07efdb408ec579c40278d42d1d1874","execution_key_hash":"sha256:1978bcb3d751e2eac9fbffb60a63dda5e78e617f4271676c1226e49b9ec7dfd0","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:217:    // Overlay inactivity is enforced by the shell layer via hidden/inert;","tests/hud-controller.test.ts:234:  it('GIVEN running WHEN render called THEN disabled overlay buttons remain present but are inert-ready hit-test surfaces', () => {"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":3,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":20,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC6","line":23,"raw_command":"rg -n \"hidden\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:fca45e2e22a2ac7a837fe86fd4c4dda27f51aa440d7a92bc88e9bdb91c56795b","execution_key_hash":"sha256:46e0f24ecdc6337921d5ee6ba290ad16f8b9a03489c3fd2a5d211a55b8021cab","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:217:    // Overlay inactivity is enforced by the shell layer via hidden/inert;"],"stdout_truncated":false,"stdout_original_line_count":2,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":3,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":22,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC7","line":25,"raw_command":"pnpm build","command_hash":"sha256:702e948d947e109310cb2bf19c157b5bb8142b88c87e02ae87a7594c9b797893","execution_key_hash":"sha256:1f23f582754ac176eef3a4992f4050317f6c11839adb6bfc9ff9ad4b8aa41951","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["✓ Lockfile passes supply-chain policies (verified 14d ago)","Lockfile is up to date, resolution step is skipped","Already up to date","Done in 456ms using pnpm v11.7.0","\u001b[36mvite v8.0.13 \u001b[32mbuilding client environment for production...\u001b[36m\u001b[39m","\u001b[2K","transforming...✓ 41 modules transformed.","rendering chunks...","computing gzip size...","dist/index.html                  0.46 kB │ gzip:  0.30 kB","dist/assets/index-BMsLd5fy.css   3.49 kB │ gzip:  1.47 kB","dist/assets/index-FsMPCAOe.js   61.16 kB │ gzip: 18.85 kB","\u001b[32m✓ built in 52ms\u001b[39m"],"stdout_truncated":false,"stdout_original_line_count":16,"stderr_head":["$ tsc && vite build"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":1514,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.build.v1","exact_request_argv":["pnpm","build"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","build"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:5cd459743411275f0df5594c3f96de7140420a3a4535fb9a46352435215eccda","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC8","line":27,"raw_command":"rg -n \"back_to_preparation\" src/systems/PhaseTransitionSystem.ts tests/phase-transition-system.test.ts","command_hash":"sha256:fe93e3fdc70be960ead391edb7f2e5b561480a7e0467c63f289504059eda338f","execution_key_hash":"sha256:369de2539dd7eec90603831414f72f3d3b9cc42f5ecdb8cd1e94a44cd133c959","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC9","line":29,"raw_command":"rg -n \"loadFailure\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:d15157d2c246a810a71ebbe92e97e287c9be01da24a835b0258a7226d63c3d83","execution_key_hash":"sha256:446ad4bcbb5c50a539d469630e7db6400148105e0d4c204a07a79a26d30cd2e9","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null}]
        declared_path_overlap: {"schema":"declared_path_overlap/v1","advisory":true,"blocking":false,"decision":"advisory_only","disjoint":true,"overlapping_prs":[],"inventory":{"schema":"OPEN_PR_INVENTORY_V1","repo":"squne121/loop-protocol","state":"open","base_ref":"main","base_sha":"ea93bcd0fd358a033cbee96278f5e7bd3d882319","draft_policy":"include_drafts","prs":[{"number":1528,"title":"feat(cleanup): 同一実行内の branch-only fallback を追加","base_ref_name":"main","head_ref_name":"worktree-issue-1403-post-merge-cleanup-dedicated-branch-forc","head_ref_oid":"b29007580ae225eb9676c7f32c878ee2bb9ccaa9","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1528","changed_files_count_graphql":4},{"number":1813,"title":"実装: VRT CI evidence matrix と artifact validator を capture 単位に拡張する (#1387)","base_ref_name":"main","head_ref_name":"worktree-issue-1387-vrt-active-capture-evidence-matrix","head_ref_oid":"06a9daed5de2827f0dbe3a85466918a56927fb2e","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1813","changed_files_count_graphql":5}],"fetched_count":2,"totalCount":2,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:a608da1f628a0fc9e2b826f88e72d2c31168bc7734b9070fa8adb60176dc559e","errors":[]},"inventory_digest_extended":"sha256:e15d04cdd39f872dcce3c8485a089e5828cce4f1cc2221089c00651b7bb781fa","errors":[],"note":"changed-file 名の単純な重なりのみを証明する advisory check。3-way merge・hunk 競合・rename/delete 競合は評価しない(実 Git merge 競合の判定は Issue #1792 の PAIRWISE_MERGE_OBSERVATION_V1 producer の責務)。単独では blocking にしない。disjoint は tri-state(true/false/null)— 観測が不完全な場合は null。"}
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":1374,"contract_source_kind":"issue_comment","contract_source_id":"5085899682","contract_body_sha256":"sha256:e20667bc546ea78870ea5a573c75ad3aca49ea2771e88a86ff09e9d7e545933b","allowed_paths_normalized_sha256":"51c868448991552b59f81524701d081cd0a3dde98165726835ebbd892bb45eb4","base_ref":"main","base_sha_at_snapshot":"ea93bcd0fd358a033cbee96278f5e7bd3d882319"}
  9. 5 remaining items

  10. squne121 commented on Jul 27, 2026

    @squne121
    OwnerAuthor

    Scope Delta 承認記録(VRT baseline, iteration 3)

  11. squne121 commented on Jul 27, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-27T10:38:41Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1374
      body_sha256: "sha256:d459a56ae5f34dca7ff1a516fdb0fe6f587d85ca3a1db3dd8369fdf4852183d9"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        product_spec_check: {"schema":"product_spec_check/v1","applicability":"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,"machine_readable_contract_present":true},"conditions":{"docs_product_requires_spec_evidence":{"status":"pass","evidence":[]},"tasks_md_not_direct_source":{"status":"pass","evidence":[]},"specify_not_canonical":{"status":"pass","evidence":[]},"diff_first_rationale_present":{"status":"pass","evidence":[]},"generated_task_trace_present":{"status":"pass","evidence":[]},"task_dependencies_materialized":{"status":"pass","evidence":[]}},"blocked_reasons":[],"body_sha256":"sha256:d459a56ae5f34dca7ff1a516fdb0fe6f587d85ca3a1db3dd8369fdf4852183d9","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":3,"raw_command":"rg -n \"title_menu\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:aadee4d1cea803c03b5e62e03f208c991a79cdb10d31dfa78dad921f9c3412b9","execution_key_hash":"sha256:300fc8430e7641b216c0837ffe927fb16f01fd1bd5b709c9df4dafe6a224edc0","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["src/ui/HudController.ts:15:  /** Load Game (AC3, AC9): only valid from title_menu / load_menu. */","src/ui/HudController.ts:114:    case 'title_menu':","src/ui/HudController.ts:364:      const isMenuPhase = state.loopPhase === 'title_menu' || state.loopPhase === 'load_menu'","src/ui/HudController.ts:365:      // new-game: only in title_menu (AC1)","src/ui/HudController.ts:366:      newGameButton.disabled = state.loopPhase !== 'title_menu'","src/ui/HudController.ts:377:      // load-game: title_menu or load_menu only (AC3, AC9)","tests/hud-controller.test.ts:163:  it('GIVEN title_menu WHEN render called THEN new-game enabled, load-game enabled, start-sortie disabled (AC1)', () => {","tests/hud-controller.test.ts:164:    hudController.render(createState('title_menu'), false)","tests/hud-controller.test.ts:175:  it('GIVEN title_menu without loadable snapshot WHEN render called THEN new-game enabled, load-game disabled (AC1)', () => {","tests/hud-controller.test.ts:177:    hudController.render(createState('title_menu'), false)","tests/hud-controller.test.ts:194:  it('GIVEN title_menu without a loadable snapshot WHEN render called THEN load-game is disabled (AC9)', () => {","tests/hud-controller.test.ts:197:    hudController.render(createState('title_menu'), false)","tests/hud-controller.test.ts:511:    expect(textSurface).not.toContain('title_menu')","tests/hud-controller.test.ts:538:// AC3: Load Game spy test — storage.load() only called from title_menu / load_menu","tests/hud-controller.test.ts:541:describe('AC3: Load Game phase gate — onLoadGame only fires from title_menu / load_menu', () => {","tests/hud-controller.test.ts:565:  it('GIVEN title_menu with loadable snapshot WHEN load-game button is clicked THEN onLoadGame is called once (AC3)', () => {","tests/hud-controller.test.ts:566:    hudController.render(createState('title_menu'), false)"],"stdout_truncated":false,"stdout_original_line_count":18,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":5,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC2","line":6,"raw_command":"rg -n \"preparation\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:8090e3915aa66effa8bce430b1e5978a2eac85dafdc15b2b8b8c52cc2c0af598","execution_key_hash":"sha256:12ad40a8d153e225860238bad23171f9c8ce52faca01758c612fc291bcb34c8b","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["src/ui/HudController.ts:10:  /** Confirm result and return to preparation (AC5). */","src/ui/HudController.ts:13:  /** Save operation (AC2, AC8): caller must gate to preparation phase only. */","src/ui/HudController.ts:62:  'not-preparation': {","src/ui/HudController.ts:64:    summary: 'Return to preparation before upgrading.',","src/ui/HudController.ts:118:    case 'preparation':","src/ui/HudController.ts:134:      return state.loopPhase === 'preparation' ? 'Ready' : 'Standing by'","src/ui/HudController.ts:260:        title=\"Reset sortie is a destructive boundary and is only available during preparation.\"","src/ui/HudController.ts:367:      startSortieButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:375:      // save: preparation only (AC2, AC8)","src/ui/HudController.ts:376:      saveButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:381:      resetButton.disabled = state.loopPhase !== 'preparation'","tests/hud-controller.test.ts:24:function createState(loopPhase: LoopPhase = 'preparation', resultRewardStatus: ResultRewardStatus = 'pending'): GameState {","tests/hud-controller.test.ts:149:  it('GIVEN preparation WHEN render called THEN phase copy and preparation actions are enabled', () => {","tests/hud-controller.test.ts:150:    hudController.render(createState('preparation'), false)","tests/hud-controller.test.ts:219:    hudController.render(createState('preparation'), false, {","tests/hud-controller.test.ts:400:    hudController.render(createState('preparation'), false)","tests/hud-controller.test.ts:465:    state.telemetry.lastCommandSummary = 'Confirm result to save and return to preparation.'","tests/hud-controller.test.ts:474:      'Confirm result to save and return to preparation.',","tests/hud-controller.test.ts:503:    hudController.render(createState('preparation'), false)","tests/hud-controller.test.ts:583:  it('GIVEN preparation phase WHEN load-game button is clicked THEN onLoadGame is NOT called (AC3)', () => {"],"stdout_truncated":true,"stdout_original_line_count":40,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":5,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC3","line":9,"raw_command":"rg -n \"running\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:0e348c0c1fc3ae80bcbdfae9d18f839c2c3c1bd1cb38f3359b7902b7efa32e46","execution_key_hash":"sha256:c8af8c90c1df5c4fbbc27d08761957b2ba937345ad23875e00c1e9b3811799c2","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["src/ui/HudController.ts:120:    case 'running':","src/ui/HudController.ts:135:    case 'running':","src/ui/HudController.ts:164:  if (state.loopPhase !== 'running' || state.sortie.status !== 'running') {","src/ui/HudController.ts:368:      assistPlayerButton.disabled = state.loopPhase !== 'running'","src/ui/HudController.ts:406:      // BLOCKER 1: pause button is disabled when not in running phase and not already paused","src/ui/HudController.ts:407:      togglePauseButton.disabled = state.loopPhase !== 'running' && !isPaused","src/ui/HudController.ts:420:        // Count defeated enemies for live kills display during running","src/ui/HudController.ts:426:      // Terminal: use result.durationMs; running: use elapsedTicks-derived ticks","src/ui/HudController.ts:434:        // running or idle: elapsedTicks / 60 Hz approximation (display only)","src/ui/HudController.ts:440:        // the running-duration display is derived from that authority.","tests/hud-controller.test.ts:81:      loopPhase === 'running'","tests/hud-controller.test.ts:83:            status: 'running',","tests/hud-controller.test.ts:202:  it('GIVEN running WHEN render called THEN button.disabled marks the full action surface as disabled', () => {","tests/hud-controller.test.ts:203:    hudController.render(createState('running'), false)","tests/hud-controller.test.ts:234:  it('GIVEN running WHEN render called THEN disabled overlay buttons remain present but are inert-ready hit-test surfaces', () => {","tests/hud-controller.test.ts:235:    hudController.render(createState('running'), false)","tests/hud-controller.test.ts:243:  it('GIVEN running with ally and living enemy WHEN render called THEN assist status reports ready and assist button is reachable', () => {","tests/hud-controller.test.ts:244:    const state = createState('running')","tests/hud-controller.test.ts:277:  it('GIVEN running without allies WHEN render called THEN assist status reports no ally available', () => {","tests/hud-controller.test.ts:278:    const state = createState('running')"],"stdout_truncated":true,"stdout_original_line_count":33,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":8,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC4","line":11,"raw_command":"rg -n \"getByRole\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:9368c948d7926b221c15844e7490886446036ffd0b853d9b6e64f21be7bd45a2","execution_key_hash":"sha256:fa1d2e7acd1b2a5aded6597ebc879a1c67e0b76dc1665f18c247044ce5795796","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC4","line":13,"raw_command":"rg -n \"role\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:9e552b02223f83cc2f05388c6153806a75c50efc22b191c8a8704e6865564fa2","execution_key_hash":"sha256:05ade088813c5b79d991434f4bae7571670ce09467175ee42fa0b91fea0e9338","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:260:        role: 'enemy_chaser',","tests/hud-controller.test.ts:272:    expect(assistStatus?.getAttribute('role')).toBe('status')","tests/hud-controller.test.ts:293:        role: 'enemy_chaser',","tests/hud-controller.test.ts:350:        role: 'enemy_chaser',","tests/hud-controller.test.ts:384:        role: 'enemy_chaser',","tests/hud-controller.test.ts:471:    expect(status?.getAttribute('role')).toBe('status')","tests/hud-controller.test.ts:774:  it('GIVEN an upgradeView WHEN render called THEN the Upgrade weapon button, cost, and a role=status/aria-live=polite/aria-atomic=true live region are present (AC2)', () => {","tests/hud-controller.test.ts:788:    expect(upgradeStatus?.getAttribute('role')).toBe('status')"],"stdout_truncated":false,"stdout_original_line_count":9,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":12,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC5","line":16,"raw_command":"rg -n \"loopPhase\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:94335c8faa56770f98673704addc1d72c4772de1289c9d096c2a58ee770270ea","execution_key_hash":"sha256:e6ae12c4225ce3fabd58a86b71672d3e80eac4ab2dec530215b00e2c1c72bccc","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["src/ui/HudController.ts:112:function getMissionPhaseCopy(loopPhase: GameState['loopPhase']): string {","src/ui/HudController.ts:113:  switch (loopPhase) {","src/ui/HudController.ts:134:      return state.loopPhase === 'preparation' ? 'Ready' : 'Standing by'","src/ui/HudController.ts:164:  if (state.loopPhase !== 'running' || state.sortie.status !== 'running') {","src/ui/HudController.ts:332:  const loopPhase = queryField(container, 'loop-phase')","src/ui/HudController.ts:361:      loopPhase.textContent = getMissionPhaseCopy(state.loopPhase)","src/ui/HudController.ts:364:      const isMenuPhase = state.loopPhase === 'title_menu' || state.loopPhase === 'load_menu'","src/ui/HudController.ts:366:      newGameButton.disabled = state.loopPhase !== 'title_menu'","src/ui/HudController.ts:367:      startSortieButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:368:      assistPlayerButton.disabled = state.loopPhase !== 'running'","src/ui/HudController.ts:370:      claimRewardButton.disabled = state.loopPhase !== 'debrief_pending_reward'","src/ui/HudController.ts:372:      confirmResultButton.disabled = state.loopPhase !== 'result'","src/ui/HudController.ts:374:      nextSortieButton.disabled = state.loopPhase !== 'debrief_reward_claimed'","src/ui/HudController.ts:376:      saveButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:381:      resetButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:385:      // re-derives eligibility from state.loopPhase itself.","src/ui/HudController.ts:407:      togglePauseButton.disabled = state.loopPhase !== 'running' && !isPaused","tests/hud-controller.test.ts:24:function createState(loopPhase: LoopPhase = 'preparation', resultRewardStatus: ResultRewardStatus = 'pending'): GameState {","tests/hud-controller.test.ts:25:  const isDebrief = loopPhase === 'debrief_pending_reward' || loopPhase === 'debrief_reward_claimed'","tests/hud-controller.test.ts:26:  const isResult = loopPhase === 'result'"],"stdout_truncated":true,"stdout_original_line_count":26,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":15,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC6","line":19,"raw_command":"rg -n \"focus\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:5650df2353bb86e5a8ad8ba257b55395bd3388841f77295d0c36c9720d6c0f8f","execution_key_hash":"sha256:afe06272310a3a60200f603bed0211688d4e695e2a4f25df42b0fd0fbf355c4c","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:262:        targetingPolicy: 'focus_player',","tests/hud-controller.test.ts:295:        targetingPolicy: 'focus_player',","tests/hud-controller.test.ts:352:        targetingPolicy: 'focus_player',","tests/hud-controller.test.ts:386:        targetingPolicy: 'focus_player',"],"stdout_truncated":false,"stdout_original_line_count":5,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":18,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC6","line":21,"raw_command":"rg -n \"inert\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:2f6988ccdf7914c1f5445b62ab25afd5ea07efdb408ec579c40278d42d1d1874","execution_key_hash":"sha256:1978bcb3d751e2eac9fbffb60a63dda5e78e617f4271676c1226e49b9ec7dfd0","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:217:    // Overlay inactivity is enforced by the shell layer via hidden/inert;","tests/hud-controller.test.ts:234:  it('GIVEN running WHEN render called THEN disabled overlay buttons remain present but are inert-ready hit-test surfaces', () => {"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":20,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC6","line":23,"raw_command":"rg -n \"hidden\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:fca45e2e22a2ac7a837fe86fd4c4dda27f51aa440d7a92bc88e9bdb91c56795b","execution_key_hash":"sha256:46e0f24ecdc6337921d5ee6ba290ad16f8b9a03489c3fd2a5d211a55b8021cab","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:217:    // Overlay inactivity is enforced by the shell layer via hidden/inert;"],"stdout_truncated":false,"stdout_original_line_count":2,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":22,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC7","line":25,"raw_command":"pnpm build","command_hash":"sha256:702e948d947e109310cb2bf19c157b5bb8142b88c87e02ae87a7594c9b797893","execution_key_hash":"sha256:1f23f582754ac176eef3a4992f4050317f6c11839adb6bfc9ff9ad4b8aa41951","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["✓ Lockfile passes supply-chain policies (verified 15d ago)","Lockfile is up to date, resolution step is skipped","Already up to date","Done in 562ms using pnpm v11.7.0","\u001b[36mvite v8.0.13 \u001b[32mbuilding client environment for production...\u001b[36m\u001b[39m","\u001b[2K","transforming...✓ 41 modules transformed.","rendering chunks...","computing gzip size...","dist/index.html                  0.46 kB │ gzip:  0.30 kB","dist/assets/index-BMsLd5fy.css   3.49 kB │ gzip:  1.47 kB","dist/assets/index-FsMPCAOe.js   61.16 kB │ gzip: 18.85 kB","\u001b[32m✓ built in 52ms\u001b[39m"],"stdout_truncated":false,"stdout_original_line_count":16,"stderr_head":["$ tsc && vite build"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":1742,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.build.v1","exact_request_argv":["pnpm","build"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","build"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:5cd459743411275f0df5594c3f96de7140420a3a4535fb9a46352435215eccda","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC8","line":27,"raw_command":"rg -n \"back_to_preparation\" src/systems/PhaseTransitionSystem.ts tests/phase-transition-system.test.ts","command_hash":"sha256:fe93e3fdc70be960ead391edb7f2e5b561480a7e0467c63f289504059eda338f","execution_key_hash":"sha256:369de2539dd7eec90603831414f72f3d3b9cc42f5ecdb8cd1e94a44cd133c959","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC9","line":29,"raw_command":"rg -n \"loadFailure\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:d15157d2c246a810a71ebbe92e97e287c9be01da24a835b0258a7226d63c3d83","execution_key_hash":"sha256:446ad4bcbb5c50a539d469630e7db6400148105e0d4c204a07a79a26d30cd2e9","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null}]
        declared_path_overlap: {"schema":"declared_path_overlap/v1","advisory":true,"blocking":false,"decision":"advisory_only","disjoint":true,"overlapping_prs":[],"inventory":{"schema":"OPEN_PR_INVENTORY_V1","repo":"squne121/loop-protocol","state":"open","base_ref":"main","base_sha":"ea93bcd0fd358a033cbee96278f5e7bd3d882319","draft_policy":"include_drafts","prs":[{"number":1528,"title":"feat(cleanup): 同一実行内の branch-only fallback を追加","base_ref_name":"main","head_ref_name":"worktree-issue-1403-post-merge-cleanup-dedicated-branch-forc","head_ref_oid":"b29007580ae225eb9676c7f32c878ee2bb9ccaa9","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1528","changed_files_count_graphql":4},{"number":1813,"title":"実装: VRT CI evidence matrix と artifact validator を capture 単位に拡張する (#1387)","base_ref_name":"main","head_ref_name":"worktree-issue-1387-vrt-active-capture-evidence-matrix","head_ref_oid":"64e3a24a660c7702e61395b0c2b643f9f002f9f4","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1813","changed_files_count_graphql":7},{"number":1815,"title":"実装: title と preparation を phase screen overlay に移す (#1374)","base_ref_name":"main","head_ref_name":"worktree-issue-1374-phase-screen-overlay","head_ref_oid":"b09ff24774683fcb778c8bdf1c94aab921a2a7bd","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1815","changed_files_count_graphql":8},{"number":1816,"title":"実装: AGY permission-bypass flag 拒否のfail-closed実装と再実行可能テストを追加する (#1807)","base_ref_name":"main","head_ref_name":"worktree-issue-1807-agy-permission-bypass-flag-fail-closed","head_ref_oid":"a44ebba68f31be5c1d59b318fd2adc22ce5c7ce8","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1816","changed_files_count_graphql":3}],"fetched_count":4,"totalCount":4,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:45b8ad6ad6449a5c423db4ea725dcefdb7b514a3f1f683e2d78f46604cde2576","errors":[]},"inventory_digest_extended":"sha256:4065e9205e697ec36c2dd465ee2d2feae5de48ef84776b8d2ab826914f441b62","errors":[],"note":"changed-file 名の単純な重なりのみを証明する advisory check。3-way merge・hunk 競合・rename/delete 競合は評価しない(実 Git merge 競合の判定は Issue #1792 の PAIRWISE_MERGE_OBSERVATION_V1 producer の責務)。単独では blocking にしない。disjoint は tri-state(true/false/null)— 観測が不完全な場合は null。"}
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":1374,"contract_source_kind":"issue_comment","contract_source_id":"5090299346","contract_body_sha256":"sha256:d459a56ae5f34dca7ff1a516fdb0fe6f587d85ca3a1db3dd8369fdf4852183d9","allowed_paths_normalized_sha256":"f7f5a7d63c33c34b76ceaa192e2b79f8bc0f76f2555779855079f0ae9d7f3ee2","base_ref":"main","base_sha_at_snapshot":"ea93bcd0fd358a033cbee96278f5e7bd3d882319"}
  12. squne121 commented on Jul 27, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-27T11:16:21Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1374
      body_sha256: "sha256:0d2b5ccae54574a94345d7e8359cf5513b38aedf91f8f28a788ba84a50f3a876"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        product_spec_check: {"schema":"product_spec_check/v1","applicability":"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,"machine_readable_contract_present":true},"conditions":{"docs_product_requires_spec_evidence":{"status":"pass","evidence":[]},"tasks_md_not_direct_source":{"status":"pass","evidence":[]},"specify_not_canonical":{"status":"pass","evidence":[]},"diff_first_rationale_present":{"status":"pass","evidence":[]},"generated_task_trace_present":{"status":"pass","evidence":[]},"task_dependencies_materialized":{"status":"pass","evidence":[]}},"blocked_reasons":[],"body_sha256":"sha256:0d2b5ccae54574a94345d7e8359cf5513b38aedf91f8f28a788ba84a50f3a876","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":3,"raw_command":"rg -n \"title_menu\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:aadee4d1cea803c03b5e62e03f208c991a79cdb10d31dfa78dad921f9c3412b9","execution_key_hash":"sha256:300fc8430e7641b216c0837ffe927fb16f01fd1bd5b709c9df4dafe6a224edc0","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["src/ui/HudController.ts:15:  /** Load Game (AC3, AC9): only valid from title_menu / load_menu. */","src/ui/HudController.ts:114:    case 'title_menu':","src/ui/HudController.ts:364:      const isMenuPhase = state.loopPhase === 'title_menu' || state.loopPhase === 'load_menu'","src/ui/HudController.ts:365:      // new-game: only in title_menu (AC1)","src/ui/HudController.ts:366:      newGameButton.disabled = state.loopPhase !== 'title_menu'","src/ui/HudController.ts:377:      // load-game: title_menu or load_menu only (AC3, AC9)","tests/hud-controller.test.ts:163:  it('GIVEN title_menu WHEN render called THEN new-game enabled, load-game enabled, start-sortie disabled (AC1)', () => {","tests/hud-controller.test.ts:164:    hudController.render(createState('title_menu'), false)","tests/hud-controller.test.ts:175:  it('GIVEN title_menu without loadable snapshot WHEN render called THEN new-game enabled, load-game disabled (AC1)', () => {","tests/hud-controller.test.ts:177:    hudController.render(createState('title_menu'), false)","tests/hud-controller.test.ts:194:  it('GIVEN title_menu without a loadable snapshot WHEN render called THEN load-game is disabled (AC9)', () => {","tests/hud-controller.test.ts:197:    hudController.render(createState('title_menu'), false)","tests/hud-controller.test.ts:511:    expect(textSurface).not.toContain('title_menu')","tests/hud-controller.test.ts:538:// AC3: Load Game spy test — storage.load() only called from title_menu / load_menu","tests/hud-controller.test.ts:541:describe('AC3: Load Game phase gate — onLoadGame only fires from title_menu / load_menu', () => {","tests/hud-controller.test.ts:565:  it('GIVEN title_menu with loadable snapshot WHEN load-game button is clicked THEN onLoadGame is called once (AC3)', () => {","tests/hud-controller.test.ts:566:    hudController.render(createState('title_menu'), false)"],"stdout_truncated":false,"stdout_original_line_count":18,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":6,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC2","line":6,"raw_command":"rg -n \"preparation\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:8090e3915aa66effa8bce430b1e5978a2eac85dafdc15b2b8b8c52cc2c0af598","execution_key_hash":"sha256:12ad40a8d153e225860238bad23171f9c8ce52faca01758c612fc291bcb34c8b","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["src/ui/HudController.ts:10:  /** Confirm result and return to preparation (AC5). */","src/ui/HudController.ts:13:  /** Save operation (AC2, AC8): caller must gate to preparation phase only. */","src/ui/HudController.ts:62:  'not-preparation': {","src/ui/HudController.ts:64:    summary: 'Return to preparation before upgrading.',","src/ui/HudController.ts:118:    case 'preparation':","src/ui/HudController.ts:134:      return state.loopPhase === 'preparation' ? 'Ready' : 'Standing by'","src/ui/HudController.ts:260:        title=\"Reset sortie is a destructive boundary and is only available during preparation.\"","src/ui/HudController.ts:367:      startSortieButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:375:      // save: preparation only (AC2, AC8)","src/ui/HudController.ts:376:      saveButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:381:      resetButton.disabled = state.loopPhase !== 'preparation'","tests/hud-controller.test.ts:24:function createState(loopPhase: LoopPhase = 'preparation', resultRewardStatus: ResultRewardStatus = 'pending'): GameState {","tests/hud-controller.test.ts:149:  it('GIVEN preparation WHEN render called THEN phase copy and preparation actions are enabled', () => {","tests/hud-controller.test.ts:150:    hudController.render(createState('preparation'), false)","tests/hud-controller.test.ts:219:    hudController.render(createState('preparation'), false, {","tests/hud-controller.test.ts:400:    hudController.render(createState('preparation'), false)","tests/hud-controller.test.ts:465:    state.telemetry.lastCommandSummary = 'Confirm result to save and return to preparation.'","tests/hud-controller.test.ts:474:      'Confirm result to save and return to preparation.',","tests/hud-controller.test.ts:503:    hudController.render(createState('preparation'), false)","tests/hud-controller.test.ts:583:  it('GIVEN preparation phase WHEN load-game button is clicked THEN onLoadGame is NOT called (AC3)', () => {"],"stdout_truncated":true,"stdout_original_line_count":40,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":5,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":5,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC3","line":9,"raw_command":"rg -n \"running\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:0e348c0c1fc3ae80bcbdfae9d18f839c2c3c1bd1cb38f3359b7902b7efa32e46","execution_key_hash":"sha256:c8af8c90c1df5c4fbbc27d08761957b2ba937345ad23875e00c1e9b3811799c2","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["src/ui/HudController.ts:120:    case 'running':","src/ui/HudController.ts:135:    case 'running':","src/ui/HudController.ts:164:  if (state.loopPhase !== 'running' || state.sortie.status !== 'running') {","src/ui/HudController.ts:368:      assistPlayerButton.disabled = state.loopPhase !== 'running'","src/ui/HudController.ts:406:      // BLOCKER 1: pause button is disabled when not in running phase and not already paused","src/ui/HudController.ts:407:      togglePauseButton.disabled = state.loopPhase !== 'running' && !isPaused","src/ui/HudController.ts:420:        // Count defeated enemies for live kills display during running","src/ui/HudController.ts:426:      // Terminal: use result.durationMs; running: use elapsedTicks-derived ticks","src/ui/HudController.ts:434:        // running or idle: elapsedTicks / 60 Hz approximation (display only)","src/ui/HudController.ts:440:        // the running-duration display is derived from that authority.","tests/hud-controller.test.ts:81:      loopPhase === 'running'","tests/hud-controller.test.ts:83:            status: 'running',","tests/hud-controller.test.ts:202:  it('GIVEN running WHEN render called THEN button.disabled marks the full action surface as disabled', () => {","tests/hud-controller.test.ts:203:    hudController.render(createState('running'), false)","tests/hud-controller.test.ts:234:  it('GIVEN running WHEN render called THEN disabled overlay buttons remain present but are inert-ready hit-test surfaces', () => {","tests/hud-controller.test.ts:235:    hudController.render(createState('running'), false)","tests/hud-controller.test.ts:243:  it('GIVEN running with ally and living enemy WHEN render called THEN assist status reports ready and assist button is reachable', () => {","tests/hud-controller.test.ts:244:    const state = createState('running')","tests/hud-controller.test.ts:277:  it('GIVEN running without allies WHEN render called THEN assist status reports no ally available', () => {","tests/hud-controller.test.ts:278:    const state = createState('running')"],"stdout_truncated":true,"stdout_original_line_count":33,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":8,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC4","line":11,"raw_command":"rg -n \"getByRole\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:9368c948d7926b221c15844e7490886446036ffd0b853d9b6e64f21be7bd45a2","execution_key_hash":"sha256:fa1d2e7acd1b2a5aded6597ebc879a1c67e0b76dc1665f18c247044ce5795796","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC4","line":13,"raw_command":"rg -n \"role\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:9e552b02223f83cc2f05388c6153806a75c50efc22b191c8a8704e6865564fa2","execution_key_hash":"sha256:05ade088813c5b79d991434f4bae7571670ce09467175ee42fa0b91fea0e9338","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:260:        role: 'enemy_chaser',","tests/hud-controller.test.ts:272:    expect(assistStatus?.getAttribute('role')).toBe('status')","tests/hud-controller.test.ts:293:        role: 'enemy_chaser',","tests/hud-controller.test.ts:350:        role: 'enemy_chaser',","tests/hud-controller.test.ts:384:        role: 'enemy_chaser',","tests/hud-controller.test.ts:471:    expect(status?.getAttribute('role')).toBe('status')","tests/hud-controller.test.ts:774:  it('GIVEN an upgradeView WHEN render called THEN the Upgrade weapon button, cost, and a role=status/aria-live=polite/aria-atomic=true live region are present (AC2)', () => {","tests/hud-controller.test.ts:788:    expect(upgradeStatus?.getAttribute('role')).toBe('status')"],"stdout_truncated":false,"stdout_original_line_count":9,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":3,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":12,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC5","line":16,"raw_command":"rg -n \"loopPhase\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:94335c8faa56770f98673704addc1d72c4772de1289c9d096c2a58ee770270ea","execution_key_hash":"sha256:e6ae12c4225ce3fabd58a86b71672d3e80eac4ab2dec530215b00e2c1c72bccc","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["src/ui/HudController.ts:112:function getMissionPhaseCopy(loopPhase: GameState['loopPhase']): string {","src/ui/HudController.ts:113:  switch (loopPhase) {","src/ui/HudController.ts:134:      return state.loopPhase === 'preparation' ? 'Ready' : 'Standing by'","src/ui/HudController.ts:164:  if (state.loopPhase !== 'running' || state.sortie.status !== 'running') {","src/ui/HudController.ts:332:  const loopPhase = queryField(container, 'loop-phase')","src/ui/HudController.ts:361:      loopPhase.textContent = getMissionPhaseCopy(state.loopPhase)","src/ui/HudController.ts:364:      const isMenuPhase = state.loopPhase === 'title_menu' || state.loopPhase === 'load_menu'","src/ui/HudController.ts:366:      newGameButton.disabled = state.loopPhase !== 'title_menu'","src/ui/HudController.ts:367:      startSortieButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:368:      assistPlayerButton.disabled = state.loopPhase !== 'running'","src/ui/HudController.ts:370:      claimRewardButton.disabled = state.loopPhase !== 'debrief_pending_reward'","src/ui/HudController.ts:372:      confirmResultButton.disabled = state.loopPhase !== 'result'","src/ui/HudController.ts:374:      nextSortieButton.disabled = state.loopPhase !== 'debrief_reward_claimed'","src/ui/HudController.ts:376:      saveButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:381:      resetButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:385:      // re-derives eligibility from state.loopPhase itself.","src/ui/HudController.ts:407:      togglePauseButton.disabled = state.loopPhase !== 'running' && !isPaused","tests/hud-controller.test.ts:24:function createState(loopPhase: LoopPhase = 'preparation', resultRewardStatus: ResultRewardStatus = 'pending'): GameState {","tests/hud-controller.test.ts:25:  const isDebrief = loopPhase === 'debrief_pending_reward' || loopPhase === 'debrief_reward_claimed'","tests/hud-controller.test.ts:26:  const isResult = loopPhase === 'result'"],"stdout_truncated":true,"stdout_original_line_count":26,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":3,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":15,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC6","line":19,"raw_command":"rg -n \"focus\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:5650df2353bb86e5a8ad8ba257b55395bd3388841f77295d0c36c9720d6c0f8f","execution_key_hash":"sha256:afe06272310a3a60200f603bed0211688d4e695e2a4f25df42b0fd0fbf355c4c","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:262:        targetingPolicy: 'focus_player',","tests/hud-controller.test.ts:295:        targetingPolicy: 'focus_player',","tests/hud-controller.test.ts:352:        targetingPolicy: 'focus_player',","tests/hud-controller.test.ts:386:        targetingPolicy: 'focus_player',"],"stdout_truncated":false,"stdout_original_line_count":5,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":18,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC6","line":21,"raw_command":"rg -n \"inert\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:2f6988ccdf7914c1f5445b62ab25afd5ea07efdb408ec579c40278d42d1d1874","execution_key_hash":"sha256:1978bcb3d751e2eac9fbffb60a63dda5e78e617f4271676c1226e49b9ec7dfd0","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:217:    // Overlay inactivity is enforced by the shell layer via hidden/inert;","tests/hud-controller.test.ts:234:  it('GIVEN running WHEN render called THEN disabled overlay buttons remain present but are inert-ready hit-test surfaces', () => {"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":5,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":20,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC6","line":23,"raw_command":"rg -n \"hidden\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:fca45e2e22a2ac7a837fe86fd4c4dda27f51aa440d7a92bc88e9bdb91c56795b","execution_key_hash":"sha256:46e0f24ecdc6337921d5ee6ba290ad16f8b9a03489c3fd2a5d211a55b8021cab","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:217:    // Overlay inactivity is enforced by the shell layer via hidden/inert;"],"stdout_truncated":false,"stdout_original_line_count":2,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":22,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC7","line":25,"raw_command":"pnpm build","command_hash":"sha256:702e948d947e109310cb2bf19c157b5bb8142b88c87e02ae87a7594c9b797893","execution_key_hash":"sha256:1f23f582754ac176eef3a4992f4050317f6c11839adb6bfc9ff9ad4b8aa41951","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["✓ Lockfile passes supply-chain policies (verified 15d ago)","Lockfile is up to date, resolution step is skipped","Already up to date","Done in 522ms using pnpm v11.7.0","\u001b[36mvite v8.0.13 \u001b[32mbuilding client environment for production...\u001b[36m\u001b[39m","\u001b[2K","transforming...✓ 41 modules transformed.","rendering chunks...","computing gzip size...","dist/index.html                  0.46 kB │ gzip:  0.30 kB","dist/assets/index-BMsLd5fy.css   3.49 kB │ gzip:  1.47 kB","dist/assets/index-FsMPCAOe.js   61.16 kB │ gzip: 18.85 kB","\u001b[32m✓ built in 59ms\u001b[39m"],"stdout_truncated":false,"stdout_original_line_count":16,"stderr_head":["$ tsc && vite build"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":1845,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.build.v1","exact_request_argv":["pnpm","build"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","build"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:5cd459743411275f0df5594c3f96de7140420a3a4535fb9a46352435215eccda","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC8","line":27,"raw_command":"rg -n \"back_to_preparation\" src/systems/PhaseTransitionSystem.ts tests/phase-transition-system.test.ts","command_hash":"sha256:fe93e3fdc70be960ead391edb7f2e5b561480a7e0467c63f289504059eda338f","execution_key_hash":"sha256:369de2539dd7eec90603831414f72f3d3b9cc42f5ecdb8cd1e94a44cd133c959","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC9","line":29,"raw_command":"rg -n \"loadFailure\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:d15157d2c246a810a71ebbe92e97e287c9be01da24a835b0258a7226d63c3d83","execution_key_hash":"sha256:446ad4bcbb5c50a539d469630e7db6400148105e0d4c204a07a79a26d30cd2e9","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null}]
        declared_path_overlap: {"schema":"declared_path_overlap/v1","advisory":true,"blocking":false,"decision":"advisory_only","disjoint":true,"overlapping_prs":[],"inventory":{"schema":"OPEN_PR_INVENTORY_V1","repo":"squne121/loop-protocol","state":"open","base_ref":"main","base_sha":"d1cae8fb1b5245a9d88f6994a109ec0be138fb8f","draft_policy":"include_drafts","prs":[{"number":1528,"title":"feat(cleanup): 同一実行内の branch-only fallback を追加","base_ref_name":"main","head_ref_name":"worktree-issue-1403-post-merge-cleanup-dedicated-branch-forc","head_ref_oid":"b29007580ae225eb9676c7f32c878ee2bb9ccaa9","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1528","changed_files_count_graphql":4},{"number":1815,"title":"実装: title と preparation を phase screen overlay に移す (#1374)","base_ref_name":"main","head_ref_name":"worktree-issue-1374-phase-screen-overlay","head_ref_oid":"593e1dd367adfbb0a62012345ded3020ee695ee0","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1815","changed_files_count_graphql":8},{"number":1817,"title":"test: CLOSED predecessor の候補外 readback を固定 (#1766)","base_ref_name":"main","head_ref_name":"worktree-issue-1766-closed-native-predecessor-regression-v2","head_ref_oid":"5e39ca27825d76873b285de39a195a8d8f2311fd","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1817","changed_files_count_graphql":1},{"number":1818,"title":"実装: existing-branch publish guard の実行ホスト context 注入を復旧する","base_ref_name":"main","head_ref_name":"worktree-issue-1688-existing-branch-publish-context","head_ref_oid":"24b082cdb2bbeb5f96ef8f9a6f45ca692cb1c8cc","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1818","changed_files_count_graphql":7}],"fetched_count":4,"totalCount":4,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:9ece100c06b00284a83943513e9fcef003da641bcf3792fc27d21da66e3874b5","errors":[]},"inventory_digest_extended":"sha256:2617c233f4c9a9b7d81c1cf8a0b1d02781b398fe18ab198310628db68eaca7cb","errors":[],"note":"changed-file 名の単純な重なりのみを証明する advisory check。3-way merge・hunk 競合・rename/delete 競合は評価しない(実 Git merge 競合の判定は Issue #1792 の PAIRWISE_MERGE_OBSERVATION_V1 producer の責務)。単独では blocking にしない。disjoint は tri-state(true/false/null)— 観測が不完全な場合は null。"}
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":1374,"contract_source_kind":"issue_comment","contract_source_id":"5090633203","contract_body_sha256":"sha256:0d2b5ccae54574a94345d7e8359cf5513b38aedf91f8f28a788ba84a50f3a876","allowed_paths_normalized_sha256":"4586587aefeb0581751cdbb715f9075276f92338619562671072a21fb1e05f7e","base_ref":"main","base_sha_at_snapshot":"d1cae8fb1b5245a9d88f6994a109ec0be138fb8f"}
  13. squne121 commented on Jul 27, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-27T12:37:53Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1374
      body_sha256: "sha256:c179b4156e8f7fe3655246dffe2cdd182c33f7c98de220dde5ebb87185efbaee"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        product_spec_check: {"schema":"product_spec_check/v1","applicability":"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,"machine_readable_contract_present":true},"conditions":{"docs_product_requires_spec_evidence":{"status":"pass","evidence":[]},"tasks_md_not_direct_source":{"status":"pass","evidence":[]},"specify_not_canonical":{"status":"pass","evidence":[]},"diff_first_rationale_present":{"status":"pass","evidence":[]},"generated_task_trace_present":{"status":"pass","evidence":[]},"task_dependencies_materialized":{"status":"pass","evidence":[]}},"blocked_reasons":[],"body_sha256":"sha256:c179b4156e8f7fe3655246dffe2cdd182c33f7c98de220dde5ebb87185efbaee","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":3,"raw_command":"rg -n \"title_menu\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:aadee4d1cea803c03b5e62e03f208c991a79cdb10d31dfa78dad921f9c3412b9","execution_key_hash":"sha256:300fc8430e7641b216c0837ffe927fb16f01fd1bd5b709c9df4dafe6a224edc0","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:163:  it('GIVEN title_menu WHEN render called THEN new-game enabled, load-game enabled, start-sortie disabled (AC1)', () => {","tests/hud-controller.test.ts:164:    hudController.render(createState('title_menu'), false)","tests/hud-controller.test.ts:175:  it('GIVEN title_menu without loadable snapshot WHEN render called THEN new-game enabled, load-game disabled (AC1)', () => {","tests/hud-controller.test.ts:177:    hudController.render(createState('title_menu'), false)","tests/hud-controller.test.ts:194:  it('GIVEN title_menu without a loadable snapshot WHEN render called THEN load-game is disabled (AC9)', () => {","tests/hud-controller.test.ts:197:    hudController.render(createState('title_menu'), false)","tests/hud-controller.test.ts:511:    expect(textSurface).not.toContain('title_menu')","tests/hud-controller.test.ts:538:// AC3: Load Game spy test — storage.load() only called from title_menu / load_menu","tests/hud-controller.test.ts:541:describe('AC3: Load Game phase gate — onLoadGame only fires from title_menu / load_menu', () => {","tests/hud-controller.test.ts:565:  it('GIVEN title_menu with loadable snapshot WHEN load-game button is clicked THEN onLoadGame is called once (AC3)', () => {","tests/hud-controller.test.ts:566:    hudController.render(createState('title_menu'), false)","src/ui/HudController.ts:15:  /** Load Game (AC3, AC9): only valid from title_menu / load_menu. */","src/ui/HudController.ts:114:    case 'title_menu':","src/ui/HudController.ts:364:      const isMenuPhase = state.loopPhase === 'title_menu' || state.loopPhase === 'load_menu'","src/ui/HudController.ts:365:      // new-game: only in title_menu (AC1)","src/ui/HudController.ts:366:      newGameButton.disabled = state.loopPhase !== 'title_menu'","src/ui/HudController.ts:377:      // load-game: title_menu or load_menu only (AC3, AC9)"],"stdout_truncated":false,"stdout_original_line_count":18,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":6,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":2,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC2","line":6,"raw_command":"rg -n \"preparation\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:8090e3915aa66effa8bce430b1e5978a2eac85dafdc15b2b8b8c52cc2c0af598","execution_key_hash":"sha256:12ad40a8d153e225860238bad23171f9c8ce52faca01758c612fc291bcb34c8b","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["src/ui/HudController.ts:10:  /** Confirm result and return to preparation (AC5). */","src/ui/HudController.ts:13:  /** Save operation (AC2, AC8): caller must gate to preparation phase only. */","src/ui/HudController.ts:62:  'not-preparation': {","src/ui/HudController.ts:64:    summary: 'Return to preparation before upgrading.',","src/ui/HudController.ts:118:    case 'preparation':","src/ui/HudController.ts:134:      return state.loopPhase === 'preparation' ? 'Ready' : 'Standing by'","src/ui/HudController.ts:260:        title=\"Reset sortie is a destructive boundary and is only available during preparation.\"","src/ui/HudController.ts:367:      startSortieButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:375:      // save: preparation only (AC2, AC8)","src/ui/HudController.ts:376:      saveButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:381:      resetButton.disabled = state.loopPhase !== 'preparation'","tests/hud-controller.test.ts:24:function createState(loopPhase: LoopPhase = 'preparation', resultRewardStatus: ResultRewardStatus = 'pending'): GameState {","tests/hud-controller.test.ts:149:  it('GIVEN preparation WHEN render called THEN phase copy and preparation actions are enabled', () => {","tests/hud-controller.test.ts:150:    hudController.render(createState('preparation'), false)","tests/hud-controller.test.ts:219:    hudController.render(createState('preparation'), false, {","tests/hud-controller.test.ts:400:    hudController.render(createState('preparation'), false)","tests/hud-controller.test.ts:465:    state.telemetry.lastCommandSummary = 'Confirm result to save and return to preparation.'","tests/hud-controller.test.ts:474:      'Confirm result to save and return to preparation.',","tests/hud-controller.test.ts:503:    hudController.render(createState('preparation'), false)","tests/hud-controller.test.ts:583:  it('GIVEN preparation phase WHEN load-game button is clicked THEN onLoadGame is NOT called (AC3)', () => {"],"stdout_truncated":true,"stdout_original_line_count":40,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":5,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":5,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC3","line":9,"raw_command":"rg -n \"running\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:0e348c0c1fc3ae80bcbdfae9d18f839c2c3c1bd1cb38f3359b7902b7efa32e46","execution_key_hash":"sha256:c8af8c90c1df5c4fbbc27d08761957b2ba937345ad23875e00c1e9b3811799c2","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["src/ui/HudController.ts:120:    case 'running':","src/ui/HudController.ts:135:    case 'running':","src/ui/HudController.ts:164:  if (state.loopPhase !== 'running' || state.sortie.status !== 'running') {","src/ui/HudController.ts:368:      assistPlayerButton.disabled = state.loopPhase !== 'running'","src/ui/HudController.ts:406:      // BLOCKER 1: pause button is disabled when not in running phase and not already paused","src/ui/HudController.ts:407:      togglePauseButton.disabled = state.loopPhase !== 'running' && !isPaused","src/ui/HudController.ts:420:        // Count defeated enemies for live kills display during running","src/ui/HudController.ts:426:      // Terminal: use result.durationMs; running: use elapsedTicks-derived ticks","src/ui/HudController.ts:434:        // running or idle: elapsedTicks / 60 Hz approximation (display only)","src/ui/HudController.ts:440:        // the running-duration display is derived from that authority.","tests/hud-controller.test.ts:81:      loopPhase === 'running'","tests/hud-controller.test.ts:83:            status: 'running',","tests/hud-controller.test.ts:202:  it('GIVEN running WHEN render called THEN button.disabled marks the full action surface as disabled', () => {","tests/hud-controller.test.ts:203:    hudController.render(createState('running'), false)","tests/hud-controller.test.ts:234:  it('GIVEN running WHEN render called THEN disabled overlay buttons remain present but are inert-ready hit-test surfaces', () => {","tests/hud-controller.test.ts:235:    hudController.render(createState('running'), false)","tests/hud-controller.test.ts:243:  it('GIVEN running with ally and living enemy WHEN render called THEN assist status reports ready and assist button is reachable', () => {","tests/hud-controller.test.ts:244:    const state = createState('running')","tests/hud-controller.test.ts:277:  it('GIVEN running without allies WHEN render called THEN assist status reports no ally available', () => {","tests/hud-controller.test.ts:278:    const state = createState('running')"],"stdout_truncated":true,"stdout_original_line_count":33,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":8,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC4","line":11,"raw_command":"rg -n \"getByRole\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:9368c948d7926b221c15844e7490886446036ffd0b853d9b6e64f21be7bd45a2","execution_key_hash":"sha256:fa1d2e7acd1b2a5aded6597ebc879a1c67e0b76dc1665f18c247044ce5795796","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC4","line":13,"raw_command":"rg -n \"role\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:9e552b02223f83cc2f05388c6153806a75c50efc22b191c8a8704e6865564fa2","execution_key_hash":"sha256:05ade088813c5b79d991434f4bae7571670ce09467175ee42fa0b91fea0e9338","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:260:        role: 'enemy_chaser',","tests/hud-controller.test.ts:272:    expect(assistStatus?.getAttribute('role')).toBe('status')","tests/hud-controller.test.ts:293:        role: 'enemy_chaser',","tests/hud-controller.test.ts:350:        role: 'enemy_chaser',","tests/hud-controller.test.ts:384:        role: 'enemy_chaser',","tests/hud-controller.test.ts:471:    expect(status?.getAttribute('role')).toBe('status')","tests/hud-controller.test.ts:774:  it('GIVEN an upgradeView WHEN render called THEN the Upgrade weapon button, cost, and a role=status/aria-live=polite/aria-atomic=true live region are present (AC2)', () => {","tests/hud-controller.test.ts:788:    expect(upgradeStatus?.getAttribute('role')).toBe('status')"],"stdout_truncated":false,"stdout_original_line_count":9,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":5,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":12,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC5","line":16,"raw_command":"rg -n \"loopPhase\" src/ui/HudController.ts tests/hud-controller.test.ts","command_hash":"sha256:94335c8faa56770f98673704addc1d72c4772de1289c9d096c2a58ee770270ea","execution_key_hash":"sha256:e6ae12c4225ce3fabd58a86b71672d3e80eac4ab2dec530215b00e2c1c72bccc","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["src/ui/HudController.ts:112:function getMissionPhaseCopy(loopPhase: GameState['loopPhase']): string {","src/ui/HudController.ts:113:  switch (loopPhase) {","src/ui/HudController.ts:134:      return state.loopPhase === 'preparation' ? 'Ready' : 'Standing by'","src/ui/HudController.ts:164:  if (state.loopPhase !== 'running' || state.sortie.status !== 'running') {","src/ui/HudController.ts:332:  const loopPhase = queryField(container, 'loop-phase')","src/ui/HudController.ts:361:      loopPhase.textContent = getMissionPhaseCopy(state.loopPhase)","src/ui/HudController.ts:364:      const isMenuPhase = state.loopPhase === 'title_menu' || state.loopPhase === 'load_menu'","src/ui/HudController.ts:366:      newGameButton.disabled = state.loopPhase !== 'title_menu'","src/ui/HudController.ts:367:      startSortieButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:368:      assistPlayerButton.disabled = state.loopPhase !== 'running'","src/ui/HudController.ts:370:      claimRewardButton.disabled = state.loopPhase !== 'debrief_pending_reward'","src/ui/HudController.ts:372:      confirmResultButton.disabled = state.loopPhase !== 'result'","src/ui/HudController.ts:374:      nextSortieButton.disabled = state.loopPhase !== 'debrief_reward_claimed'","src/ui/HudController.ts:376:      saveButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:381:      resetButton.disabled = state.loopPhase !== 'preparation'","src/ui/HudController.ts:385:      // re-derives eligibility from state.loopPhase itself.","src/ui/HudController.ts:407:      togglePauseButton.disabled = state.loopPhase !== 'running' && !isPaused","tests/hud-controller.test.ts:24:function createState(loopPhase: LoopPhase = 'preparation', resultRewardStatus: ResultRewardStatus = 'pending'): GameState {","tests/hud-controller.test.ts:25:  const isDebrief = loopPhase === 'debrief_pending_reward' || loopPhase === 'debrief_reward_claimed'","tests/hud-controller.test.ts:26:  const isResult = loopPhase === 'result'"],"stdout_truncated":true,"stdout_original_line_count":26,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":5,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":15,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC6","line":19,"raw_command":"rg -n \"focus\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:5650df2353bb86e5a8ad8ba257b55395bd3388841f77295d0c36c9720d6c0f8f","execution_key_hash":"sha256:afe06272310a3a60200f603bed0211688d4e695e2a4f25df42b0fd0fbf355c4c","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:262:        targetingPolicy: 'focus_player',","tests/hud-controller.test.ts:295:        targetingPolicy: 'focus_player',","tests/hud-controller.test.ts:352:        targetingPolicy: 'focus_player',","tests/hud-controller.test.ts:386:        targetingPolicy: 'focus_player',"],"stdout_truncated":false,"stdout_original_line_count":5,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":5,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":18,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC6","line":21,"raw_command":"rg -n \"inert\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:2f6988ccdf7914c1f5445b62ab25afd5ea07efdb408ec579c40278d42d1d1874","execution_key_hash":"sha256:1978bcb3d751e2eac9fbffb60a63dda5e78e617f4271676c1226e49b9ec7dfd0","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:217:    // Overlay inactivity is enforced by the shell layer via hidden/inert;","tests/hud-controller.test.ts:234:  it('GIVEN running WHEN render called THEN disabled overlay buttons remain present but are inert-ready hit-test surfaces', () => {"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":20,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC6","line":23,"raw_command":"rg -n \"hidden\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:fca45e2e22a2ac7a837fe86fd4c4dda27f51aa440d7a92bc88e9bdb91c56795b","execution_key_hash":"sha256:46e0f24ecdc6337921d5ee6ba290ad16f8b9a03489c3fd2a5d211a55b8021cab","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["tests/hud-controller.test.ts:217:    // Overlay inactivity is enforced by the shell layer via hidden/inert;"],"stdout_truncated":false,"stdout_original_line_count":2,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":22,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC7","line":25,"raw_command":"pnpm build","command_hash":"sha256:702e948d947e109310cb2bf19c157b5bb8142b88c87e02ae87a7594c9b797893","execution_key_hash":"sha256:1f23f582754ac176eef3a4992f4050317f6c11839adb6bfc9ff9ad4b8aa41951","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["✓ Lockfile passes supply-chain policies (verified 15d ago)","Lockfile is up to date, resolution step is skipped","Already up to date","Done in 475ms using pnpm v11.7.0","\u001b[36mvite v8.0.13 \u001b[32mbuilding client environment for production...\u001b[36m\u001b[39m","\u001b[2K","transforming...✓ 41 modules transformed.","rendering chunks...","computing gzip size...","dist/index.html                  0.46 kB │ gzip:  0.30 kB","dist/assets/index-BMsLd5fy.css   3.49 kB │ gzip:  1.47 kB","dist/assets/index-FsMPCAOe.js   61.16 kB │ gzip: 18.85 kB","\u001b[32m✓ built in 61ms\u001b[39m"],"stdout_truncated":false,"stdout_original_line_count":16,"stderr_head":["$ tsc && vite build"],"stderr_truncated":false,"stderr_original_line_count":2,"runner_env_delta":{"CI":"true"},"duration_ms":1691,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"pnpm_gate_evidence_required":true,"pnpm_gate_evidence":{"schema":"pnpm_gate_evidence/v1","gate_id":"pnpm.build.v1","exact_request_argv":["pnpm","build"],"launch_argv":["/home/squne/.local/share/fnm/node-versions/v24.15.0/installation/lib/node_modules/corepack/dist/pnpm.js","run","build"],"runner_env_delta":{"CI":"true"},"manifest_path":"/home/squne/projects/LOOP_PROTOCOL/package.json","manifest_integrity_digest":"sha256:5cd459743411275f0df5594c3f96de7140420a3a4535fb9a46352435215eccda","validator_digest":"sha256:170b449efe5e974158481604bc5f94bd57935e18257143a2d3970b98263cc096"}},{"ac":"AC8","line":27,"raw_command":"rg -n \"back_to_preparation\" src/systems/PhaseTransitionSystem.ts tests/phase-transition-system.test.ts","command_hash":"sha256:fe93e3fdc70be960ead391edb7f2e5b561480a7e0467c63f289504059eda338f","execution_key_hash":"sha256:369de2539dd7eec90603831414f72f3d3b9cc42f5ecdb8cd1e94a44cd133c959","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":5,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC9","line":29,"raw_command":"rg -n \"loadFailure\" tests/hud-controller.test.ts tests/main-loop.test.ts","command_hash":"sha256:d15157d2c246a810a71ebbe92e97e287c9be01da24a835b0258a7226d63c3d83","execution_key_hash":"sha256:446ad4bcbb5c50a539d469630e7db6400148105e0d4c204a07a79a26d30cd2e9","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":5,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null}]
        declared_path_overlap: {"schema":"declared_path_overlap/v1","advisory":true,"blocking":false,"decision":"advisory_only","disjoint":true,"overlapping_prs":[],"inventory":{"schema":"OPEN_PR_INVENTORY_V1","repo":"squne121/loop-protocol","state":"open","base_ref":"main","base_sha":"d1cae8fb1b5245a9d88f6994a109ec0be138fb8f","draft_policy":"include_drafts","prs":[{"number":1528,"title":"feat(cleanup): 同一実行内の branch-only fallback を追加","base_ref_name":"main","head_ref_name":"worktree-issue-1403-post-merge-cleanup-dedicated-branch-forc","head_ref_oid":"b29007580ae225eb9676c7f32c878ee2bb9ccaa9","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1528","changed_files_count_graphql":4},{"number":1815,"title":"実装: title と preparation を phase screen overlay に移す (#1374)","base_ref_name":"main","head_ref_name":"worktree-issue-1374-phase-screen-overlay","head_ref_oid":"47a5e9736e0a5b0a7639b1201717d66eb6e52fda","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1815","changed_files_count_graphql":21},{"number":1817,"title":"test: CLOSED predecessor の候補外 readback を固定 (#1766)","base_ref_name":"main","head_ref_name":"worktree-issue-1766-closed-native-predecessor-regression-v2","head_ref_oid":"5e39ca27825d76873b285de39a195a8d8f2311fd","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1817","changed_files_count_graphql":1},{"number":1818,"title":"実装: existing-branch publish guard の実行ホスト context 注入を復旧する","base_ref_name":"main","head_ref_name":"worktree-issue-1688-existing-branch-publish-context","head_ref_oid":"c0bf2ef26c83f29811f149e8714266c44b1f5837","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1818","changed_files_count_graphql":7},{"number":1819,"title":"実装:#1797_C2a-successor-structural-collisionのhuman-review-route修正","base_ref_name":"main","head_ref_name":"worktree-issue-1797-c2a-successor-collision","head_ref_oid":"e1bb2480b8cc6968496e53660d17b25993864a2d","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1819","changed_files_count_graphql":5}],"fetched_count":5,"totalCount":5,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:db0d7a9545f09cb35d66c35dcad6223d86abcf4de54ca1501009e7187c191ea3","errors":[]},"inventory_digest_extended":"sha256:bcf7842aacaa23ec0060d21de412ed0e4c415fba7c8dd6f115996feb285f6594","errors":[],"note":"changed-file 名の単純な重なりのみを証明する advisory check。3-way merge・hunk 競合・rename/delete 競合は評価しない(実 Git merge 競合の判定は Issue #1792 の PAIRWISE_MERGE_OBSERVATION_V1 producer の責務)。単独では blocking にしない。disjoint は tri-state(true/false/null)— 観測が不完全な場合は null。"}
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":1374,"contract_source_kind":"issue_comment","contract_source_id":"5091379414","contract_body_sha256":"sha256:c179b4156e8f7fe3655246dffe2cdd182c33f7c98de220dde5ebb87185efbaee","allowed_paths_normalized_sha256":"47b486fbd582bf6e1284bd90cd0fcaa77e8b37e71cd7362186144fe0b9866d78","base_ref":"main","base_sha_at_snapshot":"d1cae8fb1b5245a9d88f6994a109ec0be138fb8f"}
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

    agent/implementerenhancementphase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions