# NousResearch/hermes-agent · Curator runs in wrong profile/context scope

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #125038: fix(agent): carry the curator caller's contextvars into the review thread

These items address a bug where curator and other off-turn background work executes without the requesting profile's context, causing unscoped secret errors and incorrect reads/writes to root-level state instead of the correct profile. The fix propagates the caller's context variables into background threads and ensures off-turn operations run scoped to the appropriate profile.

## TL;DR

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

- #125032: \[Bug\]: Curator's LLM pass runs unscoped on a multiplexed gateway — UnscopedSecretError, and it reads/writes the root home's skills, report and state instead of the profile's

## Prior & competing PRs

- **#126165: Off-turn work (curator, deferred reviews, catalog SWR, plugin API routes, ledger replay) runs under the requesting profile; import model_tools no longer creates state.db (#125032 #108537 #120310 #123372 #103778 #123265)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/curator.py`, `agent/review_idle_queue.py`, `gateway/run_notifications.py`, `gateway/run_startup.py`, `hermes_cli/model_catalog.py`, `hermes_cli/web_server_dashboard.py`, `tests/agent/test_curator.py`, `tests/agent/test_review_idle_queue.py`, `tests/fixtures/plugins/example-dashboard/dashboard/plugin_api.py`, `tests/gateway/test_multiplex_unserved_shared_ingress.py`, `tests/hermes_cli/test_model_catalog.py`, `tests/hermes_cli/test_web_server.py`, `tests/plugins/test_kanban_dashboard_plugin.py`, `tests/tools/test_async_delegation.py`, `tests/tools/test_process_registry_lazy_restore.py`, `tests/tui_gateway/test_notification_turn_release.py`, `tools/async_delegation.py`, `tools/process_registry.py`, `tui_gateway/session_notifications.py`
- **#125038: fix(agent): carry the curator caller's contextvars into the review thread**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#118200`, `#125032`
  - files: `agent/curator.py`, `tests/agent/test_curator_llm_profile_scope.py`

## Fix status

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