everruns-host 0.18.0

Shared host orchestration for Everruns execution adapters
Documentation

everruns-host

Shared effectful orchestration for Everruns execution hosts.

Crates.io Documentation License

Shared effectful host orchestration used by the Everruns application facade, local adapters, workers, and advanced custom hosts.

This crate is a published implementation boundary so those crates can share a single execution path. It is not the ordinary application entrypoint; most applications in the Everruns ecosystem should use everruns and the Framework guide.

The portable phase algorithms and pure, sans-I/O turn planner live in everruns-engine. Host resolves deployment services and composes those engine executors; it does not carry a second Input/Reason/Act implementation.

Quick Example

use everruns_host::{ResolvedTurnInputs, RuntimeHostAdapter};

fn accepts_host<A: RuntimeHostAdapter>() {}
fn accepts_inputs(_: ResolvedTurnInputs) {}
# let _ = accepts_inputs;

What It Provides

  • Canonical event append, bounded replay, and read-only history projection
  • Backend/store composition and low-level in-process execution
  • Reference InMemoryAgentStore, InMemoryHarnessStore, InMemorySessionStore, and InMemoryProviderStore implementations
  • Store-backed snapshot/context loading, lifecycle validation, provider/driver resolution, and StoreCommandHost completion
  • Shared input, reason, act, lifecycle, MCP, filesystem, and scheduling host work
  • Host adapter contracts for worker, local, and advanced integrations

Integration features

runtime_capability_registry() is the Framework runtime preset owner. It starts from an empty core registry, adds the runtime-safe portable catalog when builtins is enabled, then adds only the compiled integrations. compose_runtime_capability_registry(registry) applies that same feature-driven composition to a caller-selected registry. runtime_egress_service() returns the matching direct, policy-aware transport when a network-capable integration is selected and a disabled service otherwise. builtins, filesystem, bashkit, web-fetch, lua, and mcp are independent host features; mcp-stdio additionally enables local-process MCP servers. The application-facing everruns crate selects the ordinary defaults.

utility-openai owns the concrete, environment-configured utility-model client used by the server and worker. The provider-neutral UtilityLlmService contract remains in core; embedders that supply their own implementation do not need this feature or its HTTP/TLS dependency tree.

everruns-engine keeps turn planning sans I/O and owns portable phase execution over injected contracts. Canonical events are the sole history write path: host execution appends events, while EventHistory rebuilds messages from bounded, sequence-ordered replay. No writable message store is part of the maintained host API.

The execution boundary is value-first: host orchestration resolves stores and credential-bearing provider configuration, then passes core a secret-free ResolvedExecutionSnapshot, filtered messages, model/provider identity, and an opaque ready driver. Persisted Agent, Harness, and Session records never cross into kernel execution or public context inspection.

Documentation

License

Licensed under the MIT License.