migrate-manual-wg

Migrate manual wg spawn to plan_spawn

Metadata

Statusdone
Assignedagent-157
Agent identityf51439356729d112a6c404803d88015d5b44832c6c584c62b96732b63c2b0c7e
Created2026-04-26T20:27:24.927954160+00:00
Started2026-04-26T22:44:13.572246695+00:00
Completed2026-04-26T23:03:17.071556262+00:00
Tagseval-scheduled
Tokens4086242 in / 24984 out

Description

Description

Migrate src/commands/spawn/mod.rs and src/commands/spawn/execution.rs (manual 'wg spawn' command) so the executor + endpoint flag selection flows through plan_spawn rather than being decided independently in the argv builder. The --endpoint-name / --endpoint-url branches at execution.rs:1109-1116 must be gated by plan.endpoint, not by ad-hoc lookup.

File scope: src/commands/spawn/mod.rs, src/commands/spawn/execution.rs.

Implement directly — do not decompose further.

Validation

  • Manual 'wg spawn' calls plan_spawn before invoking spawn_agent_inner
  • argv builder consumes plan.endpoint (no fallback ad-hoc endpoint resolution)
  • Provenance log line emitted on manual spawn
  • cargo build + cargo test pass

Depends on

Required by

Log