Skip to content

実装: reviewer false-positive arbitration を issue-refinement-loop に追加する #1021

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
goal_ref: "reviewer の blocker が deterministic checker と結び付かないまま max_iterations を消費し human_escalation へ到達する問題を防ぐ"
change_kind: new_feature
risk_class: agent_ops_guard
affected_runtimes:
  - claude_code
non_goals:
  - issue-reviewer の主観レビュー能力の拡張
  - VC grammar の変更
  - baseline VC 実行ポリシー変更

Parent Issue

なし(standalone 実装 Issue)

Parent Goal Ref

reviewer C4 false-positive が 3 iteration 連続して max_iterations を消費し、deterministic tools が pass しているにもかかわらず human_escalation した問題の再発防止(#1014 refinement loop)

Current Validated Scope

  • .claude/skills/issue-refinement-loop/scripts/reviewer_claim_replay.py
  • .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay.py
  • .claude/skills/issue-refinement-loop/SKILL.md

Remaining Parent Gaps

なし

Outcome

reviewer の blocker は必ず source_check / error_code / line span に紐づく。紐づかない blocker は reviewer_claim_unbacked_by_deterministic_checker として扱い、rewrite iteration を浪費しない。

In Scope

  • .claude/skills/issue-refinement-loop/scripts/reviewer_claim_replay.py の新規実装
  • .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay.py の新規テスト
  • issue-reviewer compact result の consumer-side arbitration
  • C4 / VC syntax / missing section 系 blocker の replay
  • contract_readiness_check.py, baseline_vc_preflight.py, vc_contract_syntax.py との照合

Out of Scope

  • issue-reviewer の主観レビュー能力の拡張
  • VC grammar の変更
  • baseline VC 実行ポリシー変更

背景

#1014 では reviewer が C4 $ prefix blocker を反復した一方、deterministic tools は pass していた。prose reviewer の判定が deterministic checker と結び付かないまま max_iterations を消費し、human_escalation へ到達した。

Acceptance Criteria

  • AC1: reviewer blocker を contract_readiness_check.py, baseline_vc_preflight.py, vc_contract_syntax.py の source result と照合する。
  • AC2: source_check に存在しない C4 blocker は rewrite へ進めない。
  • AC3: 同一 unsupported blocker が 2 回連続した場合、max_iterations を消費せず reviewer_false_positive_suspected で停止する。
  • AC4: deterministic fail が存在する場合のみ issue-author に修正 payload を渡す。
  • AC5: compact stdout は routing-critical fields を保持し、raw review body は artifact path のみ返す。

Verification Commands

# AC1
uv run pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay.py -q
# AC2
uv run pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay.py -q
# AC3
uv run pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay.py -q
# AC4
uv run pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay.py -q
# AC5
uv run pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay.py -q

Allowed Paths

  • .claude/skills/issue-refinement-loop/scripts/reviewer_claim_replay.py
  • .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay.py
  • .claude/skills/issue-refinement-loop/SKILL.md

Runtime Verification Applicability

decision: not_applicable
reason: "新規 script 追加の範囲で完結し、interactive runtime 証跡を成功条件に含まない"

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • compact_review_result.py の schema が変更されていた場合
  • contract_readiness_check.py / baseline_vc_preflight.py / vc_contract_syntax.py の出力形式が変更されていた場合

Required Skills

  • Python scripting
  • issue-refinement-loop SKILL.md 理解
  • deterministic contract checker API 理解

Delivery Rule

  • 1 Issue = 1 PR で完了する。
  • Draft PR を既定とする。

Activity

  1. added
    enhancement
    workflow
    area/ai-ops
    on Jun 20, 2026
  2. added 2 commits that reference this issue on Jun 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

    area/ai-opsenhancementworkflow

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions