[Feature]: Complete local IPC coverage for an external gateway
Summary
Complete #7432 G2 / Phase 3 D2 using the existing local RPC server and the reviewed contract from #11000.
Problem statement
Unix-socket and Windows-pipe transports already exist, but their presence does not establish the method, streaming, lifecycle, and authorization coverage needed by a separate gateway.
Proposed solution
Implement the missing operations and lifecycle behavior identified by the accepted contract's coverage matrix. Keep domain state and authorization authoritative in the core, with the gateway calling shared IPC operations instead of reaching into runtime state.
Non-goals / out of scope
A second local server; gateway-local copies of sessions, plugin state, memory, or permissions; selecting a new protocol before #11000 is reviewed.
Alternatives considered
Reuse the existing implementation and extend its missing boundary; a parallel subsystem would create another source of truth.
Acceptance criteria
- Every required gateway operation in the reviewed matrix has a supported IPC implementation and conformance test; explicit deferrals remain release gaps.
- Unix sockets and Windows named pipes exercise initialization, authenticated identity, isolation/denial, compatible and incompatible versions, and endpoint discovery.
- Streaming tests cover cancellation, disconnect/reconnect, terminal outcomes, bounded buffering, and the agreed relationship between viewer and agent lifetimes.
- Session, plugin, memory, status, and cron operations use canonical core services and effective authorization rather than duplicated gateway state.
- Document feature/endpoint ownership and attach integration evidence to #7432 G2.
Architecture impact
Existing runtime RPC server and shared API types. Reconcile supporting principal work #8289/#7141 and PRs #10259/#10274 with the approved contract.
Risk and rollback
A second authority path or lifecycle mismatch can weaken access control or interrupt work. Add conformance and denied-access cases, retain compatible protocol behavior during rollout, and reject unsupported negotiation explicitly.
Expected routing
Should attach to an existing roadmap/tracker issue
Next decision surface
#7432 G2, v0.9.0. Blocked on the reviewed contract in #11000.
Breaking change?
No
Data hygiene checks
- I removed personal/sensitive data from examples, payloads, and logs.
- I used neutral, project-focused wording and placeholders.
Source: zeroclaw-labs/zeroclaw