* fix(#3795): read the interrupted agent id before clearing the stale marker (#4006)
* test(#3795): the interrupted-agent read must precede the stale-id clear
* fix(#3795): read the interrupted agent id before clearing the stale marker
execute-plan's init_agent_tracking step ran `rm -f
.planning/current-agent-id.txt` BEFORE the existence check that read it,
so the interrupted-agent branch and the Task resume prompt it exists to
offer were unreachable (#3795) — a kill -9 mid-executor left the file,
and the next run deleted it before looking. The read now precedes the
clear; fresh-run semantics (no stale id leaking into the new spawn) are
preserved. A structural guard pins the order.
Emitted-Drift-Ack-Growth: execute-plan.md — #3795: +bytes from reordering the interrupted-agent read before the rm plus the explaining comment
* chore(#3795): changeset fragment (pr number backfilled after PR creation)
* chore(#3795): backfill changeset PR number (4006)
---------
Co-authored-by: sim <sim@local>
* fix(#3799): scope legacy cleanup to the install's resolved config dir and add --no-legacy-cleanup
* chore(#3799): changeset fragment (pr number backfilled after PR creation)
* chore(#3799): backfill changeset PR number (4013)
* test(#3799): mark the legacy-name fixtures with gsd-allow-legacy-name
---------
Co-authored-by: sim <sim@local>