# NousResearch/hermes-agent · Root lockfile wrongly discarded for workspace manifest changes

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #112396: fix(update): preserve root lockfile for dirty workspace manifests

A bug in \`_discard_lockfile_churn\` causes the root package-lock.json to be reverted when only a workspace manifest is dirty, desyncing the lockfile from specs. The members contain bug reports and fix attempts addressing this behavior.

## TL;DR

- 4 member(s): 0 open issue(s), 1 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 #113160. Verify it addresses your case.
- **Recommended:** read PR #113160 (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-113160`. 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

- #112378: \[Bug\]: \`_discard_lockfile_churn\` reverts the ROOT package-lock.json when only a workspace manifest is dirty — desyncing specs from the lock and making \`hermes update\` Node-deps refresh fail forever (npm 10 \`edgesOut\` crash)

## Prior & competing PRs

- **#113160: fix(update): hermes update keeps the root package-lock.json when a workspace package.json is dirty (#112378, salvage #112396)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `hermes_cli/update_cmd_git.py`, `scripts/install.ps1`, `scripts/install.sh`, `tests/hermes_cli/test_discard_lockfile_churn.py`, `tests/scripts/install/test_install_lockfile_churn.py`
- **#112380: fix(update): preserve root lockfile for workspace manifests**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#112378`
- **#112396: fix(update): preserve root lockfile for dirty workspace manifests**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `hermes_cli/update_cmd_git.py`, `tests/hermes_cli/test_discard_lockfile_churn.py`

## Fix status

- Merged to main in PR #113160 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-17`.
- Subsystem: `hermes_cli`
