Skip to main content

Module engine_owner

Module engine_owner 

Source
Expand description

Safe, ordered Engine owner projection shared by desktop and web hosts.

The Engine owns operation and turn facts: it emits operation_activity_started / operation_activity_completed with an OwnerActivityKind and OwnerOperationOutcome, a bounded canonical action identity, never an argument, command or result. Apps may bind this session-scoped projection to an authenticated account and serve it to another client; the account identity is intentionally not supplied by the Engine.

Known limits:

  • Operation events only carry Reading, Editing, Searching, Testing, Executing, Browsing, Computer, Memory or Tool. Thinking, Responding and Delegating are derived by the reducer from message, reasoning and agent lifecycle events.
  • EngineOwnerProjection itself is computed today by the pet reducer (pet/src/core/pet-engine.ts, bundled into the TUI pet worker), and validated here on the way back. No Rust producer exists yet; a host that needs it outside the pet must decide whether the runtime produces it in Rust rather than adding a second reducer.

Structs§

EngineOwnerProjection
Ordered, account-neutral read model. cursor is monotonic within the existing session owner. The Apps control plane supplies account isolation by authenticating the caller and resolving the requested session there.
OwnerActiveSpan
OwnerFailedToolAge

Enums§

OwnerActivityKind
OwnerFreshness
OwnerOperationOutcome
OwnerPresence