Skip to content

運用: post-merge-cleanup と関連オーケストレーション skill で follow-up Issue を自動起票化(候補列挙 → auto-create)する #89

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "follow-up 候補を列挙して人間判断に委ねるモデルから、自動起票して人間は triage(不要なら close)するモデルへ切り替え、Issue/PR を主インターフェースとして follow-up 漏れを防ぐ"
change_kind: docs
allowed_paths:
  - .claude/skills/post-merge-cleanup/SKILL.md
  - .claude/skills/impl-review-loop/SKILL.md
  - .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md
  - .claude/skills/issue-refinement-loop/SKILL.md
  - .claude/skills/pr-review-judge/SKILL.md
  - docs/dev/agent-skill-boundaries.md
  - docs/dev/github-ops.md
acceptance_criteria_count: 7
verification_kind: deterministic

Parent Issue

なし(単独改善)

Parent Goal Ref

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

Current Validated Scope

  • .claude/skills/post-merge-cleanup/SKILL.md に follow_up_candidates の即時自動起票運用を明記
  • .claude/skills/impl-review-loop/SKILL.md および steps/step-5-feedback-and-termination.md に non-blocker NOTE の follow-up Issue 自動起票を明記
  • .claude/skills/issue-refinement-loop/SKILL.md に派生改善候補の自動起票対象化を明記
  • .claude/skills/pr-review-judge/SKILL.md に non-blocker observations を follow_up_issue_requests フィールドとして構造化出力し、Issue 起票は行わない旨を明記(起票責務は main thread / impl-review-loop Step 5)
  • docs/dev/agent-skill-boundaries.md に「Issue/PR を主インターフェースとする」原則と「triage モデル(不要なら close)」を追記
  • docs/dev/github-ops.md に triage-required ラベル(または同等ラベル)の運用ルールを追記

Remaining Parent Gaps

なし

Background

現状、post-merge-cleanup-worker / pr-review-judge / impl-review-loop / issue-refinement-loop などのオーケストレーション skill は、follow-up 候補を「列挙して main thread が起票判断」モデルで運用している。このモデルは「クローズ済み PR / コメント / レポートを人間が後追いで再確認して起票依頼する」運用を要求するため、人間の認知負荷が高く、follow-up が忘却される事故が起きやすい。

ユーザー指示:「Issue / PR を人間との主インターフェースにする」「クローズ PR を人間が再確認して Issue 起票を依頼する経路は現実的ではない」

派生背景:PR #80 で NOTE-1〜7 を PR 本文に記載したが、人間が後追い起票指示する必要が生じた。

Refs #40, #72, #80

Outcome

各オーケストレーション skill の SKILL.md / steps に「follow-up 候補は create-issue 経由で即時自動起票する」ことが明記されたファイルが存在し、docs/dev/agent-skill-boundaries.md に triage モデル原則が追記され、docs/dev/github-ops.md に triage-required ラベル運用ルールが追記された状態で、AC1-7 に対応する全 grep コマンドが 1 ヒット以上を返す。

In Scope

  • post-merge-cleanup SKILL.md: follow_up_candidates を main thread が即時 issue-author に委譲して起票する旨を明記
  • impl-review-loop step-5: PR レビューで観察された non-blocker NOTE を follow-up Issue として自動起票する旨を明記
  • issue-refinement-loop SKILL.md: refinement 中の派生改善候補を自動起票する旨を明記
  • pr-review-judge SKILL.md: non-blocker observations を follow_up_issue_requests フィールドとして構造化出力し、Issue 起票は行わない(起票責務は main thread / impl-review-loop Step 5)
  • docs/dev/agent-skill-boundaries.md: 「Issue/PR を主インターフェースとする」原則を明記(「triage モデル(不要なら close)」を含む)
  • docs/dev/agent-skill-boundaries.md の ## Follow-up Materialization Policy セクションに FOLLOW_UP_ISSUE_REQUEST_V1 スキーマ(title / issue_kind / severity / source / dedupe_key / labels)を定義(dedupe_key フォーマット: follow-up:<repo>:<source-url-or-pr>:<note-id-or-hash>、severity: mandatory_follow_up / optional_follow_up / note_only)
  • docs/dev/github-ops.md: triage-required ラベルの導入と運用ルール記載

Out of Scope

  • create-issue skill 本体の logic 変更(既存 skill を呼び出すのみ)
  • Issue / PR テンプレート (.github/ISSUE_TEMPLATE/*.yml) のスキーマ変更
  • post-merge-cleanup-worker SubAgent 自身の起票実行(候補列挙責務は維持。main thread が起票実行する責務分離は keep)
  • 既存 follow-up 候補の遡及起票(本 Issue は仕組み定義のみ)

Acceptance Criteria

  • AC1: .claude/skills/post-merge-cleanup/SKILL.md に「follow_up_candidates は main thread が即時 issue-author 経由で自動起票する」運用が明記されている
  • AC2: .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md に「pr-review-judge non-blocker NOTE は follow-up Issue として自動起票」が明記されている
  • AC3: .claude/skills/issue-refinement-loop/SKILL.md に「refinement 中の派生改善候補も自動起票対象」が明記されている
  • AC4: .claude/skills/pr-review-judge/SKILL.md に「non-blocker observations は LOOP_VERDICT の follow_up_issue_requests フィールドに出力し、Issue 起票は main thread(impl-review-loop Step 5 等)が issue-author / create-issue 経由で行う」旨が明記されている
  • AC5: docs/dev/agent-skill-boundaries.md に「Issue / PR を人間との主インターフェースとする」原則と「triage モデル(不要なら close)」が記載されている
  • AC6: docs/dev/github-ops.md に triage-required ラベル(または同等のラベル)の運用ルールが記載されている
  • AC7: docs/dev/agent-skill-boundaries.md に FOLLOW_UP_ISSUE_REQUEST_V1 スキーマ(dedupe_key / source.url / source.note_id / severity を含む)が定義されている

Verification Commands

# AC1
grep -E '自動起票|auto-create|即時.*issue-author' .claude/skills/post-merge-cleanup/SKILL.md

# AC2
grep -E '自動起票|follow-up.*Issue' .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md

# AC3
grep -E '派生.*自動起票|follow-up.*自動' .claude/skills/issue-refinement-loop/SKILL.md

# AC4
grep -E 'follow_up_issue_requests|起票.*main thread|main thread.*起票' .claude/skills/pr-review-judge/SKILL.md
# negative check: pr-review-judge が直接起票する記述がないこと
! grep -E 'issue-author|create-issue.*起票|gh issue create' .claude/skills/pr-review-judge/SKILL.md

# AC5
grep -E '主インターフェース|primary interface|triage.*モデル' docs/dev/agent-skill-boundaries.md

# AC6
grep -E 'triage-required|triage.*ラベル' docs/dev/github-ops.md

# AC7
grep -E 'FOLLOW_UP_ISSUE_REQUEST_V1|dedupe_key' docs/dev/agent-skill-boundaries.md

# Standard gates
pnpm typecheck
pnpm lint
pnpm test
pnpm build

Allowed Paths

  • .claude/skills/post-merge-cleanup/SKILL.md
  • .claude/skills/impl-review-loop/SKILL.md
  • .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md
  • .claude/skills/issue-refinement-loop/SKILL.md
  • .claude/skills/pr-review-judge/SKILL.md
  • docs/dev/agent-skill-boundaries.md
  • docs/dev/github-ops.md

Runtime Verification Applicability

decision: not_applicable
rationale: "docs-only 変更(SKILL.md / .md ファイルへのテキスト追記のみ)。ブラウザ実行・Canvas・WebSocket 等の runtime 環境に依存しない。AC は grep コマンドによる決定論的テキスト検査で完結する。"

もし実装時に runtime 挙動(create-issue 経由での実際の Issue 起票確認等)を検証対象にする場合は decision: deferred に変更し、deferred_destination を追記してください。

Stop Conditions

  1. Allowed Paths 外の変更が必要と判明した場合
  2. In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  3. 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  4. 後続 Phase / 別スコープへの波及が判明した場合
  5. nested SubAgent delegation が必要になった場合
  6. 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  7. create-issue skill 本体の logic を変更しそうになった場合
  8. Issue / PR テンプレートの schema を変更しそうになった場合は別 Issue へ分割
  9. SubAgent(post-merge-cleanup-worker 等)が直接 Issue を起票する設計に変更しそうになった場合(責務分離維持)
  10. 既存の follow-up を遡って起票しそうになった場合は別 Issue へ

Required Skills

なし

Scope Delta(任意)

N/A

Delivery Rule

Notes

Activity

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

    @squne121
    OwnerAuthor

    判定: REQUEST_CHANGES

    #89 の方向性自体は妥当です。PR #80 で NOTE-1〜7 が PR 本文に残っただけで、後追いで人間が起票判断する負荷が発生した、という問題設定は実在しています。#89 はこの失敗を「候補列挙」から「自動起票+人間 triage」へ切り替える Issue ですが、現状の契約のまま実装すると 重複 Issue 量産・責務境界違反・stale 前提・grep だけの false-pass が起きる可能性が高いです。

    前提整理

    #89 は post-merge-cleanup / impl-review-loop / issue-refinement-loop / pr-review-judge / agent-skill-boundaries.md / github-ops.md を対象に、follow-up 候補を即時 create-issue 経由で自動起票する運用へ切り替える docs/skill 変更です。#89 自体にコメントはありません。

    ただし、本文の依存関係が古いです。#89 は #76 完了後を前提にしていますが、#76 は not_planned で close され、実質的な A2 は #92 に置換されています。さらに blocker/dependency 判定は #95、implementation Issue の標準ラベル自動付与は #61/#105 系で既に進んでいます。#89 は少なくとも Depends on #92, #95, #61 の前提に更新すべきです。

    BLOCKER 1: 自動起票の idempotency が未定義

    最大の欠陥は、同じ PR / 同じ NOTE / 同じ review comment を再処理したときに重複 Issue を作らない規約がないことです。post-merge-cleanup は既に follow_up_candidates を列挙し、起票は main thread が create-issue / edit-issue 経由で行う設計になっていますが、現状は「候補列挙」までであり、dedupe key や source URL 検索の規約がありません。

    #89 には最低限、以下の契約を追加すべきです。

    FOLLOW_UP_ISSUE_REQUEST_V1:
      title: string
      issue_kind: implementation | research | chore
      severity: mandatory_follow_up | optional_follow_up | note_only
      source:
        kind: pr_body | pr_review | issue_comment | post_merge_cleanup | refinement
        url: string
        note_id: string | null
      dedupe_key: "follow-up:<repo>:<source-url-or-pr>:<note-id-or-hash>"
      labels:
        - follow-up
        - triage-required

    起票前には dedupe_key または source.url + note_id を Issue 本文検索し、既存 Issue があれば新規作成しない、という preflight が必要です。issue-refinement-loop には既に、代替 Issue 起票前に既存コメント・既存 OPEN Issue を確認する idempotency preflight があるため、このパターンを横展開できます。

    BLOCKER 2: pr-review-judge に起票責務を持たせると境界違反になる

    #89 は pr-review-judge の non-blocker observations を自動起票対象にしていますが、pr-review-judge はレビュー verdict を返す手順であり、現在の agent-skill-boundaries.md では mutation は main thread / orchestrator / issue-author / create-issue 側に寄せる設計です。pr-reviewer が直接 Issue を作る設計にすると、read-only レビュー役と write 操作が混線します。

    正しい分担はこうです。

    pr-review-judge:
      - blocker / non-blocker / follow-up request を分類して PR コメントに構造化出力する
      - Issue は作らない
    
    impl-review-loop Step 5:
      - LOOP_VERDICT.follow_up_issue_requests を読み取る
      - main thread が issue-author / create-issue に委譲して起票する
      - 起票結果の Issue 番号を PR / Issue コメントに記録する
    

    これは post-merge-cleanup-worker が follow-up 候補列挙のみを行い、起票は main thread が行う現行責務分界とも整合します。

    BLOCKER 3: triage-required が state ラベル体系と衝突しうる

    #89 は triage-required ラベル、または同等ラベルの運用を docs/dev/github-ops.md に追加しようとしています。しかし現行 github-ops.md は state/queued / state/in-progress / state/blocked / state/needs-human / state/done と、AI 着手可能性の SSOT を blocker/dependency 全 close に置く設計を既に持っています。ここに triage-required を状態ラベルのように追加すると、state/needs-human や state/queued と意味が競合します。

    triage-required は state ではなく disposition/category ラベルとして定義すべきです。推奨は以下です。

    triage-required:
      follow-up Issue が自動起票されたため、人間が keep / close / merge / split を判断する必要があることを示す補助ラベル。
      AI 着手可能性の primary signal ではない。
      blocker/dependency 判定、state ラベル、DoR 判定を代替しない。
    

    GitHub の labels は Issue / PR / Discussion を分類するための repository-specific な仕組みであり、triage 権限でも label の適用・解除が可能です。したがって triage-required 自体は実装可能ですが、ready 判定の複製として使うべきではありません。([GitHub Docs]1)

    BLOCKER 4: Acceptance Criteria が grep だけで弱すぎる

    #89 の AC は 自動起票|follow-up.*Issue|triage.*ラベル のような grep で、運用意味を検証できません。これは docs-only Issue ではよくある false-pass パターンです。特に今回は「候補列挙」から「自動起票」へ運用 semantics を変えるため、単語の存在ではなく 構造化契約・責務分界・重複防止・source backlink を検証対象にする必要があります。

    最低限、AC を以下に差し替えるべきです。

    1. FOLLOW_UP_ISSUE_REQUEST_V1 が定義されている。
    2. dedupe_key / source.url / source.note_id が必須フィールドとして定義されている。
    3. post-merge-cleanup-worker は候補列挙のみ、起票は main thread + issue-author / create-issue と明記されている。
    4. pr-review-judge は直接起票せず、LOOP_VERDICT.follow_up_issue_requests を出力するだけと明記されている。
    5. impl-review-loop Step 5 が follow_up_issue_requests を起票し、作成 Issue 番号を終了コメントに記録すると明記されている。
    6. triage-required は state ではなく補助分類ラベルであり、AI 着手可否判定に使わないと明記されている。
    7. すべての自動起票 Issue に ## Source / dedupe_key / origin_skill / source_pr_or_comment が入る。
    8. negative check として、対象ファイルに「人間が後追いで起票判断」「候補列挙して終了」が残っていない。ただし SubAgent の「直接起票しない」境界説明は除外。

    HIGH: Safety Claim / Schema gate との整合が足りない

    現行 pr-review-judge には Safety Claim Gate と Schema Consumer Inventory Gate が追加されています。特に Safety Claim Matrix では、Not controlled が非空なのに open follow-up Issue がなければ APPROVE 禁止、という規則があります。つまり一部の follow-up は「任意の non-blocker」ではなく、APPROVE 前に open Issue 参照が必要な mandatory follow-upです。

    #89 は follow-up を一律に「non-blocker observations」として扱うのではなく、次の分類を導入すべきです。

    follow_up_severity:
      blocking:
        action: REQUEST_CHANGES
      mandatory_follow_up:
        action: create_or_reuse_issue_before_approve
      optional_follow_up:
        action: create_or_reuse_issue_at_loop_termination
      note_only:
        action: record_only_no_issue

    これを入れないと、Safety Claim Matrix が要求する「open follow-up Issue 参照」を post-merge-cleanup まで遅延させてしまい、レビュー gate と矛盾します。

    HIGH: GitHub native dependency / sub-issue との使い分けを明記すべき

    GitHub の issue dependencies は blocked / blocking の関係を表現し、blocked な Issue は Issue や Projects 上で可視化されます。#92/#95 の方針どおり、着手可否は label ではなく dependency close 状態を見に行くべきです。([GitHub Docs]2)

    一方、GitHub sub-issues は大きな作業を分解して parent-child と進捗を扱う機能です。follow-up Issue は必ず sub-issue にすべきではありません。親 Issue の Outcome 達成に残作業として必要なら sub-issue、将来改善・任意改善なら単独 Issue + source backlink、という分岐が妥当です。([GitHub Docs]3)

    推奨する高品質化方針

    #89 はそのまま実装せず、まず Issue 本文を以下の形に修正してください。

    Outcome:
      follow-up candidates を構造化 request に正規化し、
      main thread が dedupe preflight 後に create-issue へ委譲して自動起票する。
      人間は triage-required label の Issue を close / keep / split する。
    
    Out of Scope:
      create-issue runtime logic の変更
      既存 PR #80 NOTE の遡及起票
      pr-reviewer / post-merge-cleanup-worker による直接起票
      state/ready または readiness label の再導入
    

    そして docs/dev/agent-skill-boundaries.md に重複説明を散らすのではなく、中央ポリシーとして ## Follow-up Materialization Policy を置くのがよいです。現在の同ファイルは既に control-plane / data-plane 分離、GitHub state 活用、routine write/comment 自動化の原則を持っているため、ここに source / dedupe / triage の原則を足すのが最も自然です。

    結論

    #89 の目的は正しいです。ただし、現在の Issue contract は 「自動起票する」と書くだけで、自動起票が安全に・重複なく・責務境界を壊さず・review gate と矛盾せずに動く条件を定義していないため、No-Go as-is です。

    修正優先度は次の順です。

    1. 実装: state ラベル体系再定義 (state/queued vs state/ready 役割分担) (A2) #76 前提を 実装: state ラベル意味論の明確化と blocker/dependency ベース着手可能判定の SSOT 化 (A2 再定義) #92/実装: issue-contract-review に blocker/dependency 全 close 確認ステップを追加する #95/実装: create-issue skill で起票時に implementation Issue 標準ラベル (state/queued + phase/implementation + agent/implementer + enhancement) を自動付与する #61 前提に更新。
    2. FOLLOW_UP_ISSUE_REQUEST_V1 と dedupe_key を定義。
    3. triage-required を state ではなく補助分類ラベルとして定義。
    4. pr-review-judge は起票せず、impl-review-loop Step 5 が main thread で起票する責務にする。
    5. mandatory / optional / note_only を分類し、Safety Claim Matrix の open follow-up requirement と整合させる。
    6. grep-only AC を、構造化契約・negative check・source backlink 検証へ置換。
  3. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop: 本文更新 (iteration 0)

  4. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop: 完了 (2026-05-21T14:42:28Z)

    • iteration: 1(iteration 0 で本文更新、iteration 1 で approve)
    • verdict: approve
    • termination_reason: approved

    改善履歴

    iteration 0 で反映した変更

    1. C9 fix: ## Runtime Verification Applicability セクション追加(decision: not_applicable)
    2. ANCHOR-1 fix: stale #76(NOT_PLANNED closed)参照を削除・更新
    3. ANCHOR-2 fix: pr-review-judge の責務境界違反を修正
      • AC4: 「non-blocker observations は LOOP_VERDICT.follow_up_issue_requests フィールドに出力し、Issue 起票は main thread が行う」に書き換え
      • In Scope: pr-review-judge 記述を「起票は行わない」に修正
    4. ANCHOR-3 fix: FOLLOW_UP_ISSUE_REQUEST_V1 / dedupe_key スキーマを In Scope / AC7 / VC に追加
    5. ANCHOR-4 fix: VC AC4 に negative check(pr-review-judge が直接起票する記述がないこと)を追加
    6. Refs 更新: #76 を Refs から削除、acceptance_criteria_count: 6 → 7

    残存 non-blocking 改善候補

    • NB-1: ## Current Validated Scope の pr-review-judge 記述が旧記述のまま(In Scope / AC4 とは整合しているが、Current Validated Scope だけ古い)。実装着手前に簡易修正推奨。
    • NB-2: Safety Claim Gate の mandatory_follow_up 要件と FOLLOW_UP_ISSUE_REQUEST_V1 severity 分類の整合を実装時に確認すること。

    次アクション

    issue-contract-review を実施してから実装着手してください。

  5. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    Contract Snapshot (2026-05-21T14:50:57Z)

    Status: go

    • Outcome: 各オーケストレーション skill の SKILL.md/steps に「follow-up 候補は create-issue 経由で即時自動起票する」運用が明記され、docs/dev に triage モデル原則・ラベル運用が追記された状態にする
    • Acceptance Criteria: AC1-AC7(grep による決定論的テキスト検査)
    • Verification Commands: grep 7件 + pnpm 4コマンド
    • Allowed Paths: .claude/skills/post-merge-cleanup/SKILL.md, .claude/skills/impl-review-loop/SKILL.md, .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md, .claude/skills/issue-refinement-loop/SKILL.md, .claude/skills/pr-review-judge/SKILL.md, docs/dev/agent-skill-boundaries.md, docs/dev/github-ops.md
    • Worktree: .claude/worktrees/issue-89-post-merge-cleanup-skill-follow-up-issue
    • Branch: worktree-issue-89-post-merge-cleanup-skill-follow-up-issue
    • VC preflight: baseline fail = 7 (AC1-AC7 all exit 1 = expected_baseline_fail), 想定外 pass = 0, 実行不可 = 0
    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: 2026-05-21T14:50:57Z
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/89
      checks:
        template_compliance: pass
        state_label: pass
        allowed_paths_present: pass
        vc_present: pass
        stop_conditions_complete: pass
        vc_preflight:
          passed: true
          vc_failed_as_expected: 7
          vc_passed_unexpectedly: 0
          vc_unrunnable: 0
        ac_verifiability: pass
        worktree_branch_collision: clear
      next_action: implement_issue
      blocked_reasons: []
      warnings:
        - "title prefix が '運用:' で template default '実装:' と不一致だが、機械可読契約 issue_kind: implementation は正しい"
        - "phase/implementation ラベル欠落。state/queued は存在し着手可能"
        - "git branch --list exit 0 false positive により branch collision 誤検知(実際は衝突なし)"
  6. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    implement-issue: 実装完了 (2026-05-21T23:58:00Z)

    AC 検証結果

    AC 結果
    AC1: post-merge-cleanup/SKILL.md に自動起票運用を明記 PASS
    AC2: step-5-feedback-and-termination.md に non-blocker NOTE 自動起票を明記 PASS
    AC3: issue-refinement-loop/SKILL.md に派生改善候補の自動起票を明記 PASS
    AC4: pr-review-judge/SKILL.md に follow_up_issue_requests フィールドと起票責務分離を明記(直接起票記述なし) PASS
    AC5: agent-skill-boundaries.md に主インターフェース原則と triage モデルを記載 PASS
    AC6: github-ops.md に triage-required ラベル運用ルールを記載 PASS
    AC7: agent-skill-boundaries.md に FOLLOW_UP_ISSUE_REQUEST_V1 スキーマを定義 PASS

    標準ゲート

    コマンド 結果
    pnpm typecheck PASS
    pnpm lint FAIL(既存 93 errors、main ブランチと同一の既存問題。本 PR の docs 変更とは無関係)
    pnpm test PASS(28 files / 35 tests)
    pnpm build PASS

    備考

  7. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 完了 (2026-05-21T15:05:03Z)

    follow_up_issue_requests(optional_follow_up × 3)

    以下の follow-up Issue を自動起票します(本 PR で実装した triage モデルを初回適用):

    1. pnpm lint 既存 93 errors の系統的解消
    2. issue-refinement-loop SKILL.md の SubAgent 名明示
    3. FOLLOW_UP_ISSUE_REQUEST_V1 の note_only severity 記録先ルール定義

    運用上の観察事項(PR 本文にも記載済み)

    • git branch --list の exit 0 false positive 問題 → issue-contract-review step 6 修正候補
    • impl-review-loop の contract_snapshot_url 自動取得フロー改善候補
    LOOP_STATE:
      issue_number: 89
      contract_snapshot_url: https://github.com/squne121/loop-protocol/issues/89#issuecomment-4509444524
      iteration: 0
      max_iterations: 5
      worktree: .claude/worktrees/issue-89-post-merge-cleanup-skill-follow-up-issue
      branch: worktree-issue-89-post-merge-cleanup-skill-follow-up-issue
      last_step: judgment
      last_loop_verdict: APPROVE
      blockers_history: []
      external_research_skip_basis: "docs-only 変更(SKILL.md/.md ファイルへのテキスト追記のみ)。外部仕様不要"
      termination_reason: approved
  8. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: iteration 1 fix 完了 (2026-05-21T15:19:10Z)

    PR #179 の REQUEST_CHANGES(iteration 1)に対する修正を完了し push しました。

    修正済み Blockers

    ID タイトル 対応ファイル
    B1 FOLLOW_UP_ISSUE_REQUEST_V1 が create-issue の受け入れ契約と不整合 docs/dev/agent-skill-boundaries.md
    B2 issue_kind enum が破綻(docs/chore が存在しない) docs/dev/agent-skill-boundaries.md, .claude/skills/pr-review-judge/SKILL.md
    B3 post-merge-cleanup の follow_up_candidates が旧 schema のまま .claude/skills/post-merge-cleanup/SKILL.md
    B4 dedupe が title 検索に退化している .claude/skills/post-merge-cleanup/SKILL.md, .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md, .claude/skills/issue-refinement-loop/SKILL.md
    B5 note_only の記録先が未定義 .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md

    検証結果

    • B1: desired_destination / validated_scope_delta / origin_skill / source.kind がスキーマに存在: PASS
    • B2: issue_kind: implementation | research | parent に統一 / docs・chore が issue_kind にない: PASS
    • B3: follow_up_issue_requests / FOLLOW_UP_ISSUE_REQUEST_V1 が post-merge-cleanup に存在 / 旧フィールド削除済み: PASS
    • B4: dedupe_key ベースの gh issue list --search を使用 / title 検索なし: PASS
    • B5: note_only_observations / follow_up_issues が終了コメントテンプレートに存在: PASS
    • pnpm typecheck / lint / test / build: すべて PASS

    コミット

    3895033 — PR #179 ブランチ worktree-issue-89-post-merge-cleanup-skill-follow-up-issue に push 済み

  9. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 完了 (2026-05-22T00:00:00Z)

    iteration 1 で解消した Blockers

    • B1: FOLLOW_UP_ISSUE_REQUEST_V1 に desired_destination / validated_scope_delta / source.kind / origin_skill を追加
    • B2: issue_kind enum を implementation | research | parent に統一(docs/chore は labels へ)
    • B3: post-merge-cleanup の follow_up_candidates を follow_up_issue_requests: FOLLOW_UP_ISSUE_REQUEST_V1[] に置換
    • B4: dedupe を dedupe_key ベース gh issue list --search に変更、## Source セクション必須化
    • B5: impl-review-loop 終了コメントに follow_up_issues / note_only_observations フィールドを追加

    follow_up_issue_requests(optional_follow_up × 2)

    以下を自動起票します:

    1. issue-refinement-loop の自動起票セクションで候補を収集する SubAgent 名が未明示(dedupe_key: follow-up:squne121/loop-protocol:pr/179:1)
    2. impl-review-loop 以外の skill の終了コメントで note_only_observations フィールドが未統一(dedupe_key: follow-up:squne121/loop-protocol:pr/179:2)
    LOOP_STATE:
      issue_number: 89
      contract_snapshot_url: https://github.com/squne121/loop-protocol/issues/89#issuecomment-4509444524
      iteration: 1
      max_iterations: 5
      worktree: .claude/worktrees/issue-89-post-merge-cleanup-skill-follow-up-issue
      branch: worktree-issue-89-post-merge-cleanup-skill-follow-up-issue
      last_step: judgment
      last_loop_verdict: APPROVE
      blockers_history:
        - iteration: 0
          blockers:
            - B1: FOLLOW_UP_ISSUE_REQUEST_V1 create-issue 契約不整合
            - B2: issue_kind enum 破綻
            - B3: post-merge-cleanup 旧 schema
            - B4: dedupe が title 検索に退化
            - B5: note_only 記録先未定義
      follow_up_issues: []
      note_only_observations: []
      external_research_skip_basis: "docs-only 変更。外部仕様不要"
      termination_reason: approved
  10. added a commit that references this issue on May 21, 2026
  11. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: iteration 2 修正完了 (2026-05-22T06:43:00Z)

    PR #179 iteration 2 の REQUEST_CHANGES を対応しました。

    対応した Blocker

    B1: initial_label_profile フィールドを追加

    • FOLLOW_UP_ISSUE_REQUEST_V1 スキーマに initial_label_profile: triage_only | standard を追加
    • triage_only(デフォルト): gh issue create 直接使用、state/queued 等の標準ラベルを付与しない
    • ## Follow-up Materialization Policy に起票フロー説明と NOTE(create_issue_txn.py 拡張は mandatory_follow_up Issue 予定)を追記

    B2: dedupe フロー を --state all に変更

    • post-merge-cleanup/SKILL.md、step-5-feedback-and-termination.md、agent-skill-boundaries.md の全 dedupe 検索を --state all に変更
    • closed 状態の重複 Issue を見つけた場合のルール(skipped_closed_not_planned / skipped_closed_completed / skipped_closed_duplicate)を定義
    • closed Issue の自動差し戻し起票は human escalation 必須とした

    B3: 終了テンプレートに FOLLOW_UP_MATERIALIZATION_RESULT_V1 を追加

    • issue-refinement-loop/SKILL.md と post-merge-cleanup/SKILL.md の終了コメントテンプレートに follow_up_issues / note_only_observations を追加
    • FOLLOW_UP_MATERIALIZATION_RESULT_V1 形式で統一

    B4: pr-review-judge に mandatory_follow_up_gate guardrail を追加

    • mandatory_follow_up_gate guardrail を追加: severity: mandatory_follow_up が未 materialize の場合は APPROVE 禁止
    • action: REQUEST_CHANGES として記録

    High: FOLLOW_UP_MATERIALIZATION_RESULT_V1 を中央定義

    • agent-skill-boundaries.md に FOLLOW_UP_MATERIALIZATION_RESULT_V1 スキーマを中央定義として追加
    • materialization フィールドを FOLLOW_UP_ISSUE_REQUEST_V1 に追加

    Non-blocker: edit-issue 言及を削除

    • post-merge-cleanup/SKILL.md の edit-issue 言及を削除(create-or-skip の 2 択に整理)

    Verification

    • B1: grep -E 'initial_label_profile|triage_only' docs/dev/agent-skill-boundaries.md → PASS
    • B2: grep -E '\-\-state all' 全対象ファイル → PASS
    • B2: --state open dedupe なし → PASS
    • B3: follow_up_issues|note_only_observations 両ファイル → PASS
    • B4: mandatory_follow_up_gate|materialize pr-review-judge → PASS
    • High: FOLLOW_UP_MATERIALIZATION_RESULT_V1 agent-skill-boundaries.md → PASS
    • pnpm typecheck → PASS
    • pnpm lint → PASS
    • pnpm test → 25/25 PASS
    • pnpm build → PASS

    変更コミット

    d8109ca → 3c9008e(rebase 後)on branch worktree-issue-89-post-merge-cleanup-skill-follow-up-issue

  12. squne121 commented on May 21, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 完了 (2026-05-22)

    Blocker 解消履歴

    iteration 0 → 1(REQUEST_CHANGES × 5)

    • B1: FOLLOW_UP_ISSUE_REQUEST_V1 create-issue 契約不整合(desired_destination 等追加)
    • B2: issue_kind enum 破綻(docs/chore → labels へ)
    • B3: post-merge-cleanup 旧 schema(FOLLOW_UP_ISSUE_REQUEST_V1[] へ統一)
    • B4: dedupe が title 検索(dedupe_key ベースへ変更)
    • B5: note_only 記録先未定義(終了コメントに follow_up_issues / note_only_observations 追加)

    iteration 1 → 2(REQUEST_CHANGES × 4)

    • B1: triage-required と create-issue 標準ラベル衝突(initial_label_profile: triage_only 追加)
    • B2: dedupe が --state open 固定(--state all + closed 扱い追加)
    • B3: issue-refinement-loop 終了テンプレート欠落(follow_up_issues / note_only_observations 追加)
    • B4: pr-review-judge に mandatory_follow_up gate なし(guardrail 追加)

    follow_up_issues(起票済み)

    note_only_observations

    LOOP_STATE:
      issue_number: 89
      iteration: 2
      last_step: judgment
      last_loop_verdict: APPROVE
      termination_reason: approved
      follow_up_issues:
        - request_dedupe_key: follow-up:squne121/loop-protocol:pr/179:note-only-rule
          issue_number: 181
          issue_url: https://github.com/squne121/loop-protocol/issues/181
          status: created
        - request_dedupe_key: follow-up:squne121/loop-protocol:issue-contract-review:branch-check
          issue_number: 182
          issue_url: https://github.com/squne121/loop-protocol/issues/182
          status: created
        - request_dedupe_key: follow-up:squne121/loop-protocol:pr/179:1
          issue_number: 185
          issue_url: https://github.com/squne121/loop-protocol/issues/185
          status: created
        - request_dedupe_key: follow-up:squne121/loop-protocol:pr/179:2
          issue_number: 186
          issue_url: https://github.com/squne121/loop-protocol/issues/186
          status: created
      note_only_observations:
        - dedupe_key: follow-up:squne121/loop-protocol:pr/179:lint-93-errors
          source_url: https://github.com/squne121/loop-protocol/pull/179
          source_note_id: lint
          summary: pnpm lint 既存 93 errors(main ブランチ由来、本 PR 変更とは無関係)
        - dedupe_key: follow-up:squne121/loop-protocol:pr/179:note-only-flow
          source_url: https://github.com/squne121/loop-protocol/pull/179
          source_note_id: 3
          summary: note_only severity の終了報告フロー記述が軽薄(#181 で対応予定)
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

    enhancementstate/queued

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions