Worldant runs filesystem-authored application functions and
durable processes. worldant serve checks the source
tree, stages an immutable journal snapshot, activates it, and
serves that snapshot instead of executing the working tree
directly.
Worldant has two public callable concepts:
- Command: immediate, non-durable application function.
- Workflow: durable deterministic orchestration.
Workflow Steps are internal IO checkpoints. They are not public callables.
Removed concepts are not part of the current model: Query, Mutation, Reactive/Rule, Goal, and generic Action.
World Shape
worldant init creates one bounded source root. The
configured application and
world determine runtime identity; declarations
determine artifacts, and directories only organize source:
todo/
worldant.ts
src/
main.ts
generated/
"worldant::command",
"worldant::workflow", and
"worldant::step" declare artifacts. Their
defineCommand(), defineWorkflow(), and
defineStep() wrappers are equivalent. A module may
mix those declarations with presentation code and helpers; the
compiler emits role-pure outputs.
Core Rule
PostgreSQL is the durable truth and the authorization boundary. Commands and Steps perform supported IO. Workflows orchestrate deterministic durable progress.