Nerve Protocol v1 reference
This directory documents the implemented Nerve Protocol v1. The contracts in packages/contracts/src/domains/protocol/ and the sessions in packages/protocol/ are authoritative.
Protocol v1 connects the workbench app (ui) with the local server (workbench_server). The desktop shell and CLI use their own wire roles where they participate in protocol messages.
The link uses a strict envelope, catalog-validated RPC, subscription-based stream recovery, unsequenced notifications, snapshots, and bounded delivery behavior. HTTP and WebSocket requests share the same operation catalog.
Contents
Section titled “Contents”- Overview
- Envelope
- Session lifecycle
- Events, subscriptions and recovery, and backpressure
- HTTP mapping
- Errors and security
- Extensions
- Examples
- Implementation guide, status, and coverage
The operation and event catalogs are exported by @nervekit/contracts; applications must not invent method aliases, event types, delivery classes, or stream routing.