Repository navigation
Closed as not planned
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Description
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-grepParent Issue
Parent Goal Ref
- 実装: issue-refinement-loop canonical runtime の hook allowlist を整備する #1395 / PR fix: preflight repair hint と hook docs を整合させる (#1395) #1399 の継続対応では、PR comment URL から reviewer 指摘を拾い直し、push 後の current head、required checks、TEST_VERDICT、LOOP_VERDICT、completion report を再同期する必要があった。
- この手順は実装コードではなく、
impl-review-loopの再開時 SOP / checklist として標準化できる。
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
- 実装: issue-refinement-loop canonical runtime の hook allowlist を整備する #1395 本体の hook allowlist 実装は PR fix: preflight repair hint と hook docs を整合させる (#1395) #1399 の範囲で継続する。
- hook policy や executor registry の追加が必要な場合は、本 Issue では停止して別 Issue に分離する。
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
impl-review-loopの自動 merge 実行wait_ci_checks.shの仕様変更validate_autonomy_policy_result.pyの仕様変更- hook allowlist / executor registry / GitHub mutation lane の変更
- 実装: issue-refinement-loop canonical runtime の hook allowlist を整備する #1395 / PR fix: preflight repair hint と hook docs を整合させる (#1395) #1399 の実装内容変更
- 新しい subagent role の追加
Acceptance Criteria
- AC1: PR comment URL で再開する場合、exact comment を一次ソースとして読む手順が
impl-review-loopskill に明記されている。 - 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-loopAllowed 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.mddocs/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.mddocs/dev/workflow.md
Scope Delta
- Derived from 実装: issue-refinement-loop canonical runtime の hook allowlist を整備する #1395 / PR fix: preflight repair hint と hook docs を整合させる (#1395) #1399 continuation after reviewer comment fix: preflight repair hint と hook docs を整合させる (#1395) #1399 (comment).
- The gap is process documentation for continuation/resume, not hook implementation.
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 で確認する。
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Activity