# NousResearch/hermes-agent · Cron job script paths looked up under wrong profile

## Open now

- 2 issues, 1 PR open on GitHub.
- #49158: Cron scripts without explicit profile resolve to profiles/personal/scripts/
- #54288: BUG: Cron script resolution uses active profile instead of job's profile
- PR #54333: fix(cron): resolve script path against job's profile, not active context (#54288)

Most members concern cron jobs whose script paths are computed against the active or gateway profile instead of the job's own profile, including no_agent jobs and multi-gateway setups. Several PRs propose different approaches (converting paths at creation, scoping by job profile, falling back to a default scripts directory), and one touches cross-profile tick iteration.

## TL;DR

- 12 member(s): 2 open issue(s), 3 closed issue(s), 1 open PR(s), 0 merged PR(s), 6 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_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.14`: 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

- #49158: Cron scripts without explicit profile resolve to profiles/personal/scripts/
- #54288: BUG: Cron script resolution uses active profile instead of job's profile

## Closed / duplicate issues

- #51767: Profile gateway can execute root cron jobs while resolving scripts under profile HERMES_HOME
- #53077: \[Bug\]: \`no_agent\` cron jobs ignore the job's \`profile\` — script resolves under the ticking gateway's HERMES_HOME
- #57608: Cron job script path resolves against wrong profile when multiple gateways are running

## Prior & competing PRs

- **#53261: fix(cron): hoist profile scoping above no_agent short-circuit in run_job**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `d73078e7b036ae75999481fc8ffaa2b82b69cf87`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#49197: fix(cron): fall back to default scripts dir when profile context misses script**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#34243`, `#49197`
- **#49319: fix(cron): fall back to default scripts dir when running under a profile (#49158)**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#41008`, `#40918`, `#49158`
- **#53104: fix(cron): respect job's profile when executing no_agent jobs (#53077)**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `bb7ff7dc302cbcbe41cf6bc09424ffc9fb2d062f`, `d73078e7b036ae75999481fc8ffaa2b82b69cf87`, `#53077`
- **#54333: fix(cron): resolve script path against job's profile, not active context (#54288)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `7d8d000b1921cb1c14aa137a41bd96203992e2c0`
  - files: `cron/scheduler.py`, `tests/cron/test_job_script_profile_resolution.py`, `tests/cron/test_scheduler.py`
- **#54913: fix(cron): cross-profile tick iteration for single-gateway multi-profile setups**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `6c98eb2d4`, `a61183b56`, `722bf5d51`, `f7d70b14a`, `#69377`
- **#57751: fix(cron): resolve relative script paths at job creation to prevent cross-profile breakage**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `d73078e7b036ae75999481fc8ffaa2b82b69cf87`, `#4707`, `#53570`, `#57608`

## Fix status

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