Files
weichenandCursor dba8139d56 feat(workflow): namespace task keys without breaking old instances
Published manifests now use bd_/pm_/tm_/sw_ prefixes so workflows cannot share a doc id. Frozen instances keep the old keys; lookup, templates, and duty checks treat the two names as the same task.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-19 10:50:25 +00:00

21 lines
715 B
Go

package squad
import "testing"
func TestDefaultWorkflowSteps_CanonicalAlias(t *testing.T) {
legacy := DefaultWorkflowSteps("intake")
canonical := DefaultWorkflowSteps("bd_intake")
if len(legacy) == 0 || len(legacy) != len(canonical) {
t.Fatalf("intake steps %d, bd_intake steps %d", len(legacy), len(canonical))
}
if legacy[0].Role != canonical[0].Role {
t.Fatalf("alias diverged: %s vs %s", legacy[0].Role, canonical[0].Role)
}
if TaskArtifactTitle("intake") != TaskArtifactTitle("bd_intake") {
t.Fatal("artifact title must match across the alias")
}
if !isStandardTask("tm_system_verification") || !isStandardTask("test_manager") {
t.Fatal("test manager alias must stay on the whitelist")
}
}