# NousResearch/hermes-agent · Patch tool fuzzy matching editing wrong region concerns

## Open now

- 1 issue, 1 PR open on GitHub.
- #54572: patch tool (replace mode) can edit the wrong region when old_string is not an exact match
- PR #54575: fix(patch): reject wrong-region matches in the fuzzy edit fallback

Members appear to center on the patch tool's replace mode, including a report that it can edit the wrong region when old_string is not an exact match, and changes touching fuzzy-match fallback behavior and patch matching. One member also mentions a write-file verification warning, which may be a related but separate aspect.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 1 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #137288. Verify it addresses your case.
- **Recommended:** read PR #137288 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #54572: patch tool (replace mode) can edit the wrong region when old_string is not an exact match

## Prior & competing PRs

- **#137288: fix(tools): patch matching fixes from NVIDIA batch (#128006, #128020, #128138)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `tests/tools/test_escape_drift_autocorrect.py`, `tests/tools/test_file_tools_live.py`, `tests/tools/test_fuzzy_match.py`, `tools/escape_drift_autocorrect.py`, `tools/file_operations.py`, `tools/fuzzy_match.py`, `tools/patch_parser.py`, `tools/skill_manager_tool.py`
- **#54575: fix(patch): reject wrong-region matches in the fuzzy edit fallback**. open
  - maintainer direction: category `merged_via`; implication `superseded`
  - files: `contributors/emails/[redacted:email]`, `tests/tools/test_file_tools_live.py`, `tests/tools/test_fuzzy_match.py`, `tools/fuzzy_match.py`
- **#128138: fix(tools): patch writefile verification warning**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#137288`

## Fix status

- Merged to main in PR #137288 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-12`.
- Subsystem: `agent`
