Repository navigation
Description
Bug Description
hen a goal is active, Hermes uses the auxiliary goal_judge client to decide
whether the standing goal is complete. If the auxiliary client cannot be created,
hermes_cli/goals.py returns the generic reason:
no auxiliary client configured
This is misleading for Nous-backed auxiliary tasks. In the observed failure, the
configured auxiliary provider was nous, but the stored Nous OAuth refresh token
was invalid/expired (invalid_grant, Invalid refresh token). The lower-level
Nous runtime credential resolver failed, but agent/auxiliary_client.py logged
the real failure only at debug level and returned (None, None). The goal judge
then collapsed that into the opaque generic message.
User-visible symptom:
↻ Continuing toward goal (19/20): no auxiliary client configured
This sends users toward unrelated configuration/model/context-length debugging.
The real remediation is to re-authenticate Nous (for example via hermes model
or hermes auth add nous, depending on the current CLI flow), not to change
context_length or the main model.
Steps to Reproduce
- Configure goal judge / auxiliary tasks to use Nous, for example:
auxiliary: goal_judge: provider: nous model: deepseek/deepseek-v4-pro
- Put the Nous auth store into an expired/invalid refresh-token state, e.g.
auth.jsoncontains a Nous provider entry whose refresh fails with:{ "code": "invalid_grant", "message": "Invalid refresh token", "reason": "managed_access_token_refresh_failure", "relogin_required": true } - Set a standing goal and let the goal loop continue until the judge runs.
- Observe the status line / logs for the judge result.
Expected Behavior
The goal loop should still fail open and continue working, but the reason should
be actionable and auth-specific, for example:
goal_judge auxiliary client unavailable: Nous Portal runtime credentials unavailable: Invalid refresh token. Run `hermes model` to re-authenticate. (code: invalid_grant)
The logs should also surface the Nous runtime credential failure at warning level
once, so operators can diagnose the auth problem without enabling debug logs.
Actual Behavior
The goal judge returns the opaque generic reason:
no auxiliary client configured
The real Nous auth failure is hidden behind debug-level logging inside the
auxiliary-client resolver. The goal loop continues until the turn budget is
nearly exhausted, but the user does not get the actual remediation path.
Affected Component
CLI (interactive chat), Configuration (config.yaml, .env, hermes setup), Agent Core (conversation loop, context compression, memory)
Messaging Platform (if gateway-related)
N/A (CLI only)
Debug Report
Debug report uploaded:
Report https://dpaste.com/BQPGXM865
agent.log https://dpaste.com/572T3692Z
desktop.log https://paste.rs/xORNeOperating System
Ubuntu 24.04
Python Version
3.12.3
Hermes Version
0.16.0
Additional Logs / Traceback (optional)
Root Cause Analysis (optional)
No response
Proposed Fix (optional)
No response
Are you willing to submit a PR for this?
- I'd like to fix this myself and submit a PR
Activity
GottZ commentedon Jul 29, 2026
Summary
One PR addresses issue #42177. #42179 preserves the Nous credential-resolution failure and surfaces an actionable authentication-specific reason while retaining the goal judge's fail-open behavior, but its goal-result handling predates the current four-value contract.
Related pull requests
best fix— (+217/-4) — partial fix: The diff records and formats Nous runtime credential failures, emits a one-shot warning, and replaces the opaque goal-judge reason with actionable diagnostics. Consistent with the keep_open review on fix(goals): surface auxiliary client auth failures #42179, it must be rebased onto current main and returnwait_directive=Noneas the fourth value on the unavailable-client path, with the regression test updated to assert that four-value result shape.Suggested consolidation
Merge #42179 after rebasing it onto current main and adapting the unavailable-client branch and tests to the current four-value
judge_goalcontract; it is the only candidate and directly fixes the reported diagnostic loss. No duplicate PRs need closure.Complex graph
flowchart LR classDef open fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a classDef merged fill:#dcfce7,stroke:#15803d,color:#14532d classDef closed fill:#e5e7eb,stroke:#6b7280,color:#1f2937 classDef unverified fill:#f3f4f6,stroke:#9ca3af,color:#374151 classDef best stroke-width:3px,stroke:#b45309 classDef target stroke-width:3px,stroke:#4338ca I42177(["issue #42177 (open)"]) P42179["PR #42179 (open)"] P42179 -->|best fix| I42177 class I42177 open class I42177 target class P42179 open class P42179 best click I42177 "https://github.com/NousResearch/hermes-agent/issues/42177" click P42179 "https://github.com/NousResearch/hermes-agent/pull/42179"Graph: solid arrow = fixes / best fix, dashed arrow = partial or unverified (see edge label); boxed group = PRs duplicating each other; amber border = best fix; indigo border = target; gray node = closed or no verify verdict yet (state tag in the node label).
Cross-PR triage: Reviewed 1 pull request and 1 issue in this complex. Each diff was read against this issue; Assessment working set: 12 kB of PR diffs, 11 kB of issue/PR text, <1 kB of discussion (1 comments), 2 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch.
fix: only WARN about an unavailable Nous auxiliary client when a Nous…
fix: goal loop names the Nous auth failure instead of an opaque judge…
fix: only WARN about an unavailable Nous auxiliary client when a Nous…