Skip to content

実装: impl-review-loop の PR 再開チェックリストを標準化する #1401

Closed as not planned

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1395"
goal_ref: "impl-review-loop の PR comment URL 再開時に current head / stale verdict / required checks / final report を決定論的に確認できるようにする"
change_kind: workflow
preflight_scope: implementation
runtime_verification:
  required: false
  mode: not_applicable
  evidence_type: workflow-docs-grep

Parent Issue

#1395

Parent Goal Ref

Current Validated Scope

  • impl-review-loop の PR continuation / resume 手順だけを扱う。
  • GitHub mutation executor、hook allowlist、issue-refinement-loop runtime policy の実装変更は扱わない。
  • PR comment URL を一次ソースにしても、current PR head / checks / latest verdict を live readback で再確認する運用を文書化する。

Remaining Parent Gaps

Outcome

$impl-review-loop <PR comment URL> や中断後の resume で、agent が stale review / stale TEST_VERDICT / old head の completion report を誤って merge-ready 証跡にしない。再開時は exact PR comment、linked issue contract、current head sha、required checks、latest TEST_VERDICT、latest LOOP_VERDICT、final completion report head を順に確認する checklist が impl-review-loop skill 手順に追加される。

In Scope

  • PR comment URL で再開する場合の intake checklist を impl-review-loop 手順に追加する。
  • current PR head とローカル worktree head の一致確認を明記する。
  • pushed head に対して required checks を再待機し、old head の CI / TEST_VERDICT を使わないことを明記する。
  • TEST_VERDICT / LOOP_VERDICT / completion report は current head sha を含むものだけを merge-ready 証跡として扱うことを明記する。
  • reviewer 指摘が required_auto_actions を生んだ場合、再実装後に test-runner と pr-reviewer を current head で再実行することを明記する。

Out of Scope

Acceptance Criteria

  • AC1: PR comment URL で再開する場合、exact comment を一次ソースとして読む手順が impl-review-loop skill に明記されている。
  • AC2: current PR head sha と local worktree head sha を比較し、不一致なら stale 証跡を使わない手順が明記されている。
  • AC3: push 後は required checks を current head sha 固定で再待機する手順が明記されている。
  • AC4: TEST_VERDICT / LOOP_VERDICT / completion report は current head sha を含むものだけを merge-ready 証跡にできることが明記されている。
  • AC5: reviewer 指摘対応後は test-runner と pr-reviewer を current head で再実行する手順が明記されている。
  • AC6: stale verdict / stale CI / old head completion report を検出した場合の停止または再実行条件が明記されている。

Runtime Verification Applicability

runtime_verification_applicability:
  decision: not_applicable
  reason: "workflow skill / docs の SOP 明文化であり、外部 runtime behavior の変更を伴わない"
  applicable_acs: []
  execution_environment: "local docs grep"
  skip_conditions:
    - "Allowed Paths 外の実装変更が必要と判明した場合"
  fallback_policy: "実装変更が必要な場合は停止して別 Issue に分離する"
  artifact_requirements:
    - "skill docs grep output"
    - "diff review"

Verification Commands

# AC1
$ rg -n "PR comment URL" .claude/skills/impl-review-loop

# AC2
$ rg -n "current head" .claude/skills/impl-review-loop

# AC3
$ rg -n "required checks" .claude/skills/impl-review-loop

# AC4
$ rg -n "TEST_VERDICT" .claude/skills/impl-review-loop

# AC5
$ rg -n "test-runner" .claude/skills/impl-review-loop

# AC6
$ rg -n "stale verdict" .claude/skills/impl-review-loop

Allowed Paths

  • .claude/skills/impl-review-loop/SKILL.md
  • .claude/skills/impl-review-loop/steps/preparation.md
  • .claude/skills/impl-review-loop/steps/step-2-verification.md
  • .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md
  • .claude/skills/impl-review-loop/steps/context-protocol-and-guardrails.md
  • docs/dev/workflows/impl-review-loop-design.md

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • hook allowlist / executor registry / GitHub mutation lane の実装変更が必要と判明した場合
  • impl-review-loop の merge / close 実行権限を変更する必要が判明した場合
  • new subagent role または agent runtime 設定変更が必要と判明した場合
  • PR fix: preflight repair hint と hook docs を整合させる (#1395) #1399 の実装差分へ戻る必要が判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Required Skills

  • Markdown
  • Agent workflow

Required Design References

  • .claude/skills/impl-review-loop/SKILL.md
  • .claude/skills/impl-review-loop/steps/preparation.md
  • .claude/skills/impl-review-loop/steps/step-2-verification.md
  • .claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md
  • docs/dev/workflow.md

Scope Delta

Delivery Rule

  • 1 Issue = 1 PR
  • 作業前に issue-contract-review で fresh CONTRACT_REVIEW_RESULT_V1 status: go を取得する。
  • PR comment URL を一次ソースにしつつ、current head / checks / verdict は live readback で確認する。
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/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions