From e0335047e063830ca000a8cb3a9ec31a8ab411a7 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Tue, 10 Mar 2026 16:48:15 +0000 Subject: executor: explicit load balancing — code picks agent, classifier picks model MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pickAgent() deterministically selects the agent with the fewest active tasks, skipping rate-limited agents. The classifier now only selects the model for the pre-assigned agent, so Gemini gets tasks from the start rather than only as a fallback when Claude's quota is exhausted. Co-Authored-By: Claude Sonnet 4.6 --- internal/executor/classifier_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/executor/classifier_test.go') diff --git a/internal/executor/classifier_test.go b/internal/executor/classifier_test.go index 631952f..83a9743 100644 --- a/internal/executor/classifier_test.go +++ b/internal/executor/classifier_test.go @@ -23,7 +23,7 @@ echo '{"response": "{\"agent_type\": \"gemini\", \"model\": \"gemini-2.5-flash-l RateLimited: map[string]bool{"claude": false, "gemini": false}, } - cls, err := c.Classify(context.Background(), "Test Task", "Test Instructions", status) + cls, err := c.Classify(context.Background(), "Test Task", "Test Instructions", status, "gemini") if err != nil { t.Fatalf("Classify failed: %v", err) } -- cgit v1.2.3