Skip to content

Proxy Codex apply_patch onto Corbits file tools - #505

Open
TheGreatAxios wants to merge 1 commit into
mainfrom
cl-6696-proxy-codex-native-tool-names-onto-corbits-tools
Open

Proxy Codex apply_patch onto Corbits file tools#505
TheGreatAxios wants to merge 1 commit into
mainfrom
cl-6696-proxy-codex-native-tool-names-onto-corbits-tools

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • On Codex sessions, advertise and execute an apply_patch proxy that parses the Codex patch envelope and forwards through posix write_file / edit_file / delete_file (permission plugins included).
  • Primary Skywalker still denies product mutation tools; implement/docs leaves keep apply_patch via allowlists. Docs leaves refuse Delete/Move when delete_file is not allowed.
  • Centralizes product-mutation tool ownership so thrash, auto-allow, classify, and primary-deny treat apply_patch like the write trio.

Verification

  • bun run typecheck and pre-commit build pass
  • Targeted: codex-apply-patch, codex-tool-proxies, codex-tool-mount, product-mutation-tools, tool-sets tests pass
  • Full bun run test running / to confirm on CI

Fixes CL-6696

Why: Codex-trained models call apply_patch from pinned instructions, but
Corbits only advertised write_file/edit_file/delete_file. That dialect
mismatch hurts Codex evals versus Codex-native harnesses.

What changed: Codex-only apply_patch proxy (parse envelope, forward through
posix write/edit/delete), shared product-mutation ownership, primary deny
unchanged, IMPLEMENT/DOCS allowlists, docs leaves refuse Delete/Move via
allowDelete. Bridge text left for the next stacked change.

Test plan: bun test on codex-apply-patch, codex-tool-proxies,
codex-tool-mount, product-mutation-tools, tool-sets; bun run typecheck.
@linear-code

linear-code Bot commented Aug 22, 2026

Copy link
Copy Markdown

CL-6696

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