contribute-api

작성자: nvidia

Rust, CLI, Python, 스키마, 어댑터 및 문서 패리티를 염두에 두고 새로운 NeMo Fabric 공개 API 표면을 안전하게 기여하세요.

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.

nvidia의 다른 스킬

accelerated-computing-cudf
nvidia
공식 NVIDIA 작성 NVIDIA cuDF GPU 데이터프레임, pandas 가속, dask-cuDF, ETL, 조인, groupby, CSV/Parquet I/O, nullable 의미론 등에 대한 안내
accessibility
nvidia
정적 분석, 런타임 테스트, ARIA 패턴, 키보드 탐색, 색상 대비를 아우르는 통합 접근성 감사 워크플로입니다. 이 스킬을 사용하세요…
accessing-mlflow
nvidia
MLflow에 저장된 평가 결과를 조회하고 탐색합니다. 사용자가 호출 ID로 실행을 조회하거나, 모델 간 메트릭을 비교하거나, 아티팩트를 가져오려 할 때 사용하세요.
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 패턴에 따라 구조화한다. "데모 스크립트", "안내…"와 같은 표현에 반응한다.