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

When you paste an error into an AI agent, you're handing it your conclusion

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

При копировании только трассировки стека в ИИ‑агент разработчик получает исправление симптома, а не причины ошибки. Предоставляя полные данные о запросе, контекст кода и воспроизводимый тест, агент может найти корень проблемы и предложить надёжное решение.

Задача

Relying solely on a stack trace when asking an AI agent to fix a bug leads the agent to patch the symptom rather than the root cause, causing incomplete fixes and repeated failures.

Результат

Providing comprehensive evidence (exact input, surrounding code, reproducible trigger) enables AI agents to identify contract drift and root causes, leading to reliable fixes that prevent repeated production failures.

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

  • 1. Capture the exact input that triggered the failure (request line, headers, body).
  • 2. Provide the surrounding code path, not just the failing line, including the calling functions and branch conditions.
  • 3. Offer a reproducible way to trigger the error locally (e.g., a test or script).
  • 4. Paste the stack trace along with the above evidence into the AI agent.
  • 5. Review the agent’s proposed patch and ask, "What input would still break this?" to uncover overlooked cases.
  • 6. Apply the patch only after confirming it addresses the root cause and all relevant inputs.

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

What you pasted wasn't the bug. It was your conclusion about which part of the bug mattered.

Источник

I used to paste just the trace. Now I paste three things, in order: the exact input that triggered the failure, the surrounding code path, and a reproducible way to trigger it locally.

Источник

After the agent proposes a patch, before I apply it, I ask one question back: "what input would still break this?"

Источник

  • Дата записи: 2026-10-12T00:41:14.857Z