codex 3a83e78f16
All checks were successful
Tests / Declarative: Post Actions passed: 1217
feat(hermes): hand the linter's own diagnosis to the patcher
Category one of the mechanical-fix work. A linter has already located the
defect precisely - file, line, rule, and what is wrong - so passing that
through converts an open-ended 'repair this build' request into a narrow
instruction whose result can be checked against the same evidence.

Recognises ruff/flake8, golangci-lint, and eslint diagnostics from console
evidence, deduplicates them, and bounds the list at twenty. A diagnostic for a
file outside the write allowlist is dropped at extraction rather than later,
so a defect is never reported for a file the patcher could not touch anyway.
Only categories whose fix is mechanical belong here; anything needing a
judgement about intended behaviour stays on the ordinary escalation path.

A build with no linter output is unaffected and falls back to the existing
open-ended request. The patch prompt moves to its own module, as the triage
prompt already had.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 15:26:54 -03:00
..
2026-03-31 14:07:02 -03:00
2026-05-21 06:59:32 -03:00