(workflow) add simple harness workflow for manual testing

This commit is contained in:
Test
2026-08-21 18:07:12 -07:00
parent 769e56d33d
commit 5b8d3df01e
17 changed files with 1080 additions and 44 deletions
+13 -1
View File
@@ -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
}
+18 -1
View File
@@ -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
}