contribute-api

von nvidia

Trage eine neue öffentliche NeMo-Fabric-API-Oberfläche sicher bei, mit Blick auf Parität bei Rust, CLI, Python, Schema, Adapter und Dokumentation.

npx skills add https://github.com/nvidia/nemo-fabric --skill contribute-api

Contribute A New API Surface

Companion Guidance

Use karpathy-guidelines alongside this skill for implementation or review work. Keep changes scoped, surface assumptions, and define focused validation before editing.

Use this skill when contributing a public API addition or behavior change to the runtime or bindings.

Default Guidance

  • Start from the shared Rust core behavior first
  • Decide whether the CLI, PyO3 binding, Python SDK, type stubs, schemas, or the Python and TypeScript adapter-contract bindings must expose the new surface
  • Keep every affected public surface in parity
  • RunRequest.relay_session_root is forwarded as the typed AgentRunRequest.relay_session_root field. Keep Rust, Python, TypeScript, and schema representations in parity. Context keys do not control Relay propagation; preserve the adapter fallback for unusable UUIDs.
  • OpenShell task commands serialize public SDK config/request/handle/result mappings. Keep forwarding buffered and preserve task-generated IDs, normalized failed results, telemetry references, and declared artifacts. Do not normalize an SDK result as an adapter result. Task paths remain POSIX strings; host artifact destinations stay separate. Unknown outcomes bind the immutable sandbox identity through reattachment and must not be replayed.
  • Runtime discovery uses the typed public Fabric.runtime_status() operation and sdk/runtime-status-report schema. Keep fabric-agent-ctl status delegated to that SDK operation and OpenShell status routed through the existing provider command transport. Preserve recorded lifecycle state separately from health observations, use null handles for stopped records, and exclude environment variables and arbitrary provider metadata from discovery snapshots. Each client caps all runtime records, including pending starts, at 128; evict only stopped records and reject full-capacity starts with runtime_limit_reached before runtime effects.
  • Hermes and OpenClaw cold resume take an optional session_ref directly at runtime start. Omission starts a fresh conversation. runtime.keep_state controls retention. Keep SDK, managed commands, and adapter contexts aligned. Native-only Hermes configurations retain state, advertise session_resume: false, and reject explicit SDK session selection.
  • Metadata inspection takes canonical descriptors in memory. Python inspect_adapter returns AdapterInspection; consume the nested capability_profile only after checking issues. Compatibility failures return issues by default (diagnostics=True); support diagnostics=False for exception-based rejection. Malformed inputs raise in both modes. Keep startup validation rules shared and preserve malformed-input errors. Inspection and planning share Relay ATIF admission: requested output requires descriptor support and exactly one observability component.
  • Update docs and examples in the same branch

Minimum Acceptance

  • Public behavior is clearly described
  • Every affected public surface is covered
  • The validation matrix matches the changed surfaces
  • PR notes explain the user-facing change

References

  • validate-change

  • review-doc-style

  • docs/python-sdk-contract.md

  • schemas/SCHEMA.md

  • justfile

  • Software provenance uses FabricConfig.provenance and optional RunResult.execution. Keep Rust, shared Python evidence dataclasses in nemo-fabric-evidence, SDK result mappings, generated TypeScript types and the canonical schemas/evidence/execution-evidence.schema.json aligned. The shared schema is generated from Rust and consumed by both NB and SB bindings; keep the TypeScript adapter-contract schema copy byte-identical. Preserve strict adapter result shapes: lifecycle evidence is carried beside the outcome. Optional report failure must not replace invocation outcomes.

Mehr Skills von nvidia

accelerated-computing-cudf
nvidia
Offizielle NVIDIA-Anleitung für NVIDIA cuDF GPU DataFrames, pandas-Beschleunigung, dask-cuDF, ETL, Joins, Groupby, CSV/Parquet-I/O, nullable-Semantik und…
accessibility
nvidia
Einheitlicher Barrierefreiheits-Audit-Workflow über statische Analyse, Laufzeittests, ARIA-Muster, Tastaturnavigation und Farbkontrast. Verwenden Sie diese Fähigkeit…
accessing-mlflow
nvidia
Evaluation-Ergebnisse abfragen und durchsuchen, die in MLflow gespeichert sind. Verwenden, wenn der Benutzer Läufe nach Aufruf-ID suchen, Metriken über Modelle hinweg vergleichen, Artefakte abrufen möchte…
add-binding-feature
nvidia
Öffentliche NeMo Relay API-Oberfläche über die Kernlaufzeit und jede betroffene Bindung hinzufügen oder ändern
add-middleware
nvidia
Füge eine neue Schutz- oder Abfangvorrichtung zur NeMo Relay Middleware-Pipeline hinzu
aicr-analyzing-snapshots
nvidia
Verwenden Sie bei der Analyse einer AICR-Snapshot-YAML-Datei, bei der Überprüfung des Cluster-Zustands, beim Vergleich von Provider-Eigenschaften, beim Extrahieren von GPU-/Netzwerktopologie-Erkenntnissen oder…
aicr-auditing-docs
nvidia
Verwenden Sie bei der Überprüfung der Markdown-Dokumentation von AICR auf Duplikate, Abweichungen, Aufblähung und Lücken – um die Dokumentation im Laufe des Projekts wertvoll zu halten. Wird bei „audit…“ ausgelöst.
aicr-creating-guided-demos
nvidia
Erstellt ein interaktives geführtes Demo-Skript (demos/*.sh), live oder im eigenen Tempo, mit dem Muster Frame → Tell → Show → Close. Wird bei „Demo-Skript", „geführt…" ausgelöst.