Repository navigation
実装: web-researcher AGY→native fallback controlled live canary を追加する - #2169
Merged
squne121 merged 3 commits intoAug 14, 2026
Merged
Conversation
…2166) Issue #2157 が結論した native-stream-level evidence (count_direct_web_tool_events)を primary independent evidence として 再利用し、web-researcher の AGY→native Web fallback 分岐を 非マージブロッキングな controlled live canary lane として証明可能にする。 - scripts/agent-ops/run_web_researcher_fallback_canary_smoke.py(新規): invocation-private な PreToolUse deny hook(tempfile scoped、 .agents/hooks.json 等の repo-global/user-global 設定は一切変更しない)で AGY 失敗を注入し、11 個の evidence signal の strict conjunction (verification_route self-report 単独では不十分)+ 実際の causal ordering(co-presence だけでは不可)で PASS/FAIL/SKIP を判定する。 count_direct_web_tool_events / classify_claude_child_spawn_agent_id / classify_claude_child_completion は run_worktree_agent_runtime_smoke.py から import して再利用し、再実装しない。exit code は 0=PASS/1=FAIL/ 77=SKIP。 - scripts/agent-ops/tests/test_web_researcher_fallback_canary_smoke.py (新規): AC3(11 signal 個別欠落で FAIL、parametrized)、AC4(causal ordering の co-presence-but-out-of-order 検出)、AC5(exit code 契約 0/1/77、SKIP≠PASS)、AC2(invocation-private hook の hygiene・ .agents/hooks.json 非参照)を fixture ベースで検証する。 既存 run_agent_provider_route_smoke.py / run_worktree_agent_runtime_smoke.py は変更なし(fallback-disabled 既定挙動を維持)。本 canary は CI の required status check に追加していない(scheduled/明示手動実行のみ)。 AC9(live trial)は本リポジトリの実行環境で live AGY 資格情報が確認できな かったため deferred/SKIP として正直に記録する(PASS の捏造はしない)。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
9 tasks
Contributor
Preview URLPreview removed (PR #2169 closed). |
…理する (#2166) - AGY forced-failure injection を実行可能な substitute `agy` バイナリ (PATH/AGY_BIN override スコープ、tempdir + atexit で cleanup 保証) に整理し、 agy_permission_policy.py の AGY_DIRECT_TOOL_NAMES から確認した search_web/read_url_content を対象にする。 - PASS predicate (11 signal conjunction) / causal ordering (co-presence ではなく実際の順序を要求) / exit code contract (0/1/77) / retry policy (#2013 methodology reuse) を純粋関数として再構成し、AC3/AC4/AC5 の fixture テストを拡充した (34 tests pass)。 - per-trial evidence の companion schema (web_researcher_fallback_canary_smoke_trial_evidence/v1) を新設し、 既存 agent_provider_route_smoke_v1 スキーマは変更しない (AC8)。 pnpm typecheck/lint/build と gemini-cli-headless-delegation の test_model_routing.py はいずれも PASS 済み。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
…eb-researcher-fallback-canary
squne121
marked this pull request as ready for review
August 14, 2026 13:29
squne121
deleted the
worktree-issue-2166-web-researcher-fallback-canary
branch
August 14, 2026 13:45
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Issue #2157 が結論した native-stream-level evidence(
count_direct_web_tool_events)を primary independent evidence として再利用し、web-researcherの AGY→native Web fallback 分岐を非マージブロッキングな controlled live canary lane として証明可能にする。scripts/agent-ops/run_web_researcher_fallback_canary_smoke.py(新規)agyバイナリを配置しPATH/AGY_BINoverride でのみ到達可能。repo-global.agents/hooks.jsonやユーザーグローバル設定は一切変更しない。atexit+try/finallyで cleanup を保証)。対象ツール名search_web/read_url_contentは.claude/skills/gemini-cli-headless-delegation/scripts/agy_permission_policy.pyのAGY_DIRECT_TOOL_NAMESを実装時に確認して確定した。verification_route == native_webの self-report 単独では不十分と明示)。web_researcher_fallback_canary_smoke_trial_evidence/v1)として設計し、既存agent_provider_route_smoke/v1等の closed schema は widening しない。count_direct_web_tool_events/classify_claude_child_spawn_agent_id/classify_claude_child_completion等はrun_worktree_agent_runtime_smoke.pyから import して再利用(再実装しない)。scripts/agent-ops/tests/test_web_researcher_fallback_canary_smoke.py(新規)run_agent_provider_route_smoke.py/run_worktree_agent_runtime_smoke.pyは変更なし(fallback-disabled 既定挙動を維持)。本 PR は Issue #2166 を解決する(Closes #2166)。
Checks
pnpm typecheck: PASSpnpm lint: PASSpnpm test: PASS(1872 tests、tests/retro-live-verification.test.tsの 1 テストが並列実行時にタイムアウトしたが、単体再実行では 148/148 PASS を確認済み。本 PR の変更(Python-only)とは無関係な既知の timing flake)pnpm build: PASSuv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py: 24 passedruff check: All checks passedRuntime Verification Applicability
agyバイナリ自体は疎通したが(setup_check.py --provider agy --jsonはok: true)、実際の live multi-turn Claude Code 子セッション spawn を伴う E2E 実行は本セッションのリソース制約内で実施していない。デフォルトのmain()エントリポイントは preflight を実行した上で honest SKIP (exit 77) を返す設計にしており、PASS を捏造しない。live 1 trial 実行と証跡記録は本 PR のマージ後、scheduled/明示手動実行レーンで別途行う。Schema Change Applicability
web_researcher_fallback_canary_smoke/v1/web_researcher_fallback_canary_smoke_trial_evidence/v1)を追加するのみで、既存のschemas/*.jsonやagent_provider_route_smoke/v1等の既存 registered schema は一切変更・widening していない(git diff --stat origin/main -- scripts/agent-ops/route_artifact.schema.jsonは 0 件ヒット、AC8 参照)。Schema Consumer Inventory
N/A
reason: not_schema_change のため対象なし。
Safety Claim Matrix
N/A
reason: 変更パスは
scripts/agent-ops/run_web_researcher_fallback_canary_smoke.pyと対応する新規テストのみで、transport/permission/sandbox/auth/mcp/.claude/skills//.github/workflows/のいずれの safety-sensitive パスパターンにも該当しない。Notes
web_tool_call_countcounter=0 routing 契約矛盾解消、PR fix(web-researcher): fallback trigger の counter=0 routing 契約矛盾を解消する #2167)はマージ済み。scripts/agent-ops/run_web_researcher_fallback_canary_smoke.py(新規)、scripts/agent-ops/tests/test_web_researcher_fallback_canary_smoke.py(新規)のみ変更。run_worktree_agent_runtime_smoke.py/run_agent_provider_route_smoke.py/ 既存test_agent_provider_route_smoke.py/.claude/agents/**(実装: web-researcher fallback の counter=0 routing 契約矛盾を解消する #2164 所有領域)は変更していない。