# NousResearch/hermes-agent · Fix symlinked DB writability preflight check

## Open now

- 1 issue, 3 PRs open on GitHub.
- #135113: \[Bug\]: DB writability preflight checks the symlink's directory, not the target — false "not writable" for a symlinked DB under a read-only root
- PR #135129: fix(state): preflight symlinked DB against the resolved target directory
- PR #135130: fix(state): judge a symlinked DB's writability at its target, not the link
- PR #135133: fix(state): resolve symlink target in preflight_db_writability

A bug caused the DB writability preflight check to incorrectly evaluate the symlink's own directory rather than the symlink-target directory, potentially producing false 'not writable' results. Multiple fixes address computing the symlink target before performing the writability check.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 3 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

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

- #135113: \[Bug\]: DB writability preflight checks the symlink's directory, not the target — false "not writable" for a symlinked DB under a read-only root

## Prior & competing PRs

- **#135129: fix(state): preflight symlinked DB against the resolved target directory**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `hermes_state_repair.py`, `tests/hermes_state/test_hermes_state_readonly_preflight.py`
- **#135130: fix(state): judge a symlinked DB's writability at its target, not the link**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `hermes_state_repair.py`, `tests/hermes_state/test_hermes_state_readonly_preflight.py`
- **#135133: fix(state): resolve symlink target in preflight_db_writability**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `cd46c32a79f6df4011bfc8ce8a9f0b0227197cc6`, `#135113`, `#135129`, `#135130`, `#135129`
  - files: `hermes_state_repair.py`, `tests/hermes_state/test_hermes_state_readonly_preflight.py`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
