Repository navigation
feat: owner_reaction.decide を skill_runtime_exec.py の exact dispatch に配線する - #2694
Conversation
…に配線する (#2688) Issue #1975 で追加された owner_reaction.decide / owner_reaction.decide.fixture の command_registry.py エントリは、これまで宣言のみで skill_runtime_exec.py の実 dispatch に接続されていなかった(#1975 の明示的 Out of Scope)。repair_action.apply / structural_repair_action.apply の既存 exact dispatch precedent(exact parser/checker 関数、execution_class 定数、first-hop script integrity/readback パターン)に倣い、両 command_id を exact dispatch として 実行時に呼び出せるよう配線する。 - skill_runtime_command_policy.py: owner_reaction.decide / owner_reaction.decide.fixture 用の exact parser/checker (parse_exact_skill_runtime_owner_reaction_decide_command / is_exact_skill_runtime_owner_reaction_decide_executor_command とその fixture sibling)を追加。validate_registry_entry() は、command_registry.py の当該 2 エントリ(Issue #1975 由来、本 Issue では変更しない read-only design reference)が required_cwd/required_branch/allowed_write_roots を 宣言しない実際の形状に合わせて分岐する。 - skill_runtime_exec.py: --owner-user-id / --preview-binding-file / --gh-fixture-file の required/forbidden combination 検証、command_text 構築 + exact parser 呼び出し、render_params 分岐、および first-hop script integrity/readback ターゲットを owner_reaction_decision.py に向ける script_name 分岐(run_refinement_preflight.py ではない)を追加。 - production-shaped / fixture 両 profile が同一 dispatcher 実装 (script_name 分岐)を共有することを確認。 owner_reaction_decision.py / command_registry.py の owner_reaction.decide 系 エントリ(argv・placeholders・stdout_contract)は本 Issue では一切変更しない。 新規テスト(.claude/skills/issue-refinement-loop/tests/): - test_owner_reaction_decide_dispatch.py: AC1/AC2/AC3/AC5/AC7/AC8 (実 skill_runtime_exec.py subprocess 経由の production/fixture 両 profile dispatch、first-hop script 対象の検証) - test_owner_reaction_decide_flag_validation.py: AC4 (required/forbidden combination の網羅的検証、実 subprocess 経由) - test_owner_reaction_decide_failure_boundary.py: AC9 (child non-zero exit / malformed structured result が false success に 変換されないことの実 executor 境界からの検証) - owner_reaction_dispatch_fixture.py: 上記 3 ファイルが共有する、実際の production ファイル(skill_runtime_exec.py / skill_runtime_command_policy.py / command_registry.py / owner_reaction_decision.py)を検証用スクラッチ git repo へ配置する fixture builder Closes #2688 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Preview URL✅ verified live assets: https://squne121.github.io/loop-protocol/pr-2694/ The preview will be removed when this PR is closed. |
impl-review-loop Step 4/5: reviewer verdictMergeability: MERGEABLE (Draft PR; merge_state_status: BEHIND — will be reconciled via update_branch before final approval) Evidence Check: 10/10 ACs independently verified PASS at head Blockers: none Non-blockers / Notes: PR is Draft and BEHIND main; impl-review-loop will run verdict: APPROVE
reviewed_head_sha: "4559d243e766e00fdded835bc556c5bb30ce0261"
blockers: []
warnings:
- "PR is currently Draft; merge_state_status is BEHIND at review time (both non-blocking per policy; control-plane handles via live mergeability, not self-reported here)" |
impl-review-loop Step 4/5: reviewer verdict (re-review at updated head)Mergeability: MERGEABLE (Draft PR; merge_state_status: BLOCKED — CI re-run after update_branch) Evidence Check: 10/10 ACs independently re-verified PASS at head Blockers:
Warnings:
verdict: REQUEST_CHANGES
reviewed_head_sha: "d522b5a9bb2d6cb96d95feb6d70aa0ddf1ef7b1a"
blockers:
- "PR body is missing the required `## Runtime Verification Evidence` section (docs/dev/runtime-verification-policy.md §6/§7/§8). Issue #2688 declares Runtime Verification Applicability decision: immediate with all AC1-AC10 tagged <!-- runtime-verification: true -->, which requires a PR-body evidence section with per-AC Result/Timestamp/Environment/Exit Code and fallback-absence confirmation. The current `## Checks` section (pytest pass counts only) does not satisfy this format. Sibling PR #2683 (same feature chain, same decision: immediate) correctly included this section as precedent."
warnings:
- "python-test-core (non-required check) was still IN_PROGRESS at review time; not merge-blocking but should be confirmed passing."
- "PR is Draft with mergeStateStatus: BLOCKED; not a reviewer blocker per existing policy, noted for context only." |
impl-review-loop Step 4/5: reviewer verdict (re-review after PR body fix)Mergeability: MERGEABLE (Draft PR; will re-check merge_state_status for final routing) Evidence Check: Previous blocker (missing Blockers: none Non-blockers / Notes: verdict: APPROVE
reviewed_head_sha: "d522b5a9bb2d6cb96d95feb6d70aa0ddf1ef7b1a"
blockers: []
warnings:
- "validate_pr_body_hygiene.py(非canonical wrapper)はHY001(`- Closes #2688` standalone行)をfailとして検出するが、merged precedent PR #2683の本文にも同一パターンが存在するpre-existing事象であり、本PRのblockerとはしない。canonical validator(validate_pr_body.py)はpassを返す。" |
|
PR #2694 を current head [PR #2694](https://github.com/squne121/loop-protocol/pull/2694?utm_source=chatgpt.com) [[Issue #2688](https://github.com/squne121/loop-protocol/issues/2688?utm_source=chatgpt.com)](https://github.com/squne121/loop-protocol/issues/2688?utm_source=chatgpt.com) [[OWNER architecture anchor](https://github.com/squne121/loop-protocol/issues/2688?utm_source=chatgpt.com#issuecomment-5749552225)](https://github.com/squne121/loop-protocol/issues/2688?utm_source=chatgpt.com#issuecomment-5749552225)
外部仕様との照合では、reaction reader 自体を触る必要はありません。 したがって修正範囲は広げない方がよいです。優先順位は P0-1 → P1-1 → P1-2 → P2-1。特に P0-1 は、現在の「fake-backed real executor test」という検証方針そのものは維持したまま、production credential carrier の1 assertion を追加すれば閉じられます。独立 executor、新規 credential broker、live GitHub API CI、reaction semantics 再設計は不要です。 既存レビューが認めた点も妥当です。first-hop を |
|
指定コメントを 新しい fix_delta の起点として、既存 PR #2694 をそのまま再開するのが適切です。新規 PR や Issue body の再 refinement は不要です。 推奨アクションは次の順です。
指定コメント: [PR #2694 comment 5753975780](#2694 (comment)) 以下を、すでに auto mode で起動済みの Claude Code にそのまま渡せます。 PR #2694 の既存実装を、以下の OWNER review comment を新しい fix_delta / human context として Target review: Target PR: Source Issue: Canonical skill: このセッションは既に auto mode で起動済みです。permission mode を変更せず、routine な実装修正・検証・レビュー再実行について人間承認を求めないでください。 今回の目的は、指定 review comment の blocker を解消し、current head に対する independent Verification と PR review をやり直し、canonical Authority / freshnessまず live state を取得してください。 指定 comment 作成時に確認された PR head は:
です。ただしこれを固定値として信用せず、開始時に PR current head、base、draft state、mergeability、CI、canonical worktree/branch を再取得してください。 以前の target review の
SubAgent execution contract
Step 1: Step 2: Step 4: 重要: 各 SubAgent を起動したら、その SubAgent の作業完了を必ず待ってください。 部分ログ、途中メッセージ、tool call の終了だけを completion とみなしてはいけません。SubAgent の final structured result と、canonical task state の terminal Step 1 → Step 2 → Step 4 の依存関係を壊す並列実行は禁止です。 SubAgent 内からさらに不要な nested SubAgent を増やさないでください。今回必要なのは canonical impl-review-loop が定義する worker / test-runner / reviewer delegation です。 Fix delta指定 review comment の4項目を、current head の実コードに対して独立に再確認してください。まだ存在するものは以下の方針で修正してください。 P0-1: GH_CONFIG_DIR carrier
production
のみを
新規 credential broker、live-network CI、新規 authentication abstraction は作らないでください。 Allowed Paths 内の既存 owner-reaction fixture/test を使い、production-shaped real executor subprocess の fake
P1-1: silent unrelated flag acceptanceproduction / fixture の owner-reaction outer dispatch branch を確認し、
が指定された場合は明示的に reject してください。 値を argparse で受理してから command_text / render_params で黙って捨てる挙動を残さないでください。
に real generic flag validation framework のリファクタには広げないでください。 P1-2: unnecessary active-worktree couplingIssue #2688 の Outcome は owner-reaction decision を root/control-plane から canonical invocation 可能にすることです。
current implementation が、
という形で active Issue worktree を必須化しているなら、この余分な harness coupling を除去してください。 既存
という最小変更を優先してください。 active worktree が存在しない canonical-root 状態から production-shaped / fixture の exact dispatch が成立することを Allowed Paths 内の focused test で証明してください。 新規 worktree manager、new guard executable、独立 executor は作らないでください。 P2-1: stale policy documentation
という現在の実装と矛盾する説明が残っている場合、#2688 後の architecture を正確に説明する内容へ更新してください。 コメントだけの大規模整理は不要です。今回変更する owner reaction policy の周辺だけ同期してください。 Preserve existing good behavior以下は変更しないでください。
Allowed Pathslive Issue #2688 の Allowed Paths を正本としてください。 想定される変更範囲は以下だけです。
Allowed Paths 外の production file を変更して問題を「解決」しないでください。 Verificationimplementation-worker の自己テストを Step 2 の代用にしないでください。 まず focused regression として少なくとも以下を current head で確認してください。
そのうえで Issue #2688 の literal Verification Commands を independent full regression で既知の baseline failure が出る場合、単に「pre-existing」と宣言しないでください。必要なら同じ command を appropriate base/main evidence と比較し、test names / failure count / failure reason が一致することを確認し、今回の差分による新規 failure がないことを独立に示してください。 head が1 commitでも変わった場合、古い Step 2 evidence を再利用しないでください。 PR review loopStep 2 current-head verification が完了した後だけ、 reviewer には最低限、
を渡してください。
routine fix について人間承認を求めず、bounded loop 内で修正 → independent Verification → current-head re-review を繰り返してください。
actual Git conflict 以外の DRAFT / BLOCKED / UNSTABLE / artifact warning だけを理由に停止しないでください。canonical Completion condition以下が current head で成立するまで続行してください。 reviewer verdict = blockers = reviewed_head_sha = current PR head Issue #2688 independent Verification = PASS target review の P0-1 / P1-1 / P1-2 / P2-1 が全て current diff または evidence により解消済み Allowed Paths compliant current-head CI に今回由来の failure なし live mergeability が canonical routing 上、 成立したら canonical PR を merge しないでください。 PR の ready-for-review 化についても独自判断で先走らず、canonical skill の現在の route が明示的に要求する場合だけ従ってください。 最終報告には少なくとも、 Issue #2688 を構造化して含めてください。 途中の散文報告より canonical structured result と current-head evidence binding を優先してください。 このプロンプトでは特に、P1-2 を Issue 修正へ逃がさず、Allowed Paths 内の小さな runtime-policy 修正として閉じることと、古い APPROVE を再利用せず SubAgent の完了を待って current head を再検証することを強めています。 |
…2694 レビュー指摘に沿って修正する PR #2694 review fix_delta (comment #5753975780) の4項目を対応: - P0-1: `_sanitize_env()` の gh_config_dir_carrier_command_ids に `owner_reaction.decide`(production のみ)を追加し、通常の `gh auth login` stored credential を使う canonical Claude-GPT 環境でも認証できる ようにする。`owner_reaction.decide.fixture` は対象外のまま。 - P1-1: owner_reaction.decide / .fixture の forbidden-flag チェックに `--investigation-evidence-transport-path` を追加し、silent に無視され ていた未対応フラグを明示的に reject する。 - P1-2: owner_reaction.decide / .fixture を `ROOT_NO_WORKTREE_ALLOWED_COMMAND_IDS` / `_ROOT_NO_WORKTREE_POLICY_ INVARIANTS` に登録し、両 exact checker が `command_allows_root_no_ worktree()` を canonical source として使うようにする。read-only / local-only な command が不要に active issue worktree を必須化していた 過剰な harness coupling を解消。 - P2-1: skill_runtime_command_policy.py の #1975 由来コメント(policy 宣言のみ、exact parser/checker は追加しない、root-no-worktree 対象外) が #2688 以降の実装と矛盾していたため、現行 architecture に合わせて 更新。 各項目に focused regression test を追加(real skill_runtime_exec.py subprocess 経由)。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Summary
Issue #1975 で追加された
owner_reaction.decide/owner_reaction.decide.fixtureのcommand_registry.pyエントリは、これまで宣言のみでscripts/agent-guards/skill_runtime_exec.pyの実 dispatch に接続されていなかった(#1975 の明示的 Out of Scope)。本 PR は Issue #2688 の契約と OWNER anchor comment(https://github.com/squne121/loop-protocol/issues/2688#issuecomment-5749552225)の architecture 決定に従い、repair_action.apply/structural_repair_action.applyの既存 exact dispatch precedent(exact parser/checker 関数、execution_class 定数、first-hop script integrity/readback パターン)に倣って両 command_id をskill_runtime_exec.pyの exact dispatch へ配線する。scripts/agent-guards/skill_runtime_command_policy.py:owner_reaction.decide/owner_reaction.decide.fixture用の exact parser/checker(parse_exact_skill_runtime_owner_reaction_decide_command/is_exact_skill_runtime_owner_reaction_decide_executor_commandとその fixture sibling)を追加。14 / 16 トークンの固定長 shape、--owner-user-id・--preview-binding-file・(fixture のみ)--gh-fixture-fileの repo-relative path を issue 自身の artifact root に確認する。validate_registry_entry()を拡張し、command_registry.pyの当該 2 entry(Issue 実装: owner reaction 手順を決定論的 reaction reader/principal resolver/drift checker/mutation consumer として実装する #1975 由来、本 Issue の Allowed Paths 外の read-only design reference のため変更しない)がrequired_cwd/required_branch/allowed_write_rootsを宣言しない実際の形状に一致することを検証する分岐を追加(他の command_id の既存検証ロジックには影響しない)。scripts/agent-guards/skill_runtime_exec.py:--owner-user-id/--preview-binding-file/--gh-fixture-fileの outer flag を追加し、required/forbidden combination を exact に検証する(production は--gh-fixture-file禁止、fixture は必須)。owner_reaction.decide/owner_reaction.decide.fixtureそれぞれの command_text 構築 + exact parser 呼び出し、およびrender_command()へ渡すrender_params分岐を追加。owner_reaction_decision.pyに向ける専用分岐を追加(デフォルトのrun_refinement_preflight.pyではない、AC5)。owner_reaction_decision.py/command_registry.pyのowner_reaction.decide系エントリ(argv・placeholders・stdout_contract)は本 PR では一切変更していない(read-only design reference として扱う)。新規テスト(
.claude/skills/issue-refinement-loop/tests/):owner_reaction_dispatch_fixture.py: 実際の production ファイル(skill_runtime_exec.py/skill_runtime_command_policy.py/command_registry.py/owner_reaction_decision.py)を検証用スクラッチ git repo へ verbatim copy する共有 fixture builder(3 テストファイルが import)。production profile 用にghバイナリを fake する(GitHub 網羅は fake、それ以外は全て実サブプロセス)。test_owner_reaction_decide_dispatch.py: AC1/AC2/AC3/AC5/AC7/AC8 — 実skill_runtime_exec.pysubprocess 経由で production-shaped / fixture 両 profile がowner_reaction_decision.pyの実 CLI に到達しowner_reaction_decision_result/v1を返すこと、同一入力から同一選択結果を返すこと(AC2)、first-hop がrun_refinement_preflight.pyではないこと(AC5、意図的に fixture repo からそのファイルを除外)を検証。test_owner_reaction_decide_flag_validation.py: AC4 — 必須/禁止フラグの組み合わせを実 subprocess 境界から網羅的に検証(拒否ケース6件 + 各 profile の正常受理ケース各1件)。test_owner_reaction_decide_failure_boundary.py: AC9 — child の non-zero exit(reaction record 整合性検証失敗、--gh-fixture-file自体が invalid JSON、--preview-binding-file不在の3独立ケース)が outer executor によって false success に変換されないことを実 executor 境界から検証。Checks
rg -n "owner_reaction.decide" scripts/agent-guards/skill_runtime_exec.py— マッチ多数(AC1、dispatch wiring 存在確認)uv run pytest .claude/skills/issue-refinement-loop/tests/test_owner_reaction_decide_dispatch.py -q— 5 passed(AC1, AC2, AC3, AC5, AC7, AC8)uv run pytest .claude/skills/issue-refinement-loop/tests/test_owner_reaction_decide_flag_validation.py -q— 9 passed(AC4)uv run pytest .claude/skills/issue-refinement-loop/tests/test_owner_reaction_decision.py -q— 14 passed(AC6, AC10、既存 regression、無変更で PASS)uv run pytest .claude/skills/issue-refinement-loop/tests/test_owner_reaction_decide_failure_boundary.py -q— 3 passed(AC9)uv run pytest scripts/agent-guards/tests/test_skill_runtime_policy_commands.py -q— 41 passed(既存 policy 回帰なし確認)uv run pytest scripts/agent-guards/tests/ -q— 1650 passed, 17 failed(pre-existing:uv_version_mismatch/literal_remote_url_required/detached_worktree_path_requiredの17件は、本 PR の変更前 main でも同一失敗数・同一失敗テスト名で再現することをローカル環境で確認済み。ローカルuvがホストツールキャッシュ外に存在する環境固有の既知事象で、本 PR 由来の regression ではない)uv run pytest .claude/skills/issue-refinement-loop/tests/test_command_registry.py -q— 22 passed, 3 failed(同上の pre-existinguv_version_mismatch。TestAuthorityTransportPrivilegedExecutorRealSubprocessDispatchの3件で、owner_reaction とは無関係)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
(
skill_runtime_exec.py/skill_runtime_command_policy.pyは既存モジュール内部の dispatch 配線追加のみで、外部消費される新規 schema は導入していない。owner_reaction_decision_result/v1は Issue 実装: owner reaction 手順を決定論的 reaction reader/principal resolver/drift checker/mutation consumer として実装する #1975 で既に確立済みの既存 schema であり、本 PR ではキー集合・型を一切変更していない)Schema Consumer Inventory
N/A(
not_schema_changeのため。本 PR は既存 schema の到達可能性を実配線で成立させるのみで、schema 自体の定義・consumer 追加は行っていない)Safety Claim Matrix
scripts/agent-guards/skill_runtime_exec.pyとscripts/agent-guards/skill_runtime_command_policy.py(.claude/skills/配下ではないが privileged executor / transport の変更)を変更しているため safety-sensitive PR として扱う。owner_reaction.decide/owner_reaction.decide.fixtureはskill_runtime_exec.pyの exact dispatch(repair_action.apply等と同じ固定長 argv shape の exact parser)としてのみ配線され、汎用 generic command runner やscope_rollup.run型の独立 executor は新設していないrg -n "elif is_owner_reaction_decide_command|elif is_owner_reaction_decide_fixture_command" scripts/agent-guards/skill_runtime_exec.py— 固定 elif 分岐のみ。test_owner_reaction_decide_dispatch.pyの全5テストが実 subprocess 経由で PASSowner_reaction.decide(production)は--gh-fixture-fileを受理せず、owner_reaction.decide.fixtureのみが受理する(production から GitHub network boundary をバイパスできない)test_owner_reaction_decide_production_rejects_gh_fixture_filePASS(実 subprocess 経由で exit 2 + エラーメッセージ確認)owner_reaction_decision.pyであり、他の command_id のデフォルト対象run_refinement_preflight.pyにフォールバックしないtest_owner_reaction_decide_first_hop_targets_owner_reaction_decision_not_run_refinement_preflightPASS(fixture repo にrun_refinement_preflight.pyを意図的に配置せず、それでも実 dispatch が成功することを確認)owner_reaction_decision.py)の non-zero exit / malformed 結果は outer executor によって false success(status: selected等)に変換されないtest_owner_reaction_decide_failure_boundary.py全3テスト PASS(_dispatch_child_and_check_postconditions()がresult.returncodeを verbatim 伝播することを実 subprocess 境界から確認)command_registry.py/owner_reaction_decision.pyの argv・placeholders・stdout_contract(Issue #1975 由来)は本 PR で一切変更していないgit diffで両ファイルとも無変更(Allowed Paths 外)。test_owner_reaction_decision_py_argv_template_unchanged_by_this_issueが実ファイルから直接 REGISTRY を読み込み execution_class / stdout_contract を pinowner_reaction.decideの出力(selected_option_id)を既存 heavy mutation gate(_classify_heavy_mutation_gate()等)や downstream consumer(#2689)に接続する配線は追加していないrg -n "_classify_heavy_mutation_gate|selected_option_id" scripts/agent-guards/skill_runtime_exec.py—selected_option_idへの参照なし(本 executor は child stdout を透過するのみ)Runtime Verification Evidence(動作検証証跡、AC1〜AC10)
Runtime Verification Applicability:
immediate(Issue #2688 本文)。applicable_acs は AC1〜AC10(全 AC)。実行環境は GitHub network 通信なしで完結する(全テストが--gh-fixture-fileまたは production-shaped の実 subprocess のみで完結し、live GitHub API 呼び出しは行わない)。以下は.claude/worktrees/issue-2688-owner-reaction-decide-skill-runtime-exec(本 PR headd522b5a9bb2d6cb96d95feb6d70aa0ddf1ef7b1aの checkout)で再実行した実ログを引用する。AC1:
owner_reaction.decideとowner_reaction.decide.fixtureがscripts/agent-guards/skill_runtime_exec.pyの exact dispatch に接続されている。PASS2026-09-20T19:31:43ZLinux WSL2 6.18.33.2-microsoft-standard-WSL2 / Python 3.12.3 / uv 0.11.29 / pytest 9.0.30実行ログ(クリックで展開)
AC2: production-shaped profile と fixture profile が同一の owner-reaction dispatcher 実装を利用する。
PASS2026-09-20T19:31:43ZLinux WSL2 6.18.33.2-microsoft-standard-WSL2 / Python 3.12.3 / uv 0.11.29 / pytest 9.0.30実行ログ(クリックで展開、AC1 と同一 pytest 実行内の `test_production_and_fixture_share_same_dispatcher_and_selection`)
AC3: outer argv から
skill_runtime_exec.py→ exact command policy/parser →command_registry.render_command()→owner_reaction_decision.py→owner_reaction_decision_result/v1structured stdout の全鎖が real executor test で通る。PASS2026-09-20T19:31:43ZLinux WSL2 6.18.33.2-microsoft-standard-WSL2 / Python 3.12.3 / uv 0.11.29 / pytest 9.0.30実行ログ(クリックで展開、AC1 と同一 pytest 実行内の production/fixture 両 real subprocess テスト)
AC4: owner-user-id と preview-binding-file の各フラグ、および fixture 用 gh-fixture-file フラグの required/forbidden combination が exact に検証される。
PASS2026-09-20T19:31:48ZLinux WSL2 6.18.33.2-microsoft-standard-WSL2 / Python 3.12.3 / uv 0.11.29 / pytest 9.0.30実行ログ(クリックで展開)
AC5: executor の first-hop script integrity/readback 対象と、registry が render する実 first-hop script が
owner_reaction_decision.pyで一致する。PASS2026-09-20T19:31:43ZLinux WSL2 6.18.33.2-microsoft-standard-WSL2 / Python 3.12.3 / uv 0.11.29 / pytest 9.0.30実行ログ(クリックで展開、AC1 と同一 pytest 実行内の `test_owner_reaction_decide_first_hop_targets_owner_reaction_decision_not_run_refinement_preflight`)
AC6: 既存 registry entry(
owner_reaction.decide/owner_reaction.decide.fixture)の argv / placeholders / stdout_contract は変更しない。PASS2026-09-20T19:31:50ZLinux WSL2 6.18.33.2-microsoft-standard-WSL2 / Python 3.12.3 / uv 0.11.29 / pytest 9.0.30実行ログ(クリックで展開、既存 `test_owner_reaction_decision.py` の regression 実行。argv/placeholders/stdout_contract pin を含む)
AC7:
owner_reaction.decide.fixtureが実skill_runtime_exec.pysubprocess 経由で structured result を返す。PASS2026-09-20T19:31:43ZLinux WSL2 6.18.33.2-microsoft-standard-WSL2 / Python 3.12.3 / uv 0.11.29 / pytest 9.0.30実行ログ(クリックで展開、AC1 と同一 pytest 実行内の `test_owner_reaction_decide_fixture_real_subprocess_returns_structured_result`)
AC8: production-shaped dispatch と fixture dispatch の正常系を実 executor entrypoint から検証する(live GitHub API は不要で、fixture/fake/stub で閉じる)。
PASS2026-09-20T19:31:43ZLinux WSL2 6.18.33.2-microsoft-standard-WSL2 / Python 3.12.3 / uv 0.11.29 / pytest 9.0.30実行ログ(クリックで展開、AC1 と同一 pytest 実行内の production/fixture 両テスト)
AC9: child(
owner_reaction_decision.py)の non-zero exit または malformed structured result が outer executor によって false success に変換されないことを実 executor 境界から検証する。PASS2026-09-20T19:31:55ZLinux WSL2 6.18.33.2-microsoft-standard-WSL2 / Python 3.12.3 / uv 0.11.29 / pytest 9.0.30実行ログ(クリックで展開)
AC10: 既存
owner_reaction_decision.py/ command registry / skill runtime 関連の regression tests が PASS する。PASS2026-09-20T19:31:50ZLinux WSL2 6.18.33.2-microsoft-standard-WSL2 / Python 3.12.3 / uv 0.11.29 / pytest 9.0.30実行ログ(クリックで展開、AC6 と同一 pytest 実行。既存 `test_owner_reaction_decision.py` 全 14 テストが無変更で PASS)
Not controlled(Out of Scope、Issue #2688 契約どおり)
owner_reaction_decision.py自体の reaction semantics の再設計(Issue 実装: owner reaction 手順を決定論的 reaction reader/principal resolver/drift checker/mutation consumer として実装する #1975 で実装済み、本 PR では無変更)。owner_reaction.decideの実行結果(selected_option_id)を実際の mutation gate に接続する downstream consumer integration(別スコープ、実装: owner_reaction_decision.py の出力を既存 heavy mutation gate へ統合する(#1975 の Out of Scope) #2689)。scope_rollup.run型の新規独立 executor architecture の新設。command_registry.pyのowner_reaction.decide/owner_reaction.decide.fixtureエントリ定義自体の変更。Notes
scripts/agent-guards/skill_runtime_exec.py、scripts/agent-guards/skill_runtime_command_policy.py、.claude/skills/issue-refinement-loop/tests/(新規4ファイル:owner_reaction_dispatch_fixture.py、test_owner_reaction_decide_dispatch.py、test_owner_reaction_decide_flag_validation.py、test_owner_reaction_decide_failure_boundary.py)。immediate(Issue 実装: owner_reaction.decide の skill_runtime_exec.py generic dispatch 配線を行う(#1975 の Out of Scope) #2688 本文)。全 AC はuv run pytestにより network 非依存・認証不要で実行され、上記 Checks セクションの pytest 実行結果自体が証跡である(docs/dev/runtime-verification-policy.mdの SKIP 規約に該当する事象は発生していない:uvは利用可能で全 subprocess 起動が成功した)。normalized_status: missing_go(事前の issue-contract-review go コメントなし)だが、これは repo policy 上想定内(contract_snapshot は advisory telemetry であり blocking gate ではない、導入: AIエージェント運用をminimal harnessへ縮退し、過剰なcontrol-planeを廃止する #1860 Owner Decision)。live Issue contract を正本として実装した。scope_rollup.run型は不採用)。