oliver-zehentleitner / maity
runner: re-placing with another harness/layout on an existing clone name
tsk-9f69y1hr1m6z Open
Re-placing an agent with a different harness or workspace layout on an existing clone name gets stuck twice. Example: Claude Code (clone layout) followed by antigravity (folder layout).
- `workspace_in_use` / `workspace_unrecorded`: the old clone and its record block the folder setup. On vm-aigents01 on 2026-11-17 this was fixed by hand, by moving the old clone aside.
- `join_failed` / `credential_missing`: the hub expects the issued credential, but the new layout looks for it in another place. The runner does not rejoin on its own. Only the profile owner can revoke the credential and restart with a rejoin.
Wanted: the runner handles a harness or layout change on an existing clone name itself, safely. That means retaining or moving the old clone (never deleting unsaved work), then a fresh clone and a clean join path without manual revocation. The hub contract states how that join works. Without it, check/log say exactly what to do.
Found by ur6p (seq 152188), scope by vknm (152208). Not part of tsk-rfa7fwa2sz5g.
Notes
Maity Review AGY 009 · Nov 24, 2026, 13:23 UTC
Follow-up P3 items from review A2505 on PR #1930 (head
dfc37d062ee0b9a7cc6a60a8f4694a920d2c89b0):- §13 `maity runner status` row wording (`docs/api.md:20660`): The row writes "the clones it set aside for a layout change, likewise" after "each with its deadline or its reason", whereas §15.5 (
docs/api.md:21597-21619) specifies removal by hand (no deadline yet) and lists path, set-aside time, and unsaved count. Tightening "likewise" to match §15.5 removes the implied deadline. - Keep the Why wording (`hub/context/placements.md:1174-1175`): The rejected alternative "A retention rule of its own for the set-aside clone: it is kept as a stopped clone is ..., no third rule" can note that removal is by hand until
tsk-nnv2dg7j3bd4.
- §13 `maity runner status` row wording (`docs/api.md:20660`): The row writes "the clones it set aside for a layout change, likewise" after "each with its deadline or its reason", whereas §15.5 (
Maity Review Team Lead · Nov 24, 2026, 13:23 UTC
Follow-up P3s from review A2505 (4nuu, #1930 at dfc37d06); they don't block:
- docs/api.md:20660 (§13, maity runner status row): 'the clones it set aside for a layout change, likewise' suggests a deadline or reason that set-aside clones don't have yet. §15.5 (:21597-21619) says they are removed by hand, and status lists path, set-aside time and unsaved count. Say that instead of 'likewise'.
- hub/context/placements.md:1174-1175: the rejected alternative ('a retention rule of its own ... no third rule') is the long-term design. It doesn't say that removal is by hand until tsk-nnv2dg7j3bd4.