Skip to content

Workflow Visualization Command #60

@crashfrog

Description

@crashfrog

Parent

Part of generalized allelic typing system design (discussed in conversation 2026-05-22)

What to build

Add torchbase workflow inspect <strategy|torch-path> command that renders workflow pipeline as ASCII box diagram. Shows task flow, conditionals, and key parameters.

Works for:

  • Built-in workflows: torchbase workflow inspect balanced
  • Torch-embedded workflows: torchbase workflow inspect path/to/torch/

Rendering:

  • Parse WDL using miniwdl or similar library
  • Generate ASCII diagram with boxes for tasks
  • Show conditional branches with ├──[condition]──┐ notation
  • Include task names + key parameters by default
  • Add --verbose flag for full parameter details

Surface WDL parsing errors but don't validate workflow correctness.

Acceptance criteria

  • torchbase workflow inspect command exists
  • Accepts built-in strategy names (fast/balanced/sensitive)
  • Accepts torch directory paths
  • Renders ASCII box diagram of pipeline
  • Shows conditional branches clearly
  • Includes task names and key parameters
  • --verbose flag shows full details
  • Surfaces parsing errors from WDL library
  • Tests verify diagram generation for all three built-in workflows

Blocked by

#55 - Fast Strategy Workflow
#56 - Balanced Strategy Workflow
#57 - Sensitive Strategy Workflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentReady for autonomous agent implementation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions