Skip to content

導入: GitHub Milestone 運用の実体化 (parent) #133

Closed
6 of 6 issues completed
Closed

Description

@squne121

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-complete

Summary

#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

Quality Decision Record

Parent Closure Rule

Child Issues

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

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

Sub-issues

Sub-issues

6 of 6 Issues completed
Loading 6 sub-issues

Activity

  1. added
    tracking
    state/in-progress
    on May 21, 2026
  2. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    何回か指摘しているのだけど、

    (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がクローズされる可能性がある。

  3. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    判定: No-Go as-is / Blocker

    #133 はこのまま issue-refinement-loop: approved にしてはいけません。ユーザーコメントの懸念は妥当です。理由は、#133 が delivery-rollup / child-complete parent でありながら、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 の安全性要件です。

    最大の事故シナリオ

    危険な経路は次です。

    #133 refinement が approve
      ↓
    #134 だけ issue-contract-review → impl-review-loop
      ↓
    #134 の PR が merge
      ↓
    post-merge-cleanup が native parent/sub-issue を見て「全 child closed」と判断
      ↓
    #133 close 推奨または close
      ↓
    M-A2〜M-A5 は Issue として存在せず、親だけ完了扱い
    

    この事故は机上の空論ではありません。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 の milestone parameter で行えます。ただし 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 でよいです。

    M-A2: 実装: M1 Foundation Gate GitHub Milestone object を materialize する
    state/blocked
    Depends on #134
    
    M-A3: 実装: 既存 Issue 群の GitHub Milestone 割当設計と readback を行う
    state/blocked
    Depends on #134, M-A2
    
    M-A4: 実装: milestone rollup / next-action 導線を作る
    state/blocked
    Depends on #134, M-A2, M-A3
    
    M-A5: 設計/実装: playable outcome roadmap を Foundation Gate 後の milestone 群へ落とす
    state/blocked
    Depends on #134
    

    その上で #133 本文に以下の gate を追加するべきです。

    ## 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 が存在しないこと」とする。

    skill 側の再発防止

    優先順はこれです。

    1. post-merge-cleanup に parent materialization guard を追加
      parent close 推奨前に、parent body の 未起票 / placeholder / AC child slot と native sub_issues の一致を検査する。ここが最後の防波堤です。

    2. issue-refinement-loop に approval blocker を追加
      delivery-rollup parent で Child Issues に (未起票) が残る場合、review-issue approve を無効化して needs-fix または human_escalation にする。

    3. issue-contract-review に parent consistency check を追加
      implementation issue に parent_issue がある場合、parent body を取得し、未起票 child slot が残っていれば BLOCKED。ただし対象 issue が「child materialization 専用 issue」の場合だけ例外。

    4. open-pr に tracking parent close guard を追加
      linked issue が issue_kind: parent または tracking label なら、明示 override なしでは Closes を使わず Refs に落とす。

    #133 に貼るコメント案

    ## Adversarial Review: No-Go as-is
    
    この parent は `delivery-rollup` / `child-complete` であるため、M-A1〜M-A5 を close 条件に含めるなら、全 child slot は GitHub Issue として materialize されている必要があります。
    
    現状は M-A1 (#134) のみ起票済みで、M-A2〜M-A5 が `(未起票)` のまま Child Issues / AC に残っています。この状態で `issue-refinement-loop` を approve 終了するのは危険です。
    
    理由:
    - #134 は M-A1 の docs SSOT 化だけが scope であり、M-A2〜M-A5 は Out of Scope。
    - `impl-review-loop` は child implementation の PR approve で終了し、parent body の未起票 child slot を検査しない。
    - `post-merge-cleanup` は native parent/sub-issues を見て parent close を推奨する設計であり、本文上の `(未起票)` placeholder を close blocker として扱う保証がない。
    - そのため #134 完了後に #133 が誤って close され、M-A2〜M-A5 が未起票のまま脱落するリスクがある。
    
    Required fix:
    1. M-A2〜M-A5 を今すぐ shell child issue として起票する。
    2. 各 issue は `state/blocked` とし、少なくとも `Depends on #134` を明記する。
    3. #133 の Child Issues / AC / Parent Closure Rule を concrete issue number に更新する。
    4. #133 に `Child Materialization Gate` を追加し、`(未起票)` child slot が残る状態で `issue-refinement-loop` / `impl-review-loop` / `post-merge-cleanup` が進行・close 推奨しないことを明文化する。
    5. follow-up として `issue-refinement-loop`、`issue-contract-review`、`post-merge-cleanup` に parent materialization guard を追加する。
    
    この修正が入るまで、#133 は `approved` 扱いにせず、#134 の `impl-review-loop` 着手も止めるべきです。

    結論として、#133 は「M-A1 を先にやる parent」ではなく、「M-A1〜M-A5 の実体 child を束ねる parent」です。未起票 child を残すなら delivery-rollup を名乗れません。今すぐ全 slot を Issue 化し、parent close 判定を native sub-issue 数だけでなく parent body の materialization invariant にも連動させるべきです。

  4. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    Child Materialization — M-A2〜M-A5 起票完了

    refinement loop Step 4 として、delivery-rollup / child-complete parent の不変条件を回復するため M-A2〜M-A5 を即時起票した。

    起票結果

    child issue title
    M-A2 #145 実装: M1 Foundation Gate GitHub Milestone object を materialize する
    M-A3 #146 実装: 既存 Issue 群の GitHub Milestone 割当設計と readback を行う
    M-A4 #147 実装: milestone rollup / next-action 導線を作る
    M-A5 #148 設計/実装: playable outcome roadmap を Foundation Gate 後の milestone 群へ落とす

    本文への変更

    1. Child Issues セクション: (M-A2〜M-A5, 未起票) を #145〜#148 に置き換え
    2. Child Materialization Gate セクション追加: ## Acceptance Criteria 直前に挿入
    3. Parent Closure Rule 更新: concrete issue 番号と materialization invariant を追加
    4. Phase Handoff Contract Next Action 更新: M-A2〜M-A5 起票済みを反映
    5. Decisions Fixed 追記: 本起票の経緯を記録

    背景

    (未起票) child slot が残っている状態は delivery-rollup / child-complete parent の不変条件違反。impl-review-loop 着手前に全 child slot を materialize する必要がある。

  5. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop: 完了 (2026-05-21T12:16:38Z)

    改善履歴

    iteration 0 → 1

    1. M-A2〜M-A5 child issue 起票

    2. 導入: GitHub Milestone 運用の実体化 (parent) #133 本文更新

    次アクション

    follow-up: skill 改善 Issue(別途起票推奨)

    anchor comment が指摘した 4 点の skill 側 guard 追加は #133 本文スコープ外のため、別 Issue として検討してください:

    1. post-merge-cleanup — parent body の未起票 placeholder を考慮した close 推奨 guard
    2. issue-refinement-loop — delivery-rollup parent の未起票 child slot を approve blocker にする guard
    3. issue-contract-review — parent consistency check(child materialization 確認)
    4. open-pr — tracking parent に Closes を使わない guard
  6. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    Sub-issues に登録されていない。再発防止策を立てて。

  7. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    対応完了 (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. 再発防止策

    根本原因

    create-issue skill および issue-author SubAgent に「child issue 起票後に native sub-issue として parent に登録する」手順がなかった。docs/dev/github-ops.md にも同規約が未記載だった。

  8. removed
    state/in-progress
    on May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tracking

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions