After Hours Stop
Stop the unattended after-hours loop cleanly.
Steps
- Read
.after-hours/state.mdif it exists. If missing, say no active after-hours session and stop. - If
loop_pidis set, kill that PID (and its process group if needed). Await the shell task so completion notifications are consumed and do not wake the agent later. - Set in state:
status: stoppedand clearloop_pid. - Finalize
docs/after-hours/YYYY-MM-DD.mdusing thestarteddate from state:- Replace the Summary with what was accomplished, what was left unfinished, and suggested next human steps.
- Do not delete existing commit sections.
- Confirm: stopped at iteration N, report path, branch tip if known.
Rules
- Do not revert commits or delete the morning report.
- Do not push unless the user explicitly asks.
- You may edit only
.after-hours/state.mdand the morning report file.