Skip to content

docs: M2 close_conditions を sortie 正本へ整合 - #1249

Merged
squne121 merged 4 commits into
mainfrom
worktree-issue-1171-m2-playable-roadmap-close-conditions-sor
Jun 30, 2026
Merged

squne121 merged 4 commits into
mainfrom
worktree-issue-1171-m2-playable-roadmap-close-conditions-sor

Conversation

@squne121

@squne121 squne121 commented Jun 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

この PR は roadmap 側の M2 到達条件を sortie 正本に同期し、close gate の false-green を起こしにくい状態へ戻す変更です。マージ時は Closes #1171 として issue を閉じます。

  • docs/product/playable-roadmap.md の M2 close_conditions を docs/product/features/sortie.md の正本定義に整合
  • last_updated_by_issue を 1171 に更新して traceability を修正
  • required な日本語 hygiene gate を満たすため、同一ファイル内の英語見出しブロックには最小限の日本語補足を残す

受け入れ条件の達成状況

各 AC は M2 fenced YAML block と frontmatter の実差分に対応づけて確認しました。

  • AC1 victory: 行で、enemies.length > 0 guard 付きの敵全滅勝利条件を明記
  • AC2 timeout: 行で、30 秒 timeout を neutral terminal として明記
  • AC3 defeat: 行と terminal_priority: defeat > victory > timeout で、HP0 defeat と優先順位を明記
  • AC4 M2 close_conditions で 120 秒生存勝利を正本扱いしない形へ修正
  • AC5 frontmatter last_updated_by_issue: 1171
  • AC6 pnpm run lint:docs PASS
  • AC7 pnpm typecheck PASS
  • AC8 pnpm lint PASS
  • AC9 pnpm test PASS
  • AC10 pnpm build PASS

検証コマンド結果

静的確認と標準 gate を実行し、docs-only 修正として必要な証跡をそろえています。
各コマンドは M2 block に閉じた確認か、repo 標準 gate の再実行として扱っています。

  • AC1確認: rg -nU 'milestone_id: M2[\s\S]*close_conditions:[\s\S]*victory:[\s\S]*spec_destination:' docs/product/playable-roadmap.md PASS
  • AC2確認: rg -nU 'milestone_id: M2[\s\S]*close_conditions:[\s\S]*timeout:[\s\S]*neutral terminal[\s\S]*spec_destination:' docs/product/playable-roadmap.md PASS
  • AC3確認: rg -nU 'milestone_id: M2[\s\S]*close_conditions:[\s\S]*defeat:[\s\S]*terminal_priority: defeat > victory > timeout[\s\S]*spec_destination:' docs/product/playable-roadmap.md PASS
  • AC4確認: rg -nU 'milestone_id: M2[\s\S]*close_conditions:[\s\S]*生存時間ベースの勝利条件は M2 の正本定義として採用しない[\s\S]*spec_destination:' docs/product/playable-roadmap.md PASS
  • AC4補助確認: rg --files-without-match '120秒生存勝利' docs/product/playable-roadmap.md PASS
  • docs lint確認: pnpm run lint:docs PASS
    実行内訳: markdownlint-cli2 0 error / textlint exit 0
  • 型確認: pnpm typecheck PASS
  • lint確認: pnpm lint PASS
  • test確認: pnpm test PASS
  • build確認: pnpm build PASS

Allowed Paths 遵守

scope 外の変更は入れていません。
今回の修正は issue contract の docs-only 制約を守り、roadmap 本文の M2 定義だけを更新しています。

  • 変更ファイルは docs/product/playable-roadmap.md のみ

Runtime Verification Evidence(ランタイム検証)

この Issue は docs-only なので runtime 実行は求めず、静的 gate で閉じています。

  • not_applicable: docs-only close_conditions 整合修正のため runtime 実行は不要

Notes

@github-actions

github-actions Bot commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Preview URL

✅ verified live assets: https://squne121.github.io/loop-protocol/pr-1249/

The preview will be removed when this PR is closed.

@squne121

Copy link
Copy Markdown
Owner Author

判定

REQUEST CHANGES。
M2 close_conditions を sortie 正本へ寄せる本丸は概ね正しいです。PR head では last_updated_by_issue: 1171 に更新され、M2 block 内に victory / timeout / defeat / priority / survival_timer 非採用が入っています。

ただし、merge 前に直すべき点があります。PR は draft のままで、変更は1ファイル16 additions / 11 deletionsですが、Issue #1171 の実質スコープを超えた文書見出し・frontmatter文言の bilingualization が混入しています。

良い点

Runtime との整合は取れています。SORTIE_DURATION_MS は 30_000、terminal priority は defeat > victory > timeout、全敵撃破には enemies.length > 0 guard があり、timeout は outcome: 'timeout' / endReason: 'timeout' で生成されています。

SortieResult 型も victory/all_enemies_defeated、defeat/player_hp_zero、timeout/timeout の discriminated union になっており、survival_timer は型・spec 両方から除外されています。

ブロッカー / 修正要求

P1: Issue #1171 の content scope を超えた変更が混入している

Issue #1171 の対象は docs/product/playable-roadmap.md の M2 close_conditions と frontmatter の last_updated_by_issue です。Allowed Path は満たしていますが、Allowed Content までは満たしていません。

PR head では以下も変更されています。

  • frontmatter title と note の bilingualization。
  • mapping 見出しと readback_date コメント。
  • Conceptual Milestones / M2 見出し。
  • M3 / M4 / M5 / Maintenance Policy 見出し。

これはPRのレビュー面積を不必要に増やしています。M2 close_conditions と last_updated_by_issue 以外は戻すべきです。見出しの日本語併記を入れたいなら、別Issueで「roadmap 日本語補足・用語統一」として扱う方が安全です。

P1: pnpm run lint:docs の証跡がCIから独立確認できない

PR本文は pnpm run lint:docs PASS としていますが、CIの lint job は pnpm lint を実行しているだけです。package.json 上も lint は eslint .、lint:docs は markdownlint-cli2 + textlint で別スクリプトです。

CI全成功自体は確認できますが、docs lint の直接証跡にはなりません。CI run は success でも、Markdown/textlint の証拠としてはPR本文の自己申告止まりです。

修正案はどちらかです。

pnpm run lint:docs

の実行ログをPR本文に明示する。より堅い案は、docs変更PRで pnpm run lint:docs をCI gateに追加することです。

P1: AC4 の rg -nL 扱いは修正が必要

PR本文は rg -nL '120秒生存' docs/product/playable-roadmap.md が command shape のため false-negative になった、と説明しています。方向性は正しいです。ripgrep の -L は “follow symlinks” の短縮であり、「マッチしないファイルを出す」用途では --files-without-match を使うべきです。([GitHub]1)

ただし、今回のPRでは survival_timer を「採用しない」と明記しているため、単純な not_contains survival_timer 検証にすると逆に落ちます。AC4 は「生存時間ベース勝利を正本扱いしていない」ことの検証なので、次のような 否定文の存在確認 に寄せる方が安定します。

# AC4
$ rg -nU 'milestone_id: M2[\s\S]*close_conditions:[\s\S]*生存時間ベースの勝利条件は M2 の正本定義として採用しない[\s\S]*spec_destination:' docs/product/playable-roadmap.md

追加で「古い勝利条件語が残っていない」ことを見るなら、120秒生存勝利 のような具体語だけを --files-without-match で確認してください。

# AC4 supplemental
$ rg --files-without-match '120秒生存勝利' docs/product/playable-roadmap.md

P2: sortie.md 正本側の内部矛盾はPR本文に follow-up として明記すべき

このPRは sortie.md を変更しないのが正しいです。Issue #1171 でも sortie.md 自体の修正は Out of Scope です。

ただし、参照先の sortie.md にはまだ矛盾があります。Intent は「30秒タイムアウトによる敗北」と書いている一方、Authority では timeout を neutral terminal と定義しています。 また Timeout セクションに playerHp <= 0 が Guard 1 として残っており、HP0 defeat と timeout の分離と衝突します。

これは #725 / PR #732 で timeout を defeat から切り離した履歴とも齟齬があります。PR #732 は 30秒到達時の終端を defeat から timeout へ切り離し、Canvas/HUDも中立表示へ更新済みです。

修正要求は、PR本文に以下のような Known follow-up を追加することです。

Known follow-up:
docs/product/features/sortie.md には Intent の「30秒タイムアウトによる敗北」と Timeout section の playerHp <= 0 Guard が残っている。#1171 は Allowed Paths が playable-roadmap.md のみなので、本PRでは修正しない。別Issueで #725 / PR #732 後の neutral timeout 定義へ整合させる。

P2: machine-check 用に priority を完全一致しやすい形へ寄せる

現状の行は意味としては正しいです。

- defeat が victory より優先し、victory が timeout より優先する terminal priority を採用する

ただし、今後のgrep・validatorを考えると、defeat > victory > timeout という canonical token をそのまま入れた方が false-green / false-negative を減らせます。

- terminal_priority: defeat > victory > timeout

また victory 行に enemies.length > 0 guard も明示すると、every() の vacuous truth 問題を roadmap 側でも閉じられます。sortie.md と runtime はすでにこの guard を持っています。

配布物・外部仕様観点

Preview bot は PR preview の live assets を確認していますが、これは docs-only PRの仕様正当性の根拠にはなりません。

GitHub milestone description の stale cleanup は、このPRに混ぜるべきではありません。GitHub REST API では milestone description は更新可能で、gh api でも認証済みAPI呼び出しはできますが、このリポジトリの issue-contract-review skill は milestone metadata のVCには raw gh api ではなく github_metadata_assert を使う方針です。([GitHub Docs]2) ([GitHub CLI]3)

playable-roadmap の fenced YAML 検証は #1183 が既に対象にしています。CommonMark上、fenced code block はinfo string付きのリテラルブロックなので、今後はグローバルgrepではなく、fence抽出 → YAML parse → block内検証へ寄せるべきです。 ([CommonMark仕様]4)

merge 前チェックリスト

  1. docs/product/playable-roadmap.md の無関係な bilingualization を戻す。
  2. M2 close_conditions は維持しつつ、できれば terminal_priority: defeat > victory > timeout と enemies.length > 0 guard を追加する。
  3. PR本文の AC4 検証から rg -nL を排除し、否定文の存在確認または --files-without-match に修正する。
  4. pnpm run lint:docs の直接ログをPR本文に残す。
  5. sortie.md 内部矛盾、GitHub milestone 4 metadata、実装: playable-roadmap の fenced YAML block / path existence validator を追加する #1183 validator は Known follow-up として明記する。
  6. Draft を解除するのは上記修正後。現状のまま merge-ready 表現は避けるべきです。

@squne121
squne121 marked this pull request as ready for review June 30, 2026 12:39
@squne121
squne121 merged commit 36e8828 into main Jun 30, 2026
18 checks passed
@squne121
squne121 deleted the worktree-issue-1171-m2-playable-roadmap-close-conditions-sor branch June 30, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

実装: M2 playable-roadmap の close_conditions を sortie.md の正本定義と整合させる

1 participant