Skip to content

ドキュメント: impl-review-loop に contract_snapshot_url 未指定時の fallback 手順を明記する #266

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "impl-review-loop SKILL.md に contract_snapshot_url 未指定時の fallback 手順(issue-contract-review 自動先行実行)を明記し、orchestrator が実際に行う経路を文書として残す"
change_kind: docs

Parent Issue

なし(単独改善)

Parent Goal Ref

Current Validated Scope

  • impl-review-loop/SKILL.md の Inputs セクションで contract_snapshot_url が未指定または存在しない場合の fallback 経路を明記する
  • impl-review-loop/steps/preparation.md の Preparation ステップに「contract_snapshot_url 未指定時は issue-contract-review を先行実行して URL を取得してから渡す」という fallback 手順を追記する

Remaining Parent Gaps

なし

Outcome

.claude/skills/impl-review-loop/SKILL.md の Inputs セクション(または Preparation ステップ)に「contract_snapshot_url が未指定または存在しない場合は issue-contract-review を自動実行して取得する」という fallback 手順が明記され、コミットが main にマージされている状態。

In Scope

  • impl-review-loop/SKILL.md の Inputs セクションに contract_snapshot_url 未指定時の fallback 経路(issue-contract-review を先行実行)を明記する
  • impl-review-loop/steps/preparation.md の Preparation ステップ 1 に fallback 手順を追記する(未指定時の挙動を文書化する)

Out of Scope

Acceptance Criteria

  • AC1: impl-review-loop/SKILL.md の Inputs セクションに contract_snapshot_url 未指定時の fallback 経路(issue-contract-review 先行実行)が明記されている
  • AC2: impl-review-loop/steps/preparation.md に「contract_snapshot_url が未指定の場合は issue-contract-review を先行実行して URL を取得する」という手順が記載されている
  • AC3: fallback 手順の追記が既存の記述を矛盾なく補足している(削除・上書きではなく追記)

Verification Commands

# AC1: SKILL.md の Inputs セクションに fallback 記述が存在する
rg "issue-contract-review" .claude/skills/impl-review-loop/SKILL.md

# AC2: preparation.md に fallback 手順が記載されている
rg "issue-contract-review" .claude/skills/impl-review-loop/steps/preparation.md

# AC3: contract_snapshot_url の既存記述が残っている(削除されていない)
rg "contract_snapshot_url" .claude/skills/impl-review-loop/steps/preparation.md

# Standard gates
pnpm typecheck
pnpm lint
pnpm test
pnpm build
uv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py

Allowed Paths

  • .claude/skills/impl-review-loop/SKILL.md
  • .claude/skills/impl-review-loop/steps/preparation.md

Stop Conditions

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

Required Skills

なし

Scope Delta(任意)

N/A

Runtime Verification Applicability

  • decision: not_applicable
  • reason: docs-only 変更(.claude/skills/impl-review-loop/SKILL.md と steps/preparation.md の Markdown 追記)。実行時動作確認不要。

Delivery Rule

Background

PR #262(Issue #249)の impl-review-loop 実行時、ユーザーが impl-review-loop 249 と Issue 番号のみ指定した。impl-review-loop SKILL.md では contract_snapshot_url(issue-contract-review の go 判定コメント URL)を必須入力として要求しているが、この URL が存在しなかったため、orchestrator が issue-contract-review を先行実行して URL を生成してからループに渡した。

このフローが SKILL.md の Inputs セクションや Preparation ステップに明示されていない。今後同様の状況で操作者や orchestrator が同じ経路を再現できるよう、fallback 手順を文書として残す必要がある。

決定論的修正 vs workaround の比較:

Source

dedupe_key: "follow-up:squne121/loop-protocol:pr/262:impl_review_loop_contract_snapshot_fallback"
source_issue: 249

Activity

  1. added
    triage-required
    enhancement
    agent/implementer
    on May 23, 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/implementerenhancementtriage-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions