By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
Complete the code challenge below. Read the instructions carefully and use the integrated editor on the right to write and run your solution.
Running everything on every change is how a pipeline becomes something people route around. Write the selector that maps changed files to the suites they can actually break.
Implement suites_for(changed) where changed is a list of file paths. Return a comma-joined string in this fixed order: smoke, prompt, rag, agent, redteam.
smoke is always included.prompt if any path contains prompt.rag if any path contains retriev, rag, embed or index.agent if any path contains agent or tool.redteam if any path contains safety, guardrail or policy.Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.