# NousResearch/hermes-agent · Tighten fuzzy matching thresholds to prevent wrong rewrites

## Open now

- 1 issue, 1 PR open on GitHub.
- #93698: \[Bug\]: patch/V4A fuzzy hunk match can bind to wrong nearby location and silently rewrite unintended content
- PR #93717: fix(patch): stop weak fuzzy hunks from rewriting nearby content

These items address fuzzy matching logic in patch/tool operations that could silently bind to incorrect nearby locations and rewrite unintended content. Fixes raise similarity thresholds and restrict weak fuzzy hunk matches to reduce false positives.

## 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

- #93698: \[Bug\]: patch/V4A fuzzy hunk match can bind to wrong nearby location and silently rewrite unintended content

## 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`
- **#93717: fix(patch): stop weak fuzzy hunks from rewriting nearby content**. open
  - maintainer direction: category `wontfix_bydesign`; implication `wontfix`
  - files: `tests/tools/test_fuzzy_match.py`, `tests/tools/test_patch_parser.py`, `tools/fuzzy_match.py`
- **#126502: fix(tools): block_anchor single-candidate threshold 0.50->0.70**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`

## 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`
