#11000·zeroclaw

[Task]: Define and review the complete core-to-gateway IPC contract

Author: JordanTheJetCreated Sep 20, 2026Updated Sep 30, 2026
Labelsgatewayruntimedomain:architecturestatus:acceptedrisk:hightype:docsrelease:v0.9.0

Task

Complete #7432 G1 / Phase 3 D1 with a reviewed, versioned contract before implementing the remaining IPC and gateway process split.

Context

#5574 and ADR-007 establish the gateway direction; #8691 owns decision-record coordination. Existing local IPC is NDJSON/JSON-RPC over Unix sockets and Windows named pipes, while the RFC asks for OpenAPI 3.1. Resolve that mismatch explicitly against the requirement for a core artifact without an HTTP server. The names zeroclaw-kernel, ipc, and kernel.sock in older prose are not proof of existing components.

Acceptance criteria

  • Publish the complete operation and event contract for messages/streaming, sessions, installed plugins, agent status, memory, and cron, with schemas and a current-implementation coverage matrix.
  • Record how OpenAPI 3.1 relates to the supported transport, including any companion non-HTTP protocol specification; do not imply OpenAPI alone describes NDJSON framing.
  • Specify caller identity, authorization ownership, credential handoff, endpoint discovery, version compatibility, errors, cancellation, reconnect, and process lifecycle.
  • Specify plugin webhook registration/dispatch and response semantics needed across the process boundary, preserving channel-owned authentication and parsing.
  • Map proposed crate/feature/endpoint names to the current implementation and state the supported Unix and Windows behavior.
  • Record the required architecture/security review and resulting decision through #8691/ADR-007 before dependent implementation proceeds; unresolved decisions remain visibly open.

Likely files or areas

docs/book/src/architecture/rpc-socket.md; architecture decision records; zeroclaw-api JSON-RPC types; runtime RPC and gateway OpenAPI surfaces.

Contributor fit

maintainer-scoped task, not yet ready for pickup labels

Mentor, reviewer, or contact

Maintainer triage through #7432; decision-record coordination through #8691.

Risk notes

This is a design deliverable. Its accepted scope does not itself approve a new transport, auth model, authority boundary, or rename. Promote substantive new project-level decisions through the repository RFC process.