Expand description
Shared effectful host orchestration for Everruns execution adapters.
everruns-host sits between the pure everruns-engine planner and the
application, worker, and local adapters that apply its effects. It is a
transitive implementation boundary, not the ordinary application
entrypoint; applications in the Everruns ecosystem
should normally depend on everruns.
The deprecated everruns-runtime package re-exports this implementation so
its 0.17 public paths continue to use the same canonical code. Existing
users should follow the runtime migration guide.
§Example
use everruns_host::{RuntimeHostAdapter, RuntimeHostTurnContext};
fn accepts_host<A: RuntimeHostAdapter>() {}
fn accepts_context(_: RuntimeHostTurnContext) {}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::NoopEventSink;
Modules§
- events
- Canonical host event persistence, bounded replay, and message projection.
Structs§
- Agent
Builder - Builds an
Agentwith runtime-friendly defaults. - Approval
Gating File Store - Gate destructive operations through an embedder-supplied
FileApprovalGate. Reads pass through. - Assembled
Turn Context - Public snapshot of the assembled turn context used by reason-phase hosts.
- Capability
Delta - Result of changing the session-scoped capability set of a live runtime.
- Harness
Builder - Builds a
Harnesswith runtime-friendly defaults. - Host
Backends - Non-filesystem backend bundle supplied to an execution host.
- 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
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.
- Runtime
ActPlan - Engine-owned act scheduling payload.
- Runtime
Host Turn Context - Turn context loaded in one batched call for runtime host execution.
- Runtime
Session Lifecycle - Shared lifecycle helper for runtime-backed hosts.
- Runtime
Turn State - Host-owned state carried across turn phases.
- Session
Builder - Builds a
Sessionwith runtime-friendly defaults. - Single
Session Builder - High-level builder for seeding one harness, one agent, and one session.
- Turn
Result - Write
Blocklist File Store - Reject writes into vendored / build directories at any depth.
Enums§
- Runtime
Turn Plan - Generic next-step decision for a host turn.
- Task
Transition - A task lifecycle transition an observer can be notified of.
- Turn
Stop Reason - Stable reason a turn stopped, independent of provider-specific strings.
Constants§
- DEFAULT_
WRITE_ BLOCKLIST Deprecated - Legacy default for
WriteBlocklistFileStore.
Traits§
- File
Approval Gate - Embedder-supplied approval callback used by
ApprovalGatingFileStore. - 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.
- Task
Transition Observer - Receive task-transition notifications in process.
Functions§
- 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 aSession. - multi_
root_ file_ system - plan_
next_ host_ turn - Determine the next host step after an activity finishes.
Type Aliases§
- Platform
Store Factory - Factory producing a per-(org, session)
PlatformStore. The session id is supplied because platform stores are scoped to the calling session for subagent spawning and platform-management tools. - 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.