No description
  • Rust 97.9%
  • Nix 2%
  • Shell 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
JMARyA 0e7d0086c8
feat: job summaries from steps and threads, shown and sent to the forge
A step reports markdown for people to read beside its status: whatever
it writes to $MOIRA_SUMMARY (also exported as $GITHUB_STEP_SUMMARY and
$FORGEJO_STEP_SUMMARY, so existing scripts and actions report into it),
followed by its `summary:` template, rendered after the step with its
own outputs and status. A thread's `summary:` is rendered by the server
once the run has finished, against every step's results and run.status /
run.url, and opens the run's summary; a matrix container's is each
combination's under a heading.

The agent redacts a summary for the step's secrets and trims it to
JOB_SUMMARY_MAX (64 KiB, Hyve's per-check bound); StepResult.summary is
Step summaries are stored in step_runs.summary (061), exposed by the
runs API, rendered on the run page above the timeline (markdown with
light HTML through ammonia, signed-in readers only) and posted as
`job_summary` with the final commit status. Hyve renders it under the
check; Forgejo ignores the field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 07:33:34 +01:00
.moira/envs test(forge): a thread that actually declares issues: write 2026-10-02 19:17:48 +02:00
crates feat: job summaries from steps and threads, shown and sent to the forge 2026-11-11 07:33:34 +01:00
docs feat: job summaries from steps and threads, shown and sent to the forge 2026-11-11 07:33:34 +01:00
grafana feat(cache): serve /cache/* and artifacts from their own data plane 2026-09-13 17:47:49 +02:00
k8s feat(cache): serve /cache/* and artifacts from their own data plane 2026-09-13 17:47:49 +02:00
nix feat(agent): checkouts borrow from a per-repository store 2026-10-25 19:29:04 +01:00
openspec feat(history): a release tag is history worth building 2026-10-25 20:12:30 +01:00
scripts refactor(core): keep what evaluating moiraPipelines came to 2026-10-05 12:06:18 +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 feat(forge): accept Forgejo-named signatures and supplied tokens 2026-11-09 11:59:54 +01:00
Cargo.lock feat: job summaries from steps and threads, shown and sent to the forge 2026-11-11 07:33:34 +01:00
Cargo.toml chore(deps): facet moves with vox, or not at all 2026-09-14 21:50:00 +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 chore(flake): moira-modules 40e72eb → d054784 2026-10-05 11:08:55 +02:00
flake.nix fix(nix): the agent image no longer waits on tests without git 2026-11-09 12:58:24 +01:00
README.md docs(readme): bring the standard library section up to date 2026-09-03 01:18:11 +02:00
renovate.json chore(deps): facet moves with vox, or not at all 2026-09-14 21:50:00 +02:00
zensical.toml feat(cache): serve /cache/* and artifacts from their own data plane 2026-09-13 17:47:49 +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 constructors — rustCi, nodeCi, goCi, pythonCi, container, containerManifest, s3Site, notify. Applied to an options attrset, with withDefaults for per-site values.

Derived threads — fromProject { 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.