Skip to content

feat(core): add network constraints schema to requirements.toml#10958

Open
viyatb-oai wants to merge 5 commits intomainfrom
codex/viyatb/pr3-requirements-network
Open

feat(core): add network constraints schema to requirements.toml#10958
viyatb-oai wants to merge 5 commits intomainfrom
codex/viyatb/pr3-requirements-network

Conversation

@viyatb-oai
Copy link
Collaborator

@viyatb-oai viyatb-oai commented Feb 7, 2026

Summary

Add requirements.toml schema support for admin-defined network constraints in the requirements layer

@viyatb-oai viyatb-oai requested a review from bolinfest February 7, 2026 00:26
Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 942e704e68

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@viyatb-oai viyatb-oai changed the title feat(core): add requirements-driven network proxy config feat(core): add network constraints schema to requirements.toml Feb 7, 2026
@viyatb-oai viyatb-oai force-pushed the codex/viyatb/pr3-requirements-network branch from 040e99f to 0a98c5e Compare February 7, 2026 07:11
pub allowed_sandbox_modes: Option<Vec<SandboxMode>>,
pub allowed_web_search_modes: Option<Vec<WebSearchMode>>,
pub enforce_residency: Option<ResidencyRequirement>,
pub network: Option<NetworkRequirements>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this should get the #experimental annotation? See other examples in this file.

pub mcp_servers: Option<Sourced<BTreeMap<String, McpServerRequirement>>>,
pub(crate) exec_policy: Option<Sourced<RequirementsExecPolicy>>,
pub enforce_residency: ConstrainedWithSource<Option<ResidencyRequirement>>,
pub network: Option<Sourced<NetworkRequirementsToml>>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not contain a field like NetworkRequirementsToml. The on-disk TOML representation should be distinct from the type that defines constraints for a value (or in this case, a set of values).

One thing that is somewhat unclear is what this is the network policy for. Today, I think it is meant to govern shell commands, but would it ever have to govern local MCP servers, as well? I suppose that could be configured elsewhere...

Currently, this feels like this tries to define "a specific network policy" rather than "a range of acceptable values for a network policy."

Maybe we're not ready to commit to that sort of API, in which case, perhaps we should try to make it clear that this is experimental/unstable?

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