Skip to content

[codex] Explore executor-bound path API#18241

Draft
starr-openai wants to merge 9 commits intomainfrom
starr/executor-path-ref-20260416
Draft

[codex] Explore executor-bound path API#18241
starr-openai wants to merge 9 commits intomainfrom
starr/executor-path-ref-20260416

Conversation

@starr-openai
Copy link
Copy Markdown
Contributor

Summary

Draft follow-up stacked on #18209 to explore the blast radius of an executor-bound path API.

This adds ExecutorPath, ExecutorPathRef, and ExecutorPathAccess as an explicit split between path identity and operation access mode. The exploratory conversions use:

  • path.unsandboxed() for Codex harness/config reads such as config layers, AGENTS.md, skills, agent roles, and git trust discovery
  • path.with_sandbox(sandbox) for model/tool initiated file operations such as view_image and apply_patch

What changed

  • Threads executor-bound paths through skills loading and skill injection.
  • Adds config loading support for separate local vs project executor filesystems.
  • Converts AGENTS.md and agent role loading to executor-bound path reads.
  • Converts view_image to read through a sandboxed executor path access object.
  • Converts apply_patch internals to use sandboxed executor path access for read/stat/write/create/delete operations.

Notes

This is intentionally broad and exploratory. The goal is to make the API pressure visible before deciding what should be trimmed into a reviewable final shape.

Validation

  • cd codex-rs && just fmt
  • git diff --check

Tests/builds were not run locally.

@starr-openai starr-openai force-pushed the starr/executor-path-ref-20260416 branch from 5646ebf to 9e5f1c3 Compare April 17, 2026 00:45
Base automatically changed from pakrym/use-filesystem-abstraction to main April 17, 2026 00:51
@starr-openai starr-openai force-pushed the starr/executor-path-ref-20260416 branch from 9e5f1c3 to c6a6f54 Compare April 17, 2026 00:53
Adds executor-bound path helpers and threads them through skills, config loading, AGENTS.md loading, view_image, and apply_patch to evaluate the API blast radius. Harness-owned reads use explicit unsandboxed access while tool-call paths carry the sandbox context through the path access wrapper.

Validation: just fmt; git diff --check.

Co-authored-by: Codex <noreply@openai.com>
@starr-openai starr-openai force-pushed the starr/executor-path-ref-20260416 branch from c6a6f54 to 150cb18 Compare April 17, 2026 01:17
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.

2 participants