Skip to content

docs: sync M4 roadmap readback with milestone 2 title - #1190

Merged
squne121 merged 3 commits into
mainfrom
worktree-issue-1169-milestone-readback
Jun 26, 2026
Merged

squne121 merged 3 commits into
mainfrom
worktree-issue-1169-milestone-readback

Conversation

@squne121

@squne121 squne121 commented Jun 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • 本 PR の概要:

  • GitHub milestone 2 のタイトルを M4: Upgrade Loop (v0.4.x) に rename しました。

  • docs/product/playable-roadmap.md の M4 mapping row / M4 YAML block / readback date を readback に合わせて同期しました。

  • M2 の表記は保持しています。

Checks

  • 実施した確認コマンド:
- gh api repos/squne121/loop-protocol/milestones/2 --jq '{number,title,state,open_issues,closed_issues,description,due_on,updated_at}'
- pnpm typecheck
- pnpm lint
- pnpm test
- pnpm build

Schema Change Applicability

  • スキーマ変更の有無:

  • decision: not_schema_change

  • reason: docs 更新と GitHub metadata rename で、システムスキーマの producer-consumer 境界を変更していないため

Schema Consumer Inventory

  • 対象 schema がないため未適用:

未適用(not_schema_change)

Safety Claim Matrix

  • 安全性と証跡:
Claim Implemented? Not controlled Evidence Follow-up
docs-only / milestone metadata rename の手順と readback が PR で追跡できる yes MILESTONE_READBACK_V1 を Issue Comment に記録。pnpm typecheck / lint / test / build / readback grep の確認が完了 N/A

Notes

repo: squne121/loop-protocol
milestone_number: 2
expected_title: "M4: Upgrade Loop (v0.4.x)"
actual_title: "M4: Upgrade Loop (v0.4.x)"
state: open
readback_at_utc: "2026-06-26T22:06:41Z"
command: gh api repos/squne121/loop-protocol/milestones/2 --jq '{number, title, state, open_issues, closed_issues, description, due_on, updated_at}'

受け入れ条件の達成状況

  • AC1: GitHub milestone 2 のライブ readback が MILESTONE_READBACK_V1 で記録され、actual_title: "M4: Upgrade Loop (v0.4.x)" が確認できる
  • AC2: docs/product/playable-roadmap.md の M4 mapping table が github_milestone_number: 2 / github_milestone_title: M4: Upgrade Loop (v0.4.x) / mapping_status: aligned を満たしている
  • AC3: M4 の YAML block が github_milestone_number: 2, github_milestone_title: "M4: Upgrade Loop (v0.4.x)", mapping_status: aligned を満たしている
  • AC4: docs/product/playable-roadmap.md の readback_date が 2026-06-27 へ更新済み
  • AC5: M2 の主要記述(M2: Gameplay Core (v0.2.x) / M2: Combat MVP Gate (v0.2.x))は保持されている
  • AC6: pnpm typecheck が PASS
  • AC7: pnpm lint が PASS
  • AC8: pnpm test が PASS
  • AC9: pnpm build が PASS

検証コマンド結果

  • rtk gh issue view 1169 --repo squne121/loop-protocol --comments
  • rg -n \"M4 .*M4: Upgrade Loop \\(v0\\.4\\.x\\).*2 .*M4: Upgrade Loop \\(v0\\.4\\.x\\).*aligned\" docs/product/playable-roadmap.md
  • rg -nU \"milestone_id: M4[\\s\\S]*?github_milestone_number: 2[\\s\\S]*?github_milestone_title: \"M4: Upgrade Loop \\(v0\\.4\\.x\\)\"[\\s\\S]*?mapping_status: aligned\" docs/product/playable-roadmap.md
  • rg -n '^readback_date: 2026-06-27$' docs/product/playable-roadmap.md
  • rg -n 'M2 .*M2: Gameplay Core \\(v0\\.2\\.x\\).*4 .*M2: Combat MVP Gate \\(v0\\.2\\.x\\).*mismatch_pending_rename' docs/product/playable-roadmap.md
  • pnpm typecheck
  • pnpm lint
  • pnpm test
  • pnpm build

Allowed Paths 遵守

@github-actions

github-actions Bot commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

Preview URL

Preview removed (PR #1190 closed).

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOOP_VERDICT_V2

verdict: APPROVE
reviewed_head_sha: "157420296ac6b06e7cb502bc9d5d909ff3280b77"
merge_ready: false
mergeability:
  mergeable: MERGEABLE
  merge_state_status: BEHIND
blockers: []
required_auto_actions:
  - kind: update_pr_body_hygiene
    executor: implementation-worker
    skill: open-pr.update_pr
    blocking_merge_ready: true
    mechanical: true
  - kind: update_branch
    executor: implementation-worker
    skill: implement-issue.update_branch
    blocking_merge_ready: true
    mechanical: true
    expected_head_sha: "157420296ac6b06e7cb502bc9d5d909ff3280b77"
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
  status: ok
allowed_paths_gate_source: review_subagent

@squne121

Copy link
Copy Markdown
Owner Author

判定

Request changes / merge block。
PR #1190 は docs/product/playable-roadmap.md だけを変更して M4 mapping を aligned にしていますが、根拠である GitHub milestone 2 の live rename が外部観測と矛盾しています。PR本文は milestone 2 の actual_title を M4: Upgrade Loop (v0.4.x) と主張し、diff も M4 row / YAML block を aligned へ変更しています。 しかし公開 milestone ページでは、milestone 2 が依然として M4: UX MVP Gate (v0.4.x)、説明文も旧 UX 境界のまま表示されています。([GitHub]1)

これは「GitHub UI のキャッシュ」等の可能性を完全には排除できません。ただし、このPRの正しさは live GitHub metadata と docs readback の一致に依存しているため、fresh REST readback と公開表示の矛盾説明がない限り merge すべきではありません。


参照した主要文脈

PR #1190 は open / draft で、現在の head は 79d58861dcaae275aaac6f3e6b2a2984dac0de97、変更ファイルは1件です。

関連Issue #1169 は、GitHub milestone 2 title を M4: Upgrade Loop (v0.4.x) へ更新し、docs/product/playable-roadmap.md の M4 mapping table / M4 YAML block / readback_date を live readback に同期し、MILESTONE_READBACK_V1 を残すことを要求しています。 また、AC1 は MILESTONE_READBACK_V1 に milestone_number: 2、actual_title: "M4: Upgrade Loop (v0.4.x)"、state: open が含まれることを要求しています。

#1176 は M4 Upgrade Loop の parent tracker で、#1169 を child issue として扱い、最終ゴールを sortie → resource獲得 → upgrade → 次sortieでの挙動変化に置いています。 #1094 / PR #1102 は先行作業として、M4 が GitHub milestone 2 の旧タイトル M4: UX MVP Gate (v0.4.x) と mismatch していることを docs に記録し、GitHub milestone object の rename/create/close は out of scope に残していました。


P0 / Blocker 1: live metadata rename の証跡が信用できない

PR本文は MILESTONE_READBACK_V1 で milestone 2 の actual_title が M4: Upgrade Loop (v0.4.x) だと主張しています。 しかし公開 milestone ページは旧タイトル M4: UX MVP Gate (v0.4.x) と旧説明を示しています。([GitHub]1)

GitHub REST APIの milestone endpoint は milestone_number を path parameter として milestone を取得・更新し、update endpoint は PATCH /repos/{owner}/{repo}/milestones/{milestone_number} に title を渡す仕様です。([GitHub Docs]2) したがって、PR本文には少なくとも以下の fresh readback を再掲すべきです。

gh api repos/squne121/loop-protocol/milestones/2 \
  --jq '{number,title,state,open_issues,closed_issues,description,due_on,updated_at,html_url}'

さらに、PR本文に記載されている操作コマンドは gh api PATCH repos/... 形式です。gh api は endpoint を引数に取り、HTTP method は --method で指定する仕様なので、更新コマンドとしては次の形式に修正すべきです。([GitHub CLI]3)

gh api --method PATCH repos/squne121/loop-protocol/milestones/2 \
  -f title='M4: Upgrade Loop (v0.4.x)'

この矛盾が解消されるまで、docs/product/playable-roadmap.md の mapping_status: aligned は false green です。


P0 / Blocker 2: 既存レビューは current head をレビューしていない

PRコメントには LOOP_VERDICT_V2 の verdict: APPROVE が存在しますが、reviewed head は 157420296ac6b06e7cb502bc9d5d909ff3280b77 です。一方、現在のPR headは 79d58861dcaae275aaac6f3e6b2a2984dac0de97 です。さらにそのレビューは merge_ready: false、merge_state_status: BEHIND、必要アクションとして branch update / PR body hygiene を挙げています。

現在headのCI workflowは成功していますが、PRは draft のままであり、stale review の APPROVE 風コメントを merge readiness の根拠にしてはいけません。


P1: docs-only PRなのに pnpm run lint:docs の証跡がない

PRの変更対象は Markdown 1ファイルですが、PR本文の確認コマンドは pnpm typecheck / pnpm lint / pnpm test / pnpm build で、pnpm run lint:docs がありません。

このrepoには lint:md、lint:prose、それらを束ねる lint:docs が定義されています。 #1167 / PR #1180 でも docs-only 変更に対して pnpm run lint:docs をACに入れていました。

修正要求:

pnpm run lint:docs
pnpm typecheck
pnpm lint
pnpm test
pnpm build

をPR本文の検証結果に追加してください。


P1: last_updated_by_issue が stale

PR head の docs/product/playable-roadmap.md は、frontmatter の last_updated_by_issue が 1167 のままです。 しかしこのPRは同ファイルの readback_date、M4 mapping row、M4 YAML block を更新しています。

last_updated_by_issue が「最後にこの文書を意味的に更新したIssue」を表すなら 1169 にすべきです。もし「前回のpath-reference修正を示す履歴」として保持したいなら、単一値frontmatterではなく、別の履歴フィールドや本文の change log に分離しないと provenance が壊れます。


P1: milestone description の旧UX語彙を未処理のままにしている

#1169 は milestone title 以外の GitHub metadata、特に description の変更を out of scope にしています。 その判断自体は最小変更として理解できます。ただし公開 milestone ページでは title だけでなく description も旧UX境界を示しています。(GitHub)

title rename 後も description が旧境界のまま残るなら、UI上は依然として milestone identity が混線します。今回 description を触らないなら、PR本文かIssueコメントに以下を追加すべきです。

MILESTONE_DESCRIPTION_STALE_CHECK_V1:
  milestone_number: 2
  description_contains_legacy_ux_scope: true|false
  decision: "out_of_scope"
  follow_up_issue: "#<number>"

現状のままだと、「titleだけaligned、descriptionはUX」の中途半端な状態を reviewer が見落とします。


P2: #1171 との same-file conflict がまだ残る

#1171 は同じ docs/product/playable-roadmap.md の M2 close_conditions を sortie.md の正本定義と整合させるIssueです。 #1190 のAC5は M2 の主要表記保持を確認していますが、#1171 の未解決差分を吸収するものではありません。#1171 がこの後PR化されると、同じM2 block周辺で再base/再reviewが必要になります。

これは #1190 の直接blockerではありませんが、merge順序は明示すべきです。

#1190 merge 後、#1171 は main に rebase して M2 close_conditions のみを変更する。
#1190 側は M2 close_conditions を正規化したとは主張しない。

技術・配布物観点の高品質化メモ

#1190 自体は metadata/docs sync に閉じるべきで、M4 runtime実装を混ぜるべきではありません。ただし、#1176 / #1170 以降の実装Issueには以下を hard requirement として入れるべきです。

Upgrade / resource 実装

resource.md は resources を非負 safe integer、初期値0、上限 9_999_999、invalid fallback 0、terminal SortieResult 1件につき exactly-once reward application と定義しています。 RewardSystem も RESOURCE_CAP = 9_999_999、PER_SORTIE_REWARD_CAP = 500、terminal outcome pair validation、claim ledger による二重claim防止を実装しています。

M4 upgrade 実装では、resource debit を以下の順序で atomic に扱うべきです。

1. cost が non-negative safe integer であることを検証
2. resources >= cost を検証
3. resources を debit
4. upgrade を apply
5. GameSnapshot を作成
6. storage.save() 成功時だけ UI に success を出す

保存対象は GameSnapshot の schemaVersion / resources / weaponPower / playerMaxHp で、createGameSnapshot() も同じ3フィールドを出しています。 SortieResult は永続化対象ではなく transient です。

また、projectile は発射時点の state.progress.weaponPower を damage に snapshot する設計です。 したがって upgrade 後の weaponPower は 既存projectileへretroactive適用しない、次に発射されるprojectileまたは次sortieから効く、という仕様を upgrade.md に明記すべきです。

localStorage / preview / GitHub Pages 配布

MDNは localStorage を document origin 単位の永続保存として説明しており、file: / data: origin やユーザー設定で persistence が拒否される場合は SecurityError があり得ます。([MDN Web Docs]4) repo側の persistence spec も、HTTP origin前提、file:// 非保証、same-origin path間のlocalStorage共有、production / PR preview / E2E のstorage key分離を定義しています。

ViteのGitHub Pages配布では、https://<USER>.github.io/<REPO>/ 配下なら base は /<REPO>/ が必要です。Viteはbuild stepを要するため、GitHub PagesではGitHub Actionsによるbuild/deployが想定されます。([vitejs]5) repoの vite.config.ts は VITE_BASE_PATH を正規化して base に渡し、workflow は main で /<repo>/、PR preview で /<repo>/pr-<number>/ を設定してasset baseを検証しています。

Viteの VITE_* env は client bundle に露出するため、VITE_LOOP_STORAGE_NAMESPACE はPR番号namespaceのような非秘密値に限定すべきです。([vitejs]6) repoの LocalGameStorage は VITE_LOOP_STORAGE_NAMESPACE を pr-<number> 形式に正規化し、PR preview用key loop-protocol.preview.pr-<n>.mvp.save を生成しています。 この設計は妥当です。

ただし、PRコメントの verified live assets は配布物のasset base確認としては有用ですが、GitHub milestone metadata rename の証拠ではありません。


そのまま貼れるレビューコメント案

## Review: Request changes

P0: Do not merge yet.

This PR changes `docs/product/playable-roadmap.md` so that M4 / GitHub milestone 2 is marked `aligned`, and the PR body claims a live readback with `actual_title: "M4: Upgrade Loop (v0.4.x)"`. However, the public milestone page for milestone 2 still shows `M4: UX MVP Gate (v0.4.x)` and the old UX-scope description. Until this contradiction is resolved with a fresh REST readback, the docs change is a false-green risk.

Please re-run and paste the exact output:

```bash
gh api repos/squne121/loop-protocol/milestones/2 \
  --jq '{number,title,state,open_issues,closed_issues,description,due_on,updated_at,html_url}'

If the title still needs to be changed, the documented command should use --method PATCH:

gh api --method PATCH repos/squne121/loop-protocol/milestones/2 \
  -f title='M4: Upgrade Loop (v0.4.x)'

P0: The existing LOOP_VERDICT_V2 review is stale. It reviewed head 157420..., while the current PR head is 79d588..., and it still says merge_ready: false / BEHIND. Please get a fresh review after branch update and PR-body hygiene.

P1: Add pnpm run lint:docs evidence. This is a Markdown-only PR and the repo has a dedicated docs lint script.

P1: last_updated_by_issue remains 1167 even though this PR updates the same roadmap file for #1169. Either update it to 1169 or explain the provenance rule.

P1: If milestone description remains out of scope, add a stale-description readback and a follow-up issue. Title-only alignment with an old UX description is still confusing in the GitHub UI.

@squne121
squne121 marked this pull request as ready for review June 26, 2026 23:04
@squne121
squne121 merged commit 8eea181 into main Jun 26, 2026
18 checks passed
@squne121
squne121 deleted the worktree-issue-1169-milestone-readback branch June 26, 2026 23:04
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.

実装: GitHub milestone 2 を Upgrade Loop へ rename し playable-roadmap の mapping_status を aligned に更新する

1 participant