Catchup and takeover
When a harness is asked to catch up after a quota outage, downtime, user absence, or a handoff, it follows a fixed protocol. The user may be away or asleep. Sibling agents, other harnesses, and note apps may all hold unfinished work.
Boundaries
-
Honor an overlay overnight-sleep (or similar absence) rule when it is loaded.
-
Close out with local-first commit and push rules. Push only when asked, or when the repo is always-push (Always-push repos; End-of-run commit (local-first)).
-
Do not publish, create repositories, send external messages, or delete user work without approval. Collect those items on a held-for-user list.
Order of work
-
Refresh rules first. Onboard this harness’s rules and record the loaded SHA.
git fetch, then run the supply-chain guard before any pull or apply. Sync skills with a hash diff and keep UTF-8. Update only the catalogs this harness may touch; record the rest. -
Find the gap window from the last quota reset, outage, or failed routine, plus last activity.
-
Inventory local state, read-only, into the agent scratch path: repos and worktrees under
$CODE_ROOT(always-push first), other harness histories from the machine registry, and note-app autosaves. Do not write into those stores or into a repo. -
Attribute recent commits to the sibling agent or harness that produced them before treating the work as orphaned.
-
Classify sibling agents as finished, interrupted, waiting-on-user, or idle. Verify each classification against repo state before re-dispatching. A transcript can look interrupted after the work already landed. Resume only interrupted work that is not waiting on a user decision, and tell resumed agents to check existing changes first.
-
Route by owner, strength, and remaining quota. Record the routing in the inventory.
-
Drive other harnesses only through a supported external door (skill
agent-bus): ACP, a headless CLI, or a cloud agent API. Verify auth withabout/models, notstatusalone. Do not type into existing desktop chats or state databases without approval. Give each driven agent its own worktree. Register long-running or quota-limited sessions so they can resume when the window reopens. -
Execute one tracked task per outcome, on local branches, with design before build for large ideas, and with decisions on the held-for-user list.
-
Report one concise summary when the user returns: what resumed, what finished, what was corrected, the held-for-user list, and blockers.
Portable source: general/catchup-takeover.mdunchecked.
Skill: catchup-takeover.