Skip to content

再発防止: impl-review-loop の blocking:true 一律スキップ記述を #2916 non-pass 委譲例外と整合させる #3041

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "impl-review-loop の root が blocking:true のみで Step 4 を一律スキップせず、#2916 の正規 pr_review_only non-pass opt-in を使えるよう手順の優先関係を明確化する"
change_kind: workflow
dedupe_key: "impl-review-loop:step4-blocking-nonpass-optin-doc-routing-parity:v1"

Origin / Related

Evidence / Reproduction

main 46d873f08ae39220e50e2089997485ca1ef59d6c の文書に、相容れないルーティング説明が残る。

  1. .claude/skills/impl-review-loop/SKILL.md の Loop Structure は Step 2 → Step 4 を「VC_ADJUDICATION_RESULT_V1.blocking == false のときのみ通過」と説明。
  2. .claude/skills/impl-review-loop/steps/step-4-pr-review.md 冒頭も「blocking == true は Step 4 スキップ、Step 5 直行(REQUEST_CHANGES 確定)」と無条件に記述。同ファイル current-head gate 表でも blocking == true を一律拒否。
  3. しかし同ファイル「pr_review_only の実行失敗を reviewer へ委譲する条件(Issue 実装: pr_review_only AC の current-head 実行失敗・skip・fallback を lossless に保持したまま reviewer 判断へ委譲する route を定義する #2916)」には、--delegate-pr-review-only-nonpass 指定によって overall_status: indeterminate / blocking: true / rerun_required: false を保持したまま step4-adjudicate が invoke_pr_reviewer: true / exit 0 を返す正規例外がある。
  4. 現行 adjudicate_vc_result.py の evaluate_step4_vc_gate() および test_step4_pr_review_only_nonpass_reviewer_route.py は、その限定例外を実装・検証している。

未立証事項: 実際の対話 session がこの矛盾で reviewer dispatch を失敗したとの evidence はない。これは既存実装の仕様と root の prose 手順が不一致なため、今後の false-deny/不要な再実行を招くリスクである。

Outcome

既定の non-pass fail-closed を維持しつつ、root が blocking だけで早期 return せず canonical step4-adjudicate の invoke_pr_reviewer・reason_code・seq を確認して opt-in 時に reviewer を起動できることを、入口・フロー図・直前 gate の説明で矛盾なく規定する。

In Scope

Out of Scope

Acceptance Criteria

Allowed Paths

  • .claude/skills/impl-review-loop/SKILL.md
  • .claude/skills/impl-review-loop/steps/step-4-pr-review.md
  • .claude/skills/impl-review-loop/tests/test_step4_pr_review_only_nonpass_reviewer_route.py

Verification Commands

# preflight-scope: pr_review_only
uv run --locked pytest .claude/skills/impl-review-loop/tests/test_step4_pr_review_only_nonpass_reviewer_route.py -q

Delivery

1 Issue = 1 PR。current refinement/preflight の後に実装し、人間のマージ判断直前で停止。#3033 と無関係な広域 hardening は追加しない。

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions