feat: verify AgentWorkforce persona spawns
Merged
KH
3mo ago+956+956+012345678901234567890123456789-58-58-01234567890123456789
Summary
- let the Agent Relay
spawnMCP tool accept an AgentWorkforcepersonaid or JSON path instead of a raw CLI and wait for the terminal capability result - keep plain
spawn:personaactions on their dynamically resolved CLI rather than rewriting them as nativepersonaharness 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 --allandcargo check -p agent-relay-broker— exit 0
Stack
Publish this as Agent Relay 11.5+ before the dependent Workforce local-surface PR is released.