maintain-dynamic-plugins

द्वारा nvidia

NeMo Relay डायनामिक प्लगइन लोडर, मैनिफेस्ट, रस्ट नेटिव SDK, gRPC वर्कर प्रोटोकॉल, पायथन वर्कर SDK, दस्तावेज़, परीक्षण और रिलीज़ वर्कफ़्लो कवरेज बनाए रखें

npx skills add https://github.com/nvidia/nemo-relay --skill maintain-dynamic-plugins

Maintain Dynamic Plugins

Use this skill for plugin.kind = "rust_dynamic", plugin.kind = "worker", nemo-relay-plugin, nemo-relay-worker, nemo-relay-worker-proto, nemo-relay-types, and the Python nemo-relay-plugin package.

Rules

  • Keep the stable boundary explicit: native plugins cross a C ABI; worker plugins cross nvidia.nemo.relay.worker.v1 (contract 1.0.0).
  • Use the frozen bootstrap and complete contract schema before constructing xabi interface objects. Transfer typed values through the ownership adapters, including nested owners and rollback on decode failure. Use async-ffi futures and wakers across libraries; ordinary Rust values and Tokio objects stay local. Create foreign futures at invocation time so unpolled drops release captured guards. Keep scope restoration leases on their entering thread.
  • Poll typed native middleware directly on the caller, restoring Relay scope and optional SDK Tokio context for every poll and drop. Inline is the SDK default and allocates no plugin runtime. Tokio-enabled components share a library-local runtime and must agree on its worker count. Use ctx.spawn or ctx.task_spawner() for component-owned background work; keep subscribers synchronous and preserve raw synchronous ABI registrations.
  • Define closed worker transport structures in protobuf when generated clients must enforce their fields. Keep open application payloads lossless by using JsonValue or JsonObject rather than google.protobuf.Value.
  • Keep relay-plugin.toml dynamic records separate from generic runtime components. Enabled records can create internal component specs. Disabled records remain available for inspection but do not load.
  • Require worker manifests to declare the protocol identity and a compat.relay range. The worker SDK uses >=1.0.0,<2.0.
  • Treat compat.relay as the plugin author's supported release range. Verify binary layouts or worker handshake independently.
  • The worker protocol is nvidia.nemo.relay.worker.v1, contract version 1.0.0. Native plugins use checked contract v1.0. Freeze published module types and bootstrap layouts. Add minor contracts through versioned modules; plugins require at least the native minor of their build SDK. Breaking layouts or dependency ABI generations require a native major change, independently of Relay's release version. A breaking worker contract needs a new protocol identity.
  • Keep the native contract source in crates/plugin-abi/src/contract.rs. The interface package follows the workspace release version. Its build script derives SDK constants and checked layout metadata from the explicit contract, not the package release. Keep published bootstrap and module version strings fixed. Validate cross-package-version fixtures when changing this mechanism.
  • Do not add tests under src; Rust tests belong in crate tests/ trees and Python SDK tests belong under python/tests.
  • Native and worker plugins are trusted extensions. Document that native plugins are in-process and unsandboxed; worker plugins provide process isolation but not a security sandbox.

Checklist

  • Manifest validation covers kind, compatibility, load contract, integrity, capability mismatch, and disabled-plugin behavior.
  • Native libraries and staged dependencies remain resident until process exit. Component close removes registrations, revokes capabilities, cancels and drains tasks, and releases its runtime lease; the last lease stops the shared runtime. Incomplete cleanup retains ownership for retry.
  • Worker activation covers process launch, token auth, handshake, validation, declarative registration, proxy rollback, cancellation, and shutdown.
  • Rust and Python SDKs expose every supported registration surface.
  • Runtime helpers cover marks, scopes, continuations, and isolated scope stacks.
  • plugins list, plugins inspect, and plugins validate report lifecycle and compatibility status without leaking secret config.
  • Top-level doctor reports resolved dynamic plugin and host configuration status.
  • When detailed dynamic plugin guides exist, they keep Rust native, Python worker, and nvidia.nemo.relay.worker.v1 protocol details on separate pages.
  • justfile, Codecov, and CI package/test workflows include new plugin crates and packages.

Validation

Choose checks by the changed layer:

  • Manifest or shared types: test the owning Rust crate.
  • Native loader or ABI: prepare plugin fixtures and run the focused native plugin integration test. For ABI changes, also run just build-native-abi-test-fixtures and cargo nextest run --locked -p nemo-relay-plugin-abi --test binary_compatibility. Native integration fixtures do not prepare the independent ABI workspaces.
  • Worker protocol or host: test the worker crates and regenerate or test the Python worker SDK only when its protocol surface changes.
  • Shared runtime behavior: run the Rust suite and only binding suites whose observable plugin behavior changes.
  • Documentation or packaging: run their targeted checks only when changed.

Canonical surface suites prepare plugin fixtures. Before a raw focused native or worker integration test, run just build-test-plugin-fixtures; never compile fixtures inside an individual test case.

References

  • crates/plugin-host/src/dynamic/
  • crates/plugin
  • crates/worker
  • crates/worker-proto
  • crates/types
  • python/plugin
  • examples/rust-native-plugin
  • docs/build-plugins
  • examples/python-grpc-worker-plugin

nvidia की और Skills

accelerated-computing-cudf
nvidia
NVIDIA द्वारा आधिकारिक रूप से लिखित मार्गदर्शन NVIDIA cuDF GPU DataFrames, pandas त्वरण, dask-cuDF, ETL, जॉइन, ग्रुपबाय, CSV/Parquet I/O, नल करने योग्य शब्दार्थ, और…
accessibility
nvidia
स्थैतिक विश्लेषण, रनटाइम परीक्षण, ARIA पैटर्न, कीबोर्ड नेविगेशन और रंग कंट्रास्ट में एकीकृत एक्सेसिबिलिटी ऑडिटिंग वर्कफ़्लो। इस स्किल का उपयोग करें…
accessing-mlflow
nvidia
MLflow में संग्रहीत मूल्यांकन परिणामों को क्वेरी करें और ब्राउज़ करें। इसका उपयोग तब करें जब उपयोगकर्ता इनवोकेशन आईडी द्वारा रन खोजना चाहता है, मॉडलों के बीच मीट्रिक्स की तुलना करना चाहता है, आर्टिफैक्ट्स प्राप्त करना चाहता है…
add-binding-feature
nvidia
कोर रनटाइम और प्रभावित हर बाइंडिंग में एक सार्वजनिक NeMo Relay API सतह जोड़ें या बदलें।
add-middleware
nvidia
NeMo Relay मिडलवेयर पाइपलाइन में एक नया गार्डरेल या इंटरसेप्ट प्रकार जोड़ें
aicr-analyzing-snapshots
nvidia
AICR स्नैपशॉट YAML फ़ाइल का विश्लेषण करते समय, क्लस्टर स्थिति की समीक्षा करते समय, प्रदाता विशेषताओं की तुलना करते समय, GPU/नेटवर्क टोपोलॉजी अंतर्दृष्टि निकालते समय, या... उपयोग करें।
aicr-auditing-docs
nvidia
AICR के Markdown दस्तावेज़ों की समीक्षा करते समय उपयोग करें — डुप्लिकेशन, ड्रिफ्ट, ब्लोट और गैप्स के लिए — ताकि परियोजना के विकसित होने पर दस्तावेज़ उच्च-मूल्य बने रहें। "ऑडिट…" पर ट्रिगर होता है।
aicr-creating-guided-demos
nvidia
एक इंटरैक्टिव निर्देशित डेमो स्क्रिप्ट (demos/*.sh) तैयार करता है, लाइव या स्व-गति, Frame → Tell → Show → Close पैटर्न के साथ। "demo script", "guided… पर सक्रिय होता है।