OpenRig Ecosystem mark OpenRig EcosystemOwned-AI Infrastructure · v0.1.0
System Architecture · Core Seams & Companion Planes

Core seams in the runtime. Companion planes at the edge.

A resilient platform stays small at the core and extensible at the boundary. Instead of turning the OpenRig runtime into a monolith of third-party SDKs, each capability is split into a narrow contract upstream and an independent companion system alongside it.

Architectural Decision 01

Pace-layered architecture: separate the coordination kernel from edge integrations.

Different layers of an AI operating stack change at different speeds and fail for different reasons.

Decision

Keep the core local-first and deterministic

The OpenRig runtime owns agent lifecycle, work routing, and authority gates—nothing else. External chat transports, UI gateways, and telemetry collectors run as separate companion processes.

Why It Matters

Different clock speeds and failure domains

Coding harnesses evolve weekly, messaging connections drop, and observability collectors restart. Isolating those layers ensures edge turbulence never interrupts running agent teams or corrupts queue state.

System Boundary

Enforced execution policies at launch

Rather than embedding sandbox logic for every tool inside the daemon, the runtime exposes a fail-closed execution wrapper boundary so hosts can enforce their own containment and credential policies before any seat starts.

Architectural Decision 02

Durable seats over ephemeral sessions.

An AI-first organization is built around lasting responsibilities, even as models and CLI tools rotate.

Decision

Decouple organizational role from model harness

Treat a seat—such as Strategy, Editorial, or Engineering—as a persistent organizational position with its own queue and lineage, occupied at any moment by Claude Code, Codex, Pi, or Antigravity.

Why It Matters

Architectural mobility across models

Every AI CLI records activity differently. When operators inspect raw tool logs directly, switching a role from one model runtime to another breaks operator visibility and workflow continuity.

System Boundary

Unified Seat Protocol (openrig-seats)

openrig-seats reads live daemon state alongside heterogeneous harness transcripts and normalizes them into one schema-verified protocol for turns, attention gates, and active work.

Architectural Decision 03

Isolated human-in-the-loop relays.

Human judgment is the scarcest resource in an autonomous operation; reaching the operator must be effortless and reliable.

Decision

Separate decision arbitration from messaging custody

The core runtime arbitrates when a seat needs human input and exposes a local-only relay seam. A dedicated companion bridge manages durable message custody and mobile delivery.

Why It Matters

Responsive authority without public attack surface

Operators need to approve or redirect work from their phone without exposing the local agent runtime to public webhooks, third-party cloud intermediaries, or dropped mobile notifications.

System Boundary

Gateway Relay & openrig-whatsapp-relay

OpenRig hands escalations across a local boundary to openrig-whatsapp-relay, which records custody on disk before acknowledging receipt and routes verified operator replies back to the waiting seat.

Architectural Decision 04

Production telemetry without runtime coupling.

Operating a fleet of agents requires measuring queue flow, human wait times, and seat utilization as first-class operational signals.

Decision

Expose finite transition reads; project intervals externally

Keep telemetry collection out of the runtime critical path by exposing a bounded transition feed in OpenRig and projecting stateful metrics and spans in a dedicated companion process.

Why It Matters

Enterprise visibility with zero runtime overhead

Engineering leaders need to see where work stalls—whether in model execution, peer handoffs, or human review—using standard observability tools rather than custom log scraping.

System Boundary

Telemetry Seam & openrig-telemetry

openrig-telemetry translates queue transitions and seat lifecycles into standard OpenTelemetry logs, capacity gauges, duration distributions, and workflow spans.

System Boundary Matrix

How responsibilities divide between core and edge.

Each domain pairs a narrow contract in upstream OpenRig with a focused companion plane.

Domain Core Responsibility (mvschwarz/openrig) Companion System (smota/*) Strategic Outcome
Execution Governance Enforces per-seat launch wrapper policies and preflight checks across all supported runtimes. Host sandbox & environment policy runners Every agent process starts inside a verified security and environment boundary.
Seat State & Control Maintains seat leases, team topology, work queues, and attention state. openrig-seats ↗ One unified control plane and protocol across Claude Code, Codex, Pi, and Antigravity.
Human Authority Arbitrates human decision gates and exposes an authenticated local relay boundary. openrig-whatsapp-relay ↗ Durable mobile escalations and approvals without exposing the core runtime to the public network.
Workload Observability Publishes a bounded, versioned stream of queue transitions and seat status snapshots. openrig-telemetry ↗ Standard OpenTelemetry logs, metrics, and traces for agent throughput and bottleneck analysis.