Expand description
Workflow template system for brat.
This crate provides YAML-based workflow templates that can be expanded
into Grite convoys and tasks. Workflows are stored in .brat/workflows/
and can be either:
- Sequential workflows (
type: workflow): Steps execute in order based on dependencies - Parallel convoys (
type: convoy): Legs execute in parallel with optional synthesis
§Example
# .brat/workflows/code-review.yaml
name: code-review
version: 1
type: convoy
inputs:
pr:
description: "Pull request number"
required: true
legs:
- id: correctness
title: "Correctness Review"
body: "Review for logic errors..."
- id: performance
title: "Performance Review"
body: "Review for performance issues..."
synthesis:
title: "Review Synthesis"
body: "Combine findings..."Structs§
- Input
Spec - Input variable specification.
- LegSpec
- A leg in a parallel convoy.
- Step
Spec - A step in a sequential workflow.
- Synthesis
Spec - Synthesis step that runs after all legs complete.
- Workflow
Executor - Executor for running workflow templates.
- Workflow
Instance - Result of executing a workflow.
- Workflow
Parser - Parser for loading workflow templates from YAML files.
- Workflow
Template - A workflow template loaded from YAML.
Enums§
- Workflow
Error - Errors that can occur during workflow operations.
- Workflow
Type - Workflow type determines execution model.