Question 80
A developer says 'add comprehensive tests' for an unfamiliar legacy application. The repository's services, data flow, and critical paths are not documented. How should the Claude Code coordinator begin?
Explanation
Correct Answer
The requested outcome is broad, but the system lacks the evidence needed to choose useful test boundaries. An initial repository map can identify services, public interfaces, data persistence, and high-risk flows before generating unit and integration tasks. With that information, the coordinator can prioritize realistic test gaps and avoid duplicate coverage across specialists. Adaptive decomposition follows what the codebase actually contains rather than assuming that a generic fixed test list is comprehensive.
Incorrect Answers
A project title is too weak to establish real APIs, data models, or execution paths. Tests based on imagined dependencies may not compile or exercise meaningful behavior. Authorized code navigation and architecture inventory provide the evidence required to plan effective tests for the actual application.
File count does not describe the application's risk boundaries or integration contracts. Blind fan-out may generate many shallow unit tests while missing critical workflows that span modules. The coordinator should understand the architecture before deciding which tasks can safely run independently and which require coordinated integration tests.
A few standard tests cannot establish comprehensive coverage in an unknown architecture. Hidden background jobs, external dependencies, and failure paths may be more important than obvious functions. The coordinator should map these areas and then select tests based on concrete behavioral risks rather than a reusable checklist alone.