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:
1 parent
c2c8e92304
commit
61612568d6
1 file changed
+3
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user