Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
paceq
command
Command paceq is the single binary that carries the whole orchestrator.
|
Command paceq is the single binary that carries the whole orchestrator. |
|
internal
|
|
|
arch
Package arch has no production code; it hosts the tests that enforce the module's architectural rules.
|
Package arch has no production code; it hosts the tests that enforce the module's architectural rules. |
|
cli
Package cli is the command line: the command tree, the global flags, the output modes and the exit codes every command answers with.
|
Package cli is the command line: the command tree, the global flags, the output modes and the exit codes every command answers with. |
|
clock
Package clock defines the Clock interface and its fake, so time is injectable in tests.
|
Package clock defines the Clock interface and its fake, so time is injectable in tests. |
|
cronx
Package cronx turns a schedule definition into concrete fire times.
|
Package cronx turns a schedule definition into concrete fire times. |
|
daemon
Package daemon is the long lived process behind paceq serve: one process, one state directory, and a fixed family of loops that share a database.
|
Package daemon is the long lived process behind paceq serve: one process, one state directory, and a fixed family of loops that share a database. |
|
diag
Package diag is one diagnostic and the way it reaches a person: a code, a position in a file, an excerpt with a caret under the offending column, a cause and at least one next step.
|
Package diag is one diagnostic and the way it reaches a person: a code, a position in a file, an excerpt with a caret under the offending column, a cause and at least one next step. |
|
doctor
Package doctor holds the health checks behind the doctor command: what is wrong with an installation, and what the operator can run about it.
|
Package doctor holds the health checks behind the doctor command: what is wrong with an installation, and what the operator can run about it. |
|
engine
Package engine orchestrates runs and steps: claiming work, holding leases and driving state transitions.
|
Package engine orchestrates runs and steps: claiming work, holding leases and driving state transitions. |
|
explain
Package explain is the only read path into run history and the reasoning behind each decision.
|
Package explain is the only read path into run history and the reasoning behind each decision. |
|
faults
Package faults names the points where the crash harness (#75) kills this process.
|
Package faults names the points where the crash harness (#75) kills this process. |
|
id
Package id generates time-sortable identifiers that order lexicographically by creation time.
|
Package id generates time-sortable identifiers that order lexicographically by creation time. |
|
leases
Package leases runs the leader and follower loop around one role lease.
|
Package leases runs the leader and follower loop around one role lease. |
|
logsink
Package logsink writes step logs as NDJSON files on disk and reads them back.
|
Package logsink writes step logs as NDJSON files on disk and reads them back. |
|
model
Package model holds the run and step state machines as pure functions.
|
Package model holds the run and step state machines as pure functions. |
|
notify
Package notify is the in-process non-blocking broadcast bus that wakes loops without polling latency.
|
Package notify is the in-process non-blocking broadcast bus that wakes loops without polling latency. |
|
obs
Package obs configures structured logging, exposes metrics and implements the doctor checks.
|
Package obs configures structured logging, exposes metrics and implements the doctor checks. |
|
obs/sdnotify
Package sdnotify is a hand-written sd_notify protocol implementation.
|
Package sdnotify is a hand-written sd_notify protocol implementation. |
|
reason
Package reason is the catalogue of reason codes: one closed, stable string enum that says why every decision, trigger, run and step ended the way it did.
|
Package reason is the catalogue of reason codes: one closed, stable string enum that says why every decision, trigger, run and step ended the way it did. |
|
reason/gen
command
Command gen writes docs/reference/reason-codes.md from the reason catalogue.
|
Command gen writes docs/reference/reason-codes.md from the reason catalogue. |
|
runner
Package runner executes a single step as an operating system process, owning process groups, signals and log pipes.
|
Package runner executes a single step as an operating system process, owning process groups, signals and log pipes. |
|
scheduler
Package scheduler materialises schedule ticks into triggers and performs catch-up after downtime.
|
Package scheduler materialises schedule ticks into triggers and performs catch-up after downtime. |
|
sensor
Package sensor holds the evaluator runtime: the part of the daemon that finds due sensors, runs each one as an isolated subprocess against the frozen public contract, and hands a pure Result on to the commit layer.
|
Package sensor holds the evaluator runtime: the part of the daemon that finds due sensors, runs each one as an isolated subprocess against the frozen public contract, and hands a pure Result on to the commit layer. |
|
spec
Package spec is the job definition: YAML in, canonical JSON out.
|
Package spec is the job definition: YAML in, canonical JSON out. |
|
store
Package store owns the SQLite database: connection pools, PRAGMAs, migrations and every SQL query in the project.
|
Package store owns the SQLite database: connection pools, PRAGMAs, migrations and every SQL query in the project. |
|
testutil
Package testutil builds throwaway databases, fixtures and helper binaries for tests.
|
Package testutil builds throwaway databases, fixtures and helper binaries for tests. |
|
test
|
|
|
crash
Package crash is the crash test harness of issue #75.
|
Package crash is the crash test harness of issue #75. |
|
scratch
command
Command paceq-scratch is the payload of the scratch container proof: from inside a FROM scratch image with no /usr/share/zoneinfo, no shell and no network it must resolve Europe/Oslo through the tzdata embedded in the binary and compute the correct next tick for a documented schedule.
|
Command paceq-scratch is the payload of the scratch container proof: from inside a FROM scratch image with no /usr/share/zoneinfo, no shell and no network it must resolve Europe/Oslo through the tzdata embedded in the binary and compute the correct next tick for a documented schedule. |
|
serve
Package serve drives the built paceq binary as a real subprocess and holds it to the shutdown promises acceptance puts in writing: one stop signal drains what runs and leaves no process group behind; a second one kills everything at once and exits 130.
|
Package serve drives the built paceq binary as a real subprocess and holds it to the shutdown promises acceptance puts in writing: one stop signal drains what runs and leaves no process group behind; a second one kills everything at once and exits 130. |
Click to show internal directories.
Click to hide internal directories.