---
answer: direct
beat: dev-practices
source: 1 article · updated: September 1, 2026
---

When does a migration pipeline need rich prompt context instead of just retries?

Retries handle files where the fix is small and local — a wrong import, a renamed assertion. Files with deep indirection, custom test utilities, or non-standard setups need the model to understand project-specific conventions it can't infer from the failing file alone. That's when injecting sibling test files, high-quality examples, and the component's own source code becomes necessary — context, not more attempts, closes that gap.

Answered in

How to Migrate Thousands of Legacy Test Files With LLMs, Not Rewrites

A step-based pipeline, retry loops instead of perfect prompts, and rich context injection turn a year-long manual migration into a six-week automated one.

Crashtech Editorial September 1, 2026 Development Best Practices

Read the full analysis

Other questions this article answers

More development best practices questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the Development Best Practices beat.