feat: verify AgentWorkforce persona spawns

Merged
KH
3mo ago
+956-58

Summary

  • let the Agent Relay spawn MCP tool accept an AgentWorkforce persona id or JSON path instead of a raw CLI and wait for the terminal capability result
  • keep plain spawn:persona actions on their dynamically resolved CLI rather than rewriting them as native persona harness shadows, with a runtime feature marker for dependent SDKs
  • hold verified broker spawn results until strict node registration plus worker_ready, with duplicate-name rejection, a 90-second deadline, and release/deregistration on failure
  • expose replay-safe SpawnedAgentHandle.waitForReady() and document the AgentWorkforce fleet-node path

This is the Relay part of https://github.com/AgentWorkforce/workforce/issues/306. It uses the in-process Fleet/SDK path and does not invoke the agentworkforce binary.

Verification

  • cargo test -p agent-relay-broker --lib — 860 passed, 4 ignored
  • focused Fleet, harness-driver, and MCP tests — 53 passed
  • harness-driver build — exit 0
  • Fleet build — exit 0
  • CLI TypeScript check — exit 0
  • cargo fmt --all and cargo check -p agent-relay-broker — exit 0

Stack

Publish this as Agent Relay 11.5+ before the dependent Workforce local-surface PR is released.