Skip to main content

Crate stackless_core

Crate stackless_core 

Source
Expand description

stackless-core: definition model, state store, and lifecycle engine.

Substrate-agnostic by construction (ARCHITECTURE.md §8): nothing in this crate names a concrete substrate; providers implement the Substrate trait and register by name in the binary.

Modules§

capabilities
Provider support is validated before admission or external effects.
checkpoint
Checkpoint payload schemas shared across substrates and the daemon.
cli_binary
Resolve the stackless CLI binary used to spawn the operator daemon.
def
Stack definition: parsing, validation, interpolation, and the derived dependency graph (ARCHITECTURE.md §1).
durable_command
Gated finite commands with exit receipts and a deadline outside the controller.
engine
The lifecycle engine (ARCHITECTURE.md §2, §8).
fault
The agent-facing error contract (ARCHITECTURE.md §2).
helper_command
Privileged CLI calls whose deadline and capture survive the calling controller.
lockfile
Cross-process file locks keyed by path (ARCHITECTURE.md §2/§3).
names
Default instance name composition ({stack.name}-{uuid}).
paths
Per-user state layout under $XDG_STATE_HOME/stackless (or the ~/.local/state/stackless fallback). Callers that need an injectable root construct Paths explicitly; the CLI default is Paths::from_env.
process
PID + process start time: the PID-reuse-safe liveness identity used for operation locks (§2) and daemon supervision (§3). Bounded subprocess waits (Stripe / launchctl / reaper children) live here so a hung helper cannot pin the control plane forever.
routing
Dispatch by hosting placement. Resource ownership remains in the journal.
security
Public secret references, controlled child environments, and output redaction.
source_archive
Bounded source transfer. Every filesystem lookup stays relative to an open directory.
state
The state store (ARCHITECTURE.md §2).
substrate
The Substrate trait — the one provider seam (ARCHITECTURE.md §8).
types
Semantic newtypes: validate once at construction, trust downstream.