Skip to content

実装: Out of Scope / Remaining Parent Gaps を実 Issue として必ず起票する手順を create-issue / review-issue / refinement-loop に組み込む #30

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "Out of Scope / Remaining Parent Gaps に列挙された defer 提案が実 Issue 番号で参照されないまま Issue が closed され着手導線が消失する欠陥を修正する"
change_kind: workflow

Parent Issue

none(単独改善)

Parent Goal Ref

  • Goal: なし(単独改善)
  • Desired Destination: なし

Current Validated Scope

  • .claude/skills/create-issue/SKILL.md に Out of Scope / Remaining Parent Gaps の defer 提案を実 Issue として起票する強制手順を追補
  • .claude/skills/review-issue/SKILL.md に defer 提案が実 Issue 番号で参照されていない場合を blocking 判定とする deterministic check を追補
  • .claude/skills/issue-refinement-loop/SKILL.md の終了処理(Step 5 相当)に defer 提案の follow-up Issue 起票確認ステップを追補
  • .claude/skills/issue-body-authoring/SKILL.md に defer 提案セクションの記法ガイドを追補(Issue 実装: issue-body-authoring / edit-issue に必須セクション/VC形式チェックリストを追加し review-issue と整合させる #25 完了後)
  • .claude/skills/create-issue/scripts/ 配下に defer 提案未起票検出のテストを追加

Remaining Parent Gaps

なし

Outcome

.claude/skills/create-issue/SKILL.md・.claude/skills/review-issue/SKILL.md・.claude/skills/issue-refinement-loop/SKILL.md の各ファイルが更新され、Out of Scope / Remaining Parent Gaps に defer 提案が列挙された場合に実 Issue 番号の紐付けを強制する手順が追加された状態で、pnpm test(または pytest)が PASS している。

In Scope

  • .claude/skills/create-issue/SKILL.md への defer 起票強制手順の追補(「起票済み Issue 番号を参照する」または「本 Issue の scope に取り込む」の二択 guard)
  • .claude/skills/review-issue/SKILL.md への deterministic check 仕様の追補(defer 提案に実 Issue 番号なし → needs-fix blocking 判定)
  • .claude/skills/issue-refinement-loop/SKILL.md の Step 5(終了処理)への defer follow-up Issue 起票確認ステップ追加
  • .claude/skills/issue-body-authoring/SKILL.md への defer 提案セクション記法ガイド追補(Issue 実装: issue-body-authoring / edit-issue に必須セクション/VC形式チェックリストを追加し review-issue と整合させる #25 完了後に着手。未存在の場合は新設)
  • .claude/skills/create-issue/scripts/ 配下のテスト追加(defer 提案に Issue 番号未参照のサンプル本文に対し review-issue が needs-fix を返すことを検証)

Out of Scope

  • 既存 Issue の retroactive 起票(手動運用で対応)
  • implement-issue / pr-review-judge 等の他 skill 変更
  • .claude/skills/codebase-investigator/ 等の補助系 skill 変更

Acceptance Criteria

  • AC1: grep -n "Out of Scope\|Remaining Parent Gaps" .claude/skills/create-issue/SKILL.md で defer 起票強制手順の記述がヒットする
  • AC2: grep -n "Out of Scope\|Remaining Parent Gaps\|defer" .claude/skills/review-issue/SKILL.md で deterministic check 仕様の記述がヒットする
  • AC3: grep -n "defer\|follow-up" .claude/skills/issue-refinement-loop/SKILL.md で Step 5 拡張(defer follow-up 起票確認)の記述がヒットする
  • AC4: grep -n "Out of Scope\|defer" .claude/skills/issue-body-authoring/SKILL.md で defer 提案セクション記法ガイドの記述がヒットする
  • AC5: .claude/skills/create-issue/scripts/ 配下に追加したテストが PASS する(defer 提案に Issue 番号未参照のサンプル本文 → needs-fix 返却)
  • AC6: 既存全 pytest PASS(cd .claude/skills/create-issue && uv run pytest tests/ -q)

Verification Commands

  • grep -n "Out of Scope\|Remaining Parent Gaps" .claude/skills/create-issue/SKILL.md — AC1: defer 起票強制手順の記述あり
  • grep -n "Out of Scope\|Remaining Parent Gaps\|defer" .claude/skills/review-issue/SKILL.md — AC2: deterministic check 仕様の記述あり
  • grep -n "defer\|follow-up" .claude/skills/issue-refinement-loop/SKILL.md — AC3: Step 5 拡張記述あり
  • grep -n "Out of Scope\|defer" .claude/skills/issue-body-authoring/SKILL.md — AC4: 記法ガイドあり
  • cd .claude/skills/create-issue && uv run pytest tests/ -q — AC5/AC6: 全テスト PASS

Allowed Paths

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Required Skills

なし

Scope Delta(任意)

N/A

Delivery Rule

Background

Issue #14(gemini-cli-headless-delegation の導入と改善)の refinement loop において、Out of Scope / Remaining Parent Gaps に記載された defer 提案が実 Issue として起票されないまま loop が終了した(観測: Issue #14 / #issuecomment-4488119923)。Issue #14 が implement されると Out of Scope の文言ごと Issue が closed され、defer 提案への着手導線が消失する。

人間指摘(2026-05-19): 「上記が起票されていないため、このissueの実装が完了した際にissue起票への導線が消えて着手されなくなってしまう。必ず実装フェーズ以降でissueを起票する導線を用意すること。あるいはスコープを分けた際に必ずすべてのissueを起票することをissue作成スキル、あるいはレビューissueスキルに運用手順として用意してください。」

本 Issue は Issue #25(issue-body-authoring 必須セクション/VC 形式チェックリスト追加)と .claude/skills/issue-body-authoring/SKILL.md で変更ファイルが重複するが、scope は独立している。

Activity

  1. added
    enhancement
    phase/implementation
    state/queued
    agent/implementer
    on May 19, 2026
  2. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    #131 refinement-loop からの参照 (2026-05-21)

    #131(PR #81 振り返りの親トラッカー)の issue-refinement-loop 実行時、本 Issue の課題が実例として再確認された。

    親 Issue #131 を parent テンプレート化する過程で、Child Issues セクションを埋めるために child issue(#137 / #135 / #136)を先に materialize する必要があった。この「refinement-loop / create-issue が parent の Child Issues / Remaining Parent Gaps を実 Issue として起票する手順」は現状 skill 本体に明文化されておらず、運用者の記憶に依存している。

    本 Issue のスコープで issue-refinement-loop にも child materialization 手順を明示的に組み込むことを補強する実例として記録する。

    親トラッカー参照: #131

  3. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    派生観察 (from Issue #254 refinement loop, 2026-05-23)

    Issue #254 の refinement で本 Issue (#30) の対象範囲に該当する Remaining Parent Gaps の Issue 化判断パターンを 1 件記録します。

    #254 本文 ## Remaining Parent Gaps に挙げた以下 4 件を、自動起票せず本文残し(後追い起票判断)としました:

    1. gemini-cli-headless-delegation の local_asset_research profile denylist 不備(→ 既存 実装: .gemini/settings.json に Serena MCP excludeTools denylist を追加し local_asset_research preflight を通過させる #140 へコメント追記で対応)
    2. ssot-discovery の registry → catalog 自動同期(→ 後続 child Issue 起票時に判断保留)
    3. playable-roadmap M2〜M5 と mvp-scope child の同期方針(→ C254-6 mvp-scope child の Open Questions に引き継ぎ予定)
    4. Spec Kit "Game Narrative Writing" preset の存在確認(→ ADR child 実装: ADR — SDD ツール採否(Spec Kit / OpenSpec / 独自)を決定する (C254-1) #257 で再確認)

    つまり、Remaining Parent Gaps の自動起票ルールには以下のような分岐が必要そうです:

    • 既存 OPEN Issue が直接重複 → コメント追記(自動起票しない)
    • 後続 child の Open Questions に引き継ぎ可能 → child 内に記録(自動起票しない)
    • 単独で着手可能 + 既存重複なし → 自動起票
    • 事実確認が child 着手段階で必要 → child 着手前 preflight に組み込む

    本 Issue (#30) で create-issue / review-issue / refinement-loop に組み込むフローを設計する際、上記分岐の materialization decision policy を skill input として扱うか、本ループのように main thread で判断する設計にするか、の検討材料として記録します。

    関連: #150, #151, #152

  4. squne121 commented on May 27, 2026

    @squne121
    OwnerAuthor

    Decision: Still needed

    Reasoning: Cross-cutting concern. Should not be closed in a single phase according to review feedback.

  5. squne121 commented on May 27, 2026

    @squne121
    OwnerAuthor

    sweep result (issue #395)

    SWEEP_DECISION_V1:
      generated_at: "2026-05-28T00:00:00Z"
      generated_by: issue-395-sweep
      issue_number: 30
      decision: still_needed
      reason: "Out of Scope / Remaining Parent Gaps の自動起票は実装未完了の横断要件"
      connection_points:
        - "create-issue / review-issue / refinement-loop の 3 skill に残課題"
        - "単一 Phase では完了不可"
      action: "OPEN のまま維持。横断 skill 整備後に改めて対応"
      sweep_source: https://github.com/squne121/loop-protocol/issues/395
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

    agent/implementerenhancementphase/implementationstate/queued

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions