Référence du runner CI odu

VérifiéPrudence

Référence pour invoquer le runner CI odu : exécuter des pipelines, des recettes ou des nœuds épinglés par plateforme, et se connecter à des exécutions en direct via MCP ou CLI.

Spar Skills Guide Bot
DevOpsIntermédiaire
05/08/2026
Claude Code
#ci#pipeline-runner#just#nix#mcp

Recommandé pour

Synthèse automatique

Référence pour invoquer le runner `odu`, qui exécute le DAG de recettes `just` taguées `[metadata("ci")]` sur plusieurs plateformes et publie des statuts de commit GitHub par contexte `<recipe>@<platform>`.

Points forts

  • Un tableau clair des modes stricts et relâchés (`--no-post`, `--no-snapshot`, `--no-strict`) indique exactement quand l'arbre doit être propre, quand HEAD est épinglé et quand des statuts sont publiés.
  • Explique comment se rattacher à un run en cours via la surface typée sur `.ci/odu.sock` (`status`, `logs`, `attach`) plutôt que de scraper la sortie du terminal.
  • Donne des sélecteurs précis : une recette sur une plateforme (`e2e@x86_64-linux`), plusieurs recettes, ou `--platform` pour restreindre tout le fanout.
  • Privilégie explicitement la voie MCP (`run` → `wait_for_settle` → lecture du log du nœud rouge → `node_rerun`) tout en conservant la CLI `nix run` comme référence et repli.

Limites

  • Suppose un dépôt dont la CI est déjà décrite en recettes `just` taguées `[metadata("ci")]` et un environnement Nix ; n'aide pas à écrire le pipeline.
  • La lecture des logs passe par la ressource MCP `surface://collections/logs/{id}` et l'outil `ReadMcpResourceTool`, propres à Claude Code, et donc par un serveur `odu-mcp` configuré.
  • Le document fourni est tronqué et s'appuie sur une connaissance préalable des statuts de commit GitHub et de la surface socket d'odu.
Quand l'utiliser

Quand il faut lancer, relancer ou inspecter un pipeline CI basé sur odu, ou un nœud `<recipe>@<platform>` précis.

Quand l'éviter

Quand le projet n'utilise pas odu ni des recettes CI taguées, ou quand il s'agit de concevoir ou modifier la définition du pipeline elle-même.

Analyse de sécurité

Prudence
Score qualité92/100

The skill is a reference for a CI orchestration tool. It contains no directly destructive or exfiltrating instructions, but it does execute third-party code fetched over the network and can modify repository settings and run arbitrary project recipes, so caution is appropriate.

Points d'attention
  • •Invokes `nix run github:juspay/odu` which fetches and executes code from an external GitHub repository, introducing supply-chain risk.
  • •The `protect` subcommand modifies GitHub branch protection settings, a state-changing action.
  • •`odu run` executes project-defined `just` recipes tagged `ci`, which can run arbitrary build/test code.
  • •Attaching to a live run via `.ci/odu.sock` and issuing `cancel` or `rerun` affects running processes.
Comment cette analyse est faite

Exemples

Full pipeline run
Run the full odu CI pipeline on a clean HEAD and summarize which nodes passed or failed.
Re-run a single failed node
Re-run `e2e@x86_64-linux` since it went red in the last run, and read its log if it fails again.
Dev iteration on a dirty tree
I have uncommitted changes — run the pipeline with --no-strict so it doesn't refuse the dirty tree or post statuses.

name: ci description: Reference for the odu runner — how to invoke a full pipeline, a single recipe, or a platform-pinned node, and how to attach to a live run, from a project whose CI odu runs. Trigger when the user asks to "run CI", "run the pipeline", "re-run a check", or names a specific recipe by <recipe>@<platform>.

odu

odu (Tamil ஓடு — "run") runs the just recipe DAG tagged [metadata("ci")] across platforms and posts GitHub commit statuses per <recipe>@<platform> context. Unlike batch runners, the run is live state you attach to: the coordinator serves a typed surface on .ci/odu.sock, so status/logs/attach are in-band — no process-compose, no separately-versioned socket client.

Prefer the MCP face for runs. When the odu-mcp skill is present (the mcp__odu__* tools — check for an odu MCP server before shelling out), drive runs through it — run → wait_for_settle (fail-fast) → read the red node's log → node_rerun, with cancel / run({supersede}) to call off or replace a run. It spawns the same coordinator but gives you structured results and the fail-fast loop instead of scraping terminal output. The nix run … -- run CLI below is the reference and the fallback when no MCP server is wired.

Logs are a resource, not a tool. Don't look for a log-tail tool — there isn't one. A node's output is the MCP resource surface://collections/logs/{id} ({id} is the node, e.g. ci::unit@aarch64-darwin), read with ReadMcpResourceTool: the live buffered tail while the run is up, else the durable per-SHA log on disk. So when wait_for_settle returns a red node, the "read the log" step is ReadMcpResourceTool on that node's surface://collections/logs/{id} — subscribe for push updates, or just re-read to poll. (surface://streams/nodes is the pipeline snapshot resource alongside it.)

Invoking

nix run github:juspay/odu -- <subcommand> [args]

Pin a ref for reproducibility, or — if the consuming repo npins-pins odu and re-exports it (kolu does) — prefer its own flake output so the version is repo-controlled:

nix run .#odu -- <subcommand> [args]

Modes

Strict by default — odu run refuses a dirty tree, pins HEAD via git worktree, posts commit statuses, and splits per-recipe logs into .ci/<sha>/<plat>/<recipe>.log. Three flags relax that policy:

| Flags | Tree | HEAD pin | Status posts | Use for | | --- | --- | --- | --- | --- | | (none — default) | clean (refuses dirty) | git worktree at HEAD | posted | "real" CI runs | | --no-post | clean | git worktree at HEAD | none | non-GitHub strict consumers; debugging strict without writing the PR's check list | | --no-snapshot (implies --no-post) | live working tree | none | none | strict-mode dev iteration without clean-tree refuse | | --no-strict (meta — same as --no-snapshot --no-post) | live working tree | none | none | dev iteration; the one-flag opt-out for "just run the pipeline" |

Every mode ends with the same ── ci run summary @ <sha7> ── verdict block (the sha reads <sha7>+dirty for a live-tree run on uncommitted changes) and exits non-zero if any node failed or errored.

Common invocations

# Full pipeline (the [metadata("ci")] root, every configured platform).
nix run github:juspay/odu -- run

# Dev iteration on a dirty tree: no clean-tree refuse, no HEAD pin, no posts.
nix run github:juspay/odu -- run --no-strict

# Re-run a single failed recipe on one lane — overwrites the same GitHub
# commit-status context the full run wrote (closes the red check).
nix run github:juspay/odu -- run e2e@x86_64-linux

# One recipe across every pipeline platform; selectors compose.
nix run github:juspay/odu -- run e2e lint

# Restrict the WHOLE fanout to one platform (repeatable).
nix run github:juspay/odu -- run --platform x86_64-linux

# Skip the dependency closure; run ONLY the named nodes (_ci-setup still rides).
nix run github:juspay/odu -- run --no-deps e2e@aarch64-darwin

# A different DAG root instead of the [metadata("ci")] recipe.
nix run github:juspay/odu -- run --root ci::e2e

# One-shot redirect of a platform's host (how a pool-lease wrapper pins a box).
nix run github:juspay/odu -- run --host x86_64-linux=my-build-box

# One NDJSON line per node transition, for agents/tools driving CI:
# {"node":"ci::e2e@x86_64-linux","recipe":"ci::e2e","platform":"x86_64-linux",
#  "status":"running|success|failed|skipped|errored","exit_code":1,
#  "log":".ci/<sha7>/x86_64-linux/ci::e2e.log"}
nix run github:juspay/odu -- run --progress json

Without --progress json, output adapts to where stdout points: a live colour lane-matrix with a log-tail footer on a TTY; quiet transition lines plus a once-a-minute "… still running" heartbeat when piped.

Inspection subcommands (no side effects)

nix run github:juspay/odu -- dump            # resolved pipeline as JSON
nix run github:juspay/odu -- graph           # dependency graph (Mermaid)
nix run github:juspay/odu -- protect --dry-run   # the (recipe × platform) contexts
nix run github:juspay/odu -- protect             # PATCH branch protection to them

Live introspection (attach to a run in progress)

While odu run is live in a checkout, these attach to its surface over .ci/odu.sock:

nix run github:juspay/odu -- status          # snapshot; -o json for tooling
nix run github:juspay/odu -- attach          # live TUI dashboard on a tty
                                             # (digits attach · n/p cycle ·
                                             #  r rerun · q quit); -o json
                                             # = transition stream
nix run github:juspay/odu -- logs -f e2e@x86_64-linux
nix run github:juspay/odu -- cancel          # stop the live run, cleanly

No run in progress ⇒ exit non-zero with no run in progress in this checkout (no live socket at .ci/odu.sock). One run per checkout — a second odu run refuses while the socket is live.

Cancel / supersede / linger. odu cancel drives the live run's teardown from a second process (finalize posted statuses, close lanes, drop the socket) and waits until it's gone — no need to wait out a doomed run or pkill the coordinator. odu run --supersede cancels whatever's live here first, then starts ("stop this, run the fixed commit"). By default a run exits the instant it drains; odu run --linger keeps it serving past settle so a node can be rerun later (retry a flake), self-reaping after an idle period or on cancel.

Hosts config

$ODU_HOSTS (a file path) → ~/.config/odu/hosts.json → fallback ~/.config/justci/hosts.json (zero-config migration from justci):

{
  "x86_64-linux": "my-linux-builder",
  "aarch64-darwin": "me@mac-mini.local"
}

Keys are Nix system tuples; values are anything ssh dials, or localhost (runs directly against the snapshot, no closure copy). Missing platforms silently drop from the fanout. --host PLAT=ADDR overrides per run.

A lane host needs only ssh + Nix + outbound https: the runner ships as a Nix closure (nix copy → realise on the host), and the source arrives by git fetch of the pushed SHA — remote lanes cannot test unpushed commits (no git-bundle transport; push first). The lane host's own nix is used on the runner's PATH (never a pinned client — version skew against the host daemon corrupts CA-derivation handling).

Semantics worth knowing

  • Lanes are one-shot: a lane whose ssh link dies mid-run fails as errored (GitHub state error, Errored (<dur>) description); live state does not survive a runner restart — the per-SHA log files do.
  • Skipped nodes post no status: an absent required context is what blocks the merge.
  • The coordinator resolves the generic lane runner from odu's own flake, not the repo under test: nix eval $ODU_RUNNER_FLAKE#packages.<platform>.odu-runner.drvPath, where ODU_RUNNER_FLAKE is baked onto the odu wrapper from self.outPath at build time. A consuming repo no longer re-exports odu-runner. There is no override or fallback — the runner is the exact build that shipped the coordinator (they share an RPC contract); a binary built without the baked flake refuses to run.

When NOT to use this skill

  • Questions about odu's internals or design history — read the README and the kolu Atlas note A CI runner you attach to.
  • Project-specific CI operations (warm pools, host leases, banned flags) — that's the consuming repo's operational docs, layered on top of this reference.

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/reference-for-the-odu-ci-runner-msfn19iz/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/reference-for-the-odu-ci-runner-msfn19iz' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/reference-for-the-odu-ci-runner-msfn19iz/download' --output '.skill-downloads/reference-for-the-odu-ci-runner-msfn19iz/SKILL.md.part' && mv '.skill-downloads/reference-for-the-odu-ci-runner-msfn19iz/SKILL.md.part' '.skill-downloads/reference-for-the-odu-ci-runner-msfn19iz/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/reference-for-the-odu-ci-runner-msfn19iz/SKILL.md' && test -s '.skill-downloads/reference-for-the-odu-ci-runner-msfn19iz/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/ci' && cp -R '.skill-downloads/reference-for-the-odu-ci-runner-msfn19iz' '.claude/skills/ci'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/reference-for-the-odu-ci-runner-msfn19iz'

openskills read 'reference-for-the-odu-ci-runner-msfn19iz'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/reference-for-the-odu-ci-runner-msfn19iz/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires