Repository navigation
docs: follow-up Issue 自動起票運用と triage モデル原則を各 skill に明記する (#89) - #179
Conversation
各オーケストレーション skill の SKILL.md に「follow-up 候補は create-issue 経由で 即時自動起票する」運用を追記し、docs/dev に triage モデル原則・ラベル運用・ FOLLOW_UP_ISSUE_REQUEST_V1 スキーマを定義した。 - post-merge-cleanup: follow_up_candidates の自動起票フローを明記 - impl-review-loop step-5: non-blocker NOTE の follow-up Issue 自動起票を追加 - issue-refinement-loop: 派生改善候補の自動起票を明記 - pr-review-judge: follow_up_issue_requests フィールドを LOOP_VERDICT に追加(起票は main thread 責務) - agent-skill-boundaries.md: 主インターフェース原則・triage モデル・FOLLOW_UP_ISSUE_REQUEST_V1 スキーマ追加 - github-ops.md: triage-required ラベル運用ルール追加 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
- AC coverage: 全 7 AC が
[x]でチェック済み、根拠記述あり。実ファイルへの grep 検証でも全件確認済み(詳細は下記) - Allowed Paths: 完全遵守。変更 6 ファイルすべてが Issue #89 の Allowed Paths 内に含まれる
- CI Verification: build/lint/python-test/test/typecheck 全 5 チェック pass(https://github.com/squne121/loop-protocol/actions/runs/26234024666)
- 検証コマンド結果: PR 本文の検証コマンド表に全項目記録済み。pnpm lint は既存 93 errors(main ブランチと同一)を注記しており、本 PR の変更と無関係であることを説明済み
- Safety Claim Matrix: safety-sensitive PR(
.claude/skills/**変更)として正しく識別し、Matrix を提出。Not controlled 列はすべて「なし」で、無限定の安全主張なし - Schema Change Applicability:
not_schema_changeを明示。docs-only 変更(新規スキーマ定義の追加のみ)であり consumer 境界への変更なし。根拠も diff と一致 - Runtime Verification Applicability:
not_applicable(docs-only 変更、grep による決定論的検査で完結)。正しく判定済み
AC 個別検証サマリ
| AC | grep 結果 |
|---|---|
| AC1 | 2 件ヒット(即時 + 自動起票フロー セクション) |
| AC2 | 3 件ヒット(自動起票・follow-up Issue 等) |
| AC3 | 3 件ヒット(派生改善候補・自動起票) |
| AC4 positive | 2 件ヒット(follow_up_issue_requests・起票責務は impl-review-loop Step 5 等の main thread) |
| AC4 negative | 0 件(直接起票記述なし、PASS) |
| AC5 | 3 件ヒット(主インターフェース・primary interface・triage モデル) |
| AC6 | 5 件ヒット(triage-required・triage.*ラベル) |
| AC7 | 5 件ヒット(FOLLOW_UP_ISSUE_REQUEST_V1・dedupe_key) |
Blockers
なし
Non-blockers(任意改善)
pnpm lintの既存 93 errors: PR 本文では「main ブランチと同一」と説明されているが、lint エラーの系統的解消は別 Issue として追跡することを検討してよい(本 PR のスコープ外)。issue-refinement-loopの SubAgent 名未定義: AC3 で「各 SubAgent の出力中に含まれる派生改善候補」と書かれているが、具体的にどの SubAgent が候補を返すか(codebase-investigator/review-issue等)が未定義のまま。実装時に曖昧さが生じる可能性がある。FOLLOW_UP_ISSUE_REQUEST_V1のnote_onlyseverity の扱い:note_onlyは「起票せず終了報告コメントに記録のみ」とあるが、step-5-feedback-and-termination.mdの終了報告コメントフォーマットにnote_only記録用のフィールドが未定義。将来の実装時に混乱する可能性がある。
LOOP_VERDICT
verdict: APPROVE
blockers: []
follow_up_issue_requests:
- title: "pnpm lint 既存 93 errors の系統的解消"
issue_kind: chore
severity: optional_follow_up
source:
url: "https://github.com/squne121/loop-protocol/pull/179"
note_id: "1"
dedupe_key: "follow-up:squne121/loop-protocol:pr/179:1"
labels: []
- title: "issue-refinement-loop AC3 の派生改善候補を返す SubAgent 名を明示する"
issue_kind: docs
severity: optional_follow_up
source:
url: "https://github.com/squne121/loop-protocol/pull/179"
note_id: "2"
dedupe_key: "follow-up:squne121/loop-protocol:pr/179:2"
labels: []
- title: "FOLLOW_UP_ISSUE_REQUEST_V1 note_only severity の終了報告コメントフォーマットを定義する"
issue_kind: docs
severity: optional_follow_up
source:
url: "https://github.com/squne121/loop-protocol/pull/179"
note_id: "3"
dedupe_key: "follow-up:squne121/loop-protocol:pr/179:3"
labels: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 6ec046f1eb1e0d02a4b0c32924b2b2bd68c4d7e0
判定: REQUEST_CHANGESPR #179 は、#89 の主目的である「follow-up 候補を人間が後追い判断するモデルから、自動起票 + triage モデルへ移行する」方向性には合っています。#89 の契約も、 ただし現状の PR は、“自動起票する” という記述は増えたが、実際に安全に起票できる機械契約が閉じていません。 マージすると、重複 Issue、enum 不整合、create-issue 連携失敗、 Blocker 1:
|
…CHANGES に対応 (iter 1) - B1: FOLLOW_UP_ISSUE_REQUEST_V1 に desired_destination / validated_scope_delta / source.kind / origin_skill を追加し create-issue handoff 契約に整合させる - 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 を title 検索から dedupe_key ベースの gh issue list --search に変更し Source セクション必須化 - B5: impl-review-loop 終了コメントテンプレートに note_only_observations / follow_up_issues フィールドを追加 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
- AC coverage: 全 AC1-AC7 チェック済み、PR 本文の
## 受け入れ条件の達成状況で根拠付き記載あり - Allowed Paths: 遵守。変更ファイル 6 件はすべて Issue #89 の Allowed Paths 内
.claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md.claude/skills/issue-refinement-loop/SKILL.md.claude/skills/post-merge-cleanup/SKILL.md.claude/skills/pr-review-judge/SKILL.mddocs/dev/agent-skill-boundaries.mddocs/dev/github-ops.md
- CI Verification: build/lint/python-test/test/typecheck 全 pass(GitHub Actions 確認済み)
- 検証コマンド結果: AC1-AC7 の grep コマンド全 PASS、standard gates 全 PASS(PR 本文に記録済み)
- Schema Change Applicability:
not_schema_change明示あり、根拠は docs-only 変更のため妥当 - Safety Claim Matrix: safety-sensitive(
.claude/skills/**)として提出済み、Not controlled 列が空で Evidence 完備
Blockers チェック(iteration 1 修正)
B1: FOLLOW_UP_ISSUE_REQUEST_V1 フィールド追加
docs/dev/agent-skill-boundaries.md の diff を確認。desired_destination / validated_scope_delta / source.kind(pr_body | pr_review | issue_comment | post_merge_cleanup | refinement)/ origin_skill がすべてスキーマに追加された。フィールド定義テーブルにも説明あり。解消済み
B2: issue_kind enum 統一
docs/dev/agent-skill-boundaries.md の FOLLOW_UP_ISSUE_REQUEST_V1 スキーマが issue_kind: implementation | research | parent に統一された。フィールド定義で「docs/chore 等は labels に入れる」と明記。PR 本文・SKILL.md のサンプル YAML でも issue_kind: implementation が使われており enum 違反なし。解消済み
B3: post-merge-cleanup follow_up_candidates 置換
post-merge-cleanup/SKILL.md diff にて POST_MERGE_CLEANUP_REPORT_V1 の follow_up_candidates フィールドが follow_up_issue_requests に置換され、FOLLOW_UP_ISSUE_REQUEST_V1 形式(title / issue_kind / severity / source.kind / source.url / source.note_id / dedupe_key / desired_destination / validated_scope_delta / origin_skill / labels)に更新された。解消済み
B4: dedupe_key ベース dedupe + ## Source セクション
issue-refinement-loop/SKILL.md / post-merge-cleanup/SKILL.md / docs/dev/agent-skill-boundaries.md にて、dedupe は title 検索ではなく gh issue list --search '"<dedupe_key>"' ベースで実施すると明記された。agent-skill-boundaries.md の dedupe フローに ## Source セクション(dedupe_key 含む)を必須で付与する旨が明記された。解消済み
B5: impl-review-loop 終了コメントテンプレートへのフィールド追加
step-5-feedback-and-termination.md diff にて、終了報告コメントテンプレートに follow_up_issues(request_dedupe_key / issue_number / issue_url / status)と note_only_observations(dedupe_key / source_url / source_note_id / summary)の 2 フィールドが追加された。解消済み
Blockers
なし(iteration 0 の 5 件すべて解消済み)
Non-blockers(任意改善)
- issue-refinement-loop の自動起票 SubAgent 名未明示 —
SKILL.mdの「派生改善候補を自動起票する」文脈で「どの SubAgent が候補を返すか」が不明。読者が候補の収集元を特定しにくい。別 Issue での改善を推奨。 note_onlyseverity の終了コメント記録先ルール —agent-skill-boundaries.mdにseverity: note_onlyの場合は「起票せず終了コメントのnote_only_observationsに記録」と明記されたが、各 skill(impl-review-loop 以外)の終了コメントテンプレートでの同フィールド対応が未統一。別 Issue での整合を推奨。
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 3895033ca16b1d8ec7054523cbea12e7495c9874
follow_up_issue_requests:
- title: "issue-refinement-loop: 派生改善候補を収集する SubAgent を明示する"
issue_kind: implementation
severity: optional_follow_up
source:
kind: pr_review
url: "https://github.com/squne121/loop-protocol/pull/179"
note_id: "1"
dedupe_key: "follow-up:squne121/loop-protocol:pr/179:1"
desired_destination: "issue-refinement-loop SKILL.md の「派生改善候補を自動起票する」セクションで、候補を収集する SubAgent(role)が明示されている"
validated_scope_delta: ".claude/skills/issue-refinement-loop/SKILL.md の自動起票セクションに SubAgent 名または収集元の参照を追記する"
origin_skill: pr-review-judge
labels:
- triage-required
- docs
- title: "impl-review-loop 以外の skill の終了コメントテンプレートに note_only_observations フィールドを追加する"
issue_kind: implementation
severity: optional_follow_up
source:
kind: pr_review
url: "https://github.com/squne121/loop-protocol/pull/179"
note_id: "2"
dedupe_key: "follow-up:squne121/loop-protocol:pr/179:2"
desired_destination: "各 skill の終了コメントテンプレートで note_only_observations フィールドが統一されている"
validated_scope_delta: "issue-refinement-loop / post-merge-cleanup の終了コメントテンプレートに note_only_observations フィールドを追加する"
origin_skill: pr-review-judge
labels:
- triage-required
- docs
判定: REQUEST_CHANGESPR #179 は #89 の目的、「follow-up 候補を人間が後追い判断する運用から、自動起票 + triage に移す」方向には合っています。特に、前回指摘されていた ただし、現 HEAD のままでは 自動起票した follow-up Issue が triage 前に Blocker 1:
|
- B1: FOLLOW_UP_ISSUE_REQUEST_V1 に initial_label_profile (triage_only|standard) と materialization フィールドを追加。triage_only 時は gh issue create 直接使用で state/queued 等の標準ラベルを付与しないフローを明記 - B2: dedupe 検索を --state open から --state all に変更し closed 重複 Issue の skipped_closed_* ステータスを定義。closed Issue の自動差し戻しは human escalation とした - B3: issue-refinement-loop と post-merge-cleanup の終了コメントテンプレートに FOLLOW_UP_MATERIALIZATION_RESULT_V1 形式の follow_up_issues / note_only_observations を追加 - B4: pr-review-judge に mandatory_follow_up_gate guardrail を追加。 mandatory_follow_up が未 materialize の場合は APPROVE 禁止とした - High: agent-skill-boundaries.md に FOLLOW_UP_MATERIALIZATION_RESULT_V1 を中央定義として追加 - Non-blocker: post-merge-cleanup の edit-issue 言及を削除(create-or-skip の 2 択に整理) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
iteration 2 修正により前回の 4 Blockers はすべて解消されました。
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
AC coverage: 全 AC1-AC7 が [x] で記載され、根拠コマンドの結果も記録されている。placeholder 残存なし。
Allowed Paths: 変更ファイル 6 件はすべて Issue #89 の Allowed Paths に含まれる。impl-review-loop/SKILL.md 本体は変更されておらず、steps/step-5-feedback-and-termination.md のみ変更(これも Allowed Paths に含まれる)。
CI Verification: build / lint / python-test / test / typecheck の全 5 チェックが pass。lint は main ブランチ由来の既存 93 errors(本 PR の docs 変更と無関係)。
検証コマンド結果: AC1-AC7 の grep コマンドが各 1 件以上ヒット、negative check(AC4)も PASS が記録されている。
Schema Change Applicability: not_schema_change と明示され、変更は docs-only であることが diff と一致している。Schema Consumer Inventory の提出不要。
Safety Claim Matrix: .claude/skills/** の変更を含む safety-sensitive PR として Matrix を提出済み。Not controlled 列が全行「なし」で、無限定安全主張も PR タイトル / 本文に確認されない。Evidence は SKILL.md 内の記述 + negative check コマンドと対応している。
Runtime Verification: decision: not_applicable(docs-only)。deferred 先の参照確認不要。
Blocker 解消確認
B1(triage_only / create_issue_txn.py bypass): FOLLOW_UP_ISSUE_REQUEST_V1 に initial_label_profile: triage_only | standard と materialization フィールドが追加された。triage_only 時は create_issue_txn.py を使わず gh issue create を直接実行し state/queued 等を付与しないことが agent-skill-boundaries.md に明記されている。解消済み。
B2(dedupe --state all): post-merge-cleanup・impl-review-loop・issue-refinement-loop・agent-skill-boundaries.md の全箇所で --state all に変更済み。closed Issue の再起票を禁止する skipped_closed_not_planned / skipped_closed_completed / skipped_closed_duplicate ステータスが各所に追加されている。解消済み。
B3(issue-refinement-loop の終了コメントに FOLLOW_UP_MATERIALIZATION_RESULT_V1 追加): issue-refinement-loop/SKILL.md の approved 終了テンプレートに FOLLOW_UP_MATERIALIZATION_RESULT_V1 ブロック(follow_up_issues + note_only_observations)が追加されている。解消済み。
B4(pr-review-judge の mandatory_follow_up_gate): pr-review-judge/SKILL.md の Guardrails セクションに mandatory_follow_up_gate が追加され、未 materialize の場合は APPROVE 出力を禁止し REQUEST_CHANGES を出力する旨が明記されている。解消済み。
Blockers
なし
Non-blockers(任意改善)
以下の観察事項は blocker 扱いせず、必要に応じて後続 Issue で対処してください。
-
pnpm lint 既存 93 errors の系統的解消 — main ブランチ由来の既存問題。本 PR の変更とは無関係だが、CI を green に保つためには別 Issue での解消が望ましい。
-
issue-refinement-loop AC3 の「候補を返す SubAgent」未明示 —
SKILL.mdの「派生改善候補を自動起票する」文脈で、どの SubAgent が候補を返すか明記されていない(codebase-investigator / web-researcher / review-issue が候補)。読者の判断負荷が残る。 -
FOLLOW_UP_ISSUE_REQUEST_V1のnote_onlyseverity の記録先が未定義 —agent-skill-boundaries.mdにseverity: note_onlyの場合の終了報告先フィールド(note_only_observations)のルールは定義されているが、note_onlyを受け取る skill が終了報告コメントのどのフィールドに記録するかのフロー記述が軽薄。実装時に解釈ゆらぎが生じうる。
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 3c9008eb5c448dca6aebaba8febc1e463ffac99d
follow_up_issue_requests:
- title: "pnpm lint 既存 93 errors の系統的解消"
issue_kind: implementation
severity: optional_follow_up
source:
kind: pr_review
url: "https://github.com/squne121/loop-protocol/pull/179"
note_id: "1"
dedupe_key: "follow-up:squne121/loop-protocol:pr/179:1"
desired_destination: "pnpm lint が 0 errors で CI が完全 green になっている"
validated_scope_delta: "ESLint errors の修正(main ブランチ由来の既存エラー群)"
origin_skill: pr-review-judge
labels:
- triage-required
initial_label_profile: triage_only
- title: "issue-refinement-loop の派生改善候補返却 SubAgent を明示する"
issue_kind: implementation
severity: note_only
source:
kind: pr_review
url: "https://github.com/squne121/loop-protocol/pull/179"
note_id: "2"
dedupe_key: "follow-up:squne121/loop-protocol:pr/179:2"
desired_destination: "refinement loop で派生改善候補を返す SubAgent が SKILL.md に明記されている"
validated_scope_delta: "issue-refinement-loop/SKILL.md の派生改善候補セクションに SubAgent 名を追記"
origin_skill: pr-review-judge
labels:
- triage-required
initial_label_profile: triage_only
- title: "note_only severity の終了報告フローを各 skill で統一する"
issue_kind: implementation
severity: note_only
source:
kind: pr_review
url: "https://github.com/squne121/loop-protocol/pull/179"
note_id: "3"
dedupe_key: "follow-up:squne121/loop-protocol:pr/179:3"
desired_destination: "note_only 受け取り時の終了報告手順が各 skill の SKILL.md に統一記述されている"
validated_scope_delta: "各 skill の終了報告テンプレートに note_only フロー記述を追加"
origin_skill: pr-review-judge
labels:
- triage-required
initial_label_profile: triage_only
Summary
create-issue経由で即時自動起票する」運用を明記したdocs/dev/agent-skill-boundaries.mdに triage モデル原則・FOLLOW_UP_ISSUE_REQUEST_V1スキーマを追加したdocs/dev/github-ops.mdにtriage-requiredラベルの運用ルールを追加したSchema Change Applicability
schema_change_applicability: not_schema_change
本 PR は docs-only 変更であり、consumer 境界をまたぐ contract への変更は含まない(新規 schema 定義の追加のみ)。
Safety Claim Matrix
本 PR は safety-sensitive 変更(
.claude/skills/**)を含むため Safety Claim Matrix を提出する。pr-review-judgeが直接 Issue 起票しない! grepnegative check受け入れ条件の達成状況
post-merge-cleanup/SKILL.mdに「follow_up_candidates は main thread が即時 issue-author 経由で自動起票する」運用を明記impl-review-loop/steps/step-5-feedback-and-termination.mdに「pr-review-judge non-blocker NOTE は follow-up Issue として自動起票」を明記issue-refinement-loop/SKILL.mdに「refinement 中の派生改善候補も自動起票対象」を明記pr-review-judge/SKILL.mdにfollow_up_issue_requestsフィールドと「起票は main thread」を明記(直接起票記述なし)docs/dev/agent-skill-boundaries.mdに「主インターフェース原則」と「triage モデル(不要なら close)」を記載docs/dev/github-ops.mdにtriage-requiredラベルの運用ルールを記載docs/dev/agent-skill-boundaries.mdにFOLLOW_UP_ISSUE_REQUEST_V1スキーマ(dedupe_key / source.url / source.note_id / severity)を定義検証コマンド結果
grep -E '自動起票|auto-create|即時.*issue-author' post-merge-cleanup/SKILL.mdgrep -E '自動起票|follow-up.*Issue' step-5-...mdgrep -E '派生.*自動起票|follow-up.*自動' issue-refinement-loop/SKILL.mdgrep -E 'follow_up_issue_requests|起票.*main thread|main thread.*起票' pr-review-judge/SKILL.md! grep -E 'issue-author|create-issue.*起票|gh issue create' pr-review-judge/SKILL.mdgrep -E '主インターフェース|primary interface|triage.*モデル' agent-skill-boundaries.mdgrep -E 'triage-required|triage.*ラベル' github-ops.mdgrep -E 'FOLLOW_UP_ISSUE_REQUEST_V1|dedupe_key' agent-skill-boundaries.mdpnpm typecheckpnpm lintpnpm testpnpm buildAllowed Paths 遵守
変更ファイルはすべて contract に記載の Allowed Paths に含まれる:
.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✓.claude/skills/pr-review-judge/SKILL.md✓docs/dev/agent-skill-boundaries.md✓docs/dev/github-ops.md✓改善観察事項(Non-blocker / optional_follow_up)
pr-review-judge が LOOP_VERDICT に記録した
follow_up_issue_requestsから抽出。follow-up Issue として自動起票予定。SKILL.mdの「派生改善候補を自動起票する」文脈で「どの SubAgent が候補を返すか」が明示されていない。読者がどこで候補を拾うか判断しにくい。FOLLOW_UP_ISSUE_REQUEST_V1のnote_onlyseverity の記録先が未定義 —agent-skill-boundaries.mdに severity がnote_onlyの場合、ループ終了報告コメントのどのフィールドに記録するかのルールが書かれていない。作業手順・運用上の観察事項
git branch --list "$BRANCH"は branch が存在しない場合も exit 0 を返すため、[WARN] branch 既存の false positive が発生した。git branch --list "$BRANCH" | grep -q .を使うべき(issue-contract-reviewstep 6 の修正候補)。impl-review-loopのcontract_snapshot_urlは inputs として必須だが、ユーザーが直接提供しない場合(/impl-review-loop 89のみ指定)は orchestrator がissue-contract-review実行後に自動取得する設計にすると UX が改善できる。Closes #89
🤖 Generated with Claude Code