๐งชTDD Challengeยทadvancedยทโฑ๏ธ 45โ65mยทโญ 250 XP
M-045Build a Multi-Agent Code Review System
Description
Nebula Corp wants to automate code reviews using multiple specialized agents. The system should have three agents: a Security Reviewer that checks for vulnerabilities, a Style Reviewer that checks coding standards, and a Coordinator that collects reviews and produces a final summary. The agent definitions exist but the coordination logic is missing โ wire up the multi-agent pipeline so the coordinator delegates to reviewers and aggregates their findings.
Test Cases (3)
Detects critical security issues
Code with eval() should produce a FAIL verdict
Input:coordinateReview('eval(userInput)')
Expected:CONTAINS:FAIL
Passes clean code
Clean code with no issues should produce a PASS verdict
Input:coordinateReview('// Safe code\nconst x = 1;')
Expected:CONTAINS:PASS
Aggregates issues from all reviewers
Should collect issues from both security and style reviewers
Input:JSON.stringify(coordinateReview('var password = eval(x);'))
Expected:CONTAINS:Total issues: 4
Related Lessons
Click Run / Check to validate your solution