Skip to content

実装: LOOP_VERDICT / TEST_VERDICT_MACHINE の YAML キー名を snake_case に統一する #56

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "LOOP_VERDICT / TEST_VERDICT_MACHINE の YAML キー命名を snake_case で統一し、impl-review-loop Step 5 の parser が確実に両 verdict を読み取れる状態にする"
change_kind: workflow

Parent Issue

なし(単独改善)

Parent Goal Ref

  • Goal: LOOP_VERDICT / TEST_VERDICT_MACHINE のキー命名を snake_case に統一し、判定パイプラインの整合性を保証する
  • Desired Destination: N/A(単独改善 Issue)

Current Validated Scope

  • .claude/skills/pr-review-judge/SKILL.md の LOOP_VERDICT YAML ブロック内 mergeStateStatus: を merge_state_status: に変更
  • .claude/skills/impl-review-loop/steps/step-5-mergeability-handling.md の mergeStateStatus: grep パターンを merge_state_status: に変更
  • .claude/skills/impl-review-loop/SKILL.md の merge_state_status / mergeStateStatus 参照を snake_case に統一
  • docs/dev/agent-skill-boundaries.md に「全 LOOP_VERDICT / TEST_VERDICT_MACHINE のキー名は snake_case で統一」を SSOT として明記

Remaining Parent Gaps

なし

Outcome

.claude/skills/pr-review-judge/SKILL.md の LOOP_VERDICT YAML・.claude/skills/impl-review-loop/steps/step-5-mergeability-handling.md の grep パターン・docs/dev/agent-skill-boundaries.md の SSOT 記述が snake_case で統一された状態で、grep による検証が PASS している。

Background

PR #49 の post-merge 観測メモ F で検出された命名の混在:

  • test-runner.md の TEST_VERDICT_MACHINE: merge_state_status: (snake_case)
  • pr-review-judge/SKILL.md の LOOP_VERDICT: mergeStateStatus: (camelCase)
  • impl-review-loop/steps/step-5-mergeability-handling.md の grep パターン: mergeStateStatus: (camelCase)

impl-review-loop の Step 5 YAML parser は TEST_VERDICT_MACHINE から merge_state_status を読み取ったあと、LOOP_VERDICT から mergeStateStatus を grep で抽出している。キー名が統一されていないと、一方の読み取りが silent fail する可能性がある。

決定論的修正(採用): pr-review-judge と impl-review-loop 側の camelCase キーを snake_case に揃える。test-runner 側は既に snake_case で正しいため変更不要。

In Scope

  • pr-review-judge/SKILL.md: LOOP_VERDICT テンプレート内 mergeStateStatus: → merge_state_status: に変更
  • impl-review-loop/steps/step-5-mergeability-handling.md: mergeStateStatus: の grep パターン / 変数抽出 / 判定表を merge_state_status: に変更
  • impl-review-loop/SKILL.md: inline 参照の mergeStateStatus を merge_state_status に変更
  • docs/dev/agent-skill-boundaries.md: 「全 LOOP_VERDICT / TEST_VERDICT_MACHINE キーは snake_case」を SSOT として追記

Out of Scope

  • test-runner.md の変更(既に snake_case で正しい)
  • pr-review-judge/references/ 配下の変更(今回の調査で混在未確認のため follow-up で対処)
  • implement-issue/SKILL.md 等 LOOP_VERDICT を参照するが変更不要な他 skill の変更
  • TEST_VERDICT_MACHINE v1 スキーマのバージョンアップや後方互換処理

Acceptance Criteria

  • AC1: pr-review-judge/SKILL.md に mergeStateStatus: が残っていない
  • AC2: impl-review-loop/steps/step-5-mergeability-handling.md に mergeStateStatus: が残っていない
  • AC3: impl-review-loop/SKILL.md に mergeStateStatus が残っていない(snake_case 参照のみになっている)
  • AC4: docs/dev/agent-skill-boundaries.md に「LOOP_VERDICT / TEST_VERDICT_MACHINE のキー名は snake_case で統一」旨の記述が追加されている

Verification Commands

# AC1: pr-review-judge に camelCase キーが残っていないことを確認
grep -q "mergeStateStatus:" .claude/skills/pr-review-judge/SKILL.md && echo "FAIL: AC1 camelCase残存" || echo "PASS: AC1"

# AC2: step-5-mergeability-handling に camelCase キーが残っていないことを確認
grep -q "mergeStateStatus:" .claude/skills/impl-review-loop/steps/step-5-mergeability-handling.md && echo "FAIL: AC2 camelCase残存" || echo "PASS: AC2"

# AC3: impl-review-loop/SKILL.md に mergeStateStatus が残っていないことを確認
grep -q "mergeStateStatus" .claude/skills/impl-review-loop/SKILL.md && echo "FAIL: AC3 camelCase残存" || echo "PASS: AC3"

# AC4: agent-skill-boundaries.md に snake_case統一の記述があることを確認
grep -q "snake_case" docs/dev/agent-skill-boundaries.md && echo "PASS: AC4" || echo "FAIL: AC4 SSOT記述なし"

Allowed Paths

  • .claude/skills/pr-review-judge/SKILL.md
  • .claude/skills/impl-review-loop/steps/step-5-mergeability-handling.md
  • .claude/skills/impl-review-loop/SKILL.md
  • docs/dev/agent-skill-boundaries.md

Stop Conditions

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

Required Skills

なし

Delivery Rule

  • 1 Issue = 1 PR
  • Draft PR で起票し、AC 全件 PASS 後にレビュー依頼する

Activity

  1. added
    enhancement
    phase/implementation
    state/queued
    agent/implementer
    on May 19, 2026
  2. added 3 commits that reference this issue on May 29, 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/implementerenhancementphase/implementationstate/queued

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions