Skip to content

実装: review/refinementのreplay・envelope・custom publisherをbounded loopへ置換する #1874

Closed as not planned

Description

@squne121

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: workflow

Parent Issue

#1860

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.bind command 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 id review_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 id termination_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_V2 YAML(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.publish command 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.toml mirror)は既に 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関係

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.publish command 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.publish marker 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

Migration and Deletion Rule

  1. consumerから旧authority依存を外す(decide_next_loop_action.py、build_refinement_phase_state.py、route_loop_verdict_v2.py)。
  2. minimal bounded loop(verdict/reviewed_head_sha or reviewed_body_sha256/blockers/warnings)をproduction pathへ接続する。
  3. testsでreplacement behaviorを確認する。
  4. 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)とその専用テストを削除する。
  5. command_registry.py/controlled_skill_mutation_policy.py/controlled_skill_mutation_exec.pyから対応するcommand idを削除する。
  6. docsとdocs/dev/schema-governance.mdのgovernance tableを同期する。
  7. 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、optional warnings程度に縮小される
  • AC5: PR review結果がverdict、reviewed_head_sha、blockers、optional warnings程度に縮小される
  • 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.publish command 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 -q

standard gates:

uv run --locked ruff check .claude/skills scripts tests
pnpm typecheck
pnpm lint
pnpm test
pnpm build
git diff --check

production 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が追加で見つかった場合:

  1. live child Issueをrefetchする
  2. Allowed PathsとCurrent Validated Scopeだけをsection-level更新する
  3. readbackする
  4. 作業を継続する

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
  - AC15

Stop 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

Delivery Rule

  • 1 Issue = 1 PR
  • dedicated worktree
  • Draft PR
  • Closes #<NEW_ISSUE>
  • Part of #1860
  • human final merge
  • force push禁止

Activity

  1. added
    enhancement
    phase/implementation
    agent/implementer
    on Jul 30, 2026
  2. squne121 commented on Jul 30, 2026

    @squne121
    OwnerAuthor

    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 側で継続する。

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