Repository navigation
feat: owner reaction 手順を決定論的 reaction reader/principal resolver/drift checker/selection resolver として実装する - #2683
Conversation
… checker/selection resolver として実装する (#1975) anchor-comment-handling.md に文書化されていた owner reaction 手順(全ページ取得・ stable user ID principal 固定・drift readback・untrusted reaction 除外・複数有効 reaction 時 conflict 化)のうち、read-only な選択読み取り部分を owner_reaction_decision.py として実装する。command_registry.py / skill_runtime_command_policy.py に read-only command entry を追加し、registry render_command() -> 実 CLI subprocess -> 構造化 result 読み取りという production-shaped な経路を成立させる(AC7、GitHub network 境界のみ fake にした runtime verification test 付き)。CLI の出力は heavy mutation gate の実行許可を 意味しない。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Preview URLPreview removed (PR #2683 closed). |
Verdict: REQUEST_CHANGESBlockers
Notes (non-blocking)
verdict: REQUEST_CHANGES
reviewed_head_sha: "0484da2ec7dd3a404430f5dff5cee4c4363ed2f4"
blockers:
- "Required CI checks (python-test-core, python-test, ci-verdict-summary) FAILING at reviewed head due to ruff violations: F401 unused import 'sys' in owner_reaction_decision.py:58; E501 line-too-long at test_owner_reaction_decision.py:48 and :66."
warnings: [] |
PR #2683 の required CI(python-test-core / python-test / ci-verdict-summary)が F401(未使用 `import sys`)と E501(120 文字超過 2 箇所)で FAILING だったため、 未使用 import の削除とテストヘルパー引数の複数行整形のみで修正する(#1975 fix_delta iteration 1)。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Verdict: APPROVERe-review (iteration 1) at head
verdict: APPROVE
reviewed_head_sha: "6716d8a064c4a85aad3dd8b0c02a35df8fd90699"
blockers: []
warnings:
- "merge_state_status is BEHIND (base has advanced) — informational only, not a blocker per this repo's routing policy"
- "PR is currently a Draft — not a blocker; left for human final-merge decision per Delivery Rule" |
Verdict: APPROVE (re-review after update_branch merge)reviewed_head_sha:
verdict: APPROVE
reviewed_head_sha: "96ed502cfa0e97a4518a18e4905ad86974afef44"
blockers: []
warnings:
- "PR is Draft (isDraft: true); not a blocker per repo Delivery Rule."
- "mergeStateStatus was transiently BLOCKED at review start (python-test required check pending); resolved to CLEAN at same head." |
|
確認した現状では、新しい修正を先に入れるより、Issue #1975 を canonical 現在の live state は PR head したがって、test-runner → pr-reviewer を fresh に実行して両方の完了を待ち、新しい blocker が出た場合だけ implementation-worker に戻る構成を推奨します。最大3 iteration、merge/auto-merge は禁止、Draft のまま 以下を、そのまま起動済み auto mode の ClaudeCode に貼り付けられます。 対象 repository: 対象:
重要: 現在確認済みの starting stateこの情報を blind trust せず、開始時に必ず live readback してください。
PR #2683 の changed paths は現在以下の6件です。
これは現在の Issue #1975 の Allowed Paths と一致しています。 基本方針既に実装済み・current-head APPROVE 済みの PR に、理由なく追加変更を入れないでください。 まず fresh live state を取得し、current-head について独立 Verification と独立 PR Review を再実行してください。 fresh verification/review で blocker が出た場合だけ canonical feedback loop に従って implementation-worker に修正を委譲してください。 既存の APPROVE コメントや過去のテスト結果だけを根拠に終了せず、この run 自身で current head に binding された evidence を取得してください。 一方、既に満たされている AC のためにコードを「改善」し直したり、scope を拡張したりしないでください。 SubAgent 実行契約必ず SubAgent を使用してください。 root/main thread は control-plane に限定してください。 各 SubAgent を起動したら、その SubAgent の作業完了を必ず待ってから次の Step に進んでください。 非同期に投げっぱなしにした状態で次工程へ進まないでください。 SubAgent が完了していないのに別 SubAgent の結果を推測・代用しないでください。 canonical roles を使用してください。
SubAgent 自身には nested SubAgent delegation をさせないでください。nested delegation が必要になった場合は Issue #1975 の Stop Condition として扱ってください。 Preparation
特に以下を確認してください。
過去 artifact、contract snapshot、launch ledger 等は advisory telemetry として扱い、Skill の policy に反して routing hard-stop の根拠にしないでください。 external research は本件が repository-internal workflow 実装であり不要なら skip して構いません。その場合は Root-Owned Entry / existing implementationcanonical root-owned entry transition のルールに従ってください。 ただし PR #2683 は既に存在し、実装も完了しています。 current live state で Issue #1975 の AC と PR diff が既に整合している場合、意味のないコード変更を作るために Step 1 を強制しないでください。 current implementation を candidate implementation として扱い、まず fresh Verification に進める canonical route が存在するならそれを使用してください。 canonical procedure 上 implementation-worker の起動が必要な場合は起動し、その完了を待ってください。ただし「何か変更すること」を成功条件にしてはいけません。 Issue #1975 の scope boundary本 Issue は read-only owner reaction resolver の実装です。 以下は Out of Scope のまま維持してください。
特に AC7 は、
までです。
Allowed Pathslive Issue body を authority としてください。 現時点の Allowed Paths は前述の6件です。 actual changed paths を以下のタイミングで再確認してください。
Allowed Paths 外の変更が必要だと判明したら、勝手に scope を追加しないでください。 Step 2: fresh Verification独立した test-runner の完了を必ず待ってください。 Issue #1975 の live Verification Commands を fresh に読み、AC1〜AC8 を current PR head に対して評価してください。 過去 PR body に書かれた PASS を fresh result の代用にしないでください。 最低限、以下を確認してください。
AC7 は immediate runtime verification として扱ってください。 GitHub network boundary の fixture/fake は Issue 契約どおり許可します。 fallback 経由の success は PASS にしないでください。 test-runner は failure があっても自分で実装を修正せず、root に structured blocker を返してください。 Step 4: fresh independent PR reviewVerification が完了して PASS/routeable result を返した後でのみ、独立した pr-reviewer の作業完了を必ず待ってください。 reviewer は current live head に binding してレビューしてください。 最低限確認するもの:
structured result は canonical convention: verdict: APPROVE | REQUEST_CHANGES | HUMAN_REVIEW_REQUIRED
reviewed_head_sha: "<sha>"
blockers: []
warnings: []を維持してください。 Step 5: bounded autonomous feedbackpr-reviewer 完了後にのみ canonical Step 5 routing を行ってください。 APPROVE以下を live state と照合してください。
成立すれば成功終了候補です。 REQUEST_CHANGESactual Git conflict ではなく、Issue #1975 の Allowed Paths 内で修正可能な blocker なら、人間に確認せず次の iteration へ進んでください。
max_iterations は canonical default の stale review
current head で pr-reviewer を再実行し、完了を待ってください。 BEHINDfresh live state が update-branch data-plane worker を使用し、その完了を待ってから、必ず新 head で Verification と PR Review を再実行してください。 actual conflict
guard や integrity check を無効化して突破しないでください。 Draft statePR #2683 は現在 Draft です。 Draft 自体を理由に implementation scope を変更しないでください。 この run では Draft のまま維持してください。
人間への途中確認は禁止通常の以下の処理で私に確認を求めないでください。
auto mode で実行可能な canonical action は自律的に進めてください。 SubAgent の ただし live Issue/PR の明示的 human veto、actual Git conflict、または canonical terminal route は尊重してください。 terminal escalation以下の場合は scope を突破せず terminal escalation としてください。
この場合でも、実行可能な read-only/canonical checks は完了し、exact blocker evidence を残してから終了してください。 マージ直前の成功条件以下がすべて current head に対して成立するまで loop を継続してください。
成功したら 絶対に実行しないもの
マージ操作だけを人間側に残してください。 最終報告終了時に簡潔かつ具体的に以下を出してください。
目的は、既存 PR #2683 を無意味に変更することではありません。 Issue #1975 の canonical contract に対して current head を fresh に検証・独立レビューし、必要な blocker があれば最大3 iteration の bounded fix loop で解消し、人間の途中承認なしで、マージ操作だけが残る状態まで到達することです。 このケースでは、既に head/base/CI/mergeability が揃っているため、正常なら fresh |
判定REQUEST_CHANGES 相当です。 現時点の PR #2683 は head 特に最初の2件は、この PR が「steps 2–6 の canonical implementation」を名乗るならマージ前に直した方がよいです。 Severity | Finding | 影響 -- | -- | -- P1 | anchor snapshot の binding/readback が実装されていない | anchor が変更されても selected を返せる P1 | drift check が reaction 取得前にしかない | readback 後の編集を stale と検出できない P1 | preview comment が指定 Issue に属することを検証していない | 別 Issue の comment reaction と対象 Issue body を混在できる P2 | repository owner principal を resolve せず、caller の owner_user_id を無条件に信用 | owner 以外を owner として扱える入力契約になっている P2 | AC7 が production entry ではなく .fixture sibling を起動 | production registry entry の破損で false-green になり得る P2 | outer timeout 60s に対し内部は最大 30s × 3 sequential calls | structured failure を返す前に外側から kill され得るP1 — anchor drift が完全に欠落しているIssue #1975 は In Scope で、
することを要求しています。preview binding についても「比較対象となる anchor/Issue snapshot」を要求しています。さらに ところが だけです。anchor comment ID/hash がなく、 つまり、
というケースでも これはセキュリティ強化ではなく、選択した案が何に対して提示されたものなのかという decision identity の欠落です。PR #1973 の P1-4 が要求した deterministic consumer の目的そのものに関係します。 最小修正で十分です。 P1 — drift → reactions の順なので TOCTOU が残るcanonical procedure は概念上、 です。 一方、現在の です。 そのため comment/Issue が hash check 後、reaction fetch 前または途中で編集された場合、それを知る術がありません。 たとえば、 が成立します。 完全な原子性までは不要です。個人開発でそこまでハーネスを増やす価値はありません。reactions を取得した後、decision を返す直前に target comment / anchor / Issue の final readback を行うだけで、明白な race window は閉じられます。 P1 — comment ID と Issue number が結び付いていないCLI には GitHub の Get an issue comment response には 現在は、たとえば Issue A の preview comment ID/hash と Issue B の Issue #1975 が primary identity として repository / Issue / preview comment を束縛している以上、これは identity tuple の欠落です。
P2 — stable ID の使い方は正しいが、「誰が owner か」は resolve していない
問題は、その比較先が repository owner から得られた ID ではなく、 であることです。 つまり現状の実装は厳密には principal resolver ではなく、caller-provided principal filter です。テストも GitHub repository response 自体に 少なくとも P2 — AC7 は production command entry を検証していないAC7 の文面は、 です。 ところが E2E test が実際に render しているのは、 です。 production の ではありません。 これは重要です。たとえば production entry の script path や flag 名だけを壊しても、
直すべきなのは harness の拡大ではなく、production entry の exact argv も同じテストで render して固定することです。可能なら PATH 上の fake P2 — timeout budget が内部と外部で矛盾しているproduction registry: CLI 内部: そして現状でも、 の3回を sequential に実行します。 理論上は 30 + 30 + 30 秒です。したがって最初の2回が遅ければ、3回目の fail-closed structured result を作る前に、outer 60s budget が尽きます。 anchor readbackや repository owner resolution を追加するとさらに顕在化します。 ここも大掛かりな deadline framework は不要です。個人開発なら、内部 per-call timeout を 10–15 秒程度へ下げて outer を60秒のままにするか、outer を十分大きくするだけでも改善します。 外部仕様との照合reaction reader の基礎設計自体はよくできています。 また、non-zero subprocess の partial stdout を parse せず 推奨 fix delta既存6 Allowed Paths の中でほぼ完結できます。追加の security framework や generic executor 配線は入れない方がよいです。
この6点のうち、1〜3はマージ前 blocker、4〜6は同じ PR で直す価値が高いです。逆に 既存 APPROVE が間違っているというより、現在の tests が anchor と cross-Issue binding を fixture model 自体から省略しているため、その欠落をレビューでも見抜きにくい構造になっています。そこが今回の敵対的レビューで最も大きい点です。 ## 判定REQUEST_CHANGES 相当です。 現時点の PR #2683 は head 特に最初の2件は、この PR が「steps 2–6 の canonical implementation」を名乗るならマージ前に直した方がよいです。
P1 — anchor drift が完全に欠落しているIssue #1975 は In Scope で、
することを要求しています。preview binding についても「比較対象となる anchor/Issue snapshot」を要求しています。さらに ところが だけです。anchor comment ID/hash がなく、 つまり、
というケースでも これはセキュリティ強化ではなく、選択した案が何に対して提示されたものなのかという decision identity の欠落です。PR #1973 の P1-4 が要求した deterministic consumer の目的そのものに関係します。 最小修正で十分です。 P1 — drift → reactions の順なので TOCTOU が残るcanonical procedure は概念上、 です。 一方、現在の です。 そのため comment/Issue が hash check 後、reaction fetch 前または途中で編集された場合、それを知る術がありません。 たとえば、 が成立します。 完全な原子性までは不要です。個人開発でそこまでハーネスを増やす価値はありません。reactions を取得した後、decision を返す直前に target comment / anchor / Issue の final readback を行うだけで、明白な race window は閉じられます。 P1 — comment ID と Issue number が結び付いていないCLI には GitHub の Get an issue comment response には 現在は、たとえば Issue A の preview comment ID/hash と Issue B の Issue #1975 が primary identity として repository / Issue / preview comment を束縛している以上、これは identity tuple の欠落です。
P2 — stable ID の使い方は正しいが、「誰が owner か」は resolve していない
問題は、その比較先が repository owner から得られた ID ではなく、 であることです。 つまり現状の実装は厳密には principal resolver ではなく、caller-provided principal filter です。テストも GitHub repository response 自体に 少なくとも P2 — AC7 は production command entry を検証していないAC7 の文面は、 です。 ところが E2E test が実際に render しているのは、 reg.render_command("owner_reaction.decide.fixture", ...)です。 production の ではありません。 これは重要です。たとえば production entry の script path や flag 名だけを壊しても、
直すべきなのは harness の拡大ではなく、production entry の exact argv も同じテストで render して固定することです。可能なら PATH 上の fake P2 — timeout budget が内部と外部で矛盾しているproduction registry: CLI 内部: そして現状でも、 の3回を sequential に実行します。 理論上は 30 + 30 + 30 秒です。したがって最初の2回が遅ければ、3回目の fail-closed structured result を作る前に、outer 60s budget が尽きます。 anchor readbackや repository owner resolution を追加するとさらに顕在化します。 ここも大掛かりな deadline framework は不要です。個人開発なら、内部 per-call timeout を 10–15 秒程度へ下げて outer を60秒のままにするか、outer を十分大きくするだけでも改善します。 外部仕様との照合reaction reader の基礎設計自体はよくできています。 また、non-zero subprocess の partial stdout を parse せず 推奨 fix delta既存6 Allowed Paths の中でほぼ完結できます。追加の security framework や generic executor 配線は入れない方がよいです。
この6点のうち、1〜3はマージ前 blocker、4〜6は同じ PR で直す価値が高いです。逆に 既存 APPROVE が間違っているというより、現在の tests が anchor と cross-Issue binding を fixture model 自体から省略しているため、その欠落をレビューでも見抜きにくい構造になっています。そこが今回の敵対的レビューで最も大きい点です。 |
|
推奨アクションは、コメント 敵対的レビューの技術的根拠も妥当です。GitHub の issue-comment response には 以下を、すでに auto mode で起動済みの対話的 ClaudeCode にそのまま渡す形を推奨します。 あなたは 対象は以下です。
目的は、対象コメントを実装上の fix delta として取り込み、 PR の merge、auto-merge 有効化、Issue close は実行しないでください。最終 merge 判断だけを人間に残してください。 現在観測済みの head 対象コメント 初期 fix delta はコメント
Issue #1975 の Allowed Paths を hard boundary としてください。現在の許可対象は次の6ファイルです。
root thread 自身が implementation edit、test execution、review judgment を横取りせず、 Step 1 は SubAgent は必ず完了を待ってください。 Step 1 完了後、新しい current PR head SHA を取得してください。 Step 2 は test-runner についても final result を取得し、 Step 4 の前に current-head required CI を canonical Step 4 は pr-reviewer も final result と terminal その後だけ Step 5 の
外部仕様を再確認する必要がある場合は 成功終了条件は、修正後の exact current head に対して、Issue #1975 の Verification Commands が current-head adjudication を通過し、required CI が green、pr-reviewer が そこまで到達したら作業を停止してください。PR を merge しないでください。auto-merge も有効化しないでください。 最終報告には最低限、exact PR head SHA、実装した fix delta 6件それぞれの disposition、変更ファイル、実行した canonical Verification Commands と結果、追加 regression tests、required CI 結果、最終 pr-reviewer verdict、live mergeability、未解決 blocker の有無、 作業途中の進捗確認や「続けてよいですか」は不要です。SubAgent の完了を待ちながら、自動 routing 可能な範囲は最後まで継続してください。 この形なら、対象コメントを単なる「追加レビュー文」ではなく、 |
…ipal 検証を強化する (#1975) OWNER 敵対的レビュー(PR #2683 comment #5748651887)の6件の指摘に対応する: anchor comment の binding/readback 追加(P1-1)、reactions 取得後の final readback による TOCTOU window の解消(P1-2)、target/anchor comment の issue_url 所属検証(P1-3)、`GET repos/{repo}` からの owner principal 解決 (P2-1)、AC7 の production entry 検証追加(P2-2)、sequential gh call 数増加に 伴う timeout budget の見直し(P2-3)。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
…on-decision' into worktree-issue-1975-owner-reaction-decision
fix_delta 対応(OWNER 敵対的レビュー comment #5748651887 への対応)head SHA P1-1: anchor comment の binding/readback が存在しない → fixed
P1-2: TOCTOU(drift check が reaction 取得前にしかない) → fixed実装方針は選択肢 (a)(冒頭の readback を廃止し、reactions 取得後の readback 1回に統合)を採用。 P1-3: 対象 comment が指定 Issue に属するか未検証 → fixedtarget comment・anchor comment の双方について P2-1: repository owner principal を resolve していない → fixed
P2-2: AC7 が
|
…wner-reaction-decision
Summary
anchor-comment-handling.mdの「競合(material conflict)発生時の owner reaction 手順(#1950 AC3/AC4)」節は文書としてのみ存在しており、実際に動く reaction reader・pagination loop・principal resolver・drift checker・selection resolver が実装されていなかった(PR #1973 owner レビュー指摘)。本 PR は Issue #1975 の契約に従い、この手順の read-only な選択読み取り部分を決定論的な CLIowner_reaction_decision.pyとして実装する。.claude/skills/issue-refinement-loop/scripts/owner_reaction_decision.pyを追加。preview binding(repository・Issue number・提示 comment ID・提示 comment body hash・reaction→option_idmapping・各 option の操作内容・対象・比較対象 anchor/Issue snapshot hash)を入力とし、gh api -X GET --paginate --slurp相当の argv 配列のみで対象コメントの reaction を全件取得する。environment_errorを返す(AC3、4つの fail-closed サブケースを個別に検証)。id(loginではない)でリポジトリ owner principal を固定する(AC2)。staleを返す(AC6)。unresolved(reason_code:unanswered/reject_all/conflict/no_selection)/selected/stale/environment_errorの4トップレベル status に整理し、reason_codeで意味を分離した(AC4/AC5)。command_registry.pyのISSUE_REFINEMENT_COMMAND_REGISTRY_V1に read-only command entryowner_reaction.decide(network_effect: github_read_only、mutation: false)と、AC7 検証専用の test-only siblingowner_reaction.decide.fixture(network_effect: local_only)を追加。scripts/agent-guards/skill_runtime_command_policy.pyのSKILL_RUNTIME_COMMAND_POLICY_V2["eligible_command_ids"]に対応する policy entry を追加した。この2 entry はskill_runtime_exec.pyの command_id ごとの exact-match generic dispatch には一切配線していない(Issue 実装: owner reaction 手順を決定論的 reaction reader/principal resolver/drift checker/mutation consumer として実装する #1975 の明示的 Out of Scope。scope_rollup.runと同じ「registry declaration + 直接 dispatch」パターン)。.claude/skills/issue-refinement-loop/SKILL.md(参照マップに1行追加のみ、500行budget維持)とreferences/anchor-comment-handling.md(新規節)に、本 CLI が手順2〜6の canonical implementation であること、および本 CLI の出力が heavy mutation gate の実行許可を意味しないことを明記した(AC8)。Checks
uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_owner_reaction_decision.py::test_preview_binding_primary_identity -v— 1 passeduv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_owner_reaction_decision.py::test_stable_user_id_principal_resolution -v— 1 passeduv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_owner_reaction_decision.py::test_pagination_partial_failure_fail_closed -v— 1 passed(4 fail-closed サブケース a-d を内包)uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_owner_reaction_decision.py::test_selection_semantics_disambiguation -v— 1 passed(未回答/-1単独/選択成立/conflict/未割当 の5サブケースを内包)uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_owner_reaction_decision.py::test_untrusted_and_unmapped_reaction_excluded -v— 1 passeduv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_owner_reaction_decision.py::test_drift_detection_returns_stale -v— 1 passed(comment drift / issue drift / no-drift の3サブケースを内包)uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_owner_reaction_decision.py::test_canonical_command_registry_entry_end_to_end -v— 1 passed(AC7 runtime verification、実 CLI subprocess 起動、artifacts/ に証跡保存)rg -nF "owner_reaction_decision.py" .claude/skills/issue-refinement-loop/references/anchor-comment-handling.md— マッチ2件(AC8)uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_owner_reaction_decision.py -v— 9 passed(上記7 VC node id + preview binding invalid の追加回帰2件)uv run --locked pytest .claude/skills/issue-refinement-loop/tests/ -q— 1895 passed, 3 failed(pre-existing:TestAuthorityTransportPrivilegedExecutorRealSubprocessDispatchの3件は変更前の main でも同一エラーで失敗することを確認済み。本 PR 由来の regression ではない), 1 deselected(既存の opt-in live canary、未変更)uv run --locked pytest scripts/agent-guards/tests/test_skill_runtime_policy_anchor.py scripts/agent-guards/tests/test_skill_runtime_command_policy_anchor.py scripts/agent-guards/tests/test_skill_runtime_policy_commands.py scripts/agent-guards/tests/test_issue_metadata_write_capability.py -q— 142 passed(既存 policy 回帰なし確認)pnpm typecheck— successpnpm lint— success(No issues found)pnpm test— 108 files / 1939 tests passedpnpm build— successuv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py— 24 passedSchema Change Applicability
(新規 CLI・新規 command_registry entry 2件の追加のみ。
OWNER_REACTION_DECISION_RESULT_V1は既存 consumer が存在しない新規 schema であり、既存の REGISTRY entry のキー集合・型・既存 stdout contract は一切変更していない)Schema Consumer Inventory
N/A(
not_schema_changeのため。OWNER_REACTION_DECISION_RESULT_V1を消費する既存コードは repo 内に存在しない — 消費は本 Issue の Out of Scope である root control-plane の将来利用に委ねられる)Safety Claim Matrix
.claude/skills/issue-refinement-loop/**とscripts/agent-guards/skill_runtime_command_policy.pyを変更しているため safety-sensitive PR として扱う。gh api -X GET)のみを行い、書き込み・mutation は一切行わないowner_reaction_decision.pyのbuild_gh_argv_*全3関数が-X GET固定。command_registry.pyの2 entry ともmutation: False(owner_reaction.decideはnetwork_effect: github_read_only)。test_command_registry_security.pyの argv 安全性 assertion が引き続き PASSselected_option_id)は既存 heavy mutation gate(_classify_heavy_mutation_gate()/_is_approved_close_not_planned_decision())への配線を一切追加しないrg -n "_classify_heavy_mutation_gate|_is_approved_close_not_planned_decision" .claude/skills/issue-refinement-loop/scripts/owner_reaction_decision.py— マッチなし(PASS)。run_refinement_preflight.pyは本 PR で無変更test_pagination_partial_failure_fail_closed(4サブケース a-d 全てenvironment_errorを確認、PASS)owner_reaction.decide/owner_reaction.decide.fixtureはskill_runtime_exec.pyの command_id ごとの generic dispatch には配線されていない(#2086 型の registry/policy-declaration-only false-green を作らない)git diffでscripts/agent-guards/skill_runtime_exec.pyは本 PR で無変更(Allowed Paths 外)。rg -n "owner_reaction" scripts/agent-guards/skill_runtime_exec.py— マッチなし(PASS)SKILL.mdの既存 500 行 budget(test "$(wc -l < SKILL.md)" -le 500)を維持したまま参照を追加したwc -l .claude/skills/issue-refinement-loop/SKILL.md→ 500(PASS)Runtime Verification Evidence(AC7 の動作検証証跡、
docs/dev/runtime-verification-policy.mdの証跡保存フォーマットに準拠)Runtime Verification Applicability:
immediate、applicable_acs:[AC7]。実行環境:uv(pinned lockfile)・Python 3.12・GitHub network 通信なし(gh api呼び出しは--gh-fixture-fileで fake に差し替え)。証跡ファイル:
<worktree>/artifacts/runtime-verification-AC7-20260920T062954Z.log(worktree-local、.gitignore済み、PR 本文に inline 引用)。uv不在または subprocess 起動失敗時は test 自身がpytest.exit(..., returncode=77)で SKIP する(shutil.which("uv")未検出時、および subprocess 起動自体がOSError/TimeoutExpiredの場合)。今回の実行環境では両方とも利用可能だったため実際に PASS まで到達した。_*_fallback: trueフィールドの有無を test 内で明示的に検査し、検出時は FAIL 扱いにする(本 CLI にはそもそも fallback 概念が存在しないため、実行結果にも該当フィールドはない)。Not controlled(Out of Scope、Issue #1975 契約どおり)
gh issue close等)は追加していない。selectedをapproved_by_trusted_anchorへ自動変換する配線、既存 heavy mutation gate への直接接続は行っていない。scripts/agent-guards/skill_runtime_exec.py側の generic dispatch 配線、またはscope_rollup.run型の独立 executor パターンの新規採用は行っていない(Issue 実装: owner reaction 手順を決定論的 reaction reader/principal resolver/drift checker/mutation consumer として実装する #1975 Out of Scope — 別 Issue・owner 判断)。deferred(Issue 実装: owner reaction 手順を決定論的 reaction reader/principal resolver/drift checker/mutation consumer として実装する #1975 Runtime Verification Applicability 補足のとおり、owner 判断による read-only smoke 手順で別途実施)。Notes
.claude/skills/issue-refinement-loop/scripts/owner_reaction_decision.py(新規)、.claude/skills/issue-refinement-loop/tests/test_owner_reaction_decision.py(新規)、.claude/skills/issue-refinement-loop/SKILL.md、.claude/skills/issue-refinement-loop/references/anchor-comment-handling.md、.claude/skills/issue-refinement-loop/scripts/command_registry.py、scripts/agent-guards/skill_runtime_command_policy.py。_classify_heavy_mutation_gate()/_is_approved_close_not_planned_decision()の schema・enum は変更していない。