integrate-spawn-site

Integrate spawn-site migrations: grep test + smoke

Metadata

Statusdone
Assignedagent-170
Agent identity3184716484e6f0ea08bb13539daf07686ee79d440505f1fdf2de0357707034c3
Created2026-04-26T20:27:47.677912857+00:00
Started2026-04-26T23:30:34.507530612+00:00
Completed2026-04-26T23:51:29.572299093+00:00
Tagseval-scheduled
Tokens0 in / 0 out

Description

Description

Final integrator for the spawn-single-source decomposition. After all four migration subtasks land:

  1. Add a grep-based unit test test_all_spawn_sites_call_plan_spawn that verifies no spawn site outside src/dispatch/ constructs argv-and-executor decisions independently. Implement as a tests/ integration test that scans src/ for forbidden patterns.

  2. Manual smoke: with local executor=claude, global openrouter is_default, retry 6 previously-failed tasks; spawn metadata must show executor=claude, no --endpoint flag, no native-exec invocation. Daemon log must contain SpawnPlan provenance lines for every agent spawn.

  3. Delete the now-redundant requires_native_executor function from src/commands/service/coordinator.rs IF no remaining call sites exist (grep first to verify).

Validation

  • tests/spawn_site_isolation.rs (or similar) added with test_all_spawn_sites_call_plan_spawn passing
  • requires_native_executor either deleted or has documented remaining call sites
  • Manual smoke logged in this task showing one previously-failed task now spawning with executor=claude (provenance line in daemon log)
  • cargo build + cargo test pass with no regressions

Depends on

Required by

Log