Glossary#
Key terms and concepts used in oxo-flow documentation.
Core Concepts#
DAG (Directed Acyclic Graph)#
A mathematical representation of a workflow where each node is a rule (task) and edges represent dependencies. "Acyclic" means there are no circular dependencies — a rule cannot depend on itself through a chain of other rules. oxo-flow automatically builds a DAG from input/output file relationships.
Example: If rule A produces aligned.bam and rule B needs aligned.bam as input, there's an edge A → B in the DAG.
Rule#
A single processing step in a workflow. Each rule defines:
- Input: Files needed to run the step
- Output: Files produced by the step
- Shell/Script: The command to execute
- Environment: The software environment to use
Example: A bwa_align rule takes FASTQ files as input and produces a BAM file as output.
Workflow#
The complete pipeline definition in a .oxoflow TOML file. A workflow contains:
- Metadata (name, version, author)
- Configuration variables
- Default settings
- One or more rules
Wildcard#
A placeholder pattern like {sample} that expands to concrete values based on input files or explicit configuration. Wildcards enable writing one rule template that processes many samples.
Example: input = ["raw/{sample}.fastq.gz"] expands to raw/S001.fastq.gz, raw/S002.fastq.gz, etc.
Execution#
Topological Sort#
An ordering of DAG nodes where every node appears before any nodes that depend on it. This determines the execution order — dependencies must run before the rules that need them.
Example: If A → B → C, execution order is A, B, C.
Parallel Groups#
Sets of rules that can run simultaneously because they have no dependencies on each other. oxo-flow's -j flag controls how many rules from a parallel group can run at once.
Example: fastqc and fastp_trim can run in parallel if neither depends on the other.
Checkpoint#
A persistent record of which rules have completed. Checkpoints enable resuming workflows after failures without re-running successful rules.
Besides rule status, a checkpoint stores config snapshots, rule fingerprints, and input file manifests — the engine compares them on every run to invalidate rules whose config, definition, or input file set changed. It also records tombstones: rules marked temporary = true whose outputs were deleted after a successful run (once their dependents completed, and — with [engine] disk thresholds configured — only when free space was below reclaim_free_disk), so later runs skip them unless a dependent needs the outputs again. For provenance it stores the workflow git repo's HEAD SHA (workflow_git_sha) and, per pinned git [[include]], the checkout's resolved HEAD SHA (include_resolutions) — evidence that module content did not drift between a run and its resume.
File location: .oxo-flow/checkpoint.json
Fingerprint#
A hash of a rule's config snapshot, definition, and input manifest recorded in the checkpoint. On every run the engine compares the stored fingerprint against the current state to decide whether a completed rule can be skipped or must re-execute.
Tombstone#
A checkpoint record for a rule marked temporary = true whose outputs were
deleted after a successful run (once their dependents completed, and — with
[engine] disk thresholds configured — only when free space was below
reclaim_free_disk). Later runs skip tombstoned rules unless a dependent
needs the outputs again.
Orphaned completion#
A rule instance the checkpoint still records as completed, but which the
current plan no longer contains because the sample file that produced it is
gone from the workflow's sample_pattern discovery
domain. The checkpoint persists the discovered domain
(sample_pattern_domains, unioned per declared pattern, so the record
survives reruns); run, dry-run, and status compare it with the current
disk scan and report each orphan under the additive orphaned_completions
JSON key (rule, sample, pattern, outputs). Reporting never deletes
anything — the stale output stays on disk. Restoring the sample file clears
the report; when its content changed, the existing input-manifest
invalidation re-executes the rule. See
Orphaned completions.
Environments#
Environment Backend#
A system for managing software dependencies. oxo-flow supports:
| Backend | Use Case |
|---|---|
| conda | Bioinformatics tools with complex dependencies |
| mamba | Faster, C++ reimplementation of conda with parallel dependency solving |
| pixi | Fast, modern alternative to conda |
| docker | Full container isolation |
| singularity | HPC-friendly containers |
| venv | Python-only tools |
| system | Default system shell — no isolation (used when no backend is declared) |
| modules | HPC environment modules (Lmod/Environment Modules) |
Environment Spec#
A declaration in a rule that specifies which environment to use.
Example: environment = { conda = "envs/bwa.yaml" }
Environment YAML#
A conda environment definition file listing packages and versions.
Example:
Workflow Format#
TOML (Tom's Obvious Minimal Language)#
A configuration file format used for .oxoflow files. Key features:
- Tables:
[name]defines a section - Arrays of Tables:
[[name]]defines multiple items (used for rules) - Key-Value:
key = "value"
See TOML Specification for full syntax.
.oxoflow#
The file extension for oxo-flow workflow definitions. These files are TOML format and define the complete pipeline.
[defaults]#
A section that sets default values (threads, memory, environment) for all rules unless overridden.
[[pairs]]#
A section defining experiment-control sample pairs for comparative analyses like tumor-normal variant calling.
Fields:
pair_id: Unique identifier for the pairexperiment: Sample name (e.g., tumor)control: Matched control sample (e.g., normal)
[[sample_groups]]#
A section organizing samples into named groups for cohort studies.
Fields:
name: Group name (e.g., "treatment", "control")samples: Array of sample identifiers
transform#
An operator that unifies scatter (split) → map (process) → gather (combine) patterns in a single rule declaration.
Example: Split by chromosome, call variants per chromosome, then combine VCFs.
Placeholders#
{input}#
Expands to all input files, space-separated.
Example: {input} → sample_R1.fastq.gz sample_R2.fastq.gz
{input[N]}#
The Nth input file (0-indexed).
Example: {input[0]} → sample_R1.fastq.gz
{input.name}#
Named input file — input given as an inline map (input = { reads = "..." }).
Example: {input.reads} → the value of the reads entry in the rule's input map
{output}#
Expands to all output files, space-separated.
{output[N]}#
The Nth output file (0-indexed).
Example: {output[0]} → aligned/S001.bam
{output.name}#
Named output file — output given as an inline map (output = { bam = "..." }).
Example: {output.bam} → the value of the bam entry in the rule's output map
{threads}#
The thread count for the current rule.
{memory}#
The memory allocation for the current rule.
{effective_threads}#
Declared threads clamped to the machine's CPUs — the tool-facing concurrency. Use for flags like --threads when the declared value is an HPC-scale label; unset threads render as 1.
{effective_memory_mb}#
Declared memory clamped to the machine's total memory, as an integer number of MB — the tool-facing heap budget (e.g. for JVM -Xmx flags). Unset memory renders as the machine's full total.
GPU capacity (--max-gpus)#
A capacity-level local concurrency limit for GPU-demanding rules, enabled
by --max-gpus N or OXO_FLOW_MAX_GPUS=N (the flag wins). A rule's demand is
max(resources.gpu, resources.gpu_spec.count); its reservation is
min(demand, N); a rule over capacity reserves the whole pool and runs alone,
and every terminal path (success, failure, cancel) returns the stored
reservation. Unset or 0 keeps GPU as metadata (the default, with the W044
advisory), and an explicit --max-gpus 0 overrides a set env; a malformed env
value is a hard error on the local path. The cap is local-only
(run --profile ignores flag/env with a warning without parsing the env), per
run (independent processes do not coordinate), and it manages capacity
only — it does not enumerate or assign devices, set CUDA_VISIBLE_DEVICES,
or isolate device resources.
environment.gpus is a separate docker --gpus passthrough, not scheduling
demand.
{log}#
Path of the rule's log field; per-instance wildcards and {config.x} values are expanded, and the parent directory is created automatically.
{config.*}#
A configuration variable from the [config] section (plain value, declared default, or CLI override).
Example: {config.reference} → /data/ref/hg38.fa
{meta.<column>}#
Sample-group metadata column in [[sample_groups]] shell commands — same value as {wildcard.<column>} for group metadata. See the canonical placeholder table.
{wildcard.*}#
Per-instance binding of a wildcard key — sample-group metadata entries and expansion keys, under the same grammar as when conditions. Unbound keys render as their literal brace token.
Example: {wildcard.umi1_pattern} → the umi1_pattern metadata entry of the sample group
Output#
Report#
A structured output document (HTML, JSON, PDF) summarizing workflow execution, QC metrics, and results. Clinical reports include variant classifications and audit trails.
Provenance#
A record of how each output was produced: which inputs, which tool, which version, which parameters. Essential for reproducibility.
Workflow lock#
A canonical oxo-flow.lock document (format oxo-flow.lock/v1) written by
oxo-flow lock that pins the workflow content/resolved hashes, the
metadata-contract digest, the [config] snapshot, the include graph, and
each rule's environment identity plus declared software. oxo-flow lock
--check verifies it in CI; run --locked or [engine] locked = true
fails a run closed on drift before any rule executes. A lock is evidence of
declared inputs, not bitwise reproducibility — it never pulls images or
solves packages. See lock.
Lock digest#
sha256:<hex> over a workflow-lock document excluding its own
lock_digest field. It detects hand edits and corruption (a mismatch is
LOCK-007), and a lock-enforced run records it in the checkpoint, folds it
into workflow_resolved_hash, and reports it from provenance verify /
provenance attest. It is not a signature and not an external
notarization: it proves internal consistency, not authorship.
Benchmark#
Timing and resource usage data for each rule (wall time, memory, CPU).
Cluster/HPC#
Backend#
A cluster scheduler system. oxo-flow supports:
| Backend | Scheduler |
|---|---|
slurm |
SLURM (SLURM Workload Manager) |
pbs |
PBS/Torque |
sge |
Sun Grid Engine / Oracle Grid Engine |
lsf |
IBM Spectrum LSF |
kubernetes / k8s |
Kubernetes |
aws-batch |
AWS Batch |
gcp-batch |
Google Cloud Batch |
Partition/Queue#
A group of cluster nodes with specific characteristics. Jobs are submitted to a partition/queue.
Example: -q compute submits to the "compute" partition.
Wall-time#
The maximum time a job can run before being terminated by the scheduler.
Example: time_limit = "24h" → 24-hour wall-time limit.
Executor backend#
A pluggable execution adapter (ExecutorBackend)
that maps the engine's static plan onto a scheduler API — submit, poll,
cancel, logs. The first implementation targets SLURM/PBS/SGE/LSF; the plan
itself stays executor-agnostic, so the dry-run preview is valid for every
backend.
Static plan#
The fully determined execution plan computed before any execution: topological order, parallel groups, per-rule resource declarations, and the invalidation set. Executors consume the plan without re-deriving it.
Checkpoint re-entry#
A bounded dynamic-DAG mechanism (Workflow Format):
a checkpoint = true rule writes a manifest at runtime declaring new samples;
the engine merges them, re-expands the rule templates, and executes the new
instances in the same run. Every round is still a static plan; the checkpoint
records the rounds so resumes replay (and revoke) them deterministically.
Remote manifest entry#
The content identity of an s3:// / gs:// / az:// input recorded in a
rule's input manifest: (scheme, key, size, etag) — S3 ETag (raw hex,
possibly a composite multipart hash), GCS md5Hash, or Azure
Content-MD5 (base64 for both GCS and Azure).
Same-size remote rewrites invalidate the rule exactly as local content
changes do (Cloud Storage).
Diagnostic Codes#
Every static check in oxo-flow tags its findings with a stable code so tools (and you) can branch on them programmatically:
Exx— an error: the workflow is rejected (validatefails) or flagged as not runnable. Example:E017— an unknown key in a rule, the engine's way of saying "this TOML uses a dialect the schema does not have".Wxx— a warning: the workflow runs, but the check found a likely mistake worth fixing (seeoxo-flow lint).
Codes are three characters: the letter, then a zero-padded number. The
authoritative, machine-readable source is the --json output of each
command (validate --json, dry-run --json, lint --json); the tables
below list every code the engine currently emits.
Validation errors (validate / dry-run)#
| Code | Meaning |
|---|---|
E001 |
Workflow name is empty |
E002 |
A rule definition failed engine validation — e.g. gpus declared without a docker image, or output_pattern combined with output/transform (mutually exclusive) |
E003 |
A wildcard appears in a rule's output but not in its input — the engine cannot key instances |
E004 |
Invalid memory / resources.memory specification. Parse rejects unparseable values before the diagnostic layer runs, so this code is defense-in-depth for programmatically constructed configs |
E005 |
A {config.key} reference points at a key absent from [config] |
E006 |
DAG construction error (e.g. a cycle) |
E007 |
depends_on names a rule that does not exist |
E008 |
extends names a rule that does not exist |
E009 |
An input path contains .. and may escape the working directory |
E010 |
A rule references an undefined env_group. The same code also flags an absolute input file that does not exist (a missing relative input gets W020 instead — see the lint table) |
E011 |
A rule command matches a dangerous shell pattern (destructive command class). Recursive deletions (rm -rf/rm -r) are only blocked when the target resolves OUTSIDE the run workdir — pipelines may delete their own outputs (see Security model) |
E013 |
A checkpoint = true rule lacks checkpoint_manifest. Emitted at warning severity — checkpoint = true predates the manifest field, so legacy workflows keep validating (it appears in --json warnings, not errors) |
E014 |
A checkpoint rule is parameterized by {sample}/{group}/{pair_id} (not allowed) |
E015 |
Re-entry declares a pair_id with conflicting content |
E016 |
An environment field contains a shell-unsafe character — the spec would not render as safe argv; the same code also labels a re-entry pair_id colliding with an existing instance name (see Checkpoint re-entry) |
E017 |
Unknown key in a rule — usually a foreign workflow dialect (e.g. foreach, inputs = {...}). A hard parse error; the message names the offending keys and points at the workflow format reference. The known container slip inside an environment table gets a contextual hint: a container image is declared as environment = { docker = "image:tag" } or environment = { singularity = "docker://image:tag" } |
E018 |
A when condition uses an unrecognized bare identifier (e.g. params_mode == 1) — the evaluator would treat it as true and the rule would silently run. Reference config keys as config.key, or use a quoted literal, a {...} placeholder, or a built-in function |
E019 |
A rule's declared pixi manifest does not exist (resolved relative to the workflow directory). validate and plan/dry-run preflight it the same way they existence-check static inputs; run fails before executing anything |
E020 |
A [wildcard_constraints] entry is not a valid regex (e.g. the impossible range [z-a]+). Parse rejects such entries for TOML-loaded configs, so this diagnostic is defense-in-depth for programmatically constructed configs — it runs the SAME shared compilation helper the plan-time fan-out and runtime projection use, making the validate-time error byte-identical to the run-time one |
E021 |
A rule's input/output pattern uses Snakemake-style inline wildcard constraint syntax (e.g. {sample:[A-Z]+}). The engine's wildcard grammar is {name} only — a :-carrying brace group is never parsed as a wildcard, so it stays literal brace text and the tool fails on a path that looks valid. Constraints belong in [wildcard_constraints] |
E022 |
A rule has no runnable command: shell is missing, empty, or whitespace-only and no non-empty script is declared. E002 sees shell = "" as a present field, and the engine then skips the rule at run time ("no shell or script defined") — this code makes that state a hard validation error. Rules driven by transform are exempt (their command lives in transform.map/transform.combine). The classic trigger is an imported Nextflow process whose script: block was not captured |
E023 |
A fan-out domain is statically degenerate, so the workflow would plan zero instances or plan literal placeholders while reporting success. Covers: a [[rules.scatter]] with an empty value domain (values = [], no values_from, or a values_from that resolves to an empty list) or an empty variable; a transform rule with an empty/missing split.by, no split source at all, a split.values_from that resolves to an empty list, or a split.n that is zero, negative, non-integer, or above the 100,000-instance expansion cap. An unresolvable config.<key> reference is left to expansion (a CLI --arg override or parent include may supply it); a sample_pattern/split.glob that matches zero files is a data-dependent plan-time error, not E023. The same inputs also hard-fail run/dry-run at expansion time |
E024 |
A rule references an engine-reserved placeholder that can never be substituted on the surface where it appears. Covered: {log}/{log[0]} without log =; {log[N]} with N > 0 (the renderer substitutes only {log}/{log[0]}, even when log = is declared); {memory} without memory/[rules.resources] memory/[defaults] memory; {chunks} outside a transform combine shell; and a {values.<name>} reference no source can supply — no declared [[values]] table, pair/group metadata column or sample/group, input_groups key, or discovered output_pattern wildcard on a real consumer (the namespaced form resolves those from the rule's fan-out combo). A scatter variable binds only the bare {variable} form (the scatter pass is wildcard-only), so {values.<scatter_variable>} is E024; envvars values, string parameter values, and the benchmark path likewise never receive the values-namespace expansion, so {values.<name>} there is E024 even for a declared table or bound combo name. A bare {name} with no declared table may instead be a legitimate shell brace program (e.g. awk '{print $1}') and stays literal; validate --as-include skips only the parent-dependent values-namespace sub-class (a fragment may reference a binding declared by the host workflow); the non-expanded-surface variant still fails in a fragment, since no host declaration can bind it. The scan mirrors the surfaces the execution-time gate actually inspects — shell, script path, lifecycle hooks, log/benchmark, transform map and combine shells — plus envvars values, string parameters interpolated through {params.<key>}, input patterns interpolated by {input}/{input[i]}/{input.<key>}, and output paths, where a reserved token is never rendered (a declaration cannot fix those). when conditions are never flagged, and an input pattern is flagged only when a rendered command interpolates it. A fan-out wildcard named like a reserved token (scatter variable, [[sample_groups]] metadata column, [[pairs]] key, [[values]] table, sample/pairs-pattern capture) binds it during expansion and suppresses E024 — but only when EVERY combo the rule fans out over binds it: a metadata column declared on just some [[sample_groups]] or [[pairs]] entries is not exempt for the instances that lack it (the exemption follows the combos that actually materialize, including a per-rule when filter). validate/lint report E024 as an error; run/dry-run apply the same detector as a plan-time gate before building the DAG (their merged config includes profile defaults, which validate — like E005 for profile-supplied config keys — cannot see). The documented strict_placeholders escape hatch still wins at execution: with [engine] strict_placeholders = false (or OXO_FLOW_STRICT_PLACEHOLDERS=0) the plan-time gate downgrades to a warning and the executor's gate is warn-only — except for a bare engine-reserved token in an output path ({log}, {memory}, {chunks}, {threads}, {effective_threads}, {effective_memory_mb}, {input}, {output}), which the unconditional output-path gate rejects, so the plan-time gate fails closed on it regardless of the switch |
E025 |
A rule's declared script file does not exist (resolved relative to the workflow directory; {config.*} is expanded first). The candidate is the file the executor runs — the bare first token, or the script argument of an interpreter-led declaration (python scripts/x.py, bash scripts/x.sh, /usr/bin/env python scripts/x.py, including path-qualified and version-suffixed interpreter names such as /usr/bin/python3 and python3.11). A dynamic token ($PWD/…, ~/…, quotes, a wildcard), a form with no identifiable script file (python -m module), and a scratch = true rule's relative script (anchored to the run workdir, unknown at plan time) are skipped, never hard-failed; a when gate mentioning a wildcard is not treated as statically skipped (per-instance verdict), matching lint W045. A missing static script fails the rule deterministically at execution, so validate reports a hard error (the severity E019 uses for a missing pixi manifest); lint mirrors it as warning W045, and --as-include skips the check like E019/W020. test --deep leaves script existence to D001 (which also scans shell interpreter invocations and resolves script = against the workflow directory, like the executor), so its composed validation step skips E025 |
Metadata contract findings (META-*)#
Emitted by validate and dry-run (and enforced by run) when a workflow
has a per-sample metadata table or declares a
[workflow.metadata_schema] contract. They are stable,
row-level, sorted by (code, row, column, id), and exposed in the
metadata array of the --json documents. Errors fail validation; warnings
do not. META-001–META-008 and META-012 are errors only when the
workflow declares [workflow.metadata_schema] — without it the table stays
free-form and they are warnings (the schema-dependent META-001,
META-002, META-004–META-007, and META-012 cannot fire at all
without a schema). See the
metadata contract reference
for the field semantics.
| Code | Meaning |
|---|---|
META-001 |
A required column is missing from the metadata table header/rows |
META-002 |
A required column has no value in a row (row is the 1-based data row) |
META-003 |
Duplicate metadata id — the later row is reported and the first occurrence's row is named |
META-004 |
Duplicate value in a column declared unique |
META-005 |
Value outside the column's declared enum |
META-006 |
Value does not match the column's declared regex (or the regex declaration itself is invalid) |
META-007 |
Value is not a valid declared type (integer / float / boolean) |
META-008 |
Pair conflict: experiment == control, or a duplicate pair_id |
META-009 |
A pair's experiment/control sample has no metadata row — severity follows coverage (off / warn / error) |
META-010 |
A [[sample_groups]] member has no metadata row — severity follows coverage |
META-011 |
A metadata row id is outside every sample group and pair domain (pair ids/experiments/controls count as domain ids) — severity follows coverage |
META-012 |
A column is not declared and allow_extra_columns = false |
Lint warnings (lint)#
| Code | Meaning |
|---|---|
W001/W002 |
Workflow missing description / author |
W003 |
Rule missing a description |
W004 |
(info) Rule has a shell command but no log file specified — stdout/stderr are still captured into job records |
W005 |
Rule uses >8 threads with no memory |
W006 |
(info) Rule name uses hyphens — suggests snake_case (underscores) |
W007 |
(info) Leaf rule (no dependents) that could be marked target = true |
W008 |
(info) Rule declares no environment — runs in the bare system shell |
W009 |
Rule uses >32 threads but has no memory — high-thread jobs typically need significant memory |
W010 |
Rule has checkpoint = true but no output files |
W012 |
Rule has retries but no retry_delay (retries execute immediately) |
W013 |
(info) Rule has an on_failure hook but no retries — the hook runs on first failure |
W014 |
depends_on references an unknown rule |
W015 |
Rule extends an unknown base rule — validate reports the same condition as E008 |
W016 |
Conda/pixi spec is not a lockfile — builds may not be reproducible |
W017 |
Input path is absolute |
W018 |
Input path references a home directory |
W019 |
Rule executes a command but declares no outputs |
W020/W021/W022 |
A missing relative input file (W020), or a pre_exec/on_success/on_failure hook containing a dangerous pattern. W021 also labels a script that references another rule's output without an ordering edge (depends_on) |
W023 |
Shell command uses flagged idioms ($(), backticks, rm -rf, chmod 777, eval, curl-pipe-shell) — aggregated one diagnostic per command; common in bioinformatics scripts, verify intentional |
W024 |
A wildcard has no declared source — it will stay literal at run time. Also surfaced by validate (as a warning, exit 0), so the first gate in the validate → dry-run → run path is not silent about it |
W025 |
Legacy threads =/memory = keys under the rule body (use resources.) |
W027 |
A when condition references a wildcard nothing can bind — evaluates false |
W028 |
Docker image is not fully qualified (resolves against docker.io) |
W029 |
len(config.x) compared against a non-numeric value |
W030 |
Malformed regex_extract in a when condition |
W031 |
Producer is when-gated but its consumer expands the output unconditionally |
W032 |
A config key looks like a secret but is not declared sensitive |
W033 |
Two rules write the same output path (differently-named wildcards over one template count too) — second writer silently overwrites the first |
W034 |
An {input[N]}/{output[N]} index is out of range, or a named {input.key}/{output.key} is not declared — renders as literal brace text and the tool fails on a path that looks valid |
W035 |
A command reads a shell glob (e.g. cat stats/*.count.txt) while the rule declares no inputs — globs are expanded by the shell at run time and create no DAG dependency, so the rule may run before the files it reads exist |
W036 |
A rule declares input_function, but the engine performs no dynamic input resolution — the field is parsed and round-tripped yet never called, so the input list stays exactly as declared (the declared function name does not fill it at run time) |
W037 |
A resource_hint sets runtime or io_bound — both are parsed but consumed by nothing; the scheduler only uses input_size and memory_scale today |
W038 |
A rule sets format_hint — parsed but consumed by nothing; the engine performs no format-specific I/O today. pipe is NOT flagged (since #997 it selects staging_mode = "stream_fifo") |
W039 |
A dotted {namespace.key} placeholder uses an unrecognized namespace (e.g. {metadata.batch} instead of {meta.batch}) — the token is never substituted and the tool receives literal brace text |
W040 |
A rule has no runnable command — shell is missing or empty/whitespace-only and no non-empty script is declared; the engine skips the rule at run time. The lint mirror of E022; transform rules are exempt |
W041 |
A rule references the sample domain ({sample}, {group}, {meta.<column>}, {wildcard.sample}, {wildcard.group}) with no binding source — the rule runs once and the token stays unbound (the execution-time gate rejects it). Bind the domain in input/output (a uniquely-keying {meta.*} OUTPUT reference or a one-row constant table also binds), declare the source (sample_pattern/pairs_pattern declarations count without data), or use singleton = true to silence the lint diagnosis for an intentional one-instance {meta.*} read (the runtime gate still requires a resolvable value). {sample}/{group} stay flagged even for a singleton |
W042 |
(emitted by validate; lint does not raise it) An empty [[sample_groups]] samples list. Downgraded from E023 (issue #1153 review): the cohort may be supplied at run time with --samples @sheet.tsv, so validate warns while run/dry-run still fail closed when no domain binds. Fix by listing samples, removing the group, or supplying the cohort at run time |
W043 |
(emitted by lint) A rule selects an [env_groups.<g>] that is empty — resolve_environment returns the empty group (it still wins over the rule's inline environment and [defaults] environment per issue #1210), so the rule silently runs in system while the group name reads as if it isolated an environment. Fix by populating the group with a backend (conda/mamba/pixi/docker/singularity/venv/modules) or removing env_group from the rule |
W044 |
(info; emitted by lint) A rule declares resources.gpu or resources.gpu_spec.count > 0. GPU is not a local scheduling constraint by default — the local executor treats the declaration as metadata, does not gate dispatch on it, and does not serialize GPU rules (the local executor also warns at rule start). Advisory only, so lint --strict does not fail cluster-targeted workflows. Local enforcement is opt-in: --max-gpus N / OXO_FLOW_MAX_GPUS=N enables a capacity-level pool (demand max(gpu, gpu_spec.count), reservation min(demand, N); an explicit --max-gpus 0 overrides the env), or declare a [resource_groups.<pool>] pool and consume it through resources.groups. Cluster mapping is per backend: SLURM/PBS/SGE prefer gpu_spec when present (falling back to resources.gpu); LSF reads resources.gpu only (a gpu_spec-only rule warns and renders no directive); Kubernetes/AWS Batch prefer resources.gpu (falling back to gpu_spec.count); GCP Batch and Tencent Batch do not map GPU |
W045 |
(emitted by lint) A rule's declared script file does not exist — the rule fails deterministically at execution. The lint mirror of E025 (same shared resolver, same {config.*} expansion, same dynamic/scratch skips); validate reports the same condition as the hard error |
Schema-check codes (S001–S007) come from the raw-file schema pass,
reachable through oxo-flow lint (not validate, which reports only
parse-level errors): S001 invalid TOML syntax, S002 missing
[workflow], S003 missing workflow name, S004 malformed [[rules]],
S005 a rule entry that is not a table, and S006 an unknown top-level
section (checked against the parser's own E017 whitelist — the documented
sections are never flagged; since the parsed config cannot retain unknown
keys, S006 is the one schema code users can actually trigger). S007 warns when [workflow].format_version is present but
unrecognized, and S008 is the secret-scanning warning: a token-shaped
pattern in the raw file (security); like the whole S-series,
it reaches users only through the lint pass.
The full, current list with suggestions is best read from the commands:
oxo-flow lint --json prints every code with its message and suggestion
(see lint). AI-generated drafts that fail a gate
have their errors fed back to the model for correction
(AI CLI); deterministic repairs for purely mechanical
classes run first, before any model round is spent.
Scientific preflight advisories (SCI-*)#
The SCI-* scientific-preflight catalog is enumerated by
oxo-flow diagnostics list scientific. Its advisory subset
(ADVISORY_SCI_CODES) is never blocking and never fed to the AI
correction loop: the operational concurrency/hardware advisories plus the
data-inspecting checks below, which read bounded local evidence and report
"unknown" (no finding) when it is absent or malformed.
SCI-REF-NAMING— a reference FASTA.faiand a BAM@SQ/ VCF##contigname used by the same rule disagree on canonical chromosome spelling (chr1vs1,chrMvsMT), compared per canonical chromosome (a shared spelling aligns that contig; alt/decoy names are ignored).SCI-BAM-M5— a BAM header@SQ M5checksum disagrees with the MD5 of the declared reference FASTA contig (uppercase bases after removing every byte outside printable ASCII,0x21–0x7E— the SAM/htslibsamtools dictconvention), compared case-insensitively. Only contigs with a well-formedM5tag and a readable reference.fa+.faiare compared, and the index offset passes a cheap ownership heuristic (non-zero and preceded by a newline — this rejects a mid-line stale offset but is not proof the offset starts a record); reference scanning is capped at 256 MiB of bytes (bases plus line wrapping) and 8 million lines per contig, 512 MiB per analysis, 64 contigs per pair, and 1 MiB per buffered line — everything past those caps is unknown.SCI-COUNTS-INT— a single-cell.mtx/.mtx.gzmatrix declares real values and a bounded sample (the first 512 values within 1 MiB) contains a non-integral entry (likely a log-normalized matrix fed to a count-expecting tool)..h5ad/HDF5 is deferred (no pure-Rust reader).SCI-DB-LOAD— a STAR genome index or Kraken2 database directory is larger on disk than the rule's declared memory; the tool may load or memory-map it, so the finding is advisory.
Cohort size and replication are not automated (SCI-REPLICATES is
documentation-only by the issue #1471 scoping decision): one sample per
group is often a deliberate exploratory or pilot design, and replication
adequacy depends on the assay and the question — check it as the author.
SCI-DESEQ2-MIN-REPLICATES covers only the narrow differential-expression
configuration where fewer than three replicates makes dispersion estimation
unreliable.
Benchmark terms#
- pass@1 / pass@k — the probability that a single generation (or at
least one of k attempts) passes the judge. Used in
AI evaluation and
eval/frontier/. - fidelity — a deterministic check that the tools an intent names actually appear in the generated pipeline. Gates alone cannot see a "wrong but valid" pipeline.
- method guard — the frontier benchmark's optional per-intent
forbidscheck (intent v2): a declared tool/method that is known wrong for the assay (for examplebwafor bisulfite alignment) fails the cell. It is a narrow, text-presence guard for audit-identified wrong methods, not a scientific judge. - judge layers — the frontier benchmark reports success cumulatively: (a) gates only, (b) gates + fidelity, (c) gates + fidelity + method guard. Layer (c) is the primary outcome for intent set v2 and none of the layers certifies scientific or execution correctness.
- seed — one repeat of the same intent under identical settings; multiple seeds measure sampling variance instead of quoting a single lucky/unlucky run.
See Also#
- Workflow Format Reference — complete TOML specification
- DAG Engine — how dependencies are resolved
- Wildcards Reference — pattern expansion details