Repository navigation
docs(#282): add game-design.md GDD v0.1 (C254-4) - #370
Conversation
… (C254-4) Materializes the GDD-level design SSOT (`docs/product/game-design.md`) as a compact spec (<=250 lines) per `docs/dev/product-spec-lifecycle.md`. The document holds Core Loop / Sortie Loop / Screens / Progression / Rewards / Non-Goals / Downstream Boundaries / Open Questions and serves as the upper constraint for game-logic.md (C254-5) and mvp-scope.md (C254-6). Implementation constants (time budgets, input bindings, economy rates, upgrade counts) are deliberately deferred to downstream specs per AC4. Adds the `game-design` entry to `docs/dev/ssot-registry.md` in YAML-list form (no Markdown table). C254-3 (#281 game-thesis.md) is not yet merged; the doc and PR body declare game-overview.md + requirements.md as fallback sources per the contract's source_basis requirement. Closes #282 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus (test-runner verdict): CLEAN
Evidence Check
- AC coverage: ○ — AC1〜AC8 が PR 本文の AC Coverage テーブルで [PASS] + 根拠記載されている(placeholder 残存なし)
- Allowed Paths: 遵守 —
docs/product/game-design.md(new, 161 lines) とdocs/dev/ssot-registry.md(+18 行 YAML-list entry) のみ。Issue #282 の Allowed Paths と一致 - CI Verification: 全 5 チェック pass(build / lint / python-test / test / typecheck)
- 検証コマンド結果: Block 1 (4 VC) PASS / Block 2 (AC1-AC7 各 VC) PASS / Baseline gate (pnpm typecheck/lint/test 25 passed/build) PASS
Contract 照合(追加観点)
| 観点 | 結果 |
|---|---|
| 11 必須セクション網羅 (AC1) | PASS — rg -c で 11 件一致 |
| ssot-registry YAML-list 形式 (AC2) | PASS — 既存エントリと同形式(id/path/title/keywords/description/sections) |
| ≤250 行 + frontmatter (AC3) | PASS — 161 行 / status / issue:#282 / parent_issue:#254 / doc_id / trace_links 完備 |
| 実装定数混入なし (AC4) | PASS — 120秒 / Zキー / 100%還元 / exactly 120 / one weapon upgrade / Z key / 120 seconds いずれも該当なし |
| Non-Goals 整合 (AC5) | PASS — multiplayer / territory / base building / campaign を非ゴールとして継承(反転なし) |
| trace_links (AC6) | PASS — requirements.md + game-overview.md 含む |
| ssot-catalog 参照なし (AC7) | PASS — rg "ssot-catalog" で該当なし |
| EARS 適用範囲 | PASS — REQ-GDD-001〜005 のみ EARS notation。散文は EARS 化されていない(product-spec-lifecycle.md §EARS Usage 準拠) |
| GDD-level 限定(散文に定数なし) | PASS — Rewards / Progression / Sortie Loop が経済率・時間・キー名を全て下流委譲 |
| source_basis 明記 | PASS — PR 本文に game_thesis: unavailable と fallback ソース列挙が含まれる(#281 未マージ前提の Stop Conditions 準拠) |
| Schema Change Applicability | not_schema_change(GDD-level 散文 + registry YAML-list entry 追加のみ。consumer 境界変更なし)→ Schema Consumer Inventory 不要 |
| Safety-sensitive | 該当せず — docs-only / product spec、permission/sandbox/transport 等への影響なし |
Block 2 観察事項(non-blocker)
- PR 本文の AC4 メモ: 契約 VC が
rg -nEを使うが ripgrep 14.1.0 では-Eが--encodingを意味するため、PR 提出者はrg -n -e ...形式に置き換えて検証。これは contract-format observation であり実装側の AC 達成には影響しない。
Blockers
- なし
Non-blockers(任意改善)
- Issue #282 の Verification Commands Block 2 で
rg -nE表記が ripgrep 14.x で誤動作する件は、後続の VC 規約整備(rg 用法ガイド)で吸収すると将来の test-runner 誤検出を防げる。本 PR の merge 後に整備でよい。
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 791b16baa740e6beefe01af3ff3b4d50ac844b46
follow_up_issue_requests:
- title: "docs(VC): ripgrep の -E オプション誤用を VC 規約に明記する"
issue_kind: implementation
severity: optional_follow_up
source:
kind: pr_review
url: "https://github.com/squne121/loop-protocol/pull/370"
note_id: "1"
dedupe_key: "follow-up:squne121/loop-protocol:pr-370:1"
desired_destination: "VC 内で ripgrep を使う際の `-e` / `-E` 区別ガイドが docs/dev/runtime-verification-policy.md または同等の場所に明記され、test-runner / contract 起票者が誤用を回避できる状態"
validated_scope_delta: "ripgrep -E (--encoding) と -e (--regexp) の使い分けを VC 記述規約に追記し、既存 Issue contract の `rg -nE` 表現を `rg -n -e ...` 形式に揃える"
origin_skill: pr-review-judge
labels:
- triage-required
結論: REQUEST_CHANGES 相当PR #370 は Issue #282 の形式的ACはかなり満たしている一方で、敵対的に見ると 「GDDとしての品質」と「上位SSOT未確定時の安全性」が弱いです。既存の 良い点PR #370 は、Issue #282 の重要な事故ポイントをかなり避けています。NotebookLM草案には また、 CI・品質ゲートも PR 本文上は Blocker 1: #281 / game-thesis 未確定のまま、GDDが実質的に上位正本化されるIssue #282 は ただし、敵対的に見るとここが最大リスクです。Issue #281 は game-thesis を「downstream game-design / game-logic / mvp-scope の判断基準」とする意図を持ち、Human Product Review accepted まで Draft 維持という gate を持っています。 PR #368 もまだ Draft で、Human Product Review を待っている状態です。 つまり、PR #370 をこのまま merge すると、本来 game-thesis が担うべき pitch / target player / design pillars / design hypotheses が未承認のまま、GDDが先に 修正要求
Until `docs/product/game-thesis.md` is merged with Human Product Review acceptance, this document is a fallback draft and must not override the future accepted game-thesis.
After `game-thesis.md` becomes accepted, this document must be reconciled via a spec delta issue before it is used as the normative source for `game-logic.md` or `mvp-scope.md`.これにより、#282 の fallback 運用は維持しつつ、#281 が後から merge されたときの正本逆転事故を防げます。 Blocker 2: GDDが抽象化しすぎて、LOOP_PROTOCOL固有の体験仮説が落ちているPR #370 の本文は安全ですが、かなり汎用的です。 一方、PR #368 の game-thesis 草案には、より強いプロダクト固有語彙があります。たとえば「autonomous AI-to-AI combat に elite unit として介入する」「defeated enemy technology を analysis / reverse engineering して military capability に取り込む」「combat readability」「industrial and unfinished aesthetics」「reverse engineering satisfaction」といった設計の核です。 もちろん #368 はまだ non-normative です。しかし PR #370 は fallback GDDとして、少なくとも 将来の thesis と衝突しない形で、この固有性を Open Questions / Playtest Hypotheses / Downstream Boundaries に保持するべきです。現在の PR は、禁止された実装定数を避けるために、ゲームの個性まで薄めています。 修正要求禁止定数を入れずに、以下のような qualitative constraint を追加してください。 - The GDD-level progression fantasy is reverse engineering: combat outcomes should be legible as analyzable enemy technology or tactical learning, not only generic currency.
- The sortie fantasy is localized high-leverage intervention: the player should perceive that their direct action changes a local battle outcome, rather than merely watching allied AI resolve combat.
- Combat readability is a first-order design constraint: visual telemetry must support quick tactical decisions without relying on high-fidelity art assets.これは Blocker 3:
|
… qualitative pillars, playtest hypotheses, EARS refinement Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
- AC coverage: AC1〜AC8 全て PASS(PR 本文の AC Coverage 表 + 本レビューでの diff 再確認で一致)
- Allowed Paths: 遵守(
docs/product/game-design.md新規 /docs/dev/ssot-registry.mdYAML-list エントリ追加のみ。2 ファイルとも Issue #282 Allowed Paths 内) - CI Verification: 5/5 PASS(build / lint / python-test / test / typecheck — squne121/loop-protocol Actions run 26359161195)
- 検証コマンド結果: Block 1 / Block 2 / Baseline gate(typecheck / lint / test 25 passed / build)全て PASS。AC4 forbidden token は no match を確認
Iteration 1 fix_delta 反映状況
iteration 0 で REQUEST_CHANGES とした 4 blockers をすべて contract-compliant に解消したことを確認:
| Blocker | 反映場所 | 判定 |
|---|---|---|
| 1. Normative boundary(fallback draft 性 / spec delta issue 経路) | ## Authority and Fallbacks 末尾 2 段落(fallback draft status / reconcile via spec delta issue) |
OK — game-thesis acceptance 前後の規範境界が明示され、本書が game-thesis を上書きできない点が固定された |
| 2. Design Pillars | 新規 ## Design Pillars セクション(reverse engineering progression fantasy / localized high-leverage intervention / combat readability as first-order constraint) |
OK — 3 pillars すべて qualitative。時間 / キー / 経済率 / upgrade 数 などの実装定数は含まれず AC4 と整合 |
| 3. Playtest Hypotheses | 新規 ## Playtest Hypotheses セクション(PTH-GDD-001 Localized Intervention Agency / PTH-GDD-002 Reverse Engineering Reward) |
OK — Claim / Falsification signal / Downstream owner の 3 要素構造で記載され、product-spec-lifecycle.md の hypothesis pattern と整合。invalidated 判定が REQ-GDD-004 へ接続されている |
| 4. EARS reformulation | REQ-GDD-004 = "When a playtest-log entry classifies a GDD hypothesis as invalidated, the product-spec process shall require a spec delta issue before downstream implementation changes" / REQ-GDD-005 = "If a GDD update requires implementation constants such as time budgets, input bindings, economy rates, or upgrade counts, the GDD shall record them only as Open Questions or Downstream Boundaries and shall not define final values" | OK — REQ-GDD-004 は Event-driven (When/shall)、REQ-GDD-005 は Unwanted behavior (If/shall) の EARS 形式に再形式化済み。AC レベル限定の使用にも準拠 |
| 5. Non-blocker registry keywords / sections | docs/dev/ssot-registry.md keywords に localized-intervention / reverse-engineering / analysis-data / combat-readability / playtest-hypotheses / design-pillars を追加、sections に Design Pillars と Playtest Hypotheses を追加 |
OK — discovery surface が新セクションを反映 |
Contract-compliance 横断確認
- ≤250 行制約: 189 行(前回 161 から +28 行で許容範囲内)
- frontmatter: status / issue:"#282" / parent_issue:"#254" / doc_id:game-design / trace_links 全て不変
- Global Non-Goals 反転なし:
## Non-Goalsは requirements.md の global non-goals を継承(multiplayer / territory / base building / campaign / 高品質アセット / 大規模 audio)。新セクション追加で global non-goals の削除・反転は発生していない - AC4 forbidden tokens:
120秒/Zキー/100%還元/exactly 120/one weapon upgradeのいずれも本文に混入なし。REQ-GDD-005 で「final values を本書で定めない」ことが規範化されたため、将来の混入予防も強化された - source_basis ブロック: PR 本文に
game_thesis: unavailable+fallback_used4 件で記載済み(C254-3 / #281 未マージ時の必須要件を満たす)
Blockers
- なし
Non-blockers(任意改善 / follow-up 候補)
- (note_only)
## Screensの Combat Screen 説明「状態を書き換えない(ADR 0001)」は ADR 0001 のフルテキストを完全には引用していないため、将来 ADR 整理時に「Canvas は描画専用、状態更新は禁止」の元文と整合する文言短縮を検討してもよい。本 Issue のスコープ外。 - (note_only)
.specify整合性検証(Issue #298 spike 領域)は本 Issue とは別文脈で扱う前提のため本 PR では不要。
いずれも APPROVE を妨げる contract 違反ではない。
LOOP_VERDICT
verdict: APPROVE
iteration_target: 1
rationale: "前回 4 blockers(normative boundary / Design Pillars / Playtest Hypotheses / EARS reformulation)と non-blocker registry 拡充がすべて contract-compliant に解消され、AC1〜AC8 カバレッジ維持・Allowed Paths 遵守・CI 5/5 pass・mergeable CLEAN を確認"
fix_delta: []
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 4697fe67d05d075f40cf3338d00bb14afdcc2d90
follow_up_issue_requests: []
Summary
Materializes the GDD-level design SSOT for LOOP_PROTOCOL as
docs/product/game-design.md(compact spec, 161 lines) and registers it indocs/dev/ssot-registry.md(YAML-list form). Establishes the upper constraint forgame-logic.md(C254-5) andmvp-scope.md(C254-6); defers all implementation constants to downstream specs per AC4.Closes #282
Refs #254 (parent), C254-4
Contract Snapshot
Contract review (go) — #282 (comment)
source_basis
C254-3 (#281 game-thesis.md) is not yet merged; per the Issue #282 Stop Conditions / Delivery Rule, this PR uses game-overview.md + requirements.md as the fallback source hierarchy for the GDD draft.
Allowed Paths Compliance
docs/product/game-design.md(new) — OKdocs/dev/ssot-registry.md(YAML-list entry only — no Markdown table addition) — OKAC Coverage
## <section>headings present- id: game-designandpath: docs/product/game-design.mdin YAML-list formssot-catalogreference in game-design.md; registry exit 1 (no match)Verification
Block 1 (machine-checkable, baseline failable)
test -f docs/product/game-design.md— PASSrg -q "^- id: game-design$" docs/dev/ssot-registry.md— PASSrg -q "^ path: docs/product/game-design.md$" docs/dev/ssot-registry.md— PASSrg -n "ssot-catalog" docs/dev/ssot-registry.md— exit 1 (no match) — PASSBlock 2 (post-impl)
awk 'END { exit (NR > 250) }': PASS (161 lines)rg -nE "..."; on ripgrep 14.1.0-Eis--encoding. Re-ran withrg -n -e "..." -e "..."form which yields exit 1 (no match). This is a Block 2 contract-format observation, not an implementation gap.ssot-catalogin game-design.md: PASSBaseline Gate (CLAUDE.md)
pnpm typecheckpnpm lintpnpm testpnpm buildTest Plan
Notes
## Downstream Boundariesand## Open Questions.🤖 Generated with Claude Code