The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
chore(relay): tighten 0.10 upgrade validation
mnajafian-nv9280fef70c49
diff --git a/tests/agent/test_relay_llm.py b/tests/agent/test_relay_llm.pyindex 0066b23c245..c85ddea20b4 100644--- a/tests/agent/test_relay_llm.py+++ b/tests/agent/test_relay_llm.py@@ -1525,9 +1525,7 @@ def test_stream_current_unwraps_completed_response_with_real_interceptor(relay_trelay, _turn = relay_turncompleted = _completed_response()- async def identity_stream(name, request, context, next_call):- assert name == "test-provider"- assert context.response_codec is None+ async def identity_stream(_name, request, _context, next_call):return await next_call(request)relay.intercepts.register_llm_stream_execution(@@ -1556,10 +1554,7 @@ def test_stream_current_preserves_real_relay_interceptor_chunks(relay_turn):"""Priming a real managed pipeline must retain its transformed first chunk."""relay, _turn = relay_turn- def rewrite_stream(name, request, context, next_call):- assert name == "test-provider"- assert context.response_codec is None-+ def rewrite_stream(_name, request, _context, next_call):async def generate():upstream = await next_call(request)async for chunk in upstream:diff --git a/tests/conftest.py b/tests/conftest.pyindex e6f97523547..025f7a88173 100644--- a/tests/conftest.py+++ b/tests/conftest.py@@ -320,8 +320,8 @@ def _hermetic_environment(tmp_path, tmp_path_factory, monkeypatch):monkeypatch.delenv("XDG_STATE_HOME", raising=False)monkeypatch.setenv("HERMES_GATEWAY_LOCK_DIR", str(tmp_path / "gateway-locks"))# Relay normally discovers the user's XDG plugins.toml and merges the machine- # policy above it. Select a per-test user file that denies dynamic plugins so- # tests cannot activate a developer's or machine policy's worker/native plugins,+ # policy above it. Select a per-test user file with a deny-by-default dynamic+ # plugin policy so ordinary tests do not activate ambient worker/native plugins,# without changing XDG_CONFIG_HOME for unrelated Hermes code under test.# Outside tmp_path: tests that list or git-status their tmp dir must not see it.relay_plugins = tmp_path_factory.getbasetemp() / "relay-plugins.toml"diff --git a/uv.lock b/uv.lockindex d448b051c2a..26102d98fd4 100644--- a/uv.lock+++ b/uv.lock@@ -14,105 +14,105 @@ exclude-newer = "0001-01-01T00:00:00Z" # This has no effect and is included forexclude-newer-span = "P14D"[options.exclude-newer-package]-elevenlabs = false-langfuse = "2026-09-09T16:01:26Z"-setuptools = false-modal = false-pyyaml = false-maturin = false-numpy = false-pvporcupine = false-google-auth = false+agent-client-protocol = falseaiohttp = false-starlette = false-mistralai = false-firecrawl-py = false-parallel-web = false-markdown = false-opentelemetry-sdk = false-prompt-toolkit = false-fastapi = false+aiohttp-socks = false+aiosqlite = false+alibabacloud-dingtalk = falseanthropic = false-pathspec = false-ruff = false-defusedxml = false-websockets = false-exa-py = false-mcp = false-python-olm = false-wheel = false-pytest = false-pillow = false-setuptools-rust = false-tenacity = false-sherpa-onnx-core = "2026-09-10T15:58:47Z"-pyjwt = false-slack-bolt = false-fal-client = falseasyncpg = false+azure-identity = falseboto3 = false-ruamel-yaml = false-sherpa-onnx = "2026-09-10T17:00:04Z"-huggingface-hub = false-pytest-asyncio = false-google-cloud-pubsub = false-slack-sdk = false-discord-py = false-rich = false-faster-whisper = false+brotlicffi = false+browser-harness = falsecertifi = false-debugpy = false+concurrent-log-handler = false+croniter = false+cryptography = false+daytona = falseddgs = "2026-08-26T21:52:34Z"-packaging = false-unpaddedbase64 = false-youtube-transcript-api = false-h2 = false+debugpy = false+defusedxml = false+dingtalk-stream = false+discord-py = falseedge-tts = false-microsoft-teams-apps = false-aiohttp-socks = false-sentencepiece = false-opentelemetry-exporter-otlp-proto-http = false-croniter = false-browser-harness = false-azure-identity = false-lark-oapi = false+elevenlabs = false+exa-py = false+fal-client = false+fastapi = false+faster-whisper = false+fire = falsefirecrawl-anydoc = false+firecrawl-py = falsegoogle-api-python-client = false-brotlicffi = false-qrcode = false-soundfile = "2026-06-06T08:58:48Z"-vercel = false-aiosqlite = false-tzdata = false-python-dotenv = false-daytona = false-uvicorn = false-nemo-relay = false-requests = false+google-auth = false+google-auth-httplib2 = false+google-auth-oauthlib = false+google-cloud-pubsub = false+h2 = falsehttplib2 = falsehttpx = false+httpx2 = false+huggingface-hub = false+jinja2 = false+langfuse = "2026-09-09T16:01:26Z"+lark-oapi = false+markdown = false+maturin = false+mautrix = false+mcp = false+microsoft-teams-apps = false+mistralai = false+modal = false+nemo-relay = false+neutts = "2026-07-22T14:54:23Z"+numpy = false+openai = false+opentelemetry-exporter-otlp-proto-http = false+opentelemetry-sdk = false+packaging = false+parallel-web = false+pathspec = false+pillow = falsepiper-tts = "2026-09-04T16:47:32Z"+prompt-toolkit = false+psutil = false+pvporcupine = falsepyasn1 = false-snowballstemmer = false-concurrent-log-handler = false-cryptography = falsepydantic = false-agent-client-protocol = false-fire = false-httpx2 = false-google-auth-oauthlib = false+pyjwt = false+pytest = false+pytest-asyncio = false+python-dotenv = falsepython-multipart = false-ty = false-openai = false-google-auth-httplib2 = false-neutts = "2026-07-22T14:54:23Z"-mautrix = false-psutil = false+python-olm = falsepython-telegram-bot = false-jinja2 = false+pyyaml = false+qrcode = false+requests = false+rich = false+ruamel-yaml = false+ruff = false+sentencepiece = false+setuptools = false+setuptools-rust = false+sherpa-onnx = "2026-09-10T17:00:04Z"+sherpa-onnx-core = "2026-09-10T15:58:47Z"+slack-bolt = false+slack-sdk = false+snowballstemmer = falsesounddevice = false-alibabacloud-dingtalk = false-dingtalk-stream = false+soundfile = "2026-06-06T08:58:48Z"+starlette = false+tenacity = false+ty = false+tzdata = false+unpaddedbase64 = false+uvicorn = false+vercel = false+websockets = false+wheel = false+youtube-transcript-api = false[manifest]overrides = [diff --git a/website/docs/developer-guide/relay-shared-metrics.md b/website/docs/developer-guide/relay-shared-metrics.mdindex 9451ffa1e6e..eed6dca051a 100644--- a/website/docs/developer-guide/relay-shared-metrics.md+++ b/website/docs/developer-guide/relay-shared-metrics.md@@ -39,7 +39,10 @@ Relay 0.10 requires observability configuration `version = 4`. Custom PythonLLM execution intercepts receive `(name, request, context, next_call)`; thecontext exposes the selected request codec and, for non-streaming execution,the response codec. Native plugins must be rebuilt for Relay 0.10's ABI v7 and-declare a `compat.relay` range that excludes Relay 0.9.+set their `compat.relay` lower bound to `0.10.0`. Workers that register LLM+execution intercepts must update their callbacks and regenerate their protocol+bindings. See Relay's [0.10 migration guide](https://docs.nvidia.com/nemo/relay/reference/migration-guides)+for the complete upgrade checklist.When Relay managed execution is active, the provider request and response passthrough that native module in the Hermes process so configured interceptors can