Skip to content

Make restricted network mode a runtime capability #3761

Done

Description

@integry

Restricted mode runs agents with --network none and a bind-mounted Unix-socket egress proxy (packages/core/src/network/egressExecution.ts). That only works for a local Docker runtime.

Acceptance:

  • Network policy expressed in AgentRunSpec as an allowlist (hosts/ports) plus mode (open | restricted).
  • Each runtime declares whether and how it enforces restricted mode; DockerRuntime keeps the current proxy implementation.
  • Admission refuses a restricted-mode run on a runtime that cannot enforce it (clear error, surfaced in UI/MCP admission report) instead of silently running open.
  • MCP grant networking (propr-agent-mcp) expressed as a capability too, with a fallback to a reachable URL + per-run token when private networking is unavailable.

Implementation

Refactor egressExecution.ts and agentContainerNetwork.ts into DockerRuntime-owned helpers driven by the spec. Add capability checks to agent run admission (docs/docs/architecture/agent-run-admission.md, packages/api/services/agentRunAdmissionReport.ts).

Activity

  1. propr-dev commented on Nov 24, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3761/claude-opus-5-5-make-restricted-network-m-20261124-0506-r93
    • Base Branch: 3758-epic-runtime-abstraction-sc0
    • Worktree: issue-3761-20261124-0506-claude-opus-5-5-r93

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions