Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1860"
goal_ref: "review/refinementの通常経路をnative subagentのbounded loopと最小結果convention(verdict/reviewed_head_sha or reviewed_body_sha256/blockers/warnings)へ簡素化し、replay arbitration、parent binding digest、review envelope V2、永続state store、review/termination専用publisher command idをproduction authorityから撤去する"
change_kind: workflowParent Issue
Parent Goal Ref
- Goal: AIエージェント運用をminimal harnessへ縮退し、過剰なcontrol-planeを廃止する。
- Desired Destination: live Issue/PR、canonical worktree、実diff、実テスト、current-head CI、独立レビューを正本とし、workflow artifactの存在・freshness・digest一致を通常作業の認可条件にしない。
Current Validated Scope
2026-07-31時点でのlive調査(control-plane call graph監査・safety boundary監査)に基づく。
issue-refinement-loop(.claude/skills/issue-refinement-loop/)
- Step 2a Replay Arbitration:
scripts/reviewer_claim_replay.py(1267行、analyze()本体)が本番経路で稼働中。orchestrator がcommand_registry.pyのparent_replay.bindcommand id 経由でscripts/parent_replay_binding.py(592行)を呼び、child の blocker claim を独立に検証している。 - Parent binding digest:
parent_replay_binding.pyが生成するbinding_digest(PARENT_REPLAY_BINDING_ARTIFACT_V1)をscripts/validate_review_compact_output.py(--v2 --binding-artifact-file)とscripts/reviewer_claim_replay_state_store.py(--write-v2 --expected-parent-binding-digest)が消費する。command id:review_compact.validate_v2、state.write-v2。 - Review envelope:
scripts/compact_review_result.py(671行、V1 SSOT)が issue-reviewer subagent の compact stdout を生成・検証。scripts/emit_parent_review_envelope_v2.py(679行、command idreview_compact.validate_intermediate_v1/review_compact.emit_v2/review_compact.emit_approve)が V1 フィールドにPARENT_REPLAY_*6フィールドを付与した V2 envelope を組み立てる。 - 永続 state store:
scripts/reviewer_claim_replay_state_store.py(531行)が replay 専用の consecutive-unbacked カウンタを保持する。references/loop-state.mdのREVIEWER_CLAIM_REPLAY_STATE_V2セクションが該当。注意:scripts/build_loop_state.pyが所有する広範なLOOP_STATEスキーマ本体は別scope・維持対象であり、削除しない。 - 専用 termination publisher:
scripts/publish_termination_report.py(735行)・scripts/render_termination_report.py(939行、TERMINATION_REPORT_RENDER_RESULT_V1)が command idtermination_report.publish(scripts/agent-guards/controlled_skill_mutation_policy.pyのCOMMAND_ID_PUBLISH)経由で最終Issueコメントを投稿する。 scripts/decide_next_loop_action.py(issue-refinement-loop Step 2の継続/終了判断)は replay と別ファイルだが、phase-state 経由でPARENT_REPLAY_*由来の値を期待している可能性があり、置換時に minimal convention への追従が必要。scripts/build_refinement_phase_state.pyが replay 由来のgate値を phase-state に組み込んでいる。
impl-review-loop(.claude/skills/impl-review-loop/)
scripts/route_loop_verdict_v2.py:318のroute_loop_verdict_v2()が pr-reviewer のLOOP_VERDICT_V2YAML(verdict/merge_ready/allowed_paths_gate/required_auto_actions)をRouteDecisionへ変換し、steps/step-5-mergeability-handling.md・steps/step-5-feedback-and-termination.mdから参照される。impl-review-loop には issue-refinement-loop のような専用 replay/state-store ファイルは存在しない(LOOP_STATEという語は SKILL.md・steps/*.md 内の記述としてのみ出現し、専用永続ファイルはない)。merge_ready・required_auto_actions・allowed_paths_gateを reviewer 側 output から除去し、mergeability/CI/Allowed Pathsの判定を main thread が live state から行う設計に変更する。
Reviewer publisher(PR review)
- 専用 review publisher: command id
pr_review.publish(COMMAND_ID_PR_REVIEW_PUBLISH、controlled_skill_mutation_policy.py:41)がcontrolled_skill_mutation_exec.pyの render mode(_validate_pr_review_publish_fields、_render_pr_review_publish_request、_run_pr_review_publish等)経由でgh pr reviewを発行している。docs/dev/hook-boundaries.md§12a/§12b に記載。 .claude/settings.jsonのpermissions.allowにBash(gh pr comment *)とBash(gh issue comment *)が既に一般許可として存在するため、gh pr review(formal review object)ではなく通常のgh pr comment --body-fileへ置換すれば、新たな authorization lane を追加せずにpr_review.publishcommand id を撤去できる。- 撤去後、
scripts/agent-ops/pr_review_marker_archive_exec.py(PR review marker の post-merge archive)が dangling consumer になるため同時に削除する。
Reviewer/SubAgent定義
.claude/agents/issue-reviewer.md・.claude/agents/pr-reviewer.md(.codex/agents/issue-reviewer.toml・pr-reviewer.tomlmirror)は既に bounded verdict producer として設計されており、PARENT_REPLAY_*や publisher request JSON、merge readiness self-attestation は生成していない(本文内で明示的に否定)。今回のcontrol-plane簡素化は主に orchestrator側(command_registry、phase-state、publisher command id)の変更であり、agent定義自体の変更は最小限(出力format文言の整合のみ)。
維持対象(safety boundary監査で確認済み)
scripts/agent-guards/protected_paths_policy.py、controlled_skill_mutation_policy.py/_exec.pyの汎用argv検証・secret sanitize・canonical repository binding・_check_no_tracked_changes等の共有機構scripts/agent-guards/pretool_fastpath_classifier.py、scripts/agent-guards/worktree_scope_guard.py(#1691でPreToolUse登録は無効化済みだがファイル自体・テストは現存。本Issueのscope外).claude/skills/issue-refinement-loop/scripts/check_vc_scope.py・scope_signal_delta.py(Allowed Paths検出、replayとは独立).claude/skills/impl-review-loop/steps/step-5-mergeability-handling.mdの mergeability truth table(#1871で確立、CONFLICTING/DIRTYのみhard stop)controlled_skill_mutation_policy.py/_exec.pyの他7 command id(issue_body.update、issue_content.update、issue_comment.publish、contract_snapshot.publish、test_verdict.publish、issue_scope_snapshot.materialize、issue_dependency.remove)は本Issueの対象外で変更しない。
schema catalog
schemas/catalog.yamlに replay/binding/envelope/termination/state-store関連のentryは存在しない(該当schemaはdocs/dev/schema-governance.mdの別governance表で管理されている)。よってschemas/catalog.yamlは編集対象外。docs/dev/schema-governance.mdから該当行(TERMINATION_REPORT_RENDER_RESULT_V1、PARENT_REPLAY_BINDING_ARTIFACT_V1、REVIEWER_BLOCKER_CLAIM_V1相当、ISSUE_REVIEW_RESULT_COMPACT_V2/REVIEW_COMPACT_VALIDATION_RESULT_V2、EMIT_PARENT_REVIEW_ENVELOPE_V2_FAILURE)を削除する。
関連Issue/PRとのscope関係
- 実装: LOOP_VERDICT_V2 契約の producer/consumer/publisher atomic cutover を行う #1857(
LOOP_VERDICT_V2producer/consumer/publisher atomic cutover、新規strict schema追加): 本Issueがpr_review.publish/LOOP_VERDICT_V2の複雑な契約をminimal conventionへ置換するため、逆方向の可能性が高い。詳細disposition確定はPhase 7。 - 実装: termination report に全 termination reason で FOLLOW_UP_MATERIALIZATION_RESULT_V1 を出力する #1321/PR fix(refinement): 全終端理由で follow-up materialization 結果を出力 (#1321) #1832(termination reportの全終端理由でのfollow-up materialization結果出力): 本Issueが
publish_termination_report.py/render_termination_report.pyを撤去する場合、専用publisher経路の拡張であるPR #1832は独立残存scopeがなければsuperseded。 - fix(review-issue): canonical parentではC4/C8とexecute VC preflightを非適用にする #1867(parent IssueへのC4/C8誤適用contract review、VC section replay taxonomy gap): parent applicability修正部分は独立して有効。reviewer replay taxonomy部分は本Issueでsupersede候補。
- PR 実装: semantic planning・overlap・contract artifactのblocking authorityを撤去する #1871(semantic planning/overlap/contract artifact blocking authority撤去、OPEN, merge-ready): warning-continue方針・mergeability truth tableをrevertしない。actual conflictがあれば最終review前にrebase/mergeし再テストする。
Outcome
issue-refinement-loopとimpl-review-loopが、live GitHub stateとnative subagent resultだけで最大3回のbounded loopを実行できる状態にする。
PR reviewの内部返却convention:
verdict: APPROVE | REQUEST_CHANGES | HUMAN_REVIEW_REQUIRED
reviewed_head_sha: "<current PR head SHA>"
blockers:
- "<具体的なblocker>"
warnings:
- "<任意>"Issue reviewの内部返却convention:
verdict: APPROVE | REQUEST_CHANGES | HUMAN_REVIEW_REQUIRED
reviewed_body_sha256: "<reviewed live bodyのsha256>"
blockers:
- "<具体的なblocker>"
warnings:
- "<任意>"これらは新規公開schema、catalog entry、artifact formatにせず、main threadとsubagent間の一時的な最小conventionとして扱う。
main threadが所有する情報: target Issue/PR、current bodyまたはPR head、iterationと最大iteration、unresolved blockers、current tests/CI、next action。
compaction、resume、session再開後はstate artifactをreplayせず、Issue/PR/current diff/CIを再取得する。
Required Behavior
- default maximum iterationは3
- 明示入力でのみ上限変更可能
- iteration間の継続はlive stateとfresh subagent resultから判断する
- stale
reviewed_head_shaはAPPROVEとして利用せず、current headで再レビューする - stale
reviewed_body_sha256はhuman escalationにせず、bodyをrefetchして再レビューする - parser failureはIssue更新、implementation、Draft PR作成を止めない
- 最小形式をparseできない場合は一度だけ再出力を求め、その後は人間可読blockerへfallbackする
- max iteration到達時はPR/Issueを残したままHUMAN_REVIEW_REQUIREDへ移行する
- 通常のGitHub client/connector/
gh issue comment --body-file/gh pr comment --body-fileを使用する(.claude/settings.jsonの既存permissions.allowで許可済み) - semantic result専用publisher(
termination_report.publish/pr_review.publishcommand id)を使用しない - GitHub mutation前後にrepository、target番号、current headをreadbackする
- review criteria自体は変更せず、transport/orchestrationだけを簡素化する
In Scope
- issue-refinement-loopの通常review/rewrite loop(Step 2/2a)の簡素化
- impl-review-loopのimplementation/verification/PR review loop(Step 4/5)の簡素化
reviewer_claim_replay.py/reviewer_claim_replay_state_store.py/parent_replay_binding.py/emit_parent_review_envelope_v2.pyのproduction経路撤去compact_review_result.py/validate_review_compact_output.pyをV1相当の最小verdict(verdict/reviewed_body_sha256/blockers/warnings)へ縮小command_registry.pyからparent_replay.bind/review_compact.validate_v2/review_compact.emit_v2/review_compact.emit_approve/state.write-v2エントリを削除decide_next_loop_action.py/build_refinement_phase_state.pyをPARENT_REPLAY_*非依存へ更新route_loop_verdict_v2.pyをmerge_ready/required_auto_actions/allowed_paths_gate非依存の最小verdict routingへ縮小controlled_skill_mutation_policy.py/controlled_skill_mutation_exec.pyからtermination_report.publish(COMMAND_ID_PUBLISH)とpr_review.publish(COMMAND_ID_PR_REVIEW_PUBLISH)のcommand id・専用関数群を削除し、通常のgh issue comment --body-file/gh pr comment --body-fileへ置換(他7 command idは変更しない)publish_termination_report.py/render_termination_report.pyの削除(最終summaryは通常コメントで投稿)scripts/agent-ops/pr_review_marker_archive_exec.py(pr_review.publishmarker archive、dangling consumer化)の削除.claude/agents/issue-reviewer.md/.claude/agents/pr-reviewer.md(.codex/agents/mirror含む)の出力format記述を新conventionへ整合- dead command registry entry・docs governance table entry(
docs/dev/schema-governance.md)・fixturesの削除 - docs(
docs/dev/agent-skill-boundaries.md、docs/dev/hook-boundaries.md§12a/§12b、docs/dev/schema-governance.md、docs/dev/workflows/README.md、docs/dev/workflows/impl-review-loop-design.md、docs/dev/workflows/issue-refinement-loop-design.md)の同期 - resume時のlive refetch実装
- stale-head/stale-body negative testsの追加
Out of Scope
- protected TEST_VERDICT producer/materializer/publisher laneの撤去(実装: 通常レビューの evidence authority を TEST_VERDICT 非依存の CI/merge_state_status 正本へ切替える(Phase 1: authority cutover) #1856)
- semantic planning/scope rollup/overlap authorityの撤去(実装: semantic planning・overlap・contract artifactのblocking authorityを撤去する #1869、PR #1871で対応中)
- canonical repository bindingの緩和
- Allowed Paths、protected paths、secret保護の緩和
- branch protection、required checks、人間mergeの削除
- reviewのAPPROVE/REQUEST_CHANGES判断基準の再設計
worktree_scope_guard.pyのPreToolUse再登録可否(#1690の責務)- Claude Code Agent Teamsの導入
- Claude/Codex runtime capability probe
- controlled_skill_mutation_policy.py/_exec.pyの他7 command idの変更
- 複数writerによる並列編集
- 新規schema、digest、receipt、publisher、state machine
- old artifactからnew artifactへのcompatibility bridge新設
Migration and Deletion Rule
- consumerから旧authority依存を外す(
decide_next_loop_action.py、build_refinement_phase_state.py、route_loop_verdict_v2.py)。 - minimal bounded loop(verdict/reviewed_head_sha or reviewed_body_sha256/blockers/warnings)をproduction pathへ接続する。
- testsでreplacement behaviorを確認する。
- production consumerが0件になったproducer(
reviewer_claim_replay.py、parent_replay_binding.py、reviewer_claim_replay_state_store.py、emit_parent_review_envelope_v2.py、publish_termination_report.py、render_termination_report.py、pr_review_marker_archive_exec.py)とその専用テストを削除する。 command_registry.py/controlled_skill_mutation_policy.py/controlled_skill_mutation_exec.pyから対応するcommand idを削除する。- docsと
docs/dev/schema-governance.mdのgovernance tableを同期する。 - temporary compatibility codeを残さない。
directory単位で一括削除せず、各fileのconsumerをgit grep -nで確認してから削除する。
controlled_skill_mutation_policy.py/_exec.pyはgeneric frameworkであり、他7 command idが使用しているため全体削除しない。pr_review.publish/termination_report.publish固有のbranch・policy・testsだけをconsumer消滅後に除去する。
Safety Invariants
- live Issue本文からAllowed Pathsを取得し、実changed filesと照合する
- contract snapshotやfingerprintをAllowed Pathsの正本にしない
- current PR head以外のCI/reviewを利用しない
- review投稿前後にPR headをreadbackする
- 投稿後にheadが変化していた場合、その投稿はstale noteとして扱いfresh reviewを実行する
- wrong repository、wrong Issue/PR、protected path、secret、force push、main直接pushは拒否する
- actual 3-way conflictまたはGitHubの
CONFLICTING/DIRTYは自動解消せず停止する UNKNOWN、BLOCKED、BEHIND、UNSTABLE、DRAFT、HAS_HOOKSをGit conflictとして扱わないscripts/agent-guards/protected_paths_policy.py、check_vc_scope.py、scope_signal_delta.py、worktree_scope_guard.pyの既存ロジックは変更しない- human final mergeを維持する
Acceptance Criteria
- AC1: replay envelope、parent binding artifact、state storeがなくてもfresh Issue reviewを開始できる
- AC2: issue-refinement-loopがdefault最大3回でreview→rewrite→reviewを実行し、無限replayしない
- AC3: impl-review-loopがdefault最大3回でimplementation→verification→PR reviewを実行し、永続LOOP_STATEを必須にしない
- AC4: Issue review結果が
verdict、reviewed_body_sha256、blockers、optionalwarnings程度に縮小される - AC5: PR review結果が
verdict、reviewed_head_sha、blockers、optionalwarnings程度に縮小される - AC6: stale reviewed bodyはrefetch/rereviewされ、artifact mismatchによるhuman escalationにならない
- AC7: stale reviewed headはAPPROVEとして消費されず、current headで再レビューされる
- AC8: 旧compact result、replay、binding、state、publisher artifactのmissing/malformed/staleでIssue更新やDraft PR作成が停止しない
- AC9: max iteration到達時はHUMAN_REVIEW_REQUIREDへ移行し、Issue/PRとblocker summaryを残す
- AC10: routine review/termination投稿が
gh issue comment --body-file/gh pr comment --body-fileで行われ、termination_report.publish/pr_review.publishcommand idを使用しない - AC11: mutation前後のrepository/IssueまたはPR/head readbackが維持される
- AC12:
reviewer_claim_replay.py/parent_replay_binding.py/reviewer_claim_replay_state_store.py/emit_parent_review_envelope_v2.py/publish_termination_report.py/render_termination_report.py/pr_review_marker_archive_exec.pyがproduction経路(command_registry.py、controlled_skill_mutation_policy.py、controlled_skill_mutation_exec.py)から除去される - AC13: 同等機能を持つ新schema、digest、receipt、publisher、state machineが追加されていない
- AC14: canonical repository、live Allowed Paths、protected path、secret、Git safety、実テスト、current-head CI、branch protection、人間mergeが維持される
- AC15: compaction/resume後にartifact replayではなくlive Issue/PR/diff/CIを再取得するテストまたはruntime smokeが存在する
- AC16: 実装: LOOP_VERDICT_V2 契約の producer/consumer/publisher atomic cutover を行う #1857、実装: termination report に全 termination reason で FOLLOW_UP_MATERIALIZATION_RESULT_V1 を出力する #1321/PR fix(refinement): 全終端理由で follow-up materialization 結果を出力 (#1321) #1832、#1867のscope dispositionがlive stateに基づいて記録される
- AC17: PR #1871の変更をrevertせず、actual conflict以外を着手blockerにしていない
- AC18: relevant test suites、lint、typecheck、build、
git diff --checkがcurrent headでpassする
Verification Commands
uv run --locked pytest .claude/skills/issue-refinement-loop/tests/ -q
uv run --locked pytest .claude/skills/impl-review-loop/tests/ .claude/skills/impl-review-loop/scripts/tests/ -q
uv run --locked pytest scripts/agent-guards/tests/ -q
uv run --locked pytest tests/agent_guards/test_worktree_scope_guard.py tests/test_agent_parity.py tests/test_issue_refinement_ops_review.py -q
uv run --locked pytest scripts/agent-ops/tests/test_pr_review_marker_archive_exec.py -qstandard gates:
uv run --locked ruff check .claude/skills scripts tests
pnpm typecheck
pnpm lint
pnpm test
pnpm build
git diff --checkproduction dangling reference check:
rg -n \
-e 'parent_replay_binding' \
-e 'reviewer_claim_replay' \
-e 'ISSUE_REVIEW_RESULT_COMPACT_V2' \
-e 'REPLAY_PARENT_BINDING_DIGEST' \
-e 'emit_parent_review_envelope' \
-e 'PARENT_REPLAY_' \
-e 'termination_report\.publish' \
-e 'pr_review\.publish' \
-e 'publish_termination_report' \
-e 'render_termination_report' \
.claude/skills/issue-refinement-loop .claude/skills/impl-review-loop .claude/agents .codex/agents scripts/agent-guards scripts/agent-ops docs/dev削除する語が残ってよいhistorical docs/migration noteと、production consumerを区別する。単にrepository全体の文字列をゼロにすることを目的にしない。
negative tests:
- stale PR head
- stale Issue body
- wrong repository
- wrong PR/Issue number
- Allowed Paths violation
- protected path/secret
- failed tests
- failed current-head CI
- max iteration
- parser failure fallback
- normal GitHub comment pathのpre/post readback
- 旧artifactなしでのfresh start
Allowed Paths
.claude/skills/issue-refinement-loop/SKILL.md
.claude/skills/issue-refinement-loop/scripts/reviewer_claim_replay.py(削除)
.claude/skills/issue-refinement-loop/scripts/reviewer_claim_replay_state_store.py(削除)
.claude/skills/issue-refinement-loop/scripts/parent_replay_binding.py(削除)
.claude/skills/issue-refinement-loop/scripts/emit_parent_review_envelope_v2.py(削除)
.claude/skills/issue-refinement-loop/scripts/publish_termination_report.py(削除)
.claude/skills/issue-refinement-loop/scripts/render_termination_report.py(削除)
.claude/skills/issue-refinement-loop/scripts/compact_review_result.py(縮小: V1最小フィールドのみ)
.claude/skills/issue-refinement-loop/scripts/validate_review_compact_output.py(縮小: V2 code path削除)
.claude/skills/issue-refinement-loop/scripts/command_registry.py(entry削除)
.claude/skills/issue-refinement-loop/scripts/decide_next_loop_action.py(PARENT_REPLAY_*依存除去)
.claude/skills/issue-refinement-loop/scripts/build_refinement_phase_state.py(replay gate除去)
.claude/skills/issue-refinement-loop/references/loop-state.md(REVIEWER_CLAIM_REPLAY_STATE_V2節削除)
.claude/skills/issue-refinement-loop/references/termination-policy.md(consecutive-unbacked依存の見直し)
.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay.py(削除)
.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_broad_search_path.py(削除)
.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py(削除)
.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_identity_binding.py(削除)
.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_state_store.py(削除)
.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_stdout_budget.py(削除)
.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py(削除)
.claude/skills/issue-refinement-loop/tests/test_parent_replay_binding.py(削除)
.claude/skills/issue-refinement-loop/tests/test_parent_replay_isolation_runtime.py(削除)
.claude/skills/issue-refinement-loop/tests/test_parent_replay_lp010_deterministic_fail.py(削除)
.claude/skills/issue-refinement-loop/tests/test_emit_parent_review_envelope_v2.py(削除)
.claude/skills/issue-refinement-loop/tests/test_review_compact_emit_v2_registry_contract.py(削除)
.claude/skills/issue-refinement-loop/tests/test_review_compact_v2_contract.py(削除または最小V1相当へ再設計)
.claude/skills/issue-refinement-loop/tests/test_review_compact_registry_entry.py(更新)
.claude/skills/issue-refinement-loop/tests/test_compact_review_result.py(更新)
.claude/skills/issue-refinement-loop/tests/test_compact_review_result_reviewer_blocker_claim.py(更新)
.claude/skills/issue-refinement-loop/tests/test_validate_review_compact_output.py(更新)
.claude/skills/issue-refinement-loop/tests/test_decide_next_loop_action.py(更新)
.claude/skills/issue-refinement-loop/tests/test_decide_next_loop_action_contract_update.py(更新)
.claude/skills/issue-refinement-loop/tests/test_publish_termination_report.py(削除)
.claude/skills/issue-refinement-loop/tests/test_render_termination_report.py(削除)
.claude/skills/issue-refinement-loop/tests/test_command_registry.py(更新)
.claude/skills/issue-refinement-loop/tests/test_command_registry_security.py(更新)
.claude/skills/issue-refinement-loop/tests/test_scope_signal_guard_termination.py(更新、影響範囲確認)
.claude/skills/issue-refinement-loop/tests/test_termination_policy_contract.py(更新)
.claude/skills/impl-review-loop/scripts/route_loop_verdict_v2.py(縮小: merge_ready/required_auto_actions/allowed_paths_gate除去)
.claude/skills/impl-review-loop/steps/step-5-mergeability-handling.md(更新)
.claude/skills/impl-review-loop/steps/step-5-feedback-and-termination.md(更新)
.claude/skills/impl-review-loop/steps/step-4-pr-review.md(更新: pr_review.publish参照除去)
.claude/skills/impl-review-loop/tests/test_v2_routing_boundary_regression.py(更新)
.claude/agents/issue-reviewer.md(出力format整合)
.claude/agents/pr-reviewer.md(出力format整合)
.codex/agents/issue-reviewer.toml(出力format整合)
.codex/agents/pr-reviewer.toml(出力format整合)
scripts/agent-guards/controlled_skill_mutation_policy.py(COMMAND_ID_PUBLISH・COMMAND_ID_PR_REVIEW_PUBLISH entry削除)
scripts/agent-guards/controlled_skill_mutation_exec.py(termination_report.publish・pr_review.publish関連関数削除)
scripts/agent-guards/pretool_fastpath_classifier.py(legacy command id参照コメント更新)
scripts/agent-guards/tests/test_controlled_skill_mutation_exec.py(更新)
scripts/agent-guards/tests/test_controlled_skill_mutation_policy.py(更新)
scripts/agent-guards/tests/test_controlled_pr_review_publish_exec.py(削除)
scripts/agent-guards/tests/test_pr_review_publish_pr_number_separation.py(削除)
scripts/agent-guards/tests/test_pretool_fastpath_classifier.py(更新)
scripts/agent-ops/pr_review_marker_archive_exec.py(削除)
scripts/agent-ops/tests/test_pr_review_marker_archive_exec.py(削除)
tests/agent_guards/test_worktree_scope_guard.py(影響確認・必要なら更新)
scripts/agent_ops_inventory.py(entry更新)
tests/test_agent_parity.py(issue-reviewer/pr-reviewer差分更新)
tests/fixtures/agent-parity/ok-claude-issue-reviewer.md(更新)
tests/fixtures/agent-parity/ok-codex-issue-reviewer.toml(更新)
tests/test_issue_refinement_ops_review.py(更新)
docs/dev/agent-skill-boundaries.md(更新)
docs/dev/hook-boundaries.md(§12a/§12b更新)
docs/dev/schema-governance.md(該当schema行削除)
docs/dev/workflows/README.md(更新)
docs/dev/workflows/impl-review-loop-design.md(更新)
docs/dev/workflows/issue-refinement-loop-design.md(更新)
pyproject.toml(削除ファイルのper-file-ignores行 [E402] 除去)
実装中に直接consumerが追加で見つかった場合:
- live child Issueをrefetchする
Allowed PathsとCurrent Validated Scopeだけをsection-level更新する- readbackする
- 作業を継続する
body SHA mismatchだけで停止しない。
Runtime Verification Applicability
decision: immediate
reason: "native subagent result handoff、bounded iteration、stale-head/stale-body rereview、resume時live refetch、通常GitHub mutationのpre/post readbackは実行時挙動である"
applicable_acs:
- AC2
- AC3
- AC6
- AC7
- AC9
- AC10
- AC11
- AC15Stop Conditions
次だけをhard stopとする。
- canonical repository/target Issue/PRを特定できない
- repository、worktree、branch identityが一致しない
- protected path、secret、credential、destructive Gitを弱める必要がある
- actual 3-way Git conflictがある
- target PRがlive current headで
CONFLICTINGまたはDIRTY - #1856または#1869の所有scopeを同一PRで変更しないと成立しない
- review criteria自体を変更しないと成立しない
- required testを実行できず、代替なしでPASS扱いする必要がある
- generic GitHub safety boundaryを削除しないと通常投稿経路を作れない
- native subagentとsingle-agent fallbackの双方が利用不能
次はhard stopにしない。
- 旧artifact missing/stale/invalid
- parser failure
- body SHA mismatch
- semantic overlap
- #1871がOPENであること
- mergeability UNKNOWN/BLOCKED/BEHIND/UNSTABLE/DRAFT/HAS_HOOKS
- scope inventoryの警告
- old publisherが利用不能
Related and Supersession
- 実装: LOOP_VERDICT_V2 契約の producer/consumer/publisher atomic cutover を行う #1857:
LOOP_VERDICT_V2新規strict schema producer/consumer/publisher cutoverを追加する逆方向scope。本Issueに完全に置換される場合はsuperseded。final dispositionはPR完成後に確定する。 - 実装: termination report に全 termination reason で FOLLOW_UP_MATERIALIZATION_RESULT_V1 を出力する #1321/PR fix(refinement): 全終端理由で follow-up materialization 結果を出力 (#1321) #1832: 専用termination report/publisherを拡張する逆方向scope。独立残存scopeがなければsuperseded。
- fix(review-issue): canonical parentではC4/C8とexecute VC preflightを非適用にする #1867: C4/C8 parent applicability修正は独立して有効。reviewer replay taxonomy部分だけをsupersedeし、Issue全体を機械的にcloseしない。
- 実装: review compact artifact の provenance attestation を追加する #1532、実装: issue-reviewer envelope 生成を決定論的スクリプトに統合する #1541、実装: compact_review_result.py の REVIEWER_BLOCKER_CLAIM が structured_blockers ではなく blocking_issues の prose から code を構築している問題を修正する #1554、実装: reviewer_claim_replay.py の taxonomy に RDR001 / VCP_COMMAND_NOT_ALLOWED を追加し parent_replay_binding.py に C9 evidence 経路を追加する #1555、実装: issue-reviewer SubAgent の最終応答から prose 要約を排除し canonical compact stdout 形式を強制する #1754、実装: issue-refinement-loop Step 2 を child intermediate validator に移行し review phase gate を入力digestへ束縛する #1755、実装: review-issue の structured_blockers マージ形式を compact_review_result.py の REVIEW_ISSUE_RESULT_V1 スキーマに一致させる #1791、実装: fix(replay-taxonomy): readiness rule_id/category を deterministic_domain_key taxonomy に正規化する #1810、#1829等のclosed Issueはhistorical recordとして維持し、再openしない。
- PR 実装: semantic planning・overlap・contract artifactのblocking authorityを撤去する #1871: warning-continue/actual conflict only方針を維持する。
Delivery Rule
- 1 Issue = 1 PR
- dedicated worktree
- Draft PR
Closes #<NEW_ISSUE>Part of #1860- human final merge
- force push禁止
Activity
squne121 commentedon Jul 30, 2026
duplicate of #1873 — 同一scope・ほぼ同一本文のimplementation issueが本Issue作成前(2026-07-30T21:36:07Z)に既に存在し、bounded issue refinement iteration 1でAPPROVE済み、親Issue #1860のChild Issues/Closure Matrixにも既に反映済みであることをlive readbackで確認した。専用worktree(worktree-issue-1873-bounded-review-loops)も作成済みのため、以降の実装作業は #1873 側で継続する。