Repository navigation
実装: semantic planning・overlap・contract artifactのblocking authorityを撤去する - #1871
Conversation
#1860 Owner Decision(2026-07-30)に基づき、implement-issue / create-issue / impl-review-loop の production prose(SKILL.md・steps/*.md)から、OPEN Issue 全件収集・semantic overlap・scope-rollup marker 異常を理由にした自動停止 指示を撤去する。 調査の結果、対象スクリプト(check_implementation_overlap.py 等)は既に route/exit code レベルで advisory(分類成功時は route を問わず exit 0) であり、実際の blocking authority は呼び出し側 SKILL.md の「人間判断へ 停止」prose に存在していたため、そちらを advisory 表現へ書き換えた。 - implement-issue/SKILL.md: overlap preflight の全 route を warning-continue 化し、実際に残る hard stop を実 Git conflict / target PR mergeability (CONFLICTING/DIRTY)のみに限定 - create-issue/SKILL.md: scope 重複・overlap preflight のいずれも起票停止 理由にせず、exact-title dedupe のみ維持 - impl-review-loop/steps/preparation.md: Step 2.5 scope rollup preflight を automatic dispatch から任意 advisory diagnostic へ縮小(marker 欠落・ malformed・runner failure は warning 化) - impl-review-loop/steps/step-5-mergeability-handling.md: BLOCKED/UNSTABLE/ UNKNOWN/DRAFT/HAS_HOOKS を Git conflict と区別し、DIRTY/CONFLICTING のみ hard stop として明記 - docs/dev/workflow.md: Scope Collision Preflight(C0-C3)の記述を advisory 化し、hard stop を上記2条件のみに限定 - tests/agent_ops/test_implement_issue_overlap_policy.py: 旧 fail-closed 文言を検証していた3テストを advisory 挙動の検証へ更新 issue-contract-review / open-pr の overlap gate は調査の結果、PR #1854 (#1851)で既に advisory 化済みであることを確認したため変更していない。 issue-refinement-loop の ISSUE_EXECUTION_DECISION は他 skill から一切 consume されておらず、通常の実装作業をblockしないため本Issueのスコープ外 とした(別 child issue の対象)。 Closes #1869 Part of #1860 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Preview URL✅ verified live assets: https://squne121.github.io/loop-protocol/pr-1871/ The preview will be removed when this PR is closed. |
- create-issue/SKILL.md: 既存の英語のみ見出し(Procedure/Output/Guardrails/Related等)に 日本語訳を追加(PR Body Japanese Checkがファイル全体を検査するため) - impl-review-loop/steps/preparation.md: Section 2.5見出しの日本語比率を閾値以上に調整 - docs/dev/workflow.md: Scope Collision Preflight節を短縮しssot-discoveryの 4000文字budgetを再度満たすようにした(元の拡張で4040文字となり超過していた) Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
独立レビュー(pr-review-judge手順)の結果、APPROVEと判断します。 LOOP_VERDICT_V2verdict: APPROVE
reviewed_head_sha: "cc7563285c178d7974fd171f91459d18cae0f993"
merge_ready: true
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "CLEAN"
blockers: []
required_auto_actions: []確認内容
本PRは#1860のowner decisionに基づく明示的なblocking authority撤去であり、OPEN Issue全件収集・semantic overlap・scope-rollup・contract snapshot・body SHA/fingerprint・overlap evidenceのadvisory化はレビュー指摘の対象外として扱いました。 |
|
main が進んだため (
先の独立レビュー(APPROVE, reviewed_head_sha: cc75632)の判断内容は、今回のbranch update(mainのfast-forwardマージのみ、本PRのdiffに変更なし)後も有効です。reviewed_head_sha を |
squne121
left a comment
There was a problem hiding this comment.
Current-head review: REQUEST_CHANGES
対象 head: 97941492a180d111beebf8c00e48964a04420427
current head の差分は #1869 の変更対象に収まりますが、マージ可能な証跡は未充足です。
LOOP_VERDICT_V2:
verdict: REQUEST_CHANGES
reviewed_head_sha: "97941492a180d111beebf8c00e48964a04420427"
merge_ready: false
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "CLEAN"
allowed_paths_gate:
status: indeterminate
producer_role: review_subagent
worker_report_used_as_canonical: false
blockers:
- "必須 Verification Commands の issue-refinement-loop test / scripts test の current-head 実行証跡が PR 本文にない。"
- "safety-sensitive な .claude/skills 変更に必要な Safety Claim Matrix が PR 本文にない。"
- "current-head に束縛された構造化 verification evidence、Allowed Paths 遵守、Runtime Verification Evidence が PR 本文にない。"
required_auto_actions:
- kind: update_pr_body_hygiene
executor: implementation-worker
skill: open-pr.update_pr
blocking_merge_ready: true
mechanical: true
auto_fix_applied: []
follow_up_issue_requests: []CI は current head で green ですが、ローカル test-runner は current PR head ではない checkout で実行され、git diff --check も対象 base object 不在で fail-closed でした。上記の current-head 証跡を補完し、再レビューしてください。
判定REQUEST_CHANGES — 現状は merge 不可です。 PR #1871 の現行 head は 以下では、#1860のowner decision自体には異議を唱えず、「その方針を本PRが正しく実装できているか」に限定して評価します。 P0-1: GitHub merge conflict のhard stopがproduction routerに実装されていない変更後のStep 5は、LOOP_VERDICTから GitHubの公式GraphQL定義では、両者は別フィールド・別enumです。
したがって、現行Step 5の さらに、production consumerである PR本文は#1853の「production routerでmergeableとmerge_state_statusを分離する」スコープを吸収したとしていますが、変更ファイル一覧にproduction routerは含まれていません。リポジトリ検索でも、 必須修正production routerを唯一のrouting正本にし、少なくとも次を実装する必要があります。 加えて、Step 5のshellパーサーを廃止し、YAMLのstrict parserと P0-2:
|
…y実効性・scope-rollup manual化 #1860 Owner Decisionの実装(PR #1871)に対する人間レビュアーのREQUEST_CHANGESに対応する。 - P0-1: route_loop_verdict_v2.pyにconflict_hard_stop routeを追加し、mergeable(CONFLICTING/MERGEABLE/UNKNOWN)と merge_state_status(BEHIND/BLOCKED/CLEAN/DIRTY/DRAFT/HAS_HOOKS/UNKNOWN/UNSTABLE)を正しいGitHub enumとして分離。 merge_state_status==CONFLICTINGは無効値としてschema_invalidにする。全fenced yamlブロックを列挙するCLI wrapperを追加し、 step-5-mergeability-handling.mdのshell grep/sed抽出を廃止。 - P0-2: step-5-feedback-and-termination.mdのrequired_auto_actions契約をroute_loop_verdict_v2.pyのオブジェクト配列契約 (kind/executor/skill/blocking_merge_ready/mechanical/expected_head_sha)に統一。 - P0-3: check_implementation_overlap.pyのruntime_error exit codeを1から0に変更し、set -euo pipefail下でも advisory routeとしてシェルが継続できるようにする。create-issue SKILL.mdのcanonical invocationから--fail-on-unsafeを除去。 - P0-4: build_intake_capsule.pyのerrorsをfatal_errors(live Issue不在/git status失敗)とwarnings (comment/snapshot fetch失敗)に分離しexit codeをfatal_errorsのみに連動。implementation-worker.mdの hard gate文言を除去。SKILL.md/preparation.mdのhuman_review_required即停止・product-spec snapshot停止を warning化。 - P1-1: scope-rollup-runnerをimpl-review-loopのautomatic dispatchから外し、manual advisory diagnosticとして 再定義。check_impl_review_loop_codex_dispatch.pyの自動spawn note検査を反転(存在しないことを検証)。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
…emove-planning-authority # Conflicts: # .claude/skills/impl-review-loop/scripts/route_loop_verdict_v2.py
Merge origin/main into worktree-issue-1873-bounded-review-loops and semantically integrate Issue #1873's bounded review-loop design with the contracts established by merged PR #1870 (#1856: route_loop_verdict_v2() drops test_verdict) and merged PR #1871 (#1869: only actual Git conflict is hard stop). - route_loop_verdict_v2.py: two-argument API only (reviewer_verdict, live_mergeability); actual conflict (mergeable==CONFLICTING or merge_state_status==DIRTY) is evaluated before reviewer verdict dispatch; BLOCKED/UNSTABLE/DRAFT/UNKNOWN are non-conflict fail_closed outcomes deferred to the current-head CI evaluator, not automatic human escalation; removed the now-zero-consumer comment-parser/CLI. - step-5-mergeability-handling.md / step-5-feedback-and-termination.md / SKILL.md: rebuilt from the #1873 contract rather than conflict-marker splicing; ported #1871's human_review_required-is-not-auto-stop section and product-spec-preflight advisory demotion. - Allowed Paths gate (pr-reviewer.md/.toml, pr-review-judge SKILL.md, allowed-paths-gate.md, allowed_paths_review_gate.py): live linked Issue body is canonical; contract snapshot/fingerprint drift is advisory-only (warnings[]), no longer merge-blocking. - Regression tests migrated to the two-input API; fixtures reconciled with the new route names/semantics; dangling test_verdict= call sites and stale doc wording fixed.
- docs/dev/agent-skill-boundaries.md: fix stale BEHIND-authority reference (LOOP_VERDICT_V2.mergeability -> live_mergeability), add HUMAN_REVIEW_REQUIRED to the verdict enum shown in the routing_allowed_fields table. - route_loop_verdict_v2.py: repoint the docstring's dangling pointer to a docs/dev/workflow.md section that does not exist, to the actual pr-review-judge references that document the minimal convention. - step-4-pr-review.md: fix stale line claiming the pr-reviewer SubAgent posts the verdict comment (it cannot -- no Write/Edit tools); fix a leftover LOOP_VERDICT_V2.blockers reference to reviewer_verdict.blockers[]. - impl-review-loop/SKILL.md: remove stale_snapshot from the gate status column (it is now warnings[]-only, per allowed-paths-gate.md). - implementation-worker.md: reframe the action-kind dispatch table heading away from the removed required_auto_actions reviewer field. - verdict-output-template.md: add HUMAN_REVIEW_REQUIRED to the example heading. Also updated Issue #1873's Allowed Paths / Current Validated Scope sections (with readback) per its own "consumer discovered during implementation" procedure, to cover the additional files touched while reconciling the Allowed Paths gate advisory-fingerprint change with #1860/#1871.
…換する (#1875) * 実装: review/refinementのreplay・envelope・custom publisherをbounded loopへ置換する Closes #1873 Part of #1860 issue-refinement-loop と impl-review-loop の通常経路から、replay arbitration(reviewer_claim_replay.py 系)、parent binding digest (parent_replay_binding.py)、review envelope V2 (emit_parent_review_envelope_v2.py)、永続 state store (build_loop_state.py / build_refinement_phase_state.py / save_loop_state_before_compaction.sh)、専用 termination/review publisher(termination_report.publish / pr_review.publish command id、 publish_termination_report.py / render_termination_report.py / pr_review_marker_archive_exec.py)を撤去し、native subagent の bounded loop(verdict / reviewed_head_sha または reviewed_body_sha256 / blockers / optional warnings の最小 convention)へ置換した。 - impl-review-loop: route_loop_verdict_v2.py を、reviewer 自己申告の merge_ready/required_auto_actions/allowed_paths_gate に依存しない 設計へ再設計。mergeability hard-stop 不変条件(CONFLICTING/DIRTY のみ hard stop、#1869/PR#1871 で確立)は完全に維持。 - publisher 撤去: controlled_skill_mutation_policy.py / controlled_skill_mutation_exec.py から termination_report.publish / pr_review.publish の command id 固有 branch のみ除去(他 7 command id と共通機構は無変更)。最終 summary は通常の `gh issue comment --body-file` / `gh pr comment --body-file` 経路へ移行。 - isolation-worktree issue comment bridge(Issue #1633、 issue_comment.publish 用)を publish_termination_report.py から isolation_issue_comment_bridge.py へ分離抽出し、無関係な保護対象 機能を保持したまま termination publisher 部分のみ削除。 - ANCHOR_SCOPE_REFRAME_V1(#1869 所有)が参照する anchor_comment JSON Schema フラグメントを loop_state.schema.json から anchor_comment.schema.json へ抽出し、validation ロジック自体は 無変更のまま schema ファイル本体を削除可能にした。 - decide_next_loop_action.py を verdict/iteration/max_iterations(3) のみに依存する bounded loop 判断へ縮小。 - .claude/agents/issue-reviewer.md・pr-reviewer.md(.codex/agents/ mirror 含む)を最小 convention の read-only reviewer 定義へ整合。 - 新規 schema・digest・receipt・publisher・state machine は追加せず、 schemas/catalog.yaml・docs/dev/schema-governance.md 等の該当行を 削除して同期。 Verification(current head, worktree issue-1873-bounded-review-loops): - uv run --locked pytest .claude/skills/issue-refinement-loop/ -q → 1096 passed - uv run --locked pytest .claude/skills/impl-review-loop/ -q → 470 passed, 2 deselected, 2 xfailed - uv run --locked pytest .claude/skills/pr-review-judge/ -q → 414 passed - uv run --locked pytest scripts/agent-guards/tests/ -q → 1110 passed, 1 skipped, 1 deselected - uv run --locked pytest tests/agent_guards/ tests/test_agent_parity.py → 291 + 49 passed - uv run --locked pytest .claude/hooks/tests/ tests/test_hook_boundaries_doc.py → 899 + 33 passed - uv run --locked ruff check(変更ファイルに新規違反なし。repo-wide 183件は本PR対象外ファイルの既存違反で origin/main と同一) - pnpm typecheck / pnpm lint / pnpm test(1794 passed)/ pnpm build → すべて成功 - git diff --check → clean Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix(review): PR review指摘に対応しtest_controlled_skill_mutation_exec.pyの汎用/issue_dependency.remove専用テストカバレッジを復元する 削除された汎用executor機構テストをissue_comment.publish代表値で再構築し(レガシーな termination_report.publish専用API廃止に伴い低レベル欠落フィクスチャのみ補完)、 issue_dependency.remove系15クラスをそのまま復元。pyproject.tomlにE402 per-file-ignore を再登録。 Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix(review): command_registry.pyのdangling entry除去とIssue review出力にREVIEWED_BODY_SHA256を追加 (#1873) decide.runエントリから撤去済みphase-state gate機能への参照(--phase-state-file)を削除し、 実際のdecide_next_loop_action.pyのargparse定義と一致することをregressionテストで検証する。 compact_review_result.pyのcompact stdoutにREVIEWED_BODY_SHA256行を追加し、 Issue #1873のOutcome規定に沿うfield名でreviewed live bodyのsha256を露出する。 Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix(ci): pyproject.tomlのstale E402 per-file-ignoreを除去 (#1873) test_scope_signal_guard_termination.py はrender_termination_report.py 撤去に伴いE402を誘発するimportが既に無くなっており、 scripts/ci/verify_ruff_configuration.pyのisolated E402 probeがfail していた(PR #1875 レビュー指摘)。 Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix(ci): PR Body/changed-md Japanese Check とcodex agent構造化出力チェックを修正 (#1873) changed *.md の per-block 日本語比率不足5件(見出しブロックの日本語比率不足4件、 verdict-output-template.mdのnested code fence起因の未パース1件)を解消し、 .codex/agents/pr-reviewer.toml の developer_instructions に 「structured output」要件文言を明記してscripts/check-codex-agents.mjsの 必須assertionを満たすようにした。 Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix: address iteration-1 REQUEST_CHANGES blockers/warnings - docs/dev/agent-skill-boundaries.md: fix stale BEHIND-authority reference (LOOP_VERDICT_V2.mergeability -> live_mergeability), add HUMAN_REVIEW_REQUIRED to the verdict enum shown in the routing_allowed_fields table. - route_loop_verdict_v2.py: repoint the docstring's dangling pointer to a docs/dev/workflow.md section that does not exist, to the actual pr-review-judge references that document the minimal convention. - step-4-pr-review.md: fix stale line claiming the pr-reviewer SubAgent posts the verdict comment (it cannot -- no Write/Edit tools); fix a leftover LOOP_VERDICT_V2.blockers reference to reviewer_verdict.blockers[]. - impl-review-loop/SKILL.md: remove stale_snapshot from the gate status column (it is now warnings[]-only, per allowed-paths-gate.md). - implementation-worker.md: reframe the action-kind dispatch table heading away from the removed required_auto_actions reviewer field. - verdict-output-template.md: add HUMAN_REVIEW_REQUIRED to the example heading. Also updated Issue #1873's Allowed Paths / Current Validated Scope sections (with readback) per its own "consumer discovered during implementation" procedure, to cover the additional files touched while reconciling the Allowed Paths gate advisory-fingerprint change with #1860/#1871. * fix: address iteration-2 REQUEST_CHANGES blockers - step-5-feedback-and-termination.md: worker_status_stale_verdict now routes to re-review (not human_escalation), reconciling a contradiction with step-5-mergeability-handling.md's UPDATE_BRANCH_RESULT_V1.stale_verdict row and route_loop_verdict_v2()'s own route_stale_head_rereview semantics. Staleness alone must never be a human-escalation reason. - pr-reviewer.md: removed a dangling reference to the removed "controlled review publisher" mechanism. - Deleted .claude/skills/pr-review-judge/scripts/tests/test_loop_verdict_v2.py (explicitly authorized for deletion by Issue #1873's own Allowed Paths): a self-contained legacy #637-era LOOP_VERDICT_V2 schema test with zero production-code imports that pinned removed reviewer self-report fields (merge_ready/required_auto_actions/mergeability) as required SKILL.md content. - test_handoff_pr_hygiene_regression.py / test_termination_gate.py: two doc-presence tests were asserting the removed field names (required_auto_actions / merge_ready) as things step-5-mergeability- handling.md must reference; flipped to assert the actual #1873 replacement contracts (route_to_update_branch synthesis, live_mergeability routing). - issue-refinement-loop/SKILL.md: fixed a reference-map row pointing at the deleted schemas/loop_state.schema.json to the anchor_comment schema it was extracted into. Also updated Issue #1873's Allowed Paths (with readback) to cover three additional files identified by iteration-2 review: isolation_issue_comment_bridge.py, run_refinement_preflight.py, test_pretool_fastpath_classifier.py. Verified programmatically that all 173 files in `git diff origin/main...HEAD` are now covered by the live Allowed Paths list. --------- Co-authored-by: Claude Sonnet 5 <[email protected]>
Summary
#1860 の owner decision(2026-07-30)に基づき、
implement-issue/create-issue/impl-review-loopの production prose(SKILL.md/steps/*.md)とdocs/dev/workflow.mdから、OPEN Issue 全件収集・semantic overlap・scope-rollup marker 異常を理由にした自動停止指示を撤去し、warning-continue(advisory)へ書き換えた。当該領域に残る hard stop は、実際の 3-way Git conflict と target PR の GitHub mergeability(mergeable == CONFLICTING/merge_state_status == DIRTY)のみである。**2026-07-30 の人間レビューで REQUEST_CHANGES(P0-1〜P0-4, P1-1〜P1-5)を受け、fix_delta として commit
fa1fe901f405520c92331e2dce65b8b8624b7f7cで対応済み。**下記「Fix Delta」節参照。Root cause(根本原因)
調査の結果、対象 production スクリプト(
check_implementation_overlap.py、parse_scope_rollup_run_result.py等)は初期実装時点で route/exit code レベルでほぼ advisory な設計(分類が成功すれば route を問わず exit 0)になっていたが、実際の blocking authority は主に呼び出し側のSKILL.md/steps/*.mdprose(「human_review_required/duplicate/wait_for_predecessorは人間判断へ停止」「marker 欠落・malformed は Step 3 へ進めず停止」等)に存在していた。初回実装はこの prose 層の書き換えを中心に行った。その後の人間レビュー(P0-1〜P0-4)で、以下の production スクリプトのexit code契約自体もまだ blocking のままであることが判明し、fix_delta で追加修正した:
route_loop_verdict_v2.pyがmergeable(GitHubMergeableState:CONFLICTING/MERGEABLE/UNKNOWN)とmerge_state_status(GitHubMergeStateStatus:BEHIND/BLOCKED/CLEAN/DIRTY/DRAFT/HAS_HOOKS/UNKNOWN/UNSTABLE)を区別しておらず、存在しないmerge_state_status == CONFLICTINGを conflict として扱いうる余地があったcheck_implementation_overlap.pyのruntime_errorroute が exit code 1 を返しており、set -euo pipefail下の呼び出し元では advisory 方針が prose 通りに機能しなかったbuild_intake_capsule.pyが comment/snapshot/body fingerprint 取得失敗を fatal 扱いしていた.claude/agents/implementation-worker.mdにissue-contract-review status: goを必須とする hard gate 文言が残存していたscope-rollup-runnerの automatic dispatch と、それを前提とする dispatch validator の検査が残存していたしたがって本 PR の変更は「prose 層の書き換え」と「production スクリプトの exit code / routing 契約の是正」の両方から成る(#1860 owner decision: 「表現形式を禁止するのではなく、停止権限を禁止します」。既存の JSON/YAML の route/status 語彙自体は維持し、新しい schema/artifact は追加していない)。
調査により、
issue-contract-reviewとopen-prの overlap gate は PR #1854(#1851)で既に advisory 化済みであることを確認したため、本 PR では変更していない。issue-refinement-loopのISSUE_EXECUTION_DECISIONはimplement-issue/impl-review-loop/issue-contract-reviewのいずれからも consume されておらず(rg -ln "ISSUE_EXECUTION_DECISION" .claude/skills/implement-issue .claude/skills/impl-review-loop .claude/skills/issue-contract-reviewは 0 件)、通常の実装作業をブロックしないため本 Issue のスコープ外とした。修正差分(人間レビューの指摘への対応、対応日 2026-07-30)
現行 head は
fa1fe901f405520c92331e2dce65b8b8624b7f7cである。mergeable/merge_state_statusを分離せず、merge_state_status == CONFLICTINGを有効な conflict signal として扱いうる。Step 5 の shell grep/sed は先頭の fenced YAML block しか見ないroute_loop_verdict_v2.pyにmergeable/merge_state_statusを独立 enum として検証するスキーマ検証を追加し、merge_state_status == CONFLICTINGをschema_invalidとして拒否。mergeable == CONFLICTINGまたはmerge_state_status == DIRTYのみconflict_hard_stop。全 fenced YAML block を列挙しLOOP_VERDICT_V2キーを含むブロックを採用する CLI wrapper を追加し、step-5-mergeability-handling.mdから shell grep/sed を除去required_auto_actionsの契約が Step 5 prose(文字列リスト許容)と production router(オブジェクト配列必須)で不一致step-5-feedback-and-termination.mdの prose を production router のオブジェクト配列契約(kind/executor/skill/blocking_merge_ready/mechanical/expected_head_sha)に統一set -euo pipefail下の呼び出しを止めるcheck_implementation_overlap.pyのruntime_errorroute を exit 0 に変更。create-issueの canonical invocation から--fail-on-unsafeを除去(フラグ自体は後方互換のため残置)。set -euo pipefail下での継続を確認する subprocess behavior test を追加implementation-worker.mdにstatus: go必須の hard gate が残存build_intake_capsule.pyの出力をfatal_errors(live Issue 不在・git status失敗等)とwarnings(comment/snapshot/body fingerprint 取得失敗)に分離し、exit code はfatal_errorsのみに依存させた。implementation-worker.mdから hard gate 文言を削除。impl-review-loop/SKILL.md/preparation.mdの矛盾する hard stop 記述を warning-continue に整合preparation.mdに automatic delegation 手順、agent 定義に automatic dispatch 前提の記述、dispatch validator に automatic spawn 必須検査が残存preparation.mdの Step 2.5 delegation 文言を manual-only に書き換え、.claude/agents/scope-rollup-runner.md/.codex/agents/scope-rollup-runner.tomlを manual advisory diagnostic 用に変更、check_impl_review_loop_codex_dispatch.pyの必須検査を反転(automatic spawn 文言が 存在しない ことを検証)し、test_codex_agent_bridge_contract.pyを更新route_loop_verdict_v2の conflict/non-conflict truth table positive/negative fixture、build_intake_capsuleの fatal/warning 分離、set -euo pipefail下の継続確認、dispatch validator の反転検査)cc756328→a8d45b32)に束縛されたまま更新されていなかったfa1fe901f405520c92331e2dce65b8b8624b7f7cに対して独立 PR レビューを再実行し、reviewed_head_shaを現行 head に一致させたa7ae6dde→fa1fe901の追加差分: PR 本文更新中にmainが進み、route_loop_verdict_v2.py(Issue #1856「evidence authority cutover」で_check_behind_invariantがbranch_behind_main非依存の_is_behindに置き換えられた)に実際の 3-way conflict が発生した。owner decision に基づき、これは実 Git conflict として通常のマージで解消した(_is_behindを採用し、本 PR の P0-1conflict_hard_stopロジックはそのまま維持)。マージ後、test_verdict引数を参照していた本 PR 側のテスト・CLI 呼び出しを新シグネチャに追従させ、既存の E501 違反(tests/test_codex_agent_bridge_contract.py)も解消した。P1-2(関連 Issue の absorption 主張の精査)は「Related / superseded Issues」節を参照。P1-4(YAML 抽出)は P0-1 の対応に含まれる。
Authority Removal Matrix(撤去した権限一覧)
wait_for_predecessor/human_review_required/duplicate/runtime_error).claude/skills/implement-issue/SKILL.mdsaturated: trueを warning として記録し継続set -euo pipefail下で呼び出し元停止).claude/skills/implement-issue/scripts/check_implementation_overlap.py--fail-on-unsafe--fail-on-unsafe除去.claude/skills/create-issue/SKILL.md.claude/skills/impl-review-loop/steps/preparation.md、.claude/agents/scope-rollup-runner.md、.codex/agents/scope-rollup-runner.toml、scripts/check_impl_review_loop_codex_dispatch.pymergeable/merge_state_status分離)merge_state_status == CONFLICTINGを有効値として扱いうる余地ありmergeable == CONFLICTING/merge_state_status == DIRTYのみ hard stop。merge_state_status == CONFLICTINGは schema_invalid。BLOCKED/BEHIND/UNSTABLE/DRAFT/HAS_HOOKS/UNKNOWN は conflict 扱いしない.claude/skills/impl-review-loop/scripts/route_loop_verdict_v2.py、steps/step-5-mergeability-handling.mderrors一件で intake capsule が exit 1(fatal)fatal_errors/warnings分離。comment/snapshot/body fingerprint 取得失敗は warning、exit 0.claude/skills/impl-review-loop/scripts/build_intake_capsule.pyissue-contract-review status: goがない Issue を受け付けない hard gate 文言.claude/agents/implementation-worker.mddocs/dev/workflow.mdPreserved safety boundaries(変更していない境界)
open-prのresolve_canonical_repository()等): fail-closed のまま維持latest_blocked(trusted author による明示 blocked/request_changes)の human veto 境界。fix_delta では、artifact 自体でなく live comment 上の明示的な人間判断に限定する形へ再定義(実装: implementation-worker.toml と open_pr.py の legacy artifact hard gate を除去する #1851 で確立した境界を強化)mergeable == CONFLICTING/merge_state_status == DIRTY(唯一残す hard stop として production router レベルで実装・明記を強化)Safety Claim Matrix
本 PR は
.claude/skills/(implement-issue、create-issue、impl-review-loop)配下(SKILL.md、steps、scripts、tests、fixtures)および.claude/agents/を変更するため safety-sensitive パスパターンに一致するが、permission / sandbox / transport / auth / mcp のいずれも変更していない。mergeable == CONFLICTING/merge_state_status == DIRTY)のみを hard stop として production router で実装し、それ以外(semantic planning・overlap・contract artifact 等)は warning-continue にしたroute_loop_verdict_v2.pyの conflict/non-conflict truth table positive/negative fixture テスト(PASS)merge_state_status == CONFLICTING(無効な GitHub enum 値)を conflict として誤認せずschema_invalidとして拒否するnegative_merge_state_status_conflicting_is_schema_invalid.ymlfixture テスト(PASS)open-prのresolve_canonical_repository())は本 PR で変更していないgit diff --statにopen-pr/scripts/resolve_canonical_repository相当ファイルの変更が出現しないscripts/agent-guards/*)を含めておらずgit diff --statに出現しないci_verdict_summary.py等)は本 PR で変更していないgit diff --statにci_verdict_summary.pyの diff がないことを確認可能check_implementation_overlap.pyのruntime_errorexit 0 化等)は診断結果の可観測性を保ったまま exit code のみを是正し、evidence/warning の出力自体は削除していないtest_check_issue_overlap_advisory_shell_continuation.py/check_implementation_overlap.pyの behavior test(PASS).claude/agents/scope-rollup-runner.mdの diff は dispatch 前提の記述変更のみで、tools フィールドの変更を含まないAcceptance Criteria 達成状況
implement-issueが実装フェーズへ進むlatest_blockedが単独では停止理由にならない(build_intake_capsule.pyfatal/warning分離を含めfix_deltaで強化)check_implementation_overlap.py/build_intake_capsule.py/route_loop_verdict_v2.py)の exit code / routing 契約を advisory 方針に合わせて是正した(route/status の語彙自体は変更していない)mergeable == CONFLICTINGまたはmerge_state_status == DIRTYは停止する。production router (route_loop_verdict_v2.py) レベルで実装UNKNOWN/null/BLOCKED/BEHIND/UNSTABLE/DRAFT/HAS_HOOKSをGit conflictと誤判定しない。merge_state_status == CONFLICTING(無効なGitHub enum値)はschema_invalidとして拒否docs/dev/workflow.md)、skill SKILL.md/steps、production script、testsの記述が一致する(fix_deltaでStep 5 prose と production router のrequired_auto_actions契約を統一)Verification Commands と実結果
初回実装時(head
cc756328):fix_delta 後(head
a7ae6dde→fa1fe901、独立レビューでの再実行分・main merge conflict解消分含む):現行 head(
fa1fe901f405520c92331e2dce65b8b8624b7f7c)に対する必須チェックは 16 件中 16 件が成功しており、マージ可否判定は「マージ可能」、マージ状態は「クリーン」であることを確認した。Changed files(変更ファイル一覧)
全ファイルが Issue #1869 の Allowed Paths 内(fix_delta 分は Issue 本文へ Scope Delta として追記済み、readback 確認済み)。
Scope Delta
初回実装着手時、各 skill の
scripts/*.py調査の結果、blocking authority の実体がSKILL.mdprose にあることが判明したため、implement-issue/SKILL.md、create-issue/SKILL.md、impl-review-loop/SKILL.md、issue-refinement-loop/SKILL.md、issue-contract-review/SKILL.md、open-pr/SKILL.mdを #1869 の Allowed Paths へ追加した。fix_delta 対応時、REQUEST_CHANGES で指摘された production script(
route_loop_verdict_v2.py、build_intake_capsule.py、check_implementation_overlap.py)、agent 定義(implementation-worker.md、scope-rollup-runner.md/.toml)、dispatch validator(check_impl_review_loop_codex_dispatch.py)と、それぞれに対応する behavior test を Allowed Paths へ追加した(Issue #1869 本文に記録・readback 済み)。Schema Change Applicability
新しい JSON/YAML schema・digest・receipt・publisher・reason-code enum は追加していない。既存の route/status 語彙(
human_review_required、duplicate、ISSUE_SCOPE_ROLLUP_RUN_RESULT_V1、mergeable/merge_state_statusの GitHub 標準 enum 等)はそのまま維持し、それらを消費する側の exit code・routing・prose の契約(stop → warning-continue、ただし実 Git conflict / GitHub mergeability の hard stop は維持)を是正した。Related / superseded Issues(関連・吸収Issue)
route_loop_verdict_v2.pyによるmergeable/merge_state_status分離の production 実装により、独立 scope が本 PR に吸収されたcheck_implementation_overlap.pyは advisory diagnostic として引き続き実行されるため、false positive 精度改善という同 Issue の scope は本 PR merge 後も独立に残りうる。「吸収」ではなく、精度改善が不要と判断するなら owner decision として明示的に won't-fix/close する必要があるPAIRWISE_MERGE_OBSERVATION_V1)を新規提案しており「新しい代替 authority artifact を追加しない」という owner decision と抵触する。本 PR では同等の producer/consumer 実装を追加していないため、close するか、observed conflict → hard stop / observed clean → continue / missing・stale・tool_error・indeterminate → warningという形で新規 schema なしに再定義するかは、本 PR merge 後に owner 判断で確定する以上が現時点(head
fa1fe901)における本 PR の全内容である。