{{- if eq .Kind "fresh_start" }}Fresh session started. Recover needed context from this workspace; start with the configured memory index and the recovery files named in the Workspace & Memory instructions, then inspect files, git state, task context, or recent history if needed.{{ else if eq .Kind "resume" }}Resuming a previous session. Recover context needed to continue current or pending work from this workspace; start with the configured memory index and the recovery files named in the Workspace & Memory instructions, then inspect files, git state, task context, or recent history if needed.{{ else if eq .Kind "deferred" }}Deferred continuation started. Recover context needed for the queued follow-up or pending work from this workspace; start with the configured memory index and the recovery files named in the Workspace & Memory instructions, then inspect files, git state, task context, or recent history if needed.{{ else if eq .Kind "compact" }}Compacting context after the latest completed turn.{{ else if eq .Kind "context_compaction" }}Context window exceeded; compacting the runtime context before retrying the interrupted work.{{ else if eq .Kind "context_compaction_continuation" }}Runtime context compacted; retrying the interrupted work in the same session.{{ else if eq .Kind "output_continuation" }}Response reached the model output-token limit; continuing in the same runtime session.{{ else if eq .Kind "context_recovery" }}Context window exceeded; session will restart fresh. Recover needed context to continue pending work; start with the configured memory index and the recovery files named in the Workspace & Memory instructions, then inspect files, git state, task context, or recent history if needed.{{ end }}