# NousResearch/hermes-agent · Gateway profile home derived from db path symlink resolution

## Open now

- 0 issues, 2 PRs open on GitHub.
- PR #145834: fix(gateway): derive the profile home from authority.profile_id, not the db path
- PR #150992: fix(gateway): cron runs work again when state.db is symlinked outside the profile home (salvage #145238)

These items concern the gateway determining a profile's home from the state.db path after symlink resolution, which can point outside the profile when state.db is a symlink. One is a bug report of a cron agent-run raising ProviderNotConfiguredError in that situation, and two are fix proposals that scope the home to the authority or its profile_id instead.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 2 open PR(s), 0 merged PR(s), 1 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.83`: 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

- #145075: \[Bug\]: cron agent-run fails with ProviderNotConfiguredError when state.db is a symlink outside profile home (resolve().parent follows symlink)

## Prior & competing PRs

- **#145238: fix(gateway): scope profile work to the authority home, not a resolved state.db parent**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#150992`
- **#145834: fix(gateway): derive the profile home from authority.profile_id, not the db path**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#150992`
  - files: `gateway/session_authorities.py`, `gateway/session_cron.py`, `gateway/session_mutation_model.py`, `gateway/session_policy.py`, `gateway/session_policy_credentials.py`, `gateway/session_policy_refresh.py`, `gateway/session_viewer_close.py`, `tests/gateway/test_authority_home_profile_id.py`
- **#150992: fix(gateway): cron runs work again when state.db is symlinked outside the profile home (salvage #145238)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `93c7ed924819`
  - files: `contributors/emails/[redacted:email]`, `gateway/run_runtime.py`, `gateway/session_authorities.py`, `gateway/session_authority.py`, `gateway/session_cron.py`, `gateway/session_group_controls.py`, `gateway/session_ingress_media.py`, `gateway/session_mutation_model.py`, `gateway/session_policy.py`, `gateway/session_policy_credentials.py`, `gateway/session_policy_refresh.py`, `gateway/session_viewer_close.py`, `tests/gateway/test_authority_home_symlinked_store.py`, `tests/gateway/test_profile_authority_symlinked_store.py`, `tests/gateway/test_session_cron_symlinked_store.py`

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
- Kind: `bug` (from the open PRs' GitHub type labels).
