Skip to content

実装: issue-contract-review SKILL.md の VC failure root cause 分類の confidence 判定基準と分類優先順フローを明確化する #123

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: issue-contract-review SKILL.md の VC failure root cause 分類の confidence 判定基準と分類優先順フローを明確化する
change_kind: docs

Parent Issue

なし(単独改善)

Parent Goal Ref

  • Goal: PR feat: issue-contract-review に VC failure root cause 分類ステップを追加する #122 で追加した VC failure root cause 分類サブステップの品質を高め、AI エージェントが confidence を一貫して付与できる状態にする
  • Desired Destination: .claude/skills/issue-contract-review/SKILL.md の「VC failure root cause 分類」サブステップに confidence 判定基準と分類優先順テーブルが明記された状態

Current Validated Scope

  • .claude/skills/issue-contract-review/SKILL.md の「VC failure root cause 分類」サブステップへの追記

Remaining Parent Gaps

なし

Background

PR #122(merged 2026-05-21)で .claude/skills/issue-contract-review/SKILL.md に VC failure root cause 分類サブステップと CONTRACT_REVIEW_RESULT_V1.vc_preflight.classifications スキーマを追加した。

PR #122 のレビューと改善観察で以下の non-blocker が指摘された:

  1. confidence フィールドの判定基準が未定義: スキーマに confidence: high | medium | low を追加したが、いつ high/medium/low になるかの判定基準が SKILL.md に記載されていない
  2. file_not_found_expected と file_not_found_unrunnable の混同リスク: 名前が類似しており、判定優先順や分類フローチャートがないと AI が誤分類する可能性がある

関連:

Outcome

.claude/skills/issue-contract-review/SKILL.md の「VC failure root cause 分類」サブステップに confidence 自動判定基準(high/medium/low の定義)と 5 分類の判定優先順テーブルが追記され、rg -n "confidence.*high\|medium\|low" および rg -n "優先順\|priority" が当該ファイルでヒットする状態。

In Scope

  • .claude/skills/issue-contract-review/SKILL.md の「VC failure root cause 分類」サブステップへの以下の追記:
    1. confidence 自動判定基準(high: 単一条件で確定、medium: 複数条件の組み合わせ、low: stderr のみで exit code 不明等)の明示
    2. 5 分類の判定優先順テーブル(どの条件を先にチェックするか)の追加
    3. file_not_found_expected と file_not_found_unrunnable の判定条件の差異の明確化(例示の強化)

Out of Scope

  • CONTRACT_REVIEW_RESULT_V1 スキーマ自体の変更(confidence フィールドは既に存在する)
  • 他の skill ファイルへの変更
  • issue-contract-review の実装コード変更
  • 5 分類の種類・名称・BLOCKED/GO/human_judgment 判定の変更

Acceptance Criteria

  • AC1: confidence フィールドの判定基準(high/medium/low の定義)が SKILL.md の「VC failure root cause 分類」サブステップ内に明記されている
  • AC2: 5 分類の判定優先順テーブルまたはフローチャートが「VC failure root cause 分類」サブステップに追加されている
  • AC3: file_not_found_expected と file_not_found_unrunnable の判定条件の差異(test -f 系か No such file or directory stderr 含有かの違い)が本文または例示で明確化されている

Verification Commands

  • rg -n "high.*medium.*low\|confidence" .claude/skills/issue-contract-review/SKILL.md — AC1: confidence 判定基準の存在確認
  • rg -c "high\|medium\|low" .claude/skills/issue-contract-review/SKILL.md && echo "PASS" || echo "FAIL: confidence 基準が存在しない" — AC1: high/medium/low キーワードの存在確認
  • rg -n "優先順\|priority\|先にチェック\|チェック順" .claude/skills/issue-contract-review/SKILL.md && echo "PASS" || echo "FAIL: 優先順テーブルが存在しない" — AC2: 判定優先順の存在確認
  • rg -n "file_not_found_expected\|file_not_found_unrunnable" .claude/skills/issue-contract-review/SKILL.md | wc -l | awk '{if($1>=4) print "PASS"; else print "FAIL: 差異説明が不足"}' — AC3: 両分類の記述行数が追記後に増加していること(現状 4 行以上)
  • pnpm typecheck && pnpm lint && pnpm test && pnpm build — リグレッションなし

Allowed Paths

  • .claude/skills/issue-contract-review/SKILL.md

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Required Skills

なし

Scope Delta(任意)

N/A

Delivery Rule

  • 1 Issue = 1 PR
  • worktree: .claude/worktrees/issue-<番号>-confidence-classification
  • Draft PR で開始、AC/VC 全 PASS 後に ready for review

Activity

  1. added
    enhancement
    phase/implementation
    state/queued
    agent/implementer
    on May 21, 2026
  2. added a commit that references this issue on Jun 13, 2026
    aa393b8
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/implementerenhancementphase/implementationstate/queued

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions