everruns-host
Shared effectful orchestration for Everruns execution hosts.
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 ;
# 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, andInMemoryProviderStoreimplementations - Store-backed snapshot/context loading, lifecycle validation, provider/driver
resolution, and
StoreCommandHostcompletion - Shared input, reason, act, lifecycle, MCP, filesystem, and scheduling host work
- Session mutation/storage contracts and their portable
sessioncapabilities - Policy-aware
DirectEgressServicebehind the opt-indirect-egressfeature - OpenTelemetry and Braintrust exporters behind the opt-in
observabilityfeature, available aseverruns_host::observability - Host adapter contracts for worker, local, and advanced integrations
- Neutral extension ports for higher-level typed services, subagent delegates, and turn-dependent tools
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. direct-egress
exposes the transport explicitly; 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.
Hosted product policy is layered above this crate. everruns-platform
implements these neutral extension ports; everruns-host has no dependency on
or feature for the platform crate.
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.