# NousResearch/hermes-agent · Windows atomic file replace sharing violation fixes

## Open now

- Nothing open on GitHub.

These issues and pull requests concern a bug on Windows where atomic file replacement operations lose written data when a sharing violation occurs due to concurrent readers. Multiple fix attempts address handling of ERROR_SHARING_VIOLATION in the atomic_replace utility.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #84852. Verify it addresses your case.
- **Recommended:** read PR #84852 (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: `resolved` · deciding PR(s): `pr-84852`. 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.

## Closed / duplicate issues

- #57775: Windows: atomic_replace drops writes on ERROR_SHARING_VIOLATION (concurrent reader of gateway_state.json et al.)

## Prior & competing PRs

- **#84852: fix(utils): recover Windows renames contended by an open handle**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `tests/test_atomic_replace_symlinks.py`, `utils.py`
- **#57777: fix(utils): handle Windows sharing violations in atomic_replace**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#84852`, `#57775`
- **#69975: fix(windows): preserve writes across sharing violations**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#57777`

## Fix status

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