Skip to content

Operators

An operator is the code that does one kind of work. A step asks for a capability, and the environment binds that capability to an operator (see Capabilities and environments). This page lists the 24 operators that ship with the open-source core, grouped by the pack that contains them. The builtin packs ship inside the cairndev wheel; the Metaflow and SkyPilot engines are wheels of their own (the metaflow and skypilot extras), and the training stack train/lora needs is the train extra.

Risk is declared by the operator’s author, and policies can match on it:

RiskMeansPolicy level
read_onlyreads or computes; changes nothing outside cairnlow
external_writewrites to a system outside cairn (a store, a channel, a repository)medium
paid_computestarts work that costs money (GPUs, paid APIs)high
production_mutationchanges something running in productionhigh

A policy’s applies_to.risks uses the levels in the last column.

Runs as: in_process runs inside the engine; remote_job runs off the engine’s process (an engine job, an SSH box) and the run waits for it.

Notes: long-running reports progress while it works; has a mock path means it can stand in with a stub in mock and sandbox runs; asks for approval means the operator pauses for a person on every call, wherever it runs (see Approvals an operator asks for).

Inside the cairndev wheel; each heading is the pack’s directory under packages/.

Local filesystem artifact store — provides storage.put + storage.get capabilities.

OperatorProvidesRiskRuns asNotes
storage/getstorage.getread_onlyin_processhas a mock path
storage/putstorage.putexternal_writein_processhas a mock path

Zero-dep hash-chained append-only audit log — provides the audit.sink capability.

OperatorProvidesRiskRuns asNotes
audit/storeaudit.sinkread_onlyin_processhas a mock path

Semantic data profiler — resolve a workflow’s data roles, verdict PASS/DEGRADE/BLOCK (ADR-0074).

OperatorProvidesRiskRuns asNotes
data/profiledata.profileread_onlyin_processhas a mock path

The Metaflow dataflow engine behind dataflow/run and ml/run (cairndev[metaflow]).

No operators: it adds the engine, selected with dataflow_engine / ml_engine under [profile.backends].

The SkyPilot provisioning engine behind dataflow/run and ml/run (cairndev[skypilot]).

No operators: it adds the engine, selected with dataflow_engine / ml_engine under [profile.backends].

Governed dataflow execution behind one operator (dataflow.run).

OperatorProvidesRiskRuns asNotes
artifact/promoteartifact.promoteexternal_writein_processasks for approval; has a mock path
dataflow/rundataflow.runexternal_writeremote_joblong-running; has a mock path
ml/runml.runexternal_writeremote_joblong-running; has a mock path

Universal MCP dispatcher — calls any tool on any configured MCP server.

OperatorProvidesRiskRuns asNotes
mcp/callmcp.callexternal_writein_processhas a mock path

Local SQLite-vec backed memory store — provides memory.search + memory.write capabilities.

OperatorProvidesRiskRuns asNotes
memory/searchmemory.searchread_onlyin_processhas a mock path
memory/writememory.writeproduction_mutationin_processhas a mock path

Zero-dep signal/threshold detector — provides the monitor.threshold capability.

OperatorProvidesRiskRuns asNotes
monitor/dispatchmonitor.dispatchpaid_computein_processhas a mock path
monitor/proposemonitor.proposeread_onlyin_processasks for approval
monitor/thresholdmonitor.thresholdread_onlyin_processhas a mock path

Local SQLite-vec backed RAG retrieval — provides rag.search + rag.fetch.

OperatorProvidesRiskRuns asNotes
rag/fetchrag.fetchread_onlyin_processhas a mock path
rag/searchrag.searchread_onlyin_processhas a mock path

Cross-corpus re-ranking for RAG hits — identity | cross_encoder | cohere.

OperatorProvidesRiskRuns asNotes
rag/rerankrag.rerankread_onlyin_processhas a mock path

Zero-dep regex PII/secret redactor — provides the redact.text capability.

OperatorProvidesRiskRuns asNotes
redact/textredact.textread_onlyin_processhas a mock path

Run a command/job on any SSH box you own (remote.exec), and start and stop the box (compute.acquire, compute.release).

OperatorProvidesRiskRuns asNotes
compute/acquirecompute.acquirepaid_computein_processhas a mock path
compute/releasecompute.releaseexternal_writein_processhas a mock path
remote/execremote.execexternal_writeremote_job, in_processlong-running; has a mock path

compute/acquire starts the EC2 instance a compute.ssh connection names (instance_id, region): it writes the cairn:managed lease tag first (with cairn:release-after when max_hours is set), then starts the instance and waits for its SSH port. Put an approval gate before it; a profile that gates paid_compute also pauses it for its own approval. compute/release stops the instance, and an instance already stopped is a success, so declare it finalizer: true with its connection wired from $input: it then runs when the pipeline ends done, failed or cancelled (in-process and DBOS pipeline owners). cairn admin compute sweep --apply stops a box whose lease expired when the control plane that acquired it is gone.

Env-var SecretStore — provides the secrets.store capability (zero-dep default).

OperatorProvidesRiskRuns asNotes
secrets/envsecrets.storeread_onlyin_processhas a mock path

Infisical SecretStore — provides the secrets.store capability (universal-auth machine identity).

OperatorProvidesRiskRuns asNotes
secrets/infisicalsecrets.storeread_onlyin_processhas a mock path

LoRA fine-tuning on CPU — provides train.finetune (train/lora, stage train.lora) and train/eval-loss.

OperatorProvidesRiskRuns asNotes
train/eval-losstrain.eval_lossread_onlyin_processhas a mock path
train/loratrain.finetuneexternal_writein_processhas a mock path

Operators for GPU providers, managed training, evaluation, serving and the other domains are part of cairn-platform. Your own operators ship as a package with a cairn.operators entry point; cairn pack new operator <name> scaffolds one.