Expand description
Shared effectful host orchestration for Everruns execution adapters.
everruns-host composes the shared everruns-engine execution kernel for
application, worker, and local adapters. It resolves deployment services,
credentials, and stores, then applies the engine planner’s effects. It is a
transitive implementation boundary, not the ordinary application
entrypoint; applications in the Everruns ecosystem
should normally depend on everruns.
Advanced hosts — servers, evaluation harnesses, research runtimes, and
specialized embedders — depend on everruns plus this crate and the
focused sibling crates they actually need.
runtime_capability_registry owns the Framework preset: it starts from an
empty core registry, adds the runtime-safe portable catalog selected by
builtins, and then adds only the integrations selected by this crate’s
filesystem, bashkit, web-fetch, and lua features. MCP transport
wiring is separately enabled by mcp;
local-process MCP additionally requires mcp-stdio.
compose_runtime_capability_registry applies the selected integrations to
a caller-supplied registry when a broader preset is required.
runtime_egress_service supplies the matching direct transport only when
a network-capable integration is selected.
Advanced hosts can select direct-egress to construct
[DirectEgressService] without enabling an integration bundle.
§Example
use everruns_host::{ResolvedTurnInputs, RuntimeHostAdapter};
fn accepts_host<A: RuntimeHostAdapter>() {}
fn accepts_inputs(_: ResolvedTurnInputs) {}Re-exports§
pub use events::DEFAULT_EVENT_READ_LIMIT;pub use events::EventCursor;pub use events::EventDeliveryStats;pub use events::EventDurability;pub use events::EventHistory;pub use events::EventHistoryPage;pub use events::EventHistoryReadLimit;pub use events::EventHistoryReadRequest;pub use events::EventLog;pub use events::EventLogError;pub use events::EventPage;pub use events::EventReadLimit;pub use events::EventReadRequest;pub use events::EventReader;pub use events::EventSink;pub use events::EventSinkError;pub use events::HostEventEmitter;pub use events::InMemoryEventLog;pub use events::JsonlEventLog;pub use events::MAX_EVENT_HISTORY_PAGE_SIZE;pub use events::MAX_EVENT_HISTORY_REPLAY;pub use events::MAX_EVENT_PAGE_SIZE;pub use events::MAX_JSONL_RECOVERY_BYTES;pub use events::MAX_JSONL_RECOVERY_EVENTS;pub use events::NoopEventSink;pub use execution_snapshot::load_execution_snapshot;pub use execution_snapshot::load_execution_snapshot_for_session;pub use session_services::GetSessionInfoTool;pub use session_services::KvStoreTool;pub use session_services::SESSION_CAPABILITY_ID;pub use session_services::SESSION_STORAGE_CAPABILITY_ID;pub use session_services::SecretStoreTool;pub use session_services::SessionCapability;pub use session_services::SessionCapabilityConfig;pub use session_services::SessionMutator;pub use session_services::SessionMutatorExt;pub use session_services::SessionStorageCapability;pub use session_services::SessionTitleMutation;pub use session_services::WriteSessionTitleTool;pub use session_services::is_internal_session_kv_key;pub use session_services::is_internal_session_secret_name;pub use session_services::session_title_updated_event;pub use session_services::update_session_title_with_event;
Modules§
- events
- Canonical host event persistence, bounded replay, and message projection.
- execution_
snapshot - Store-backed loading for the neutral core execution snapshot.
- native_
async - Private local persistence for custom hosts using native async tools. The journal directory must not be exposed through session tools or shared with another conversation. Distributed hosts need an equivalent fenced store.
- session_
services - Backend-neutral session service contracts and capability implementations.
Structs§
- Accepted
Turn Input - An application message accepted for a specific in-process turn.
- Agent
Builder - Builds a portable
AgentDefinitionwith runtime-friendly defaults. - Approval
Gating File Store - Gate destructive operations through an embedder-supplied
FileApprovalGate. Reads pass through. - Assembled
Turn Context - Credential-safe context consumed by kernel reason execution.
- Capability
Delta - Result of changing the session-scoped capability set of a live runtime.
- Disabled
Session File System Factory - Default factory used when a platform does not configure session files.
- Environment
- Session execution resources. Workspace is first; future compute/network resources attach through the open type-keyed extension seam.
- Environment
Builder - Fixed
Session File System Factory - Factory that returns one already-selected session filesystem.
- Harness
Builder - Builds a portable
HarnessDefinitionwith runtime-friendly defaults, paired with the id it is seeded under. - Host
Backends - Non-filesystem backend bundle supplied to an execution host.
- Host
Composition - The execution surface a deployment runs with.
- Host
Composition Builder - Builder for
HostComposition. - InMemory
Agent Store - Application-grade in-memory agent store for embedded hosts.
- InMemory
Compaction Checkpoint Store - Application-grade in-memory compaction checkpoint store for embedded hosts.
- InMemory
Environment Binding Store - Process-local binding store used by the default embedded Agent lifecycle.
- InMemory
Harness Store - Application-grade in-memory harness store for embedded hosts.
- InMemory
Provider Store - Application-grade in-memory provider store for embedded hosts.
- InMemory
Session File Store - In-memory implementation of the session virtual filesystem.
- InMemory
Session File System Factory - Factory for the runtime’s in-memory session filesystem.
- InMemory
Session Storage Store - In-memory implementation of session key/value and secret storage.
- InMemory
Session Store - In-memory
SessionStore+SessionMutatorfor embedded runtimes. - InProcess
Execution - Turn execution whose state lives in the current process.
- InProcess
Runtime - Public in-process runtime backed by either in-memory or custom stores.
- InProcess
Runtime Builder - Builder for the public in-process runtime.
- Policy
File Store - Apply a backend-independent
WorkspacePolicyto a session filesystem. - Real
Disk File Store - A
SessionFileSystemrooted at a real host directory. - Real
Disk Session File System Factory - Factory for real-disk session files rooted at a fixed host directory.
- Resolved
Turn Inputs - Resolved inputs loaded in one batched call for runtime host execution.
- Runtime
Session Lifecycle - Seeded
Harness - A portable harness definition seeded under an embedder-chosen id.
- Session
Builder - Builds a portable
ExecutionSessionwith runtime-friendly defaults. - Session
File System Factory Context - Host-supplied values used by platform file-system factories.
- Single
Session Builder - High-level builder for seeding one harness, one agent, and one session.
- Store
Command Host - Store-backed
CommandHostshared by embedded and durable hosts. - Store
Turn Context Resolver - Store-backed resolver used by direct atom callers and custom hosts.
- Turn
Result - Turn
Steering - Concurrency-safe ingress for messages sent while an in-process turn runs.
- Workspace
- One logical workspace opened through a provider.
- Workspace
Binding - Provider-owned data sufficient to reopen the exact recorded head.
- Workspace
Checkpoint - Provider-neutral checkpoint metadata.
- Workspace
Descriptor - Provider-neutral identity and base metadata for a logical workspace.
- Workspace
Diff - Provider-neutral diff summary for one mutable head.
- Workspace
Head - One stable, reopenable mutable view of a workspace.
- Workspace
Head Builder - Builder for explicit isolated or shared heads.
- Workspace
Head Descriptor - Provider-neutral identity and base metadata for a head.
- Workspace
Head Id - Stable identity of one mutable workspace head.
- Workspace
Head Request - Request to create or fork one head.
- Workspace
Head Resource - A provider-produced head resource before the Framework attaches lifecycle.
- Workspace
Head Status - Provider-neutral mutable-head status.
- Workspace
Provider Id - Stable, provider-defined SPI identifier.
- Write
Blocklist File Store - Reject writes into vendored / build directories at any depth.
Enums§
- Environment
Binding Error - Task
Transition - A task lifecycle transition an observer can be notified of.
- Turn
Steering Push Error - Why a steered message could not join the running turn.
- Turn
Stop Reason - Stable reason a turn stopped, independent of provider-specific strings.
- Workspace
Error - Errors exposed by workspace providers and lifecycle operations.
- Workspace
Head Access - Whether a head is intended for one session or intentionally shared.
Traits§
- Environment
Binding Store - Durable compare-and-set store for a session’s opaque environment binding.
- File
Approval Gate - Embedder-supplied approval callback used by
ApprovalGatingFileStore. - Host
Tool Augmentor - Adds higher-level, execution-time tools without coupling the host to their implementation crate.
- Runtime
Agent Store - Agent store contract for runtime seeding and lookup.
- Runtime
Harness Store - Harness store contract for runtime seeding and lookup.
- Runtime
Host Adapter - Public adapter contract for server-backed or durable runtime hosts.
- Runtime
Provider Store - Provider store contract for runtime lookup and default-model configuration.
- Runtime
Session Store - Session store contract for runtime seeding, lookup, and mutation.
- Session
File System Factory - Factory for deployment-selected session filesystem implementations.
- Task
Transition Observer - Receive task-transition notifications in process.
- Workspace
Provider - Open service-provider interface for physical workspace implementations.
Functions§
- advance_
host_ execution - Determine the next host step after an activity finishes.
- assemble_
turn_ context - Load and assemble a reason context, requiring at least one model-visible message.
- assemble_
turn_ context_ from_ snapshot - Assemble a reason context from a snapshot a host already loaded.
- compose_
runtime_ capability_ registry - Add host integrations selected by Cargo features to an existing registry.
- detect_
dependency_ blocker - execute_
act_ activity - execute_
input_ activity - execute_
reason_ activity - execute_
reason_ activity_ with_ prompt_ messages - Execute a reason activity while applying
user_prompt_submithooks to the supplied messages. Hosts that inject synthetic user messages between reason iterations must include their ids here so they cross the same policy boundary as the turn’s original input. - in_
process_ internal_ org_ id - Derive an internal
i64org id from the publicorg_<32hex>form on aExecutionSession. - inspect_
turn_ context - Load and assemble a context for inspection, allowing empty history.
- multi_
root_ file_ system - runtime_
capability_ registry - Return the runtime-safe portable bundle and integrations enabled as host Cargo features.
- runtime_
egress_ service - Return the egress service matching the selected host integrations.
Type Aliases§
- Schedule
Store Factory - Factory producing a per-org
SessionScheduleStore. Embedders that have a single global store can ignore theorg_idargument and return the sameArcevery time. - Subagent
Delegate Factory - Factory for the neutral subagent delegate supplied by a higher-level host.
- Tool
Context Extensions Factory - Factory for type-erased tool services supplied by a higher-level host.
- Workspace
Id - Workspace ID (org-scoped named Workspace — see
knowledge/runtime-resources/workspace.md)