feat: expose SDK-backed persona fleet spawning

Merged
KH
3mo ago
+3571-1300

Summary

  • extract the CLI persona cascade into the public @agentworkforce/persona-registry SDK, including exact highest-priority JSON-path resolution and typed errors
  • add defineWorkforcePersonaSpawnNode() / spawn:persona to local-surface, using persona-kit in process for harness, model, standing instructions, installed skills, MCP servers, and harness settings
  • layer the concrete Relay task separately, dedupe concurrent node/project/persona launches, and request strict broker registration/readiness verification
  • add persona-kit-owned mount autosync with watcher setup gating and a final teardown flush so isolated agent edits persist
  • make the new SDK discoverable and publishable through the lockstep publish/verify workflows

This is the Workforce part of https://github.com/AgentWorkforce/workforce/issues/306. There is no agentworkforce subprocess or output parsing in the launch path.

Verification

  • persona-kit tests — 301 passed
  • persona-registry tests — 3 passed
  • local-surface tests — 11 passed
  • existing CLI local-persona/persona-install tests — exit 0
  • CLI build — exit 0
  • release-workflow tests — exit 0
  • frozen-lockfile install — exit 0
  • staged whitespace, secret-pattern, and home-path scans — 0 findings

Stack

Depends on AgentWorkforce/relay#1464 and its Agent Relay 11.5+ publication. The manifest remains installable against the published 11.4 line, but spawn:persona checks Relay's new runtime compatibility marker and fails loudly on older Fleet versions instead of silently delegating to the wrong harness. Fresh installs will select 11.5 once it is published.