Skip to content

[Bug]: Goal loop reports opaque "no auxiliary client configured" when Nous auxiliary auth fails #42177

Closed

Description

@0xharryriddle

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

  1. Configure goal judge / auxiliary tasks to use Nous, for example:
    auxiliary:
      goal_judge:
        provider: nous
        model: deepseek/deepseek-v4-pro
  2. Put the Nous auth store into an expired/invalid refresh-token state, e.g.
    auth.json contains a Nous provider entry whose refresh fails with:
    {
      "code": "invalid_grant",
      "message": "Invalid refresh token",
      "reason": "managed_access_token_refresh_failure",
      "relogin_required": true
    }
  3. Set a standing goal and let the goal loop continue until the judge runs.
  4. 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/xORNe

Operating 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

  1. added
    type/bugSomething isn't working
    comp/cliCLI entry point, hermes_cli/, setup wizard
    P3Low — cosmetic, nice to have
    on Jun 8, 2026
  2. GottZ commented on Jul 29, 2026

    @GottZ

    This was generated by AI during triage.

    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

    Suggested consolidation

    Merge #42179 after rebasing it onto current main and adapting the unavailable-client branch and tests to the current four-value judge_goal contract; 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"
    
    Loading

    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.

  3. added 2 commits that reference this issue on Sep 17, 2026
    1539a1a
    7875685
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/cliCLI entry point, hermes_cli/, setup wizardprovider/nousNous Research API (OAuth)type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions