From cdbc99574a215fafa864d64dff7b22cc6419f687 Mon Sep 17 00:00:00 2001 From: David McKay Date: Wed, 18 Nov 2026 07:47:25 -0800 Subject: [PATCH 1/2] Pin the LangGraph harness to the set it was proven with The harness's requirements were unpinned, so every fresh resolve took that morning's LangChain releases. langchain-anthropic 1.7.11 (2026-11-18) pins `anthropic-version: 2023-06-01` on its client, and the provider-boundary test expected the anthropic SDK's own default (2026-10-21), so "python harness regressions" went red on a pull request that changed nothing here. The pins are the set shared/model-lock.json verified against real models and CI last passed on: langchain-anthropic 1.7.10, anthropic 2.10.0, langchain-core 1.8.2, langchain-openai 1.8.1, langgraph 1.2.22, langchain 1.5.0, langchain-google-genai 4.4.3, fastapi 0.164.0, python-multipart 0.0.34, uvicorn 0.54.0. The Dockerfile installs requirements.txt, so the image gets the same set. requirements-test.txt no longer pins langchain-openai 1.6.0 over it: CI tested 1.6.0 while the image shipped 1.8.1, and the suite passes on 1.8.1. The test asserted the SDK's default version rather than what Anthropic needs. Both 2023-06-01 and 2026-10-21 are served, and the current models answer on either. What 2026-10-21 adds is a 400 for temperature, top_p and top_k, so the test now asserts a served version and a body without those. --- agent-langgraph-agui/requirements-test.txt | 1 - agent-langgraph-agui/requirements.txt | 24 ++++++++++++------- .../tests/test_provider_boundaries.py | 10 +++++--- 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/agent-langgraph-agui/requirements-test.txt b/agent-langgraph-agui/requirements-test.txt index e9c0c14818..324f96e752 100644 --- a/agent-langgraph-agui/requirements-test.txt +++ b/agent-langgraph-agui/requirements-test.txt @@ -1,3 +1,2 @@ -langchain-openai==1.6.0 pytest==9.0.2 pytest-asyncio==1.3.0 diff --git a/agent-langgraph-agui/requirements.txt b/agent-langgraph-agui/requirements.txt index 73794e9adb..c531a13a7a 100644 --- a/agent-langgraph-agui/requirements.txt +++ b/agent-langgraph-agui/requirements.txt @@ -1,13 +1,21 @@ ag-ui-langgraph==0.0.45 -langgraph -langchain -langchain-openai -langchain-anthropic -langchain-google-genai +# Pinned to the set the image was last proven with (shared/model-lock.json) and CI last passed on. +# Unpinned, a fresh resolve takes whatever the LangChain packages released that morning: +# langchain-anthropic 1.7.11 (2026-11-18) changed the anthropic-version header every Anthropic +# request carries, and only CI noticed. Move these on purpose, with the model check, not by accident. +langgraph==1.2.22 +langchain==1.5.0 +langchain-core==1.8.2 +langchain-openai==1.8.1 +langchain-anthropic==1.7.10 +# Not imported by the harness, but its version decides the request langchain-anthropic sends, +# so it moves with the rest of the set rather than on its own. +anthropic==2.10.0 +langchain-google-genai==4.4.3 # google-genai 3.0.0 (2026-11-06) moved generateContent from /v1beta to /v1, which the Gemini # boundary tests catch. Held on 2.x until the move is checked against the models Bots use. google-genai>=2.34,<3 -fastapi -python-multipart -uvicorn[standard] +fastapi==0.164.0 +python-multipart==0.0.34 +uvicorn[standard]==0.54.0 httpx>=0.28,<1 diff --git a/agent-langgraph-agui/tests/test_provider_boundaries.py b/agent-langgraph-agui/tests/test_provider_boundaries.py index a5008e033f..9b2fb710bc 100644 --- a/agent-langgraph-agui/tests/test_provider_boundaries.py +++ b/agent-langgraph-agui/tests/test_provider_boundaries.py @@ -12,7 +12,6 @@ import httpx2 import pytest -from anthropic import Anthropic sys.path.insert(0, str(Path(__file__).resolve().parents[1])) @@ -344,8 +343,13 @@ async def test_anthropic_selection_reaches_anthropic_boundary_without_openai_key headers.get("x-api-key") == "sk-ant-openbot-ci" or headers.get("authorization") == "Bearer sk-ant-openbot-ci" ) - with Anthropic(api_key="sk-ant-openbot-ci") as sdk: - assert headers["anthropic-version"] == sdk.default_headers["anthropic-version"] + # What Anthropic needs is a version it serves, and a request valid under that version, not the + # SDK's default: langchain-anthropic 1.7.11 sends 2023-06-01 on purpose where the SDK defaults + # to 2026-10-21. Both are current (platform.claude.com/docs/en/api/versioning), and every model + # answers on either. 2026-10-21 refuses temperature, top_p and top_k with a 400, so the harness + # sends none of them, and the request is valid whichever version the client picks. + assert headers["anthropic-version"] in {"2023-06-01", "2026-10-21"} + assert not {"temperature", "top_p", "top_k"} & captured[0]["body"].keys() assert captured[0]["body"]["model"] == request_model assert captured[0]["body"]["messages"] == [ {"role": "user", "content": "Say hello."} From c6265d122d527244e2159cd45a2df23306b7145f Mon Sep 17 00:00:00 2001 From: David McKay Date: Wed, 18 Nov 2026 07:53:50 -0800 Subject: [PATCH 2/2] Pin only the model clients, as the model lock requires scripts/model-lock.test.ts allows an exact pin in a harness's requirements only for a client the model check records, so the lock can say which client versions each model was proven on. langchain, fastapi, python-multipart and uvicorn go back to unpinned, as in every other harness. The model clients stay pinned to the versions in shared/model-lock.json. --- agent-langgraph-agui/requirements.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/agent-langgraph-agui/requirements.txt b/agent-langgraph-agui/requirements.txt index c531a13a7a..c835db6f2c 100644 --- a/agent-langgraph-agui/requirements.txt +++ b/agent-langgraph-agui/requirements.txt @@ -1,10 +1,10 @@ ag-ui-langgraph==0.0.45 -# Pinned to the set the image was last proven with (shared/model-lock.json) and CI last passed on. -# Unpinned, a fresh resolve takes whatever the LangChain packages released that morning: -# langchain-anthropic 1.7.11 (2026-11-18) changed the anthropic-version header every Anthropic -# request carries, and only CI noticed. Move these on purpose, with the model check, not by accident. +# The model clients, pinned to the set shared/model-lock.json proved against real models. Unpinned, +# a fresh resolve takes whatever the LangChain packages released that morning: langchain-anthropic +# 1.7.11 (2026-11-18) changed the anthropic-version header every Anthropic request carries, and only +# CI noticed. Move them on purpose, with the model check (docs/releasing.md, "Model lock"). langgraph==1.2.22 -langchain==1.5.0 +langchain langchain-core==1.8.2 langchain-openai==1.8.1 langchain-anthropic==1.7.10 @@ -15,7 +15,7 @@ langchain-google-genai==4.4.3 # google-genai 3.0.0 (2026-11-06) moved generateContent from /v1beta to /v1, which the Gemini # boundary tests catch. Held on 2.x until the move is checked against the models Bots use. google-genai>=2.34,<3 -fastapi==0.164.0 -python-multipart==0.0.34 -uvicorn[standard]==0.54.0 +fastapi +python-multipart +uvicorn[standard] httpx>=0.28,<1