From a615a653727f6d69312c8dccc5cce2a1235ccca2 Mon Sep 17 00:00:00 2001 From: Chengjie Wang Date: Fri, 23 Oct 2026 08:33:38 +0000 Subject: [PATCH 1/2] test(dcode): pin NVIDIA managed-route Auto classifier on the sandbox model (#13331) A DCode sandbox onboarded on NVIDIA endpoints with nemotron-3-super has only the managed inference route; its auto-approval classifier must review through that same route. Deep Agents Code 0.1.71 defaults the classifier to `openai:gpt-5.6-luna` for the OpenAI provider when [models].auto_classifier is absent, and the NVIDIA managed route cannot serve that model - so enabling Auto for a thread works for the prompt-triggering action, then the first classifier-backed decision is denied ("classifier unavailable") and Auto never auto-approves. The generated DCode config routes the classifier through the selected managed provider/model identity, so an NVIDIA onboard produces auto_classifier = openai:nvidia/nemotron-3-super-120b-a12b. This adds explicit regression coverage for that managed NVIDIA route (previously only the compatible-endpoint and openrouter identities were pinned) so the fallback to the unresolvable runtime default cannot silently return. --- .../langchain-deepagents-code-config.test.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/agents/deepagents/langchain-deepagents-code-config.test.ts b/test/agents/deepagents/langchain-deepagents-code-config.test.ts index a2ac27ed54a..4ac935c3bb8 100644 --- a/test/agents/deepagents/langchain-deepagents-code-config.test.ts +++ b/test/agents/deepagents/langchain-deepagents-code-config.test.ts @@ -145,8 +145,10 @@ describe("LangChain Deep Agents Code config generator", () => { expect(config).toContain( "# NemoClaw provider route: inference; upstream provider: nvidia-prod; API: openai-completions.", ); + expect(config).toContain('auto_classifier = "openai:nvidia/nemotron-3-super-120b-a12b"'); expect(config).toContain("use_responses_api = false"); expect(config).not.toContain("force_nonempty_content"); + expect(config).not.toContain("gpt-5.6-luna"); expect(config).toContain("check = false"); expect(config).toContain("auto_update = false"); expect(config).toContain("[warnings]"); @@ -154,6 +156,20 @@ describe("LangChain Deep Agents Code config generator", () => { expect(config).not.toMatch(/NVIDIA_API_KEY|OPENAI_API_KEY=|sk-/); }); + it("keeps the NVIDIA managed-route Auto classifier on the sandbox model (#13331)", () => { + // A DCode sandbox onboarded on NVIDIA endpoints with nemotron-3-super must + // route its Auto-approval classifier through the managed model identity, + // never the Deep Agents Code runtime default (openai:gpt-5.6-luna) that the + // managed inference route cannot serve. Without this the first + // classifier-backed decision after enabling Auto is denied with + // "classifier unavailable", so Auto mode never auto-approves (#13331). + const config = runGenerator({}); + + expect(config).toContain('auto_classifier = "openai:nvidia/nemotron-3-super-120b-a12b"'); + expect(config).toContain('models = ["nvidia/nemotron-3-super-120b-a12b"]'); + expect(config).not.toContain("gpt-5.6-luna"); + }); + it("uses the attached-provider placeholder for native NVIDIA inference (#12558)", () => { const config = runGenerator({ NEMOCLAW_INFERENCE_BASE_URL: "https://integrate.api.nvidia.com/v1", From 3d5b1b2e8c55a39424339d8c60bce53f33985210 Mon Sep 17 00:00:00 2001 From: Chengjie Wang Date: Mon, 26 Oct 2026 10:55:45 +0000 Subject: [PATCH 2/2] test(dcode): keep one owner of the NVIDIA classifier-route asserts The architecture reviewer flagged a duplicated invariant: both the general managed-inference route test and the dedicated #13331 regression test asserted the same NVIDIA auto_classifier value and the absence of the upstream fallback model, leaving two competing test owners. Keep the NVIDIA classifier-route assertions only in the dedicated #13331 test; the general managed-route test retains its broader route assertions. Refs #13331 Signed-off-by: Chengjie Wang --- test/agents/deepagents/langchain-deepagents-code-config.test.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/agents/deepagents/langchain-deepagents-code-config.test.ts b/test/agents/deepagents/langchain-deepagents-code-config.test.ts index 4ac935c3bb8..be3620c07e1 100644 --- a/test/agents/deepagents/langchain-deepagents-code-config.test.ts +++ b/test/agents/deepagents/langchain-deepagents-code-config.test.ts @@ -145,10 +145,8 @@ describe("LangChain Deep Agents Code config generator", () => { expect(config).toContain( "# NemoClaw provider route: inference; upstream provider: nvidia-prod; API: openai-completions.", ); - expect(config).toContain('auto_classifier = "openai:nvidia/nemotron-3-super-120b-a12b"'); expect(config).toContain("use_responses_api = false"); expect(config).not.toContain("force_nonempty_content"); - expect(config).not.toContain("gpt-5.6-luna"); expect(config).toContain("check = false"); expect(config).toContain("auto_update = false"); expect(config).toContain("[warnings]");