Add federation worker and canonical handoffs

This commit is contained in:
kami
2026-07-28 16:17:18 +04:00
parent 58793a5aa3
commit 2cecbc4015
22 changed files with 1429 additions and 108 deletions
+11
View File
@@ -89,6 +89,17 @@ func TestAgentNameIsBoundedAndValid(t *testing.T) {
}
}
func TestAgentNameLongIDsDoNotCollide(t *testing.T) {
first := agentName("claude", "task-with-a-very-long-shared-prefix-aaaaaaaa")
second := agentName("claude", "task-with-a-very-long-shared-prefix-bbbbbbbb")
if first == second {
t.Fatalf("long task IDs collided: %q", first)
}
if len(first) > 32 || len(second) > 32 {
t.Fatalf("agent name exceeds limit: %q / %q", first, second)
}
}
func TestPromptDoesNotRetryAmbiguousDelivery(t *testing.T) {
ln, err := net.Listen("tcp", "127.0.0.1:0")
if err != nil {