Skip to main content

Module model

Module model 

Source
Expand description

Session domain model: the daemon-owned first-class object (#2054, Axiom 4).

Why: the vision spec’s Axiom 4 (“The Daemon OWNS Sessions; CLI Attaches Over the API”) requires a session to be a real object living inside the daemon — not a tmux pane, not a PTY, not something the CLI reconstructs from scrollback. This module defines that object’s shape; ownership, storage, and the ring buffer live in super::registry. What: Session (the wire/domain type returned by session.create/session.list/session.status) and SessionStatus (its lifecycle states, per §12 Session Durability: M1 has no queueing — a session moves directly from Created to Running — and no persistence, so Failed here means “the daemon observed a failure”, not “recovered from one after a restart”). Test: model::tests::*.

Structs§

Session
A daemon-owned session (vision spec Axiom 4).

Enums§

SessionStatus
Lifecycle status of a Session.