{"agent":"claude","input":"Set an explicit log retention for every Lambda function in this CDK stack. Read index.ts, cdk.json, package.json, jest.config.js, the lambdas directory and the repository's SNAPSHOT_TESTING.md first, and check whether the useCdkManagedLogGroup feature flag is on, because that decides what the log groups are today. Create one logs.LogGroup per function with a retention read from a context value that defaults to one month and a removal policy consistent with the stack, pass it as logGroup on each NodejsFunction, and do not use the deprecated logRetention prop. Move the stack class into lib/ so a test can import it without synthesizing the app, add a test script, and write jest assertion tests with Template.fromStack that count the log groups, assert RetentionInDays and check each function's LoggingConfig references its group. Run npm install, npm run build, npx cdk synth and npm test in the sandbox, document the context value in the README, and open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}