Skip to content

実装: issue-refinement-loop に delivery-rollup parent の未起票 child slot 検出 guard を追加する #151

Closed

Description

@squne121

背景

Issue #133 の refinement loop(anchor comment #issuecomment-4508115760)で指摘された再発防止策。issue-refinement-loop は review-issue が approve を返すと終了するが、delivery-rollup parent の Child Issues に (未起票) slot が残っている場合にそれを approve blocker にする guard がない。

問題

adversarial-review は採用しないという guardrail により、「構造上は整って見えるが delivery-rollup parent として欠陥がある」問題が approve をすり抜ける可能性がある。

求める変更

.claude/skills/issue-refinement-loop/SKILL.md の Step 2(review-issue)前か、または approve 判定後に以下の guard を追加する:

  • Issue が parent_mode: delivery-rollup / closure_mode: child-complete の場合、Child Issues セクションに (未起票) または unmaterialized slot が1件でも残っていれば approve を無効化して needs-fix として扱う
  • reviewer_feedback_text に「delivery-rollup parent に未起票 child slot があります。child issue を起票してから refinement を再開してください」を追加する

Acceptance Criteria

  • AC1: issue-refinement-loop に delivery-rollup parent の未起票 child slot 検出ロジックが追加されている
  • AC2: (未起票) slot がある delivery-rollup parent で approve が抑制される
  • AC3: Verification Commands が存在する

Verification Commands

# AC1: issue-refinement-loop に materialization guard の記述があること
rg "未起票|unmaterialized|delivery.rollup.*guard|child.*slot.*approve" .claude/skills/issue-refinement-loop/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 May 23, 2026

    @squne121
    OwnerAuthor

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

    Issue #254 の issue-refinement-loop iter 2 で本 Issue (#151) の必要性を実証する事例が発生しました。

    #254 を parent tracker(parent_mode: delivery-rollup / closure_mode: child-complete)に再構成し、Child Issues 欄に 8 件すべてを (未起票) placeholder で列挙しました。memory project_104_child_materialization と feedback_child_issue_creation の方針に従えば「全 8 件を即時起票すべき」ですが、本 Issue の構造上 C254-1 (ADR) の決定(SDD ツール採否)が C254-2〜C254-8 の Allowed Paths や参照 SSOT を左右するため、C254-1 のみ即時起票 (#257)、残り 7 件は ADR マージ後に起票 という判断を取りました。

    つまり、closure_mode: child-complete parent でも:

    の 2 パターンが存在します。本 Issue (#151) の delivery-rollup parent guard を実装する際、この 2 パターンを区別する条件(例: child 群に ADR / Decision Points を含むかをスキャン)を考慮するか、または「ADR 先行型は手動例外として human ack を求める」分岐が必要そうです。

    判断ログ: #254 本文 Decisions Fixed 2026-05-23 第 2 項に記録済み。
    関連: #30, #150, #152

  3. squne121 commented on May 27, 2026

    @squne121
    OwnerAuthor

    Decision: Absorbed

    Reasoning: Absorbed by the fail-closed delivery-rollup child materialization and follow-up materialization rules.

    Evidence:

  4. squne121 commented on May 27, 2026

    @squne121
    OwnerAuthor

    CLOSE_DECISION_V1

    CLOSE_DECISION_V1:
      generated_at: "2026-05-28T00:00:00Z"
      generated_by: issue-395-sweep
      issue_number: 151
      decision: completed
      state_reason: completed
      evidence: "#393 で thin entrypoint 化され SKILL.md の references/ 参照構造が確立。#394 で SubAgent-owned contract migration が完了。delivery-rollup child slot guard は references/follow-up-materialization.md に SSOT 化済み"
      absorbed_by:
        - pr: https://github.com/squne121/loop-protocol/pull/415
          issue: 393
        - pr: https://github.com/squne121/loop-protocol/pull/416
          issue: 394
      sweep_source: https://github.com/squne121/loop-protocol/issues/395
  5. squne121 commented on May 27, 2026

    @squne121
    OwnerAuthor

    CLOSE_DECISION_V1_CORRECTION

    CLOSE_DECISION_V1:
      generated_at: "2026-05-28T12:00:00Z"
      generated_by: issue-395-sweep-correction
      issue: "#151"
      decision: absorbed
      github_state: CLOSED
      github_state_reason: completed
      absorbed_by:
        - pr: "#415"
          issue: "#393"
        - pr: "#416"
          issue: "#394"
      evidence:
        - type: ssot_migrated
          ref: "https://github.com/squne121/loop-protocol/pull/415"
        - type: ssot_migrated
          ref: "https://github.com/squne121/loop-protocol/pull/416"
      residual_gaps: []

    訂正理由: 前回コメントの decision: completed は #395 Outcome の語彙外。正しくは decision: absorbed(absorbed by #393/#394)。github_state_reason: completed は GitHub の close reason として分離して保持する。

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