m3resp.workflows.collect_diagnostics#

m3resp.workflows.collect_diagnostics(spec, *, available=None)[source]#

Collect structural errors and warnings for all resolvable workflow steps.

Parameters:
  • spec (WorkflowSpec) – Parsed workflow with ordered steps and declared inputs.

  • available (set[str] | None) – Additional context keys supplied before execution.

Returns:

Findings about unknown operations, input/output bindings,

declared parameter types and limits, input references, duplicate output keys and session-dependency order. Empty when no issues are found. Checks use registered metadata and leave scientific data processing to execution.

Return type:

list[Diagnostic]