Repository navigation
Closed
Labels
phase/implementationImplementation phase
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1"
goal_ref: "PR #444 で deferred された『ブラウザ上での実際の弾道・pointer 体感確認』を docs/product/playtest-sessions/ に session file として記録する"
change_kind: docsParent Issue
Parent Goal Ref
- Goal: 自機移動と Projectile 射撃システムを Canvas 上で実際に操作・確認した結果を記録する
- Deferred source: PR feat(#1): 自機移動と Projectile 射撃システム (AC1-AC22) #444
Runtime Verification Applicability(decision: deferred/deferred_destination: phase / M1 Foundation Gate playtest) - 前提: E2E foundation Issue(owner review comment で起案)が先行マージ済み
Source
- PR feat(#1): 自機移動と Projectile 射撃システム (AC1-AC22) #444 owner review comment: feat(#1): 自機移動と Projectile 射撃システム (AC1-AC22) #444 (comment)
- dedupe_key:
follow-up:squne121/loop-protocol:pr/444:playtest-execution-record
Current Validated Scope
- 自動 E2E(browser_automation)と人間 internal playtest(human_internal)の各 session file を
docs/product/playtest-sessions/に新規作成 - 各 session を
bug/balance/tuning/unclear_needs_more_dataで分類 docs/product/playtest-protocol.mdのbrowser_automation/human_internal使い分けに沿うdocs/product/playtest-log.mdはtemplate_only: trueのため session entry を直接追記しない
Remaining Parent Gaps
- PR feat(#1): 自機移動と Projectile 射撃システム (AC1-AC22) #444 の deferred runtime verification の最終消化(本 Issue で playtest-sessions/ への session file 新規作成により完了)
Problem
PR #444 で「ブラウザ上の弾道・pointer 体感確認」が deferred になっているが、実 session を実施・記録しない限り deferred_destination が空のままで、Issue #1 の動作検証契約が閉じない。
Outcome
docs/product/playtest-sessions/に PR feat(#1): 自機移動と Projectile 射撃システム (AC1-AC22) #444 movement + projectile の playtest session file が browser_automation / human_internal の双方で新規作成されている(例:PT-<date>-browser-automation.md、PT-<date>-human-internal.md)docs/product/playtest-log.mdはtemplate_only: trueのため session entry の直接追記は行わない。index/link 追記のみ許容する- 各 session が分類タグ(
bug/balance/tuning/unclear_needs_more_data)を持つ - PR feat(#1): 自機移動と Projectile 射撃システム (AC1-AC22) #444 の deferred verification が本 Issue で消化された旨が Issue body または session file に明記されている
In Scope
docs/product/playtest-sessions/への session file 新規作成- E2E foundation Issue の
pnpm test:e2e実行結果(browser_automation session)の記録 - 人間(internal)による movement + projectile 操作の記録(human_internal session)
- 観察事項の分類
Out of Scope
- E2E foundation 本体の追加(前段 foundation Issue の責務)
- balance / tuning の値変更
- 敵 / collision / damage の実装
- 外部テスター募集、raw video / PII の公開
Acceptance Criteria
- AC1:
docs/product/playtest-sessions/に PR feat(#1): 自機移動と Projectile 射撃システム (AC1-AC22) #444 movement + projectile に関するbrowser_automationsession file が少なくとも 1 件新規作成されている。session file は以下の必須フィールドを含む:build_ref、automation.execution.reproduction_command(値:pnpm test:e2e)、automation.metrics.runs、automation.metrics.success_count、automation.metrics.failure_count、automation.metrics.success_rate、artifact の有無と理由 - AC2:
docs/product/playtest-sessions/にhuman_internalsession file が少なくとも 1 件新規作成されている。session file は以下の必須フィールドを含む: task script(操作手順)、environment、PII/raw video 非コミット記録 - AC3: 各 session file が schema に沿う必須フィールドを含む:
session_id、date、build_ref、session_mode、tester_profile、environment、privacy、playtest_entries - AC4: 各 entry が
bug/balance/tuning/unclear_needs_more_dataのいずれかで分類されている。classification: design hypothesis invalidatedが検出された場合は Stop Condition として Spec Delta Issue 化する - AC5: PR feat(#1): 自機移動と Projectile 射撃システム (AC1-AC22) #444 deferred runtime verification の消化記録(PR/Issue/playtest-sessions のいずれか)に本 Issue がリンクされている
- AC6:
pnpm typecheck、pnpm lint、pnpm test、pnpm buildがそれぞれ PASS する
Verification Commands
# AC1
# preflight-scope: runtime_only
$ rg -n "browser_automation|reproduction_command:|build_ref:|success_count:|failure_count:|success_rate:" docs/product/playtest-sessions/
# AC2
# preflight-scope: runtime_only
$ rg -n "human_internal|task_id:|tester_profile:" docs/product/playtest-sessions/
# AC3
# preflight-scope: runtime_only
$ rg -n "session_id:|date:|build_ref:|session_mode:|tester_profile:|environment:|privacy:|playtest_entries:" docs/product/playtest-sessions/
# AC4
# preflight-scope: runtime_only
$ rg -n "classification:" docs/product/playtest-sessions/
# AC5
# preflight-scope: runtime_only
$ rg -n "#444|PR #444" docs/product/playtest-sessions/ docs/product/playtest-log.md
# AC6
$ pnpm typecheck
$ pnpm lint
$ pnpm test
$ pnpm buildProduct Spec Context
- この Issue は PR feat(#1): 自機移動と Projectile 射撃システム (AC1-AC22) #444 の deferred runtime verification を消化するための 証跡作成 Issue であり、要件・仕様の変更ではない
docs/product/playtest-sessions/**は観察事実の記録 artifact であり、product spec/requirements の変更ではない- PS001: N/A — spec delta Issue リンクは不要(spec 変更なし)
- PS004: N/A — diff_rationale / changed_requirement_id / affected_sections は不要(spec 更新なし)
Allowed Paths
docs/product/playtest-sessions/**(primary: session file を必ずここに作成する)docs/product/playtest-log.md(index/link 追記のみ。template_only: trueのため session entry 直接追記不可)package.json(test スクリプトの--exclude '.claude/worktrees/**'追加のみ — 孤立 worktree 内 E2E spec が vitest に混入し AC6 regression gate を妨げるため)
Runtime Verification Applicability
decision: not_applicable
reason: >
docs-only の playtest session file 追加であり、runtime code への影響なし。
pnpm 4 ゲートによる静的検証で十分。
実際の playtest 実行証跡は AC1/AC2(preflight-scope: runtime_only)の VC で保証する。Stop Conditions
- E2E foundation Issue が未マージで session 実行ができない場合
- 観察事項が PR feat(#1): 自機移動と Projectile 射撃システム (AC1-AC22) #444 の AC を覆す重大 bug を示し、別 implementation Issue 化が必要になった場合
- balance / tuning が大幅にズレており別 tuning Issue が必要になった場合
- session 記録が
docs/product/playtest-protocol.mdの UX evidence policy と矛盾する場合 - 外部テスター / 録画 / PII の保存が必要になった場合
- playtest session で
classification: design hypothesis invalidatedが検出され、Spec Delta Issue 化が必要になった場合
Required Skills
- 自動 E2E 実行結果(playwright trace、metrics)の読み取りと structured fields への記録
- browser_automation と human_internal の distinction と適切な session mode 選択
- playtest session の客観的観察記述と分類判定
Delivery Rule
1 Issue = 1 PR- foundation Issue(先行)→ 本 Issue(後続)の順で進める
Metadata
Metadata
Assignees
Labels
phase/implementationImplementation phase
Activity
squne121 commentedon May 29, 2026
結論: REQUEST_CHANGES
Issue #448 は「PR #444 の deferred runtime verification を playtest-log で消化する」目的自体は妥当です。ただし、現在の契約のまま実装すると “実行したことに見えるログ” は作れても、PR #444 / #447 / #451 で積み上げた検証契約を閉じた証跡にはなりません。特に、schema enum の不一致、存在しない field 名の VC、
template_onlyなplaytest-log.mdへの直接追記、pnpm test:e2e実行証跡の弱さが blocker です。#448 はまだ branch / PR が紐づいていないため、実装前に Issue 契約を直すべきです。([GitHub]1)参照した前提
#448 は PR #444 の deferred runtime verification を、
browser_automationとhuman_internalの session entry としてdocs/product/playtest-log.mdに記録する Issue です。AC は browser automation entry、human internal entry、schema 準拠、分類、#444 へのリンク、通常品質ゲート PASS を要求しています。([GitHub]1)PR #444 は movement + projectile 実装を merge 済みで、runtime verification は M1 Foundation Gate playtest に deferred されています。さらに #447 / #451 で Playwright ベースの E2E foundation が導入され、
test:e2e、test:e2e:ci、Playwright config、E2E smoke tests、CI artifact upload が main に存在します。([GitHub]2)Blockers
B1.
playtest-log.mdの schema と #448 の分類 enum が一致していない#448 は分類を
bug / balance-tuning / unclear-needs-more-dataとしていますが、playtest-log.mdの schema はbug | balance/tuning | design hypothesis invalidated | unclear_needs_more_dataです。さらにplaytest-protocol.md側はbalance/tuningとunclear/needs-more-dataを使っています。少なくとも #448 の AC4 は schema 正本に合わせてbalance/tuningとunclear_needs_more_dataに直す必要があります。([GitHub]1)修正案:
B2. VC が存在しない field 名を検査している
#448 の AC3 VC は
session_id|session_type|observed_at|environmentを grep していますが、schema にはsession_modeとdateがあり、session_type/observed_atは出てきません。これは schema 準拠検証として壊れています。([GitHub]1)修正案:
B3.
docs/product/playtest-log.mdは template_only であり、実セッションの直接追記先として危険現在の
playtest-log.mdは frontmatter でtemplate_only: trueを持つテンプレート文書です。一方、#447/#451 後にdocs/product/playtest-sessions/**が個別 session record の置き場として導入され、README も「individual playtest session records」と説明しています。#448 はplaytest-log.mdへの追記を主成果物にせず、実ログはdocs/product/playtest-sessions/PT-YYYYMMDD-NNN-*.mdに分離すべきです。([GitHub]3)修正案:
B4.
pnpm test:e2e実行結果を記録する要求が AC/VC に落ちていない#448 の In Scope は E2E foundation の
pnpm test:e2e実行結果記録を含みますが、AC と VC は grep 中心で、実行コマンド・commit SHA・CI run・成功件数・artifact 参照を必須化していません。現在のpackage.jsonではtest:e2eがVITE_E2E_MODE=true pnpm build && playwright testで自己完結しており、Vite 公式もvite preview前にvite buildを実行して build directory を最新化するよう説明しています。ここは実行証跡として必須化できます。([GitHub]1)修正案:
B5. Playwright trace / artifact の扱いが #448 では弱い
Playwright trace は CI 失敗時のデバッグに有用で、Trace Viewer は action ごとの DOM snapshot を確認できます。現在の Playwright config は
trace: 'retain-on-failure'なので、成功 run では trace が残らない設計です。GitHub Actions artifacts は retention-days を指定でき、現在の CI はplaywright-report/とtest-results/を失敗時に 14 日保持します。#448 の session record は「trace が無いなら無い理由」「artifact は public repo に commit しない」「retention-days 14」を明記すべきです。([Playwright]4)修正案:
B6.
Runtime Verification Applicability: not_applicableはこの Issue の性質と衝突している#448 は docs-only の変更ではありますが、目的は PR #444 の deferred runtime verification を「実行・記録して閉じる」ことです。
not_applicableと書くと、実行せずに log 追記だけで閉じる抜け道になります。ここは code change の runtime verification ではなく evidence-producing issue として、decision: requiredまたは少なくともevidence_required: trueを明記すべきです。#444 の deferred destination と #447 の E2E foundation の流れにも、その方が合います。([GitHub]2)修正案:
追加で直すべき契約
design hypothesis invalidatedを #448 の分類候補から消している点も危険です。プロトコルは design hypothesis invalidated を Spec Delta Issue 必須としています。#448 では「この分類を使わない」のではなく、「出たら Stop Condition」として扱うべきです。([GitHub]5)human_internalsession には task script が必要です。Playtest protocol は対象ビルド、検証仮説、具体的な task script、感情・UX 判断は人間 playtest で扱うことを定めています。#448 は「人間が操作した」とだけ書ける余地を残しているため、操作時間、環境、観察観点、raw video/PII 非保存を AC に入れるべきです。([GitHub]5)推奨 GitHub コメント案
squne121 commentedon May 29, 2026
更新完了: anchor comment B1-B6 + C2/C7 反映
以下の修正を適用しました:
balance/tuning/unclear_needs_more_dataに修正、design hypothesis invalidated→ Stop Condition を追記session_mode,date,build_ref,privacy,playtest_entries)に修正playtest-log.md直接追記からdocs/product/playtest-sessions/PT-*.md新規作成に変更(template_only: true対応)build_ref,reproduction_command,runs/success_count/failure_count/success_rate, artifact 有無 の必須化を追加retain-on-failureのため green run では trace なし)を Stop Conditions および artifact schema コメントに反映not_applicable→requiredに変更design hypothesis invalidated→ Spec Delta Issue 化)squne121 commentedon May 29, 2026
Contract Snapshot (2026-05-29T11:35:15Z)
docs/product/playtest-sessions/に PR feat(#1): 自機移動と Projectile 射撃システム (AC1-AC22) #444 playtest session files (browser_automation + human_internal) を新規作成するdocs/product/playtest-sessions/**、docs/product/playtest-log.md(index のみ).claude/worktrees/issue-448-pr-444-movement-projectile-browser-automworktree-issue-448-pr-444-movement-projectile-browser-automsqune121 commentedon May 29, 2026
implement-issue: 実装完了 (2026-05-29T11:42:37Z)
.claude/worktrees/issue-448-pr-444-movement-projectile-browser-automworktree-issue-448-pr-444-movement-projectile-browser-automfix(#448): fix playtest session schema violations
docs(#448): add PR #444 deferred playtest session records (#473)