Repository navigation
Closed
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#483"
goal_ref: "M2: Combat MVP Gate — sortie lifecycle / 終了条件 / result object 仕様の正本を docs/product/features/sortie.md に作成する"
change_kind: docs
diff_rationale: "sortie lifecycle / FSM / timer authority / result invariants の新規定義(M2 初回 spec 作成)"
changed_requirement_id: "sortie_playable (M2)"
affected_sections:
- "sortie lifecycle"
- "FSM transition table"
- "timer authority"
- "result object invariants"Parent Issue
Parent Goal Ref
- Goal: M2: Combat MVP Gate (v0.2.x) として 1 sortie を開始→操作→戦闘結果まで通す
- Desired Destination:
docs/product/features/sortie.mdに sortie の lifecycle / 終了条件 / result object を置く
Current Validated Scope
docs/product/features/sortie.mdが存在しないdocs/product/playable-roadmap.mdの M2 spec_destination に sortie.md が列挙されているdocs/dev/ssot-registry.mdに sortie エントリが存在しない
Remaining Parent Gaps
- combat-core feature spec(並行 child issue)
- enemy spawn / AI / collision / damage / sortie state machine の実装(別 child issues)
- playtest 証跡(別 child issue)
Outcome
docs/product/features/sortie.md が作成され、sortie state machine(遷移表含む) / 終了条件 / timer authority / result object 不変条件が定義された状態で pnpm test && pnpm build が通っている。
In Scope
docs/product/features/sortie.mdの新規作成(YAML frontmatter + 仕様本文)docs/dev/ssot-registry.mdへの sortie エントリ追加
Out of Scope
src/への実装変更tests/への変更- combat-core spec(別 Issue)
- persistence / upgrade(M3/M4 スコープ)
Acceptance Criteria
- AC1:
docs/product/features/sortie.mdが存在する - AC2: YAML frontmatter に
doc_id,status,parent_issue,trace_linksがある - AC3:
trace_linksにparent_issue: "#483",sibling_specs: ["#484"],implementation_consumers: ["#489"],upstream_implementation: ["#486","#487","#488"],validation: ["#490"]が含まれる - AC4: sortie state が有限状態(
idle | running | victory | defeat | ended)として定義されている - AC5:
victoryとdefeatは terminal result-latched states、endedは post-result acknowledgement state として定義されている(endedは result を変更しない) - AC6: normative transition table が定義されている(
idle -START_SORTIE-> running、running -FIXED_TICK[playerHp<=0]-> defeat、running -FIXED_TICK[elapsedTicks>=targetTicks]-> victory、victory/defeat -ACK_RESULT-> ended、terminal state は result を再生成しない) - AC7: 120秒生存 victory と player HP 0 defeat が終了条件として定義されている
- AC8: 同一 tick で
player.hp <= 0とelapsedTicks >= targetTicksが同時成立した場合、defeatが優先されることが明記されている - AC9:
elapsedTicksはrunning状態の fixed simulation steps 内でのみ加算されることが明記されている - AC10: 勝利判定が tick-based:
targetTicks = ceil(120_000 / fixedDeltaMs)、elapsedTicks >= targetTicksで victory、durationMs = elapsedTicks * fixedDeltaMsが明記されている - AC11:
wall-clock delta、rAF timestamp delta、Date.now()、performance.now()が sortie 時間計測に使用されないことが明記されている - AC12: SimulationLoop の panic/maxFrameSkip による破棄時間が sortie duration に含まれないことが明記されている
- AC13: result object の最小 shape(
outcome: "victory" | "defeat",durationMs: number,kills: number,shotsFired: number,playerHpRemaining: number)が定義されている - AC14:
SortieResultの不変条件が定義されている(running→victory/defeat への初回遷移で一度だけ生成・immutable・kills は terminal tick 以前の敵から・shotsFired は terminal tick snapshot・playerHpRemaining は [0, maxHp] clamp・defeat 時は playerHpRemaining === 0・persistence/resources/upgrades/localStorage/campaign への書き込みなし) - AC15: result object は persistence / upgrade を直接実行しない transient output として定義されている
- AC16: non-goals に persistence / upgrade / campaign / briefing UI が含まれる
- AC17:
planned_consumer_testsとして 実装: sortie start-end state machine と result object を実装する #489 用テストケース(victory at target tick、defeat at HP zero、same-tick defeat-wins precedence、result generated once、timer authority ignores wall-clock/rAF pause、terminal state 後の combat mutation なし)が列挙されている - AC18:
docs/dev/ssot-registry.mdに sortie エントリが追加されている - AC19:
pnpm typecheck && pnpm lint && pnpm test && pnpm buildが通る
Verification Commands
# AC1
$ test -f docs/product/features/sortie.md
# AC2
# preflight-scope: pr_review_only
$ grep -n "doc_id\|status\|parent_issue\|trace_links" docs/product/features/sortie.md
# AC3
# preflight-scope: pr_review_only
$ grep -n "#483\|#484\|#489\|#486\|#487\|#488\|#490" docs/product/features/sortie.md
# AC4
# preflight-scope: pr_review_only
$ grep -n "idle\|running\|victory\|defeat\|ended" docs/product/features/sortie.md
# AC5
# preflight-scope: pr_review_only
$ grep -n "terminal\|result-latched\|acknowledgement\|MUST NOT alter" docs/product/features/sortie.md
# AC6
# preflight-scope: pr_review_only
$ grep -n "START_SORTIE\|FIXED_TICK\|ACK_RESULT" docs/product/features/sortie.md
# AC7
# preflight-scope: pr_review_only
$ grep -n "120\|victory\|defeat" docs/product/features/sortie.md
# AC8
# preflight-scope: pr_review_only
$ grep -n "defeat.*wins\|defeat.*priorit\|same.tick\|both.*true" docs/product/features/sortie.md
# AC9
# preflight-scope: pr_review_only
$ grep -n "elapsedTicks\|running.*fixed\|fixed.*running" docs/product/features/sortie.md
# AC10
# preflight-scope: pr_review_only
$ grep -n "targetTicks\|ceil\|120_000\|fixedDeltaMs" docs/product/features/sortie.md
# AC11
# preflight-scope: pr_review_only
$ grep -n "wall.clock\|rAF\|Date\.now\|performance\.now\|MUST NOT" docs/product/features/sortie.md
# AC12
# preflight-scope: pr_review_only
$ grep -n "panic\|maxFrameSkip\|discard" docs/product/features/sortie.md
# AC13
# preflight-scope: pr_review_only
$ grep -n "durationMs\|kills\|shotsFired\|playerHpRemaining" docs/product/features/sortie.md
# AC14
# preflight-scope: pr_review_only
$ grep -n "immutable\|generated once\|MUST be generated\|clamp\|playerHpRemaining\|defeat.*0" docs/product/features/sortie.md
# AC15
# preflight-scope: pr_review_only
$ grep -n "transient\|persistence\|upgrade" docs/product/features/sortie.md
# AC16
# preflight-scope: pr_review_only
$ grep -n "persistence\|upgrade\|campaign" docs/product/features/sortie.md
# AC17
# preflight-scope: pr_review_only
$ grep -n "planned_consumer_tests\|victory at\|defeat at\|same.tick\|result generated" docs/product/features/sortie.md
# AC18
$ grep -n "sortie\.md\|feature-sortie" docs/dev/ssot-registry.md
# AC19
$ pnpm typecheck
$ pnpm lint
$ pnpm test
$ pnpm buildAllowed Paths
docs/product/features/sortie.mddocs/dev/ssot-registry.md
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
Runtime Verification Applicability
decision: not_applicable
reason: "docs-only change. AC1-AC18 は grep/test コマンドで決定論的に検証可能。runtime 動作確認(actual play/UI)は #489 実装 Issue の責務。"Required Skills
- TypeScript / ECS(state/systems 分離モデルの理解)
Scope Delta(任意)
anchor_comment_feedback(#issuecomment-4580852938)に基づき AC/VC を強化:
- FSM normative transition table と state role の明示を追加(AC5, AC6)
- 同一 tick での defeat-wins 裁定を追加(AC8)
- tick-based timer authority(targetTicks formula, wall-clock/panic clamp 禁止)を追加(AC9-AC12)
- SortieResult 不変条件と算出元を追加(AC14)
related_tests→planned_consumer_testsに変更(AC17)- trace_links の必須リンク集合を明示(AC3)
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Activity
fix(#484): address PR review blockers - migration path, comparator, E…
feat(#484): add combat-core feature spec (CollisionSystem/CombatSyste…
squne121 commentedon May 30, 2026
結論
#485 は docs-only の仕様作成 Issue として方向性は妥当ですが、このまま
sortie.mdを作ると #489 の実装で解釈分岐が出ます。特に 状態遷移、同一 tick の勝敗裁定、固定 timestep に基づく duration、result object の不変条件 が曖昧です。私は現状のままなら 実装着手前に修正要求 とします。確認範囲では、#485 自体には紐づく PR/branch がなく、GitHub 上の Development も “No branches or pull requests” です。#485 は親 #483 の子 Issue で、M2 Combat MVP Gate の
sortie lifecycle / 終了条件 / result objectの正本docs/product/features/sortie.mdを作る docs-only Issue です。(GitHub) 親 #483 は #484〜#490 を子 Issue として列挙しており、#485 は #489 の実装仕様入力になります。(GitHub)BLOCKER
1. FSM が「状態名の列挙」止まりで、仕様として足りない
#485 の AC は
idle | running | victory | defeat | ended等の有限状態を要求していますが、イベント、遷移表、guard、side effect、terminality が未定義です。(GitHub) #489 はこの仕様をもとにSortieSystemとGameState.sortieを実装するため、ここが曖昧だと実装者が ad hoc に boolean を増やす危険があります。(GitHub)最低限、
sortie.mdに以下を明記すべきです。さらに、表で以下を固定してください。
from | event | guard | to | side effect -- | -- | -- | -- | -- idle | START_SORTIE | none | running | elapsedTicks/result を初期化 running | FIXED_TICK | playerHp <= 0 | defeat | result を一度だけ生成 running | FIXED_TICK | elapsedTicks >= targetTicks | victory | result を一度だけ生成 victory/defeat | ACK_RESULT | none | ended | result は再生成しない ended | any tick | none | ended | no-opFSM は「状態名」だけでは不十分です。状態遷移モデルでは、イベントにより有効な transition が選ばれ、action が実行される、という契約まで定義する必要があります。(Stately)
2. 同一 tick で勝利条件と敗北条件が同時成立した場合の裁定がない
#485 は「120 秒生存で victory」「player HP 0 で defeat」を要求しています。(GitHub) #489 も同じ条件で実装する前提です。(GitHub) しかし、固定 tick の最後に敵接触ダメージで HP が 0 になり、同じ tick で 120 秒にも到達した場合、
victoryとdefeatのどちらにするかが未定義です。これはテストの flake ではなく、ゲームルール上の仕様穴です。推奨は以下です。
この裁定を入れないなら、少なくとも「victory 優先」と明記すべきです。無記載は不可です。
3. timer authority が固定 timestep と panic clamp まで落ちていない
#485 は timer authority を “simulation time / fixed timestep elapsed” としていますが、これだけでは弱いです。(GitHub) 既存の movement spec は 60Hz fixed timestep accumulator を前提にし、simulation time は「実行された tick」のみを権威としています。(GitHub) 実装済み
SimulationLoopもfixedDeltaMsごとに step を実行し、maxFrameSkip超過時は panic discard を返す構造です。(GitHub)外部仕様上も、
requestAnimationFrameは 60Hz 固定ではなく 75/120/144Hz などの表示環境で変化し、バックグラウンド tab では一時停止されることがあります。(MDN Web Docs) Page Visibility API の説明でも、ブラウザは hidden tab のrequestAnimationFrameや timer を抑制・停止します。(MDN Web Docs)したがって
sortie.mdは次を明記すべきです。さらに 120 秒判定は floating ms ではなく tick ベースに寄せるべきです。
4. result object の shape はあるが、不変条件と算出元が足りない
#485 は
outcome,durationMs,kills,shotsFired,playerHpRemainingを要求しています。(GitHub) ただし、これだけではkillsの算出元、shotsFiredの snapshot timing、playerHpRemainingの clamp、result の immutability が未定義です。#493 の combat-core spec 側では、
EnemyState、defeatedAtTick、CollisionSystemとCombatSystemの責務分離、SortieSystemがdefeatedAtTick !== nullから kills を集約することがレビューコメント上で確認されています。(GitHub) #488 でも projectile-enemy collision、damage、defeat、同一 tick 順序、player HP clamp が実装対象になっています。(GitHub)sortie.mdには最低限これを入れるべきです。不変条件:
MAJOR
5.
victory | defeat | endedの関係が曖昧#485 は
victory,defeat,endedを同列に置いています。(GitHub) これは危険です。victory/defeatが terminal state なのか、endedが terminal state なのか、あるいはvictory/defeatが一瞬の intermediate state なのかが不明です。推奨はどちらかに統一です。
案 A:
案 B:
#485 の文言を維持するなら案 C です。
仕様書では案 C を採用するなら、
endedへの遷移条件を明示してください。6. #485 の docs-only scope と test 要求の書き方が噛み合っていない
#485 は
src/や tests の変更を out of scope にしています。(GitHub) 一方で AC にrelated_testsとして sortie-system test を要求しています。(GitHub) #489 が実際のSortieSystemとテストを作る Issue なので、#485 ではrelated_testsよりもplanned_consumer_testsまたはimplementation_contract_testsとして書く方が正確です。(GitHub)修正案:
7. trace_links の必須リンク集合が弱い
#485 は frontmatter に
trace_linksを要求していますが、どのリンクが必須かを固定していません。(GitHub) 最低限、以下は必須にすべきです。playable-roadmap.mdでも M2 の spec destination としてcombat-core.mdとsortie.mdが明記され、詳細仕様ができたら個別 feature spec が正本になる運用です。(GitHub)ssot-registry.mdも canonical docs catalog として手動登録が必要な構造です。(GitHub)8. 配布物観点では「docs-only だから安全」が成立しない
#485 は docs-only ですが、M2 全体では Vite build 可能な playable artifact に接続されます。親 #483 は one-screen playable sortie、system tests、build pass、DOM/Canvas 分離を close 条件にしています。(GitHub) Vite の production build は静的配布用 bundle を生成する工程なので、仕様が曖昧なままでも build は通ってしまいます。(vitejs)
そのため #485 の docs は「build が通る」ではなく、後続 #489/#490 が検証可能な契約にする必要があります。#490 は WASD、enemy、collision、damage、victory、defeat の playtest evidence を要求するため、#485 側で observable acceptance を定義しておくべきです。(GitHub)
#485 に入れるべき修正文案
Issue 本文の Acceptance Criteria に以下を追加するのが最小修正です。
End-condition evaluation order is explicit:
player.hp <= 0andelapsedTicks >= targetTicksare both true in the same tick,defeatwins.Timer authority is tick-based:
elapsedTicksincrements only inside fixed simulation steps while state isrunning.Date.now(), andperformance.now()MUST NOT directly trigger victory.durationMs.Victory threshold is deterministic:
targetTicks = ceil(120_000 / fixedDeltaMs).elapsedTicks >= targetTicks.SortieResultinvariants are defined:killsderived from defeated enemies at or before terminal tick.shotsFiredsnapshot at terminal tick.playerHpRemainingclamped to[0, player.maxHp].[ ]
planned_consumer_testslists required #489 tests:combat/projectile/enemy mutation does not continue after terminal state.
最終判定
現状: Request changes.
#485 は「何を作るか」は合っています。しかし、#489 実装者に渡す契約としてはまだ粗いです。特に
## 結論same tick precedenceとfixed tick durationを明記しない限り、M2 の勝敗・result・playtest evidence が後から割れます。まず #485 の AC を上記レベルまで締めてからsortie.md作成に進めるべきです。#485 は docs-only の仕様作成 Issue として方向性は妥当ですが、このまま
sortie.mdを作ると #489 の実装で解釈分岐が出ます。特に 状態遷移、同一 tick の勝敗裁定、固定 timestep に基づく duration、result object の不変条件 が曖昧です。私は現状のままなら 実装着手前に修正要求 とします。確認範囲では、#485 自体には紐づく PR/branch がなく、GitHub 上の Development も “No branches or pull requests” です。#485 は親 #483 の子 Issue で、M2 Combat MVP Gate の
sortie lifecycle / 終了条件 / result objectの正本docs/product/features/sortie.mdを作る docs-only Issue です。([GitHub]1) 親 #483 は #484〜#490 を子 Issue として列挙しており、#485 は #489 の実装仕様入力になります。([GitHub]2)BLOCKER
1. FSM が「状態名の列挙」止まりで、仕様として足りない
#485 の AC は
idle | running | victory | defeat | ended等の有限状態を要求していますが、イベント、遷移表、guard、side effect、terminality が未定義です。([GitHub]1) #489 はこの仕様をもとにSortieSystemとGameState.sortieを実装するため、ここが曖昧だと実装者が ad hoc に boolean を増やす危険があります。([GitHub]3)最低限、
sortie.mdに以下を明記すべきです。さらに、表で以下を固定してください。
FSM は「状態名」だけでは不十分です。状態遷移モデルでは、イベントにより有効な transition が選ばれ、action が実行される、という契約まで定義する必要があります。([Stately]4)
2. 同一 tick で勝利条件と敗北条件が同時成立した場合の裁定がない
#485 は「120 秒生存で victory」「player HP 0 で defeat」を要求しています。([GitHub]1) #489 も同じ条件で実装する前提です。([GitHub]3) しかし、固定 tick の最後に敵接触ダメージで HP が 0 になり、同じ tick で 120 秒にも到達した場合、
victoryとdefeatのどちらにするかが未定義です。これはテストの flake ではなく、ゲームルール上の仕様穴です。推奨は以下です。
この裁定を入れないなら、少なくとも「victory 優先」と明記すべきです。無記載は不可です。
3. timer authority が固定 timestep と panic clamp まで落ちていない
#485 は timer authority を “simulation time / fixed timestep elapsed” としていますが、これだけでは弱いです。([GitHub]1) 既存の movement spec は 60Hz fixed timestep accumulator を前提にし、simulation time は「実行された tick」のみを権威としています。([GitHub]5) 実装済み
SimulationLoopもfixedDeltaMsごとに step を実行し、maxFrameSkip超過時は panic discard を返す構造です。([GitHub]6)外部仕様上も、
requestAnimationFrameは 60Hz 固定ではなく 75/120/144Hz などの表示環境で変化し、バックグラウンド tab では一時停止されることがあります。([MDN Web Docs]7) Page Visibility API の説明でも、ブラウザは hidden tab のrequestAnimationFrameや timer を抑制・停止します。([MDN Web Docs]8)したがって
sortie.mdは次を明記すべきです。さらに 120 秒判定は floating ms ではなく tick ベースに寄せるべきです。
4. result object の shape はあるが、不変条件と算出元が足りない
#485 は
outcome,durationMs,kills,shotsFired,playerHpRemainingを要求しています。([GitHub]1) ただし、これだけではkillsの算出元、shotsFiredの snapshot timing、playerHpRemainingの clamp、result の immutability が未定義です。#493 の combat-core spec 側では、
EnemyState、defeatedAtTick、CollisionSystemとCombatSystemの責務分離、SortieSystemがdefeatedAtTick !== nullから kills を集約することがレビューコメント上で確認されています。([GitHub]9) #488 でも projectile-enemy collision、damage、defeat、同一 tick 順序、player HP clamp が実装対象になっています。([GitHub]10)sortie.mdには最低限これを入れるべきです。不変条件:
MAJOR
5.
victory | defeat | endedの関係が曖昧#485 は
victory,defeat,endedを同列に置いています。([GitHub]1) これは危険です。victory/defeatが terminal state なのか、endedが terminal state なのか、あるいはvictory/defeatが一瞬の intermediate state なのかが不明です。推奨はどちらかに統一です。
案 A:
案 B:
#485 の文言を維持するなら案 C です。
仕様書では案 C を採用するなら、
endedへの遷移条件を明示してください。6. #485 の docs-only scope と test 要求の書き方が噛み合っていない
#485 は
src/や tests の変更を out of scope にしています。([GitHub]1) 一方で AC にrelated_testsとして sortie-system test を要求しています。([GitHub]1) #489 が実際のSortieSystemとテストを作る Issue なので、#485 ではrelated_testsよりもplanned_consumer_testsまたはimplementation_contract_testsとして書く方が正確です。([GitHub]3)修正案:
7. trace_links の必須リンク集合が弱い
#485 は frontmatter に
trace_linksを要求していますが、どのリンクが必須かを固定していません。([GitHub]1) 最低限、以下は必須にすべきです。playable-roadmap.mdでも M2 の spec destination としてcombat-core.mdとsortie.mdが明記され、詳細仕様ができたら個別 feature spec が正本になる運用です。([GitHub]11)ssot-registry.mdも canonical docs catalog として手動登録が必要な構造です。([GitHub]12)8. 配布物観点では「docs-only だから安全」が成立しない
#485 は docs-only ですが、M2 全体では Vite build 可能な playable artifact に接続されます。親 #483 は one-screen playable sortie、system tests、build pass、DOM/Canvas 分離を close 条件にしています。([GitHub]2) Vite の production build は静的配布用 bundle を生成する工程なので、仕様が曖昧なままでも build は通ってしまいます。([vitejs]13)
そのため #485 の docs は「build が通る」ではなく、後続 #489/#490 が検証可能な契約にする必要があります。#490 は WASD、enemy、collision、damage、victory、defeat の playtest evidence を要求するため、#485 側で observable acceptance を定義しておくべきです。([GitHub]14)
#485 に入れるべき修正文案
Issue 本文の Acceptance Criteria に以下を追加するのが最小修正です。
最終判定
現状: Request changes.
#485 は「何を作るか」は合っています。しかし、#489 実装者に渡す契約としてはまだ粗いです。特に
same tick precedenceとfixed tick durationを明記しない限り、M2 の勝敗・result・playtest evidence が後から割れます。まず #485 の AC を上記レベルまで締めてからsortie.md作成に進めるべきです。squne121 commentedon May 30, 2026
NotebookLM草案
Issue #485 の要件および「LOOP PROTOCOL」のアーキテクチャ方針に基づき、
docs/product/features/sortie.mdの草案および関連エントリ、レビュー指摘事項を作成しました。1.
docs/product/features/sortie.mdの完成ドラフトSystem Responsibility Boundaries
kills)や発射弾数(shotsFired)は、関連する集計コンポーネントまたはSystemから値を読み取ってマッピングする。Invariants (不変条件)
victoryおよびdefeat判定は、running状態からのみ遷移可能である。victoryまたはdefeatになったフレームで一度だけ生成される。ended状態に遷移した後の状態変異(Mutation)は一切行われない。Non-Goals
本仕様(M2スコープ)では以下を実行しない。
localStorageまたはIndexedDBへの保存(永続化)。Open Questions
killsやshotsFiredの集計値を参照するための Component または Registry の厳密なパス(実装: sortie start-end state machine と result object を実装する #489 実装時に解決)。Related Tests
tests/sortie-system.test.ts(シミュレーション経過と状態遷移の決定論的テスト)Acceptance Criteria
idle | running | victory | defeat | endedとして適切に型定義されている。3. 実装者向けの短い注意点
accumulatorの消費ループから提供される固定deltaを加算してタイマーを管理してください。performance.now()等を条件分岐に混ぜると、タブがバックグラウンドに回った際の巨大なdelta(Spiral of Death)や可変フレームレート環境で状態が壊れます。<= 0の判定を通る可能性があります。running状態からの遷移ガードを確実に行い、Result Objectが毎フレーム生成されるバグを防いでください。endedに遷移する処理は純粋な状態遷移であるべきです。ここで直接UI描画関数をキックしたり、localStorage に書き込んだりしないでください。4. 仕様上の矛盾・不足・曖昧さの指摘(Open Questionsからの抽出)
120,000ms到達とPlayer HP <= 0が全く同じtick内で真になった場合のハンドリングが要件上で未定義です。RTSやアクションの文脈では「死亡(敗北)優先」が一般的ですが、Issue #485の範囲外となるためOpen Questionとして分離しています。killsやshotsFiredの数値をResult Objectに含める要件がありますが、それらの「カウンター」をどこに保持するかの責務が明確ではありません。ECSではPlayerStatsComponentのような集計用コンポーネントを別途設けるのがクリーンですが、この仕様は 実装: sortie start-end state machine と result object を実装する #489 または 実装: combat-core feature spec を作成する #484 で決定する必要があります。5. Issue #485 のAcceptance Criteria充足チェックリスト
docs/product/features/sortie.mdとdocs/dev/ssot-registry.mdのみ。src/とtests/は変更しない。idle | running | victory | defeat | ended)。outcome,durationMs,kills,shotsFired,playerHpRemaining。tests/sortie-system.test.tsを列挙。pnpm typecheck && pnpm lint && pnpm test && pnpm buildが通る前提のdocs-only変更にする(Markdownのみの草案として遵守)。squne121 commentedon May 30, 2026
Contract Review: BLOCKED (2026-05-30T00:40:32Z)
Product Spec Preflight: BLOCKED
判定理由
Issue #485 は
docs/product/features/sortie.mdを新規作成するdocs/product/**への変更を含んでいます。PS004 ルールにより、docs/product/** 更新を含む Issue には以下のいずれか 1 件以上が必要です:
diff_rationale(変更理由)changed_requirement_id(変更された要件 ID)affected_sections(影響セクション)該当ルール
不足項目
Issue 本文に以下のフィールドが存在しません:
推奨アクション
issue-refinement-loopを起動して Issue 本文に PS004 準拠フィールドを追加してください。または Issue 本文の
## Scope Deltaセクション(または## Machine-Readable Contractの yaml block)にdiff_rationaleを直接追記することで解決できます。squne121 commentedon May 30, 2026
Contract Snapshot (2026-05-30T00:46:04Z)
docs/product/features/sortie.mdが作成され、sortie state machine(遷移表含む)/ 終了条件 / timer authority / result object 不変条件が定義された状態でpnpm test && pnpm buildが通っているdocs/product/features/sortie.md,docs/dev/ssot-registry.md.claude/worktrees/issue-485-sortie-feature-specworktree-issue-485-sortie-feature-specsqune121 commentedon May 30, 2026
implement-issue: 実装完了 (2026-05-30T00:49:38Z)
.claude/worktrees/issue-485-sortie-feature-specworktree-issue-485-sortie-feature-specdocs(#485): address human review blockers in sortie feature spec
docs(#485): add sortie feature spec (#501)
Revert "docs(#485): add sortie feature spec (#501)"
feat(#331): add markdownlint-cli2 and textlint prose lint foundation (#…