restart-wg-dispatcher

Restart wg dispatcher daemon to pick up reaper-edge-case fix

Metadata

Statusdone
Assignedagent-877
Agent identityf51439356729d112a6c404803d88015d5b44832c6c584c62b96732b63c2b0c7e
Created2026-04-27T21:37:51.290723195+00:00
Started2026-04-27T21:50:17.816097553+00:00
Completed2026-04-27T21:53:09.232354618+00:00
Tagseval-scheduled
Tokens1271029 in / 11240 out
Eval score0.87
└ blocking impact0.85
└ completeness0.88
└ coordination overhead0.82
└ correctness0.92
└ downstream usability0.78
└ efficiency0.82
└ intent fidelity0.87
└ style adherence0.88

Description

Description

A stale wg daemon (started 13:40 from a build pre-dating commit c7aa98724 'reaper-edge-case (agent-823)') is reaping target/ dirs of retry-in-place worktrees because its agent-id-vs-worktree-name lookup doesn't match the live agent. Symptom hit while implementing migrate-agency-tasks: building inside .wg-worktrees/agent-832 (live agent agent-845 retry) saw target/debug/{build,deps,.fingerprint} disappear every dispatcher tick (~60s).

The fix already exists on main (3a67135d1 'fix: reaper protects target/ of wg-retry-in-place worktrees'), but the running daemon is from an older binary. cargo install --path . from this branch refreshes /home/erik/.cargo/bin/wg, but the running daemon must be restarted to use the new binary.

Validation

  • wg service stop --force then wg service start --max-agents 8 ...
  • Verify wg --version reports the freshly built binary
  • After 60s, target/ directories of in-progress retry-in-place worktrees (where worktree dir name != live agent id) are NOT reaped
  • Existing in-flight agents continue working

Background

Worktree path is .wg-worktrees/agent-832 (named after the original failed attempt id). Live agent is agent-845. The pre-fix reaper looked up 'agent-832' in the registry, found no live entry under that exact name, and reaped target/. The post-fix reaper handles this case correctly.

Depends on

Required by

Log