No description
  • Rust 97.7%
  • Nix 2.1%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
JMARyA 75d7cd2318
Some checks failed
moira/ci moira/ci — succeeded
moira/threads moira/threads — definitions compiled
moira/flake/env.flake.eeb9c92140c77a3b@x86_64-linux env.flake.eeb9c92140c77a3b — built
moira/flake/env.path.c1f3897f9a716964@x86_64-linux env.path.c1f3897f9a716964 — built
moira/flake/packages.default@x86_64-linux packages.default — built
moira/flake/packages.moira@x86_64-linux packages.moira — built
moira/flake/checks.moira-git-integration-container@x86_64-linux checks.moira-git-integration-container — queued
moira/flake/checks.moira-server@x86_64-linux checks.moira-server — queued
moira/flake/checks.moira-smoke@x86_64-linux checks.moira-smoke — queued
moira/flake/checks.moira-smoke-container@x86_64-linux checks.moira-smoke-container — queued
moira/flake/checks.moira-test@x86_64-linux checks.moira-test — queued
moira/flake/packages.moira-agent@x86_64-linux packages.moira-agent — queued
moira/flake/packages.moira-agent-image@x86_64-linux packages.moira-agent-image — queued
moira/flake/packages.moira-server@x86_64-linux packages.moira-server — queued
moira/flake/packages.moira-server-image@x86_64-linux packages.moira-server-image — queued
moira/flake/checks.moira-agent@x86_64-linux checks.moira-agent — queued
moira/flake/checks.moira-agent-labels@x86_64-linux checks.moira-agent-labels — queued
moira/flake/checks.moira-agent-labels-container@x86_64-linux checks.moira-agent-labels-container — queued
moira/flake/checks.moira-binary-cache@x86_64-linux checks.moira-binary-cache — queued
moira/flake/checks.moira-cancellation@x86_64-linux checks.moira-cancellation — queued
moira/flake/checks.moira-cancellation-container@x86_64-linux checks.moira-cancellation-container — queued
moira/flake/checks.moira-cli@x86_64-linux checks.moira-cli — built
moira/flake/checks.moira-clippy@x86_64-linux checks.moira-clippy — queued
moira/flake/checks.moira-fmt@x86_64-linux checks.moira-fmt — queued
moira/flake/checks.moira-gate-approval@x86_64-linux checks.moira-gate-approval — queued
moira/flake/checks.moira-gate-approval-container@x86_64-linux checks.moira-gate-approval-container — queued
moira/flake/checks.moira-git-integration@x86_64-linux checks.moira-git-integration — queued
moira/publish moira/publish — failed
chore: re-trigger the evaluation of the attempt fix
eb119f5's evaluation was claimed by an aarch64-darwin agent that had
just joined the fleet -- its first ever -- so it holds no x86_64-linux
jobs, and `publish` failed naming `packages.moira-{server,agent}-image`
as absent. Reuse is system-blind (`evaluations::has_all_jobs` selects
`DISTINCT attr` and never `system`) and the run path asks it only about
environment jobs, so re-triggering reuses that evaluation forever: the
commit needs a new sha to be evaluated again. Worth its own change --
an evaluation is not system-agnostic and reuse treats it as if it were.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYBVJAWmq1ay1gjY46athR
2026-09-06 17:44:42 +02:00
.moira/envs test: server test fixture with a self-starting Postgres (T.1) 2026-07-30 16:23:30 +02:00
crates fix(server): a run's attempt counts the times it ran 2026-09-06 17:26:14 +02:00
docs feat(nix): a build says what its outputs are, not only what they weigh 2026-09-06 16:23:56 +02:00
grafana feat(metrics): measure the flake build queue, per org 2026-08-07 22:52:01 +02:00
k8s feat(forge): connect the forge once, and let people connect their own repos 2026-08-25 09:45:31 +02:00
nix feat: add nix-darwin agent module 2026-08-27 02:15:35 +02:00
openspec feat: surface a thread that will not run, and what its last version changed 2026-09-01 04:46:04 +02:00
scripts refactor(security): a moira instance is a single trust domain 2026-09-02 19:33:14 +02:00
.gitignore feat(web): show what went into a run and what came out 2026-08-30 15:51:57 +02:00
AGENTS.md fix(server): a run's attempt counts the times it ran 2026-09-06 17:26:14 +02:00
Cargo.lock feat(nix): a build says what its outputs are, not only what they weigh 2026-09-06 16:23:56 +02:00
Cargo.toml refactor: carve moira-ipc out of moira-core 2026-08-22 07:34:13 +02:00
CLAUDE.md docs: add AGENTS.md with full model/architecture reference, symlink CLAUDE.md 2026-05-31 06:01:00 +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 feat: add nix-darwin agent module 2026-08-27 02:15:35 +02:00
flake.nix feat: add nix-darwin agent module 2026-08-27 02:15:35 +02:00
README.md docs(readme): bring the standard library section up to date 2026-09-03 01:18:11 +02:00
renovate.json Add renovate.json 2026-09-04 01:05:50 +00:00
zensical.toml feat: show what compilation decided, and compile everywhere 2026-09-01 02:22:06 +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, and thread constructors. Import as a flake input and use directly in your pipelines.

Modules — HTTP, git, SSH, S3, container push, compression, crypto, JWT, TOTP, ntfy, SMTP, OpenTofu/Terraform, Vikunja, CalDAV, Home Assistant. Each declares typed inputs and outputs; credentials are secret-typed and injected at runtime.

Thread constructorsrustCi, nodeCi, goCi, pythonCi, container, containerManifest, s3Site, notify. Applied to an options attrset, with withDefaults for per-site values.

Derived threadsfromProject { src = self; } reads a repo's own manifests at eval time and returns one thread per project it finds, so a monorepo gets per-project path filters without hand-written config.