Session summary — close-out
Resolve this skill directory as SKILL_DIR. Read CLIENT.md beside this file for the installed client_id. Read the shared home’s GUIDE.md.
- Run
python3 "$SKILL_DIR/scripts/session_save.py" doctor --client <client_id>. Stop unlessokis true andmigration_requiredis zero. - Locate the existing record by real host session ID or known slug with
locate --client <client_id> .... If no record exists, stop and ask the user to run session-tag first. A close-out never invents a record. - Require
<record>/tag.md. Promote its GIST content without recomputing it. - Write or refresh
<record>/human.md: GIST, bottom line, assets, problems, solutions, achieved, actioned, insights, and next. - Write or refresh
<record>/agent.md: technical state, decisions and reasons, proven versus unproven, source client, and open threads. Reconcile later checkpoints against the tag explicitly. - Run
sync --client <client_id> --record <record> --status closed --operation summary-writtento update the source envelope and rebuild the global index atomically. - Print the compact close-out receipt with the client label and both real paths.
Refresh the same two files on rerun. Never close another client’s record, merge records because names look similar, create a duplicate index row, or edit _INDEX.md directly.