Shipped workflows are Go code behind a fake YAML vocabulary; rewrite them in general step types #1440
Notifications
Due Date
No due date set.
Blocks
Reference: sam/archie#1440
Reference in new issue
Block a user
BuiltinStepRegistry (internal/domain/workflow/definition.go) turns every stage of the seven hard-coded Go workflows (bootstrap, feasibility, implement, pr-review, remediate, tdd, triage) into a step type named .. About 45 of the ~50 step types are these. They take no settings, cannot be reordered or reused outside their own workflow, and their names say nothing to an operator. The YAML is a facade over Go.
Done when:
Design
Workflow language the shipped Go workflows need, from an inventory of every stage:
Build order: 1+2+4 (agent.run usable end to end), then 8+9 (rewrite implement, tdd), then 3+5+6+7 (feasibility, triage), then 10 (remediate). pr-review ships as one review.pr step with depth. Delete BuiltinStepRegistry last.
Notes
2026-10-04: bootstrap deleted (
9b0a4c75). triage and feasibility are kept: triage is the fallback router for unmatched tasks, feasibility the default for features. Blocker for the rest: agent.run cannot read an earlier step's result (implement's build reads plan's output via TaskContext fields), so the general vocabulary needs step ids plus references to earlier step outputs before any workflow can be rewritten.Added to design: 13. Retries: retry: {attempts, backoff} on any step, retrying only that step. 14. Parallel branches: a parallel step holding named branches of steps that run concurrently; all must finish (or any, per setting) before the next step; branch step results are referenceable as steps..
Close reason
All six shipped workflows are YAML over 17 general step types (agent.run, repo., gate., forge., human.approve, workflow.call/handoff/finish, review., command.run); step ids, {{ }} references, result schemas, when, on_failure, retry and parallel branches are in the language. BuiltinStepRegistry and the . types are deleted.
Imported from beads
archie-core-m14o· GitHub #1408 · type task · priority P1 · created 2026-10-04 · closed 2026-10-04