The AI compiles your session data (accomplishments, files touched, key decisions, next priorities), generates a structured handoff block in CRAFT format, and runs an integrated Lessons Learned capture that identifies new learnings, formats them, presents them for your review, and writes approved entries to your LL file. Before committing, the handoff passes through a validation gate where claims are independently verified against git history and file state using Chain-of-Verification. The validated handoff is appended to your chat history file and a git checkpoint is created.