Compaction command implementation.
Prepares context for compaction by creating an auto-checkpoint and returning a summary of critical context items.