Skip to content

feat!: remove project configuration layering - #720

Merged
rapids-bot[bot] merged 3 commits into
NVIDIA:mainfrom
willkill07:wkk_relay-667-remove-project-config-layering
Aug 5, 2026
Merged

feat!: remove project configuration layering#720
rapids-bot[bot] merged 3 commits into
NVIDIA:mainfrom
willkill07:wkk_relay-667-remove-project-config-layering

Conversation

@willkill07

@willkill07 willkill07 commented Aug 5, 2026

Copy link
Copy Markdown
Member

Overview

Remove repository-local project configuration and plugin layering as an active NeMo Relay concept. Runtime resolution is now explicit configuration, or XDG user configuration by default, followed by higher-precedence platform system policy.

  • 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

  • Remove upward .nemo-relay discovery for gateway configuration, plugin configuration, and dynamic-plugin lifecycle registries.
  • Remove project-facing setup, reset, config editor, plugin, and model-pricing scopes while retaining explicit, user, and system configuration.
  • Resolve system configuration from /etc/nemo-relay on Unix and %ProgramData%\nemo-relay on Windows, consistently across core plugin discovery, CLI loading and editing, lifecycle state, and doctor output.
  • Create missing parent directories on the first user or system configuration write, with regression coverage for config.toml and plugins.toml.
  • Update doctor to schema version 2 with warning-only unsupported_project_files migration diagnostics. Legacy project files are neither parsed nor activated.
  • Preserve repository-local ATOF, ATIF, logging, and other runtime artifact directories.
  • Migrate Rust, FFI, Python, Node.js, and Go coverage to user or explicit configuration. Go dynamic-plugin tests now prove that both malformed legacy project files alongside valid XDG files and project-only plugin files remain inactive.
  • Rewrite configuration, CLI, plugin, coding-agent, migration, and release documentation for the 0.8 behavior. Follow-up review fixes remove hidden plugin-path guidance, use unambiguous pricing-path placeholders, and document that system pricing sources win over matching explicit-or-user sources.

This is an intentional breaking change. The --project flags, project/both setup scopes, and config --reset --scope interface are removed. Existing project configuration and lifecycle files remain on disk but are ignored unless a supported configuration file is selected explicitly.

Validation:

  • RUST_TEST_THREADS=1 just test-rust
  • just test-python-plugin
  • just test-python
  • just test-node
  • just test-go
  • focused platform path and missing-directory creation tests
  • just docs
  • just docs-linkcheck
  • cargo clippy --workspace --all-targets -- -D warnings
  • uv run pre-commit run --all-files
  • uv run pre-commit run --files README.md docs/configure-plugins/model-pricing.mdx docs/configure-plugins/plugin-configuration-files.mdx docs/integrate-into-frameworks/provider-response-codecs.mdx docs/nemo-relay-cli/basic-usage.mdx docs/nemo-relay-cli/codex.mdx go/nemo_relay/plugin_activation_test.go

Where should the reviewer start?

Start with crates/core/src/plugin.rs for the shared platform system-directory resolver and ambient plugin discovery, then crates/cli/src/configuration/mod.rs for CLI resolution and crates/cli/src/diagnostics/mod.rs for doctor reporting. For the review follow-up, see go/nemo_relay/plugin_activation_test.go for legacy-project isolation coverage and the configuration/pricing documentation changes.

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

  • Relates to: RELAY-667

Summary by CodeRabbit

  • Breaking Changes

    • Configuration and plugin discovery now use user and system locations only; repository-local files are ignored.
    • Project-scoped options have been removed from configuration, plugin, and model-pricing commands.
    • Use explicit path options to load configuration from another location.
  • Bug Fixes

    • Diagnostics now identify legacy project configuration as inactive warnings without failing commands.
  • Documentation

    • Added migration guidance and updated examples for user-level configuration, system precedence, and supported paths.

Signed-off-by: Will Killian <wkillian@nvidia.com>
@willkill07
willkill07 requested review from a team as code owners August 5, 2026 20:52
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

The change removes project-local configuration discovery and editing. Configuration now uses explicit, user, and system layers. Legacy project files appear as inactive doctor warnings. CLI tests and documentation now use user-scoped XDG paths.

Changes

Configuration layer simplification

Layer / File(s) Summary
CLI configuration and scope removal
crates/cli/src/commands/..., crates/cli/src/bootstrap/mod.rs, crates/cli/src/plugins/...
Setup, reset, editing, pricing, plugin commands, and gateway startup no longer support project scope.
Runtime resolution and diagnostics
crates/cli/src/configuration/mod.rs, crates/core/src/plugin.rs, crates/cli/src/diagnostics/...
Resolution uses explicit-or-user and system files. Doctor reports legacy project files as inactive warnings.
Validation and integration coverage
crates/cli/tests/..., crates/core/tests/..., crates/ffi/tests/..., crates/node/tests/..., go/..., python/tests/...
Tests validate user paths, system paths, project-file ignoring, scope rejection, and updated doctor schema behavior.
Documentation and migration guidance
README.md, docs/..., integrations/...
Documentation describes user/system precedence, explicit paths, removed project options, and migration steps.

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

Sequence Diagram(s)

sequenceDiagram
  participant CLI
  participant ConfigurationResolver
  participant CorePluginResolver
  participant SystemConfig
  CLI->>ConfigurationResolver: select explicit-or-user configuration
  ConfigurationResolver->>CorePluginResolver: resolve plugin paths
  CorePluginResolver->>SystemConfig: include system configuration
  SystemConfig-->>CorePluginResolver: return system path
  CorePluginResolver-->>ConfigurationResolver: return effective paths
  ConfigurationResolver-->>CLI: load configuration
Loading

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title follows Conventional Commits format, uses the required breaking-change marker, and concisely describes the project-layering removal.
Description check ✅ Passed The description includes all template sections, explains the breaking changes and validation, identifies review entry points, and references a related issue.
Docstring Coverage ✅ Passed Docstring coverage is 92.89% which is sufficient. The required threshold is 80.00%.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 golangci-lint (2.12.2)

level=error msg="[linters_context] typechecking error: pattern ./...: directory prefix . does not contain main module or its selected dependencies"


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

@github-actions github-actions Bot added size:XL PR is extra large Feature a new feature breaking PR introduces a breaking change lang:go PR changes/introduces Go code lang:js PR changes/introduces Javascript/Typescript code lang:python PR changes/introduces Python code lang:rust PR changes/introduces Rust code labels Aug 5, 2026
@willkill07 willkill07 self-assigned this Aug 5, 2026
@willkill07 willkill07 added this to the 0.8 milestone Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Caution

Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted.

Error details
putComment timed out

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
go/nemo_relay/plugin_activation_test.go (1)

624-658: 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win

Add Go Coverage for Ignored Project Plugin Files.

This helper creates only the user plugins.toml. The test cannot detect a project-layer merge or fallback.

Create a legacy .nemo-relay/plugins.toml under projectDir. Use a malformed file beside the valid user file. Add a project-only case that confirms activation does not load the legacy component.

Proposed fixture addition
 func configureNativePluginUserConfig(t *testing.T) string {
     t.Helper()
     projectDir := t.TempDir()
+    legacyPluginsTOML := filepath.Join(projectDir, ".nemo-relay", "plugins.toml")
+    if err := os.MkdirAll(filepath.Dir(legacyPluginsTOML), 0o700); err != nil {
+        t.Fatalf("MkdirAll(legacy project config) error = %v", err)
+    }
+    if err := os.WriteFile(legacyPluginsTOML, []byte("components = ["), 0o600); err != nil {
+        t.Fatalf("WriteFile(legacy plugins.toml) error = %v", err)
+    }
     xdgConfigHome := filepath.Join(projectDir, "xdg")

Run cd go/nemo_relay && go fmt ./... and just test-go after adding the cases. As per path instructions, “Any API change should include focused Go tests and consider race-test behavior.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@go/nemo_relay/plugin_activation_test.go` around lines 624 - 658, Add a
malformed legacy project-layer .nemo-relay/plugins.toml under projectDir in
configureNativePluginUserConfig, then add a project-only activation test that
verifies the legacy component is ignored and is not loaded. Preserve the
existing valid user-file setup, and run gofmt plus the Go test suite afterward.

Sources: Coding guidelines, Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/configure-plugins/model-pricing.mdx`:
- Around line 71-73: Update the model-pricing command examples to use
<path/to/pricing.json> instead of /path/to/pricing.json in both validate and
add-source commands, and state that readers must replace the placeholder with
their actual pricing file path before running them.

In `@docs/configure-plugins/plugin-configuration-files.mdx`:
- Around line 390-398: Remove stale project-configuration guidance across the
documented sites: in docs/configure-plugins/plugin-configuration-files.mdx
(lines 390-398), update the nearby example to use the supported explicit-or-user
layer instead of “project or user file”; in docs/nemo-relay-cli/basic-usage.mdx
(lines 351-355), remove “project” from model-pricing resolution guidance; and in
docs/nemo-relay-cli/codex.mdx (lines 289-290), remove or rewrite the statement
so transparent runs do not imply they load ignored project configuration.

In `@integrations/coding-agents/codex/README.md`:
- Around line 166-175: Update the configuration-layer documentation in the
README, especially the section around the referenced lines, to remove any claim
that transparent runs use repository-local .nemo-relay files. State that
nemo-relay run uses system and user configuration layers, or an explicit
--config path with its sibling plugins.toml, while preserving the existing
user-default configuration guidance.

In `@README.md`:
- Around line 114-115: Update the README guidance for repository-local
`.nemo-relay/plugins.toml` files to use a supported, discoverable public
configuration option or stable wrapper command instead of the hidden
`--plugin-config-path` override. Do not document that internal option as the
user-facing escape hatch.

---

Outside diff comments:
In `@go/nemo_relay/plugin_activation_test.go`:
- Around line 624-658: Add a malformed legacy project-layer
.nemo-relay/plugins.toml under projectDir in configureNativePluginUserConfig,
then add a project-only activation test that verifies the legacy component is
ignored and is not loaded. Preserve the existing valid user-file setup, and run
gofmt plus the Go test suite afterward.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: fa04ef36-af44-4cb2-a698-dcb97762e73d

📥 Commits

Reviewing files that changed from the base of the PR and between 0f87ce7 and 1e50783.

📒 Files selected for processing (59)
  • README.md
  • crates/cli/README.md
  • crates/cli/src/agents/hermes/integration.rs
  • crates/cli/src/bootstrap/mod.rs
  • crates/cli/src/commands/configure/editor.rs
  • crates/cli/src/commands/configure/mod.rs
  • crates/cli/src/commands/configure/model.rs
  • crates/cli/src/commands/configure/wizard.rs
  • crates/cli/src/commands/configure/wizard/prompt.rs
  • crates/cli/src/commands/logging.rs
  • crates/cli/src/commands/mod.rs
  • crates/cli/src/commands/model_pricing/mod.rs
  • crates/cli/src/commands/plugins/subcommands.rs
  • crates/cli/src/commands/root.rs
  • crates/cli/src/commands/serve.rs
  • crates/cli/src/configuration/mod.rs
  • crates/cli/src/diagnostics/mod.rs
  • crates/cli/src/diagnostics/model.rs
  • crates/cli/src/diagnostics/render.rs
  • crates/cli/src/mcp_environment.rs
  • crates/cli/src/plugins/config_io.rs
  • crates/cli/src/plugins/lifecycle/mod.rs
  • crates/cli/src/plugins/lifecycle/state.rs
  • crates/cli/src/plugins/mod.rs
  • crates/cli/src/plugins/pricing.rs
  • crates/cli/src/plugins/types.rs
  • crates/cli/src/process/launcher.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/tests/coverage/commands/main_tests.rs
  • crates/cli/tests/coverage/commands/model_pricing_tests.rs
  • crates/cli/tests/coverage/shared/bootstrap_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/tests/coverage/shared/doctor_tests.rs
  • crates/cli/tests/coverage/shared/plugins_lifecycle_tests.rs
  • crates/cli/tests/coverage/shared/plugins_tests.rs
  • crates/cli/tests/coverage/shared/setup_tests.rs
  • crates/core/src/plugin.rs
  • crates/core/tests/integration/native_plugin_tests.rs
  • crates/core/tests/unit/plugin_tests.rs
  • crates/ffi/tests/integration/plugin_activation_tests.rs
  • crates/node/tests/dynamic_plugin_tests.mjs
  • docs/about-nemo-relay/release-notes/index.mdx
  • docs/configure-plugins/discoverable-plugins.mdx
  • docs/configure-plugins/model-pricing.mdx
  • docs/configure-plugins/observability/configuration.mdx
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/nemo-relay-cli/claude-code.mdx
  • docs/nemo-relay-cli/codex.mdx
  • docs/nemo-relay-cli/hermes.mdx
  • docs/reference/migration-guides.mdx
  • docs/reference/operational-logging.mdx
  • go/nemo_relay/plugin_activation_test.go
  • integrations/coding-agents/README.md
  • integrations/coding-agents/claude-code/README.md
  • integrations/coding-agents/codex/README.md
  • python/tests/test_dynamic_plugin_host.py
💤 Files with no reviewable changes (4)
  • crates/cli/src/plugins/types.rs
  • crates/cli/tests/coverage/shared/bootstrap_tests.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/src/mcp_environment.rs

Comment thread docs/configure-plugins/model-pricing.mdx Outdated
Comment thread docs/configure-plugins/plugin-configuration-files.mdx
Comment thread integrations/coding-agents/codex/README.md
Comment thread README.md Outdated
Comment thread docs/integrate-into-frameworks/provider-response-codecs.mdx Outdated
Signed-off-by: Will Killian <wkillian@nvidia.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
crates/cli/README.md (1)

147-151: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Distinguish automatic discovery from explicit selection.

Line 151 and Line 205 say that repository-local files are ignored. The same section documents --config and --plugin-config-path as explicit selectors, so users can still select repository-local files deliberately. State that these files are “not discovered automatically” instead.

As per path instructions, this README must match current command behavior. Based on the PR objective, legacy files remain selectable through explicit configuration.

Suggested wording
-Repository-local `.nemo-relay/config.toml` files are ignored.
+Repository-local `.nemo-relay/config.toml` files are not discovered automatically; select one explicitly with `--config`.
...
-Repository-local `.nemo-relay/plugins.toml` files are ignored.
+Repository-local `.nemo-relay/plugins.toml` files are not discovered automatically; select one explicitly with `--plugin-config-path`.

Also applies to: 195-205

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@crates/cli/README.md` around lines 147 - 151, Update the repository-local
configuration wording in the runtime/configuration documentation, including the
sections around the user config precedence and plugin configuration, to state
that `.nemo-relay/config.toml` files are not discovered automatically rather
than ignored. Preserve that explicitly selected legacy files remain supported
through `--config` and `--plugin-config-path`.

Source: Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@crates/cli/README.md`:
- Around line 147-151: Update the repository-local configuration wording in the
runtime/configuration documentation, including the sections around the user
config precedence and plugin configuration, to state that
`.nemo-relay/config.toml` files are not discovered automatically rather than
ignored. Preserve that explicitly selected legacy files remain supported through
`--config` and `--plugin-config-path`.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 6e058f19-4dfa-4db0-b7eb-e17396b6e1d0

📥 Commits

Reviewing files that changed from the base of the PR and between 1e50783 and e5c604f.

📒 Files selected for processing (20)
  • crates/cli/README.md
  • crates/cli/src/commands/configure/editor.rs
  • crates/cli/src/commands/configure/mod.rs
  • crates/cli/src/commands/model_pricing/mod.rs
  • crates/cli/src/commands/plugins/subcommands.rs
  • crates/cli/src/configuration/mod.rs
  • crates/cli/src/diagnostics/mod.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/tests/coverage/shared/doctor_tests.rs
  • crates/cli/tests/coverage/shared/plugins_tests.rs
  • crates/cli/tests/coverage/shared/setup_tests.rs
  • crates/core/src/plugin.rs
  • crates/core/tests/unit/plugin_tests.rs
  • docs/configure-plugins/model-pricing.mdx
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/reference/migration-guides.mdx
  • integrations/coding-agents/README.md
📜 Review details
⏰ Context from checks skipped due to timeout. (2)
  • GitHub Check: Check / Run
  • GitHub Check: Preview docs
🧰 Additional context used
📓 Path-based instructions (32)
**/*.rs

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

**/*.rs: Any Rust change must run just test-rust
Any Rust change must run cargo fmt --all
Any Rust change must run cargo clippy --workspace --all-targets -- -D warnings

**/*.rs: Run cargo fmt --all for all FFI work since it is Rust work
Run just test-rust to validate FFI changes
Run cargo clippy --workspace --all-targets -- -D warnings to enforce strict linting on FFI work

When Rust files changed as part of Go work, also run cargo fmt --all, just test-rust, and cargo clippy --workspace --all-targets -- -D warnings

**/*.rs: Run cargo fmt --all when Rust files are changed as part of Node work
Run cargo clippy --workspace --all-targets -- -D warnings when Rust files are changed as part of Node work
Run just test-rust when Rust files are changed as part of Node work

**/*.rs: If any Rust code changed, always run just test-rust.
If any Rust code changed, also run cargo fmt --all.
If any Rust code changed, also run cargo clippy --workspace --all-targets -- -D warnings.
For Rust changes headed for review, run cargo fmt --all and cargo clippy --workspace --all-targets -- -D warnings even if relying on pre-commit.

**/*.rs: Format Rust code with rustfmt defaults using cargo fmt.
Run cargo clippy -- -D warnings; all Rust warnings must be treated as errors.
Use Rust snake_case naming conventions.

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • crates/cli/src/commands/plugins/subcommands.rs
  • crates/cli/src/commands/configure/mod.rs
  • crates/cli/src/commands/model_pricing/mod.rs
  • crates/cli/src/commands/configure/editor.rs
  • crates/cli/tests/coverage/shared/plugins_tests.rs
  • crates/cli/src/diagnostics/mod.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/src/configuration/mod.rs
  • crates/core/src/plugin.rs
  • crates/cli/tests/coverage/shared/doctor_tests.rs
  • crates/cli/tests/coverage/shared/setup_tests.rs
{crates/core,crates/adaptive}/**/*

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

Changes to crates/core or crates/adaptive must run the full language matrix

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • crates/core/src/plugin.rs
crates/core/**/*.rs

📄 CodeRabbit inference engine (.agents/skills/test-go-binding/SKILL.md)

If the change touched crates/core or shared runtime semantics, also use validate-change for broader validation

Use Result<T> with FlowError in core runtime paths, keeping wrapper-layer errors explicit and binding-appropriate.

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • crates/core/src/plugin.rs
**/*

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

**/*: Format changed files with the language-native formatter before the final lint/test pass.
If dynamic plugin behavior changed, use maintain-dynamic-plugins and include the native SDK, worker protocol, Python SDK, docs, packaging, and Codecov surfaces in the validation plan.
If code changes alter APIs, bindings, commands, paths, packaging behavior, observability/adaptive semantics, or documented best practices, update any dependent maintainer or consumer skills in the same branch.
During iteration, prefer uv run pre-commit run --files <changed files...>.
Before review or handoff, run uv run pre-commit run --all-files.

**/*: Use release tags in raw Rust-compatible SemVer without a leading v; tags such as v0.1.0 are prohibited.
Use branch prefixes feat/, fix/, docs/, test/, or refactor/ according to the change purpose.
Every commit in a pull request must include a DCO Signed-off-by: sign-off.
Before submitting a pull request, ensure pre-commit hooks, relevant tests, target-specific builds, documentation updates, and a rebase on the latest main are complete.
Use commit messages in the form type: short description, with a valid type and a first line under 72 characters.

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • docs/nemo-relay-cli/basic-usage.mdx
  • crates/cli/src/commands/plugins/subcommands.rs
  • crates/cli/src/commands/configure/mod.rs
  • crates/cli/src/commands/model_pricing/mod.rs
  • docs/configure-plugins/model-pricing.mdx
  • crates/cli/src/commands/configure/editor.rs
  • docs/reference/migration-guides.mdx
  • crates/cli/README.md
  • docs/configure-plugins/plugin-configuration-files.mdx
  • integrations/coding-agents/README.md
  • crates/cli/tests/coverage/shared/plugins_tests.rs
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
  • crates/cli/src/diagnostics/mod.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/src/configuration/mod.rs
  • crates/core/src/plugin.rs
  • crates/cli/tests/coverage/shared/doctor_tests.rs
  • crates/cli/tests/coverage/shared/setup_tests.rs
crates/{core,adaptive}/**/*

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

If crates/core or crates/adaptive changed, run the full validation matrix across Rust, Python, Go, and Node.js.

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • crates/core/src/plugin.rs
**/*.{rs,py,go,js,ts}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

If a language surface changed, always run that language's test target even when Rust core did not change.

**/*.{rs,py,go,js,ts}: When observability configuration or lifecycle is exposed, keep FFI and Python, Go, and Node.js binding-native config objects and subscriber/exporter methods aligned in logical knobs and semantics.
Require every OpenTelemetry endpoint to have a type and nonblank destination; resolve header_env values at activation and reject missing, blank, or duplicate headers.
Concatenate layered ATOF sink, ATIF storage, and OpenTelemetry endpoint lists with higher-precedence entries first.
Preserve correct handling of mark events, start/end events, orphan cases, and span or trajectory fields derived from intended event data.
Run affected Rust tests and just test-rust when event fields change; run just test-python, just test-go, and just test-node when binding-native configuration or lifecycle changes.

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • crates/cli/src/commands/plugins/subcommands.rs
  • crates/cli/src/commands/configure/mod.rs
  • crates/cli/src/commands/model_pricing/mod.rs
  • crates/cli/src/commands/configure/editor.rs
  • crates/cli/tests/coverage/shared/plugins_tests.rs
  • crates/cli/src/diagnostics/mod.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/src/configuration/mod.rs
  • crates/core/src/plugin.rs
  • crates/cli/tests/coverage/shared/doctor_tests.rs
  • crates/cli/tests/coverage/shared/setup_tests.rs
**/*.{rs,py,js,ts,tsx,go,java,kt,swift}

📄 CodeRabbit inference engine (.agents/skills/add-middleware/SKILL.md)

Add tests covering registration and duplicate names, deregistration and missing names, priority ordering, callback failure policy, scope-local inheritance and cleanup, event payload semantics, immutable mark and scope fields, and parity across affected bindings.

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • crates/cli/src/commands/plugins/subcommands.rs
  • crates/cli/src/commands/configure/mod.rs
  • crates/cli/src/commands/model_pricing/mod.rs
  • crates/cli/src/commands/configure/editor.rs
  • crates/cli/tests/coverage/shared/plugins_tests.rs
  • crates/cli/src/diagnostics/mod.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/src/configuration/mod.rs
  • crates/core/src/plugin.rs
  • crates/cli/tests/coverage/shared/doctor_tests.rs
  • crates/cli/tests/coverage/shared/setup_tests.rs
**/*.{rs,py,js,jsx,ts,tsx,go,c,h,cc,cpp,md,toml,yml,yaml,sh}

📄 CodeRabbit inference engine (AGENTS.md)

Keep SPDX headers on source, documentation, scripts, and configuration files; the project is Apache-2.0.

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • crates/cli/src/commands/plugins/subcommands.rs
  • crates/cli/src/commands/configure/mod.rs
  • crates/cli/src/commands/model_pricing/mod.rs
  • crates/cli/src/commands/configure/editor.rs
  • crates/cli/README.md
  • integrations/coding-agents/README.md
  • crates/cli/tests/coverage/shared/plugins_tests.rs
  • crates/cli/src/diagnostics/mod.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/src/configuration/mod.rs
  • crates/core/src/plugin.rs
  • crates/cli/tests/coverage/shared/doctor_tests.rs
  • crates/cli/tests/coverage/shared/setup_tests.rs
**/*.{rs,py}

📄 CodeRabbit inference engine (AGENTS.md)

Use snake_case naming in Rust and Python.

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • crates/cli/src/commands/plugins/subcommands.rs
  • crates/cli/src/commands/configure/mod.rs
  • crates/cli/src/commands/model_pricing/mod.rs
  • crates/cli/src/commands/configure/editor.rs
  • crates/cli/tests/coverage/shared/plugins_tests.rs
  • crates/cli/src/diagnostics/mod.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/src/configuration/mod.rs
  • crates/core/src/plugin.rs
  • crates/cli/tests/coverage/shared/doctor_tests.rs
  • crates/cli/tests/coverage/shared/setup_tests.rs
crates/**/*.rs

📄 CodeRabbit inference engine (AGENTS.md)

crates/**/*.rs: Use Json = serde_json::Value in Rust-facing runtime APIs where existing code expects JSON payloads.
Treat Rust as the source of truth for runtime behavior; binding APIs should mirror Rust semantics unless a language-specific wrapper intentionally improves ergonomics.

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • crates/cli/src/commands/plugins/subcommands.rs
  • crates/cli/src/commands/configure/mod.rs
  • crates/cli/src/commands/model_pricing/mod.rs
  • crates/cli/src/commands/configure/editor.rs
  • crates/cli/tests/coverage/shared/plugins_tests.rs
  • crates/cli/src/diagnostics/mod.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/src/configuration/mod.rs
  • crates/core/src/plugin.rs
  • crates/cli/tests/coverage/shared/doctor_tests.rs
  • crates/cli/tests/coverage/shared/setup_tests.rs
**/*.{rs,py,js,mjs,ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Preserve the existing Tokio-based asynchronous model and callback/future lifetimes; do not unexpectedly block or hide async work in bindings.

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • crates/cli/src/commands/plugins/subcommands.rs
  • crates/cli/src/commands/configure/mod.rs
  • crates/cli/src/commands/model_pricing/mod.rs
  • crates/cli/src/commands/configure/editor.rs
  • crates/cli/tests/coverage/shared/plugins_tests.rs
  • crates/cli/src/diagnostics/mod.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/src/configuration/mod.rs
  • crates/core/src/plugin.rs
  • crates/cli/tests/coverage/shared/doctor_tests.rs
  • crates/cli/tests/coverage/shared/setup_tests.rs
**/*.{rs,py,go,js,jsx,ts,tsx,c,h}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

**/*.{rs,py,go,js,jsx,ts,tsx,c,h}: Run tests for every language affected by a change; changes to the core Rust crate require tests across all bindings.
Use SONAR_IGNORE_START / SONAR_IGNORE_END only for documented false positives, keep ignored blocks minimal, explain them with a comment, and obtain reviewer sign-off.
Preserve the layered architecture in which Rust provides the core runtime and C FFI, PyO3, and NAPI provide bindings that mirror the full API surface.

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • crates/cli/src/commands/plugins/subcommands.rs
  • crates/cli/src/commands/configure/mod.rs
  • crates/cli/src/commands/model_pricing/mod.rs
  • crates/cli/src/commands/configure/editor.rs
  • crates/cli/tests/coverage/shared/plugins_tests.rs
  • crates/cli/src/diagnostics/mod.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/src/configuration/mod.rs
  • crates/core/src/plugin.rs
  • crates/cli/tests/coverage/shared/doctor_tests.rs
  • crates/cli/tests/coverage/shared/setup_tests.rs
**/{test,tests}/**/*

📄 CodeRabbit inference engine (CONTRIBUTING.md)

When adding functionality, include tests in the appropriate test files for each affected language binding.

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • crates/cli/tests/coverage/shared/plugins_tests.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/tests/coverage/shared/doctor_tests.rs
  • crates/cli/tests/coverage/shared/setup_tests.rs
**/*.{rs,py,go,js,jsx,ts,tsx,c,h,html,md,mdx,toml}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Include the appropriate SPDX copyright and Apache-2.0 license header in every source file.

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • docs/nemo-relay-cli/basic-usage.mdx
  • crates/cli/src/commands/plugins/subcommands.rs
  • crates/cli/src/commands/configure/mod.rs
  • crates/cli/src/commands/model_pricing/mod.rs
  • docs/configure-plugins/model-pricing.mdx
  • crates/cli/src/commands/configure/editor.rs
  • docs/reference/migration-guides.mdx
  • crates/cli/README.md
  • docs/configure-plugins/plugin-configuration-files.mdx
  • integrations/coding-agents/README.md
  • crates/cli/tests/coverage/shared/plugins_tests.rs
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
  • crates/cli/src/diagnostics/mod.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/src/configuration/mod.rs
  • crates/core/src/plugin.rs
  • crates/cli/tests/coverage/shared/doctor_tests.rs
  • crates/cli/tests/coverage/shared/setup_tests.rs
crates/{core,adaptive}/**/*.rs

⚙️ CodeRabbit configuration file

crates/{core,adaptive}/**/*.rs: Review the Rust runtime for async correctness, scope isolation, middleware ordering, and event lifecycle regressions.
Pay close attention to task-local/thread-local scope propagation, callback lifetimes, stream finalization, and root_uuid isolation.
Public API changes should preserve existing behavior unless tests and docs show the intended migration path.

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • crates/core/src/plugin.rs
{crates/**/tests/**,python/tests/**,go/nemo_relay/**/*_test.go}

⚙️ CodeRabbit configuration file

{crates/**/tests/**,python/tests/**,go/nemo_relay/**/*_test.go}: Tests should cover the behavior promised by the changed API surface, including error paths and cross-request isolation where relevant.
Prefer assertions on lifecycle events, scope stacks, middleware ordering, and binding parity over shallow smoke tests.

Files:

  • crates/core/tests/unit/plugin_tests.rs
  • crates/cli/tests/coverage/shared/plugins_tests.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/tests/coverage/shared/doctor_tests.rs
  • crates/cli/tests/coverage/shared/setup_tests.rs
**/*.mdx

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

MDX top-of-file SPDX comments must use {/* ... */} delimiters instead of HTML comment delimiters (Must-Fix)

**/*.mdx: In MDX files, top-of-file comments must use JSX comment delimiters ({/* and */}); do not use HTML comments for MDX SPDX headers.
New or regenerated MDX files must use {/* ... */} for top-of-file SPDX comments.

Files:

  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/configure-plugins/model-pricing.mdx
  • docs/reference/migration-guides.mdx
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
{docs,examples}/**/*

📄 CodeRabbit inference engine (.agents/skills/rename-surfaces/SKILL.md)

Update docs and examples.

Files:

  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/configure-plugins/model-pricing.mdx
  • docs/reference/migration-guides.mdx
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
docs/**/*

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

If documentation examples or commands under docs/ change, run the targeted docs checks appropriate to the change.

Files:

  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/configure-plugins/model-pricing.mdx
  • docs/reference/migration-guides.mdx
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
**/*.{md,mdx}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

If links in documentation change, run just docs-linkcheck.

Use documented public APIs and stable wrapper commands in examples and user-facing documentation; do not rely on internal helpers.

**/*.{md,mdx}: Prefer the documented public API over internal shortcuts in documentation and examples.
Keep package names, repository references, and build commands current.
Contribution workflow documentation must require an issue before external contribution pull requests and note that NVIDIA contributors may use a GitHub or Linear issue.
Update entry-point documentation when examples or reading paths change.
Keep release-process and release-notes guidance in maintainer documentation such as RELEASING.md, rather than user-facing documentation pages or CHANGELOG.md.
Use stable user-facing wrappers at the scripts/ root in documentation and examples; reference namespaced helper paths only for internal maintenance documentation.
When detailed dynamic plugin guides exist, keep Rust native plugin examples, Python worker plugin examples, and grpc-v1 protocol details on separate pages.
Dynamic plugin manifests in documentation and examples should use compat.relay = ">=0.5,<1.0" unless deliberately narrower.
Render images, diagrams, tables, and other visual content at representative page widths, ensuring legibility and complete access without clipping; use responsive scaling, reflow, or overflow as appropriate and scope visual styling narrowly.
Dynamic plugin entry pages should link to native, worker, Rust example, Python example, and protocol pages when those pages exist.
Images, diagrams, tables, and custom visual content must remain legible and fully accessible at representative desktop and narrow page widths.
Release-policy documentation must point to GitHub Releases as the only release-history source of truth.
Run just docs when the documentation site changes; retain ./scripts/build-docs.sh html as the compatibility wrapper.

Files:

  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/configure-plugins/model-pricing.mdx
  • docs/reference/migration-guides.mdx
  • crates/cli/README.md
  • docs/configure-plugins/plugin-configuration-files.mdx
  • integrations/coding-agents/README.md
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
**/*.{md,mdx,py,go,js,ts}

📄 CodeRabbit inference engine (.agents/skills/maintain-observability/SKILL.md)

Examples and documentation must use each exporter's documented flush/deregister order before shutdown.

Files:

  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/configure-plugins/model-pricing.mdx
  • docs/reference/migration-guides.mdx
  • crates/cli/README.md
  • docs/configure-plugins/plugin-configuration-files.mdx
  • integrations/coding-agents/README.md
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
docs/**/*.{md,mdx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Update relevant reference documentation when public behavior or APIs change.

Files:

  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/configure-plugins/model-pricing.mdx
  • docs/reference/migration-guides.mdx
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
**/*.{md,mdx,rst}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-technical-docs.md)

**/*.{md,mdx,rst}: Use title case consistently for technical documentation headings and table headers; avoid quotation marks, ampersands, and exclamation marks in headings, while preserving official product, event, research, and whitepaper title case.
Format code elements, commands, parameters, package names, expressions, directories, file names, and paths in monospace; represent path placeholders with angle brackets inside monospace.
Format UI buttons, menus, fields, and labels in bold, and separate consecutive UI navigation labels with >.
Use quotation marks for error messages and strings when appropriate, italics for newly introduced terms and publication titles, and plain text for keyboard shortcuts.
Represent GitHub repositories with owner/repository link text, such as [NVIDIA/NeMo](link), rather than generic repository wording.
Introduce every code block with a complete sentence; do not let a code block complete or interrupt the grammar of surrounding prose; use syntax highlighting when supported.
Keep inline method, function, and class references consistent with nearby documentation; omit empty parentheses in prose when no call is shown.
Use descriptive link text matching the destination title when possible; avoid raw URLs, generic anchors, long-sentence links, and unnecessary links that distract from procedures.
Ensure lists have a complete lead-in sentence, more than one item, no more than two levels, parallel construction, one idea or action per item, and appropriate punctuation; use bullets for unordered items and numbers for ordered tasks.
Format definition lists with a bold term followed by a complete, parallel, punctuated definition.
Use tables for reference information, decision support, compatibility matrices, and comparable choices; flag one-row tables, missing captions or lead-ins, sentence-case headers where title case is expected, unexplained empty cells, and code or links that would be clearer as prose.
Write procedure steps as imperative ...

Files:

  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/configure-plugins/model-pricing.mdx
  • docs/reference/migration-guides.mdx
  • crates/cli/README.md
  • docs/configure-plugins/plugin-configuration-files.mdx
  • integrations/coding-agents/README.md
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}

⚙️ CodeRabbit configuration file

{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}: Review documentation for technical accuracy against the current API, command correctness, and consistency across language bindings.
Flag stale examples, missing SPDX headers where required, and instructions that no longer match CI or pre-commit behavior.

Files:

  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/configure-plugins/model-pricing.mdx
  • docs/reference/migration-guides.mdx
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
{crates/**/src/**/*.rs,python/**/*.py}

📄 CodeRabbit inference engine (.agents/skills/maintain-dynamic-plugins/SKILL.md)

Do not add tests under src; Rust tests belong in crate tests/ trees, and Python SDK tests belong under python/tests.

Files:

  • crates/cli/src/commands/plugins/subcommands.rs
  • crates/cli/src/commands/configure/mod.rs
  • crates/cli/src/commands/model_pricing/mod.rs
  • crates/cli/src/commands/configure/editor.rs
  • crates/cli/src/diagnostics/mod.rs
  • crates/cli/src/configuration/mod.rs
  • crates/core/src/plugin.rs
**/*.{md,rst,html,txt}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-brand-terminology.md)

**/*.{md,rst,html,txt}: Always spell NVIDIA in all caps. Do not use Nvidia, nvidia, nVidia, nVIDIA, or NV.
Use an NVIDIA before a noun because the name starts with an 'en' sound.
Do not add a registered trademark symbol after NVIDIA when referring to the company.
Use trademark symbols with product names only when the document type or legal guidance requires them.
Verify official capitalization, spacing, and hyphenation for product names.
Precede NVIDIA product names with NVIDIA on first mention when it is natural and accurate.
Do not rewrite product names for grammar or title-case rules.
Preserve third-party product names according to the owner's spelling.
Include the company name and full model qualifier on first use when it helps identify the model.
Preserve the official capitalization and punctuation of model names.
Use shorter family names only after the full name is established.
Spell out a term on first use and put the acronym in parentheses unless the acronym is widely understood by the intended audience.
Use the acronym on later mentions after it has been defined.
For long documents, reintroduce the full term if readers might lose context.
Form plurals of acronyms with s, not an apostrophe, such as GPUs.
In headings, common acronyms can remain abbreviated. Spell out the term in the first or second sentence of the body.
Common terms such as CPU, GPU, PC, API, and UI usually do not need to be spelled out for developer audiences.

Files:

  • crates/cli/README.md
  • integrations/coding-agents/README.md
**/*.{md,rst,html}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-brand-terminology.md)

Link the first mention of a product name when the destination helps the reader.

Files:

  • crates/cli/README.md
  • integrations/coding-agents/README.md
**/*.{md,rst,txt}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-guide.md)

Spell NVIDIA in all caps. Do not use Nvidia, nvidia, or NV.

Files:

  • crates/cli/README.md
  • integrations/coding-agents/README.md
**/*.{md,rst}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-guide.md)

**/*.{md,rst}: Format commands, code elements, expressions, package names, file names, and paths as inline code.
Use descriptive link text. Avoid raw URLs and weak anchors such as "here" or "read more."
Use title case consistently for technical documentation headings.
Introduce code blocks, lists, tables, and images with complete sentences.
Write procedures as imperative steps. Keep steps parallel and split long procedures into smaller tasks.
Prefer active voice, present tense, short sentences, contractions, and plain English.
Use can for possibility and reserve may for permission.
Use after for temporal relationships instead of once.
Prefer refer to over see when the wording points readers to another resource.
Avoid culture-specific idioms, unnecessary Latinisms, jokes, and marketing exaggeration in technical docs.
Spell out months in body text, avoid ordinal dates, and use clear time zones.
Spell out whole numbers from zero through nine unless they are technical values, parameters, versions, or UI values.
Use numerals for 10 or greater and include commas in thousands.
Do not add trademark symbols to learning-oriented docs unless the source, platform, or legal guidance explicitly requires them.

Files:

  • crates/cli/README.md
  • integrations/coding-agents/README.md
**/README.md

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Update the relevant crate or package README when that package surface changes.

Update relevant package or crate README.md files when examples or binding guidance changes.

Files:

  • crates/cli/README.md
  • integrations/coding-agents/README.md
**/{README.md,docs/index.md}

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

Update README.md or docs/index.md when documentation entry points change.

Files:

  • crates/cli/README.md
  • integrations/coding-agents/README.md
docs/integrate-into-frameworks/**/*.mdx

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

Update docs if activation or usage changes.

Files:

  • docs/integrate-into-frameworks/provider-response-codecs.mdx
🧠 Learnings (2)
📚 Learning: 2026-08-03T19:55:03.931Z
Learnt from: afourniernv
Repo: NVIDIA/NeMo-Relay PR: 558
File: crates/pii-redaction/src/rampart/mod.rs:265-274
Timestamp: 2026-08-03T19:55:03.931Z
Learning: In NeMo Relay first-party plugin registration helpers, treat the documented duplicate-registration `PluginError::RegistrationFailed` result from `register_plugin` as success when registration is intended to be idempotent. Do not locally reclassify this as `PluginError::Conflict`; changing the classification requires a core-wide review of the public API and FFI behavior.

Applied to files:

  • crates/core/tests/unit/plugin_tests.rs
  • crates/cli/src/commands/plugins/subcommands.rs
  • crates/cli/src/commands/configure/mod.rs
  • crates/cli/src/commands/model_pricing/mod.rs
  • crates/cli/src/commands/configure/editor.rs
  • crates/cli/tests/coverage/shared/plugins_tests.rs
  • crates/cli/src/diagnostics/mod.rs
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs
  • crates/cli/tests/coverage/shared/config_tests.rs
  • crates/cli/src/configuration/mod.rs
  • crates/core/src/plugin.rs
  • crates/cli/tests/coverage/shared/doctor_tests.rs
  • crates/cli/tests/coverage/shared/setup_tests.rs
📚 Learning: 2026-07-28T20:07:29.880Z
Learnt from: willkill07
Repo: NVIDIA/NeMo-Relay PR: 571
File: crates/core/src/api/runtime/state.rs:996-1020
Timestamp: 2026-07-28T20:07:29.880Z
Learning: In NeMo Relay (RELAY-509), sanitizer callback failures must be treated as intentional fail-open behavior. When an event/tool (request/response) or LLM (request/response) sanitizer callback fails, the sanitizer chain should retain and publish the last valid event/payload snapshot (rather than dropping/invalidating the data) and log the failure including callback context (e.g., which sanitizer/callback failed and relevant identifiers). Apply this consistently across all sanitizer chains mentioned in the RELAY-509 documentation/migration guide.

Applied to files:

  • crates/core/src/plugin.rs
🪛 LanguageTool
docs/configure-plugins/plugin-configuration-files.mdx

[style] ~291-~291: The double modal “requires elevated” is nonstandard (only accepted in certain dialects). Consider “to be elevated”.
Context: ...s.toml` on Windows and usually requires elevated filesystem permissions. The editor men...

(NEEDS_FIXED)

🔇 Additional comments (26)
crates/cli/src/commands/configure/editor.rs (1)

550-550: LGTM!

crates/cli/src/commands/configure/mod.rs (1)

47-47: LGTM!

crates/cli/src/commands/model_pricing/mod.rs (1)

42-44: LGTM!

Also applies to: 95-100

crates/cli/src/commands/plugins/subcommands.rs (1)

78-80: LGTM!

Also applies to: 153-156

crates/cli/src/configuration/mod.rs (2)

1132-1132: LGTM!

Also applies to: 1147-1151


1076-1084: 🗄️ Data Integrity & Integration

Inspect the shared loader’s precedence semantics.

config_paths returns the explicit or user path before the system path. This is safe only if later paths override earlier paths. If earlier paths take precedence, user or explicit configuration can override system policy. Add conflicting-value tests for both combinations.

crates/cli/src/diagnostics/mod.rs (2)

172-190: LGTM!


166-171: 🎯 Functional Correctness

Confirm the home argument contract. If home is an override, resolve global_path from that context instead of the process environment. Add a test with XDG_CONFIG_HOME set.

crates/core/src/plugin.rs (1)

2050-2073: 📐 Maintainability & Code Quality

Run the required validation before handoff.

The validation suite is still pending. Run formatting, linting, Rust tests, validate-change, all binding tests, and the full pre-commit pass.

crates/cli/tests/coverage/shared/config_tests.rs (1)

51-80: LGTM!

Also applies to: 91-111, 120-120, 137-160, 169-170, 201-202, 299-299, 308-330, 669-710, 1101-1127, 1136-1155, 1185-1197, 1228-1237, 2700-2700, 2898-2901

crates/cli/tests/coverage/shared/doctor_tests.rs (1)

50-50: LGTM!

Also applies to: 60-68, 149-161, 216-216, 376-376, 408-408, 650-659, 941-941

crates/cli/tests/coverage/shared/plugins_tests.rs (2)

5-5: LGTM!

Also applies to: 159-160, 3091-3091


1921-1948: 🔒 Security & Privacy


crates/cli/tests/coverage/shared/setup_tests.rs (1)

115-115: LGTM!

Also applies to: 128-128, 141-142, 156-174, 184-188, 204-207, 235-258, 267-268, 290-290, 306-315, 333-334, 354-355, 371-378, 393-468, 483-513, 530-530

crates/core/tests/unit/plugin_tests.rs (2)

2645-2656: LGTM!

Also applies to: 2658-2669


2645-2669: 📐 Maintainability & Code Quality

Run the required validation before handoff.

The supplied context does not include validation results. Run the checks required for each changed path.

  • crates/core/tests/unit/plugin_tests.rs#L2645-L2669: Run validate-change, cargo fmt --all, cargo clippy --workspace --all-targets -- -D warnings, just test-rust, just test-python, just test-go, just test-node, and uv run pre-commit run --all-files.
  • crates/cli/tests/coverage/commands/configure_editor_tests.rs#L202-L241: Run cargo fmt --all, cargo clippy --workspace --all-targets -- -D warnings, just test-rust, and uv run pre-commit run --all-files.
  • docs/configure-plugins/model-pricing.mdx#L76-L80: Run just docs and uv run pre-commit run --all-files.

As per coding guidelines, run the required language-specific and documentation validation before handoff.

Source: Coding guidelines

crates/cli/tests/coverage/commands/configure_editor_tests.rs (2)

202-205: LGTM!

Also applies to: 208-217


234-241: 🗄️ Data Integrity & Integration

Confirm global atomic-write failure coverage.

If no test covers a failed TargetScope::Global write, add fail_next_atomic_write and assert that global_path remains unchanged.

docs/nemo-relay-cli/basic-usage.mdx (3)

355-360: Remove the remaining project pricing-layer reference.

The updated examples use --user and --global, but Line 375 still lists project pricing files. Replace that term with the supported explicit, user, and system layers.

This is the same stale project-configuration guidance identified in the previous review.


147-159: LGTM!

Also applies to: 165-178, 189-215


160-164: 🎯 Functional Correctness

Determine the setup target for explicit --config. Confirm whether nemo-relay --config path/to/config.toml config writes the explicit base file. Document the target, or document the intentional difference if setup writes the XDG user configuration instead.

crates/cli/README.md (1)

166-173: LGTM!

Also applies to: 185-186

docs/configure-plugins/plugin-configuration-files.mdx (1)

221-221: LGTM!

Also applies to: 230-230, 242-249, 277-292

docs/integrate-into-frameworks/provider-response-codecs.mdx (1)

114-116: LGTM!

Also applies to: 152-153, 220-223

docs/reference/migration-guides.mdx (1)

16-49: LGTM!

integrations/coding-agents/README.md (1)

198-201: LGTM!

Also applies to: 212-212

Signed-off-by: Will Killian <wkillian@nvidia.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@README.md`:
- Around line 114-116: Update the configuration path placeholders to use angle
brackets inside monospace: change the explicit configuration example in
README.md lines 114-116, the resume command in
docs/nemo-relay-cli/basic-usage.mdx line 177, and the repository configuration
command in docs/nemo-relay-cli/codex.mdx lines 174-177 to use
<path/to/config.toml>.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 2e8b9c9f-0467-4990-a04d-3a357f634d5d

📥 Commits

Reviewing files that changed from the base of the PR and between e5c604f and 495e0e6.

📒 Files selected for processing (7)
  • README.md
  • docs/configure-plugins/model-pricing.mdx
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/nemo-relay-cli/codex.mdx
  • go/nemo_relay/plugin_activation_test.go
📜 Review details
⏰ Context from checks skipped due to timeout. (3)
  • GitHub Check: Apply PR labels
  • GitHub Check: Check / Run
  • GitHub Check: Preview docs
🧰 Additional context used
📓 Path-based instructions (32)
**/*.mdx

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

MDX top-of-file SPDX comments must use {/* ... */} delimiters instead of HTML comment delimiters (Must-Fix)

**/*.mdx: In MDX files, top-of-file comments must use JSX comment delimiters ({/* and */}); do not use HTML comments for MDX SPDX headers.
New or regenerated MDX files must use {/* ... */} for top-of-file SPDX comments.

Files:

  • docs/configure-plugins/model-pricing.mdx
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/nemo-relay-cli/codex.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
{docs,examples}/**/*

📄 CodeRabbit inference engine (.agents/skills/rename-surfaces/SKILL.md)

Update docs and examples.

Files:

  • docs/configure-plugins/model-pricing.mdx
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/nemo-relay-cli/codex.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
**/*

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

**/*: Format changed files with the language-native formatter before the final lint/test pass.
If dynamic plugin behavior changed, use maintain-dynamic-plugins and include the native SDK, worker protocol, Python SDK, docs, packaging, and Codecov surfaces in the validation plan.
If code changes alter APIs, bindings, commands, paths, packaging behavior, observability/adaptive semantics, or documented best practices, update any dependent maintainer or consumer skills in the same branch.
During iteration, prefer uv run pre-commit run --files <changed files...>.
Before review or handoff, run uv run pre-commit run --all-files.

**/*: Use release tags in raw Rust-compatible SemVer without a leading v; tags such as v0.1.0 are prohibited.
Use branch prefixes feat/, fix/, docs/, test/, or refactor/ according to the change purpose.
Every commit in a pull request must include a DCO Signed-off-by: sign-off.
Before submitting a pull request, ensure pre-commit hooks, relevant tests, target-specific builds, documentation updates, and a rebase on the latest main are complete.
Use commit messages in the form type: short description, with a valid type and a first line under 72 characters.

Files:

  • docs/configure-plugins/model-pricing.mdx
  • README.md
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/nemo-relay-cli/codex.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
  • go/nemo_relay/plugin_activation_test.go
  • docs/nemo-relay-cli/basic-usage.mdx
docs/**/*

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

If documentation examples or commands under docs/ change, run the targeted docs checks appropriate to the change.

Files:

  • docs/configure-plugins/model-pricing.mdx
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/nemo-relay-cli/codex.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
**/*.{md,mdx}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

If links in documentation change, run just docs-linkcheck.

Use documented public APIs and stable wrapper commands in examples and user-facing documentation; do not rely on internal helpers.

**/*.{md,mdx}: Prefer the documented public API over internal shortcuts in documentation and examples.
Keep package names, repository references, and build commands current.
Contribution workflow documentation must require an issue before external contribution pull requests and note that NVIDIA contributors may use a GitHub or Linear issue.
Update entry-point documentation when examples or reading paths change.
Keep release-process and release-notes guidance in maintainer documentation such as RELEASING.md, rather than user-facing documentation pages or CHANGELOG.md.
Use stable user-facing wrappers at the scripts/ root in documentation and examples; reference namespaced helper paths only for internal maintenance documentation.
When detailed dynamic plugin guides exist, keep Rust native plugin examples, Python worker plugin examples, and grpc-v1 protocol details on separate pages.
Dynamic plugin manifests in documentation and examples should use compat.relay = ">=0.5,<1.0" unless deliberately narrower.
Render images, diagrams, tables, and other visual content at representative page widths, ensuring legibility and complete access without clipping; use responsive scaling, reflow, or overflow as appropriate and scope visual styling narrowly.
Dynamic plugin entry pages should link to native, worker, Rust example, Python example, and protocol pages when those pages exist.
Images, diagrams, tables, and custom visual content must remain legible and fully accessible at representative desktop and narrow page widths.
Release-policy documentation must point to GitHub Releases as the only release-history source of truth.
Run just docs when the documentation site changes; retain ./scripts/build-docs.sh html as the compatibility wrapper.

Files:

  • docs/configure-plugins/model-pricing.mdx
  • README.md
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/nemo-relay-cli/codex.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
**/*.{md,mdx,py,go,js,ts}

📄 CodeRabbit inference engine (.agents/skills/maintain-observability/SKILL.md)

Examples and documentation must use each exporter's documented flush/deregister order before shutdown.

Files:

  • docs/configure-plugins/model-pricing.mdx
  • README.md
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/nemo-relay-cli/codex.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
  • go/nemo_relay/plugin_activation_test.go
  • docs/nemo-relay-cli/basic-usage.mdx
docs/**/*.{md,mdx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Update relevant reference documentation when public behavior or APIs change.

Files:

  • docs/configure-plugins/model-pricing.mdx
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/nemo-relay-cli/codex.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
**/*.{rs,py,go,js,jsx,ts,tsx,c,h,html,md,mdx,toml}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Include the appropriate SPDX copyright and Apache-2.0 license header in every source file.

Files:

  • docs/configure-plugins/model-pricing.mdx
  • README.md
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/nemo-relay-cli/codex.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
  • go/nemo_relay/plugin_activation_test.go
  • docs/nemo-relay-cli/basic-usage.mdx
**/*.{md,mdx,rst}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-technical-docs.md)

**/*.{md,mdx,rst}: Use title case consistently for technical documentation headings and table headers; avoid quotation marks, ampersands, and exclamation marks in headings, while preserving official product, event, research, and whitepaper title case.
Format code elements, commands, parameters, package names, expressions, directories, file names, and paths in monospace; represent path placeholders with angle brackets inside monospace.
Format UI buttons, menus, fields, and labels in bold, and separate consecutive UI navigation labels with >.
Use quotation marks for error messages and strings when appropriate, italics for newly introduced terms and publication titles, and plain text for keyboard shortcuts.
Represent GitHub repositories with owner/repository link text, such as [NVIDIA/NeMo](link), rather than generic repository wording.
Introduce every code block with a complete sentence; do not let a code block complete or interrupt the grammar of surrounding prose; use syntax highlighting when supported.
Keep inline method, function, and class references consistent with nearby documentation; omit empty parentheses in prose when no call is shown.
Use descriptive link text matching the destination title when possible; avoid raw URLs, generic anchors, long-sentence links, and unnecessary links that distract from procedures.
Ensure lists have a complete lead-in sentence, more than one item, no more than two levels, parallel construction, one idea or action per item, and appropriate punctuation; use bullets for unordered items and numbers for ordered tasks.
Format definition lists with a bold term followed by a complete, parallel, punctuated definition.
Use tables for reference information, decision support, compatibility matrices, and comparable choices; flag one-row tables, missing captions or lead-ins, sentence-case headers where title case is expected, unexplained empty cells, and code or links that would be clearer as prose.
Write procedure steps as imperative ...

Files:

  • docs/configure-plugins/model-pricing.mdx
  • README.md
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/nemo-relay-cli/codex.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}

⚙️ CodeRabbit configuration file

{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}: Review documentation for technical accuracy against the current API, command correctness, and consistency across language bindings.
Flag stale examples, missing SPDX headers where required, and instructions that no longer match CI or pre-commit behavior.

Files:

  • docs/configure-plugins/model-pricing.mdx
  • README.md
  • docs/configure-plugins/plugin-configuration-files.mdx
  • docs/nemo-relay-cli/codex.mdx
  • docs/integrate-into-frameworks/provider-response-codecs.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
**/*.{md,rst,html,txt}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-brand-terminology.md)

**/*.{md,rst,html,txt}: Always spell NVIDIA in all caps. Do not use Nvidia, nvidia, nVidia, nVIDIA, or NV.
Use an NVIDIA before a noun because the name starts with an 'en' sound.
Do not add a registered trademark symbol after NVIDIA when referring to the company.
Use trademark symbols with product names only when the document type or legal guidance requires them.
Verify official capitalization, spacing, and hyphenation for product names.
Precede NVIDIA product names with NVIDIA on first mention when it is natural and accurate.
Do not rewrite product names for grammar or title-case rules.
Preserve third-party product names according to the owner's spelling.
Include the company name and full model qualifier on first use when it helps identify the model.
Preserve the official capitalization and punctuation of model names.
Use shorter family names only after the full name is established.
Spell out a term on first use and put the acronym in parentheses unless the acronym is widely understood by the intended audience.
Use the acronym on later mentions after it has been defined.
For long documents, reintroduce the full term if readers might lose context.
Form plurals of acronyms with s, not an apostrophe, such as GPUs.
In headings, common acronyms can remain abbreviated. Spell out the term in the first or second sentence of the body.
Common terms such as CPU, GPU, PC, API, and UI usually do not need to be spelled out for developer audiences.

Files:

  • README.md
**/*.{md,rst,html}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-brand-terminology.md)

Link the first mention of a product name when the destination helps the reader.

Files:

  • README.md
**/*.{md,rst,txt}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-guide.md)

Spell NVIDIA in all caps. Do not use Nvidia, nvidia, or NV.

Files:

  • README.md
**/*.{md,rst}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-guide.md)

**/*.{md,rst}: Format commands, code elements, expressions, package names, file names, and paths as inline code.
Use descriptive link text. Avoid raw URLs and weak anchors such as "here" or "read more."
Use title case consistently for technical documentation headings.
Introduce code blocks, lists, tables, and images with complete sentences.
Write procedures as imperative steps. Keep steps parallel and split long procedures into smaller tasks.
Prefer active voice, present tense, short sentences, contractions, and plain English.
Use can for possibility and reserve may for permission.
Use after for temporal relationships instead of once.
Prefer refer to over see when the wording points readers to another resource.
Avoid culture-specific idioms, unnecessary Latinisms, jokes, and marketing exaggeration in technical docs.
Spell out months in body text, avoid ordinal dates, and use clear time zones.
Spell out whole numbers from zero through nine unless they are technical values, parameters, versions, or UI values.
Use numerals for 10 or greater and include commas in thousands.
Do not add trademark symbols to learning-oriented docs unless the source, platform, or legal guidance explicitly requires them.

Files:

  • README.md
{docs/**/*.md,README.md}

📄 CodeRabbit inference engine (.agents/skills/add-binding-feature/SKILL.md)

Update reference docs, language-binding docs, READMEs, and example documentation when the public surface or expected usage changes.

Files:

  • README.md
README.md

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

If documentation examples or commands in README.md change, run the targeted docs checks appropriate to the change.

Keep README.md synchronized with current workspace members and top-level documentation.

Files:

  • README.md
**/*.{rs,py,js,jsx,ts,tsx,go,c,h,cc,cpp,md,toml,yml,yaml,sh}

📄 CodeRabbit inference engine (AGENTS.md)

Keep SPDX headers on source, documentation, scripts, and configuration files; the project is Apache-2.0.

Files:

  • README.md
  • go/nemo_relay/plugin_activation_test.go
**/README.md

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Update the relevant crate or package README when that package surface changes.

Update relevant package or crate README.md files when examples or binding guidance changes.

Files:

  • README.md
**/{README.md,docs/index.md}

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

Update README.md or docs/index.md when documentation entry points change.

Files:

  • README.md
{README.md,docs/**/*.md,fern/**/*}

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

Update current-version installation commands, package examples, and configuration examples from the old version to <next-version> where appropriate; leave intentional historical references, generated build output, and third-party attribution entries unchanged.

Files:

  • README.md
docs/integrate-into-frameworks/**/*.mdx

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

Update docs if activation or usage changes.

Files:

  • docs/integrate-into-frameworks/provider-response-codecs.mdx
go/nemo_relay/**/*.go

📄 CodeRabbit inference engine (.agents/skills/test-go-binding/SKILL.md)

go/nemo_relay/**/*.go: Format changed Go packages with cd go/nemo_relay && go fmt ./...
Run Go tests with just test-go to build and test the NeMo Relay Go binding
Use just build-go when you want an explicit build-only pass or need the artifact for other work
Use just ci=true test-go when you need the CI-style coverage and JUnit path
On macOS, set DYLD_LIBRARY_PATH to the ../../target/release directory before running the raw go test command directly

Files:

  • go/nemo_relay/plugin_activation_test.go
{crates/python/src/py_api/mod.rs,python/nemo_relay/**/*.py,python/nemo_relay/**/*.pyi,go/nemo_relay/**/*.go,crates/node/src/api/**/*.rs}

📄 CodeRabbit inference engine (.agents/skills/add-binding-feature/SKILL.md)

Update the language-native bindings for every exposed surface in Python, Go, and Node.js.

Files:

  • go/nemo_relay/plugin_activation_test.go
{python/nemo_relay/**/*.py,python/nemo_relay/**/*.pyi,go/nemo_relay/**/*.go}

📄 CodeRabbit inference engine (.agents/skills/add-binding-feature/SKILL.md)

Update language wrapper helpers such as Python wrapper modules, Python type stubs, and Go shorthand packages when the new behavior belongs in those helper layers.

Files:

  • go/nemo_relay/plugin_activation_test.go
go/nemo_relay/**

📄 CodeRabbit inference engine (.agents/skills/maintain-optimizer/SKILL.md)

Keep shared plugin helpers in go/nemo_relay aligned with plugin registration, composition, and lifecycle behavior.

Files:

  • go/nemo_relay/plugin_activation_test.go
**/*.{rs,py,go,js,ts}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

If a language surface changed, always run that language's test target even when Rust core did not change.

**/*.{rs,py,go,js,ts}: When observability configuration or lifecycle is exposed, keep FFI and Python, Go, and Node.js binding-native config objects and subscriber/exporter methods aligned in logical knobs and semantics.
Require every OpenTelemetry endpoint to have a type and nonblank destination; resolve header_env values at activation and reject missing, blank, or duplicate headers.
Concatenate layered ATOF sink, ATIF storage, and OpenTelemetry endpoint lists with higher-precedence entries first.
Preserve correct handling of mark events, start/end events, orphan cases, and span or trajectory fields derived from intended event data.
Run affected Rust tests and just test-rust when event fields change; run just test-python, just test-go, and just test-node when binding-native configuration or lifecycle changes.

Files:

  • go/nemo_relay/plugin_activation_test.go
**/*.{rs,py,js,ts,tsx,go,java,kt,swift}

📄 CodeRabbit inference engine (.agents/skills/add-middleware/SKILL.md)

Add tests covering registration and duplicate names, deregistration and missing names, priority ordering, callback failure policy, scope-local inheritance and cleanup, event payload semantics, immutable mark and scope fields, and parity across affected bindings.

Files:

  • go/nemo_relay/plugin_activation_test.go
go/**/*.go

📄 CodeRabbit inference engine (AGENTS.md)

Use PascalCase for public Go APIs.

Files:

  • go/nemo_relay/plugin_activation_test.go
**/*.go

📄 CodeRabbit inference engine (CONTRIBUTING.md)

**/*.go: Format Go code with gofmt.
Run go vet ./... for Go static analysis.
Use Go PascalCase naming conventions.

Files:

  • go/nemo_relay/plugin_activation_test.go
**/*.{rs,py,go,js,jsx,ts,tsx,c,h}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

**/*.{rs,py,go,js,jsx,ts,tsx,c,h}: Run tests for every language affected by a change; changes to the core Rust crate require tests across all bindings.
Use SONAR_IGNORE_START / SONAR_IGNORE_END only for documented false positives, keep ignored blocks minimal, explain them with a comment, and obtain reviewer sign-off.
Preserve the layered architecture in which Rust provides the core runtime and C FFI, PyO3, and NAPI provide bindings that mirror the full API surface.

Files:

  • go/nemo_relay/plugin_activation_test.go
go/nemo_relay/**/*

⚙️ CodeRabbit configuration file

go/nemo_relay/**/*: Review Go binding changes for cgo memory ownership, race safety, callback cleanup, idiomatic exported APIs, and parity with Rust/FFI behavior.
Any API change should include focused Go tests and consider race-test behavior.

Files:

  • go/nemo_relay/plugin_activation_test.go
{crates/**/tests/**,python/tests/**,go/nemo_relay/**/*_test.go}

⚙️ CodeRabbit configuration file

{crates/**/tests/**,python/tests/**,go/nemo_relay/**/*_test.go}: Tests should cover the behavior promised by the changed API surface, including error paths and cross-request isolation where relevant.
Prefer assertions on lifecycle events, scope stacks, middleware ordering, and binding parity over shallow smoke tests.

Files:

  • go/nemo_relay/plugin_activation_test.go
🧠 Learnings (1)
📚 Learning: 2026-07-28T20:33:25.156Z
Learnt from: willkill07
Repo: NVIDIA/NeMo-Relay PR: 572
File: go/nemo_relay/adaptive_runtime_test.go:214-238
Timestamp: 2026-07-28T20:33:25.156Z
Learning: When adding/adjusting Go unit tests for `BuildCacheRequestFacts` (request-ID validation and related request parsing), set `CacheRequestFactsInput.Provider` to a valid provider in all tests that are intended to isolate request-ID behavior—because `BuildCacheRequestFacts` does not validate `Provider`. Then add separate test coverage for malformed `AnnotatedRequest` JSON so JSON parsing failures are not conflated with `Provider`-related inputs.

Applied to files:

  • go/nemo_relay/plugin_activation_test.go
🔇 Additional comments (7)
docs/configure-plugins/plugin-configuration-files.mdx (2)

227-230: 📐 Maintainability & Code Quality

Verify that --plugin-config-path is a public CLI option.

If this option remains hidden, remove it from this user-facing page. Document --config <path/to/config.toml> as the supported explicit configuration path instead. The prior review records that --plugin-config-path was hidden.

As per coding guidelines, user-facing documentation must use documented public APIs and stable wrapper commands.

#!/bin/bash
set -euo pipefail

rg -n -C 5 -- '--plugin-config-path|hide\s*=' crates/cli/src/commands/serve.rs

Source: Coding guidelines


242-249: LGTM!

Also applies to: 374-374, 393-401, 439-439

docs/configure-plugins/model-pricing.mdx (1)

71-81: LGTM!

docs/integrate-into-frameworks/provider-response-codecs.mdx (1)

87-97: LGTM!

Also applies to: 138-145

docs/nemo-relay-cli/basic-usage.mdx (1)

354-364: LGTM!

Also applies to: 377-377

go/nemo_relay/plugin_activation_test.go (2)

624-668: 📐 Maintainability & Code Quality

Run the required Go validation.

Before merge, run cd go/nemo_relay && go fmt ./..., go vet ./..., and just test-go. Include race-test review because this test changes native plugin activation coverage.

As per coding guidelines, Go changes require formatting, go vet ./..., and affected-language tests. As per path instructions, Go binding changes must use just test-go and consider race behavior.

Sources: Coding guidelines, Path instructions


670-752: LGTM!

Comment thread README.md
@willkill07

Copy link
Copy Markdown
Member Author

/merge

@rapids-bot
rapids-bot Bot merged commit faf6e2c into NVIDIA:main Aug 5, 2026
86 of 87 checks passed
@willkill07
willkill07 deleted the wkk_relay-667-remove-project-config-layering branch August 8, 2026 17:03
rapids-bot Bot pushed a commit that referenced this pull request Aug 13, 2026
#### Overview

Recasts GitHub PR #739 onto a direct `NVIDIA/NeMo-Relay` branch so the updated NVSkills/NVCARPS pull request workflow can run. The content updates the public NeMo Relay user skills for the RELAY-669 follow-up to RELAY-667: get-started guidance now treats repository-local Relay config files as unsupported active configuration while preserving local ATOF and ATIF output artifacts, and the NeMo Flow migration helper reports legacy project-local configuration for manual migration instead of converting it into unsupported Relay project configuration.

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

#### Details

- Added a get-started guardrail that prevents agents from creating, editing, merging, or trusting repository-local `.nemo-relay/config.toml` and `.nemo-relay/plugins.toml`.
- Updated the CLI try-now reference and affected get-started evals to use supported user or explicit configuration only, and to distinguish `.nemo-relay/atof` and `.nemo-relay/atif` output directories from configuration layers.
- Updated the NeMo Flow migration skill guidance and helper so legacy `.nemo-flow/config.toml` and `.nemo-flow/plugins.toml` are left unchanged and reported as manual migration items.
- Added a migration eval covering repositories with legacy project-local NeMo Flow configuration.
- Replayed the final GitHub PR #739 file state onto current `upstream/main` as one signed-off commit on `skills/relay-669-user-skills`.

Validation:

- `python3 -m py_compile skills/nemo-relay-migrate-from-flow/scripts/migrate_from_nemo_flow.py`
- `python3` JSON parse for affected eval files
- Migration helper dry-run fixture for legacy project config
- Migration helper write-mode fixture for legacy project config plus unrelated source/path migration
- `.venv/bin/ruff check skills/nemo-relay-migrate-from-flow/scripts/migrate_from_nemo_flow.py`
- `.venv/bin/ty check skills/nemo-relay-migrate-from-flow/scripts/migrate_from_nemo_flow.py`
- `.venv/bin/pre-commit run --files skills/nemo-relay-get-started/SKILL.md skills/nemo-relay-get-started/evals/evals.json skills/nemo-relay-get-started/references/cli-try-now.md skills/nemo-relay-migrate-from-flow/SKILL.md skills/nemo-relay-migrate-from-flow/evals/evals.json skills/nemo-relay-migrate-from-flow/scripts/migrate_from_nemo_flow.py`
- `git diff --check`

Known follow-up: `skill-card.md`, `BENCHMARK.md`, and `skill.oms.sig` were not refreshed locally; those should be refreshed through the normal NVSkills publication workflow.

#### Where should the reviewer start?

Start with `skills/nemo-relay-migrate-from-flow/scripts/migrate_from_nemo_flow.py`, especially the legacy project configuration detection and blocked path rename logic. Then review `skills/nemo-relay-get-started/references/cli-try-now.md` for the user-facing configuration guidance.

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

- Relates to: RELAY-669
- Relates to: #720
- Relates to: #739


## Summary by CodeRabbit

* **New Features**
  * Added safeguards for legacy project-local configuration during NeMo Flow migrations.
  * Migration previews now identify protected files and provide manual migration guidance.
  * Secure checks prevent protected files from changing unexpectedly.

* **Bug Fixes**
  * Clarified that repository-local Relay configuration is unsupported and must not be used or modified.
  * Improved validation and troubleshooting guidance for supported configuration and output files.
  * Added coverage for safe migration when legacy project configuration is present.

* **Documentation**
  * Updated onboarding, migration, evaluation, benchmark, and verification materials.

Authors:
  - Allan (https://github.com/exactlyallan)
  - https://github.com/svc-nvskills-signing

Approvers:
  - Will Killian (https://github.com/willkill07)

URL: #774
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking PR introduces a breaking change Feature a new feature lang:go PR changes/introduces Go code lang:js PR changes/introduces Javascript/Typescript code 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