Skip to content

実装: post-merge-cleanup に parent body materialization guard を追加する #150

Closed

Description

@squne121

背景

Issue #133 の refinement loop(anchor comment https://github.com/squne121/loop-protocol/issues/133#issuecomment-4508115760)で指摘された再発防止策の1つ。`post-merge-cleanup` は merged PR から linked issue → parent issue → sub_issues を辿り、全 child が closed なら parent close を推奨する設計だが、parent body に (未起票) / unmaterialized / child slot placeholder が残っている場合を考慮した guard がない。

問題

post-merge-cleanup が native sub-issues API を見て「全 child closed = parent close 推奨」と判断する際、parent body の文字列 placeholder((M-A2, 未起票) 等)を close blocker として扱わない場合、未起票 child が脱落したまま parent が close される事故が起きる。

求める変更

.claude/skills/post-merge-cleanup/SKILL.md に以下の guard を追加する:

  • parent close 推奨ステップの前に、parent Issue body を取得する
  • body に 未起票、unmaterialized、(M-Ax, 未起票) パターン、または (未起票) テキストが含まれる場合は、native sub-issues が全 closed でも parent close を推奨しない
  • 代わりに「parent body に未起票 child slot が残っています。child issue を起票してから parent close を判断してください」を報告する

Acceptance Criteria

  • AC1: post-merge-cleanup の parent close 推奨ステップに body materialization check が追加されている
  • AC2: parent body に (未起票) パターンが含まれる場合、parent close 推奨が抑制される
  • AC3: guard が機能することを示す Verification Commands が存在する

Verification Commands

# AC1: post-merge-cleanup に materialization guard の記述があること
rg "未起票|unmaterialized|materialization.*guard|placeholder.*close" .claude/skills/post-merge-cleanup/SKILL.md && echo "PASS" || echo "FAIL"

Related

Activity

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

    @squne121
    OwnerAuthor

    クローズ理由

    本 Issue は現行の Issue テンプレート規約(Machine-Readable Contract ブロック、AC⇔VC 番号対応、bare # ACN marker、非 compound VC コマンド)に準拠しておらず、edit_issue_txn.py の guard を通せないため body 修正ができない状態でした。

    さらに、check_implementation_overlap.py(overlap preflight)の candidate pool 内で本 Issue が missing_allowed_paths エラーを起こし、無関係な他 Issue(#1475)の実装を fail-closed でブロックしていました。

    human 判断により、本 Issue を stale としてクローズし、overlap preflight の候補プールから除外します。実装要求自体が不要になったわけではないため、対応が必要な場合は現行テンプレートで再起票してください。

    ISSUE_150_STALE_CLOSE_MARKER_20260712

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