Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

48-Hour Field Notes: Ghost Routes vs the Real Router

Описание и применение

Агенты могут создавать «призрачные» маршруты, которые не существуют в приложении, что приводит к ложным положительным тестам. С помощью скриптов инвентаризации маршрутов и переменных окружения можно зафиксировать реальную поверхность приложения и обнаружить такие маршруты, устранив их.

Задача

Agents can create routes that do not exist in the application, leading to false positives in tests and unreliable production behavior.

Результат

Ghost routes were detected and removed, leading to a more accurate test suite and reliable application behavior.

Рабочий процесс

  • Generate a route inventory file from the FastAPI app.
  • Dump environment variable names used by the app via an AST walk.
  • Run the agent with prompts that do not specify paths, resetting the tree each time.
  • After each run, compare the diff against the frozen inventory to count ghost routes.
  • Iterate until no new ghost routes appear.
  • Use the cleaned codebase for further development and testing.

Доказательства

The fixture has never served /readyz. The live router exposes /health.

Источник

After each run I saved git diff -- app.py tests/ and ran a ghost counter.

Источник

  • Дата записи: 2026-09-07T19:29:44.599Z