Skip to content

Forward-merge release/0.10 into main - #1338

Merged
willkill07 merged 4 commits into
NVIDIA:mainfrom
willkill07:main-merge-release/0.10
Oct 14, 2026
Merged

willkill07 merged 4 commits into
NVIDIA:mainfrom
willkill07:main-merge-release/0.10

Conversation

@willkill07

@willkill07 willkill07 commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Overview

Resolve the conflicts blocking forward-merge #1337 by merging release/0.10 into a branch based on main, preserving the original release commit hashes and both branches’ history.

  • I confirm this contribution is my own work, or I have the right to submit it under this project's license.
  • I searched existing issues and open pull requests, and this does not duplicate existing work.

Details

  • Create a real merge commit with main as the first parent and release/0.10 as the second parent. Imported code matches the release branch exactly.
  • Resolve four documentation conflicts: retain main’s intentional 0.11 release-note and migration reset and its 0.11 installation examples; import the configurable ChatGPT Codex endpoint guidance while retaining the 0.11 known-issues link.
  • Keep Forward-merge release/0.10 into main #1337 open, as required by the RAPIDS forward-merger instructions. This PR is the manual conflict-resolution replacement requested by the bot.

Merge requirement: An administrator must use Create a Merge Commit. Do not squash, rebase, use GitHub’s Resolve conflicts option, or invoke the /merge auto-merger. The failure report’s explicit admin-merge requirement takes precedence over the linked guide’s /merge nosquash suggestion.

Inherited DCO failure: Release commit 86f5de906cf821c3985ee3341beb278360459278 lacks a Signed-off-by trailer. Its hash is preserved rather than rewritten. The new merge commit is signed off; the inherited DCO failure needs maintainer handling.

Validation:

  • git diff --cached --check, merge-parent inspection, and ancestry checks passed. The release branch was not modified.
  • just docs passed with zero errors; the remote FDR redirects comparison returned HTTP 403 and was skipped with a warning.
  • uv run pre-commit run and the commit hooks passed. GitHub link checks passed when retried with authentication after transient HTTP 500 responses.
  • just test-rust: 5,855 of 5,857 tests passed initially. Both remaining CLI logging tests passed in a focused rerun with inherited logging environment overrides removed and an isolated system configuration directory.
  • just test-python-plugin: all 366 SDK tests passed (97.31% coverage), and all 35 Python gRPC example tests passed. Two of 24 language-binding example tests failed because the production Python extension discovers this machine’s /etc/nemo-relay/plugins.toml and emits inherited-configuration warnings. A rerun with test-isolation environment variables reproduced the same host-configuration failures; that extension does not enable the test-only isolation feature. The recipe stopped before its E2E stage.
  • Full Python, Node.js, and Go binding suites were not rerun locally; the imported implementation is unchanged from the release tip. CI on this PR will validate the combined branch.

Where should the reviewer start?

Review the merge commit’s two parents and its conflict resolutions in docs/nemo-relay-cli/basic-usage.mdx. Confirm that the release notes, migration template, and installation versions remain exactly as on main.

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

Summary by CodeRabbit

  • New Features
    • Added a configurable ChatGPT Codex upstream URL for gateway and run commands, with support for configuration files, environment variables, and CLI flags. ChatGPT requests can be routed to this endpoint while preserving the caller’s ChatGPT credential.
    • Plugin developers can now forward upstream HTTP error statuses through native and worker callbacks using SDK helpers in Rust and Python.
  • Bug Fixes
    • Preserved HTTP status codes from upstream providers, plugins, hooks, and remote guardrails in gateway error responses, including when reading error bodies fails. These errors remain non-retryable.
  • Documentation
    • Added guidance on configuring ChatGPT upstreams and forwarding plugin HTTP errors.

samratjha96 and others added 4 commits October 13, 2026 23:56
#### Overview

Add a string-based HTTP error contract for plugins and preserve received
HTTP error statuses through remote Guardrails and lifecycle-hook
handling. Errors that previously lost their status and surfaced as 400
or 500 now retain the supplied upstream status.

- [x] I confirm this contribution is my own work, or I have the right to
submit it under this project's license.
- [x] I searched existing issues and open pull requests, and this does
not duplicate existing work.

#### Details

##### Plugin APIs and runtime error conversion

- Add `http_error_message` helpers to the Rust native SDK, Rust worker
SDK, and Python worker SDK.
- Recognize error strings beginning exactly with `HTTP <status>:
<message>`, using three ASCII digits from 400 through 599. Convert them
into `FlowError::Upstream` with the supplied status and message, empty
headers, and non-retryable `Other` classification.
- Add `Reported by plugin '<plugin-id>': ` using the identity verified
by the native or worker host. This identifies the reporting component,
without claiming it produced the original failure. Structured logs
include the plugin identity, boundary, and HTTP status.
- Preserve the convention and reporting context through native and
worker continuations and stream callbacks, without duplicating the same
leading reporter. Keep malformed strings, policy rejections, and
cancellation on their existing paths.
- Keep existing callback signatures, native ABI tables, and worker
protobuf fields unchanged. Plugin authors, including Switchyard, must
emit the prefix to adopt the convention.

##### HTTP status code preservation

- Preserve received 400–599 statuses from remote NeMo Guardrails
buffered requests, streaming setup, and tool checks, including failures
while reading an error body.
- Preserve HTTP failures from forwarded lifecycle hooks and propagate
statuses through direct runtime errors and nested CLI error wrappers.
- Classify received hook-gateway HTTP failures separately from provider
failures, using a private CLI error variant and `hook_http` log
classification. Retain messages from recognized Relay error envelopes so
plugin reporting context reaches the agent.
- Retain current response envelopes, header handling,
fail-open/fail-closed behavior, and provider retry classification.
Ordinary provider forwarding is unchanged.
- Errors after streaming headers are sent remain typed stream errors and
cannot change the HTTP response status.

**Compatibility:** APIs and transports remain compatible, but matching
plugin error strings now have HTTP meaning. Remote HTTP failures change
from `FlowError::Internal` to `FlowError::Upstream`, affecting error
messages, classifications, and Rust pattern matching.

**Validation:**

- `just test-rust`: all 5,845 tests passed, with machine logging and
configuration isolated.
- `just test-python-plugin`: all 366 SDK tests, 35 gRPC example tests,
24 language-binding example tests, and worker end-to-end checks passed
with the existing test configuration feature enabled for the Python
binding.
- Native and worker fixture integrations passed, including continuation
round trips and plugin-originated errors. Regression coverage includes
all 400–599 codes, malformed prefixes, cancellation, truncated HTTP
bodies, verified reporter identities, nested reporting context, and
hook-gateway classification and message forwarding.
- HTTP-preservation validation also passed Python and Node.js suites;
Node.js configuration was isolated.
- `just docs` and staged `uv run pre-commit run` passed. Fern could not
compare published redirects because FDR returned 403.
- Go validation was attempted but blocked by the macOS linker error
`mis-aligned LINKEDIT string pool` in the FFI dylib.

#### Where should the reviewer start?

Start with `crates/types/src/plugin.rs` for the error-string contract,
`crates/core/src/plugin/dynamic/http_error.rs` for runtime conversion,
and `crates/cli/src/error.rs` for HTTP response mapping. The native and
worker integration tests demonstrate propagation across actual plugin
boundaries.

#### Related Issues: (use one of the action keywords Closes / Fixes /
Resolves / Relates to)

- Relates to: none


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Upstream HTTP errors from remote guardrails and plugins now preserve
their 4xx or 5xx status in gateway responses, including when an error
body cannot be read.
* Native and worker plugins can forward upstream HTTP errors using SDK
helpers for Rust and Python. These errors remain non-retryable.
* **Bug Fixes**
* Hook and plugin error handling now retains valid upstream status codes
instead of mapping them to a generic gateway error. Hook errors also
preserve their status when response bodies are truncated.
* **Documentation**
* Added guidance on forwarding HTTP errors, supported status codes,
plugin attribution, and behavior during streaming responses.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Will Killian <[email protected]>
#### Overview

Add 0.10.1 release notes covering the fifteen PRs merged into
`release/0.10` since `0.10.0`, plus the anticipated merge of NVIDIA#1317, with
matching patch-upgrade guidance. Preserve the 0.10.0 notes and follow
the NVIDIA documentation style guide.

- [x] I confirm this contribution is my own work, or I have the right to
submit it under this project's license.
- [x] I searched existing issues and open pull requests, and this does
not duplicate existing work.

#### Details

- Cover daemon-worker LLM middleware (NVIDIA#1281), the YAML dependency update
(NVIDIA#1282), hook timeout and failure-policy fixes (NVIDIA#1288, NVIDIA#1289, NVIDIA#1290),
and request-edit preservation (NVIDIA#1296).
- Cover Anthropic streaming storage (NVIDIA#1303), Python typed reconstruction
(NVIDIA#1304), Go native handle lifetimes (NVIDIA#1302), authenticated Pi hooks and
session ownership (NVIDIA#1306), dynamic plugin trust failures (NVIDIA#1305), and
verified native plugin loading (NVIDIA#1307).
- Cover Pi named-upstream restrictions (NVIDIA#1314), LangChain tool-schema
edits (NVIDIA#1316), and the configurable ChatGPT Codex endpoint (NVIDIA#1319).
- Assume NVIDIA#1317 will merge: document plugin HTTP error helpers and
prefixes, preservation of remote Guardrails and forwarded hook HTTP
error statuses, verified reporting identities, and streaming limits.
Verified against its current head
`b61bb7da0bc6de7b7d5d27a569981867b7b2fcb9`; its implementation is not
merged into this branch.
- Add upgrade guidance for hook credentials and registration, generated
hooks, daemon response behavior, request edits, Pi extensions and
private provider endpoints, native plugin dependencies, stored Python
typed values, ChatGPT endpoints, and HTTP error handling.
- Keep PR references and counts out of user-facing release notes.
Preserve the prior CodeRabbit corrections for MCP route registration,
forwarded-stream observation limits, sanitizer-only behavior, and 0.10.1
installation pins.
- Merge the latest `release/0.10` into the PR branch. Distinguish
personal hook refresh commands from administrator-managed daemon
bundles.

Validation: `just docs`, `uv run pre-commit run`, and `git diff --cached
--check` passed. Fern skipped the published redirect-history check
because FDR returned HTTP 403. Verified the merged release range against
source and public documentation, and the assumed NVIDIA#1317 behavior against
its current PR source and docs.
Language test suites were not run because the PR diff only updates
documentation prose and installation version pins. Package installation
commands, live daemon upgrades, plugin activations, and hook refreshes
were not executed. Validation runs on the current release branch; NVIDIA#1317
remains an explicit release-content assumption.

#### Where should the reviewer start?

Start with `Release 0.10.1` in
`docs/about-nemo-relay/release-notes/index.mdx`, then review `Update
from NeMo Relay 0.10.0 to 0.10.1` in
`docs/reference/migration-guides.mdx`. Review the new Pi endpoint,
ChatGPT endpoint, LangChain tool-edit, and HTTP error guidance,
including the NVIDIA#1317 merge assumption. Check matching version pins in
`docs/getting-started/installation.mdx`.

#### Related Issues: (use one of the action keywords Closes / Fixes /
Resolves / Relates to)

- Relates to: none


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Added NeMo Relay 0.10.0 and 0.10.1 release notes, including feature
highlights, compatibility updates, fixes, and known issues.
* Expanded migration guidance with upgrade steps and details on hook
credentials and delivery, daemon-worker middleware behavior, request
editing, plugin requirements, and Python value handling.
* Updated installation examples across supported platforms, packages,
and integrations to reference version 0.10.1.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
@willkill07
willkill07 requested review from a team as code owners October 14, 2026 01:47
@github-actions github-actions Bot added size:XL PR is extra large Maintenance CI or Build or general repository maintenance lang:python PR changes/introduces Python code lang:rust PR changes/introduces Rust code labels Oct 14, 2026
@willkill07 willkill07 changed the title chore: forward-merge release/0.10 into main Forward-merge release/0.10 into main Oct 14, 2026
@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/NeMo-Relay/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Enterprise
  • Run ID: 4db45957-298e-4614-bde1-bd46b9fea7e2
📥 Commits

Reviewing files that changed from the base of the PR and between 2392088 and 818a3bd.

📒 Files selected for processing: 47
  • crates/cli/src/agents/codex/alignment.rs
  • crates/cli/src/commands/run.rs
  • crates/cli/src/commands/serve.rs
  • crates/cli/src/configuration/mod.rs
  • crates/cli/src/configuration/types.rs
  • crates/cli/src/error.rs
  • crates/cli/src/gateway/routes.rs
  • crates/cli/src/hooks/response.rs
  • crates/cli/src/process/launcher.rs
  • crates/cli/src/process/types.rs
  • crates/cli/src/server/types.rs
  • crates/cli/tests/coverage/agents/launcher_tests.rs
  • crates/cli/tests/coverage/commands/main_tests.rs
  • crates/cli/tests/coverage/daemon/worker_managed_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/tests/coverage/shared/error_tests.rs
  • crates/cli/tests/coverage/shared/gateway_tests.rs
  • crates/cli/tests/coverage/shared/hook_response_tests.rs
  • crates/cli/tests/coverage/shared/installer_tests.rs
  • crates/cli/tests/coverage/shared/server_tests.rs
  • crates/cli/tests/coverage/shared/session_tests.rs
  • crates/core/src/plugin/dynamic.rs
  • crates/core/src/plugin/dynamic/http_error.rs
  • crates/core/src/plugin/dynamic/native.rs
  • crates/core/src/plugin/dynamic/worker.rs
  • crates/core/src/plugins/nemo_guardrails/remote.rs
  • crates/core/tests/fixtures/native_plugin/src/lib.rs
  • crates/core/tests/integration/native_plugin_tests.rs
  • crates/core/tests/integration/worker_plugin_tests.rs
  • crates/core/tests/unit/dynamic_worker_tests.rs
  • crates/core/tests/unit/native_plugin_tests.rs
  • crates/core/tests/unit/plugin_http_reporting_tests.rs
  • crates/core/tests/unit/plugins/nemo_guardrails/remote_coverage_tests.rs
  • crates/core/tests/unit/plugins/nemo_guardrails/remote_tests.rs
  • crates/plugin/src/lib.rs
  • crates/types/src/plugin.rs
  • crates/types/tests/unit/plugin_http_error_tests.rs
  • crates/worker/src/lib.rs
  • crates/worker/tests/unit/execution_context_tests.rs
  • docs/build-plugins/native/about.mdx
  • docs/build-plugins/workers/middleware-and-continuations.mdx
  • docs/configure-plugins/nemo-guardrails/about.mdx
  • docs/daemon/configuration.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • python/plugin/src/nemo_relay_plugin/__init__.py
  • python/plugin/src/nemo_relay_plugin/_api.py
  • python/tests/plugin/test_worker_sdk.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout: 45
  • GitHub Check: Apply PR labels
  • GitHub Check: Node.js / Package (windows-amd64)
  • GitHub Check: Node.js / Test (windows-arm64)
  • GitHub Check: Node.js / Package (linux-arm64)
  • GitHub Check: Rust / Package (linux-musl-arm64)
  • GitHub Check: Node.js / Package (linux-amd64)
  • GitHub Check: Node.js / Package (macos-arm64)
  • GitHub Check: Node.js / Test (linux-amd64)
  • GitHub Check: Python / Package (linux-amd64)
  • GitHub Check: Python / Package (windows-arm64)
  • GitHub Check: Node.js / Test (windows-amd64)
  • GitHub Check: Node.js / Package (linux-musl-amd64)
  • GitHub Check: Rust / Package (linux-musl-amd64)
  • GitHub Check: Rust / Package (macos-arm64)
  • GitHub Check: Python / Package (linux-arm64)
  • GitHub Check: Python / Test (macos-arm64)
  • GitHub Check: Python / Package (linux-musl-arm64)
  • GitHub Check: Node.js / Test (linux-arm64)
  • GitHub Check: Rust / Package (windows-amd64)
  • GitHub Check: Rust / Package (linux-arm64)
  • GitHub Check: Python / Test (linux-amd64)
  • GitHub Check: Rust / Package (linux-amd64)
  • GitHub Check: Python / Test (windows-amd64)
  • GitHub Check: Python / Test (linux-arm64)
  • GitHub Check: Node.js / Test (macos-arm64)
  • GitHub Check: Rust / Package (windows-arm64)
  • GitHub Check: Python / Test (windows-arm64)
  • GitHub Check: Node.js / Package (linux-musl-arm64)
  • GitHub Check: Rust / Test (windows-amd64)
  • GitHub Check: Go / Test (windows-arm64)
  • GitHub Check: Python / Package (windows-amd64)
  • GitHub Check: Rust / Test (linux-amd64)
  • GitHub Check: Node.js / Package (windows-arm64)
  • GitHub Check: Rust / Test (windows-arm64)
  • GitHub Check: Rust / Test (macos-arm64)
  • GitHub Check: Python / Package (macos-arm64)
  • GitHub Check: Go / Test (linux-amd64)
  • GitHub Check: Rust / Test (linux-arm64)
  • GitHub Check: Go / Test (windows-amd64)
  • GitHub Check: Check / Run
  • GitHub Check: Node.js / Package OpenClaw plugin
  • GitHub Check: Python / Package (linux-musl-amd64)
  • GitHub Check: Go / Test (macos-arm64)
  • GitHub Check: Go / Test (linux-arm64)
  • GitHub Check: Preview docs
🧰 Additional context used
📚 Code guidelines: 5
.agents/skills/contribute-docs/SKILL.md — configured
.agents/skills/review-doc-style/SKILL.md — configured
CONTRIBUTING.md — configured
.agents/skills/prepare-code-freeze/SKILL.md — configured
.agents/skills/draft-release-notes/SKILL.md — configured
📓 Path-based instructions: 10
Review documentation for technical accuracy against the current API, command correctness, and consistency across language bindings.

⚙️ CodeRabbit configuration file

Files:

  • docs/configure-plugins/nemo-guardrails/about.mdx
  • docs/daemon/configuration.mdx
  • docs/build-plugins/workers/middleware-and-continuations.mdx
  • docs/build-plugins/native/about.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
Tests should cover the behavior promised by the changed API surface, including error paths and cross-request isolation where relevant.

⚙️ CodeRabbit configuration file

Files:

  • crates/cli/tests/coverage/commands/main_tests.rs
  • crates/worker/tests/unit/execution_context_tests.rs
  • crates/cli/tests/coverage/shared/server_tests.rs
  • crates/cli/tests/coverage/shared/hook_response_tests.rs
  • crates/core/tests/unit/plugin_http_reporting_tests.rs
  • python/tests/plugin/test_worker_sdk.py
  • crates/core/tests/integration/worker_plugin_tests.rs
  • crates/core/tests/unit/dynamic_worker_tests.rs
  • crates/types/tests/unit/plugin_http_error_tests.rs
  • crates/core/tests/unit/native_plugin_tests.rs
  • crates/core/tests/unit/plugins/nemo_guardrails/remote_coverage_tests.rs
  • crates/core/tests/fixtures/native_plugin/src/lib.rs
  • crates/cli/tests/coverage/shared/error_tests.rs
  • crates/core/tests/integration/native_plugin_tests.rs
  • crates/core/tests/unit/plugins/nemo_guardrails/remote_tests.rs
  • crates/cli/tests/coverage/daemon/worker_managed_tests.rs
  • crates/cli/tests/coverage/shared/installer_tests.rs
  • crates/cli/tests/coverage/shared/gateway_tests.rs
  • crates/cli/tests/coverage/agents/launcher_tests.rs
  • crates/cli/tests/coverage/shared/session_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
Review the Rust runtime for async correctness, scope isolation, middleware ordering, and event lifecycle regressions.

⚙️ CodeRabbit configuration file

Files:

  • crates/core/src/plugin/dynamic.rs
  • crates/core/tests/unit/plugin_http_reporting_tests.rs
  • crates/core/tests/integration/worker_plugin_tests.rs
  • crates/core/tests/unit/dynamic_worker_tests.rs
  • crates/core/tests/unit/native_plugin_tests.rs
  • crates/core/tests/unit/plugins/nemo_guardrails/remote_coverage_tests.rs
  • crates/core/tests/fixtures/native_plugin/src/lib.rs
  • crates/core/src/plugin/dynamic/http_error.rs
  • crates/core/tests/integration/native_plugin_tests.rs
  • crates/core/tests/unit/plugins/nemo_guardrails/remote_tests.rs
  • crates/core/src/plugin/dynamic/worker.rs
  • crates/core/src/plugins/nemo_guardrails/remote.rs
  • crates/core/src/plugin/dynamic/native.rs
Source excerpt: In MDX files, top-of-file comments must use JSX comment delimiters: `{/*` to open and `*/}` to close.

📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)

Files:

  • docs/configure-plugins/nemo-guardrails/about.mdx
  • docs/daemon/configuration.mdx
  • docs/build-plugins/workers/middleware-and-continuations.mdx
  • docs/build-plugins/native/about.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
Source excerpt: Verify MDX files use JSX delimiters for top-of-file SPDX comments.

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/SKILL.md)

Files:

  • docs/configure-plugins/nemo-guardrails/about.mdx
  • docs/daemon/configuration.mdx
  • docs/build-plugins/workers/middleware-and-continuations.mdx
  • docs/build-plugins/native/about.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
Source excerpt: **Formatting**: `cargo fmt` (rustfmt defaults) Source excerpt: **Linting**: `cargo clippy -- -D warnings` -- all warnings are treated as errors

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Files:

  • crates/cli/src/process/types.rs
  • crates/plugin/src/lib.rs
  • crates/core/src/plugin/dynamic.rs
  • crates/cli/src/process/launcher.rs
  • crates/cli/src/configuration/types.rs
  • crates/cli/tests/coverage/commands/main_tests.rs
  • crates/cli/src/commands/serve.rs
  • crates/worker/tests/unit/execution_context_tests.rs
  • crates/cli/tests/coverage/shared/server_tests.rs
  • crates/cli/src/hooks/response.rs
  • crates/cli/tests/coverage/shared/hook_response_tests.rs
  • crates/worker/src/lib.rs
  • crates/core/tests/unit/plugin_http_reporting_tests.rs
  • crates/core/tests/integration/worker_plugin_tests.rs
  • crates/core/tests/unit/dynamic_worker_tests.rs
  • crates/types/tests/unit/plugin_http_error_tests.rs
  • crates/cli/src/error.rs
  • crates/core/tests/unit/native_plugin_tests.rs
  • crates/cli/src/agents/codex/alignment.rs
  • crates/core/tests/unit/plugins/nemo_guardrails/remote_coverage_tests.rs
  • crates/core/tests/fixtures/native_plugin/src/lib.rs
  • crates/cli/tests/coverage/shared/error_tests.rs
  • crates/core/src/plugin/dynamic/http_error.rs
  • crates/core/tests/integration/native_plugin_tests.rs
  • crates/cli/src/server/types.rs
  • crates/core/tests/unit/plugins/nemo_guardrails/remote_tests.rs
  • crates/cli/src/commands/run.rs
  • crates/cli/tests/coverage/daemon/worker_managed_tests.rs
  • crates/cli/tests/coverage/shared/installer_tests.rs
  • crates/core/src/plugin/dynamic/worker.rs
  • crates/core/src/plugins/nemo_guardrails/remote.rs
  • crates/cli/tests/coverage/shared/gateway_tests.rs
  • crates/cli/src/gateway/routes.rs
  • crates/types/src/plugin.rs
  • crates/cli/src/configuration/mod.rs
  • crates/cli/tests/coverage/agents/launcher_tests.rs
  • crates/cli/tests/coverage/shared/session_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/core/src/plugin/dynamic/native.rs
Source excerpt: Search documentation source for references to the old version and update current-version install commands, package examples, and configuration examples to `` where appropriate: Review matches before changing th...

📄 CodeRabbit inference engine (.agents/skills/prepare-code-freeze/SKILL.md)

Files:

  • docs/configure-plugins/nemo-guardrails/about.mdx
  • docs/daemon/configuration.mdx
  • docs/build-plugins/workers/middleware-and-continuations.mdx
  • docs/build-plugins/native/about.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
Source excerpt: Use the naming conventions appropriate to each language: Rust `snake_case`, C FFI exports prefixed `nemo_relay_`, Go `PascalCase`, Node.js `camelCase`, Python `snake_case`.

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Files:

  • crates/cli/src/process/types.rs
  • crates/plugin/src/lib.rs
  • crates/core/src/plugin/dynamic.rs
  • crates/cli/src/process/launcher.rs
  • crates/cli/src/configuration/types.rs
  • crates/cli/tests/coverage/commands/main_tests.rs
  • crates/cli/src/commands/serve.rs
  • crates/worker/tests/unit/execution_context_tests.rs
  • crates/cli/tests/coverage/shared/server_tests.rs
  • crates/cli/src/hooks/response.rs
  • crates/cli/tests/coverage/shared/hook_response_tests.rs
  • crates/worker/src/lib.rs
  • crates/core/tests/unit/plugin_http_reporting_tests.rs
  • python/plugin/src/nemo_relay_plugin/__init__.py
  • python/tests/plugin/test_worker_sdk.py
  • crates/core/tests/integration/worker_plugin_tests.rs
  • crates/core/tests/unit/dynamic_worker_tests.rs
  • crates/types/tests/unit/plugin_http_error_tests.rs
  • crates/cli/src/error.rs
  • crates/core/tests/unit/native_plugin_tests.rs
  • crates/cli/src/agents/codex/alignment.rs
  • crates/core/tests/unit/plugins/nemo_guardrails/remote_coverage_tests.rs
  • crates/core/tests/fixtures/native_plugin/src/lib.rs
  • crates/cli/tests/coverage/shared/error_tests.rs
  • crates/core/src/plugin/dynamic/http_error.rs
  • crates/core/tests/integration/native_plugin_tests.rs
  • crates/cli/src/server/types.rs
  • crates/core/tests/unit/plugins/nemo_guardrails/remote_tests.rs
  • crates/cli/src/commands/run.rs
  • crates/cli/tests/coverage/daemon/worker_managed_tests.rs
  • crates/cli/tests/coverage/shared/installer_tests.rs
  • crates/core/src/plugin/dynamic/worker.rs
  • crates/core/src/plugins/nemo_guardrails/remote.rs
  • crates/cli/tests/coverage/shared/gateway_tests.rs
  • crates/cli/src/gateway/routes.rs
  • crates/types/src/plugin.rs
  • crates/cli/src/configuration/mod.rs
  • crates/cli/tests/coverage/agents/launcher_tests.rs
  • crates/cli/tests/coverage/shared/session_tests.rs
  • python/plugin/src/nemo_relay_plugin/_api.py
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/core/src/plugin/dynamic/native.rs
Source excerpt: Preserve MDX front matter and the JSX SPDX comment.

📄 CodeRabbit inference engine (.agents/skills/draft-release-notes/SKILL.md)

Files:

  • docs/configure-plugins/nemo-guardrails/about.mdx
  • docs/daemon/configuration.mdx
  • docs/build-plugins/workers/middleware-and-continuations.mdx
  • docs/build-plugins/native/about.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
Source excerpt: **Linting**: [Ruff](https://docs.astral.sh/ruff/) with rule sets `E`, `F`, `W`, `I` Source excerpt: **Formatting**: Ruff formatter (line length 120, double quotes) Source excerpt: **Type checking**: [ty](https://github.com/a...

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Files:

  • python/plugin/src/nemo_relay_plugin/__init__.py
  • python/tests/plugin/test_worker_sdk.py
  • python/plugin/src/nemo_relay_plugin/_api.py
🔇 Additional comments: 46
crates/plugin/src/lib.rs: 1

48-48: LGTM!

crates/types/src/plugin.rs: 1

36-63: LGTM!

crates/types/tests/unit/plugin_http_error_tests.rs: 1

1-36: LGTM!

crates/worker/src/lib.rs: 1

59-59: LGTM!

Also applies to: 3360-3367, 3444-3450

crates/worker/tests/unit/execution_context_tests.rs: 1

237-265: LGTM!

python/plugin/src/nemo_relay_plugin/__init__.py: 1

92-92: LGTM!

Also applies to: 159-159, 226-226

python/tests/plugin/test_worker_sdk.py: 1

3777-3812: LGTM!

docs/build-plugins/native/about.mdx: 1

167-208: LGTM!

docs/build-plugins/workers/middleware-and-continuations.mdx: 1

503-543: LGTM!

crates/core/src/plugin/dynamic.rs: 1

29-29: LGTM!

crates/core/src/plugin/dynamic/http_error.rs: 1

1-57: LGTM!

crates/core/src/plugin/dynamic/native.rs: 1

1874-1874: LGTM!

Also applies to: 1891-1891, 1944-1962, 2612-2615, 2917-2920, 3180-3180

crates/core/src/plugin/dynamic/worker.rs: 1

2148-2148: LGTM!

Also applies to: 2176-2177, 2382-2382, 4181-4190, 4339-4355

crates/core/tests/fixtures/native_plugin/src/lib.rs: 1

286-291: LGTM!

Also applies to: 305-310

crates/core/tests/integration/native_plugin_tests.rs: 1

649-718: LGTM!

crates/core/tests/integration/worker_plugin_tests.rs: 1

837-866: LGTM!

crates/core/tests/unit/dynamic_worker_tests.rs: 1

4966-5031: LGTM!

crates/core/tests/unit/native_plugin_tests.rs: 1

8940-9023: LGTM!

crates/core/tests/unit/plugin_http_reporting_tests.rs: 1

1-43: LGTM!

crates/core/src/plugins/nemo_guardrails/remote.rs: 1

18-18: LGTM!

Also applies to: 162-165, 178-183, 348-351, 376-376, 615-615, 630-633, 1207-1220

crates/core/tests/unit/plugins/nemo_guardrails/remote_coverage_tests.rs: 1

768-768: LGTM!

Also applies to: 807-807, 1127-1127, 1143-1143, 1155-1155, 1226-1275

crates/core/tests/unit/plugins/nemo_guardrails/remote_tests.rs: 1

552-555: LGTM!

Also applies to: 648-651

docs/configure-plugins/nemo-guardrails/about.mdx: 1

119-137: LGTM!

crates/cli/src/error.rs: 1

119-120: LGTM!

Also applies to: 181-181, 261-271

crates/cli/src/hooks/response.rs: 1

26-33: LGTM!

Also applies to: 123-138, 248-262

crates/cli/tests/coverage/shared/error_tests.rs: 1

21-27: LGTM!

Also applies to: 139-175

crates/cli/tests/coverage/shared/hook_response_tests.rs: 1

1-58: LGTM!

crates/cli/tests/coverage/shared/installer_tests.rs: 1

1084-1120: LGTM!

crates/cli/tests/coverage/shared/server_tests.rs: 1

347-347: LGTM!

Also applies to: 6960-6999

crates/cli/src/commands/run.rs: 1

34-36: LGTM!

Also applies to: 56-56, 113-113

crates/cli/src/commands/serve.rs: 1

23-25: LGTM!

Also applies to: 47-47

crates/cli/src/configuration/mod.rs: 1

79-79: LGTM!

Also applies to: 325-325, 1325-1325, 1330-1335, 1349-1355, 1393-1398, 1673-1673, 1700-1705, 2010-2015, 2057-2089

crates/cli/src/configuration/types.rs: 1

37-39: LGTM!

Also applies to: 150-150

crates/cli/src/process/types.rs: 1

14-14: LGTM!

crates/cli/src/server/types.rs: 1

13-13: LGTM!

Also applies to: 25-25

crates/cli/src/agents/codex/alignment.rs: 1

22-24: LGTM!

Also applies to: 92-93

crates/cli/src/gateway/routes.rs: 1

258-259: LGTM!

Also applies to: 277-285

crates/cli/src/process/launcher.rs: 1

705-707: LGTM!

crates/cli/tests/coverage/commands/main_tests.rs: 1

1437-1476: LGTM!

crates/cli/tests/coverage/daemon/worker_managed_tests.rs: 1

628-660: LGTM!

crates/cli/tests/coverage/shared/config_tests.rs: 1

242-242: LGTM!

Also applies to: 262-262, 275-275, 292-292, 357-360, 420-420, 471-474, 629-629, 968-968, 1249-1249, 1332-1332, 1391-1391, 1446-1446, 2501-2501, 2539-2539, 2578-2578, 2619-2619, 3157-3157, 3207-3216, 4029-4029, 4072-4072, 4973-5036, 5038-5104

crates/cli/tests/coverage/shared/gateway_tests.rs: 1

523-523: LGTM!

Also applies to: 575-575, 612-612, 2386-2386, 2429-2429, 2838-2838, 2968-3018

crates/cli/tests/coverage/agents/launcher_tests.rs: 1

80-80: LGTM!

Also applies to: 96-96, 138-138, 159-159, 185-185, 209-209, 231-231, 1168-1168, 1261-1261, 1284-1284, 1978-1978, 2024-2024, 2056-2056, 2123-2123

crates/cli/tests/coverage/shared/session_tests.rs: 1

2516-2516: LGTM!

Also applies to: 4409-4409, 5070-5070, 5261-5261, 5342-5342, 5419-5419, 5480-5480, 6138-6138, 6278-6278, 6380-6380, 6500-6500, 6598-6598, 8438-8438, 8457-8457

docs/daemon/configuration.mdx: 1

768-782: LGTM!

docs/nemo-relay-cli/basic-usage.mdx: 1

351-359: LGTM!

Also applies to: 436-445

Walkthrough

The pull request adds a configurable ChatGPT Codex upstream and preserves upstream HTTP status information across plugin, remote guardrail, and hook error paths. It also adds Rust and Python SDK helpers for encoding and recognizing upstream HTTP errors.

Changes

ChatGPT Codex upstream routing

Layer / File(s) Summary
Configure and validate the upstream
crates/cli/src/commands/run.rs, crates/cli/src/commands/serve.rs, crates/cli/src/configuration/*, crates/cli/src/process/types.rs, crates/cli/src/server/types.rs
The optional URL can be set through file configuration, environment variables, and CLI overrides. Validation allows HTTPS, or HTTP for loopback hosts, and rejects credentials, queries, and fragments.
Apply the configured upstream
crates/cli/src/agents/codex/alignment.rs, crates/cli/src/gateway/routes.rs, crates/cli/src/configuration/mod.rs, crates/cli/src/process/launcher.rs
When the selected Codex ChatGPT URL matches the upstream prefix, the gateway rebases it onto the configured URL and preserves the suffix. The setting also affects the persistent fingerprint and appears in the printed run plan when present.
Verify routing and configuration behavior
crates/cli/tests/coverage/agents/launcher_tests.rs, crates/cli/tests/coverage/commands/main_tests.rs, crates/cli/tests/coverage/daemon/worker_managed_tests.rs, crates/cli/tests/coverage/shared/*, docs/daemon/configuration.mdx, docs/nemo-relay-cli/basic-usage.mdx
Tests cover URL validation, source precedence, managed-worker configuration, and routing behavior. The documentation describes the setting and the ChatGPT routes that use it.

HTTP error propagation

Layer / File(s) Summary
Define the HTTP error message contract
crates/types/src/plugin.rs, crates/types/tests/unit/plugin_http_error_tests.rs, crates/plugin/src/lib.rs, crates/worker/src/lib.rs, crates/worker/tests/unit/execution_context_tests.rs, python/plugin/src/nemo_relay_plugin/*, python/tests/plugin/test_worker_sdk.py, docs/build-plugins/native/about.mdx, docs/build-plugins/workers/middleware-and-continuations.mdx
The SDKs format statuses 400–599 as HTTP {status}: {message} and recognize only messages with the specified prefix and status format. Worker conversions preserve recognized messages, while cancellation handling remains distinct.
Preserve errors across plugin bridges
crates/core/src/plugin/dynamic.rs, crates/core/src/plugin/dynamic/*, crates/core/tests/fixtures/native_plugin/src/lib.rs, crates/core/tests/integration/*plugin_tests.rs, crates/core/tests/unit/*plugin_tests.rs
Native and worker plugin bridges convert recognized messages to upstream failures and add plugin reporting context. Tests cover status, message, retryability, and reporting behavior.
Preserve remote guardrail statuses
crates/core/src/plugins/nemo_guardrails/remote.rs, crates/core/tests/unit/plugins/nemo_guardrails/*, docs/configure-plugins/nemo-guardrails/about.mdx
Remote HTTP failures and response-body read failures map to upstream errors for buffered, streaming, and tool-check paths. The status and available body information are covered by tests.
Preserve hook and provider response statuses
crates/cli/src/error.rs, crates/cli/src/hooks/response.rs, crates/cli/tests/coverage/shared/{error_tests,hook_response_tests,installer_tests,server_tests}.rs
Hook errors retain applicable HTTP statuses and trusted gateway error messages. Wrapped provider and hook failures now delegate response-status selection through their sources.

Priority: ➖ Normal

Estimated code review effort: 4 (Complex) | ~60 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant PluginCallback
  participant WorkerSDK
  participant DynamicWorkerPlugin
  participant Gateway
  PluginCallback->>WorkerSDK: Return HTTP-prefixed callback error
  WorkerSDK->>DynamicWorkerPlugin: Preserve recognized error message
  DynamicWorkerPlugin->>Gateway: Convert message to attributed upstream failure
  Gateway->>Gateway: Preserve upstream status in response
Loading

Suggested labels: DO NOT MERGE

Merge Risk: ⚪ Minimal · up to 818a3

No identified issue blocks merging after normal checks.

Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

Failed Failed checks: 1 error · 1 warning

Check name Status Explanation Resolution
Title check Error The title describes the forward merge, but it does not follow the required Conventional Commits format. It lacks an allowed lowercase type and uses a non-imperative merge phrase. Use an allowed Conventional Commits title under 72 characters, such as "chore: forward-merge release/0.10 into main".
Docstring Coverage Warning Docstring coverage is 53.18% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 173 functions across 42 files. (5 skipped… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description includes all required template sections, completed confirmation checkboxes, detailed merge and validation information, reviewer guidance, and a valid Relates to issue reference. It als…
Full details: Docstring Coverage

Explanation

Docstring coverage is 53.18% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 173 functions across 42 files. (5 skipped: 5 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot removed the Maintenance CI or Build or general repository maintenance label Oct 14, 2026
@coderabbitai coderabbitai Bot added the DO NOT MERGE PR should not be merged; see PR for details label Oct 14, 2026
@github-actions

Copy link
Copy Markdown

@willkill07
willkill07 merged commit e6e1326 into NVIDIA:main Oct 14, 2026
98 checks passed
@willkill07
willkill07 deleted the main-merge-release/0.10 branch October 30, 2026 14:47
@coderabbitai coderabbitai Bot mentioned this pull request Nov 5, 2026
2 tasks done

This branch was previously deployed

1 inactive deployment
fern — 818a3bd7 Deployed Oct 14, 2026 by willkill07 via Clean up docs preview #5730
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DO NOT MERGE PR should not be merged; see PR for details lang:python PR changes/introduces Python code lang:rust PR changes/introduces Rust code size:XL PR is extra large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants