Home Mold

debug-galaxy-workflow-output

Triage failing Galaxy run outputs; classify the failure surface and capture evidence before recommending repairs.

reviewed

Mold health

ok
  • Source layout

    Every file beside index.md is one the mold kind declares.

  • Axis fields

    target-specific fields are coherent.

  • Eval plan

    Abstract oracle: the properties any cast of this Mold must satisfy.

    eval.md declares properties and check type.

    eval.md ↗
  • Scenarios

    Concrete cases bound to fixtures, run against the eval properties.

    scenarios.md declares cases bound to fixtures.

    scenarios.md ↗
  • Typed refs

    7 typed references; 0 resolver issues.

  • On-demand triggers

    All on-demand references describe triggers.

  • Evidence checks

    Hypothesis references include verification.

axis
target-specific
target
galaxy
name
debug-galaxy-workflow-output
contract

Reference Loading

Typed references describe what casting consumes, and when the generated skill should load each artifact.

Research planemo-asserts-idioms

Background synthesis loaded by explicit progressive-disclosure metadata.

Purpose
Classify whether a failure is an assertion-choice problem, tolerance problem, or real workflow-output regression.
Trigger
When Planemo reports output assertion failures or generated tests are too strict/too weak.
Research iwc-shortcuts-anti-patterns

Background synthesis loaded by explicit progressive-disclosure metadata.

Purpose
Decide whether a proposed debug fix aligns with accepted IWC testing shortcuts or masks a real failure.
Trigger
When debugging suggests weakening assertions, widening deltas, switching to existence checks, or changing output labels.
Research galaxy-collection-semantics

Background synthesis loaded by explicit progressive-disclosure metadata.

Purpose
Diagnose collection shape, mapping, reduction, and element-identifier mismatches in failed Galaxy runs.
Trigger
When a failing output is a collection, a mapped output, or an unexpectedly nested/flattened structure.
Research galaxy-tool-job-failure-reference

Background synthesis loaded by explicit progressive-disclosure metadata.

Purpose
Interpret Galaxy job-level failure evidence including stdio rules, exit code, job messages, and output dataset state.
Trigger
When a failed workflow test includes errored jobs, tool stderr/stdout, non-zero exit codes, or red output datasets.
Research galaxy-workflow-invocation-failure-reference

Background synthesis loaded by explicit progressive-disclosure metadata.

Purpose
Interpret Galaxy invocation-level failure evidence including invocation state, structured messages, and step job summaries.
Trigger
When a failed workflow test has invocation failure, missing workflow outputs, cancelled/paused steps, subworkflow failures, or collection population errors.
Research planemo-workflow-test-architecture

Background synthesis loaded by explicit progressive-disclosure metadata.

Purpose
Locate which Planemo artifact or Galaxy API surface preserves the failure evidence.
Trigger
When Planemo output is ambiguous, structured test JSON is available or missing because Galaxy rejected the workflow import, or rerunning can be avoided by inspecting an existing invocation.

Cast artifacts

  • Claude skill debug-galaxy-workflow-output — Triage failing Galaxy run outputs; classify the failure surface and capture evidence before recommending repairs.

How to install →

Artifact handoffs

/ pipeline contract

Produces

  • workflow-debug-report markdown workflow-debug-report.md

    Failure-surface classification with captured import/job/invocation/collection/assertion evidence and a recommended next step or reference-gap follow-up.

Consumes

debug-galaxy-workflow-output

Triage a failing Galaxy workflow test. Take the structured handoff from run-workflow-test, classify the failure surface before proposing any repair, and capture the reference evidence the surface requires. When the failure cannot be classified from existing references, recommend a focused follow-up rather than converting uncertainty into a guessed fix.

Classify before repairing. A red run can be a workflow import rejection, a tool/job failure, a workflow invocation failure, a collection-output mismatch, a missing workflow output, or an assertion mismatch—and each routes to a different reference surface and a different fix. Locate where the evidence lives first (planemo-workflow-test-architecture).

Sequence

  1. Classify the first failure surface. From the run’s structured result, decide whether the first failure is a workflow import rejection, a tool/job failure, a workflow invocation failure, a collection-output mismatch, a missing workflow output, or an assertion mismatch. Check import first: when the handoff reports failure_modality: workflow-import-rejected, or carries no workflow, history, or invocation id because Galaxy refused the workflow, no later surface exists to inspect. Classify before proposing repairs.
  2. Capture import-rejection evidence. When Galaxy rejected the workflow import, record the HTTP status and response body from the import request, the Galaxy server-log traceback for that request when one exists, and the Planemo terminal log. A 500 leaves a traceback. A handled 400 usually does not, and its response body carries the reason. A managed Galaxy’s traceback also appears in the Planemo terminal log. An external Galaxy’s appears only in its own server log. No structured Planemo output exists in this case—Planemo writes no test JSON or HTML report when the import fails (planemo-workflow-test-architecture)—and steps 4–7 have nothing to inspect.
  3. Isolate an import rejection’s trigger, then route it. Bisect with small, self-contained synthetic gxformat2 workflows rather than truncating the real one. Truncation leaves dangling step references that fail with unrelated errors. Import each variant as the same user on the same server, through the same conversion Planemo used, change one structural feature at a time, and keep a variant that imports as the passing control. Imports can leave state behind—an embedded user-defined tool is created on first import—so use distinct tool definitions per variant or a fresh server when that state could mask the trigger. Then route by what the bisection shows:
    • A minimal variant that passes the pipeline’s static validation (gxwf validate) reproduces a 500 with an internal server traceback: an upstream Galaxy or gxformat2 defect. Record the smallest failing variant, its passing control, and the traceback as the repro. Do not reshape the workflow to dodge the defect.
    • A 400 naming a schema, validation, or lint problem, or a 500 that disappears once the variant passes static validation: a workflow-content error. Route it back to the phase that emitted the offending construct. When static validation accepted the construct Galaxy rejected, also record that validator gap as its own finding.
  4. Capture job-failure evidence. When a job is in error/failed/stopped, record job id, tool id, exit code, job messages, the stdout/stderr distinction, and output dataset state per galaxy-tool-job-failure-reference; check whether the wrapper’s failure semantics already explain it.
  5. Capture invocation-failure evidence. When the invocation state or messages indicate scheduling, materialization, cancellation, conditional, or output-resolution failure, record invocation state, the structured message reason, the affected step, any subworkflow path, and the jobs summary per galaxy-workflow-invocation-failure-reference; note whether Planemo surfaced or hid the relevant Galaxy API detail.
  6. Trace collection mismatches. When a failing output is a collection or mapped output, diagnose shape, mapping, reduction, and element-identifier mismatches with galaxy-collection-semantics; for workflows translated from Nextflow, trace wrong nesting / missing elements / bad joins back to possibly-lossy operator translations via nextflow-operators-to-galaxy-collection-recipes.
  7. Read assertion failures honestly. When the failure is an assertion, use planemo-asserts-idioms to decide whether it is an assertion-choice/tolerance problem or a real output regression. Before weakening an assertion, widening a delta, or switching to an existence check, confirm against iwc-shortcuts-anti-patterns that the relaxation is an accepted IWC shortcut and not masking a real failure.
  8. Discover reference gaps. When the failure cannot be classified confidently from the references above, recommend a focused follow-up — reference documentation, pattern capture, API verification, or eval coverage — rather than emitting a repair recipe built on a guess.

Incoming References (11)

  • CWL → GALAXY phase of pipeline — Translate a CWL Workflow into a Galaxy gxformat2 workflow, then assemble and run a Galaxy workflow test.
  • GALAXY WORKFLOW MATURATION related mold — Apply the pinned IWC publication checklist to an existing Galaxy workflow, then validate and retest the matured result.
  • INTERVIEW → GALAXY phase of pipeline — Interview-driven path to a Galaxy gxformat2 workflow through the shared freeform-summary handoff.
  • NEXTFLOW → GALAXY phase of pipeline — Direct path from a Nextflow pipeline to a Galaxy gxformat2 workflow.
  • PAPER → GALAXY phase of pipeline — Direct path from a paper to a Galaxy gxformat2 workflow. No Workflow Brief or CWL intermediate.
  • UPDATE-INTERVIEW → GALAXY phase of pipeline — Interview-driven, edit-in-place modification of an existing Galaxy gxformat2 workflow via a reviewable change-set, reusing the per-step draft loop.
  • WORKFLOW BRIEF → GALAXY phase of pipeline — Consume an expert-reviewed, unchanged Workflow Brief directly through the Galaxy design and implementation chain.
  • Galaxy tool and job failure reference related mold — Reference for Galaxy tool stdio rules, job failure detection, job states, and job API failure surfaces.
  • Galaxy workflow invocation failure reference related mold — Reference for Galaxy workflow invocation states, messages, failure reasons, and invocation API surfaces.
  • Nextflow operators to Galaxy collection recipes related mold — Classifies common Nextflow operators as Galaxy wiring, collection semantics, explicit steps, or review triggers.
  • Planemo workflow-test architecture related mold — Reference for Planemo workflow test/run architecture, Galaxy modes, API polling, and noisy failure boundaries.