> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.nvidia.com/nemo/relay/dev/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server. # Module diagnostics > Negotiated, bounded plugin diagnostic submission and delivery controls. Bounded diagnostic delivery, independent of execution and operational logs. Counters, history, and recording permission remain owned by the Relay host. Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker`. Negotiated, bounded plugin diagnostic submission and delivery controls. Bounded diagnostic delivery, independent of execution and operational logs. Counters, history, and recording permission remain owned by the Relay host. ## Structs * [DiagnosticCodeDefinition](/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/struct-diagnosticcodedefinition) * [DiagnosticComponent](/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/struct-diagnosticcomponent): Component-scoped authoring handle; code IDs are one-based registration positions. * [DiagnosticDeliveryStats](/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/struct-diagnosticdeliverystats): SDK-local saturating delivery totals; never replayed as host observations. * [DiagnosticExtensionDefinition](/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/struct-diagnosticextensiondefinition) * [DiagnosticObservation](/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/struct-diagnosticobservation) * [DiagnosticReceipt](/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/struct-diagnosticreceipt) * [WorkerDiagnostics](/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/struct-workerdiagnostics): One negotiated facade per activation. Disabled/unsupported facades are inert. ## Enums * [DiagnosticDeliveryError](/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/enum-diagnosticdeliveryerror): Delivery outcome, independent of plugin execution or health. * [DiagnosticEvidenceRetention](/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/enum-diagnosticevidenceretention) * [DiagnosticObservationOutcome](/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/enum-diagnosticobservationoutcome) * [DiagnosticObservationSeverity](/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/enum-diagnosticobservationseverity) * [DiagnosticReceiptStatus](/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/enum-diagnosticreceiptstatus) ## Functions * [builtin_code](/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/fn-builtin-code): Select a typed catalogue code without copying its spelling into plugin code. * [extension_code](/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/fn-extension-code): Define a bounded internal operation in the host-assigned session namespace. > Negotiated, bounded plugin diagnostic submission and delivery controls. Bounded diagnostic delivery, independent of execution and operational logs. Counters, history, and recording permission remain owned by the Relay host. ## Docs - [Struct Diagnostic Code Definition](https://docs.nvidia.com/nemo/relay/dev/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/struct-diagnosticcodedefinition.md): API documentation for the Rust `DiagnosticCodeDefinition` struct in crate `nemo_relay_worker`. - [Struct Diagnostic Component](https://docs.nvidia.com/nemo/relay/dev/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/struct-diagnosticcomponent.md): Component-scoped authoring handle; code IDs are one-based registration positions. - [Struct Diagnostic Delivery Stats](https://docs.nvidia.com/nemo/relay/dev/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/struct-diagnosticdeliverystats.md): SDK-local saturating delivery totals; never replayed as host observations. - [Struct Diagnostic Extension Definition](https://docs.nvidia.com/nemo/relay/dev/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/struct-diagnosticextensiondefinition.md): API documentation for the Rust `DiagnosticExtensionDefinition` struct in crate `nemo_relay_worker`. - [Struct Diagnostic Observation](https://docs.nvidia.com/nemo/relay/dev/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/struct-diagnosticobservation.md): API documentation for the Rust `DiagnosticObservation` struct in crate `nemo_relay_worker`. - [Struct Diagnostic Receipt](https://docs.nvidia.com/nemo/relay/dev/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/struct-diagnosticreceipt.md): API documentation for the Rust `DiagnosticReceipt` struct in crate `nemo_relay_worker`. - [Struct Worker Diagnostics](https://docs.nvidia.com/nemo/relay/dev/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/struct-workerdiagnostics.md): One negotiated facade per activation. Disabled/unsupported facades are inert. - [Enum Diagnostic Delivery Error](https://docs.nvidia.com/nemo/relay/dev/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/enum-diagnosticdeliveryerror.md): Delivery outcome, independent of plugin execution or health. - [Enum Diagnostic Evidence Retention](https://docs.nvidia.com/nemo/relay/dev/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/enum-diagnosticevidenceretention.md): API documentation for the Rust `DiagnosticEvidenceRetention` enum in crate `nemo_relay_worker`. - [Enum Diagnostic Observation Outcome](https://docs.nvidia.com/nemo/relay/dev/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/enum-diagnosticobservationoutcome.md): API documentation for the Rust `DiagnosticObservationOutcome` enum in crate `nemo_relay_worker`. - [Enum Diagnostic Observation Severity](https://docs.nvidia.com/nemo/relay/dev/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/enum-diagnosticobservationseverity.md): API documentation for the Rust `DiagnosticObservationSeverity` enum in crate `nemo_relay_worker`. - [Enum Diagnostic Receipt Status](https://docs.nvidia.com/nemo/relay/dev/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/enum-diagnosticreceiptstatus.md): API documentation for the Rust `DiagnosticReceiptStatus` enum in crate `nemo_relay_worker`. - [Function builtin_code](https://docs.nvidia.com/nemo/relay/dev/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/fn-builtin-code.md): Select a typed catalogue code without copying its spelling into plugin code. - [Function extension_code](https://docs.nvidia.com/nemo/relay/dev/reference/api/rust-library-reference/nemo-relay-worker/diagnostics/fn-extension-code.md): Define a bounded internal operation in the host-assigned session namespace.