Expand description
§Warning: 0.17.x compatibility only
everruns-runtime is a transitional compatibility API for existing Everruns
0.17.x applications. It will be removed in Everruns 0.18. It remains usable
and source-compatible throughout 0.17.x; no execution implementation lives
here.
New ordinary applications use the everruns
Framework crate, beginning with use everruns::{Agent, Model};. Advanced
system integrators use everruns plus everruns-host
and focused sibling crates, beginning with
use everruns_host::{HostBackends, InProcessRuntimeBuilder};.
See the authoritative runtime migration guide for exact old-to-new mappings. All crates are part of the Everruns ecosystem.
§0.17 compatibility example
use everruns_runtime::{InProcessRuntimeBuilder, RuntimeBackends};
let builder = InProcessRuntimeBuilder::new().backends(RuntimeBackends::in_memory());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.
- Event
Cursor - Snapshot-bound continuation cursor for canonical event replay.
- Event
Delivery Stats - Counts observational failures without making them execution failures.
- Event
History - Read-only message/history projection rebuilt from canonical events.
- Event
History Page - Bounded message projection and its stable event snapshot continuation.
- Event
History Read Limit - Validated projected-message bound for
EventHistory::read_page. - Event
History Read Request - One bounded projected-history read.
- Event
Page - A page of full canonical event envelopes in persisted sequence order.
- Event
Read Limit - Validated bound for one
EventReader::read_pagecall. - Event
Read Request - One bounded canonical event read.
- Harness
Builder - Builds a
Harnesswith runtime-friendly defaults. - Host
Backends - Non-filesystem backend bundle supplied to an execution host.
- Host
Event Emitter - Canonical event router shared by in-process, worker, and facade hosts.
- InMemory
Event Log - Volatile coherent event log used by default in-process 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
Runtime - Public in-process runtime backed by either in-memory or custom stores.
- InProcess
Runtime Builder - Builder for the public in-process runtime.
- Jsonl
Event Log - Crash-durable JSONL log containing complete canonical
Eventenvelopes. - Noop
Event Sink - Sink used when a host has no live observers.
- 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
Backends - 0.17 name for the canonical host backend bundle. Non-filesystem backend bundle supplied to an execution host.
- 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§
- Event
Durability - Persistence guarantee provided by an
EventLogimplementation. - Event
LogError - Errors from canonical event append or bounded replay.
- Event
Sink Error - Observational delivery failures. They never change append or turn success.
- 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_
EVENT_ READ_ LIMIT - Default number of canonical envelopes returned by a host event read.
- DEFAULT_
WRITE_ BLOCKLIST Deprecated - Legacy default for
WriteBlocklistFileStore. - MAX_
EVENT_ HISTORY_ PAGE_ SIZE - Maximum projected messages returned by one bounded history page.
- MAX_
EVENT_ HISTORY_ REPLAY - Maximum envelopes one
EventHistoryprojection may examine in one call. - MAX_
EVENT_ PAGE_ SIZE - Hard upper bound for one host event read.
Traits§
- Event
Bus Deprecated - Legacy observation trait retained only so 0.17 implementations still name
the path. It is outside maintained execution; use
EventSinkfor live post-commit observation andEventReaderfor replay. - Event
Log - A coherent canonical event log.
- Event
Reader - Bounded, ordered reader for canonical session events.
- Event
Sink - Non-blocking destination for already-finalized canonical envelopes.
- 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
Message Store Deprecated - Legacy writable message-store contract retained only for 0.17 source paths.
- 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.