Skip to content

実装: issue-refinement-loop Step 0b に複合シグナルの決定論的絞り込み規約を追加する #138

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "issue-refinement-loop の Step 0b 複合シグナル分類を、決定論的絞り込み規約により human_escalation なしで一意確定できるケースを明文化する"
change_kind: workflow

Parent Issue

なし(単独改善)

Parent Goal Ref

  • Goal: なし(単独改善のため親 Issue なし)
  • Desired Destination: なし

Current Validated Scope

  • .claude/skills/issue-refinement-loop/SKILL.md の Step 0b 分類表に、複合シグナルの決定論的絞り込み規約を追記する

Remaining Parent Gaps

なし

Outcome

.claude/skills/issue-refinement-loop/SKILL.md の Step 0b に、複合シグナルの決定論的絞り込み規約(除外条件 (a)(b) の機械評価・残 branch 数による継続/停止判定・classification_reason 記録)が記述されたコミットが存在する状態。

Background

2026-05-21 の issue-refinement-loop セッションで Issue #40 を refinement した際、anchor コメント #issuecomment-4507552572 が案A(#40 を縮退して別 parent 起票)と案B(#40 に milestone 実体化 child を追加)という相互排他的な 2 方針を提示する複合シグナルだった。

現行 Step 0b の分類表は「複合シグナル」を一律 human_escalation にマップしている。しかし今回のセッションでは:

ため、案B は決定論的に除外でき、案A が一意に確定した。このロジックが skill に明文化されていれば、人間の明示オーバーライドなしで自走できた。

Refs #127(anchor_comment_url 追加・Step 1 injection 先行実装)

In Scope

  • .claude/skills/issue-refinement-loop/SKILL.md の Step 0b に「複合シグナルの決定論的絞り込み規約」サブセクションを追記する
    • anchor コメントが複数の相互排他的方針(branch)を提示する複合シグナルのとき、各 branch を以下の除外条件で機械評価する:
      • (a) その branch が対象 Issue 自身の Decisions Fixed セクションの確定事項と矛盾する
      • (b) その branch が本 loop の「Scope 変更シグナル検出」停止条件に抵触する
    • 除外後に残る branch が 1 つ → その branch の分類(reframe_in_place / feedback_update_required)で通常ループを継続
    • 残る branch が 2 つ以上、または 0 個、または除外可否が判定不能 → human_escalation を維持
    • 絞り込みの根拠(除外した branch と除外条件 (a)/(b))を LOOP_STATE.anchor_comment.classification_reason に記録する

Out of Scope

Acceptance Criteria

  • AC1: rg "複合シグナル" .claude/skills/issue-refinement-loop/SKILL.md が Step 0b の追記箇所でヒットする
  • AC2: rg "Decisions Fixed" .claude/skills/issue-refinement-loop/SKILL.md が Step 0b の除外条件 (a) 記述箇所でヒットする
  • AC3: Step 0b の追記内容に「残 branch が 1 つなら通常ループ継続、2 つ以上 / 0 個 / 判定不能なら human_escalation を維持」の旨が記述されている
  • AC4: rg "classification_reason" .claude/skills/issue-refinement-loop/SKILL.md が Step 0b の追記箇所でヒットする(絞り込み根拠の記録義務)

Verification Commands

# AC1: Step 0b に「複合シグナル」の記述が存在する
rg "複合シグナル" .claude/skills/issue-refinement-loop/SKILL.md && echo "PASS: AC1" || echo "FAIL: AC1"

# AC2: Step 0b に「Decisions Fixed」との矛盾チェックが記述されている
rg "Decisions Fixed" .claude/skills/issue-refinement-loop/SKILL.md && echo "PASS: AC2" || echo "FAIL: AC2"

# AC3: 残 branch 数による継続/停止判定が記述されている
rg "決定論的|絞り込み|残.*branch|branch.*残" .claude/skills/issue-refinement-loop/SKILL.md && echo "PASS: AC3 (hit)" || echo "FAIL: AC3"

# AC4: classification_reason の記録義務が Step 0b に記述されている(既存記述と新規追記が両方ヒットすることを確認)
rg "classification_reason" .claude/skills/issue-refinement-loop/SKILL.md && echo "PASS: AC4" || echo "FAIL: AC4"

Allowed Paths

  • .claude/skills/issue-refinement-loop/SKILL.md

Stop Conditions

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

Required Skills

なし

Scope Delta(任意)

N/A

Delivery Rule

Activity

  1. added
    enhancement
    phase/implementation
    state/queued
    agent/implementer
    on May 21, 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