Logging your accomplishments in a “brag book” is one way to guard against rising layoffs and AI.