gendesign/.claude/agents/deep-review-phases/phase-2-impact.md

29 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Deep Review — Phase 2: Cross-file impact analysis
> Supporting reference. Это отличает deep от обычного review.
Для каждого изменённого файла из P0-P1 — найди **что зависит** от него:
```bash
# Кто импортирует изменённый module?
git grep -l "from app.services.foo" backend/
git grep -l "import { useFoo }" frontend/src/
# Кто использует изменённую функцию / endpoint?
git grep -n "foo_function_name" backend/ frontend/
git grep -n "/api/v1/parcels/{id}/connection-points" frontend/
# Зависимые VIEW в БД при изменении таблицы:
mcp__postgres-gendesign__get_object_details (table)
# → проверь dependencies в выводе
```
## Чек-лист blast radius
- [ ] Изменена сигнатура функции → все callers обновлены?
- [ ] Удалён endpoint → frontend перестал его звать?
- [ ] Поменялась response shape → TanStack Query cache invalidate? TS types regen (`npm run codegen`)?
- [ ] Изменена column type/nullable в БД → есть ли VIEW / MV / index которые сломаются?
- [ ] Удалён column → есть ли scraper / Celery task который пишет туда?
- [ ] Изменён Celery task name / signature → producers обновлены?
- [ ] Удалён ENV var → есть ли deploy.yml / docker-compose / .env.example который ссылается?