Repository navigation
Description
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: workflowParent 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-fixblocking 判定).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
.claude/skills/create-issue/SKILL.md.claude/skills/review-issue/SKILL.md.claude/skills/issue-refinement-loop/SKILL.md.claude/skills/issue-body-authoring/SKILL.md(Issue 実装: issue-body-authoring / edit-issue に必須セクション/VC形式チェックリストを追加し review-issue と整合させる #25 完了後。存在しない場合は新設).claude/skills/create-issue/scripts/(テスト追加)
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
Required Skills
なし
Scope Delta(任意)
N/A
Delivery Rule
1 Issue = 1 PR.claude/skills/issue-body-authoring/SKILL.mdは Issue 実装: issue-body-authoring / edit-issue に必須セクション/VC形式チェックリストを追加し review-issue と整合させる #25 と同一ファイルへの変更を含むため、Issue 実装: issue-body-authoring / edit-issue に必須セクション/VC形式チェックリストを追加し review-issue と整合させる #25 が merge されるまで当該ファイルへの変更は着手しない(直列依存推奨)- Draft PR で開始し、AC 全項目 PASS を確認してから ready for review とする
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
squne121 commentedon May 21, 2026
#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
squne121 commentedon May 23, 2026
派生観察 (from Issue #254 refinement loop, 2026-05-23)
Issue #254 の refinement で本 Issue (#30) の対象範囲に該当する Remaining Parent Gaps の Issue 化判断パターンを 1 件記録します。
#254 本文
## Remaining Parent Gapsに挙げた以下 4 件を、自動起票せず本文残し(後追い起票判断)としました:local_asset_researchprofile denylist 不備(→ 既存 実装: .gemini/settings.json に Serena MCP excludeTools denylist を追加し local_asset_research preflight を通過させる #140 へコメント追記で対応)つまり、Remaining Parent Gaps の自動起票ルールには以下のような分岐が必要そうです:
本 Issue (#30) で create-issue / review-issue / refinement-loop に組み込むフローを設計する際、上記分岐の materialization decision policy を skill input として扱うか、本ループのように main thread で判断する設計にするか、の検討材料として記録します。
関連: #150, #151, #152
squne121 commentedon May 27, 2026
Decision: Still needed
Reasoning: Cross-cutting concern. Should not be closed in a single phase according to review feedback.
squne121 commentedon May 27, 2026
sweep result (issue #395)