Skip to content

fix(codex): keep SRT MCP on managed Unix sockets - #65

Merged
chihsuan merged 2 commits into
mainfrom
fix/srt-mcp-unix-socket
May 22, 2026
Merged

fix(codex): keep SRT MCP on managed Unix sockets#65
chihsuan merged 2 commits into
mainfrom
fix/srt-mcp-unix-socket

Conversation

@chihsuan

Copy link
Copy Markdown
Member

Context

RSM-3734 SRT runs can fail when Codex cannot write stdout under local transport pressure.

TL;DR

Keep SRT Codex MCP on a token-authenticated Unix socket instead of loopback TCP.

Summary

  • Add SRT network.allowUnixSockets for the per-session MCP socket directory.
  • Keep local SRT Codex MCP on the managed Unix socket unless the bind falls back.
  • Prioritize stdout draining over stderr tailing for Codex app-server ports.
  • Update SRT MCP docs and regression tests.

Alternatives

  • Keep loopback TCP under SRT; rejected because SRT now supports scoped Unix socket allowances.
  • Broaden Unix socket access; rejected in favor of the per-session socket directory only.

Test Plan

  • make all
  • Targeted SRT/MCP app-server and sandbox settings tests

chihsuan added 2 commits May 22, 2026 12:18
Summary:
- Allow SRT settings to grant access to specific Unix socket paths.
- Keep local Codex MCP on the managed Unix socket under SRT.
- Prioritize stdout draining over stderr tailing for app-server ports.

Rationale:
- Current SRT supports network.allowUnixSockets, so the MCP channel no
  longer needs to move through loopback TCP just because SRT is enabled.
- The allowance is limited to the per-session MCP socket directory instead
  of opening broad local IPC access.
- Stdout carries the JSON-RPC protocol, so it should be drained ahead of
  diagnostic stderr noise under SRT.

Tests:
- HEX_HOME=/private/tmp/symphony-hex-home MIX_ENV=test mise exec -- mix test test/symphony_elixir/agent_sandbox_config_test.exs test/symphony_elixir/app_server_test.exs
- HEX_HOME=/private/tmp/symphony-hex-home MIX_ENV=test mise exec -- mix specs.check
- HEX_HOME=/private/tmp/symphony-hex-home MIX_ENV=test mise exec -- mix compile --warnings-as-errors
@chihsuan
chihsuan merged commit 95fb399 into main May 22, 2026
@chihsuan
chihsuan deleted the fix/srt-mcp-unix-socket branch May 25, 2026 06:00
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