Skip to content

fix(curator): forward credential pool from runtime resolution - #61567

Closed
infinitycrew39 wants to merge 2 commits into
NousResearch:mainfrom
infinitycrew39:fix/curator-custom-pool-credentials
Closed

infinitycrew39 wants to merge 2 commits into
NousResearch:mainfrom
infinitycrew39:fix/curator-custom-pool-credentials

Conversation

@infinitycrew39

@infinitycrew39 infinitycrew39 commented Jul 9, 2026 •

Copy link
Copy Markdown

Summary

  • Pass credential_pool and request_overrides from resolve_runtime_provider() into the curator review AIAgent fork.
  • Fixes hermes curator run failing with HTTP 401 on pool-backed named custom providers (e.g. custom:hyper-charm) while main chat could rotate pool credentials or fall back.

Root cause

Curator resolved runtime credentials correctly but only forwarded api_key/base_url/api_mode. Without the live pool handle, the fork could not rotate on auth errors and got stuck on the first stale key.

Test plan

  • tests/agent/test_curator.py::test_review_fork_forwards_runtime_pool_and_overrides
  • CI full suite
  • Repro: custom:hyper-charm + hermes auth pool + hermes curator run

Curator review forks now pass credential_pool and request_overrides from resolve_runtime_provider into AIAgent so pool-backed custom providers can rotate credentials on 401 like main chat.
Regression test that _run_llm_review passes credential_pool and request_overrides from resolve_runtime_provider into the curator AIAgent fork.
@alt-glitch alt-glitch added type/bug Something isn't working comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint area/auth Authentication, OAuth, credential pools P2 Medium — degraded but workaround exists labels Jul 9, 2026
@kshitijk4poor

Copy link
Copy Markdown

Merged via #62077. Your two commits were cherry-picked and rebase-merged with authorship preserved; the follow-up completed effective-model/output-cap/ACP handoff, wired auxiliary.curator.extra_body, and fixed the routed background-review sibling. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/auth Authentication, OAuth, credential pools comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants