Self-hosted workflows for coding-agent delivery. Orchestrate CodeBuddy, Codex and Claude Code with scripts and human approval gates. Includes Local workflows for coding assistants.
JavaScript agent-orchestrationagentic-workflowai-agentsai-codingclaude-codecode-reviewcodebuddycodexcoding-agentscursordeveloper-toolshuman-on-the-loopllmmcpmulti-agentsdlcself-hostedsopworkflow-automationworkflow-engine
package domain
import "testing"
func TestShouldResumeClarificationOnlyForCrashedAnalysis(t *testing.T) {
cases := []struct {
name string
issue Issue
want bool
}{
{"analyzing", Issue{ID: "a", Clarification: ClarificationAssessment{Status: ClarificationAnalyzing}}, true},
{"fresh import", Issue{ID: "a", Kind: "requirement"}, false},
{"legacy needs_user", Issue{ID: "a", Kind: "requirement", Clarification: ClarificationAssessment{Status: ClarificationNeedsUser, Gated: true}}, false},
{"waiting for answers", Issue{ID: "a", Clarification: ClarificationAssessment{Status: ClarificationInProgress}}, false},
{"no id", Issue{Clarification: ClarificationAssessment{Status: ClarificationAnalyzing}}, false},
}
for _, tc := range cases {
if got := ShouldResumeClarification(tc.issue); got != tc.want {
t.Fatalf("%s: got %v want %v", tc.name, got, tc.want)
}
}
}