Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
4. `docs/product/requirements.md`
5. `docs/dev/current-focus.md`
6. 関連する `docs/adr/*.md`、`docs/product/features/<feature>.md`、`docs/dev/directory-structure.md`
7. プレイテスト関連作業を行う場合: `docs/product/playtest-protocol.md`, `docs/product/playtest-log.md`

## 不変のアーキテクチャ原則

Expand Down
3 changes: 2 additions & 1 deletion docs/dev/product-spec-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ Normative documents defining the product as a whole:
| `docs/product/game-design.md` | GDD-level design (C254-4) |
| `docs/product/game-logic.md` | Implementation-facing game rules (C254-5) |
| `docs/product/mvp-scope.md` | Current MVP boundary (C254-6) |
| `docs/product/playtest-protocol.md` | Playtest protocol + log template (C254-7) |
| `docs/product/playtest-protocol.md` | Playtest execution procedure & Spec Delta Gate (C254-7) |
| `docs/product/playtest-log.md` | Playtest log template & entry schema SSOT (C254-7) |

### Feature-level spec

Expand Down
24 changes: 24 additions & 0 deletions docs/dev/ssot-registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,30 @@
- "## Playtest Handoff"
- "## Trace Links"

- id: playtest-protocol
path: docs/product/playtest-protocol.md
title: Playtest Protocol
keywords: [playtest, protocol, session-planning, feedback, spec-delta-gate, privacy, pii]
description: プレイテストの実施手順、フィードバック分類、Spec Delta Gate、およびプライバシー保護方針を定義する SSOT。status: draft の間は implementation normative ではない
sections:
- "## Session Planning"
- "## Participant / Tester Handling"
- "## Task Script"
- "## Observation Rules"
- "## Feedback Classification"
- "## Spec Delta Gate"
- "## Decision Meeting"
- "## Privacy / PII Handling"

- id: playtest-log
path: docs/product/playtest-log.md
title: Playtest Log Template
keywords: [playtest, log, template, schema, entry]
description: プレイテスト結果を記録するための YAML テンプレートとスキーマ定義の SSOT。status: draft の間は implementation normative ではない
sections:
- "## Entry Schema"
- "## Example Entry"

---

## ディレクトリ → SSOT マッピング
Expand Down
2 changes: 2 additions & 0 deletions docs/dev/workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ SSOT 追加時の参照先を集約した索引。AI エージェントは実装
| SSOT カタログ全体 | `docs/dev/ssot-registry.md` |
| product spec / `docs/product/**` ライフサイクル(作成・更新・archive・compact spec・spec delta・tasks.md adapter) | `docs/dev/product-spec-lifecycle.md` |
| MVP scope(MVP に含める / 含めない境界・success/failure/pivot criteria。`status: draft` の間は discovery 用であり implementation normative source ではない) | `docs/product/mvp-scope.md` |
| プレイテストの実施手順・フィードバック分類・PII 保護方針・Spec Delta Gate | `docs/product/playtest-protocol.md` |
| プレイテスト結果の記録・YAML テンプレート・スキーマ定義 | `docs/product/playtest-log.md` |
| ゲームロジック仕様(状態遷移・入力・時間モデル・衝突・勝敗・保存境界) | `docs/product/game-logic.md` |

### 新規 SSOT 追加時の必須更新セット
Expand Down
100 changes: 100 additions & 0 deletions docs/product/playtest-log.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
---
status: draft
issue: "#284"
parent_issue: "#254"
doc_id: playtest-log
canonical_source: docs/product/playtest-log.md
sdd_boundary: template
template_only: true
trace_links:
- docs/product/playtest-protocol.md
- docs/product/mvp-scope.md
---

# Playtest Log Template

## Intent
この文書は、プレイテスト中に得られた観察事実、プレイヤーの反応、および開発チームによる決定事項を記録するための YAML テンプレートとスキーマを定義する。
`docs/product/mvp-scope.md` の Measurement Contract に基づき、仮説検証の証跡として機能する。

## Entry Schema

```yaml
session_id: "PT-YYYYMMDD-001"
date: "YYYY-MM-DD"
build_ref: "<commit-sha-or-release-tag>"
session_mode: "human_internal | ai_simulation | browser_automation"
tester_profile: "developer | target_player_layer | ai_agent"
environment: "browser-chrome | local-dev | automated-ci"
privacy:
pii_reviewed: true
raw_recording_committed: false

playtest_entries:
- entry_id: "PTE-001"
task_id: "TASK-001"
hypothesis_id: "HYP-MVP-001"
observed_behavior: "" # 実際に起きた事実(何を迷ったか、どう操作したか)
player_quote_redacted: "" # 匿名化されたプレイヤーの発話
emotional_signal: "" # frustration | confusion | boredom | excitement 等
developer_interpretation: "" # 開発側の解釈
player_suggested_fix: "" # プレイヤーからの提案

# MVP Measurement Contract Fields
observable_signal: "" # 観測された信号(mvp-scope.md 準拠)
collection_method: "" # 収集方法(mvp-scope.md 準拠)
success_failure_assessment: "success | failure | inconclusive"
misread_notes: "" # 誤認やノイズの記録
tunable_parameter: "" # 調整対象のパラメータ名
retest_target: "true | false" # 再検証が必要か

affected_requirements:
- "REQ-001"
classification: "bug | balance/tuning | design hypothesis invalidated | unclear_needs_more_data"
severity: "low | medium | high | blocker"
confidence: "low | medium | high"
decision: "no_action | defer | spec_delta_issue | implementation_issue | retest"
proposed_spec_delta: ""
linked_issue: "#NNN"
validation_method: "human_internal | ai_simulation | browser_automation | manual_reproduction"
```

## Example Entry (Draft)

```yaml
session_id: "PT-20260527-001"
date: "2026-05-27"
build_ref: "3f0e79d"
session_mode: "human_internal"
tester_profile: "developer"
environment: "browser-chrome"
privacy:
pii_reviewed: true
raw_recording_committed: false

playtest_entries:
- entry_id: "PTE-001"
task_id: "TASK-001"
hypothesis_id: "HYP-MVP-001"
observed_behavior: "プレイヤーは自機の移動速度が速すぎると感じ、何度も壁に衝突した"
player_quote_redacted: "「速すぎて制御できない、もっとゆっくり動いてほしい」"
emotional_signal: "frustration"
developer_interpretation: "現在の速度定数が 60Hz 駆動に対して高すぎる可能性がある"

observable_signal: "主要因として player intervention が語られるか"
collection_method: "self-explanation prompt"
success_failure_assessment: "success"
misread_notes: "特になし"
tunable_parameter: "PLAYER_SPEED"
retest_target: false

affected_requirements:
- "REQ-LOGIC-001"
classification: "balance/tuning"
severity: "medium"
confidence: "high"
decision: "implementation_issue"
proposed_spec_delta: ""
linked_issue: "#000"
validation_method: "automated test"
```
79 changes: 79 additions & 0 deletions docs/product/playtest-protocol.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
---
status: draft
issue: "#284"
parent_issue: "#254"
doc_id: playtest-protocol
canonical_source: docs/product/playtest-protocol.md
sdd_boundary: procedure
trace_links:
- docs/product/mvp-scope.md
- docs/adr/0002-sdd-tool-adoption.md
---

# Playtest Protocol

## Intent
この文書は、LOOP_PROTOCOL におけるプレイテストの実施手順、フィードバック分類、および仕様変更ゲート(Spec Delta Gate)を定義する。
`docs/product/mvp-scope.md` で定義された Measurement Contract を実運用するための手順書である。

## Session Planning
- **対象ビルド**: プレイテスト実施時の commit SHA または PR 番号を特定する。
- **検証仮説**: `docs/product/mvp-scope.md` で定義された `HYP-MVP-001/002/003` から今回の検証対象を選択する。
- **タスク設計**: プレイヤーが遂行すべき具体的なシナリオ(Task Script)を用意する。

## Participant / Tester Handling
- **基本方針**: 本プロジェクトは個人趣味開発であり、外部テスターを募集してのプレイテストは実施しない。
- **主担当**: プレイテストは開発者によるセルフプレイテストを中心に実施する。
- **人間が扱う領域**: 面白さ、違和感、ストレス、迷い、納得感、操作感などの感情的・UX的な判断は、人間の開発者プレイテストで扱う。
- **匿名化**: 公開リポジトリには個人名や連絡先を記録せず、必要に応じて `developer-self` または匿名 ID を使用する。
- **同意**: 外部参加者を前提としないため、第三者の録画・発話記録は原則発生しない。例外的に第三者の協力を得る場合は、記録範囲について事前合意を得る。

## AI-driven Playtest Automation
- **目的**: AI/自動化プレイテストは、仕組みの正しさ、到達可能性、ルール破綻、数値バランス、回帰、定量メトリクスの収集を目的とする。
- **Playtest Mode**:

| mode | 用途 | 許可する根拠 | 禁止する主張 |
|---|---|---|---|
| `human_internal` | 開発者による UX/違和感確認 | 観察メモ、redacted quote、仮説違反 | 一般プレイヤー代表性 |
| `ai_simulation` | 仕組み・バランス・探索量の検査 | seed、agent profile、metric、replay/log | 楽しさ・感情の代替 |
| `browser_automation` | UI/Canvas/DOM 統合、リグレッション | Playwright trace、Vitest Browser Mode、CI result | UX 妥当性の代替 |
| `human_external` | 外部テスター | 現時点 out of scope | 募集・録画・PII 保存 |

- **人間確認ゲート**: AI/自動化で検出された問題が UX や設計仮説に影響する場合は、開発者による human playtest で影響を確認してから `Spec Delta Issue` または `Implementation Issue` に分類する。

## Task Script
- **明確な目標**: プレイヤーに「何を達成してほしいか」を明確に伝える。
- **誘導の禁止**: 「ここをクリックしてください」といった具体的な操作指示は避け、プレイヤーの自然な行動を観察する。

## Observation Rules
- **発話思考法 (Think Aloud)**: プレイヤーが考えていること、感じていることを口に出してもらいながら観察する。
- **観察の集中**: ファシリテーターはプレイヤーの行動、迷い、感情的な反応(混乱・興奮・退屈)を記録する。

## Feedback Classification
プレイテストの結果は以下の 4 カテゴリに分類する。

| カテゴリ | 内容 | 対応アクション |
|---|---|---|
| `bug` | 意図した仕様通りに動作していない | Implementation Task Issue 起票 |
| `balance/tuning` | 数値調整や微細な感触の改善 | Spec Delta Issue 推奨(軽微なら実装時に理由付記) |
| `design hypothesis invalidated` | 設計の前提や仮説が誤っていた | **Spec Delta Issue 必須**(実装前に仕様修正) |
| `unclear/needs-more-data` | 判断材料が不足している | 次回プレイテストでの継続検証 |

## Spec Delta Gate
- **禁止事項**: `design hypothesis invalidated` と判定されたフィードバックを、仕様(docs/product/**)の更新なしに直接コード変更してはならない。
- **フロー**: playtest-log → Spec Delta Issue (doc update) → Implementation Issue (code change) → PR → Next Playtest。

## Decision Meeting
- プレイテスト終了後、開発チームでログを振り返り、各項目の `classification` と `decision`(対応方針)を確定する。
- 決定事項は `docs/product/playtest-log.md` の `decision` フィールドに記録する。

## Privacy / PII Handling
- **基本原則**: 公開リポジトリには個人名、連絡先、顔・声の録画 URL、識別可能な発話全文を保存しない。
- **PII 禁止**:
- `raw_audio_video_allowed: false`
- `raw_transcript_committed: false`
- `pii_reviewed_before_commit: true`
- **引用の方針**:
- `player_quote` の代わりに `player_quote_redacted` または `player_observation_summary` を使用する。
- 引用は短く、文脈を維持しつつ個人を特定できないよう加工する。
- **証跡管理**: 録画データや生のメモはリポジトリ外の安全な場所に保管し、GitHub には要約と匿名化された引用のみを記載する。