resync
Part of the Import Bot agent preset.
Resync
People keep using the old tools for a while. A resync brings over only what is new since the last import, and it is also how a late export email or a finished sign-in gets folded in.
Steps
- Read the last import date and the "waiting on" list from the Import state fact,
/workspace/migration/state.md, orreceipt.md. mv /workspace/migration/inventory.json /workspace/migration/inventory.prev.json.- If the user pasted an export link, download it on this computer's browser and extract into
raw/accounts/<service>/export/. If a sign-in was pending, run that part of collect-accounts. - Run collect-local (two cards, say so) and parse-import.
- Diff against
inventory.prev.json, in this order, and list what is new: memory notes and memory entries changed or added, new projects and new notes inside existing projects, new or changed scheduled tasks, sessions and conversations created after the last import, new skills. - Route the new items: shared facts per write-user-memory (write, then show), unit updates to the owning expert as a short
SendToAgentpointing atpack/<slug>-update-<date>.md, new units to the expert whose expertise fits, a new expert only when a new expertise appears with real evidence. - Receipt titled "Resync receipt, ", deltas only, same shape. Rewrite the Import state fact the way import-receipt does, with the new date. Delete raw and strip samples as usual.
If nothing changed: "Nothing new since ." and stop.