Repository navigation
Closed
6 / 66 of 6 issues completedLabels
trackingParent tracker issue
Milestone
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: parent
goal_ref: "GitHub Milestone オブジェクトを実体化し、capability gate M1: Foundation Gate (v0.1.x) を GitHub Milestone として作成・Issue 割当・進捗 rollup できる運用基盤を SSOT 化する"
change_kind: workflow
parent_mode: delivery-rollup
closure_mode: child-completeSummary
#40 から切り出された GitHub Milestone 運用の実体化 parent tracker。#40 が整備する AI 実装前提基盤(DoR / state ラベル / Plan Mode)を前提に、GitHub Milestone オブジェクトの作成・割当・進捗導線を child issue として束ねる。
Goal
GitHub Milestone オブジェクトを実体化し、capability gate M1: Foundation Gate (v0.1.x) を GitHub Milestone として作成・Issue 割当・進捗 rollup できる運用基盤を SSOT 化する。
Desired Destination
docs/dev/milestone-ops.mdが存在し、Milestone / Parent Issue / Implementation Issue / PR の責務分担・命名・close 条件・人間操作フローが SSOT 化されているM1: Foundation Gate (v0.1.x)に対応する GitHub Milestone オブジェクトが存在し、title / description / due_on 方針がdocs/dev/milestone-ops.mdと整合している- 既存 Issue 群が GitHub Milestone に割り当てられ、含める/含めない判定理由が記録されている
- AI が milestone 進捗を rollup し、人間へ「現在の milestone 状態 / 次に着手すべき Issue / blocked 理由」を提示する手順または skill が存在する
Current Validated Scope
- M-A1:
docs/dev/milestone-ops.md作成(Milestone / Parent Issue / Implementation Issue / PR の責務・命名・close 条件・人間操作フローを SSOT 化) - M-A2:
M1: Foundation Gate (v0.1.x)を GitHub Milestone オブジェクトに materialize(作成・更新・readback)— blocked-by M-A1 - M-A3: 既存 Issue 群の GitHub Milestone 割当設計(含める/含めない判定理由を記録)— blocked-by M-A1
- M-A4: milestone rollup / next-action 導線(open/closed 数・blocked/ready・次着手 Issue を人間向けに提示する手順または skill)— blocked-by M-A1
- M-A5: playable outcome roadmap(
docs/product/game-overview.mdの MVP Loop を Foundation Gate 後の playable milestone 群に落とす)— blocked-by M-A1
Decisions Fixed
- 2026-05-21: 本 parent は 導入: Issue contract / DoR / dependency 判定による AI 実装前提基盤の整備 (parent) #40 の refinement(anchor コメント 導入: Issue contract / DoR / dependency 判定による AI 実装前提基盤の整備 (parent) #40 (comment) 案A)により切り出された。導入: Issue contract / DoR / dependency 判定による AI 実装前提基盤の整備 (parent) #40 は AI 実装前提基盤の整備 parent として前提 Issue 扱い
- 2026-05-21: 出典コメント — ChatGPT 回答 導入: Issue contract / DoR / dependency 判定による AI 実装前提基盤の整備 (parent) #40 (comment) / 敵対的レビュー 導入: Issue contract / DoR / dependency 判定による AI 実装前提基盤の整備 (parent) #40 (comment)
- 2026-05-21: 導入: Issue contract / DoR / dependency 判定による AI 実装前提基盤の整備 (parent) #40 が Remaining Parent Gaps に置いていた「B 系(playable outcome milestone)」は本 parent の M-A5 として統合
- 2026-05-21: M-A1(milestone-ops SSOT)が依存根。M-A2〜M-A5 の scope は M-A1 完了後に確定する
- 2026-05-21: anchor comment #issuecomment-4508115760 により M-A2〜M-A5 を即時起票(child materialization gate 追加)。delivery-rollup parent の close 条件に materialization invariant を追加
Quality Decision Record
Status: N/ADecision Date: N/ADoes this prove the parent goal complete?: N/AReason: delivery-rollup parent のため quality-gate 判定は不要Evidence: N/ANext Action: M-A2〜M-A5 child issue(実装: M1 Foundation Gate GitHub Milestone object を materialize する (M-A2) #145, 実装: 既存 Issue 群の GitHub Milestone 割当設計と readback を行う (M-A3) #146, 実装: milestone rollup / next-action 導線を作る (M-A4) #147, 実装: post-M1 playable outcome roadmap を docs/product/playable-roadmap.md に記録する (M-A5) #148)が起票済み。M-A1 child issue(実装: docs/dev/milestone-ops.md 作成 — Milestone 運用 SSOT 化 (M-A1) #134)をissue-contract-reviewで preflight し、impl-review-loopで着手する
Parent Closure Rule
- delivery-rollup: M-A1〜M-A5 + M-A2b の全 child issue(実装: docs/dev/milestone-ops.md 作成 — Milestone 運用 SSOT 化 (M-A1) #134, 実装: M1 Foundation Gate GitHub Milestone object を materialize する (M-A2) #145, 実装: 既存 Issue 群の GitHub Milestone 割当設計と readback を行う (M-A3) #146, 実装: milestone rollup / next-action 導線を作る (M-A4) #147, 実装: post-M1 playable outcome roadmap を docs/product/playable-roadmap.md に記録する (M-A5) #148, 実装: M1 Milestone description を Payload Contract 値に更新する (M-A2b) #183)が close されており、かつ parent body に
未起票/unmaterializedchild slot が存在しないとき本 parent を close する - quality-gate: N/A
- routing-map: N/A
- decision-log: N/A
- 非
quality-gateparent のQuality Decision Recordは N/A 扱いでよく、close 判定の必須材料にしない
Child Issues
- 実装: docs/dev/milestone-ops.md 作成 — Milestone 運用 SSOT 化 (M-A1) #134 (M-A1) —
docs/dev/milestone-ops.md作成(milestone 運用 SSOT 化) - 実装: M1 Foundation Gate GitHub Milestone object を materialize する (M-A2) #145 (M-A2) —
M1: Foundation Gate (v0.1.x)を GitHub Milestone オブジェクトに materialize(blocked-by M-A1) - 実装: 既存 Issue 群の GitHub Milestone 割当設計と readback を行う (M-A3) #146 (M-A3) — 既存 Issue 群の GitHub Milestone 割当設計(blocked-by M-A1)
- 実装: milestone rollup / next-action 導線を作る (M-A4) #147 (M-A4) — milestone rollup / next-action 導線(blocked-by M-A1)
- 実装: post-M1 playable outcome roadmap を docs/product/playable-roadmap.md に記録する (M-A5) #148 (M-A5) — playable outcome roadmap(blocked-by M-A1)
- 実装: M1 Milestone description を Payload Contract 値に更新する (M-A2b) #183 (M-A2b) — M1 Milestone description を Payload Contract 値に更新する(実装: M1 Foundation Gate GitHub Milestone object を materialize する (M-A2) #145 AC5 follow-up)
Remaining Parent Gaps
- M-A2〜M-A5 の詳細 scope は M-A1(
docs/dev/milestone-ops.md)完了後に確定する - GitHub Milestone API 自動化の実装範囲(人間操作のみか AI 操作まで許容するか)は M-A1 SSOT 完了後に判断する
- playable milestone 群の定義(M-A5)は M-A1 の命名規則確定後に具体化する
Phase Handoff Contract
Desired Destination: 上記 Desired Destination セクション参照Current Validated Scope: 上記 Current Validated Scope セクション参照Remaining Parent Gaps: 上記 Remaining Parent Gaps セクション参照Current Objective: M-A1 child issue(docs/dev/milestone-ops.md作成)を着手するBounded Current Context: 本 Issue 本文 + 導入: Issue contract / DoR / dependency 判定による AI 実装前提基盤の整備 (parent) #40 Remaining Parent Gaps + 導入: Issue contract / DoR / dependency 判定による AI 実装前提基盤の整備 (parent) #40 (comment)Normative References:.claude/rules/project-constitution.mddocs/dev/github-ops.mddocs/dev/agent-skill-boundaries.mddocs/product/requirements.mddocs/dev/current-focus.mddocs/product/game-overview.md
Allowed Paths: parent tracker のため直接ファイル変更なし(child issue 側で個別管理)Required Skills: なし(child issue 側で個別定義)Validation Commands:gh issue view <child_number> --repo squne121/loop-protocol --json stateStop Conditions:- 単一 child の Allowed Paths が本 Issue Outcome を越えそうな場合は新規 child Issue として切り出す
- M-A2〜M-A5 の scope 判定が M-A1 完了前に必要になった場合は人間判断へエスカレート
- GitHub Milestone API の push 権限が不足している場合は人間操作フローに切り替える
Open Questions:- GitHub Actions での milestone 自動割当は M-A1 確定後に判断
Next Action: M-A2〜M-A5 child issue(実装: M1 Foundation Gate GitHub Milestone object を materialize する (M-A2) #145, 実装: 既存 Issue 群の GitHub Milestone 割当設計と readback を行う (M-A3) #146, 実装: milestone rollup / next-action 導線を作る (M-A4) #147, 実装: post-M1 playable outcome roadmap を docs/product/playable-roadmap.md に記録する (M-A5) #148)が起票済み。M-A1 child issue(実装: docs/dev/milestone-ops.md 作成 — Milestone 運用 SSOT 化 (M-A1) #134)をissue-contract-reviewで preflight し、impl-review-loopで着手するArtifact Refs:- 導入: Issue contract / DoR / dependency 判定による AI 実装前提基盤の整備 (parent) #40(前提 parent): 導入: Issue contract / DoR / dependency 判定による AI 実装前提基盤の整備 (parent) #40
- 敵対的レビュー: 導入: Issue contract / DoR / dependency 判定による AI 実装前提基盤の整備 (parent) #40 (comment)
- GitHub Milestone Docs: https://docs.github.com/en/issues/using-labels-and-milestones-to-track-work/about-milestones
- GitHub Milestones REST API: https://docs.github.com/en/rest/issues/milestones
Handoff Prompt Draft: 「M-A1 child issue(docs/dev/milestone-ops.md作成)をissue-contract-reviewで preflight し、go 判定ならimpl-review-loopで実装してください」
Child Materialization Gate
この parent は delivery-rollup / child-complete であるため、Current Validated Scope、Child Issues、Acceptance Criteria に列挙された M-A1〜M-A5 は、すべて GitHub Issue として materialize されていなければならない。
issue-refinement-loopは、(未起票)child slot が 1 件でも残っている状態でapproved終了してはならない。impl-review-loopは、parent issue に未起票 child slot が残っている場合、child implementation issue の実装に進んではならない。post-merge-cleanupは、parent body に未起票/unmaterialized/ child slot placeholder が残っている場合、native sub-issues が全 closed でも parent close を推奨してはならない。- parent close 条件は「M-A1〜M-A5 の concrete GitHub Issue number が本文に存在し、全 issue が closed で、parent body に未起票 child slot が存在しないこと」とする。
Acceptance Criteria
- AC1: M-A1 child issue が起票され close されている(
docs/dev/milestone-ops.mdが SSOT 化されている) - AC2: M-A2 child issue が起票され close されている(
M1: Foundation Gate (v0.1.x)に対応する GitHub Milestone オブジェクトが存在する) - AC3: M-A3 child issue が起票され close されている(既存 Issue 群の GitHub Milestone 割当判定理由が記録されている)
- AC4: M-A4 child issue が起票され close されている(milestone rollup / next-action 導線が存在する)
- AC5: M-A5 child issue が起票され close されている(playable outcome roadmap が
docs/product/game-overview.mdと整合する形で存在する)
Notes
- GitHub Milestone は label / issue dependency と別機能。description / due date / 完了率 / open-closed issue 数を持つリポジトリ上の管理対象(出典: https://docs.github.com/en/issues/using-labels-and-milestones-to-track-work/about-milestones)
- GitHub REST API に milestones の list/create/update/delete(
/repos/{owner}/{repo}/milestones)と、Issue 更新 API のmilestoneパラメータ(PATCH /repos/{owner}/{repo}/issues/{issue_number})があり materialize / readback / assignment を自動化できる。push 権限が必要。API バージョン2022-11-28推奨(出典: https://docs.github.com/en/rest/issues/milestones) - 現行 docs(
docs/dev/current-focus.md,docs/product/requirements.md)には概念上のM1: Foundation Gate (v0.1.x)が存在するが、GitHub Milestone オブジェクトへの対応付けはない。docs/dev/milestone-ops.mdは未存在
Sub-issues
Collapse Sub-issuesSub-issues
Loading 6 sub-issues
Metadata
Metadata
Assignees
Labels
trackingParent tracker issue
Activity
squne121 commentedon May 21, 2026
何回か指摘しているのだけど、
(M-A2, 未起票) — M1: Foundation Gate (v0.1.x) を GitHub Milestone オブジェクトに materialize(blocked-by M-A1)
(M-A3, 未起票) — 既存 Issue 群の GitHub Milestone 割当設計(blocked-by M-A1)
(M-A4, 未起票) — milestone rollup / next-action 導線(blocked-by M-A1)
(M-A5, 未起票) — playable outcome roadmap(blocked-by M-A1)
みたいな未起票後続issueを残して issue-refinement-loop をやめるのを禁止してほしい。
なぜなら、その状態で起票されている impl-review-loop を終えると、親issueがクローズされる可能性がある。
squne121 commentedon May 21, 2026
判定: No-Go as-is / Blocker
#133 はこのまま
issue-refinement-loop: approvedにしてはいけません。ユーザーコメントの懸念は妥当です。理由は、#133 がdelivery-rollup/child-completeparent でありながら、M-A2〜M-A5 を「未起票」の文字列 checklist として保持しているためです。#133 の AC2〜AC5 は「child issue が起票され close されている」ことを要求している一方、Child Issues では M-A2〜M-A5 が未起票のままです。これは parent の close 条件と実体管理が乖離しています。あなたのコメントは、まさにこの構造欠陥を指摘しています。「未起票後続 issue を残して issue-refinement-loop をやめるのは禁止」という要求は、運用品質の好みではなく、parent tracker の安全性要件です。
最大の事故シナリオ
危険な経路は次です。
この事故は机上の空論ではありません。
post-merge-cleanupは merged PR から linked issue → parent issue → sub_issues を辿り、全 child が closed なら parent close を推奨する設計です。一方、#133 本文上の「(M-A2, 未起票)」のような文字列 slot を native sub-issue と同等に扱う guard は見当たりません。さらに
impl-review-loopは implementation child を実装・検証・PR review してLOOP_VERDICT: APPROVEで終了する設計で、parent body の未起票 child slot を検査する責務を持っていません。敵対的レビュー findings
Blocker 1: #133 は「child-complete parent」なのに child が materialize されていない
#133 の Machine-Readable Contract は
parent_mode: delivery-rollup/closure_mode: child-completeです。repo のgithub-ops.mdでも、delivery-rollupは child implementation の完了を rollup して close する parent mode と定義されています。そのため、M-A2〜M-A5 を parent closure rule に含めるなら、最初から GitHub Issue として materialize されている必要があります。詳細 scope が未確定でも、少なくとも blocked shell issue として起票すべきです。
Blocker 2: #134 は #133 の最初の child にすぎず、親完了を証明しない
#134 は
docs/dev/milestone-ops.mdを作る M-A1 issue であり、M-A2 の Milestone object 作成、M-A3 の既存 Issue 割当、M-A4 の rollup 導線、M-A5 の playable roadmap はすべて Out of Scope です。つまり、#134 が完了しても #133 の Desired Destination はほとんど達成されません。#134 の成功をもって #133 の native children が全完了扱いになる設計は破綻します。
Blocker 3:
issue-refinement-loopに「未起票 child slot 禁止」guard がないissue-refinement-loopはreview-issueが approve を返すと終了します。また、adversarial review は採用しないという guardrail があるため、今回のような「構造上は整って見えるが運用事故を誘発する」問題が approve をすり抜ける可能性があります。したがって、これは #133 本文だけでなく、skill 側にも guard を追加すべき問題です。
High 4: #40 がまだ完了していないのに #133/#134 が進行可能になっている
#133 は #40 の AI 実装前提基盤を前提にした parent です。しかし #40 はまだ open で、残 child #78 も open です。
#133 を #40 完了後の運用実体化 issue と位置付けるなら、#133 または #134 は #40/#78 に明示 dependency を持つべきです。現状の「前提扱い」という文章だけでは、AI の着手可能性判定に十分ではありません。
技術仕様から見た高品質化方針
GitHub Milestone は、Issue/PR 群の進捗を追跡し、description、due date、completion percentage、open/closed issue 数などを持つ管理対象です。#133 の M-A2 は GitHub Milestone object を実際に作成し、readback する issue として切るのが正しいです。([GitHub Docs]1)
GitHub REST API には milestone の list/create/get/update/delete があり、create では
titleが必須、state/description/due_onが任意です。したがって M-A2 は「人間操作のみ」ではなく、少なくとも API/gh 操作手順と readback 証跡を AC に含められます。([GitHub Docs]2)既存 Issue への milestone 割当は Issue update API の
milestoneparameter で行えます。ただし push access がない場合、milestone 更新が silent drop される可能性があるため、M-A3 には必ず readback を入れるべきです。([GitHub Docs]3)また、GitHub には sub-issues と dependencies の API があります。#133 のような parent tracker では、M-A2〜M-A5 を native sub-issue として materialize し、必要なら #134 を dependency として設定するのが、文字列 checklist より安全です。([GitHub Docs]4)
PR の
Closes #Nは default branch に merge された時点で issue を自動 close します。open-prは linked issue が open ならCloses #Nを追記する設計なので、parent/tracking issue を誤って linked issue に渡さない guard も必要です。 ([GitHub Docs]5)最小修正案
#133 は、まず M-A2〜M-A5 を 即時起票してください。詳細 scope が未確定でも、次のような shell issue でよいです。
その上で #133 本文に以下の gate を追加するべきです。
skill 側の再発防止
優先順はこれです。
post-merge-cleanup に parent materialization guard を追加
parent close 推奨前に、parent body の
未起票/ placeholder / AC child slot と native sub_issues の一致を検査する。ここが最後の防波堤です。issue-refinement-loop に approval blocker を追加
delivery-rollupparent でChild Issuesに(未起票)が残る場合、review-issue approveを無効化してneeds-fixまたはhuman_escalationにする。issue-contract-review に parent consistency check を追加
implementation issue に
parent_issueがある場合、parent body を取得し、未起票 child slot が残っていれば BLOCKED。ただし対象 issue が「child materialization 専用 issue」の場合だけ例外。open-pr に tracking parent close guard を追加
linked issue が
issue_kind: parentまたはtrackinglabel なら、明示 override なしではClosesを使わずRefsに落とす。#133 に貼るコメント案
結論として、#133 は「M-A1 を先にやる parent」ではなく、「M-A1〜M-A5 の実体 child を束ねる parent」です。未起票 child を残すなら
delivery-rollupを名乗れません。今すぐ全 slot を Issue 化し、parent close 判定を native sub-issue 数だけでなく parent body の materialization invariant にも連動させるべきです。squne121 commentedon May 21, 2026
Child Materialization — M-A2〜M-A5 起票完了
refinement loop Step 4 として、
delivery-rollup/child-completeparent の不変条件を回復するため M-A2〜M-A5 を即時起票した。起票結果
本文への変更
(M-A2〜M-A5, 未起票)を#145〜#148に置き換え## Acceptance Criteria直前に挿入背景
(未起票)child slot が残っている状態はdelivery-rollup/child-completeparent の不変条件違反。impl-review-loop着手前に全 child slot を materialize する必要がある。squne121 commentedon May 21, 2026
issue-refinement-loop: 完了 (2026-05-21T12:16:38Z)
改善履歴
iteration 0 → 1
M-A2〜M-A5 child issue 起票
導入: GitHub Milestone 運用の実体化 (parent) #133 本文更新
(未起票)4 件 → concrete issue 番号 (実装: M1 Foundation Gate GitHub Milestone object を materialize する (M-A2) #145〜実装: post-M1 playable outcome roadmap を docs/product/playable-roadmap.md に記録する (M-A5) #148) に置き換え次アクション
issue-contract-reviewで preflight し、impl-review-loopで着手するfollow-up: skill 改善 Issue(別途起票推奨)
anchor comment が指摘した 4 点の skill 側 guard 追加は #133 本文スコープ外のため、別 Issue として検討してください:
post-merge-cleanup— parent body の未起票 placeholder を考慮した close 推奨 guardissue-refinement-loop— delivery-rollup parent の未起票 child slot を approve blocker にする guardissue-contract-review— parent consistency check(child materialization 確認)open-pr— tracking parent にClosesを使わない guardsqune121 commentedon May 21, 2026
Sub-issues に登録されていない。再発防止策を立てて。
squne121 commentedon May 21, 2026
対応完了 (2026-05-21T12:24:03Z)
コメント #133 (comment) の指摘(native sub-issue 未登録)に対応しました。
実施内容
1. native sub-issue 登録
gh api repos/squne121/loop-protocol/issues/133/sub_issuesで以下を登録:2. 再発防止策
docs/dev/github-ops.mdに「Child Materialization と native sub-issue 登録」セクションを追加 — delivery-rollup parent の child 起票後は native sub-issue 登録を必須とする規約を明文化create-issueskill に delivery-rollup parent 検出時の native sub-issue 自動登録 step を追加根本原因
create-issueskill およびissue-authorSubAgent に「child issue 起票後に native sub-issue として parent に登録する」手順がなかった。docs/dev/github-ops.mdにも同規約が未記載だった。chore: M1 Milestone 割当実施 — Parent Issue 直接割当・Implementation Issue 解除 (#…
squne121 commentedon May 23, 2026
post-merge-cleanup: parent issue close
closure_mode: child-complete を満たしたため close する。
全 child closed 確認
trigger: PR #226 merged (2026-05-23T00:48:41Z, mergeCommit 9f5abdd)