Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1833"
goal_ref: "Codex native Multi-Agent V2 の bounded runtime smoke と negative test を、root-owned minimal harness として実施する"
change_kind: verificationParent Issue
Parent Goal Ref
- Goal: root/main ownership を維持した native Multi-Agent V2 minimal harness。
- Desired Destination: 実 runtime の root spawn/join と non-mutation readback。
Current Validated Scope
- 実装: .codex/config.toml へ Multi-Agent V2 を有効化し max_depth 依存を撤去する #1835 / PR feat(codex): enable multi-agent v2 config #1879 が V2 enabled と concurrency=4 を current main に導入済み。
- runtime proof は source-text assertion や fixture では代替しない。
- PR 実装: worktree 内の Claude Code/Codex CLI runtime smoke を herdr で観測する共有 Skill を追加する #1921 で
worktree-agent-runtime-smokeSkill と runner(scripts/agent-ops/run_worktree_agent_runtime_smoke.py)が main に導入済み。linked worktree 必須・root checkout/cwd mismatch 拒否・exit code 0/1/77・summary.mdのみを永続 evidence とする契約が確立している。
Remaining Parent Gaps
- 実装: Claude Code / Codex CLI の bounded read-only nested delegation canary を実行する #1842(implementation-worker → codebase-investigator の read-only nested canary)は本 Issue の後続として別途扱う。
Outcome
worktree-agent-runtime-smoke runner を経由して、root が (a) 固定 read-only role(agent_type: spark-skim, fork_turns: none)を起動し join できること、(b) implementation-worker role を本 Issue で定義する no-op diagnostic task で起動し IMPLEMENT_RESULT_V1 の定義済み終了分類を取得できることを確認する。root が本 smoke 中 GitHub mutation を保持し、child 由来の mutation event が観測されないことを確認する(権限強制の証明ではない)。smoke 前後の worktree fingerprint(HEAD SHA・branch/detached state・index tree・tracked content hash・untracked path 集合)に owned evidence directory 以外の差分がないことを確認する。runtime unavailable・schema 非公開・effective role 取得不能はいずれも environment blocker(exit 77)として記録し、PASS へ代替しない。
In Scope
- root から
worktree-agent-runtime-smokerunner 経由で固定 read-only role(agent_type: spark-skim,fork_turns: none)を一件起動・join する runtime smoke。 - root から implementation-worker role を、本 Issue で定義する no-op diagnostic task(
issue_number: 1841束縛、Allowed Paths 空、mutation 禁止)で一件起動し、IMPLEMENT_RESULT_V1の完了結果を取得する runtime smoke。 - 同一 dispatch site の retry で、
implementation_i0のlist_agents: completed確認後にimplementation_i1が同一 session 内で起動できることの実測。 - 専用 fresh session(duplicate-path-negative)で、重複 agent path 予約が
"agent path ... already exists"を含むエラーとして拒否されることの確認。 fork_turns: noneの task message が、Issue番号・snapshot hash・iteration・Allowed Paths・実行コマンド・AC番号・tested SHA 等の該当実値で自己完結していることの確認。- 実行時に codex CLI が返す model-visible
spawn_agenttool schema でのagent_typeの有無(expose_agent_type相当の runtime option による削除条件を含む)と、read-only role / implementation-worker role の effective role exposure の区別した確認。 - root/main が routing と GitHub mutation を保持すること、smoke 前後の worktree non-mutation を
--require-clean-postconditionで確認すること。 - write-capable agent が本 smoke 中に別の write-capable agent を起動した event が観測されないことの確認(observed absence check。security boundary の強制証明ではない)。
- runtime evidence を実行環境・install provenance(channel、binary path、binary SHA256、OS/arch、auth mode、install channel、release tag、tested repository head)に結び付けて
summary.mdへ記録すること。
Out of Scope
- graph validator、self-attested dispatch記録、task packet、digest検査、graph fixture群、phase-transition self-gate。
.codex/hooks.jsonの変更、source-text/fixtureだけによる runtime PASS、security boundary(権限強制)の主張。- write-capable-to-write-capable nested delegation を実際に起動して試行すること(Stop Condition に抵触するため行わない。観測される場合は event の不存在確認のみ行う)。
- PR feat(codex): canonical dispatch instructionをNative V2 shapeへ移行 #1922 の cleanup task(実 merged PR / Issue / worktree / branch への binding)を runtime で起動する canary。feat(codex): canonical dispatch instructionをNative V2 shapeへ移行 #1922 は既にマージ済みであり、
post-merge-cleanup-workerを実起動すると branch/worktree 削除が発生し得るため、本 Issue の non-mutation 契約と衝突する。cleanup runtime canary は dry-run contract または使い捨て fixture を所有する別 Issue へ分離する。 - root だけが GitHub mutation 可能であることの権限強制的証明(監査ログや mutation actor readback を伴わない本 smoke では証明できない。本 smoke は child 由来 mutation event の不存在確認に限定する)。
.codex/config.tomlのimplementation-designer記載コメントの修正(Allowed Paths 外。stale な known drift として記録するのみ)。
Acceptance Criteria
- AC1: root が
worktree-agent-runtime-smokerunner 経由で固定 read-only role(spawn_agent,agent_type: spark-skim,fork_turns: none)を起動し、wait_agentの result message 消費とlist_agentsのcompletedterminal state を確認できる。 - AC2: root が同 runner 経由で implementation-worker role(
issue_number: 1841束縛の no-op diagnostic task)を起動し、IMPLEMENT_RESULT_V1の定義済み終了分類を取得できる。 - AC3: 本 smoke 実行中、root 以外由来の GitHub mutation event が観測されないことを確認する(権限強制の証明ではない)。
- AC4: smoke 前後の worktree fingerprint(HEAD SHA・branch/detached state・index tree・tracked content hash・untracked path集合)に owned evidence directory 以外の差分がないことを
--require-clean-postconditionで確認する。 - AC5: 本 smoke 中に、implementation-worker を起点とする write-capable child spawn event が存在しないことを trace で確認する(observed absence check。security boundary の強制証明ではない)。
- AC6: runtime unavailable(capability・auth・worktree identity検証失敗等)は environment blocker(exit 77)として記録し、PASSへ代替しない。
- AC7:
.codex/hooks.jsonの diff が存在しないことを確認する。 - AC8: retry-smoke session で、
implementation_i0のlist_agents: completed確認後にimplementation_i1が同一 session 内で起動できることを実測する。 - AC9: duplicate-path-negative session で、
spawn_agentの重複 agent path 予約が"agent path"と"already exists"を含むエラーで拒否されることを確認する(synthetic な duplicate probe に限定し、実 PR の cleanup task name には束縛しない)。 - AC10:
fork_turns: noneの task message が、Issue番号・snapshot hash・iteration・Allowed Paths・実行コマンド・AC番号・tested SHA の該当実値で自己完結していることを、実行時 message 本文の readback で確認する。 - AC11: agent-type-schema-probe session で、実行時に codex CLI が返す model-visible
spawn_agenttool schema にagent_typeプロパティが存在する(または runtime option により削除されている)ことを、schema そのものの readback から確認する。schema を取得できない場合は environment blocker(exit 77)とする。 - AC12: 実 call で
agent_typeを指定し、child runtime metadata から requested role と effective role/permission profile を確認する。 - AC13: mailbox activity の成功のみを完了とせず、
wait_agentの result message 消費とlist_agentsの terminalcompletedを確認してから root が routing することを実測する。 - AC14: agent-type-schema-probe session で、
spawn_agentの実 call arguments にagent_typeが実値として渡されたことを request payload の readback で確認する(実 merged PR の cleanup binding は対象外)。 - AC15: runtime evidence に install provenance(version, binary_path, binary_realpath, binary_sha256, install_channel, release_tag, os, architecture, auth_mode_enum, multi_agent_version, effective_feature_multi_agent_v2, effective_agent_type_exposure, effective_max_concurrent_threads)と repository(tested_head, origin_main_head, clean_precondition)を記録する。
Verification Commands
session matrix(各 session は --mode structured で fresh ephemeral、terminate 時に registry cleanup 扱い。retry-smoke のみ同一 session 内で i0 → completed → result consumed → i1 を実行する):
sessions:
- id: readonly-role-smoke
children: [readonly_probe_i0]
- id: implementation-role-smoke
children: [implementation_i0]
- id: retry-smoke
children: [implementation_i0, implementation_i1]
- id: duplicate-path-negative
children: [duplicate_probe_i0, duplicate_probe_i0]
expected_second_result:
error_contains: ["agent path", "already exists"]
- id: agent-type-schema-probe
purpose: model-visible schema and effective role evidence# AC1
# preflight-scope: runtime_only
$ uv run --locked python3 scripts/agent-ops/run_worktree_agent_runtime_smoke.py --runtime codex --mode structured --worktree WORKTREE_PATH --prompt-file tmp/runtime-smoke/readonly-role-smoke.md --output-dir artifacts/runtime-smoke/readonly-role-smoke --timeout-seconds 180 --require-clean-postcondition
# exit 0=PASS(spawn/join/result consumed/list_agents completed を summary.md で確認) / 1=FAIL / 77=SKIP(environment blocker)。WORKTREE_PATH は実行時の linked worktree 絶対パスに置換する
# AC2
# preflight-scope: runtime_only
$ uv run --locked python3 scripts/agent-ops/run_worktree_agent_runtime_smoke.py --runtime codex --mode structured --worktree WORKTREE_PATH --prompt-file tmp/runtime-smoke/implementation-role-smoke.md --output-dir artifacts/runtime-smoke/implementation-role-smoke --timeout-seconds 180 --require-clean-postcondition
# exit 0=PASS(IMPLEMENT_RESULT_V1 の定義済み終了分類を summary.md で確認) / 1=FAIL / 77=SKIP
# AC3
# baseline-expect: pass
$ git status --short
# 前後の出力に GitHub mutation を示す差分がないことを確認する(この command 単独では権限強制を証明しない)
# AC4
# preflight-scope: runtime_only
$ uv run --locked python3 scripts/agent-ops/run_worktree_agent_runtime_smoke.py --runtime codex --mode structured --worktree WORKTREE_PATH --prompt-file tmp/runtime-smoke/readonly-role-smoke.md --output-dir artifacts/runtime-smoke/readonly-role-smoke --timeout-seconds 180 --require-clean-postcondition
# --require-clean-postcondition が fingerprint 差分なしを検証する
# AC5
$ rg -n "nested delegation" .claude/skills/impl-review-loop/steps/preparation.md
# AC6
# preflight-scope: runtime_only
$ uv run --locked python3 scripts/agent-ops/run_worktree_agent_runtime_smoke.py --runtime codex --mode structured --worktree WORKTREE_PATH --prompt-file tmp/runtime-smoke/readonly-role-smoke.md --output-dir artifacts/runtime-smoke/readonly-role-smoke --timeout-seconds 180
# exit 77 の場合は SKIP: プレフィックス付き summary.md を environment blocker として記録する
# AC7
# baseline-expect: pass
$ git diff --name-only origin/main -- .codex/hooks.json
# AC8
# preflight-scope: runtime_only
$ uv run --locked python3 scripts/agent-ops/run_worktree_agent_runtime_smoke.py --runtime codex --mode structured --worktree WORKTREE_PATH --prompt-file tmp/runtime-smoke/retry-smoke.md --output-dir artifacts/runtime-smoke/retry-smoke --timeout-seconds 240 --require-clean-postcondition
# summary.md に i0 completed 後の i1 起動成功を記録する
# AC9
# preflight-scope: runtime_only
$ uv run --locked python3 scripts/agent-ops/run_worktree_agent_runtime_smoke.py --runtime codex --mode structured --worktree WORKTREE_PATH --prompt-file tmp/runtime-smoke/duplicate-path-negative.md --output-dir artifacts/runtime-smoke/duplicate-path-negative --timeout-seconds 180
# summary.md に 2 回目の spawn が "agent path" と "already exists" を含むエラーで拒否されたことを記録する
# AC10
# preflight-scope: runtime_only
$ uv run --locked python3 scripts/agent-ops/run_worktree_agent_runtime_smoke.py --runtime codex --mode structured --worktree WORKTREE_PATH --prompt-file tmp/runtime-smoke/implementation-role-smoke.md --output-dir artifacts/runtime-smoke/implementation-role-smoke --timeout-seconds 180
# summary.md に送信した message 本文の実値(redacted evidence 経由)を記録する
# AC11
# preflight-scope: runtime_only
$ uv run --locked python3 scripts/agent-ops/run_worktree_agent_runtime_smoke.py --runtime codex --mode structured --worktree WORKTREE_PATH --prompt-file tmp/runtime-smoke/agent-type-schema-probe.md --output-dir artifacts/runtime-smoke/agent-type-schema-probe --timeout-seconds 120
# summary.md に model-visible tool schema の agent_type 有無を記録する。取得不能なら exit 77
# AC12
# preflight-scope: runtime_only
$ uv run --locked python3 scripts/agent-ops/run_worktree_agent_runtime_smoke.py --runtime codex --mode structured --worktree WORKTREE_PATH --prompt-file tmp/runtime-smoke/agent-type-schema-probe.md --output-dir artifacts/runtime-smoke/agent-type-schema-probe --timeout-seconds 120
# summary.md に requested role と effective role/permission profile を記録する
# AC13
# preflight-scope: runtime_only
$ uv run --locked python3 scripts/agent-ops/run_worktree_agent_runtime_smoke.py --runtime codex --mode structured --worktree WORKTREE_PATH --prompt-file tmp/runtime-smoke/implementation-role-smoke.md --output-dir artifacts/runtime-smoke/implementation-role-smoke --timeout-seconds 180
# summary.md に result message 消費と list_agents completed の順序を記録する
# AC14
# preflight-scope: runtime_only
$ uv run --locked python3 scripts/agent-ops/run_worktree_agent_runtime_smoke.py --runtime codex --mode structured --worktree WORKTREE_PATH --prompt-file tmp/runtime-smoke/agent-type-schema-probe.md --output-dir artifacts/runtime-smoke/agent-type-schema-probe --timeout-seconds 120
# summary.md に実 call の agent_type 実値を記録する
# AC15
# preflight-scope: runtime_only
$ codex --version実行可能な runtime smoke command は実行時の Codex CLI surface に合わせて記録する。fixture/source-text assertion は補助であり AC1/AC2/AC8〜AC14 の代替にしない。
Allowed Paths
(なし。read-only runtime verification。repo file、branch、worktree、hook を変更しない。証跡は GitHub comment に記録する)
Dependencies
- Hard predecessors: 実装: canonical Skill の dispatch instruction と checker を最小構成へ移行する #1838。
- Successors: 実装: Claude Code / Codex CLI の bounded read-only nested delegation canary を実行する #1842。
- 実装: .codex/agents/*.toml へ delegation metadata を追加し implementation-designer を新規追加する #1839 は not planned で closed 済みのため hard predecessor ではない(
implementation-designer責務重複により導入見送り。実装: Claude Code / Codex CLI の bounded read-only nested delegation canary を実行する #1842 はimplementation-worker → codebase-investigator構成へ変更済み)。
Required Skills
- worktree-agent-runtime-smoke
Required Design References
docs/dev/runtime-verification-policy.md.claude/skills/worktree-agent-runtime-smoke/SKILL.md.codex/config.toml(root + implementation-worker + implementation-designer = 3というコメントは 実装: .codex/agents/*.toml へ delegation metadata を追加し implementation-designer を新規追加する #1839 not planned により stale。本 Issue はこの記載を修正しないが、known drift として認識した上で agent inventory の根拠に使用しない)
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合(write-capable-to-write-capable の観測を含む)
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- runtime が実際の agent spawn/join を提供しない、または安全に検証できない場合は environment blocker として停止する
- writer nested delegation、意図しない worktree mutation、Allowed Paths 外の変更が必要な場合
- runtime output から child start/join を観測できない場合
- root以外が routing または GitHub mutation を行う場合
- current tested head が origin/main と一致しない場合
.codex/hooks.json、branch、commit、PR作成が必要になった場合- PR feat(codex): canonical dispatch instructionをNative V2 shapeへ移行 #1922 の cleanup task を実起動する必要が生じた場合(別 Issue へ分離する)
Runtime Verification Applicability
decision: immediate
owner: root/main
tested_head: origin/main
applicable_acs: [AC1, AC2, AC3, AC4, AC5, AC6, AC8, AC9, AC10, AC11, AC12, AC13, AC14, AC15]
execution_environment: "origin/main の exact SHA に束縛された clean linked worktree と、インストール済み Codex CLI"
skip_conditions: "runtimeのspawn/joinまたはtrace readbackが利用不可、あるいはmodel-visible schemaが取得できない"
fallback_policy: "environment_blocker。PASSへ代替しない"
artifact_requirements: "GitHub commentにinstall provenance、CLI version、tested head、spawn/join、retry task名、agent path重複拒否、agent_type schema/effective role、前後git statusを記録"
evidence:
- "codex --version と channel、binary path、SHA256、OS/arch、auth mode"
- "root の worktree-agent-runtime-smoke summary.md(read-only child と implementation-worker のspawn/join、retry i0/i1、agent_type exposure)"
- "mailbox result と list_agents の terminal completed readback"
- "git status --short の前後readback"
unavailable_policy: "environment_blocker。fixture/source-text assertionでPASSにしない"Scope Delta(任意)
decision: approved_by_owner_pr_feedback
source: "https://github.com/squne121/loop-protocol/issues/1841#issuecomment-5151405266"
summary: "OWNER の敵対的レビュー(REQUEST_CHANGES)指摘により、依存関係(#1839除去)、Required Skills(worktree-agent-runtime-smoke追加)、runtime-verificationタグ付与、VC の preflight-scope: runtime_only 明記による決定論的command化、AC5のobserved absence check化、AC11のschema/effective role分離(AC11/AC12)、session matrixによるcapacity/path衝突回避、cleanup runtime canaryの分離、read-only roleのspark-skim固定、install provenanceフィールド拡充を反映した。"
Activity
[-]実装: loop skill へ graph validator 呼び出しと negative test / smoke test を組み込む[/-][+]実装: native Multi-Agent V2 の bounded runtime smoke と negative test を追加する[/+]squne121 commentedon Aug 1, 2026
判定は REQUEST_CHANGES です。現状の #1841 は、方向性は妥当ですが、実行契約としては未完成です。
Issue #1841 敵対的レビュー
判定
総評
#1841 が担うべき役割は明確です。PR #1922で静的に定義されたNative Multi-Agent V2のcall shapeを、実際のCodex CLI上で検証する必要があります。PR #1922も、runtime capability、role exposure、completion routing、権限強制は#1841へ明示的に先送りしています。
しかし現在のIssueは、14件のACを掲げながら、実質的なVerification Commandの大半が
codex --versionです。依存関係、テスト対象agent、session分割、childへ渡す実値、期待イベント、エラー判定、証跡抽出方法が固定されていません。これは「実行時に合わせて調整する」余地ではなく、実行者ごとに別の検証を行える未定義状態です。P0-1: #1839へのhard dependencyとdesigner記述が既に失効している
#1841は現在も次を記載しています。
nested designer canary は #1842#1838 と #1839しかし、#1839は
implementation-designerの責務重複を理由にnot plannedで閉じられています。親#1833の後続判断と現在の#1842は、専用designerを導入せず、既存
codebase-investigatorを使う構成へ変更済みです。現在の依存順は次です。#1839はhard predecessorではありません。
必須修正
nested designer canaryはimplementation-worker → codebase-investigator read-only nested canaryへ置換してください。P0-2: Verification Commandsがruntime ACを一つも決定論的に実行しない
AC1、AC2、AC6、AC8〜AC14のVCが
codex --versionだけです。これはCLIの存在確認であり、次を一切証明しません。spawn_agentが呼ばれたagent_typeが選択されたfork_turns: noneが使われたlist_agentsがcompletedを返したIssue本文は「実行可能なcommandは実行時に合わせて記録する」としていますが、その方式ではレビュー時にテストの十分性を判定できません。
さらに、現行mainにはPR #1921で共通の
worktree-agent-runtime-smokeSkillとrunnerが導入されています。これはlinked worktreeを必須とし、root checkoutやcwd mismatchを拒否し、Codexではcodex exec -C <worktree> --json --ephemeral -をstdin promptで実行します。終了コード77、postcondition fingerprint、redactedなsummary.md、証跡用sessionのcleanupまで既に定義されています。#1841が
Required Skills: なしのまま独自手順を採用すると、runtime-smokeの正本が二つになります。また、リポジトリのruntime verification policyでは、
decision: immediateのACにruntime-verification: trueタグを付け、SKIP exit 77、fallback failure、証跡要件をVCへ落とす必要があります。#1841のACにはタグがありません。必須修正
Required Skillsにworktree-agent-runtime-smokeを追加する。<!-- runtime-verification: true -->を付ける。origin/mainのexact SHAに束縛されたclean linked worktreeへ変更する。P0-3: AC5の「negative test」は現状では反証不能
AC5は「write-capable agentが別のwrite-capable agentを起動しないnegative case」を要求しています。一方、Stop Conditionsには「nested SubAgent delegationが必要になった場合は停止」とあります。
これでは二つの解釈しかありません。
禁止されたnested spawnを実際に試す
→ Stop Conditionに抵触する。
通常のsmokeでnested spawnが観測されなかったことだけ確認する
→ 「今回たまたま起動しなかった」だけであり、拒否契約のnegative testではない。
agent-local instructionとpermission profileはsecurity boundaryではないことを、
implementation-worker自身も明記しています。必須修正
AC5は次のいずれかに変更すべきです。
最小案
これは「negative test」ではなく、observed absence checkです。
本当に拒否動作を検証するなら、正確な禁止tool callと期待エラーを定義した別Issueに分離する必要があります。
P0-4: implementation-workerに渡す安全なsmoke taskが未定義
implementation-workerは以下の契約です。issue_number必須implement-issueSkillを正本として実装IMPLEMENT_RESULT_V1を返すところが#1841は、workerへ何を依頼し、どの終了状態を成功とするかを定義していません。
通常どおり実装させれば、branch、worktree、ファイル、PRの変更が発生し得るため、Allowed Pathsなし・non-mutation ACと衝突します。単に「markerを返せ」と依頼すれば、custom roleの起動確認にはなりますが、productionのimplementation flowを証明したことにはなりません。
必須修正
Outcomeを次の範囲へ狭めてください。
そのうえで、次をIssueに固定する必要があります。
issue_number: 1841fork_turnsIMPLEMENT_RESULT_V1の終了分類既存output contractに「no-op diagnostic」を表現できない場合は、このIssueでは実行不能です。agent contractの追加変更を別Issueとして先行させる必要があります。
P0-5: AC11は「引数が受理されたこと」と「schemaに公開されたこと」を混同している
Codex CLI 0.146.0のV2 schema生成では、
agent_typeはruntime optionによってmodel-visible propertiesから削除されます。modelとreasoning_effortも別optionによって削除されます。したがって、agent_type付きcallがparserに受理されたことだけでは、モデルにそのfieldが公開されていたことを証明できません。([GitHub]1)また、
SpawnAgentArgs自体はagent_typeをoptionalで受理し、fork_turns省略時はallへdefaultします。今回のsmokeではfork_turns: noneを実際のcall argumentsで確認する必要があります。([GitHub]2)必須修正
AC11を二つに分けてください。
codex exec --jsonがmodel-visible schemaを出力しない場合、AC11aはenvironment blockerです。成功したtool callやagentの自己申告で代替してはいけません。P0-6: session lifecycleとspawn枠を考慮していない
Codex CLI 0.146.0の
wait_agentV2は、mailbox updateを待つだけでcontentを返しません。最終成功判定にはresult messageの消費とlist_agentsのterminal statusが必要です。この点をAC12へ入れた判断は正しいです。([GitHub]1)ただし、completion watcherは親へ完了通知を送るだけで、agent registryからchildを解放していません。agent pathはregistryに残り、同一pathの予約は
agent path ... already existsで拒否されます。spawn slotも明示的なreleaseまでcounterへ残ります。([GitHub]3)リポジトリ設定は
max_concurrent_threads_per_session = 4です。そのため、read-only、worker i0、worker i1、cleanup、duplicate-name attemptを一つのsessionへ詰め込むと、duplicate path errorより先に
AgentLimitReachedが返る可能性があります。これは上流実装から導けるfailure modeです。([GitHub]4)必須修正
次のfresh ephemeral session matrixへ分割してください。
各sessionは
codex exec --ephemeralで終了させ、session終了をregistry cleanupとして扱います。retryだけは同一sessionでi0 → completed → result consumed → i1を実行します。P1-1: AC9/AC13のPR #1922 cleanup bindingは安全にruntime検証できない
#1841は、実PR #1922のcleanup task nameと、merged PR、Issue、worktree、branchへのbindingをruntimeで確認するとしています。
しかし#1922は既にマージ済みです。
実際に
post-merge-cleanup-workerを起動すれば、branchやworktreeの削除を行う可能性があり、#1841のnon-mutation、Allowed Pathsなし、branch/worktree変更禁止と衝突します。一方、rootが期待名を最終回答へ書くだけなら自己申告に過ぎません。推奨修正
次のどちらかに限定してください。
後者はrepo変更やGitHub mutationが必要になるため、現行#1841には入りません。
P1-2: 「rootがGitHub mutationを保持する」はこのsmokeでは証明できない
GitHub mutationを一件も実行しないsmokeから証明できるのは、次だけです。
「rootだけがGitHub mutation可能」「rootが権限を強制保持している」ことは証明できません。監査ログや実際のmutation actor readbackがないためです。
AC3は次の表現に狭めるべきです。
P1-3:
git status --shortとgit diff --checkではnon-mutationを証明できないgit diff --checkは主にwhitespace error検査であり、変更の不存在を確認するcommandではありません。既にdirtyなファイルに追加変更が入った場合、前後のgit status --short文字列比較だけでも見落としが起こり得ます。PR #1921のrunnerは、この問題に対応するため、HEAD、branch、content hashを含むfingerprint比較へ変更されています。
必須readback
.git/.codex/.agentsの予期しない変更--require-clean-postconditionを利用し、単純なporcelain出力だけを正本にしないでください。P1-4: install provenanceにeffective runtime configurationが不足している
CLI version、binary path、SHA256、OS/arch、auth modeを残す方向は妥当です。
2026年7月29日時点の最新stableはCodex CLI 0.146.0です。また0.146.0では、OpenAI-hosted release infrastructureが既定となりGitHubがfallbackです。したがって単なるversionだけではinstall channelを特定できません。(GitHub)
最低限、次を記録してください。
auth token、cookie、credential path、HOME絶対パスは記録対象外です。
P1-5:
.codex/config.tomlのtopologyコメントが現在の決定と矛盾している現行設定のconcurrency説明は依然として次を想定しています。
しかし#1839はnot plannedで、現在の構成に
implementation-designerはありません。このコメントはruntime挙動を直接変えませんが、#1841が参照するRequired Design Referenceとしてはstaleです。#1841はAllowed Pathsなしなので、この修正を同時実装できません。少なくともknown driftとして記録し、#1841のagent inventory根拠には使用しないでください。
P1-6: read-only agentを固定していない
AC1は「既存read-only agent」としか指定していません。これでは実行者が異なるagentを選択でき、モデル、外部依存、入力契約、実行時間が変わります。
codebase-investigatorはread-onlyですが、既定経路としてGemini delegationを利用するため、Native V2 smokeに外部delegation failureを混入させます。root-levelの単純smokeには、
runtime_dependency_status: codex_nativeかつ外部follow-upを持たないmanual invocation onlyのspark-skimの方が分離性に優れます。推奨分担は次です。
P2: Issue種別とタイトルが実態に合っていない
タイトルは「runtime smokeとnegative testを追加する」ですが、Allowed Pathsはなく、repo file、branch、commit、PRを変更しない契約です。
実態はテスト実装ではなく、既存runtimeを使ったverification executionです。
推奨タイトル:
change_kind: mixedも、利用可能なschemaが許すならverificationまたはoperations相当へ変更する方が正確です。推奨する最小スコープ
#1841で証明する内容を次に限定すべきです。
fork_turns:noneで起動できる。list_agents: completedを確認する。implementation_i0後にimplementation_i1を同一sessionで起動できる。修正後の推奨終了条件
現状のまま実行すると、何らかの
codex execログは得られても、ACごとの証明力が不明なまま「runtime smoke PASS」というコメントが残る可能性が高いです。Issue本文を先に全面改訂するのが適切です。GitHubへのコメント投稿・Issue編集は行っていません。
squne121 commentedon Aug 1, 2026
issue-refinement-loop: approved
anchor comment(OWNER の敵対的レビュー、REQUEST_CHANGES)を起点に、3 iteration で本文を全面改訂した。
decision: immediateに対するruntime-verificationタグ欠如、codex --version等 VC preflight allowlist 外コマンド)で needs-fix。web-researcher が anchor comment の Codex CLI 0.146.0 に関する外部技術主張 6 件を fact-check(5 件 accurate、1 件 inaccurate —wait_agentの message 返却挙動)。これを踏まえ、依存関係修正(実装: .codex/agents/*.toml へ delegation metadata を追加し implementation-designer を新規追加する #1839 除去)、Required Skills: worktree-agent-runtime-smoke追加、runtime-verification タグ付与、# preflight-scope: runtime_onlymarker による VC の決定論的 command 化、AC5 の observed-absence-check 化、AC11/AC12 の schema/effective-role 分離、session matrix、cleanup runtime canary の分離、read-only role のspark-skim固定、install provenance フィールド拡充を反映して全面書き換えた。VCP_UNEXPECTED_PASS、AC5 のVCP_BROAD_SEARCH_PATH_UN)で needs-fix。# baseline-expect: pass追加と## Allowed Pathsの単一括弧記法化(extract_allowed_paths()の誤検知回避)で解消。VERDICT: approve(0 blockers)。issue-contract-review(run_contract_review_once.py --mode execute)を実行し、status: go/readiness_status: go/vc_preflight_status: passを確認した(現在の live body に対する fresh 実行)。squne121 commentedon Aug 1, 2026
Runtime Smoke 実行報告(
worktree-agent-runtime-smoke経由)worktree:
.claude/worktrees/issue-1841-native-multi-agent-v2-bounded-runtime-smbranch:
worktree-issue-1841-native-multi-agent-v2-bounded-runtime-smtested_head:
71f6a26ca1d225db541ae36d35c81807b1032e2f(実行開始時点でorigin/mainと一致。fast-forward で worktree を同期済み)clean_precondition: true(実行前
git status --short空)Install provenance
codex-cli 0.146.0/home/squne/.local/bin/codex/home/squne/.codex/packages/standalone/releases/0.146.0-x86_64-unknown-linux-musl/bin/codex2e863156ed35ecc5253b1e2f907a9143077b9f7cb51942070c61996471ff6e04standalone0.146.0-x86_64-unknown-linux-muslLinuxx86_64ChatGPT(codex login status= "Logged in using ChatGPT")true(.codex/config.toml[features.multi_agent_v2] enabled = true、実 spawn/wait/list で確認)true(AC11/AC14 readback でagent_typeプロパティを実観測)4(.codex/config.tomlmax_concurrent_threads_per_session = 4)AC 結果
readonly-role-smoke実行、spawn_agent(spark-skim, fork_turns:none)→wait_agent→list_agents completedを marker readback で確認。exit 0,expected_markers_missing: []implementation-role-smoke実行、implementation-worker を no-op diagnostic task(issue_number=1841 束縛)で起動しIMPLEMENT_RESULT_V1終了分類を観測。exit 0git status --shortが空。root 以外由来の GitHub mutation event は観測されずreadonly-role-smokeを--require-clean-postconditionで実行、postcondition_unexpected_changes: []rg -n "nested delegation" .claude/skills/impl-review-loop/steps/step-1-implementation.mdは no-match(exit 1)。当該文言は同 skill 内preparation.md:334に存在(runner は nested delegation を行わず、exact executor 以外の...)が、Issue に記載された対象ファイルには存在しない。Allowed Paths が空のため VC 自体の修正はできない。observed absence check(write-capable child spawn event 不在)自体は本 smoke 全体を通じて成立(write-capable-to-write-capable spawn は一度も実行していない)preflight_codex_flags/EXIT_SKIP=77経路で静的確認、PASS への昇格経路は存在しない)readonly-role-smoke-ac6(--require-clean-postconditionなし)exit 0git diff --name-only origin/main -- .codex/hooks.json出力なしretry-smoke実行、implementation_i0completed 確認後に同一 session 内でimplementation_i1起動・result 消費を確認。exit 0duplicate-path-negative実行、2 回目のspawn_agent(同一 agent path)が"agent path"と"already exists"を含むエラーで拒否されたことを marker readback で確認。exit 0implementation-role-smokeのRTS_TASK_MESSAGE_SENT:readback で、送信した task message が Issue番号・snapshot_hash・iteration・allowed_paths・実行コマンド・AC番号・tested_sha を実値で含むことを確認agent-type-schema-probe実行。model-visiblespawn_agenttool schema の readback:RTS_SCHEMA_AGENT_TYPE_PRESENT: true/RTS_SCHEMA_AGENT_TYPE_RAW: "Agent type override for the new agent. Omit unless explicitly asked. ... Available roles include \implementation-worker`: ..."`not exposedとして正直に報告)RTS_CHILD_REQUESTED_ROLE: implementation-worker/RTS_CHILD_EFFECTIVE_ROLE: not exposed(runtime が effective role/permission profile を child metadata として公開しないことを observed absence として記録)implementation-role-smokeでRTS_WAIT_AGENT_RESULT_CONSUMED→RTS_LIST_AGENTS_COMPLETEDの順序を実行時 message で確認(mailbox activity のみでは完了とみなさない設計)agent-type-schema-probeのRTS_SPAWN_ARGS_AGENT_TYPE: implementation-workerreadback(実 call の request argument 実値)tested_head(実行開始時) =origin/main=71f6a26ca1d225db541ae36d35c81807b1032e2f実行中に観測した非決定性(参考情報・failへの分類なし)
agent-type-schema-probeとreadonly-role-smokeは同一 prompt での複数回試行で、list_agentsの terminal state 読み取りタイミングによりRTS_STEP_FAILED: child state was runningを自己申告する回が発生した(wait 直後はcompletedへ遷移していないケースがある)。最終的に採用した公式 evidence run はいずれも全 marker 観測・exit 0 だが、この race は native Multi-Agent V2 runtime の既知の挙動として記録する。Postcondition
実行後
git status --short(worktree 内): 出力なし(クリーン)。origin/mainはテスト実行中にさらに進行した(be85538c...)が、これは tested_head 固定方針に反する再実行要求ではなく、通常の main の活発な進行として記録するのみ(本 smoke は origin/main の全履歴に対する継続的追従を要求しない)。Evidence 保存先(worktree-local, untracked, gitignore 対象)
artifacts/runtime-smoke/readonly-role-smoke/summary.mdartifacts/runtime-smoke/readonly-role-smoke-ac6/summary.mdartifacts/runtime-smoke/implementation-role-smoke/summary.mdartifacts/runtime-smoke/retry-smoke/summary.mdartifacts/runtime-smoke/duplicate-path-negative/summary.mdartifacts/runtime-smoke/agent-type-schema-probe/summary.mdCloses #1841 の意図には該当しない(実装 Issue ではなく検証 Issue。PR 作成なし、証跡は本コメントのみ)。
squne121 commentedon Aug 1, 2026
[issue-1841-ac5-vc-fix] AC5 の Verification Command が誤って
step-1-implementation.mdを検索していたため、正しい対象ファイル.claude/skills/impl-review-loop/steps/preparation.mdに修正しました(nested delegationの記述は preparation.md 334行目に実在)。squne121 commentedon Aug 1, 2026
AC5 再検証(issue-author 修正後)
前回コメント(#issuecomment-5151673322)で AC5 のみ fail していた原因(VC が誤ったファイルを参照していた)は issue-author により修正済み。修正後の live 本文の AC5 VC を再取得し、同一 worktree(
.claude/worktrees/issue-1841-native-multi-agent-v2-bounded-runtime-sm, branchworktree-issue-1841-native-multi-agent-v2-bounded-runtime-sm, HEAD71f6a26ca1d225db541ae36d35c81807b1032e2f)で再実行した。AC5 VC 実行結果
worktree の git 状態は実行前後で変化なし(
git status --short出力なし、HEAD 不変)。repo ファイルへの変更は行っていない(read-only 検証)。全15 AC サマリ
全15 AC が現状 pass。
squne121 commentedon Aug 1, 2026
全15 AC(AC1〜AC15)がpassし、Codex CLI 0.146.0 による native Multi-Agent V2 runtime smoke(spawn_agent/wait_agent/list_agents)の証跡を Issue コメントに記録済みのためクローズする。
Allowed Paths なし(read-only)、リポジトリへの変更なし。PR は本 Issue の Stop Conditions により作成せず。