Skip to main content

Crate sloop

Crate sloop 

Source

Modules§

cli
clock
config
daemon
db
domain
Pure domain logic with no I/O, SQL, clock reads, or persistence/runtime dependencies.
eligibility
Why a ticket is not being dispatched right now: the reporting decision, built only by the daemon’s show/list handlers. The dispatcher does not call this module — scheduler::reconcile checks its own gates inline — so the global gates here mirror the dispatcher’s by construction and must be kept in step with them by hand.
flow
Flow definitions and the pure walk over them. Parsing turns a committed YAML file into a validated Flow; next_step then replays the run’s ordered evidence log over that flow to derive the next stage to run or a terminal reading. Neither half touches a clock, a process, or the store, so policy can be tested without a daemon.
frontmatter
ids
init
logging
outcome
Outcome derivation. Evidence in, verdict out: this module is the only place a run’s terminal outcome is decided, and it is pure so policy can be tested without a daemon, a process, or a repository.
paths
post
protocol
reindex
render
Human rendering of response envelopes. JSON envelopes remain the internal and --json representation; this module is a one-way translation applied at the final write, so the socket API and agent-facing output are unaffected by presentation changes here.
run_log
Per-run NDJSON output capture. Agent and stage stdout/stderr are untrusted evidence: they are stored as ordered chunks, never parsed as lines and never routed through the dispatcher.
run_ref
Run identity: minted internal ids, ticket-derived aliases, and the shapes a run reference can take.
run_store
Concrete SQLite storage for run supervision state.
runner
Execution boundary for one flow stage at a time.
sources
Authored flow definitions live in sources.
templates
Compiled-in authoring templates for the files operators write by hand.
vendor_error
Data-driven classification of rejected agent requests. Catalogs describe evidence only; outcome and cooldown policy remain in the scheduler.
work_state
Authored ticket ingestion and daemon-owned work state.
worker
Everything an agent process is told, in one place.