Skip to content

Forward-merge release/0.10 into main - #1337

Merged
willkill07 merged 3 commits into
mainfrom
release/0.10
Oct 14, 2026
Merged

willkill07 merged 3 commits into
mainfrom
release/0.10

Conversation

@rapids-bot

@rapids-bot rapids-bot Bot commented Oct 13, 2026

Copy link
Copy Markdown

Forward-merge triggered by push to release/0.10 that creates a PR to keep main up-to-date. If this PR is unable to be immediately merged due to conflicts, it will remain open for the team to manually merge. See forward-merger docs for more info.

@rapids-bot
rapids-bot Bot requested review from a team as code owners October 13, 2026 23:56
@rapids-bot

rapids-bot Bot commented Oct 13, 2026

Copy link
Copy Markdown
Author

FAILURE - Unable to forward-merge due to an error, manual merge is necessary. Do not use the Resolve conflicts option in this PR, follow these instructions https://docs.rapids.ai/maintainers/forward-merger/

IMPORTANT: When merging this PR, do not use the auto-merger (i.e. the /merge comment). Instead, an admin must manually merge by changing the merging strategy to Create a Merge Commit. Otherwise, history will be lost and the branches become incompatible.

@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/NeMo-Relay/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 59721fe5-fa9f-4e29-82e8-073a3a638b4b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • 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 added size:M PR is medium lang:rust PR changes/introduces Rust code labels Oct 13, 2026
#### 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]>
@github-actions github-actions Bot added size:XL PR is extra large lang:python PR changes/introduces Python code and removed size:M PR is medium labels Oct 14, 2026
#### 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 #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 (#1281), the YAML dependency update
(#1282), hook timeout and failure-policy fixes (#1288, #1289, #1290),
and request-edit preservation (#1296).
- Cover Anthropic streaming storage (#1303), Python typed reconstruction
(#1304), Go native handle lifetimes (#1302), authenticated Pi hooks and
session ownership (#1306), dynamic plugin trust failures (#1305), and
verified native plugin loading (#1307).
- Cover Pi named-upstream restrictions (#1314), LangChain tool-schema
edits (#1316), and the configurable ChatGPT Codex endpoint (#1319).
- Assume #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 #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; #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 #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]>
@codecov

codecov Bot commented Oct 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.33333% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.84%. Comparing base (d34c7da) to head (005eb5b).
⚠️ Report is 62 commits behind head on main.

Files with missing lines Patch % Lines
crates/core/src/plugin/dynamic/native.rs 77.61% 15 Missing ⚠️
crates/cli/src/hooks/response.rs 96.15% 1 Missing ⚠️
crates/cli/src/process/launcher.rs 66.67% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1337       +/-   ##
===========================================
- Coverage   95.21%   92.84%    -2.37%     
===========================================
  Files          36      406      +370     
  Lines       10522   148688   +138166     
  Branches        0      140      +140     
===========================================
+ Hits        10018   138046   +128028     
- Misses        504    10642    +10138     
Components Coverage Δ
Rust Runtime 95.77% <90.20%> (∅)
Shared DTO Types 98.13% <100.00%> (∅)
CLI 91.18% <98.20%> (∅)
Go Binding 94.76% <ø> (∅)
Python Binding 94.87% <ø> (-0.03%) ⬇️
Node Binding 98.30% <ø> (∅)
Dynamic Plugin SDKs 96.35% <100.00%> (-0.94%) ⬇️
Files with missing lines Coverage Δ
crates/cli/src/agents/codex/alignment.rs 99.61% <ø> (ø)
crates/cli/src/commands/run.rs 100.00% <100.00%> (ø)
crates/cli/src/commands/serve.rs 100.00% <100.00%> (ø)
crates/cli/src/configuration/mod.rs 89.03% <100.00%> (ø)
crates/cli/src/configuration/types.rs 100.00% <100.00%> (ø)
crates/cli/src/error.rs 96.64% <100.00%> (ø)
crates/cli/src/gateway/routes.rs 98.56% <100.00%> (ø)
crates/cli/src/server/types.rs 100.00% <100.00%> (ø)
crates/core/src/plugin/dynamic.rs 91.02% <ø> (ø)
crates/core/src/plugin/dynamic/http_error.rs 100.00% <100.00%> (ø)
... and 10 more

... and 354 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d34c7da...005eb5b. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@willkill07 willkill07 mentioned this pull request Oct 14, 2026
2 tasks done
willkill07 added a commit that referenced this pull request Oct 14, 2026
#### 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.

- [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

- 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 #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)

- Relates to #1337


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

## 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.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Will Killian <[email protected]>
@willkill07
willkill07 merged commit 818a3bd into main Oct 14, 2026
113 of 114 checks passed

This branch was successfully deployed

3 active and 1 inactive deployments
fern — 005eb5bc Deployed Oct 14, 2026 by willkill07 via Clean up docs preview #5731
npm — 005eb5bc Deployed Oct 14, 2026 by willkill07 via Publish (npm) #5790
crates.io — 005eb5bc Deployed Oct 14, 2026 by willkill07 via Publish (crates.io) #5790
pypi — 005eb5bc Deployed Oct 14, 2026 by willkill07 via Publish (PyPI) #5790
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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