Skip to content

調査: pr-review-judge が複数 linked issue の AC 全件を検証する仕様か確認し仕様を明確化する #93

Open

Description

@squne121
contract_schema_version: v1
issue_kind: research
parent_issue: none
goal_ref: "pr-review-judge が複数 linked issue の AC 全件を検証する仕様かを確認し、必要なら仕様明確化の implementation Issue を起票できる状態にする"
change_kind: research-only

Parent Issue

none

Outcome

pr-review-judge/SKILL.md の「複数 Closes #N に対する linked issue AC 検証ロジック(単一 issue 前提か全件ループか)」を調査し、現行仕様の曖昧性を特定したうえで、仕様を明文化するための implementation Issue が起票可能な状態になること。

In Scope

  • .claude/skills/pr-review-judge/SKILL.md Step 1 〜 Step 4 の linked issue 取得・AC 検証ロジックの読解
  • PR docs: body-authoring に VC 構築手順・必須セクション列挙・Parent scaffold を追加 #91 のように Closes #25 Closes #42 ... と複数 linked issue を持つ PR に対して、現行 skill が AC をどう検証する(またはしない)かの判定
  • 「parent_issue: none(単独 implementation)の Issue を複数一括 close する運用」が pr-review-judge 仕様と整合するかの論点整理
  • 調査結果を本 Issue コメントに記録し、仕様明確化が必要な場合は implementation Issue を起票する

Out of Scope

Acceptance Criteria

  • AC1: pr-review-judge/SKILL.md の Step 1 が単一 issue のみを取得する実装か複数 issue を全件ループする実装かが明確にされ、本 Issue コメントに記録されている
  • AC2: parent_issue: none 運用と複数 Closes #N 一括 close 運用が pr-review-judge の現行仕様と整合しているか・していないかの判定が本 Issue コメントに記録されている
  • AC3: 仕様に曖昧性または不整合が発見された場合、それを明文化する implementation Issue が起票され、本 Issue からリンクされている
  • AC4: 現行仕様が「複数 linked issue の AC 全件検証」を明示的にカバーしている場合(曖昧性なし)、その旨が本 Issue コメントに記録され、implementation Issue の起票不要と判定されている
  • AC5: 本 Issue は close 可能な状態、または追加調査要件が明示されている

Verification Commands

  • gh issue view <this_issue_number> --json comments --jq '.comments[].body' | grep -c "AC1" — AC1 の調査コメントが投稿されていること(結果 >= 1)
  • gh issue view <this_issue_number> --json comments --jq '.comments[].body' | grep -c "AC2" — AC2 の調査コメントが投稿されていること(結果 >= 1)
  • gh issue list --state open --json number,title --repo squne121/loop-protocol | grep "pr-review-judge" || echo "no follow-up needed (verify AC4 instead)" — AC3 または AC4 の成立確認(implementation Issue 起票要否で分岐)

Allowed Paths

  • 読み取り専用。リポジトリ変更なし(既定)

Stop Conditions

  • Outcome / Scope / AC が検索可能な形で記載されていない場合は即停止
  • Allowed Paths 外への書き込みを試みた場合は即停止
  • 権限不足(permission denied)により操作が完了できない場合は即停止
  • 成果物の書き込みに失敗した場合(I/O エラー等)は即停止

Handoff Contract

  • Current Objective: pr-review-judge の複数 linked issue AC 検証仕様の確定
  • Bounded Current Context: .claude/skills/pr-review-judge/SKILL.md Step 1〜4
  • Open Questions: 複数 Closes #N を持つ PR で全件 AC 検証がループされるか、先頭 1 件のみ処理されるか
  • Next Action: 調査結果に応じて implementation Issue を起票(曖昧性あり)または close(整合済み)
  • Artifact Refs: 本 Issue コメント(調査結果記録)、後続 implementation Issue(必要時)

Background

PR #91(docs: body-authoring に VC 構築手順・必須セクション列挙・Parent scaffold を追加)では、Closes #25, Closes #42, Closes #53, Closes #59, Closes #60, Closes #70 のように 6 件の Issue を 1 PR で一括 close した。これらの Issue はいずれも parent_issue: none(単独 implementation)であった。

この運用に対して、pr-review-judge skill が複数 linked issue の AC を全件ループして検証する仕様になっているか不明確であることが PR #91 本文の「追加 follow-up Issue 提案(新規提案 B)」で指摘された。

現行の pr-review-judge/SKILL.md Step 1 は以下のコマンドを使用している:

gh pr view <PR番号> --json body --jq '.body' | grep -E "(Closes|Fixes|Resolves) #[0-9]+"

このコマンドは複数行マッチを返せる形式だが、Step 4 の AC coverage 検証が「linked issue(単数)」として記述されており、複数 issue への対応が明示されていない。

Required Skills

  • なし

Delivery Rule

1 Issue = 1 PR。本 Issue は調査専用であり、実装変更を伴う PR を出さない。

Activity

  1. added
    phase/research
    state/queued
    agent/research
    on May 20, 2026
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/researchphase/researchstate/queued

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions