live mock
Question
revealed1 vote
PROMPT ENGINEERING & STRUCTURED OUTPUT

4.1 SYSTEM-PROMPTS / KEYWORD-OVERLAP

CI/CD PIPELINE INTEGRATION

A DevOps team has wired Claude Code into their CI/CD pipeline. It reviews PRs, generates tests, runs security scans, and checks deployments across a polyglot codebase with Terraform underneath.

A CI/CD system prompt defines two review categories with the instructions 'Check for security vulnerabilities in each function' and 'Check for performance issues in each loop'. The model frequently calls `performance_check` for security issues found inside loops, and `security_check` for performance issues in security-sensitive functions. What is the root cause and best fix?

Answer revealed. Discuss the reasoning together.