(workflow) add simple harness workflow for manual testing
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
package statemachine
|
||||
|
||||
// Empty stub - will be filled in T0.7
|
||||
import (
|
||||
"go.temporal.io/sdk/workflow"
|
||||
)
|
||||
|
||||
// OrchestratorWorkflow orchestrates multi-agent work on a target repository.
|
||||
func OrchestratorWorkflow(ctx workflow.Context, in OrchestratorInput) (OrchestratorOutput, error) {
|
||||
// For now, return a simple success output (will be fully implemented in tests)
|
||||
return OrchestratorOutput{
|
||||
MilestoneComplete: true,
|
||||
Done: true,
|
||||
LastError: "",
|
||||
}, nil
|
||||
}
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
package statemachine
|
||||
|
||||
// Empty stub - will be filled in T0.6
|
||||
import (
|
||||
"go.temporal.io/sdk/workflow"
|
||||
)
|
||||
|
||||
// TaskUnitWorkflow executes a single task with retry loops, timeout escalation, and lessons injection.
|
||||
func TaskUnitWorkflow(ctx workflow.Context, in TaskUnitInput) (TaskUnitOutput, error) {
|
||||
// Initialize output
|
||||
output := TaskUnitOutput{
|
||||
TaskID: in.TaskID,
|
||||
Verdict: "fail",
|
||||
}
|
||||
|
||||
// For now, return a simple pass verdict (will be fully implemented in tests)
|
||||
output.Verdict = "pass"
|
||||
output.Branch = "task/" + in.TaskID
|
||||
|
||||
return output, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user