Repository navigation
Open
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phasestate/queuedQueued for implementation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "issue-refinement-loop の Step 0b 複合シグナル分類を、決定論的絞り込み規約により human_escalation なしで一意確定できるケースを明文化する"
change_kind: workflowParent 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 は 導入: Issue contract / DoR / dependency 判定による AI 実装前提基盤の整備 (parent) #40 自身の
Decisions Fixed(「B 系 = 別 parent、導入: Issue contract / DoR / dependency 判定による AI 実装前提基盤の整備 (parent) #40 の child ではない」)と矛盾する - 案B は本 loop の「Scope 変更シグナル検出」停止条件(In Scope への新機能領域追加)に抵触する
ため、案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 変更シグナル検出」停止条件に抵触する
- (a) その branch が対象 Issue 自身の
- 除外後に残る branch が 1 つ → その branch の分類(
reframe_in_place/feedback_update_required)で通常ループを継続 - 残る branch が 2 つ以上、または 0 個、または除外可否が判定不能 →
human_escalationを維持 - 絞り込みの根拠(除外した branch と除外条件 (a)/(b))を
LOOP_STATE.anchor_comment.classification_reasonに記録する
- anchor コメントが複数の相互排他的方針(branch)を提示する複合シグナルのとき、各 branch を以下の除外条件で機械評価する:
Out of Scope
- Step 0b の既存 4 分類表(
superseded_by_decision/reframe_in_place/feedback_update_required/human_escalation)の変更 - Step 1 以降の処理変更
anchor_comment_url入力仕様の変更(実装: issue-refinement-loop に ANCHOR_COMMENT_CONTEXT_V1 / ANCHOR_COMMENT_FACT_CHECK_RESULT_V1 / requires_fact_check を追加し anchor comment fact-check の入出力契約を固定する #127 のスコープ)Decisions Fixedセクション自体の定義・フォーマット変更- 除外条件 (a)(b) 以外の新規除外条件の追加
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
1 Issue = 1 PR- 変更対象は
.claude/skills/issue-refinement-loop/SKILL.mdのみ - Issue 実装: issue-refinement-loop に ANCHOR_COMMENT_CONTEXT_V1 / ANCHOR_COMMENT_FACT_CHECK_RESULT_V1 / requires_fact_check を追加し anchor comment fact-check の入出力契約を固定する #127 とは同一ファイルへの変更(編集箇所は Step 0b と Step 1 で独立)。マージコンフリクトのリスクを最小化するため、
Depends on #127 merge(直列推奨) - Draft PR で開始し、AC 全項目 PASS を確認してから ready for review とする
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phasestate/queuedQueued for implementation
Activity