Repository navigation
refactor: PR #2357由来のdead root-level AGY post-runtime override一式を削除する - #2372
Conversation
…#2368) PR #2365でSubAgent-local なAGY-first + native fallback設計がcanonicalになったことを受け、 root_entry_router.py の `_apply_agy_observed_failure_override()` / `resolve_agy_advisory_route()` / route定数 / `capability_preflight_result()` の AGY専用3パラメータを削除する。production caller(workflow_start_entry.py)は これらの引数を渡していないことを確認済み(rg + codebase-investigator調査)。 - root_entry_router.py: AGY post-runtime override一式と専用docstring/コメントを削除 - test_agy_advisory_fallback.py: 削除対象コード専用テストのため削除 - test_agy_override_removed.py: 削除完了を検証する新規pytest(AC1-AC7) - test_timeout_taxonomy_compat.py: AGY route専用のimport/path-setup/テストケースを除去 `capability_preflight_result()` 本体・返却契約(decision/checks/actor_capabilities/ reasons)は維持。既存 issue-refinement-loop / claude-gpt 回帰テスト122件PASS確認済み。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Preview URLPreview removed (PR #2372 closed). |
Verdict: APPROVEIndependently re-verified against live Issue #2368 contract (not relying on control-plane pre-verification alone). Scope / Allowed Paths
削除の完全性
Verification Commands(clean な detached worktree で独立再実行)
CI
Schema / Safety
Warnings(non-blocking)
verdict: APPROVE
reviewed_head_sha: "16a89bde8b7db5da82a22b0e8b18d95cee8de114"
blockers: []
warnings:
- "python-test-core check still IN_PROGRESS at review time (not in required-check set)"
- "PR is Draft with merge_state_status: BLOCKED (not a reviewer blocker per policy)"
- "Scope Collision (C1) with OPEN Issue #2322 on the same file, disclosed with OWNER-recommended merge-then-rebase ordering" |
敵対的レビュー判定REQUEST_CHANGES verdict: REQUEST_CHANGES
production_change: APPROVE
blocking_findings:
P0: 0
P1: 1
non_blocking_findings:
P2: 1
2026年8月28日時点のPRは、head [P1]
|
- 恒久 dead-code 監視テスト test_agy_override_removed.py を削除する (Issue #2368 改訂契約により pr_review_only の一回限り確認に変更されたため) - test_root_entry_router_workflow_capability.py に capability_preflight_result() の decision/checks/actor_capabilities/ reasons 透過転送を検証する汎用 sentinel テストを追加する (PR #2372 REQUEST_CHANGES P2 対応) Refs #2368
Verdict: APPROVE(fix_delta 反映後の再レビュー)OWNER の REQUEST_CHANGES(https://github.com/squne121/loop-protocol/pull/2372#issuecomment-5452477306)の5項目チェックリストを独立検証し、全て解消を確認しました。
AC1〜AC6(pr_review_only、独立再検証)
AC7(回帰、fresh worktree で head 一致確認の上再実行)
Allowed Paths
CI
verdict: APPROVE
reviewed_head_sha: "ac7c29b46e9f815b1cbb7fa285ecdac81dbaa12c"
blockers: []
warnings:
- "visual-impact-policy-trusted (non-required check) remains FAILURE — pre-existing unrelated CI infra flake (component VRT negative-control), not in this PR's scope" |
Verdict: APPROVE(update_branch 後の再レビュー)
verdict: APPROVE
reviewed_head_sha: "468274bc3da52e2f560d4dfc80a1b2a438abac3c"
blockers: []
warnings:
- "mergeStateStatus is BLOCKED (not a conflict); PR remains Draft. Per policy #1860/#1873 this is not merge-blocking at reviewer level." |
Summary
_apply_agy_observed_failure_override()/resolve_agy_advisory_route()/ route 定数 /capability_preflight_result()の AGY 専用 3 パラメータ)を dead code としてroot_entry_router.pyから削除する。workflow_start_entry.py)がこれら AGY 専用引数を一切渡していないことを rg 検索と codebase-investigator 調査で確認した上での削除(削除対象は現行 production 経路から到達不能な dead architecture)。test_agy_advisory_fallback.pyを削除。test_timeout_taxonomy_compat.pyから AGY route 専用の import / path-setup / テストケースを除去。test_root_entry_router_workflow_capability.pyに、capability_preflight_result()が producer のdecision/checks/actor_capabilities/reasonsを変更せず透過的に返すことを検証する、AGY 固有の名前を一切使わない汎用 sentinel 正のテストを追加。capability_preflight_result()本体・返却契約(decision/checks/actor_capabilities/reasons)は変更しない。Checks
uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_loop_handoff_contract.py .claude/skills/issue-refinement-loop/scripts/tests/test_root_entry_router_workflow_capability.py scripts/claude-gpt/tests/test_timeout_taxonomy_compat.py -q— 45 passed(AC7)ruff check(変更ファイル 4 件:root_entry_router.py/test_agy_advisory_fallback.py削除 /test_root_entry_router_workflow_capability.py/test_timeout_taxonomy_compat.py)— All checks passedcapability_preflight_result定義の維持。preflight-scope: pr_review_onlyの一回限り確認):rg -c/test -f/grep -nを個別実行し、Issue 本文記載の Verification Commands の期待どおりの結果(AC1〜AC5 は 0 件不在、AC6 は定義行を検出)であることを確認Schema Change Applicability
agy_observed_failure_class/agy_required/agy_fallback_allowed)は production caller から一度も渡されていない内部関数シグネチャのみの変更であり、capability_preflight_result()の返却契約(decision/checks/actor_capabilities/reasons)や外部消費される schema は変更しない。Schema Consumer Inventory
N/A
reason: schema を変更しないため inventory は不要
Safety Claim Matrix
workflow_start_entry.py)から到達不能な dead code であり、削除により実行中の capability preflight 挙動に回帰を生じさせないworkflow_start_entry.pyに AGY 専用引数 (agy_) の使用箇所が 0 件であることを確認、既存回帰テスト 45 件 PASScapability_preflight_result()の汎用返却契約(decision/checks/actor_capabilities/reasons)は本 PR で変更されないtest_loop_handoff_contract.py/test_root_entry_router_workflow_capability.pyに加え、新規test_capability_preflight_result_forwards_generic_result_fields(AGY 固有名なしの sentinel 正のテスト)が透過転送契約を PASS で検証preflight-scope: pr_review_only〉で足りる)test_agy_override_removed.pyを削除し、AC1〜AC6 をpreflight-scope: pr_review_onlyとして PR レビュー時に一回限り確認する契約へ改訂(OWNER REQUEST_CHANGES 反映)Notes
root_entry_router.pyの Allowed Paths が既存 OPEN Issue 実装: capability_preflight_result() の nested timeout 構造を単一 deadline 共有方式へ改善する #2322(nested timeout / deadline 共有化)と重複するが、OWNER 推奨順序により本 PR(小さい削除)を先にマージし、実装: capability_preflight_result() の nested timeout 構造を単一 deadline 共有方式へ改善する #2322 側で rebase する。test_agy_override_removed.pyの恒久テストファイル化が Issue の「一回限り確認」方針と自己矛盾、P2:actor_capabilities透過転送を検証する正のテスト不足)を反映し、Issue 実装: refactor: PR #2357由来のdead root-level AGY post-runtime override一式を削除する #2368 契約を改訂(詳細: https://github.com/squne121/loop-protocol/pull/2372#issuecomment-5452477306)。本 PR は改訂契約に従いtest_agy_override_removed.pyを削除し、test_root_entry_router_workflow_capability.pyに汎用 sentinel 正のテストを追加した。