Skip to content

exec-server: route remote network policy decisions - #31458

Draft
viyatb-oai wants to merge 4 commits into
codex/viyatb/remote-exec-network-proxyfrom
codex/viyatb/remote-exec-network-guardian
Draft

exec-server: route remote network policy decisions#31458
viyatb-oai wants to merge 4 commits into
codex/viyatb/remote-exec-network-proxyfrom
codex/viyatb/remote-exec-network-guardian

Conversation

@viyatb-oai

Copy link
Copy Markdown
Contributor

Summary

  • route executor-local proxy policy misses back to the process-scoped core policy decider
  • preserve environment, execution, command, and tool-call attribution for Guardian decisions
  • correlate concurrent decisions and fail closed on disconnect, process exit, missing deciders, mismatched process IDs, and stale responses
  • keep the callback opt-in backward compatible; MITM, credential injection, and hooks remain out of scope

Stack

Depends on #31453, which starts and owns the managed proxy on the executor.

Testing

  • just test -p codex-network-proxy policy_decision_callback_opt_in_is_backward_compatible
  • just test -p codex-exec-server network_policy_decisions
  • just test -p codex-core remote_guardian_receives_exact_trigger_for_network_request (compiled and completed through the standard no-remote-environment skip locally)
  • just fix -p codex-exec-server -p codex-network-proxy -p codex-core
  • just fix -p codex-exec-server
  • just fmt

A final core rebuild after extracting the relay module hit the machine's local disk ceiling while writing Cargo metadata; the extracted executor tests and scoped Clippy pass completed successfully.

Comment thread codex-rs/exec-server/src/server/registry.rs
Comment thread codex-rs/exec-server/src/process_sandbox.rs
Comment thread codex-rs/exec-server/src/network_policy_decisions.rs Outdated
Comment thread codex-rs/exec-server/src/client.rs
Comment thread codex-rs/network-proxy/src/proxy.rs
Comment thread codex-rs/core/tests/suite/network_approval.rs
@viyatb-oai
viyatb-oai force-pushed the codex/viyatb/remote-exec-network-guardian branch from cb396a3 to 431da13 Compare July 9, 2026 17:18
Co-authored-by: Codex noreply@openai.com
Co-authored-by: Codex noreply@openai.com
@viyatb-oai
viyatb-oai force-pushed the codex/viyatb/remote-exec-network-guardian branch from 431da13 to 080059c Compare July 9, 2026 17:39
viyatb-oai and others added 2 commits July 9, 2026 21:42
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex noreply@openai.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants