No description
Find a file
JMARyA 1c653695df
Some checks failed
moira/ci moira/ci — failed
moira/publish moira/publish — failed
feat(cli): redesign step display and fix module realisation
`moira show` now prints each run-script line on its own indented row
(truncated at 68 chars) so multi-line steps are readable.  Module steps
show the human name extracted from the Nix store path instead of `?`,
plus sorted `with` params inline.  Backend detection now ignores null
fields so module steps no longer misclassify as sandbox.

`realise_module_impls` is made pub and moved out of the load path
(was spamming output during `moira show`); it is now called only in
`run_local`, just before execution.  Failures are silently suppressed
and handled lazily per-step by `run_external_module`.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 13:55:00 +02:00
.moira/envs fix(ci): add skopeo containers policy for publishing to private registry 2026-05-12 09:29:18 +02:00
crates feat(cli): redesign step display and fix module realisation 2026-05-23 13:55:00 +02:00
docs feat: separate agent token creation from user tokens via moira agent create 2026-05-18 11:51:46 +02:00
k8s fix: switch container registry from hcr.hydrar.de to git.hydrar.de 2026-05-02 01:10:35 +02:00
.gitignore chore: gitignore agent workdir, remove accidentally staged nested repo 2026-04-24 20:37:10 +02:00
Cargo.lock feat(nix-store): binary cache integration — substitution, push, and store isolation 2026-05-17 18:11:45 +02:00
Cargo.toml feat(nix-store): binary cache integration — substitution, push, and store isolation 2026-05-17 18:11:45 +02:00
devenv.lock update devenv lock 2026-04-19 14:12:08 +02:00
devenv.nix add devenv postgres 2026-04-19 13:14:08 +02:00
flake.lock init 2026-04-18 06:32:11 +02:00
flake.nix fix(agent): add expat to container image to fix git-remote-https libexpat error 2026-05-18 17:56:54 +02:00
README.md docs: link to moira-modules standard library 2026-05-23 01:24:41 +02:00
zensical.toml feat(nix-store): binary cache integration — substitution, push, and store isolation 2026-05-17 18:11:45 +02:00

Moira

Alpha software. Moira is under active development — interfaces, config schemas, and APIs may change without notice between commits. Run it, break it, report what you find, but don't depend on stability yet.

moira is a unified automation fabric for infrastructure engineers who believe the git repository is the only legitimate source of truth. It merges the concerns of CI pipelines, scheduled automation, workflow orchestration, and IaC execution into a single declarative system — hermetically sealed by Nix, driven by Rust, and accountable to nothing but your repo.


The mythology

Hydra builds moira.

In Hesiod's Theogony, the three Moirai — the Fates — are daughters of Nyx, the primordial goddess of night. They weave the thread of every mortal life: Clotho spins it into being, Lachesis measures its length, Atropos cuts it with inexorable finality.

Your infrastructure has the same shape. Intent is declared. Work is measured and scheduled. Execution is final, hermetic, irreversible. And it all runs on Nix — named, knowingly or not, for the same primordial darkness the Fates were born from.

Hydra — the many-headed — spawns Moira. Moira, daughters of Nyx, runs on Nix.

The lore wrote itself.

Internal architecture: the three sisters

The moira runtime is divided internally along the mythological grain:

Sister Role
Clotho (CLI) Git watcher and intent compiler — she reads your declared threads and spins them into executable task graphs
Lachesis (Server) Scheduler and reconciler — she measures, allots work to agents, manages approval gate state, and ensures reality converges to declaration
Atropos (Agent) Step executor — she cannot be turned aside; hermetic, deterministic, she runs the step and cuts the thread when done

These are internal names. Users interact only with moira.

Documentation

Full docs live in docs/. To serve locally:

zensical serve

Standard library

moira-modules — curated environments, typed modules (HTTP, git, S3, SSH, …), and reference threads. Import as a flake input and use directly in your pipelines.