fix: route to a registered default workflow until implement lands

First live run exposed the gap: with only bootstrap registered, Route()
fell through to the definition-bug backstop. Label routing now falls
back to reg["default"], which archied maps to bootstrap until the
implement workflow exists.
This commit is contained in:
sam committed 2026-07-21 03:58:46 +10:00
1 parent c2c8e92304
commit 61612568d6
1 file changed
+3
+3
View File
@@ -79,6 +79,9 @@ func Route(t *store.Task, reg Registry) Workflow {
if wf, ok := reg["implement"]; ok {
return wf
}
if wf, ok := reg["default"]; ok {
return wf
}
// Registry always ships a default; this is a config error backstop.
return Workflow{Name: "none", Stages: []Stage{{
Name: "fail",