Skip to content

chore: Codex V2 runtime capability probe と関連資産を削除する - #1868

Merged
squne121 merged 1 commit into
mainfrom
worktree-issue-1866-remove-codex-v2-runtime-probe
Jul 30, 2026
Merged

squne121 merged 1 commit into
mainfrom
worktree-issue-1866-remove-codex-v2-runtime-probe

Conversation

@squne121

@squne121 squne121 commented Jul 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes #1866
Refs #1860
Supersedes #1861
(本 PR は Issue #1866 を close し、親 Issue #1860 を参照し、#1861 を supersede する)

Checks

  • pnpm typecheck
  • pnpm lint
  • pnpm test
  • pnpm build
    標準4検証コマンドはすべて成功した(詳細は下記「検証コマンド結果」を参照)。

Schema Change Applicability

  • decision: schema_change
  • reason: 本 PR は CODEX_MULTI_AGENT_V2_RUNTIME_CAPABILITY_V1 という明示的な schema ID を持つ構造化契約について、その producer(生成元スクリプト)、committed instance(コミット済み実体)、専用テスト、専用ドキュメントの4点をまとめて廃止する schema retirement(schema 廃止)である。

Schema Consumer Inventory

変更対象 schema: CODEX_MULTI_AGENT_V2_RUNTIME_CAPABILITY_V1

before/after 差分:

# before
producer: scripts/agent-guards/probe_codex_v2_runtime_capability.py
instance: artifacts/codex-multi-agent-v2/runtime-capability.json
test: tests/agent-guards/test_probe_codex_v2_runtime_capability.py
documentation: docs/dev/codex-multi-agent-v2-runtime-evidence.md

# after
status: retired
replacement: on_demand_live_canary
committed_artifact: prohibited
blocking_authority: prohibited

Consumer 更新状況:

Consumer ファイル 更新有無 備考
scripts/agent-guards/probe_codex_v2_runtime_capability.py 削除 producer 本体を廃止
artifacts/codex-multi-agent-v2/runtime-capability.json 削除 committed instance を廃止(今後は on-demand live canary のみ)
tests/agent-guards/test_probe_codex_v2_runtime_capability.py 削除 producer の専用テストを廃止
docs/dev/codex-multi-agent-v2-runtime-evidence.md 削除 専用 evidence 文書を廃止
.github/ci/python-test-plan.json 更新済み "tests/agent-guards/" target のみ除去
Issue #1835 / #1836(Required Design References) 更新済み 2026-07-30 に本文修正し dangling reference を除去済み
Issue #1842(In Scope/AC5/Allowed Paths) 更新済み 2026-07-30 に記載先を .claude/skills/impl-review-loop/steps/step-1-implementation.md へ変更する本文修正を実施済み
Issue #1862 / #1863(Allowed Paths/AC/VC が削除対象artifactを直接要求) not planned close 2026-07-30 に契約破綻を理由に not planned で close 済み
上記以外の runtime code / CI gate 依存なし git grep / rg / gh search issues で consumer なしを確認済み(下記 AC6 追加証跡参照)

本 schema retirement には移行対応が必要である(migration_required: true)。移行対応の内容は既存 OPEN Issue contract の close または本文修正(migration_action: close_or_rewrite_open_issue_contracts)であり、2026-07-30 時点ですべて完了している(migration_status: completed_2026-07-30)。

Safety Claim Matrix

Claim Implemented? Not controlled Evidence Follow-up
削除対象4資産(probe本体・専用テスト・専用artifact・専用evidence文書)以外に実行時 consumer が存在しないことをリポジトリ全体 rg 検索で確認 yes rg -n -e 'probe_codex_v2_runtime_capability' -e 'CODEX_MULTI_AGENT_V2_RUNTIME_CAPABILITY_V1' -e 'runtime-capability\.json' -e 'v2_config_schema_loadable' --glob '!*.lock' . → マッチなし(exit 1) N/A
.github/ci/python-test-plan.json から "tests/agent-guards/" target のみを削除し、既存の "tests/agent_guards/"(アンダースコア)target は維持 yes rg -nF '"tests/agent_guards/"' .github/ci/python-test-plan.json → マッチあり、rg -nF '"tests/agent-guards/"' .github/ci/python-test-plan.json → マッチなし N/A

記載ルール確認: Not controlled は空。

受け入れ条件の達成状況

Issue #1866 の Acceptance Criteria AC1〜AC6 は全て PASS している(実測コマンドと結果は下記「検証コマンド結果」を参照)。

  • AC1: scripts/agent-guards/probe_codex_v2_runtime_capability.py が削除されている — PASS
  • AC2: tests/agent-guards/test_probe_codex_v2_runtime_capability.py が削除されている — PASS
  • AC3: artifacts/codex-multi-agent-v2/runtime-capability.json が削除されている — PASS
  • AC4: docs/dev/codex-multi-agent-v2-runtime-evidence.md が削除されている — PASS
  • AC5: .github/ci/python-test-plan.json から "tests/agent-guards/" target が削除され、既存の "tests/agent_guards/" target は変更されずに維持されている — PASS
  • AC6: リポジトリ全体で probe_codex_v2_runtime_capability / CODEX_MULTI_AGENT_V2_RUNTIME_CAPABILITY_V1 / runtime-capability.json / v2_config_schema_loadable への残存参照がない(削除対象自身のgit履歴・削除PR本文中の言及を除く) — PASS

AC6 追加証跡(敵対的レビュー対応、2026-07-30)

以下3種の検索をPR head(8c46d7bd8cc0ff3549589e9787a43aab0df20548)に対して実施し、削除対象4資産以外の consumer が存在しないことを確認した。

  1. git grep(tracked files, worktree/index/tree を対象、hidden dirs含む):

    $ git grep -n -e 'probe_codex_v2_runtime_capability' -e 'CODEX_MULTI_AGENT_V2_RUNTIME_CAPABILITY_V1' -e 'runtime-capability\.json' -e 'codex-multi-agent-v2-runtime-evidence' -e 'v2_config_schema_loadable' -e 'features\.multi_agent_v2' -- .

    結果: マッチなし(exit 1)。

  2. rg --hidden --no-ignore-vcs(.git以外の hidden files/dirs も含む全域検索):

    $ rg --hidden --no-ignore-vcs --glob '!.git/**' --glob '!*.lock' -n -e 'probe_codex_v2_runtime_capability' -e 'CODEX_MULTI_AGENT_V2_RUNTIME_CAPABILITY_V1' -e 'runtime-capability\.json' -e 'codex-multi-agent-v2-runtime-evidence' -e 'v2_config_schema_loadable' -e 'features\.multi_agent_v2' .

    結果: マッチなし(exit 1)。

  3. gh search issues --state open(OPEN Issue横断検索、5語):

以上より、削除対象4資産以外に、実行時 consumer・CI gate・production code・OPEN Issue contract は存在しない。

Allowed Paths 遵守

本 PR の変更ファイルは Issue #1866 の Allowed Paths と完全一致しており、逸脱はない。

  • scripts/agent-guards/probe_codex_v2_runtime_capability.py(削除)
  • tests/agent-guards/test_probe_codex_v2_runtime_capability.py(削除)
  • artifacts/codex-multi-agent-v2/runtime-capability.json(削除)
  • docs/dev/codex-multi-agent-v2-runtime-evidence.md(削除)
  • .github/ci/python-test-plan.json("tests/agent-guards/" target 行のみ編集。新規ファイル作成なし)

gh pr diff 1868 --name-only で確認した変更ファイル一覧は上記5件のみであり、Issue #1866 Allowed Paths の範囲内に収まっている。

検証コマンド結果

# AC1: test ! -e scripts/agent-guards/probe_codex_v2_runtime_capability.py
PASS

# AC2: test ! -e tests/agent-guards/test_probe_codex_v2_runtime_capability.py
PASS

# AC3: test ! -e artifacts/codex-multi-agent-v2/runtime-capability.json
PASS

# AC4: test ! -e docs/dev/codex-multi-agent-v2-runtime-evidence.md
PASS

# AC5: rg -nF '"tests/agent-guards/"' .github/ci/python-test-plan.json
マッチなし(exit 1) PASS

# AC5: rg -nF '"tests/agent_guards/"' .github/ci/python-test-plan.json
15:    "tests/agent_guards/",  PASS

# AC5: uv run python3 scripts/ci/python_test_plan.py --emit scope-argv --check-paths --format json
exit 0, JSON 出力 PASS

# AC5: uv run python3 -m pytest tests/agent_guards/ -q
291 passed PASS

# AC6: rg -n -e 'probe_codex_v2_runtime_capability' -e 'CODEX_MULTI_AGENT_V2_RUNTIME_CAPABILITY_V1' -e 'runtime-capability\.json' -e 'v2_config_schema_loadable' --glob '!*.lock' .
マッチなし(exit 1) PASS

# 標準4コマンド
pnpm typecheck: PASS
pnpm lint: PASS
pnpm test: 105 files / 1794 tests passed
pnpm build: PASS

# 必須追加検証
uv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py: 21 passed

Notes

…1866)

#1860 owner decision (remove_probe_and_tests) に従い、Codex V2 runtime
capability probe の Phase 0 診断資産一式を削除する:

- scripts/agent-guards/probe_codex_v2_runtime_capability.py
- tests/agent-guards/test_probe_codex_v2_runtime_capability.py
- artifacts/codex-multi-agent-v2/runtime-capability.json
- docs/dev/codex-multi-agent-v2-runtime-evidence.md

.github/ci/python-test-plan.json から "tests/agent-guards/" target のみ
削除し、既存の "tests/agent_guards/"(アンダースコア)target は維持する。

リポジトリ全体で削除対象への外部 consumer は確認されなかった(rg で
probe本体・専用テスト・専用evidence文書の内部参照のみ)。

Refs #1860
Supersedes #1861

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@squne121

Copy link
Copy Markdown
Owner Author

Overlap Preflight Warnings(advisory, #1851)

overlap preflight evidence の検証で以下の warning が検出されましたが、advisory telemetry のため PR 作成はブロックされていません。

  • E_OVERLAP_PREFLIGHT_EVIDENCE_MISSING: evidence_file が存在しないか読み込めません: None

@github-actions

github-actions Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Preview URL

Preview removed (PR #1868 closed).

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review: Issue #1866 実装確認

Linked issue #1866 の Outcome / In Scope / Out of Scope / Allowed Paths / AC1-AC6 と実 diff(5ファイル)が完全一致していることを確認しました。Out of Scope(#1835〜#1842・#1862・#1863 の実装、.codex/* 変更、tests/agent_guards/ 既存テスト変更)への逸脱はありません。

.github/ci/python-test-plan.json の diff は "tests/agent-guards/" target 削除のみで、"tests/agent_guards/"(アンダースコア)target は変更されていません。

検証コマンド結果

AC 結果
AC1 PASS
AC2 PASS
AC3 PASS
AC4 PASS
AC5 PASS
AC6 PASS

Allowed Paths Gate(review_subagent 独立再計算): status: ok、violations なし。
CI(required checks: typecheck/lint/test/build/python-test/validate-generated-artifact): 現在 head で全て SUCCESS。
Mergeability: MERGEABLE / CLEAN。

受け入れ条件の達成状況

AC1-AC6 全て PASS(上表参照)。

Allowed Paths 遵守

変更ファイルは Issue #1866 の Allowed Paths 5件(scripts/agent-guards/probe_codex_v2_runtime_capability.py 削除、tests/agent-guards/test_probe_codex_v2_runtime_capability.py 削除、artifacts/codex-multi-agent-v2/runtime-capability.json 削除、docs/dev/codex-multi-agent-v2-runtime-evidence.md 削除、.github/ci/python-test-plan.json 部分編集)と完全一致し、逸脱なし。

軽微な指摘(mechanical, non-blocking)

PR本文に ## 受け入れ条件の達成状況 / ## Allowed Paths 遵守 の必須見出しが欠落しています(内容自体は ## 検証コマンド結果 節に実質記載済み)。update_pr_body_hygiene として自動対応を要求します。

LOOP_VERDICT_V2:
  verdict: APPROVE
  reviewed_head_sha: "8c46d7bd8cc0ff3549589e9787a43aab0df20548"
  merge_ready: false
  mergeability:
    mergeable: MERGEABLE
    merge_state_status: CLEAN
  blockers: []
  required_auto_actions:
    - kind: update_pr_body_hygiene
      executor: implementation-worker
      skill: open-pr.update_pr
      blocking_merge_ready: true
      mechanical: true
  auto_fix_applied: []
  follow_up_issue_requests: []
  allowed_paths_gate:
    status: ok
    changed_files_source: git_diff_name_status_find_renames_z
    changed_files:
      - ".github/ci/python-test-plan.json"
      - "artifacts/codex-multi-agent-v2/runtime-capability.json"
      - "docs/dev/codex-multi-agent-v2-runtime-evidence.md"
      - "scripts/agent-guards/probe_codex_v2_runtime_capability.py"
      - "tests/agent-guards/test_probe_codex_v2_runtime_capability.py"
    violations: []
  allowed_paths_gate_source: review_subagent

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review: Issue #1866 実装確認(再レビュー)

前回レビュー(review id 4819738999)で指摘した PR本文 hygiene 不足(## 受け入れ条件の達成状況 / ## Allowed Paths 遵守 見出し欠落)が解消されたことを確認しました。head SHA は不変(8c46d7bd8cc0ff3549589e9787a43aab0df20548)です。

  • 追加された2見出しの内容は Issue #1866 の AC1〜AC6 / Allowed Paths と完全一致しています。
  • diff(5ファイル)・CI(全 green)・Mergeability(MERGEABLE/CLEAN)・Allowed Paths Gate(review_subagent 独立再計算 status: ok、violations なし)は前回から変化なし。

blocker なし。required_auto_actions は全て解消済みのため空。merge_ready: true。

LOOP_VERDICT_V2:
  verdict: APPROVE
  reviewed_head_sha: "8c46d7bd8cc0ff3549589e9787a43aab0df20548"
  merge_ready: true
  mergeability:
    mergeable: MERGEABLE
    merge_state_status: CLEAN
  blockers: []
  required_auto_actions: []
  auto_fix_applied: []
  follow_up_issue_requests: []
  allowed_paths_gate:
    status: ok
    changed_files_source: git_diff_name_status_find_renames_z
    changed_files:
      - ".github/ci/python-test-plan.json"
      - "artifacts/codex-multi-agent-v2/runtime-capability.json"
      - "docs/dev/codex-multi-agent-v2-runtime-evidence.md"
      - "scripts/agent-guards/probe_codex_v2_runtime_capability.py"
      - "tests/agent-guards/test_probe_codex_v2_runtime_capability.py"
    violations: []
    producer_role: review_subagent
    worker_report_used_as_canonical: false
  allowed_paths_gate_source: review_subagent

@squne121

Copy link
Copy Markdown
Owner Author

敵対的レビュー結果

判定: REQUEST_CHANGES

削除方針そのものには反対しません。差分は5ファイルに限定され、tests/agent-guards/ の旧 target だけを Python test plan から除去しており、current head の CI、path validation、lane-union、各テストも成功しています。ファイル単位の削除実装に、直ちに再現するコード不具合は確認できません。

問題は、runtime capability contract の廃止を、関連 Issue グラフ・schema retirement・consumer inventoryから切り離して完了扱いしていることです。このままマージすると、削除済み資産を要求する OPEN Issue が残り、後続エージェントが再作成するか、欠落した Required Design Reference で停止する状態になります。


P1 — 廃止処理が非原子的で、マージ後に削除資産を再作成できる

PR は Closes #1866 としつつ、#1861 は「別途 not planned で close 予定」としています。つまり #1861 の disposition はこの PR と原子的ではなく、現時点でも Issue 自体は OPEN です。

さらに危険なのが #1862 と #1863 です。両 Issue のコメントは、owner decision と競合すると認識しながら、停止条件を「cleanup child #1866 が完了するまで実装を開始しない」と書いています。PR #1868 がマージされると #1866 は完了するため、文面上の期限付き停止条件が解除されます。恒久的な close_as_superseded や blocked_until_explicit_owner_reversal ではありません。

実際、#1863 は現在も、削除対象の次の2ファイルを更新する契約のまま OPEN です。

  • artifacts/codex-multi-agent-v2/runtime-capability.json
  • docs/dev/codex-multi-agent-v2-runtime-evidence.md

Acceptance Criteria、Verification Commands、Allowed Pathsもこの2ファイルを要求しています。

#1842 も同じ evidence 文書への追記を In Scope とし、AC5でその存在を要求しています。

#1835 はさらに、旧ロードマップに従って [features.multi_agent_v2] を有効化する実装 Issue のまま OPEN です。

したがって、マージ後には次の経路が成立します。

PR #1868 merge
  └─ #1866 CLOSED
       ├─ #1862/#1863 の「#1866完了まで保留」が終了
       ├─ #1863 が削除artifact/docの再作成を要求
       ├─ #1842 が削除docへの追記を要求
       └─ #1835以降が旧multi_agent_v2ロードマップを継続

これは単なる Issue 整理不足ではありません。このリポジトリは live Issue を実装契約として扱うため、削除済み資産を再導入する実行可能な契約が残っている状態です。

必須修正

マージ前に、最低限以下を完了させる必要があります。

  1. 実装: Codex V2 runtime capability probe のテスト厳密化とテストディレクトリ命名重複を解消する #1861 を owner decision に従って not planned / superseded で closeする。
  2. 実装: Codex V2 runtime capability artifact に JSON Schema と CI 継続検証 gate を追加する #1862 と 実装: Codex Multi-Agent V2 spawn_agent の live runtime canary を実施し artifact を更新する #1863 を closeするか、停止条件を次のような恒久条件へ変更する。
disposition: superseded_by_owner_decision
implementation_allowed: false
reopen_condition: explicit_new_owner_decision_only
cleanup_issue: "#1866"
  1. 実装: .codex/config.toml へ Multi-Agent V2 を有効化し max_depth 依存を撤去する #1835〜#1842について、削除文書を Required Design Reference/Allowed Paths/ACに持つ Issue を一括検索し、close、defer、または現行Codex契約へ書き換える。
  2. parent 導入: Codex CLI Multi-Agent V2 へ移行し、明示的な委譲グラフとbounded nested delegation harnessを導入する #1833 の継続可否を確定する。少なくとも Phase 0 artifact を前提にした依存関係を破棄する。
  3. 導入: AIエージェント運用をminimal harnessへ縮退し、過剰なcontrol-planeを廃止する #1860 の Child Issues/Closure Matrixへ 実装: Codex V2 runtime capability probe と関連資産を削除する(#1860 owner decision準拠) #1866 の完了と、#1833系列の disposition を反映する。

P1 — not_schema_change はリポジトリ自身の schema governance と矛盾する

PR 本文は次のように判定しています。

Schema Change Applicability:
decision: not_schema_change
reason: schema/producer-consumer 契約の変更なし

しかし、削除対象JSONは明示的に次の schema ID を持っています。

{
  "schema": "CODEX_MULTI_AGENT_V2_RUNTIME_CAPABILITY_V1",
  "generated_by": "probe_codex_v2_runtime_capability",
  ...
}

また、config-loader結果、CLI feature認識、runtime probe、provenanceなどを複数ファイル間で受け渡す構造化契約です。

リポジトリの schema governance は、複数ファイル間のインターフェースになる JSON/YAML/NDJSON を schema と定義しています。

さらに not_schema_change が許されるのは、変更が内部ロジック・コメント・説明文だけで、consumer boundaryを変更しない場合です。diffだけで判断できなければ uncertain とし、schema change相当の検査を適用する規定です。

本PRは以下を同時に削除しています。

  • schema ID付きJSON contract
  • producer
  • generated instance
  • contract test
  • interpretation document

これは、少なくとも uncertain、通常は schema retirementを伴う schema_change です。not_schema_change は成立しません。

この誤分類により Schema Consumer Inventory が N/A とされ、実際に #1863、#1842、#1835などの設計 consumer が見落とされています。schema governance上、schema_change/uncertain で consumer inventoryが欠落している場合は APPROVE禁止です。

必須修正

PR本文を次の趣旨へ変更してください。

Schema Change Applicability:
  decision: schema_change
  reason: >
    CODEX_MULTI_AGENT_V2_RUNTIME_CAPABILITY_V1 の producer、
    committed instance、test、documentationを廃止する schema retirement。

Schema Consumer Inventory:
  schema_id: CODEX_MULTI_AGENT_V2_RUNTIME_CAPABILITY_V1
  before:
    producer: scripts/agent-guards/probe_codex_v2_runtime_capability.py
    instance: artifacts/codex-multi-agent-v2/runtime-capability.json
    test: tests/agent-guards/test_probe_codex_v2_runtime_capability.py
    documentation: docs/dev/codex-multi-agent-v2-runtime-evidence.md
  after:
    status: retired
    replacement: on_demand_live_canary
    committed_artifact: prohibited
    blocking_authority: prohibited
  consumers:
    runtime_code: none_found
    open_issue_contracts:
      - "#1835"
      - "#1842"
      - "#1862"
      - "#1863"
  compatibility:
    migration_required: true
    migration_action: close_or_rewrite_open_issue_contracts

schemaを新設する必要はありません。既存schemaの廃止を正しく記録するだけです。


P1 — 「リポジトリ全体を検索した」という安全証拠が成立していない

PRのAC6証拠は次の rg です。

rg -n \
  -e 'probe_codex_v2_runtime_capability' \
  -e 'CODEX_MULTI_AGENT_V2_RUNTIME_CAPABILITY_V1' \
  -e 'runtime-capability\.json' \
  -e 'v2_config_schema_loadable' \
  --glob '!*.lock' .

しかし ripgrep はデフォルトで、gitignore対象とhidden file/hidden directoryを探索しません。

このリポジトリでは、まさに重要なconsumer候補が以下のhidden rootにあります。

.github/
.claude/
.codex/

したがって、このコマンドを「リポジトリ全体検索」とする Safety Claim は不正確です。

また、検索語に次が含まれていません。

codex-multi-agent-v2-runtime-evidence
features.multi_agent_v2

前者を検索すれば #1842のような文書consumerを発見でき、後者を検索すれば #1835系列の旧設定契約を発見できます。Issue本文はローカル rg では検索できないため、GitHub Issue検索も別途必要です。

なお、私が実施したexact code searchでは、削除対象以外の明白なtracked runtime consumerは確認できませんでした。つまり、ここでの指摘は「隠れたコードconsumerを発見した」ではなく、PRが掲げる不存在証明が再現可能な全域検索になっていないというものです。

修正後のコード検索

tracked filesを正本にするなら git grep が適切です。Gitの公式仕様上、git grep はworktree/index/treeのtracked blobを検索します。

git grep -n \
  -e 'probe_codex_v2_runtime_capability' \
  -e 'CODEX_MULTI_AGENT_V2_RUNTIME_CAPABILITY_V1' \
  -e 'runtime-capability\.json' \
  -e 'codex-multi-agent-v2-runtime-evidence' \
  -e 'v2_config_schema_loadable' \
  -e 'features\.multi_agent_v2' \
  -- .

ripgrepを維持するなら最低でも次が必要です。

rg --hidden --no-ignore-vcs \
  --glob '!.git/**' \
  --glob '!*.lock' \
  -n \
  -e 'probe_codex_v2_runtime_capability' \
  -e 'CODEX_MULTI_AGENT_V2_RUNTIME_CAPABILITY_V1' \
  -e 'runtime-capability\.json' \
  -e 'codex-multi-agent-v2-runtime-evidence' \
  -e 'v2_config_schema_loadable' \
  -e 'features\.multi_agent_v2' \
  .

OPEN Issueについても、各語を gh search issues --state open で検索し、検索結果と disposition をPR本文へ記録する必要があります。


P2 — 削除理由は妥当だが、「何が現行契約か」が記録されていない

既存artifactは overall_status: partial であり、最重要の runtime_exec_probe.status は not_run でした。つまり、名前に反して実際の spawn_agent runtime availabilityを証明していません。

evidence文書自身も、証明できたのは multi_agent_v2 configのaccept/rejectであり、実際のagent sessionでV2 tool surfaceが利用できることは証明していないと明記しています。

一方、現在のCodex公式公開仕様では、subagent workflowは既定で有効であり、公開設定の正本は以下です。

[features]
multi_agent = true

[agents]
enabled = true
max_concurrent_threads_per_session = ...

公式config referenceは features.multi_agent をstable・既定有効とし、global subagent settingsを [agents] に置いています。公開config referenceには multi_agent_v2 の記載がありません。([OpenAI Developers]1)

公式Subagents文書も、現行Codex releasesではsubagent workflowが既定有効であり、agents.enabled、agents.max_concurrent_threads_per_session、custom agent filesを公開契約として説明しています。([OpenAI Developers]2)

ただし、Codexの内部実装には現在も MultiAgentV2 featureとV2専用config struct、task_name/agent_type/fork_turnsを持つspawn handlerが残っています。

したがって、正しい結論は次です。

旧probeは、公開された現行Codex契約を検証する仕組みとしては陳腐化しており、committed artifact/blocking authorityとして維持すべきではない。
ただしV2実装自体が完全に消滅したわけではないため、将来の確認は「V2が存在しない」という静的前提ではなく、対象モデル・対象セッションでのon-demand live canaryにする。

PRに残すべき replacement policy

replacement_policy:
  supported_configuration_surface:
    - features.multi_agent
    - agents.enabled
    - agents.max_concurrent_threads_per_session
    - .codex/agents/*.toml
  capability_check:
    mode: on_demand_live_canary
    blocking_authority: false
  committed_runtime_snapshot:
    allowed: false
  live_canary_should_verify:
    - actual selected model and runtime
    - actual model-visible spawn tool surface
    - benign child spawn
    - child completion and join/wait
    - requested role/model/sandbox behavior where applicable

V2形式で明示的な agent_type やmodel overrideを使うcanaryでは、現行handlerは fork_turns 省略時に "all"、すなわちfull-history forkを選ぶため、fork_turns: "none" を明示すべきです。


マージ前の最小条件

このPRを安全にマージできる状態は、次の4点が満たされた場合です。

  1. 実装: Codex V2 runtime capability probe のテスト厳密化とテストディレクトリ命名重複を解消する #1861、実装: Codex V2 runtime capability artifact に JSON Schema と CI 継続検証 gate を追加する #1862、#1863の dispositionを恒久確定し、削除資産を再作成できる OPEN 契約を残さない。
  2. #1833系列、特に #1835と#1842から削除文書・旧V2設定への依存を除去するか、Issueをclose/deferする。
  3. Schema Change Applicability を schema_change または最低でも uncertain へ修正し、schema retirementとconsumer inventoryを記載する。
  4. hidden filesを含むtracked code searchとOPEN Issue searchを再実行し、その結果をPR本文へ記録する。

最終評価: ファイル削除の実装品質は通過水準です。しかし、現状は「コードを消した」だけで「契約を廃止した」状態には達していません。Issueグラフとschema lifecycleを同時に閉じるまで、マージ承認は不適切です。

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review: 敵対的レビュー4指摘への対応確認(再レビュー)

owner の敵対的レビュー(#1868 (comment) )で指摘された4点について、それぞれ独立検証しました。head SHA は不変(8c46d7bd8cc0ff3549589e9787a43aab0df20548、コード変更なし、PR本文のみ更新)です。

  1. #1861/#1862/#1863 の disposition: gh issue view で全件 CLOSED/NOT_PLANNED を確認。恒久確定済み。
  2. #1835/#1836/#1842 の削除文書依存: Allowed Paths / AC / In Scope / Required Design References に dangling reference がないことを本文全体で確認。#1842 に残る言及は経緯説明(Notes)のみ。
  3. Schema Change Applicability: schema_change + Schema Consumer Inventory(before/after・consumer 一覧・migration_status: completed)に修正済みで矛盾なし。
  4. AC6 追加証跡: git grep(tracked, hidden dirs含む)と rg --hidden --no-ignore-vcs(.git以外の hidden files/dirs含む)を PR head worktree で独立再実行し、両方とも no-match(exit 1)を確認。

AC1-AC6 独立再検証(全PASS)、Allowed Paths Gate(review_subagent 独立再計算、status: ok、violations なし)、CI(ci_verdict_summary.py、status: all_pass)、Mergeability(MERGEABLE/CLEAN)も確認済み。前回 APPROVE 分(コード実装)への regression なし(head SHA不変)。

blocker なし。required_auto_actions なし。merge_ready: true。

LOOP_VERDICT_V2:
  verdict: APPROVE
  reviewed_head_sha: "8c46d7bd8cc0ff3549589e9787a43aab0df20548"
  merge_ready: true
  mergeability:
    mergeable: MERGEABLE
    merge_state_status: CLEAN
  blockers: []
  allowed_paths_gate:
    status: ok
    producer_role: review_subagent
    worker_report_used_as_canonical: false
    contract_source_kind: issue_body
    contract_source_id: "1866"
    contract_body_sha256: "8f09375426efb133a320c06880f29971df32984a3d940bbe7105440305c5f075"
    changed_files_source: git_diff_current_merge_base_head
    audited_paths:
      - path: ".github/ci/python-test-plan.json"
        status: modified
        within_allowed_paths: true
      - path: "artifacts/codex-multi-agent-v2/runtime-capability.json"
        status: deleted
        within_allowed_paths: true
      - path: "docs/dev/codex-multi-agent-v2-runtime-evidence.md"
        status: deleted
        within_allowed_paths: true
      - path: "scripts/agent-guards/probe_codex_v2_runtime_capability.py"
        status: deleted
        within_allowed_paths: true
      - path: "tests/agent-guards/test_probe_codex_v2_runtime_capability.py"
        status: deleted
        within_allowed_paths: true
  required_auto_actions: []
  auto_fix_applied: []
  follow_up_issue_requests: []

@squne121
squne121 marked this pull request as ready for review July 30, 2026 15:08
@squne121
squne121 merged commit 22e6f4d into main Jul 30, 2026
41 checks passed
@squne121
squne121 deleted the worktree-issue-1866-remove-codex-v2-runtime-probe branch July 30, 2026 15:08
squne121 added a commit that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

実装: Codex V2 runtime capability probe と関連資産を削除する(#1860 owner decision準拠)

1 participant