Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1833"
goal_ref: "implementation-worker と implementation-designer の最小 agent 定義を追加し、任意の read-only 設計調査を明示する"
change_kind: codeParent Issue
Parent Goal Ref
- Goal: root/main ownership を維持した native Multi-Agent V2 minimal harness。
- Desired Destination: worker/designer の最小 behavioral contract。
Current Validated Scope
- current main に
implementation-designer.tomlはなく、設定コメント以外の runtime consumer はない。 - 実装: .codex/config.toml へ Multi-Agent V2 を有効化し max_depth 依存を撤去する #1835 / PR feat(codex): enable multi-agent v2 config #1879 の V2設定は current main に merged 済み。
Remaining Parent Gaps
- designer を使う実 runtime canary は 実装: Claude Code / Codex CLI の bounded read-only nested delegation canary を実行する #1842 が所有する。
Outcome
implementation-worker が任意で一件の read-only design investigation を implementation-designer に委譲でき、designer は結果を返すだけで編集・テスト・Git/PR操作・child起動を行わない agent definition になる。
In Scope
.codex/agents/implementation-worker.tomlに、designer への任意・一件・read-only の design investigation を明記する。.codex/agents/implementation-designer.tomlを追加し、approved contract と関連コードを read-only で分析し、設計上の観測とリスクを返す責務を明記する。- designer が編集、テスト実行、Git操作、PR操作、Issue/GitHub mutation、child agent 起動を行わないことを明記する。
- read-only は behavioral contract であり、強制 sandbox や security boundary の証明ではないことを明記する。
Out of Scope
- 全 agent TOML への
DELEGATION_POLICYblock 一括追加。 - structured output schema、graph policyとの parity checker、graph validator、ledger、digest。
.codex/hooks.jsonの変更、write-capable nested delegation。
Acceptance Criteria
- AC1: 変更対象は原則として worker TOML と新規 designer TOML の二つだけである。
- AC2: worker の任意委譲は designer 一件の read-only design investigation に限定される。
- AC3: designer の禁止事項(編集、テスト、Git、PR、GitHub mutation、child起動)が明示される。
- AC4: read-only instruction を sandbox/security proof と主張しない。
- AC5: 新しい structured output schema、graph parity checker、
.codex/hooks.json変更を導入しない。
Verification Commands
# AC1
# baseline-expect: pass
$ git diff --name-only origin/main -- .codex/agents/implementation-worker.toml .codex/agents/implementation-designer.toml
# AC2
$ rg -n "implementation-designer" .codex/agents/implementation-worker.toml
# AC3
# baseline-expect: fail
$ rg -n "child" .codex/agents/implementation-designer.toml
# AC4
# baseline-expect: fail
$ rg -n "behavioral" .codex/agents/implementation-designer.toml
# AC5
# baseline-expect: pass
$ git diff --name-only origin/main -- .codex/hooks.jsonAllowed Paths
.codex/agents/implementation-worker.toml.codex/agents/implementation-designer.toml
Dependencies
- Completed prerequisite: 実装: .codex/config.toml へ Multi-Agent V2 を有効化し max_depth 依存を撤去する #1835 / PR feat(codex): enable multi-agent v2 config #1879.
- 実装: digest-bound subagent task packet を追加し #790 を統合する #1837 への hard dependency はない。
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- 実 runtime が agent-local instruction を security enforcement として扱う必要がある場合。
- Allowed Paths 外の変更、または
.codex/hooks.json変更が必要な場合。 - worker/designer以外の agent TOML 変更が必要な場合。
- graph policy、parity checker、structured output schema を追加する必要がある場合。
- designer に編集、テスト、Git、PR、GitHub mutation、child起動のいずれかが必要な場合。
- read-only behavioral contract を security proof としなければならない場合。
Required Skills
- なし
Required Design References
docs/dev/agent-skill-boundaries.md.codex/config.toml
Runtime Verification Applicability
decision: deferred
reason: "本 Issue は agent definition の behavioral contract。live nested canary は #1842 が所有する。"
deferred_destination: "#1842"
deferred_verification_condition: "native runtimeでworkerからdesignerのspawn/joinを観測できること"Scope Delta(任意)
N/A
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Activity
squne121 commentedon Aug 1, 2026
implementation-designer って必要?
Issueそのものが作業計画として作成しているつもり、運用設計のつもりなんだけど。さらに作業計画を出させる?
ClaudeCodeには同等のサブエージェントを作らない?
squne121 commentedon Aug 1, 2026
判定
REQUEST_CHANGES。現状の #1839 は、そのままでは実装不能です。
指定コメントの懸念は妥当です。特に「
implementation-designerは本当に必要か」という問いに対する根拠がなく、既存agentとの責務重複、Claude Codeとの非対称、validatorとの矛盾が残っています。推奨判断は、#1839 を現在の形では
not plannedとし、既存codebase-investigatorを再利用する設計へ戻すことです。Findings
Blocker 1: Allowed Paths内ではCIを通せない
#1839 は変更対象を次の2ファイルに限定しています。
.codex/agents/implementation-worker.toml.codex/agents/implementation-designer.toml同時に、validator・fixture・テストの変更をスコープ外にしています。
しかし現在の
scripts/check-codex-agents.mjsは、agentファイルの一覧を固定し、runtime-contract fixtureのagent件数と実ファイル件数が一致することを検証しています。現在は14 agentを前提としており、新しいTOMLを追加すると、少なくとも以下の追従が必要です。scripts/check-codex-agents.mjstests/fixtures/codex-agent-config/expected-runtime-contract.jsonつまり、Allowed Pathsを守ればvalidatorが失敗し、validatorを直せばAllowed Paths違反になるため、現契約では完了可能なPRを作れません。
また、「設定コメント以外のruntime consumerはない」という
Current Validated Scopeも事実と一致しません。実際にはagent inventory validatorとruntime-contract fixtureがconsumerです。P1:
implementation-designerの固有責務がないリポジトリには既に以下が存在します。
implementation-worker: live Issueを正本として実装するagentcodebase-investigator: 関連コード、影響範囲、依存関係、リスクをread-onlyで調査するagentimplementation-worker.tomlは、承認済みIssueを読み、implement-issueskillを正本として実装する責務を既に持っています。codebase-investigator.tomlは、コードベース調査、evidence、影響範囲、blockerをread-onlyで返す役割を既に持っています。さらに責務境界文書では、semantic planningはIssue refinement側で一度だけ行い、consumerが再分類しない設計になっています。SubAgentは役割、Skillは手順という分離も正本化されています。
したがって、新しいdesignerは次のいずれかになります。
codebase-investigatorと同じ調査を行う重複agent現Issueには、designerだけが処理できる入力、固有の出力、呼出条件、既存agentでは不足する理由がありません。
P1: canaryのためにproduction surfaceを作っている
親 #1833 は
implementation-worker → implementation-designerを固定判断として記載し、#1842 はそのedgeを実runtimeで試すcanaryになっています。しかし、productionで必要な処理が先に存在するのではなく、nested canaryを実施するために新しいagent役割を作っている構造です。これは順序が逆です。
まず既存のread-only agentでnested delegationが有益かを実測し、効果が確認された後に専用roleへ分離すべきです。OpenAIの公式資料でも、custom agentは狭く明確な責務に限定し、subagent利用には追加トークンとcoordination overheadが発生すると説明されています。([OpenAI Developers]1)
現状なら、次のどちらかで十分です。
codebase-investigatorcodebase-investigatorの限定的な調査委譲後者が実際の運用で反復利用されることを確認してから、専用designerを検討するのが妥当です。
P1: #1833・#1839・#1842 の依存関係が矛盾している
親 #1833 のdependency orderは、概ね次の順序です。
一方、#1842 は次のように記載しています。
designer定義が存在しない状態では、named custom agentとしてdesignerを起動できないため、この依存定義は成立しません。
さらに #1842 には次の問題があります。
codex --versioncodex --versionではspawn、join、worker継続、child non-mutationを検証できない#1839だけを直しても、#1842の契約も同時に再整合しなければなりません。
P1: Claude Codeとの非対称性は未解決。ただし両方に追加すればよいわけではない
現在のClaude Code側には既に次があります。
.claude/agents/implementation-worker.md.claude/agents/codebase-investigator.mdClaude側のimplementation-workerは、nested delegationを最小限にし、現状ではtest-runnerのみを許可しています。また、tools一覧にAgent toolがなく、designerを直接spawnする構成ではありません。
Claude Code自体は現在nested subagentをサポートしています。しかしAnthropicの公式ガイダンスでは、planning・implementation・testingのように文脈共有が大きい工程はmain conversationで扱い、同種の処理を同じ指示で繰り返しspawnする場合にcustom subagent化することを推奨しています。([code.claude.com]2)
したがって、指定コメントへの回答は次です。
codebase-investigatorの利用で足りるCodexだけに残す場合も、Codex-only roleである理由とparity exceptionが必要です。現在のparity checkerではCodex-only例外が事実上Spark系列に限定されているため、ここでもvalidator・fixture変更が発生します。
P2: read-only designerは独立したsecurity boundaryにならない
#1839自身も、read-onlyはbehavioral contractでありsecurity proofではないと認めています。この点は正しいです。
Codex公式仕様でも、subagentには親turnのruntime overrideやpermission selectionが再適用されます。したがって、designer TOMLに禁止事項を書いても、独立した権限分離境界にはなりません。([OpenAI Developers]1)
PR #1879系の判断でも、agent-local permission profileを実効sandboxとして信用しない方針が採られています。
つまりdesigner追加の価値はセキュリティではなく、純粋に「別contextでの分析品質向上」に限られます。その品質向上を示す指標がIssueにありません。
指定コメントへの直接回答
implementation-designerは必要か現在の定義では不要です。
Issue契約と既存
codebase-investigatorの間に、designerだけが所有する責務がありません。Issueが作業計画なのに、さらに作業計画を出させるのか
出させるべきではありません。
workerが追加調査を必要とする場合も、designerがIssueのOutcome・AC・Allowed Pathsを再設計してはいけません。許されるのは、承認済み契約の範囲内での次のようなread-only evidence収集です。
これは既存
codebase-investigatorの責務です。Claude Codeにも同等agentを作るべきか
現時点では作るべきではありません。
Codex側designerを採用しないのが第一選択です。将来、専用designerを反復利用する実績ができた場合に、Codex・Claude双方へ同じsemantic roleを追加するのが適切です。
推奨処置
推奨案: #1839 を
not planned#1839を「既存
codebase-investigatorで代替可能」としてcloseする。#1833から固定された
implementation-worker → implementation-designeredgeを削除する。#1842を次のいずれかへ変更する。
implementation-worker → codebase-investigatorの限定canary.codex/config.tomlの「root + worker + designer」というconcurrency説明を、実在するagent構成へ修正する。#1833のdependency graphと各Issueのnative dependencyを再同期する。
designerを残す場合の最低条件
残すなら、#1839の全面改訂が必要です。
scripts/check-codex-agents.mjs、runtime-contract fixture、関連テストをAllowed Pathsへ追加designerが既存
codebase-investigatorでは代替不能な理由を記載呼出条件を明示
designerがIssue契約を変更・再解釈しないことを明記
出力を最低限構造化
workerが助言を採用しない場合も継続可能にする
#1839を#1842のhard predecessorにする
#1842のVCを実際のspawn/join traceへ置換
Claude parityを実装するか、Codex-only例外を正式に定義
モデル呼出し回数、推論量、token budgetを限定する
最終結論
このIssueは「最小Multi-Agent harness」を掲げながら、実際には次の表面積を増やします。
その一方で、既存
codebase-investigatorとの差分は定義されていません。したがって、#1839は現状のまま実装せず、既存agent再利用へ縮退するのが妥当です。指定コメントは設計を止めるだけの十分なblocking feedbackです。
squne121 commentedon Aug 1, 2026
issue-refinement-loop: superseded_by_decision
#1839をnot plannedとして close し、既存codebase-investigatorを再利用する設計へ縮退することを明示的に決定した。superseded_by_decisionsqune121)が close / 前提不採用を明示しているimplementation-designerという新規 role 自体の固有責務が否定されている)codebase-investigator)が決定論的に再利用可能baseline-expect注釈欠落(AC1/AC3/AC4/AC5)を修正済み。この修正は close 判断に影響しない。not plannedへ収束)Owner Decision(要約)
implementation-designerは既存codebase-investigatorと重複し、固有責務が定義されていない。scripts/check-codex-agents.mjsの runtime-contract fixture 検証を通せず、Allowed Paths を守れば CI が失敗し、CI を直せば Allowed Paths 違反になる。Recommended follow-up(本 Issue のスコープ外・別 Issue 側の判断が必要)
#1833:implementation-worker → implementation-designerの固定 edge を dependency graph から削除する要否の再検討。#1842:implementation-worker → codebase-investigatorの限定 canary へ変更する、または#1842自体もnot plannedとする要否の再検討。.codex/config.tomlの「root + worker + designer」concurrency 記述の実態整合。これらは
#1839の Allowed Paths / Outcome の範囲外であり、本 loop では編集しない。人間または別 issue-refinement-loop 実行での判断を推奨する。