# NousResearch/hermes-agent · config.yaml corruption when deleting sole key under commented section

## Open now

- 1 issue, 0 PRs open on GitHub.
- #164823: \[Bug\]: v56 -> v57 config migration corrupts config.yaml (stray \`{}\` at column 1) when deleting sole key under commented \`delegation:\`

All three members concern config.yaml becoming invalid or unloadable when the only key under a commented section is removed, including during a v56 to v57 migration involving \`delegation:\` (a stray \`{}\` is reported). Two are fix-oriented pull requests and one is a bug report; their outcomes are not stated in the titles.

## TL;DR

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

- #164823: \[Bug\]: v56 -> v57 config migration corrupts config.yaml (stray \`{}\` at column 1) when deleting sole key under commented \`delegation:\`

## Prior & competing PRs

- **#164880: fix(config): an update or settings change no longer leaves config.yaml unloadable when it empties a commented section**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `contributors/emails/[redacted:email]`, `hermes_yaml.py`, `tests/hermes_cli/test_config_migration_57_delegation_iterations.py`, `tests/test_hermes_yaml.py`, `tests/utils/test_roundtrip_yaml_comment_properties.py`, `tests/utils/test_roundtrip_yaml_next_section_comments.py`, `tests/utils/test_utils_atomic_roundtrip_yaml_save.py`, `utils/files.py`
- **#164831: fix(config): keep YAML valid when deleting sole key under commented section**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `2d54ad826332`, `#164880`

## Fix status

- Merged to main in PR #164880 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-12-06`.
- Subsystem: `hermes_cli`
- Kind: `bug` (from the open issues' GitHub type labels).
