Skip to content

feat: support local IPC with direct TCP in reviewer workloads - #2

Merged
exKAZUu merged 1 commit into
mainfrom
feat/reviewer-local-sockets
Sep 11, 2026
Merged

exKAZUu merged 1 commit into
mainfrom
feat/reviewer-local-sockets

Conversation

@exKAZUu

@exKAZUu exKAZUu commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

Why

Reviewers need local Unix servers and browser IPC, while ordinary TCP should not allocate a broker thread for every connection. The existing supervisor denies Unix listeners and mediates TCP even when the consumer allows all IP networking.

Changes

Add opt-in --allow-local-ipc for filesystem-isolated workloads. Pathname Unix binds and listen operations execute in the workload's mount context, preserving read-only host mounts. TCP/IPv6 operations continue without broker threads or socket duplication. Unix connects retain the path allowlist; abstract binds and Unix datagrams remain denied. This is an accident boundary and deliberately does not protect against concurrent adversarial mutation of syscall arguments.

Publish package version 0.0.75-wb.2. The consumer is WillBooster/review-booster issue anthropics#283.

Validation

Built static arm64 and x64 binaries with the pinned Zig. A real non-root Linux arm64 workload in a namespace-capable Docker container passed Unix bind/listen/connect, host-local TCP, editable experiment files, denial of unrelated host sockets and host binds, and protected-file checks. The artifact workflow runs the same boundary check on Ubuntu x64. Existing C compiler warnings in the musl CMSG_NXTHDR macro remain unchanged.

Requirements

  • required: Support the managed reviewers' code experiments and local service verification while preventing accidental interference with operator files and other reviewers through the caller's filesystem/process isolation.
  • required: Keep execution overhead low and preserve existing SSH-agent authentication and Unix connection allowlists.
  • required: Hostile-code confinement beyond accidental interference is not a goal for the reviewer's opt-in mode.
  • chosen: Add opt-in local IPC handling to the existing native helper and publish an immutable versioned package for review-booster.

Allow filesystem-confined Unix listeners and continue TCP operations without
broker threads in the opt-in local IPC mode. Retain Unix connection allowlists
and add a real Linux local-service and host-protection check.
@exKAZUu
exKAZUu merged commit 3261aff into main Sep 11, 2026
4 checks passed
@exKAZUu
exKAZUu deleted the feat/reviewer-local-sockets branch September 11, 2026 06:34
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