How smlfg/variance-workflow works
variance-workflow is a command-line harness for building multiple model-generated implementations of one feature in parallel, validating them, comparing their behavior, and integrating passing alternatives side by side. Its principal flow is plan → spawn → run → collect → compare → integrate; vw all orchestrates those stages. Configuration, rendered prompts, run state, adapter scripts, and target-repository commands support that workflow. The README documents the major stage relationships; the sampled bin/vw.py excerpt is partial, so internal call relationships beyond those documented are not asserted.
Main entry points: vw.py Run variants · variance.example.toml Run configuration · prompts Prompt rendering · adapters Harness adapters
Components 18
Variant workflow
- vw CLI
bin/vw.py - Run configuration
variance.example.toml - Plan variants
bin/vw.py - Variant worktrees
bin/vw.py - Prompt rendering
prompts
Model execution
- Run variants
bin/vw.py - Harness adapters
adapters - Model agents
- Run state and logs
bin/vw.py
Evaluation and reporting
- Acceptance checks
- Behavior probes
- Diff and code metrics
bin/vw.py - Variant comparison
bin/vw.py - Comparison report
bin/vw.py
Integration and learning
- Passing-variant integration
bin/vw.py - Learning notes
bin/vw.py
Other components
- Workflow operator
- Target repository
Connections 21
- Workflow operator → vw CLI: invokes
README.md - vw CLI → Run configuration: loads
README.md - vw CLI → Plan variants: runs stages
README.md - Plan variants → Variant worktrees: freezes base and assigns variants
README.md - Variant worktrees → Prompt rendering: renders prompts for
README.md - Prompt rendering → Run variants: provides variant prompts
README.md - Run variants → Harness adapters: dispatches through
README.md - Harness adapters → Model agents: starts agent runs
README.md - Run variants → Run state and logs: records run status
README.md - Run variants → Acceptance checks: runs per-variant checks
README.md - Run variants → Behavior probes: runs optional probes
README.md - Acceptance checks → Diff and code metrics: supplies evaluation results
README.md - Behavior probes → Variant comparison: supplies behavior results
README.md - Diff and code metrics → Variant comparison: supplies variant measurements
README.md - Variant comparison → Comparison report: writes
README.md - Variant comparison → Passing-variant integration: selects passing variants
README.md - Passing-variant integration → Target repository: copies owned paths into branch
README.md - Passing-variant integration → Acceptance checks: checks combined tree
README.md - Variant comparison → Learning notes: writes draft
README.md - Learning notes → Plan variants: feeds reviewed learnings
README.md - Run configuration → Run variants: sets harness and limits
README.md