Skip to content

実装: M3 loop の sortie→reward→reload 復元を E2E / playtest で検証する #740

Closed
1 of 1 issue completed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "#733"
goal_ref: "M3: Loop MVP Gate — sortie→reward→reload 復元を E2E / 手動 playtest で検証する証跡を追加する"
change_kind: code

Parent Issue

#733

Parent Goal Ref

  • Goal: M3: Loop MVP Gate (v0.3.x) として sortie 結果から報酬を獲得し localStorage へ進行を永続化して reload 後に復元する
  • Desired Destination: sortie→reward→localStorage 保存→reload→復元 の loop を E2E / 手動 playtest で確認する証跡を残す

Current Validated Scope

Remaining Parent Gaps

Outcome

tests/e2e/m3-loop-mvp.spec.ts に sortie→reward→localStorage 保存→page reload→復元を検証する Playwright E2E が追加され、docs/playtest/m3-loop-mvp.md が #740 の実行結果・browser・origin・raw JSON・limitations を記録した Gate 証跡として更新され、pnpm typecheck && pnpm lint && pnpm test && pnpm build と Playwright E2E が通る状態にする。

In Scope

Out of Scope

Runtime Verification Applicability

applicability: immediate
decision: immediate
reason: sortie→reward→reload 復元はブラウザ runtime(localStorage / page reload)に依存するため E2E(Playwright)と人間 playtest による動作証跡が必要。docs/dev/runtime-verification-policy.md の証跡保存・Stop Condition 連動に従う。
applicable_acs: [AC1, AC2, AC3, AC4, AC5, AC6, AC7, AC8, AC9, AC10]
execution_environment: Playwright (HTTP origin http://127.0.0.1:4173, built dist/, npx playwright test)
skip_conditions: []
fallback_policy: human_judgment_required
artifact_requirements:
  - tests/e2e/m3-loop-mvp.spec.ts
  - docs/playtest/m3-loop-mvp.md (status: verified, not draft)

Acceptance Criteria

  • AC1: tests/e2e/m3-loop-mvp.spec.ts が存在し、HTTP origin 上の built dist/ に対して実行される
  • AC2: fresh isolated browser context で production key sentinel を設定し、New Game → Start sortie → terminal result → Confirm result を通した後も loop-protocol.mvp.save が不変で、E2E / preview 専用 key 側だけが更新される(現行 title_menu → preparation → running → result → Confirm result の導線)
  • AC3: Confirm result 後、resources が expected reward 分だけ増え、localStorage["loop-protocol.e2e.<run-id>.mvp.save"] または preview 専用 key に schemaVersion: 1 / resources / weaponPower / playerMaxHp が保存される
  • AC4: Confirm result の double invocation で resources が二重加算されない
  • AC5: reload 後、resources が localStorage から復元され、combat runtime state は復元されない
  • AC6: reload 後、同一 result を再 confirm / re-claim できない(ボタン disabled or 非表示)
  • AC7: Save failure / corrupt JSON / unsupported schema / QuotaExceededError / SecurityError は 実装(M3): LocalGameStorage の例外境界と Result 契約を実装する #621/実装: 報酬確定時に progression snapshot を localStorage へ保存する #739 系の unit/integration test として参照され、docs/playtest/m3-loop-mvp.md に証明先を表で記録する
  • AC8: docs/playtest/m3-loop-mvp.md は status が draft でなく 実装: M3 loop の sortie→reward→reload 復元を E2E / playtest で検証する #740 の実行結果・commit・browser・origin・raw JSON・limitations を記録している
  • AC9: evidence の origin は Playwright config と一致する http://127.0.0.1:4173 を使い、localhost と 127.0.0.1、4173 と 4174 を混在させない
  • AC10: pnpm typecheck && pnpm lint && pnpm test && pnpm build が通る

Verification Commands

# AC1
$ test -f tests/e2e/m3-loop-mvp.spec.ts
# AC2
$ rg --glob "m3-loop-mvp.spec.ts" -n "Confirm result|title_menu|preparation|sentinel" tests/e2e/
# AC3
$ rg --glob "m3-loop-mvp.spec.ts" -n "loop-protocol\.e2e\.|schemaVersion|weaponPower|playerMaxHp" tests/e2e/
# AC4
$ rg --glob "m3-loop-mvp.spec.ts" -n "toBeDisabled|exact.once|double" tests/e2e/
# AC5
$ rg --glob "m3-loop-mvp.spec.ts" -n "reload|restore|復元" tests/e2e/
# AC6
$ rg --glob "m3-loop-mvp.spec.ts" -n "re.claim|toBeDisabled|reload" tests/e2e/
# AC7
$ rg -n "#621|#739" docs/playtest/m3-loop-mvp.md
# AC8
$ rg -n "status: verified" docs/playtest/m3-loop-mvp.md
# AC9
$ rg --glob "m3-loop-mvp.spec.ts" -n "127\.0\.0\.1:4173" tests/e2e/
$ rg -n "127\.0\.0\.1:4173" docs/playtest/m3-loop-mvp.md
# AC10
$ pnpm typecheck
$ pnpm lint
$ pnpm test
$ pnpm build

Allowed Paths

  • tests/e2e/
  • docs/playtest/m3-loop-mvp.md

Stop Conditions

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

Required Skills

  • Playwright E2E
  • TypeScript / TSC strict
  • 手動 playtest 証跡記述

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    on Jun 7, 2026
  2. squne121 commented on Jun 13, 2026

    @squne121
    OwnerAuthor

    結論

    #740 は現状 Close 不可です。
    Issue の方向性は妥当ですが、現在の #740 本文は「短縮 sortie → reward → reload 復元」の大枠に留まっており、#733 parent が要求する M3 Gate 証跡としては不足しています。#733 は #740 に対し、単なる happy path ではなく、reward exact-once、reload 後の再 claim 不能、localStorage schema inspection、storage failure 時の no crash / no false success、HTTP origin 上の built dist/ smoke を要求しています。

    加えて、#740 にはコメントがなく、現時点でレビュー補足や実装方針の議論が残っていません。

    現状整理

    #740 の直接目的は、tests/e2e/ に E2E を追加し、docs/playtest/m3-loop-mvp.md に playtest evidence を残し、pnpm typecheck && pnpm lint && pnpm test && pnpm build を通すことです。

    関連 child の状態を見ると、#735 resource/persistence spec、#736 snapshot schema/migration、#737 RewardSystem、#738 debrief/preparation、#739 reward 後 save wiring、#619/#620/#621、#690 は完了済みです。一方で、#622 はまだ open で、Save/Load 制約を維持した Pause / Checkpoint / Assist Suspend の設計決定が未完了です。

    #860 / PR #865 で docs/playtest/m3-loop-mvp.md は追加済みですが、これは PR #854 の save→reload→restore happy-path 証跡であり、#860 自身が「#740 の Playwright E2E と parent-level runtime sign-off は未充足」と明記しています。

    BLOCKER 1: #740 用の M3 E2E が存在しない

    現行 tests/e2e/ には m2-combat-mvp.spec.ts、hud-hull-overflow.spec.ts、movement-projectile.spec.ts しか見つかりません。m3-loop-mvp.spec.ts 相当は未作成です。

    既存の M2 E2E は combat の統合確認が中心で、helper snapshot も player / projectiles / enemies / sortie までは持ちますが、M3 の resources、localStorage schema、reload 復元、reward 再 claim 不能は検証していません。

    修正要求:
    tests/e2e/m3-loop-mvp.spec.ts を新規作成し、少なくとも次を 1 本の browser runtime E2E で通してください。

    Fresh context
    → localStorage clear
    → New Game
    → Start sortie
    → deterministic terminal result
    → Confirm result
    → resources 増加
    → localStorage raw JSON schema inspection
    → page.reload()
    → resources 復元
    → loopPhase / combat runtime が preparation 初期状態
    → same reward cannot be claimed again

    BLOCKER 2: 現在の playtest evidence は happy path only で Gate 証跡ではない

    docs/playtest/m3-loop-mvp.md は status が draft で、source issue も #860 です。内容も明確に「docs-only happy-path evidence follow-up」であり、#740 を閉じるものではありません。

    さらに limitation として、QuotaExceededError、write failure、older readable snapshot preservation、hasLoadableSnapshot failure boundary、#740 Playwright E2E が未解決と記録されています。

    修正要求:
    #740 では #860 の evidence を「補助証跡」として参照するだけにし、#740 本体の完了条件には Playwright E2E 実行ログ、trace/screenshot on failure、raw localStorage assertion、reload 後 DOM/state assertionを追加してください。

    BLOCKER 3: 証跡の origin / port が不整合

    docs/playtest/m3-loop-mvp.md は command として --port 4173 を記録していますが、origin は http://localhost:4174/?playtest_evidence=1 になっています。

    一方、実際の Playwright config は baseURL と webServer URL を http://127.0.0.1:4173 に固定し、vite preview --host 127.0.0.1 --port 4173 --strictPort を使っています。

    Vite 公式も、vite preview は dist をローカル静的サーバで確認する用途で、既定では localhost:4173 を使い、production server ではないと説明しています。([vitejs]1)

    修正要求:
    #740 の evidence では origin を http://127.0.0.1:4173 に統一し、localhost と 127.0.0.1、4173 と 4174 を混在させないでください。localStorage は origin 単位なので、このズレは検証結果そのものを汚します。

    BLOCKER 4: #740 本文が現行 phase contract に追随していない

    #619 / PR #868 により、現在の phase contract は title_menu / load_menu / preparation / running / result へ変更されています。Load は title_menu / load_menu からのみ行い、旧 Quick Load は廃止方向です。

    さらに #771 / PR #877 で、result phase では Claim reward ではなく Confirm result に一本化され、onConfirmResult() が reward claim と save を担当する方向へ修正されています。

    現行 main.ts でも onConfirmResult() は result phase のみで実行され、confirmResult(state) 後に persistProgressionSnapshot('reward-claim') を呼んでいます。

    修正要求:
    #740 の E2E と playtest doc は、旧 debrief_pending_reward / Claim reward / Next sortie 前提ではなく、現行の Title Menu → New Game → Preparation → Start sortie → Result → Confirm result → Preparation を正本にしてください。

    BLOCKER 5: reward exact-once の E2E が未証明

    #737 は RewardSystem.calculate() と RewardSystem.claim(state, applicationId, result) を分離し、same-token double claim 防止を unit test で担保する issue として完了しています。

    PR #769 でも applicationId 単位の runtime-only ledger と same-token double-claim 防止は実装済みとされています。

    ただし、#737 は reload 後の再 claim 不能を #740 に deferred しています。

    修正要求:
    #740 E2E では、Confirm result を二重実行しても resources が二重加算されないこと、reload 後に同じ result を再度 confirm/claim できないことを DOM と localStorage の両方で検証してください。

    最低限:

    const before = await readResourcesFromDomOrStorage(page)
    await page.getByRole('button', { name: 'Confirm result' }).click()
    await page.getByRole('button', { name: 'Confirm result' }).click({ force: true }).catch(() => undefined)
    const after = await readResourcesFromDomOrStorage(page)
    
    expect(after).toBe(before + expectedReward)

    Playwright は locator action 前に visible / stable / enabled などの actionability checks を行い、assertion も auto-retry できるため、UI の enabled/disabled 検証は toBeEnabled() / toBeDisabled() を使うべきです。([Playwright]2) ([Playwright]2)

    BLOCKER 6: storage failure path が Gate として弱い

    #621 は LoadResult / SaveResult、localStorage accessor / probe / read/write / parse failure boundary、main.ts の caller result consumption を実装済みです。

    PR #765 でも LoadResult / SaveResult と failure path regression は入っています。

    しかし #740 の現証跡は、write failure / QuotaExceededError を証明していません。Storage.setItem() は quota 超過やユーザー拒否で QuotaExceededError を投げ得ますし、localStorage accessor 自体も SecurityError を投げ得ます。([MDNウェブドキュメント]3) ([MDNウェブドキュメント]4)

    修正要求:
    #740 の browser E2E に全部を押し込む必要はありませんが、Gate 証跡としては以下の対応が必要です。

    - browser runtime E2E: happy path + exact-once + reload restore
    - unit/integration: QuotaExceededError / SecurityError / corrupt JSON / unsupported schema
    - playtest doc: failure path はどの test file / issue / PR で証明済みか明記

    「#621 が閉じているから OK」ではなく、#740 doc に どの failure path がどのテストで担保されたかを表で記録してください。

    BLOCKER 7: localStorage を “永続保存” と強く言いすぎるリスク

    MDN によれば localStorage は origin に紐づき browser session をまたいで保存されますが、private browsing では最後の private tab を閉じると消えます。また file: URL での挙動は未定義で、ブラウザにより変わり得ます。([MDNウェブドキュメント]4)

    さらにブラウザ保存データは既定では best-effort であり、quota・空き容量・ユーザー削除・storage pressure により消える可能性があります。([MDNウェブドキュメント]5) ([MDNウェブドキュメント]5)

    修正要求:
    #740 の playtest doc には、以下の文言を必ず残してください。

    Persistence is browser-local MVP storage.
    It is origin-scoped, best-effort, user-clearable, and not cloud-synced.
    No public release artifact is produced; this is build verification only.

    HIGH: E2E fixture が M3 に足りない

    現行 main.ts の __LOOP_E2E__ snapshot は loopPhase、player、projectiles、enemies、sortie などを返しますが、progress.resources は返していません。

    HUD には Resources 表示があり、localStorage も Playwright の page.evaluate() で読めるため、E2E 自体は可能です。Playwright の page.evaluate() はブラウザ page context で window / document を使って結果を test 側へ戻せます。([Playwright]6)

    推奨:
    #740 では E2E hook に resources を追加するより、まず DOM と localStorage を正本にしてください。理由は、M3 のユーザー価値が「画面上の resources 表示」と「reload 後の保存復元」だからです。

    const save = await page.evaluate(() => {
      const raw = localStorage.getItem('loop-protocol.mvp.save')
      if (raw == null) return null
      return JSON.parse(raw)
    })
    
    expect(save).toStrictEqual({
      schemaVersion: 1,
      resources: 10,
      weaponPower: 1,
      playerMaxHp: 8,
    })

    HIGH: #622 open のため parent #733 close には進めない

    #622 は Save/Load 制約を維持しつつ、Pause / Checkpoint / Assist Suspend の方針を決定する research/design issue で、まだ open です。

    WCAG 2.2 の Enough Time は、時間制限に対して turn off / adjust / extend などの手段を求めます。Pause, Stop, Hide も、動く・自動更新する情報に対してユーザーが制御できる機構を求めます。([W3C]7) ([W3C]8)

    判断:
    #740 自体は E2E 実装として進めてよいですが、#740 close と #733 close を混同しないでください。#733 gate には #622 の完了または明示的な defer 判定が必要です。

    #740 の修正版 Acceptance Criteria 案

    既存 AC を置き換えるなら、以下が妥当です。

    ## Acceptance Criteria
    
    - [ ] AC1: `tests/e2e/m3-loop-mvp.spec.ts` が存在し、HTTP origin 上の built `dist/` に対して実行される。
    - [ ] AC2: fresh browser context で `loop-protocol.mvp.save` を clear し、New Game → Start sortie → terminal result → Confirm result を通せる。
    - [ ] AC3: Confirm result 後、`resources` が expected reward 分だけ増え、`localStorage["loop-protocol.mvp.save"]` に `schemaVersion: 1 / resources / weaponPower / playerMaxHp` のみが保存される。
    - [ ] AC4: Confirm result の double click / repeated invocation で resources が二重加算されない。
    - [ ] AC5: reload 後、resources が localStorage から復元され、combat runtime state は復元されない。
    - [ ] AC6: reload 後、同一 result を再 confirm / re-claim できない。
    - [ ] AC7: Save failure / corrupt JSON / unsupported schema / QuotaExceededError / SecurityError は #621/#739 系の unit/integration test として参照され、#740 doc に証明先を表で記録する。
    - [ ] AC8: `docs/playtest/m3-loop-mvp.md` は status を `draft` のままにせず、#740 の実行結果・commit・browser・origin・command・raw JSON・limitations を記録する。
    - [ ] AC9: evidence の origin は Playwright config と一致する `http://127.0.0.1:4173` を使い、`file://` を使わない。
    - [ ] AC10: `pnpm typecheck && pnpm lint && pnpm test && pnpm build && pnpm test:e2e` が通る。

    package.json には test:e2e が VITE_E2E_MODE=true pnpm build && playwright test と定義されているため、#740 の品質ゲートに pnpm test:e2e を追加するのが自然です。

    推奨 E2E 骨子

    import { test, expect, type Page } from '@playwright/test'
    
    const SAVE_KEY = 'loop-protocol.mvp.save'
    
    async function clearSave(page: Page): Promise<void> {
      await page.addInitScript((key) => {
        localStorage.removeItem(key)
      }, SAVE_KEY)
    }
    
    async function readSave(page: Page) {
      return page.evaluate((key) => {
        const raw = localStorage.getItem(key)
        return raw == null ? null : JSON.parse(raw)
      }, SAVE_KEY)
    }
    
    test('M3 loop: result confirm saves resources and reload restores progression only', async ({ page }) => {
      await clearSave(page)
    
      await page.addInitScript(() => {
        ;(window as Window & { __E2E_PLAYER_HP_OVERRIDE__?: number }).__E2E_PLAYER_HP_OVERRIDE__ = 1
      })
    
      await page.goto('/')
    
      // 現行 VITE_E2E_MODE は auto-start するため、UI 経由 New Game/Start を使うか、
      // auto-start 前提にするかを #740 で明記する。
      await expect(page.locator('[data-field="loop-phase"]')).toContainText(/running|Result|Preparation/i)
    
      await expect
        .poll(async () => page.locator('[data-field="sortie-result"]').textContent())
        .toMatch(/Defeat|戦闘終了|Victory/)
    
      const resourcesBefore = Number(await page.locator('[data-field="resources"]').textContent())
    
      await page.getByRole('button', { name: 'Confirm result' }).click()
    
      await expect(page.locator('[data-field="status"]')).toHaveText('Result confirmed.')
      await expect(page.locator('[data-field="command"]')).toHaveText('Progress saved locally.')
    
      const save = await readSave(page)
      expect(save).toStrictEqual({
        schemaVersion: 1,
        resources: resourcesBefore + 10,
        weaponPower: 1,
        playerMaxHp: 1,
      })
    
      await page.reload()
    
      await expect(page.locator('[data-field="resources"]')).toHaveText(String(save.resources))
      await expect(page.locator('[data-field="loop-phase"]')).toHaveText(/Title Menu|Preparation/)
      await expect(page.getByRole('button', { name: 'Confirm result' })).toBeDisabled()
    })

    上記はそのまま投入ではなく、現行仕様に合わせて調整が必要です。特に VITE_E2E_MODE の maybeAutoStartRuntime() は title_menu を bypass して running に進めるため、#740 では「UI 実導線を検証する E2E」と「combat terminal を短縮する E2E」を分けた方がよいです。

    最終判定

    #740 は「これから M3 Gate 証跡を作るための Issue」としては妥当です。実装完了判定としては不十分です。

    現時点で close してはいけない理由は次です。

    1. tests/e2e/m3-loop-mvp.spec.ts が存在しない。
    2. docs/playtest/m3-loop-mvp.md は happy-path only で、実装: M3 loop の sortie→reward→reload 復元を E2E / playtest で検証する #740 未充足と明記している。
    3. 証跡の preview port / origin が不整合。
    4. feat(#483): Quick Save を準備フェーズ限定に制限し Quick Load を実装する #619/整合: HUD action surface を TitleMenu / LoadMenu / Result phase 契約へ正規化する #771 後の current phase contract に 実装: M3 loop の sortie→reward→reload 復元を E2E / playtest で検証する #740 evidence が追随していない。
    5. reward exact-once と reload 後再 claim 不能が browser runtime で未証明。
    6. storage failure は 実装(M3): LocalGameStorage の例外境界と Result 契約を実装する #621/実装: 報酬確定時に progression snapshot を localStorage へ保存する #739 の実装・unit 参照があるが、実装: M3 loop の sortie→reward→reload 復元を E2E / playtest で検証する #740 doc に Gate 証明として統合されていない。
    7. research/design(#733): Save/Load 制約を維持したアクセシビリティ互換の Pause・Checkpoint・Assist Suspend 方針を決定する #622 が open のため、導入: M3 Loop MVP Gate を報酬→resource→localStorage 永続化まで接続する #733 parent close の前提はまだ揃っていない。

    次にやるべきことは、#740 本文を現行 phase contract に合わせて改稿し、tests/e2e/m3-loop-mvp.spec.ts と docs/playtest/m3-loop-mvp.md の更新を 1 PR にまとめることです。

  3. squne121 commented on Jun 13, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Human Escalation Required

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

    Blockers

    "VC の rg パターンが \\| (POSIX grep) を使用している。rg では | を使う必要がある(VCP_REGEX_LITERAL_PIPE_S x4)"
    
    "tests/e2e/m3-loop-mvp.spec.ts が未存在のため rg VC が exit 2 = VCP_UNKNOWN になる。test -f ... && rg ... 形式に変更する必要がある(x5)"
    
    "上記 2 点は max_iterations=3 内で修正可能だが、iteration 上限に達したため人間判断を要請する"
    
  4. squne121 commented on Jun 13, 2026

    @squne121
    OwnerAuthor

    refinement-loop 残存ブロッカー解消完了

    前回ループ(max_iterations=3)で human_escalation した残存ブロッカー 2 件を解消しました。

    修正した VC の要約

    変更前 変更後 理由
    rg -n "pattern|alt" tests/e2e/m3-loop-mvp.spec.ts rg --glob "m3-loop-mvp.spec.ts" -n "pattern|alt" tests/e2e/ VCP_UNKNOWN 回避: 存在しないファイルを直指定すると exit 2。--glob + ディレクトリ指定で未存在時 exit 1(baseline fail)に
    rg -n "QuotaExceededError|#621|#739|failure.path" docs/playtest/m3-loop-mvp.md rg -n "#621|#739" docs/playtest/m3-loop-mvp.md VCP_UNEXPECTED_PASS 回避: 既存ファイルに QuotaExceededError が「未証明」として記録済みでヒットしていた。#621/#739 参照は現在未存在(exit 1 = baseline fail)
    複数の | エスケープ(POSIX grep 構文) | を除去し rg 正規表現の | を | のまま維持 VCS001: compound operator && を除去し単一コマンド形式に統一

    実行した検証

    uv run python3 .claude/skills/issue-contract-review/scripts/contract_readiness_check.py \
      --mode preflight-static --body-file /tmp/issue_740_current.md
    # → status: go, errors: []

    readiness check 結果

    { "status": "go", "errors": [] }

    issue-reviewer 最終 verdict

    STATUS: ok
    VERDICT: approve
    BLOCKERS: 0
    

    全 C1–C11 チェックが pass しました。非 blocking の scope CVS/In-Scope token mismatch 警告(Jaccard 0.214)は残りますが、実装ブロックにはなりません。


    本 Issue は implementation issue のため、実装完了・PR マージ後に close してください(本コメントで close しません)。

  5. squne121 commented on Jun 14, 2026

    @squne121
    OwnerAuthor

    判定

    #740 は Close 不可です。
    理由は単なる E2E 未追加ではありません。現行 #740 の「reload 後に resources が復元される」という受け入れ条件が、現行実装の 起動時は自動ロードしない / Load Game でのみ復元する という契約と衝突しています。main.ts は startup で storage.load() を probe するだけで state に適用せず、初期 state を title_menu に固定しています。復元は Load Game 導線で createInitialGameState(snapshot) する設計です。

    BLOCKER 1: 「reload 後に復元」の定義が現行 phase contract と矛盾

    #868 で phase contract は title_menu / load_menu / preparation / running / result に拡張され、Load policy は title_menu / load_menu のみ、Save policy は preparation のみになっています。
    その後 #877 で Load Game の seam も明示され、title_menu では load せず load_menu へ遷移し、load_menu で初めて storage.load() を呼ぶ設計になっています。

    したがって #740 の AC5 は次のどちらかに修正しないと破綻します。

    reload 後、保存済み snapshot が Load Game 可能であることを確認する。
    その後、Load Game を実行すると resources が復元され、combat runtime state は復元されない。
    

    または、自動ロードを仕様にするなら src/main.ts の実装変更が必要です。ただし #740 の Allowed Paths は tests/e2e/ と docs/playtest/m3-loop-mvp.md のみなので、自動ロード実装は Stop Condition です。

    BLOCKER 2: E2E mode が New Game / Load Game 検証を邪魔する

    playwright.config.ts は VITE_E2E_MODE=true で Vite preview を起動します。
    しかし main.ts の maybeAutoStartRuntime() は E2E mode で title_menu → preparation → running を自動実行します。

    これは #740 の想定する「Fresh context → New Game → Start sortie → result → Confirm result」と衝突します。既存 M2 E2E も「app load 後に sortie.status が running になる」ことを前提にしています。

    このまま #740 E2E を書くと、次のどちらかになります。

    1. 現行 E2E bootstrap に合わせる
      New Game / Start sortie の UI 導線検証を諦め、auto-start 後の result → Confirm result → save → reload/load を検証する。

    2. E2E bootstrap を切り替え可能にする
      __E2E_AUTO_START__ のような opt-in flag を追加し、実装: M3 loop の sortie→reward→reload 復元を E2E / playtest で検証する #740 では auto-start 無効で New Game / Load Game を検証する。
      ただしこれは src/main.ts 変更なので 実装: M3 loop の sortie→reward→reload 復元を E2E / playtest で検証する #740 の Allowed Paths 外です。

    敵対的には、#740 は現状の Allowed Paths だけでは AC を正確に満たせない可能性が高いです。

    BLOCKER 3: docs/playtest/m3-loop-mvp.md は #740 証跡ではない

    現在の docs/playtest/m3-loop-mvp.md は frontmatter が status: draft、issue: "#860"、source_pr: "#854" で、本文も「PR #854 の docs-only happy-path evidence follow-up」と明記しています。さらに「#740 を単独では閉じない」と書いてあります。

    PR #865 の patch でも、この文書は新規追加時点から status: draft、issue: "#860"、source_pr: "#854"、classification: happy-path only でした。

    加えて origin が不整合です。文書では command が --host 127.0.0.1 --port 4173 なのに、origin は http://localhost:4174/?playtest_evidence=1 です。
    一方 Playwright config は http://127.0.0.1:4173 固定です。

    #740 ではこの文書を上書きまたは増補して、少なくとも以下を入れるべきです。

    status: verified
    issue: "#740"
    origin: "http://127.0.0.1:4173"
    command: "pnpm test:e2e"
    browser: "chromium / actual version"
    commit: "<tested commit>"
    raw_localStorage_json: '{"schemaVersion":1,"resources":10,"weaponPower":1,"playerMaxHp":8}'
    limitations:
      - browser-local MVP storage
      - origin-scoped
      - best-effort
      - user-clearable
      - not cloud-synced
      - no public release artifact
    

    BLOCKER 4: production key sentinel と E2E key 分離を必ず E2E 化する

    現行 storage は production key loop-protocol.mvp.save、preview key、E2E runtime key を分離しています。runtime override は loop-protocol.e2e.<run-id>.mvp.save 形式だけ許可されます。
    tests/storage.test.ts でも production key を runtime override に使うと reject すること、E2E key だけ通ることが固定されています。

    #740 の E2E は loop-protocol.mvp.save を clear してはいけません。localStorage は origin 単位であり path 単位では分離されないため、GitHub Pages の production と PR preview が同一 origin 上で key を共有し得る、という設計上の注意も既存 spec にあります。
    MDN でも Web Storage は origin 単位で管理され、容量超過時は QuotaExceededError が発生し得るため、書き込みは try/catch 前提です。(MDNウェブドキュメント)

    E2E は page.addInitScript() で app script 実行前に以下をセットするのが妥当です。Playwright の page.evaluate() / init script は browser context の window / document を扱えます。(Playwright)

    await page.addInitScript(({ e2eKey, prodKey, prodSentinel }) => {
      window.__LOOP_STORAGE_KEY__ = e2eKey
      localStorage.setItem(prodKey, prodSentinel)
      localStorage.removeItem(e2eKey)
    }, {
      e2eKey: `loop-protocol.e2e.${crypto.randomUUID()}.mvp.save`,
      prodKey: 'loop-protocol.mvp.save',
      prodSentinel: '{"schemaVersion":1,"resources":999,"weaponPower":9,"playerMaxHp":99}',
    })
    

    そして Confirm result 後に E2E key だけ更新され、production key sentinel は不変であることを raw JSON で確認してください。

    BLOCKER 5: exact-once は unit test だけでなく browser E2E で証明する

    unit 側ではかなり整っています。progressionSnapshot.test.ts は Confirm result 相当 handler が storage.save() を exactly once 呼ぶこと、snapshot が 4 key のみであること、double confirm で resources が増えないこと、save failure 時に false success を出さないことを固定しています。

    ただし #740 は runtime gate なので、browser E2E でも最低限これを確認すべきです。

    await expect(confirmButton).toBeEnabled()
    await confirmButton.click()
    

    const saveAfterFirst = await readE2ESave(page, e2eKey)
    await expect(confirmButton).toBeDisabled()

    await confirmButton.click({ force: true }).catch(() => undefined)

    const saveAfterSecond = await readE2ESave(page, e2eKey)
    expect(saveAfterSecond).toStrictEqual(saveAfterFirst)

    Playwright は click 前に visible / stable / enabled などの actionability check を行い、toBeDisabled() / toBeEnabled() などの assertion は auto-retry されます。force: true は hostile double-invocation の補助に限定すべきです。(Playwright)

    HIGH: failure path 証跡は「参照表」に落とす

    #740 の out of scope として、QuotaExceededError / SecurityError の browser E2E までは不要です。この判断は妥当です。ただし playtest doc には、どの failure path がどのテストで担保済みかを表で入れる必要があります。

    既存の根拠はあります。

    failure path 既存の証明先
    SecurityError on localStorage accessor tests/storage.test.ts が accessor throw を storage-unavailable として扱う。
    QuotaExceededError on setItem tests/storage.test.ts が write-error / QuotaExceededError を確認。
    corrupt JSON tests/storage.test.ts が corrupt-json / SyntaxError を確認。
    unsupported schema tests/storage.test.ts が unsupported-schema を確認。
    save failure で false success を出さない tests/main-loop.test.ts / tests/progressionSnapshot.test.ts が確認。
    runtime field 非保存 createGameSnapshot と storage test が loopPhase / rewardClaims / enemies / projectiles 非保存を確認。

    HIGH: 配布物の扱いを正確に書く

    #740 の runtime は Vite preview 上の built dist/ smoke です。package.json の test:e2e は VITE_E2E_MODE=true pnpm build && playwright test で、Playwright config は Vite preview を 127.0.0.1:4173 に立てます。

    Vite 公式は vite preview を local preview 用で production server ではないと説明しています。dist は build output をローカルで確認する対象です。(vitejs)

    したがって playtest doc には次を明記してください。

    No public release artifact is produced by #740.
    This is built-dist runtime verification only.
    Vite preview is used as a local static preview server, not as the production hosting environment.
    

    修正版 #740 方針

    #740 は次のようにスコープを切るのが安全です。

    # 正本フロー
    Fresh context
    → E2E storage key を inject
    → production key sentinel を inject
    → app load
    

    現行 E2E auto-start を使う場合

    → auto-started sortie reaches result
    → Confirm result
    → E2E key raw JSON schema inspection
    → production key sentinel unchanged
    → Confirm result 再実行不能 / double invocation no-op
    → page.reload()

    reload 後

    → 自動復元ではなく Load Game 導線を検証する
    → title_menu/load_menu から snapshot を明示ロード
    → resources restored
    → loopPhase = preparation
    → sortie.status = idle
    → enemies/projectiles not persisted
    → Claim reward / Confirm result / Next sortie disabled

    ただし、New Game / Start sortie / Load Game を UI として厳密に検証するなら、現行 VITE_E2E_MODE=true の auto-start を止める必要があります。その場合は #740 ではなく、先に小さな前提 Issue を切るべきです。

    結論

    #740 の方向性は妥当です。だが現状のまま実装させると、AI agent は高確率で「reload したら resources が復元された」と誤った証跡を作るか、E2E mode の auto-start に合わせて AC をすり替えます。

    最優先の修正はこの 3 点です。

    1. AC5 を「reload 自動復元」から「reload 後 Load Game で復元」へ明確化する。

    2. E2E auto-start を使うのか、無効化する前提 Issue を切るのかを決める。

    3. docs/playtest/m3-loop-mvp.md を 実装: PR#854 save→reload 証跡を playtest docs に追加 #860 draft evidence から 実装: M3 loop の sortie→reward→reload 復元を E2E / playtest で検証する #740 verified evidence に更新し、origin を http://127.0.0.1:4173 に統一する。

    ## 判定

    #740 は Close 不可です。
    理由は単なる E2E 未追加ではありません。現行 #740 の「reload 後に resources が復元される」という受け入れ条件が、現行実装の 起動時は自動ロードしない / Load Game でのみ復元する という契約と衝突しています。main.ts は startup で storage.load() を probe するだけで state に適用せず、初期 state を title_menu に固定しています。復元は Load Game 導線で createInitialGameState(snapshot) する設計です。

    BLOCKER 1: 「reload 後に復元」の定義が現行 phase contract と矛盾

    #868 で phase contract は title_menu / load_menu / preparation / running / result に拡張され、Load policy は title_menu / load_menu のみ、Save policy は preparation のみになっています。
    その後 #877 で Load Game の seam も明示され、title_menu では load せず load_menu へ遷移し、load_menu で初めて storage.load() を呼ぶ設計になっています。

    したがって #740 の AC5 は次のどちらかに修正しないと破綻します。

    reload 後、保存済み snapshot が Load Game 可能であることを確認する。
    その後、Load Game を実行すると resources が復元され、combat runtime state は復元されない。

    または、自動ロードを仕様にするなら src/main.ts の実装変更が必要です。ただし #740 の Allowed Paths は tests/e2e/ と docs/playtest/m3-loop-mvp.md のみなので、自動ロード実装は Stop Condition です。

    BLOCKER 2: E2E mode が New Game / Load Game 検証を邪魔する

    playwright.config.ts は VITE_E2E_MODE=true で Vite preview を起動します。
    しかし main.ts の maybeAutoStartRuntime() は E2E mode で title_menu → preparation → running を自動実行します。

    これは #740 の想定する「Fresh context → New Game → Start sortie → result → Confirm result」と衝突します。既存 M2 E2E も「app load 後に sortie.status が running になる」ことを前提にしています。

    このまま #740 E2E を書くと、次のどちらかになります。

    1. 現行 E2E bootstrap に合わせる
      New Game / Start sortie の UI 導線検証を諦め、auto-start 後の result → Confirm result → save → reload/load を検証する。

    2. E2E bootstrap を切り替え可能にする
      __E2E_AUTO_START__ のような opt-in flag を追加し、実装: M3 loop の sortie→reward→reload 復元を E2E / playtest で検証する #740 では auto-start 無効で New Game / Load Game を検証する。
      ただしこれは src/main.ts 変更なので 実装: M3 loop の sortie→reward→reload 復元を E2E / playtest で検証する #740 の Allowed Paths 外です。

    敵対的には、#740 は現状の Allowed Paths だけでは AC を正確に満たせない可能性が高いです。

    BLOCKER 3: docs/playtest/m3-loop-mvp.md は #740 証跡ではない

    現在の docs/playtest/m3-loop-mvp.md は frontmatter が status: draft、issue: "#860"、source_pr: "#854" で、本文も「PR #854 の docs-only happy-path evidence follow-up」と明記しています。さらに「#740 を単独では閉じない」と書いてあります。

    PR #865 の patch でも、この文書は新規追加時点から status: draft、issue: "#860"、source_pr: "#854"、classification: happy-path only でした。

    加えて origin が不整合です。文書では command が --host 127.0.0.1 --port 4173 なのに、origin は http://localhost:4174/?playtest_evidence=1 です。
    一方 Playwright config は http://127.0.0.1:4173 固定です。

    #740 ではこの文書を上書きまたは増補して、少なくとも以下を入れるべきです。

    status: verified
    issue: "#740"
    origin: "http://127.0.0.1:4173"
    command: "pnpm test:e2e"
    browser: "chromium / actual version"
    commit: "<tested commit>"
    raw_localStorage_json: '{"schemaVersion":1,"resources":10,"weaponPower":1,"playerMaxHp":8}'
    limitations:
      - browser-local MVP storage
      - origin-scoped
      - best-effort
      - user-clearable
      - not cloud-synced
      - no public release artifact

    BLOCKER 4: production key sentinel と E2E key 分離を必ず E2E 化する

    現行 storage は production key loop-protocol.mvp.save、preview key、E2E runtime key を分離しています。runtime override は loop-protocol.e2e.<run-id>.mvp.save 形式だけ許可されます。
    tests/storage.test.ts でも production key を runtime override に使うと reject すること、E2E key だけ通ることが固定されています。

    #740 の E2E は loop-protocol.mvp.save を clear してはいけません。localStorage は origin 単位であり path 単位では分離されないため、GitHub Pages の production と PR preview が同一 origin 上で key を共有し得る、という設計上の注意も既存 spec にあります。
    MDN でも Web Storage は origin 単位で管理され、容量超過時は QuotaExceededError が発生し得るため、書き込みは try/catch 前提です。([MDNウェブドキュメント]1)

    E2E は page.addInitScript() で app script 実行前に以下をセットするのが妥当です。Playwright の page.evaluate() / init script は browser context の window / document を扱えます。([Playwright]2)

    await page.addInitScript(({ e2eKey, prodKey, prodSentinel }) => {
      window.__LOOP_STORAGE_KEY__ = e2eKey
      localStorage.setItem(prodKey, prodSentinel)
      localStorage.removeItem(e2eKey)
    }, {
      e2eKey: `loop-protocol.e2e.${crypto.randomUUID()}.mvp.save`,
      prodKey: 'loop-protocol.mvp.save',
      prodSentinel: '{"schemaVersion":1,"resources":999,"weaponPower":9,"playerMaxHp":99}',
    })

    そして Confirm result 後に E2E key だけ更新され、production key sentinel は不変であることを raw JSON で確認してください。

    BLOCKER 5: exact-once は unit test だけでなく browser E2E で証明する

    unit 側ではかなり整っています。progressionSnapshot.test.ts は Confirm result 相当 handler が storage.save() を exactly once 呼ぶこと、snapshot が 4 key のみであること、double confirm で resources が増えないこと、save failure 時に false success を出さないことを固定しています。

    ただし #740 は runtime gate なので、browser E2E でも最低限これを確認すべきです。

    await expect(confirmButton).toBeEnabled()
    await confirmButton.click()
    
    const saveAfterFirst = await readE2ESave(page, e2eKey)
    await expect(confirmButton).toBeDisabled()
    
    await confirmButton.click({ force: true }).catch(() => undefined)
    
    const saveAfterSecond = await readE2ESave(page, e2eKey)
    expect(saveAfterSecond).toStrictEqual(saveAfterFirst)

    Playwright は click 前に visible / stable / enabled などの actionability check を行い、toBeDisabled() / toBeEnabled() などの assertion は auto-retry されます。force: true は hostile double-invocation の補助に限定すべきです。([Playwright]3)

    HIGH: failure path 証跡は「参照表」に落とす

    #740 の out of scope として、QuotaExceededError / SecurityError の browser E2E までは不要です。この判断は妥当です。ただし playtest doc には、どの failure path がどのテストで担保済みかを表で入れる必要があります。

    既存の根拠はあります。

    failure path 既存の証明先
    SecurityError on localStorage accessor tests/storage.test.ts が accessor throw を storage-unavailable として扱う。
    QuotaExceededError on setItem tests/storage.test.ts が write-error / QuotaExceededError を確認。
    corrupt JSON tests/storage.test.ts が corrupt-json / SyntaxError を確認。
    unsupported schema tests/storage.test.ts が unsupported-schema を確認。
    save failure で false success を出さない tests/main-loop.test.ts / tests/progressionSnapshot.test.ts が確認。
    runtime field 非保存 createGameSnapshot と storage test が loopPhase / rewardClaims / enemies / projectiles 非保存を確認。

    HIGH: 配布物の扱いを正確に書く

    #740 の runtime は Vite preview 上の built dist/ smoke です。package.json の test:e2e は VITE_E2E_MODE=true pnpm build && playwright test で、Playwright config は Vite preview を 127.0.0.1:4173 に立てます。

    Vite 公式は vite preview を local preview 用で production server ではないと説明しています。dist は build output をローカルで確認する対象です。([vitejs]4)

    したがって playtest doc には次を明記してください。

    No public release artifact is produced by #740.
    This is built-dist runtime verification only.
    Vite preview is used as a local static preview server, not as the production hosting environment.

    修正版 #740 方針

    #740 は次のようにスコープを切るのが安全です。

    # 正本フロー
    Fresh context
    → E2E storage key を inject
    → production key sentinel を inject
    → app load
    
    # 現行 E2E auto-start を使う場合
    → auto-started sortie reaches result
    → Confirm result
    → E2E key raw JSON schema inspection
    → production key sentinel unchanged
    → Confirm result 再実行不能 / double invocation no-op
    → page.reload()
    
    # reload 後
    → 自動復元ではなく Load Game 導線を検証する
    → title_menu/load_menu から snapshot を明示ロード
    → resources restored
    → loopPhase = preparation
    → sortie.status = idle
    → enemies/projectiles not persisted
    → Claim reward / Confirm result / Next sortie disabled

    ただし、New Game / Start sortie / Load Game を UI として厳密に検証するなら、現行 VITE_E2E_MODE=true の auto-start を止める必要があります。その場合は #740 ではなく、先に小さな前提 Issue を切るべきです。

    結論

    #740 の方向性は妥当です。だが現状のまま実装させると、AI agent は高確率で「reload したら resources が復元された」と誤った証跡を作るか、E2E mode の auto-start に合わせて AC をすり替えます。

    最優先の修正はこの 3 点です。

    1. AC5 を「reload 自動復元」から「reload 後 Load Game で復元」へ明確化する。
    2. E2E auto-start を使うのか、無効化する前提 Issue を切るのかを決める。
    3. docs/playtest/m3-loop-mvp.md を 実装: PR#854 save→reload 証跡を playtest docs に追加 #860 draft evidence から 実装: M3 loop の sortie→reward→reload 復元を E2E / playtest で検証する #740 verified evidence に更新し、origin を http://127.0.0.1:4173 に統一する。
  6. squne121 commented on Jun 14, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Approved

    The issue has been approved and is ready for implementation.

  7. squne121 commented on Jun 14, 2026

    @squne121
    OwnerAuthor

    CONTRACT_REVIEW_RESULT_V1

    schema: CONTRACT_REVIEW_RESULT_V1
    issue_number: 740
    repo: squne121/loop-protocol
    status: go
    generated_at: "2026-06-14T13:11:00Z"
    body_sha256: "sha256:00a0549f78bb6cc1d9c410bf71581afaf5d1b1b4610cb1d56fc82de7439fa031"

    Outcome

    tests/e2e/m3-loop-mvp.spec.ts に sortie→reward→localStorage 保存→page reload→復元を検証する Playwright E2E が追加され、docs/playtest/m3-loop-mvp.md が #740 の実行結果・browser・origin・raw JSON・limitations を記録した Gate 証跡として更新され、pnpm typecheck && pnpm lint && pnpm test && pnpm build と Playwright E2E が通る状態にする。

    Worktree / Branch

    • worktree: .claude/worktrees/issue-740-m3-loop-e2e
    • branch: worktree-issue-740-m3-loop-e2e
    • collision: なし

    Checks

    check result
    template_compliance pass
    state_label pass(state/needs-human なし)
    allowed_paths_present pass(tests/e2e/, docs/playtest/m3-loop-mvp.md)
    vc_present pass(AC1–AC10 対応)
    stop_conditions_complete pass
    ac_verifiability pass(全 AC チェックボックス形式・番号一致)
    blockers pass(依存 Issue 全 closed)
    product_spec_check applicability: not_applicable / decision: pass
    worktree_branch_collision pass(競合なし)
    vc_preflight pass(summary 下記)

    VC Preflight Summary

    schema: baseline_vc_preflight/v1
    status: pass
    summary:
      expected_fail: 10   # AC1–AC9(ファイル未存在 = baseline fail expected)
      expected_pass: 4    # AC10(typecheck/lint/test/build 全 pass)
      unexpected_pass: 0
      blocked: 0
      human_judgment: 0
      extraction_errors: 0
    regression_gate_results:
      pnpm_typecheck: exit_code=0
      pnpm_lint: exit_code=0
      pnpm_test: "27 files / 640 tests passed"
      pnpm_build: "✓ built in 60ms"

    Runtime Verification

    applicability: immediate
    applicable_acs: [AC1, AC2, AC3, AC4, AC5, AC6, AC7, AC8, AC9, AC10]
    execution_environment: "Playwright (http://127.0.0.1:4173, built dist/, npx playwright test)"
    fallback_policy: human_judgment_required
    artifact_requirements:
      - tests/e2e/m3-loop-mvp.spec.ts
      - docs/playtest/m3-loop-mvp.md (status: verified)

    next_action

    implement-issue へ handoff 可能。

  8. squne121 commented on Jun 14, 2026

    @squne121
    OwnerAuthor

    実装完了 — PR #915

    Playwright E2E gate の実装が完了した。

    作成 PR

    https://github.com/squne121/loop-protocol/pull/915(Draft)

    実行証跡

    • コマンド: VITE_E2E_MODE=true vite build && npx playwright test tests/e2e/m3-loop-mvp.spec.ts
    • 結果: 5 passed (2.3m)
    • ブラウザ: Chromium headless(Playwright)
    • origin: http://127.0.0.1:4173
    • commit: c96419988c86779527c547e67ed36306f9864fe3
    • raw JSON: {"schemaVersion":1,"resources":30,"weaponPower":1,"playerMaxHp":8}

    確認済み AC

    AC 結果
    AC1: m3-loop-mvp.spec.ts 存在 PASS
    AC2: production key 不変 / E2E key 更新 PASS(Playwright E2E)
    AC3: resources=30, schemaVersion:1 PASS(Playwright E2E)
    AC4: double confirm で二重加算なし PASS(Playwright E2E)
    AC5: reload 後復元 / combat runtime 非復元 PASS(Playwright E2E)
    AC6: 再 confirm で二重加算なし PASS(Playwright E2E)
    AC7: save failure は #621/#739 unit test 参照 PASS(docs 記録)
    AC8: docs/playtest/m3-loop-mvp.md status: verified PASS(docs 更新)
    AC9: origin = http://127.0.0.1:4173 PASS(Playwright E2E)
    AC10: typecheck / lint / test / build PASS
  9. added 2 commits that reference this issue on Jun 15, 2026
  10. added a commit that references this issue on Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/implementerenhancementphase/implementation

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions