Repository navigation
Open
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: research
parent_issue: "#1859"
goal_ref: "Codex native spawn_agent/collaboration runtime が .codex/agents/<agent>.toml の default_permissions を sub-thread sandbox へ実効的に適用しているかを検証する"
change_kind: research-onlyParent Issue
Outcome
Issue #1859 の AC4 runtime smoke(PR #1864、evidence: artifacts/codex-permission-profile-smoke/pr-1864/custom-agent-dispatch-findings.json)で、codebase-investigator(loop-protocol-readonly 宣言)と implementation-worker(loop-protocol-rtk 宣言)の両方の spawn_agent sub-thread が、各々の agent-local .codex/agents/*.toml の default_permissions ではなく root session の実効 policy(loop-protocol-personal-dev)と同一の turn_context.permission_profile を示した。この事象の原因(spawn_agent 実装の仕様上の挙動か、設定の不備か、既知の制限か)を調査し、agent-local profile が実効的に enforce されているかどうかの結論が本Issueコメントに記録され、修正が必要な場合は対応する implementation issue が起票されてlinkされる状態。
In Scope
- Codex CLI(0.146.0 系列)の
spawn_agent/collaborationruntime のソースまたは公式ドキュメントで、sub-thread sandbox に agent-local profile がどう適用される設計かを調査する - WSL2 sandbox subsystem の既知の破損(
codex sandbox linux -- pwdが ENOENT で失敗する事象)が本発見の直接原因かどうかを切り分ける - 正常な sandbox subsystem を持つ環境(Linux ネイティブ等)で同じ spawn_agent dispatch smoke を再実行し、結果が変わるかを確認する
loop-protocol-readonly/loop-protocol-rtk宣言が spawn_agent sub-thread に実際に反映されるべきかどうかの仕様確認
Out of Scope
.codex/agents/*.tomlの profile 定義そのものの変更(原因確定後、修正が必要な場合は別 implementation issue)- Issue 実装: Codex permission profile の root default を :workspace に設定し skills/list 回帰を修正する #1859 / PR fix: Codex permission profile root default を :workspace に復元する (#1859) #1864 の permission profile 実装自体の再変更
Acceptance Criteria
- AC1: spawn_agent sub-thread への agent-local profile 適用に関する Codex CLI の設計・既知issue・ドキュメントの調査結果が本Issueコメントに記録されている
- AC2: WSL2 sandbox 破損が本発見の直接原因かどうかの切り分け結果が本Issueコメントに記録されている
- AC3: 結論(enforce されている/されていない/不明)と、修正が必要な場合の対応 implementation issue の起票有無が本Issueコメントに記録されている
Verification Commands
# AC1
$ test -f artifacts/codex-agent-profile-enforcement-research/findings.md# AC2
$ test -f artifacts/codex-agent-profile-enforcement-research/sandbox-isolation-check.md# AC3
$ test -f artifacts/codex-agent-profile-enforcement-research/conclusion.mdAllowed Paths
- artifacts/codex-agent-profile-enforcement-research/
Stop Conditions
- Outcome / Scope / AC が検索可能な形で記載されていない場合は即停止
- Allowed Paths 外への書き込みを試みた場合は即停止
- 権限不足(permission denied)により操作が完了できない場合は即停止
- 成果物の書き込みに失敗した場合(I/O エラー等)は即停止
Handoff Contract
Current ObjectiveBounded Current ContextOpen QuestionsNext ActionArtifact Refs
Notes for Reviewer
- 本Issueは PR fix: Codex permission profile root default を :workspace に復元する (#1859) #1864(Issue 実装: Codex permission profile の root default を :workspace に設定し skills/list 回帰を修正する #1859)の AC4 runtime smoke で発見された事象への follow-up。発見時点の evidence:
artifacts/codex-permission-profile-smoke/pr-1864/custom-agent-dispatch-findings.json(IMPORTANT_FINDING_agent_local_profile_not_applied_to_spawn_agent_sandbox)。 - 発見自体は Issue 実装: Codex permission profile の root default を :workspace に設定し skills/list 回帰を修正する #1859 の config 変更(
:workspace→loop-protocol-personal-dev)が原因ではなく、既存の spawn_agent runtime の挙動と見られる(pre-existing)。
Metadata
Metadata
Assignees
Labels
No labels
Activity