Repository navigation
Conversation
…縮小する (#2161 1/n) native Codex CLI retirement (#2161 Phase 3) の第一段として、 scripts/check_claude_codex_agent_parity.py から Codex agent TOML との cross-provider 比較ロジック(extract_codex_facts / compare_parity / SCHEMA_PARITY_001 / PERMISSION_BOUNDARY_001 / NESTED_DELEGATION_001 等)を 除去し、.claude/agents/*.md 単体の構造検証(frontmatter 整合性・ mutation_class 矛盾検出・asset_classification 完全性/pairing・重複名検出) のみを行う checker へ縮小した。expected-runtime-contract.json から .codex/agents/*.toml 系フィールド(path・default_permissions・ model_reasoning_effort・runtime_dependency_status・parity_mode・ permission_exclusion・spark-* codex_only エントリ)を除去し provider-neutral な形へ移行。scripts/agent_ops_inventory.py の Codex 専用 classification エントリ(.codex/ target_prefix・ CoverageTarget(".codex/agents/", ...)・codex_agent_definition/ codex_config 分岐)を除去した。 tests/test_agent_parity.py は縮小後の checker API に合わせて全面書き換え、 tests/test_agent_portability_contract.py・tests/test_agent_ops_inventory.py・ tests/test_issue_refinement_ops_review.py は Codex 専用アサーションのみ 除去した。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
…2/n) - `.codex/**` を無条件削除(AC1)。`scripts/check_codex_agent_config.py` / `scripts/check-codex-agents.mjs` を削除(AC2) - `.github/workflows/ci.yml` から `codex-execpolicy` job を削除し、 非 Codex な CI_TEST_PERFORMANCE_ASSESSMENT_V2 producer と e2e-performance-benchmark-assessment-gate steps を python-test-core へ 移設。`python-test` aggregate の `needs` を `[python-test-core]` に更新し `scripts/ci/evaluate_python_test_aggregate.py` から `--codex-result` を除去 (AC3/AC12/AC14/AC15) - `scripts/ci/verify_python_test_lane.py` / `scripts/ci/verify_ci_check_conclusions.py` から codex-execpolicy job 固有の invariant/sentinel 検証を除去(AC11) - `tests/fixtures/codex-agent-config/` を `tests/fixtures/agent-config/` へ migrate し、`.codex/agents/*.toml` 系フィールドを含まない provider-neutral な形にした上で旧ディレクトリを削除(AC4) - SUBAGENT_LAUNCH_LEDGER_V1 DELETE_CHAIN(唯一の live producer だった check-codex-agents.mjs 削除に伴い、C writer・validator・fixture・ scripts/agent-guards/skill_runtime_exec.py 内の ledger 専用 typed exact-path special case を撤去) - 唯一の wiring 先だった `.codex/hooks.json` PreToolUse matcher が消えた ことで孤立した `scripts/agent-guards/codex_apply_patch_adapter.py` を削除 し、`scripts/check_hook_boundaries.py` の Codex hook config 検証・ `scripts/session-recording/validate-codex-hooks.mjs` を削除 - `tests/codex/**` は個別に内容確認し、native Codex CLI 資産に直接依存する ファイルのみ削除、provider-neutral なロジック(cleanup_exec・scope_rollup・ worktree_bootstrap 等)を検証するファイルは維持 - `scripts/agent-guards/tests/test_rtk_*_policy.py` / `test_controlled_git_change_exec.py` から実 Codex CLI バイナリを呼ぶ execpolicy smoke のみ除去し、provider-neutral な executor authorization テストは維持 Co-Authored-By: Claude Sonnet 5 <[email protected]>
… から撤去する (#2161 3/n) - `scripts/agent-ops/run_worktree_agent_runtime_smoke.py` から native Codex CLI の `--runtime codex` 選択肢・`codex exec` subprocess 起動 (`run_structured_codex`)・`~/.codex/sessions/**/rollout-*.jsonl` scan (`extract_codex_child_session_id` 等)・`classify_codex_events`・ `preflight_codex_flags` を削除し、claude(native)/claude-gpt lane の挙動・ 引数は変更しない。`preflight_requested_mutation_route()` の canonical route 参照先を削除済みの `.codex/agents/*.toml` から `.claude/agents/*.md` へ修正(実呼び出し元はゼロだが latent bug だったため) - `scripts/agent-ops/run_agent_provider_route_smoke.py` から `codex_cli` runtime route の enumeration・dispatch ロジックを削除し、`claude_code` route のみ残す(Issue #1886 artifact schema 自体は変更しない) - 対応する `scripts/agent-ops/tests/test_run_worktree_agent_runtime_smoke*.py`・ `test_agent_provider_route_smoke.py`・`test_route_smoke_deadline_and_poll.py` から Codex-only test case のみ削除し、claude-native lane のテストは維持 (AC18 の runtime verification 対象として使用する) - `.codex/**` 撤去に伴い孤立した `scripts/agent-guards/check_scope_rollup_runtime.py`・ `scripts/check_impl_review_loop_codex_dispatch.py`・ `scripts/verify_codex_agent_model_refresh_evidence.py` と対応する test を削除 Co-Authored-By: Claude Sonnet 5 <[email protected]>
producer/consumer inventory (--hidden 拡張スイープ) で発見した codex-execpolicy CLASSIFICATION_MAP/REQUIRED_CHECKS 残留、issue-refinement-loop / post-merge-cleanup 系の .codex/agents/*.toml DELETE_CHAIN orphan、ci-test-performance / hooks の dead pattern entry、docs の stale setup 手順を除去し、AC18 runtime-verification wrapper を追加する。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Mechanical auto-merge; only overlapping file was .claude/skills/worktree-agent-runtime-smoke/SKILL.md, resolved without conflict markers (additive changes in different sections).
Preview URLPreview removed (PR #2409 closed). |
…ty checker (#2161 fix_delta) adversarial review iteration-1 flagged two Ruff blockers that broke python-test-core CI: - F821 undefined name `check_agent_is_read_only_advisory` in run_root_review_pipeline.py:1620. The prior orphan DELETE_CHAIN removed the function but left its caller `_cmd_check_agent_contract()` and the `check-agent-contract` argparse subcommand wired to it. Both are now removed as the direct mechanical consequence of the function's removal (no other production caller; sole target `.codex/agents/*.toml` already deleted earlier in this PR). - E501 line too long in check_claude_codex_agent_parity.py:669. Wrapped the `claude_permission_mode` guard condition across multiple lines. Verified: `uv run ruff check .claude/scripts scripts schemas .claude/skills` (the exact CI python-test-core scope) is clean; AC1-AC18 from the live Issue #2161 body all pass (pnpm typecheck/lint/test/build, scripts/claude-gpt/test_*.py, scripts/ci/tests/*, the full issue-refinement-loop test suite, and the AC18 runtime verification smoke).
fix_delta 適用完了(adversarial review iteration-1 REQUEST_CHANGES 対応)new head: 修正内容
検証結果
スコープはブロッカー2件とその直接的な機械的帰結(dangling caller/subparser の削除)のみに限定し、それ以外の拡張は行っていません。 |
#2161 fix_delta 2/n) - docs/dev/agent-skill-boundaries.md: reword the Manual Spark Agents heading to raise its Japanese-character density above the PR Body Japanese Check threshold (0.339, was 0.088). - artifacts/claude-code-spawn-observability-research/code-analysis.md: update run_agent_provider_route_smoke.py:<line> citations that drifted by -1 after this PR's native codex_cli route removal shifted every line in the failure ladder. - artifacts/claude-code-spawn-observability-research/tests/_research_contract_support.py: same -1 correction to PRODUCTION_FAILURE_LADDER, the fixture that independently hardcodes the same citations used to slice the production source in tests. - artifacts/claude-code-spawn-observability-research/retry-policy-assessment.md: add an Issue #2161 update note recording that the codex_cli-specific spawn_not_observed bounded-retry branch this assessment originally evaluated was retired; the keep_excluded verdict is unaffected. - artifacts/claude-code-spawn-observability-research/tests/test_retry_policy_assessment_contract.py: update the predicate-shape assertion to match the current, runtime-independent _is_transient_infrastructure_candidate() body instead of asserting the retired codex_cli-conditional literal.
fix_delta iteration 2(両 CI failure をローカル再現後に修正・head
|
CI check-japanese.yml の whole-file scan が docs/dev/directory-structure.md の5見出し(Top Level 等の英語のみ見出し)と docs/dev/workflow.md の Multi-Agent V2 rollback 見出し(前 commit で日本語密度が閾値未満に低下)を 検出したため、各見出しに日本語の補足を付与して閾値 0.1 を回復する。 本文の意味・構造は変更しない。
|
fix_delta iteration 3: PR Body Japanese Check の残り失敗ファイルを修正した (commit ffa4e1b)。 whole-file Japanese-ratio scan(
このPRで変更された全 |
結論現状は 特に upstream の ただし、merge 前に直すべき P1 が2件あります。どちらも新しい security harness を追加する話ではありません。むしろ dead capability / dead harness をさらに削って単純化する方向です。 P1 — native Codex CLI の executable capability がまだ残っている#2161 の Outcome はかなり明確で、native Codex CLI の executable consumer / Codex CLI subprocess execution を repository から消すことです。さらに #2161 は parent #2154 の最後の closure child です。 ところが PR 自身が negative reference として残している
には、現在も
という native Codex CLI を実行するための backend adapter が生きています。 これは単なる PR 本文は「production caller は現状 deterministic のみなので follow-up 候補」としていますが、そこがむしろ敵対レビュー上の問題です。 caller がゼロなら、今消すコストが最小です。 さらに AC5 の VC は、
しか検索していないため、 推奨修正最小でいいです。
別 Issue に送るより、この PR で削ることを推します。「native Codex CLI retirement 完了」として parent を閉じるなら、ここまで消すべきです。 P1 —
|
…broken requested-mutation-route preflight OWNER adversarial review (issuecomment-5465797624) on Issue #2161's native Codex CLI retirement found two residual/broken mechanisms: - reviewer_transport.py still had a live "codex" backend capable of building `codex exec resume <session_id>` argv, evading AC5's substring grep (Outcome requires native_codex_cli.disposition=retire, compatibility_preservation=not_required). Removed "codex" from _KNOWN_BACKENDS and the build_backend_command() codex branch; no replacement adapter added. Updated the one dedicated codex-backend test to assert rejection instead of command construction, and dropped "codex" from a generic multi-backend retry-matrix test parametrization list. - run_worktree_agent_runtime_smoke.py's preflight_requested_mutation_route() mechanism (CLI flags --requested-mutation-route / --require-transaction-entrypoint-preflight) became permanently broken after this PR's earlier migration from the deleted native Codex CLI agent TOML (which declared runtime_followup_route:) to .claude/agents/*.md (which mostly lacks that declaration) -- it now always returns declared_route_unavailable for any agent besides web-researcher. Confirmed zero live callers and zero dedicated tests; deleted the function, its CLI flags, call sites, and the now-unused _RUNTIME_FOLLOWUP_ROUTE_RE / _TRANSACTION_ENTRYPOINTS constants rather than repairing it, per OWNER instruction. No downstream schema consumer of the removed receipt fields was found. All AC1-AC18 verification commands from the live Issue #2161 body still pass, including AC18's runtime verification (364 passed, 0 skipped, 0 failed). Full scripts/agent-ops test suite (286) and the issue-refinement-loop skill's reviewer_transport-related tests pass. Note: .claude/skills/issue-refinement-loop/scripts/reviewer_transport.py and its two touched test files are not explicitly enumerated in Issue #2161's current Allowed Paths list; this change is scoped narrowly to the codex-backend removal directly required by the Issue's own Outcome and flagged for Scope Delta reconciliation. Co-Authored-By: Claude Sonnet 5 <[email protected]>
…overy in parity checker Claude Code recursively scans .claude/agents/** (subdirectories included, name: uniqueness required across the whole subtree per https://code.claude.com/docs/en/sub-agents), but check_claude_codex_agent_parity.py used a non-recursive glob("*.md") for asset-classification discovery and duplicate agent-name detection, silently skipping any nested .claude/agents/<subdir>/foo.md. Switched both check_asset_classification_complete() and check_duplicate_agent_names() to rglob("*.md"), and made the discovered/reported path relative to claude_agent_dir (not just the bare filename) so nested files are correctly attributed to their subdirectory instead of colliding with a same-named top-level file. Added a regression test exercising a nested .claude/agents/subdir/foo.md file for both discovery and duplicate detection. AC13's VC (scripts/check_claude_codex_agent_parity.py exit 0) and the full tests/test_agent_parity.py suite (34 tests) still pass against the real repo. Note: P2-2 (issue-reviewer.md "read-only" wording) from the fix_delta request was NOT applied -- .claude/agents/** is explicitly listed as RETAIN in Issue #2161's asset inventory, and editing it hits the Issue's own Stop Condition ("`.claude/agents/**` ... の変更が必要と 判明した場合(RETAIN 対象への波及のため)"). Reported as a blocker instead of guessing past an explicit Stop Condition. Co-Authored-By: Claude Sonnet 5 <[email protected]>
fix_delta iteration 4 対応(OWNER adversarial review #2409 (comment) への対応)head: P1-1(必須):
|
…2412) PR #2409 merged (8675869) and removed .codex/hooks.json / .codex/hooks/session-recording-composite.mjs, leaving scripts/session-recording/codex-hook-adapter.mjs as an orphaned native Codex CLI runtime asset with production_inbound_producer_count == 0 (verified via fresh-HEAD git grep inventory). DELETE_CHAIN: - scripts/session-recording/codex-hook-adapter.mjs (adapter) - tests/hooks/codex-harness-advisory-boundary.test.ts - tests/hooks/codex-harness-advisory-recorder.test.ts - tests/hooks/codex-harness-workflow-gates.test.ts - tests/hooks/codex-harness-advisory-fail-open.test.ts (discovered mid-implementation: sole consumer of codex-harness-advisory-recorder's exported `invoke` helper, which spawns the adapter directly -- deleting the recorder test alone breaks this file's import and fails pnpm test) - tests/session_recording/codex/test_hook_adapter.py - tests/session_recording/codex/test_initial_branch_create_lane.py - tests/session_recording/codex/test_external_manifest_publish.py Mechanical cleanup of stale references: - scripts/agent-guards/tests/test_git_mutation_command_policy.py: removed the adapter direct-reference guard assertion that read the now-deleted source file. - .github/workflows/ci.yml: removed the 3 dead pytest steps, dropped the 3 deleted test paths from collect-only/pytest_args/session-recording prefix classification, and reworded a comment to stop referencing the deleted filename. - .github/ci/python-test-plan.json: removed the secondary_coverage entry for the 3 deleted test paths. Runtime verification: not_applicable (static cleanup + tracked-file inventory only; no native Codex runtime session to exercise). Closes #2412
) * feat: retire orphaned codex-hook-adapter.mjs and adapter-only tests (#2412) PR #2409 merged (8675869) and removed .codex/hooks.json / .codex/hooks/session-recording-composite.mjs, leaving scripts/session-recording/codex-hook-adapter.mjs as an orphaned native Codex CLI runtime asset with production_inbound_producer_count == 0 (verified via fresh-HEAD git grep inventory). DELETE_CHAIN: - scripts/session-recording/codex-hook-adapter.mjs (adapter) - tests/hooks/codex-harness-advisory-boundary.test.ts - tests/hooks/codex-harness-advisory-recorder.test.ts - tests/hooks/codex-harness-workflow-gates.test.ts - tests/hooks/codex-harness-advisory-fail-open.test.ts (discovered mid-implementation: sole consumer of codex-harness-advisory-recorder's exported `invoke` helper, which spawns the adapter directly -- deleting the recorder test alone breaks this file's import and fails pnpm test) - tests/session_recording/codex/test_hook_adapter.py - tests/session_recording/codex/test_initial_branch_create_lane.py - tests/session_recording/codex/test_external_manifest_publish.py Mechanical cleanup of stale references: - scripts/agent-guards/tests/test_git_mutation_command_policy.py: removed the adapter direct-reference guard assertion that read the now-deleted source file. - .github/workflows/ci.yml: removed the 3 dead pytest steps, dropped the 3 deleted test paths from collect-only/pytest_args/session-recording prefix classification, and reworded a comment to stop referencing the deleted filename. - .github/ci/python-test-plan.json: removed the secondary_coverage entry for the 3 deleted test paths. Runtime verification: not_applicable (static cleanup + tracked-file inventory only; no native Codex runtime session to exercise). Closes #2412 * fix: remove retired codex_hook_adapter_pretooluse authorization residue (#2412) OWNER REQUEST_CHANGES review on PR #2428 (#2428 (comment)) found that scripts/agent-guards/git_mutation_command_policy.py still authorized `boundary_layer=codex_hook_adapter_pretooluse` -- a live caller identity for the now-deleted native Codex CLI hook adapter -- in the remote-write authorization gate used by execute_existing_branch_update_transaction and execute_initial_branch_create_transaction. - _AUTHORIZED_EXECUTION_BOUNDARY_LAYERS narrows to frozenset({"worktree_scope_guard_denied"}); no caller in the repo passes codex_hook_adapter_pretooluse anymore (verified via git grep). - Add a focused regression test asserting --boundary-layer codex_hook_adapter_pretooluse is now rejected with execution_not_authorized_for_boundary_layer, same as any other unknown caller. - docs/dev/hook-boundaries.md's "Codex advisory hook allowlist" section historicized to match docs/dev/session-recording-policy.md's existing historical framing for the same retired architecture -- it previously described the passive recorder as currently active, which could prompt a future agent to reintroduce the retired architecture. Closes #2412 --------- Co-authored-by: Test <[email protected]>
Summary
.codex/**、Codex CLI subprocess 実行、Codex-specific parity/CI/checker)を repository から段階的に撤去する(Issue 実装: retire Codex CLI assets and documentation(Phase 3, Child 3 of #2154) #2161、parent 導入: Codex CLI 実行系を廃止し Claude Code dual-subscription runtime へ移行する #2154 Phase 3 Child 3)。132b08c257d6add00c51ff660761cb6e6c90bf53(main)。実装4コミット(1/n〜4/n)+ fix_delta 4回(本文下部「fix_delta iteration 4」節参照)+ main追随マージ複数回。現在158 files changed, +1817/-19146 lines(初期実装時点の76削除・2新規・残り修正に、fix_delta分の追加変更が加わったもの)。native_codex_cli.disposition: retire、compatibility_preservation: not_required(OWNER Scope Delta 確定事項)。scripts/claude-gpt/**、.claude/agents/**、.claude/settings.json、既存 claude-native/claude-gpt 挙動、provider-neutral runtime/agent authority は無傷(AC10 で確認済み)。Implementation Order(実装順序)
scripts/check_claude_codex_agent_parity.pyを 1415→約500行の provider-neutral.claude/agents/*.md-only structural checker へ縮小(AgentParityFacts.nested_delegation_blocked等の provider-neutral 機能は保持)。tests/fixtures/codex-agent-config/→tests/fixtures/agent-config/へ migrate。.github/ci/python-test-plan.json、scripts/ci/*.py、.github/workflows/ci.yml)、hook boundary checker、agent_ops_inventory を provider-neutral 化。check-codex-agents.mjs、check_codex_agent_config.py、scripts/session-recording/validate-codex-hooks.mjs、codex_execpolicy_matrix.py、SubAgent launch ledger DELETE_CHAIN 一式、run_worktree_agent_runtime_smoke.py/run_agent_provider_route_smoke.pyの Codex lane を削除。.codex/**ディレクトリ全体削除。--hidden拡張スイープ(後述)で発見した.claude/**(hook/skill/hidden dir)配下の残存参照・orphan DELETE_CHAIN・stale artifact パスを一掃(4 コミット目)。Scope-rollup / Runtime-smoke Codex lane 決定(OWNER Scope Delta 確定事項)
run_worktree_agent_runtime_smoke.py:codex_runtime_lane: delete、codex_session_scanning: delete(~/.codex/sessions/**/rollout-*.jsonlscan 撤去)、replacement_codex_scanner: do_not_create。--runtime選択肢は["claude"]のみ。claude-native / claude-gpt lane(引数・worktree isolation・timeout/process cleanup・postcondition verification・Herdr isolation)は無傷。run_agent_provider_route_smoke.py:REQUIRED_ROUTESを 6→3(codex_cliroute 除去)。claude_coderoute は無傷、Issue 実装: codebase-investigator / web-researcher の delegation request で AGY provider をメインルートにする #1886 artifact schema は変更なし。preflight_requested_mutation_route()が stale.codex/agents/*.tomlを参照していた(live caller 0件、regression ではなく既存バグ)。初期実装時点では.claude/agents/*.mdのruntime_followup_route:規約読み取りへ修正したが、この修正後も大半の.claude/agents/*.mdが同規約を宣言せず実質的に機能しないままだったため、下記「fix_delta iteration 4」節の P1-2 で機構自体を完全削除した(修復ではなく削除、OWNER 明示指示)。Launch Ledger DELETE_CHAIN(OWNER Scope Delta 確定事項)
SUBAGENT_LAUNCH_LEDGER_V1(artifacts/codex/subagent-launch-ledger.json)の唯一の live producer がscripts/check-codex-agents.mjs(本 Issue の削除対象そのもの)であり、他の非 Codex producer/consumer が存在しないことを証拠付きで確認済み(#2154 由来の Scope Delta)。以下を DELETE_CHAIN として同時削除:scripts/subagent-launch-ledger-writer.c(C writer 本体)scripts/check_subagent_launch_ledger.py(validator)tests/test_subagent_launch_ledger_writer.py/tests/test_subagent_launch_ledger.py(regression test)tests/fixtures/subagent-ledger/**(専用 fixture)scripts/agent-guards/tests/test_skill_runtime_exec_subagent_ledger.py(全12テストケースが orphan 化することを確認済み)scripts/agent-guards/skill_runtime_exec.py(4200行、125関数)はファイル全体を保持し、_LEDGER_STABLE_EXACT_REL等 ledger 専用の typed exact-path special case・関連 helper 関数のみを削除した(provider-neutral な shared guard ロジックの大半は無傷)。Provider-neutral Authority への移行(要約、Provider-neutral Authority Migration)
check_claude_codex_agent_parity.py: cross-provider 比較ロジックを全撤去し、.claude/agents/*.mdのみを検証する structural checker へ縮小。resolve_mutation_class()/extract_claude_facts()(nested delegation 3値判定含む)/check_asset_classification_complete/pairing()/check_duplicate_agent_names()は provider-neutral 機能として保持。--strictは互換性のため no-op で残置。tests/fixtures/agent-config/expected-runtime-contract.json(新設):.codex固有フィールドと spark-* エントリを除去した provider-neutral fixture。CI Topology 変更
codex-execpolicyjob を.github/workflows/ci.ymlから削除。内部の non-Codex step 群(Generate CI_TEST_PERFORMANCE_ASSESSMENT_V2 artifact、e2e-performance-benchmark-assessment-gatesteps)はpython-test-corejob へ移設(AC12/AC14 で存在確認)。python-testaggregate job のneedsを[python-test-core, codex-execpolicy]→[python-test-core]へ更新。.github/ci/python-test-plan.json:secondary_coverage.dedicated_lanes[]からcodex-execpolicyエントリを除去。tests/codex/test_local_main_branch_guard.pyは dedicated lane を持たない通常のpython-test-coretarget として実行される(AC11 でverify_python_test_lane.pyexit 0 確認)。scripts/ci/evaluate_python_test_aggregate.py:--codex-result引数とcodex_result判定ロジックを除去(AC15 確認)。scripts/ci/codex_execpolicy_matrix.py(job 実装本体)とscripts/ci/tests/test_codex_execpolicy_matrix.pyを削除。.claude/skills/pr-review-judge/scripts/ci_verdict_summary_v2.py:CLASSIFICATION_MAP/REQUIRED_CHECKSから("ci", "codex-execpolicy")エントリを除去(未除去のまま job のみ削除されていた場合、ci-verdict-summaryが永続的にno_required_evidenceになる potential bug を本 PR で修正)。対応するtests/**(67 tests)も更新済み。tests/codex/** の個別判定(AC17 evidence)
Allowed Paths の指示に従い、
.codex/@openai/codex/check-codexへの直接参照の有無だけでなく、テスト内容を個別確認した。削除対象 DELETE(native Codex CLI 依存、8 files):
test_ci_test_performance_advisory.py(tests/codex 配下、hooks 配下の同名ファイルとは別).codex/agents/pattern 存在検証を含むtest_codex_hook_surface_guard.py.codex/hooks.jsonの structural validation を検証test_codex_permission_profile_config.py.codex/config.tomlの permission profile を検証test_execpolicy_matrix.pycodex_execpolicy_matrix.py(削除対象の job 実装本体)専用 regression testtest_fixture_repo_artifact_exclusion.pytest_root_temporary_residue_advisory.py.codex/root residue advisory を検証test_scope_rollup_runner_agent_config.pyscripts/agent-guards/check_scope_rollup_runtime.py(唯一の consumer として同時削除)の Codex agent config 経路を検証test_web_research_domain_allowlist.pyMODIFY(provider-neutral ロジック、1 file):
test_local_main_branch_guard.py: guard 本体は provider-neutral(check_local_main_branch_state.py)だが、Codex-only な dedicated-lane isolation 前提のテストケースのみ調整。guard 検証ロジック自体は無傷。RETAIN(provider-neutral ロジック、6 files):
test_cleanup_exec_branch_only.py(cleanup_exec 認可境界、provider 非依存)test_run_scope_rollup_preflight.py/test_scope_rollup_graphql_pagination_v3.py/test_scope_rollup_run_exact_executor.py(scope-rollup 実行ロジック、Codex 非依存)test_worktree_bootstrap_command_policy.py(worktree bootstrap policy、provider 非依存)同様に
tests/hooks/codex-*.test.tsは 4 files のうちcodex-harness-advisory-allowlist.test.ts/codex-scope-rollup-capture.test.tsを削除(.codex/hooks/session-recording-composite.mjs直接起動に依存)、codex-harness-workflow-gates.test.tsを調整、codex-harness-advisory-boundary/fail-open/recorder.test.ts3 files は provider-neutral advisory recorder ロジックとして RETAIN。参照解消・Negative Reference 分類(4 コミット目、
--hidden拡張スイープで発見)AC5 の VC(
rg -q -e "\.codex/" ... .)は ripgrep のデフォルト挙動により dot-directory(.claude/、.github/等)を走査しない ため、--hiddenフラグ付きの補助スイープを別途実施し、AC5 の真の意図(repository 全体で native Codex CLI executable consumer が消えている状態)を満たすことを確認した。修正(stale reference / orphan DELETE_CHAIN、mechanical な direct consequence として対応):
scripts/check_post_merge_cleanup_boundary.py/tests/test_post_merge_cleanup_boundary.py: 削除済み.codex/agents/post-merge-cleanup-worker.tomlを parse するcheck_codex_skill_surface()/check_codex_no_stale_canonical()(CLI/CI dispatch caller 0件)と対応する4テストを orphan DELETE_CHAIN として除去。_DEFAULT_ARTIFACT_PATHのcodex-structured→claude-structured(runtime-smoke harness の実際の artifact 命名規約変更に追随、genuine bug fix)。.claude/skills/issue-refinement-loop/:run_root_review_pipeline.pyの TOML-only 静的 checkercheck_agent_is_read_only_advisory()(Issue 実装: read-only issue-reviewer の producer I/O を root-owned に分離し、0-byte stdout も validator-first で分類する #2049 AC9、sole target file 削除済み、他の production caller 0件)を orphan DELETE_CHAIN として除去。command_registry.py/run_root_review_pipeline.py/review-issue/SKILL.md/issue-refinement-loop/SKILL.mdの.codex/agents/issue-reviewer.toml参照を.claude/agents/issue-reviewer.mdへ更新。plan_refinement_loop.pyのSECURITY_SENSITIVE_PATH_PREFIXESから dead.codex/agents/エントリを除去(対応するtest_scope_signal_guard_lane_split.py/scope-signal-guard.mdも更新)。.claude/hooks/ci_test_performance_advisory.sh/.claude/skills/ci-test-performance/{SKILL.md,references/decision-matrix.md}: dead.codex/agents/path pattern entry を除去(対応するテストも更新)。.claude/skills/post-merge-cleanup{,-executor}/SKILL.md、.claude/skills/impl-review-loop/steps/preparation.md、.gitignore:.codex/**を historical/reference note へ改訂(誤って現在形で存在を主張していた箇所を修正)。docs/dev/directory-structure.md(.codex/inventory entry を除去、AGENTS.md説明を実態に合わせ更新)、docs/dev/github-ops.md(.codex/rules/default.rulesを参照する execpolicy smoke check 例を撤去済みとして更新)、docs/dev/hook-boundaries.md(Codex CLI 判断表を historical framing へ改訂)、docs/dev/onboarding/session-recording-tool.md/docs/dev/session-recording-policy.md(pilot 手順を historical note へ改訂)。Negative reference(provider-neutral / historical、意図的に RETAIN、substring 一致のみで削除しない):
.claude/scripts/check_session_recording_runtime_safety.py:.codex/hooks.jsonを含む 7 種の third-party agent-hook-file 規約(Claude/Codex/Cursor/Factory/Gemini/OpenCode/Pi)を汎用的に検出するロジックであり、native Codex CLI 固有ではない。.claude/skills/issue-refinement-loop/tests/test_issue_1952_trusted_directive_regression.py:.codex/agents/issue-creator.toml等は permission-delta 検出ロジックをテストする synthetic fixture 文字列であり、実ファイルを読まない。.claude/skills/gemini-cli-headless-delegation/tests/test_run_gemini_headless_live_trial.py:~/.codex/sessionsは Issue 実装: local_asset_research route の live Serena MCP 応答待ちタイムアウトの信頼性を改善する #2015 の過去調査を記録する historical narrative comment。docs/adr/agent-skill-surface-sharing.md: ADR は設計判断の歴史的記録として不変性を保つ慣行に従い、無編集で保持。scripts/check_post_merge_cleanup_boundary.pyのcodex exec/claude -p禁止 regex(_EXTERNAL_AGENT_CLI_INVOCATION_RE等): raw agent CLI 起動を禁止する provider-neutral defensive governance check であり、native Codex CLI 撤去後もむしろ意義が強まるため無編集で保持。(
.claude/skills/issue-refinement-loop/scripts/reviewer_transport.pyの"codex"backend adapter は、初期実装時点では上記 Negative Reference としてスコープ外・無変更としていたが、下記「fix_delta iteration 4」節の P1-1 で OWNER 敵対的レビューを受けて削除済み。本エントリはその変更を反映して削除した。)Checks
Issue #2161 の Verification Commands(AC1〜AC18)全件の実行結果。
.codex/削除check_codex_agent_config.py/check-codex-agents.mjs削除ci.ymlにcodex-execpolicy参照なしtests/fixtures/codex-agent-config/削除--hidden拡張スイープで補強確認、詳細は上記)pnpm typecheckpnpm lintpnpm test(1881 tests)pnpm buildscripts/claude-gpt/test_*.py(74 tests)verify_python_test_lane.pyGenerate CI_TEST_PERFORMANCE_ASSESSMENT_V2 artifactstep 存続確認check_claude_codex_agent_parity.pyUpload e2e-performance-benchmark-assessment-gate artifactstep 存続確認--codex-result文字列なしtest_evaluate_python_test_aggregate.py+test_verify_python_test_lane.py(45 tests)追加の広域回帰確認(Allowed Paths 外への波及がないことの確認):
.claude/skills/issue-refinement-loop/: 1930 passed / 4 failed(TestAuthorityTransportPrivilegedExecutorRealSubprocessDispatch3件 + live smoke 1件、いずれもgit stashでクリーン baseline に対しても同一の pre-existing 失敗であることを確認済み。本 PR の回帰ではない)scripts/agent-guards/tests/: 1486 passed / 14 failed(すべて既知の pre-existinguv_version_mismatch環境問題、本 PR の回帰ではない).claude/hooks/tests/: 844 passed / 1 failed(test_sentinel_not_in_artifactsは本 worktree に残存する別 Issue 実装: AGY fallback failure_class を capability_preflight_result へ渡す production 配線を issue-refinement-loop SKILL.md に追加する #2360 の untracked/gitignored artifact に起因する local-only 偽陽性、本 PR の diff・CI とは無関係)tests/test_post_merge_cleanup_boundary.py: 53 passed.claude/skills/pr-review-judge/scripts/tests/test_ci_verdict_summary_v2.py+tests/ci/test_ci_verdict_summary_lane_classification.py: 67 passedscripts/ci/tests/: 112 passedRuntime Verification Evidence(AC18 実行証跡)
wrapper script:
scripts/agent-ops/tests/run_runtime_verification_ac18.py(新規追加、Allowed Paths 記載どおり)。SKIP は exit 77、FAIL は exit 1、PASS は exit 0 で区別し、SKIP を PASS に昇格しない。証跡ログはartifacts/runtime-verification-AC18-<timestamp>.log(gitignored、PR には内容のみ転記)。CI_TEST_PERFORMANCE_DECISION_V1
Schema Change Applicability
Schema Consumer Inventory
N/A(not_schema_change のため、契約の新設・変更なし。DELETE_CHAIN 対象の契約は本文中「Launch Ledger DELETE_CHAIN」節に producer/consumer 一覧を記載)。
Safety Claim Matrix
.github/workflows/ci.ymlからcodex-execpolicyjob を削除してもci-verdict-summaryの merge-ready 計算が壊れないci_verdict_summary_v2.pyのCLASSIFICATION_MAP/REQUIRED_CHECKSから該当エントリを同時除去し 67 tests で確認.claude/skills/pr-review-judge/scripts/ci_verdict_summary_v2.pyの REQUIRED_CHECKS 変更が既存 required check の判定を壊さないTestP0_1AllRealCiJobsClassified等の regression test group PASS(67/67)check-codex-agents.mjsが唯一の live producer)。削除後、scripts/agent-guards/tests/の関連 12 テストが orphan として同時削除され、残る 1486 tests は無傷--runtime codex削除後も claude lane は不変)scripts/claude-gpt/**が本変更で無傷であるfix_delta iteration 4(OWNER 敵対的レビュー対応、issuecomment-5465797624)
OWNER(squne121 本人)が #2409 (comment) で敵対的レビューを投稿し、「以下2件の P1 が直れば APPROVE 寄りに変える」と明言した。これを受けて以下を実施した:
.claude/skills/issue-refinement-loop/scripts/reviewer_transport.pyに残存していた native Codex CLI executable backend(codex exec resume <session_id>を構築する"codex"backend)を削除。_KNOWN_BACKENDSから"codex"を除去し、codex 分岐を削除。専用テストを「rejection を assert」する形に更新し、claude/deterministic/fixture の既存カバレッジは無傷(関連48テスト全PASS)。代替 Codex adapter は作成していない。scripts/agent-ops/run_worktree_agent_runtime_smoke.pyのpreflight_requested_mutation_route()を完全削除(修復ではなく削除、OWNER 明示指示)。.codex/agents/*.toml(runtime_followup_route:宣言あり)から.claude/agents/*.md(ほとんど宣言なし)への参照先変更により実質的に壊れていた機構。CLI引数2つ・呼び出し箇所・専用定数(_RUNTIME_FOLLOWUP_ROUTE_RE/_TRANSACTION_ENTRYPOINTS)も削除。live caller 0件・専用テスト0件を確認済み。scripts/agent-ops/tests/フルスイート843 passed / 1 skipped(退行なし)。scripts/check_claude_codex_agent_parity.pyの agent discovery をglob("*.md")→rglob("*.md")に変更し、Claude Code の実際の再帰的 subagent discovery(サブディレクトリを含む)に一致させた。nested duplicate 検出の回帰テストを追加(tests/test_agent_parity.py、34テスト全PASS)。.claude/agents/issue-reviewer.mdの "read-only" 表現の訂正を reviewer は推奨したが、.claude/agents/**は本 Issue の Allowed Paths で明示的に RETAIN 指定されており、かつ Issue 自身の Stop Conditions に.claude/agents/**変更が明記されているため、worker は自己判断で変更せず revert し、人間判断が必要な項目として報告した。reviewer 自身も「3〜5のために Draft を長期間維持する必要はない」と明言しており、merge blocker ではない。--strictno-op flag・parse_known_args()の簡素化・checker のさらなる rename は reviewer 自身が「別PRでもよい」としたため未実施。新規コミット:
775ad9ae(P1-1 + P1-2)、8094bb76(P2-1)。fix_delta後、AC1-AC18を再実行し全PASSを確認済み(AC18: 364/364 PASS)。reviewer_transport.pyと関連2テストファイルはIssue #2161の現行Allowed Pathsに明示列挙されていないが、OWNER本人がPRコメントで直接この変更を要求しており、Issue Outcome(native Codex CLI executable consumerの完全撤去)そのものを完成させる narrow scope の変更である。Notes
docs/adr/agent-skill-surface-sharing.mdは ADR の不変性慣行に従い無編集で保持した(historical decision record)。origin/mainが複数回進行した(feat: reviewer transport の claude-native / claude-gpt session continuation native canary を追加する #2399、feat: route structural repair actions #2408、fix: capability-preflight probe ordering, Spark validation, deadline test fidelity (#2401) #2410、fix: root github auth probe を --active --hostname github.com に限定する #2413 等)。いずれも control-plane または OWNER 本人によるgit merge origin/mainで追随し、都度 AC1/AC2/AC3/AC5/AC18・pnpm typecheck・関連回帰テストを独立に再実行して PASS を確認済み。競合はいずれも軽微(SKILL.mdの加算的変更、scripts/claude-gpt/**の2ファイル等)で自動解消。.github/ci/python-test-plan.json内の説明文字列(rationale)がpreflight_requested_mutation_routeを現存する仕組みとして言及している箇所が残っている可能性がある(非機能的な docstring/comment レベル、follow-up 候補)。本 PR は Issue #2161 を解消する: Closes #2161
Visual Impact Declaration(視覚影響の宣言)
visual-impact-policy gate が
meta_policy_changeとして上記2 surface を検知したが、本 PR はsrc/**(ゲーム本体)を一切変更していない(git diff origin/main...HEAD --stat -- src/は空)ため、両 surface ともverified_unchangedである。