Skip to content

POC: Add Code Mode file broker#22523

Draft
lt-oai wants to merge 1 commit into
codex/file-tools-poc-01-contractfrom
codex/file-tools-poc-02-broker
Draft

POC: Add Code Mode file broker#22523
lt-oai wants to merge 1 commit into
codex/file-tools-poc-01-contractfrom
codex/file-tools-poc-02-broker

Conversation

@lt-oai
Copy link
Copy Markdown
Contributor

@lt-oai lt-oai commented May 13, 2026

Why

We need an explicit runtime boundary for moving bytes between file refs before wiring provider adapters or model-facing tools.

What

  • Adds CodeModeFileBroker in codex-core.
  • Supports env://current/... reads, writes, and copies.
  • Makes the broker the owner of side effects, not just ref resolution.
  • Rejects traversal and returns clear unsupported-provider errors for Library/connector refs until adapters are implemented.

Testing

  • cargo test -p codex-core file_broker
  • just fmt

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.

1 participant