Replace supervisor with agentrun worker service
Move agent-run orchestration from the legacy supervisor path into the new agentrun worker/service package and wire it through coredata, server, policies, and GraphQL resolvers. This consolidates run lifecycle handling around lease-aware workers and aligns API surface with the new agent-run domain model so reviewers can follow one coherent execution path. Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -21,7 +21,6 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.probo.inc/probo/pkg/agent"
|
||||
"go.probo.inc/probo/pkg/agentruntest"
|
||||
"go.probo.inc/probo/pkg/coredata"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"go.probo.inc/probo/pkg/llm"
|
||||
@@ -30,7 +29,7 @@ import (
|
||||
func TestPGCheckpointer(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
client := agentruntest.PGClient(t)
|
||||
client := pgClient(t)
|
||||
store := coredata.NewPGCheckpointer(client)
|
||||
|
||||
t.Run(
|
||||
@@ -39,7 +38,7 @@ func TestPGCheckpointer(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
ctx := context.Background()
|
||||
run := agentruntest.InsertPendingRun(
|
||||
run := insertPendingRun(
|
||||
t,
|
||||
client,
|
||||
"test-agent",
|
||||
@@ -58,7 +57,7 @@ func TestPGCheckpointer(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
ctx := context.Background()
|
||||
run := agentruntest.InsertPendingRun(
|
||||
run := insertPendingRun(
|
||||
t,
|
||||
client,
|
||||
"test-agent",
|
||||
@@ -100,7 +99,7 @@ func TestPGCheckpointer(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
ctx := context.Background()
|
||||
run := agentruntest.InsertPendingRun(
|
||||
run := insertPendingRun(
|
||||
t,
|
||||
client,
|
||||
"test-agent",
|
||||
@@ -143,7 +142,7 @@ func TestPGCheckpointer(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
ctx := context.Background()
|
||||
run := agentruntest.InsertPendingRun(
|
||||
run := insertPendingRun(
|
||||
t,
|
||||
client,
|
||||
"test-agent",
|
||||
@@ -202,7 +201,7 @@ func TestPGCheckpointer(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
ctx := context.Background()
|
||||
run := agentruntest.InsertPendingRun(
|
||||
run := insertPendingRun(
|
||||
t,
|
||||
client,
|
||||
"test-agent",
|
||||
|
||||
Reference in New Issue
Block a user