contribute-api

por nvidia

Contribua com uma nova superfície de API pública do NeMo Fabric com segurança, considerando paridade em Rust, CLI, Python, schema, adapter e documentação

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.

Mais skills de nvidia

accelerated-computing-cudf
nvidia
Orientação oficial da NVIDIA para NVIDIA cuDF GPU DataFrames, aceleração de pandas, dask-cuDF, ETL, joins, groupby, I/O de CSV/Parquet, semântica anulável e…
accessibility
nvidia
Fluxo de trabalho unificado de auditoria de acessibilidade em análise estática, testes de runtime, padrões ARIA, navegação por teclado e contraste de cores. Use esta habilidade…
accessing-mlflow
nvidia
Consultar e navegar pelos resultados de avaliação armazenados no MLflow. Use quando o usuário quiser buscar execuções por ID de invocação, comparar métricas entre modelos, buscar artefatos…
add-binding-feature
nvidia
Adicionar ou alterar uma superfície de API pública do NeMo Relay em todo o runtime principal e em cada binding afetado
add-middleware
nvidia
Adicionar um novo tipo de guardrail ou interceptação ao pipeline de middleware do NeMo Relay
aicr-analyzing-snapshots
nvidia
Use ao analisar um arquivo YAML de snapshot AICR, revisando o estado do cluster, comparando características de provedores, extraindo insights de topologia de GPU/rede, ou…
aicr-auditing-docs
nvidia
Use ao revisar a documentação Markdown da AICR para verificar duplicação, desvios, inchaço e lacunas — para manter a documentação de alto valor conforme o projeto evolui. Aciona em "auditoria…
aicr-creating-guided-demos
nvidia
Estrutura um script de demonstração guiada interativa (demos/*.sh), ao vivo ou no ritmo do usuário, com o padrão Frame → Tell → Show → Close. Aciona em "demo script", "guided…