Skip to main content

Crate arcp_runtime

Crate arcp_runtime 

Source
Expand description

Reference runtime (server side) for the Agent Runtime Control Protocol.

This crate ships the production-ready runtime — the part that accepts sessions, dispatches messages, runs tools, manages jobs / streams / permissions / leases / subscriptions, and persists what needs persisting:

  • runtimeARCPRuntime entrypoint.
  • store — SQLite-backed append-only event log + credential ledger.
  • auth — bearer, signed_jwt, and none Authenticator implementations. The trait itself lives in arcp-core.

Wire-format types (Envelope, MessageType, errors, IDs, transport trait) are re-exported here for convenience but ultimately live in arcp-core. Most users should depend on the umbrella arcp crate; pull arcp-runtime in directly if you don’t need the client side.

The crate also ships an arcp binary that runs a configurable demo runtime over stdio or websockets — handy for ad-hoc conformance testing.

Re-exports§

pub use runtime::ARCPRuntime;

Modules§

auth
Concrete Authenticator implementations for the schemes ARCP §8.2 defines: bearer, signed_jwt, and none.
runtime
ARCP runtime — the server side of the protocol.
store
Persistent storage primitives.

Structs§

Envelope
Typed protocol envelope (RFC §6.1).

Enums§

ARCPError
In-process error type returned from library APIs.
ErrorCode
Canonical wire-level error code (RFC §18.2).
MessageType
Tagged enum of every protocol message payload (RFC §6.2).

Constants§

IMPL_KIND
Implementation kind reported in runtime.kind / client.kind blocks (RFC §8.2, §8.3).
IMPL_VERSION
Implementation version of this crate, derived from Cargo.toml. Sibling crates in this workspace move in lockstep, so this constant also reflects the runtime / client / umbrella version.
PROTOCOL_VERSION
Protocol version implemented by this crate, as carried in the arcp field of every envelope (RFC §6.1).