feat: validate adapter harness settings - #146
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (45)
WalkthroughThe PR adds descriptor-owned JSON Schema validation for ChangesDescriptor-owned settings contract
Estimated code review effort: 4 (Complex) | ~60 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@Cargo.toml`:
- Line 26: Add a concise comment immediately above the jsonschema dependency
declaration explaining that disabling default features excludes resolve-http and
resolve-file, preventing schema compilation from fetching remote or local $ref
targets. Keep the dependency configuration unchanged.
In `@crates/fabric-core/src/config.rs`:
- Around line 1494-1508: Cache the compiled settings_schema validator when
loading the descriptor, then store it alongside the resolved descriptor and
reuse it in validate_harness_settings during resolve_run_plan. Replace the
repeated jsonschema::validator_for compilation while preserving the existing
schema validation and invalid-descriptor error handling.
In `@tests/python/test_harness_settings_validation.py`:
- Around line 119-125: Remove the redundant `@pytest.mark.asyncio` decorator from
test_invalid_settings_fail_before_runtime_start, leaving the async test function
and its existing runtime_start setup unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: dff2f022-961c-4025-9ccd-91635657f645
⛔ Files ignored due to path filters (1)
Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing (46)
ATTRIBUTIONS-Rust.mdCargo.tomlREADME.mdadapters/README.mdadapters/claude/README.mdadapters/claude/fabric-adapter.jsonadapters/claude/src/nemo_fabric_adapters/claude/adapter.pyadapters/codex/README.mdadapters/deepagents/README.mdadapters/hermes/README.mdcrates/fabric-cli/assets/adapters/claude/fabric-adapter.jsoncrates/fabric-cli/src/presets.rscrates/fabric-core/Cargo.tomlcrates/fabric-core/src/config.rscrates/fabric-core/src/error.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/schema.rscrates/fabric-python/src/lib.rsdocs/integrations/harness/claude.mdxdocs/integrations/harness/codex.mdxdocs/integrations/harness/deepagents.mdxdocs/integrations/harness/hermes.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/sdk/python.mdxexamples/code_review_agent/config.pyexamples/harbor/README.mdexamples/harbor/calculator/README.mdexamples/harbor/swebench/adapters/claude/fabric-adapter.jsonexamples/notebooks/01_quickstart.ipynbexamples/notebooks/02_variations.ipynbpython/src/nemo_fabric/integrations/harbor/fabric_agent.pyschemas/SCHEMA.mdschemas/adapter-descriptor.schema.jsonschemas/run-plan.schema.jsonskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdtests/adapters/test_claude_adapter.pytests/adapters/test_codex_adapter.pytests/e2e/test_claude.pytests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsontests/integrations/test_harbor_runner.pytests/python/test_harness_settings_validation.pytests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.pytests/python/test_readme_examples.py
💤 Files with no reviewable changes (2)
- examples/harbor/calculator/README.md
- python/src/nemo_fabric/integrations/harbor/fabric_agent.py
📜 Review details
🧰 Additional context used
📓 Path-based instructions (57)
{README.md,docs/**/*.{md,mdx,yml},examples/**/*.{md,mdx,yml}}
📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)
Keep package names, repository references, and build commands current in documentation and examples.
Files:
docs/integrations/harness/hermes.mdxREADME.mdexamples/harbor/README.mddocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/integrations/harness/claude.mdxdocs/sdk/python.mdx
{docs/**/*.{md,mdx,yml},examples/**/*.{md,mdx,yml}}
📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)
Update relevant getting-started, reference, adapter, and example documentation when the corresponding examples or adapters change.
Files:
docs/integrations/harness/hermes.mdxexamples/harbor/README.mddocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/integrations/harness/claude.mdxdocs/sdk/python.mdx
**/*.mdx
📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)
In MDX files, use JSX comment delimiters (
{/*and*/}) for top-of-file comments, including SPDX headers; do not use HTML comments.Use
{/* ... */}delimiters for top-of-file MDX SPDX comments, not HTML comment delimiters.
Files:
docs/integrations/harness/hermes.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/integrations/harness/claude.mdxdocs/sdk/python.mdx
docs/**/*.{md,mdx,yml}
📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)
Run
just docswhen the documentation site changes.
Files:
docs/integrations/harness/hermes.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/integrations/harness/claude.mdxdocs/sdk/python.mdx
**/*
📄 CodeRabbit inference engine (.agents/skills/karpathy-guidelines/SKILL.md)
**/*: Before implementing, explicitly state assumptions, surface ambiguity and tradeoffs, present multiple interpretations when relevant, and ask for clarification rather than silently deciding or proceeding when requirements are unclear.
Prefer the minimum code needed to solve the requested problem: avoid speculative features, unnecessary abstractions, unrequested flexibility, and handling of impossible scenarios; simplify overcomplicated solutions.
When editing existing code, make surgical changes only: do not modify unrelated code, comments, formatting, or pre-existing dead code; match the existing style, and remove only unused imports, variables, or functions introduced by your changes.
Define verifiable success criteria for each task, such as writing regression tests for bugs and invalid-input tests for validation, then verify the implementation against those criteria. For multi-step work, state a brief plan with a verification check for each step.
**/*: Always spellNVIDIAin all caps; do not useNvidia,nvidia,nVidia,nVIDIA, orNV.
Usean NVIDIAbefore a noun, because the name begins with an “en” sound.
Do not add a registered trademark symbol afterNVIDIAwhen referring to the company; use trademark symbols with product names only when required by the document type or legal guidance.
Verify official capitalization, spacing, hyphenation, and spelling for NVIDIA and third-party product names; do not rewrite official product names for grammar or title-case rules.
Precede NVIDIA product names withNVIDIAon first mention when natural and accurate, and link the first mention when the destination helps the reader.
On first use, include the company name and full model qualifier when it helps identify the model; preserve official capitalization and punctuation, and use shorter family names only after establishing the full name.
For learning-oriented and developer content, do not force trademark symbols unless explicitly required; for press, ...
Files:
docs/integrations/harness/hermes.mdxskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdCargo.tomltests/python/test_readme_examples.pyREADME.mdexamples/notebooks/01_quickstart.ipynbadapters/claude/fabric-adapter.jsonexamples/harbor/README.mdschemas/run-plan.schema.jsontests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsontests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pyskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdcrates/fabric-core/src/schema.rsdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/codex/README.mdcrates/fabric-core/Cargo.tomldocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxcrates/fabric-cli/src/presets.rscrates/fabric-cli/assets/adapters/claude/fabric-adapter.jsonschemas/SCHEMA.mddocs/integrations/harness/codex.mdxcrates/fabric-core/src/runtime.rsexamples/code_review_agent/config.pyexamples/harbor/swebench/adapters/claude/fabric-adapter.jsondocs/integrations/harness/claude.mdxcrates/fabric-core/src/error.rsschemas/adapter-descriptor.schema.jsonadapters/claude/README.mdadapters/README.mdtests/python/test_harness_settings_validation.pydocs/sdk/python.mdxtests/integrations/test_harbor_runner.pyexamples/notebooks/02_variations.ipynbtests/adapters/test_claude_adapter.pyadapters/hermes/README.mdtests/e2e/test_claude.pycrates/fabric-python/src/lib.rstests/python/test_notebook_examples.pycrates/fabric-core/src/config.rsadapters/deepagents/README.mdtests/python/test_installed_adapter_discovery.pyATTRIBUTIONS-Rust.md
**/*.{md,mdx,rst}
📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-guide.md)
**/*.{md,mdx,rst}: For NeMo Fabric documentation, verify technical claims against the current repository, public API, or documented command before reviewing style.
Always spellNVIDIAin all caps; do not useNvidia,nvidia, orNV.
Format commands, code elements, expressions, package names, file names, and paths as inline code.
Use descriptive link text; avoid raw URLs and weak anchors such ashereorread more.
Use title case consistently for technical documentation headings.
Introduce code blocks, lists, tables, and images with complete sentences.
Write procedures as imperative, parallel steps; split long procedures into smaller tasks.
Prefer active voice, present tense, short sentences, contractions, and plain English while preserving necessary technical precision.
Usecanfor possibility and reservemayfor permission.
Useafterfor temporal relationships instead ofonce, and preferrefer tooverseewhen directing readers to another resource.
Avoid culture-specific idioms, unnecessary Latinisms, jokes, and marketing exaggeration in technical documentation.
Spell out months in body text, avoid ordinal dates, and use clear time zones.
Spell out whole numbers from zero through nine unless they are technical values, parameters, versions, or UI values; use numerals for 10 or greater and commas in thousands.
Do not add trademark symbols to learning-oriented documentation unless the source, platform, or legal guidance explicitly requires them.
Do not replace precise technical terms with simpler words when doing so would lose precision.
Do not flag passive voice when the actor is unknown or the action is the important part.
Do not rewrite API names, package names, command flags, or code literals for style.
**/*.{md,mdx,rst}: Use consistent title case for technical-document headings and table headers; avoid quotation marks, ampersands, and exclamation marks in headings, while preserving official product, event, research, and whitepaper title ...
Files:
docs/integrations/harness/hermes.mdxskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdREADME.mdexamples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mddocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/codex/README.mddocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxschemas/SCHEMA.mddocs/integrations/harness/codex.mdxdocs/integrations/harness/claude.mdxadapters/claude/README.mdadapters/README.mddocs/sdk/python.mdxadapters/hermes/README.mdadapters/deepagents/README.mdATTRIBUTIONS-Rust.md
docs/**/*
📄 CodeRabbit inference engine (AGENTS.md)
Update Fern documentation under
docs/when public behavior, thenemo-fabricpackage, examples, or supported bindings change.
Files:
docs/integrations/harness/hermes.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/integrations/harness/claude.mdxdocs/sdk/python.mdx
**/*.{md,mdx}
📄 CodeRabbit inference engine (.agents/skills/review-doc-style/SKILL.md)
**/*.{md,mdx}: Use the full product nameNVIDIA NeMo Fabricon its first usage, typically in the title or H1; useNeMo Fabricthereafter.
Usefabricby itself only when referring to the CLI tool, and surround those references with backticks.
CapitalizeNVIDIAcorrectly in public documentation.
Format commands, code elements, expressions, file names, paths, and filenames as inline code where needed.
Use title case consistently for headings in technical documentation.
Introduce code blocks, tables, and lists with complete lead-in sentences.
Use descriptive anchor text instead of raw URLs or generic link text such ashere.
Prefer active voice, present tense, short sentences, and plain English.
Use consistent terminology for the same concept throughout a document.
Write procedures as imperative, parallel, easy-to-scan steps, and split long sequences into smaller tasks.
Useafterinstead ofoncewhen expressing temporal sequence.
Usecaninstead ofmaywhen the intended meaning is possibility rather than permission.
Avoid ambiguous numeric dates and ordinal dates in body text.
For learning-oriented documentation, do not force trademark symbols unless the source document explicitly requires them.
Introduce examples' code blocks with full sentences and ensure examples match current APIs and build commands.For docs site changes, run
just docsto regenerate Python and Rust API references and validate the Fern configuration.
Files:
docs/integrations/harness/hermes.mdxskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdREADME.mdexamples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mddocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/codex/README.mddocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxschemas/SCHEMA.mddocs/integrations/harness/codex.mdxdocs/integrations/harness/claude.mdxadapters/claude/README.mdadapters/README.mddocs/sdk/python.mdxadapters/hermes/README.mdadapters/deepagents/README.mdATTRIBUTIONS-Rust.md
**/*.{rs,py,html,md,mdx,toml,yml,yaml,sh,bash}
📄 CodeRabbit inference engine (CONTRIBUTING.md)
All Rust, Python, HTML, Markdown, MDX, TOML, YAML, and shell source files must include the project SPDX copyright and Apache-2.0 license headers using the comment syntax appropriate to each file type.
Files:
docs/integrations/harness/hermes.mdxskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdCargo.tomltests/python/test_readme_examples.pyREADME.mdexamples/harbor/README.mdtests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pyskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdcrates/fabric-core/src/schema.rsdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/codex/README.mdcrates/fabric-core/Cargo.tomldocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxcrates/fabric-cli/src/presets.rsschemas/SCHEMA.mddocs/integrations/harness/codex.mdxcrates/fabric-core/src/runtime.rsexamples/code_review_agent/config.pydocs/integrations/harness/claude.mdxcrates/fabric-core/src/error.rsadapters/claude/README.mdadapters/README.mdtests/python/test_harness_settings_validation.pydocs/sdk/python.mdxtests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pyadapters/hermes/README.mdtests/e2e/test_claude.pycrates/fabric-python/src/lib.rstests/python/test_notebook_examples.pycrates/fabric-core/src/config.rsadapters/deepagents/README.mdtests/python/test_installed_adapter_discovery.pyATTRIBUTIONS-Rust.md
**/{README.md,*.md,*.mdx}
📄 CodeRabbit inference engine (CONTRIBUTING.md)
Update relevant documentation when changes affect public behavior, adapters, examples, or workspace structure.
Files:
docs/integrations/harness/hermes.mdxskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdREADME.mdexamples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mddocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/codex/README.mddocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxschemas/SCHEMA.mddocs/integrations/harness/codex.mdxdocs/integrations/harness/claude.mdxadapters/claude/README.mdadapters/README.mddocs/sdk/python.mdxadapters/hermes/README.mdadapters/deepagents/README.mdATTRIBUTIONS-Rust.md
{docs/**,README.md,AGENTS.md}
⚙️ CodeRabbit configuration file
{docs/**,README.md,AGENTS.md}: Review documentation for technical accuracy against the current API, command correctness, and consistency with generated schemas.
For links between files under docs/, require paths relative to the source file with the target file's .mdx extension so they work in both Fern builds and repository browsers. Flag Fern site-root links such as NeMo Fabric overview; use the repository-relative equivalent, such as NeMo Fabric overview.
Files:
docs/integrations/harness/hermes.mdxREADME.mddocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/integrations/harness/claude.mdxdocs/sdk/python.mdx
{*.md,**/*.md,**/*.mdx,**/*.ipynb}
⚙️ CodeRabbit configuration file
{*.md,**/*.md,**/*.mdx,**/*.ipynb}: Enforce the product name in user-facing prose: use "NVIDIA NeMo Fabric" on first use and "NeMo Fabric" thereafter. Flag standalone capitalized "Fabric" when it refers to the product. Do not flag the lowercasefabricCLI command, package/import/crate names, code identifiers, API symbols, configuration keys, file paths, or unrelated generic uses of the word.
Files:
docs/integrations/harness/hermes.mdxskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdREADME.mdexamples/notebooks/01_quickstart.ipynbexamples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mddocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/codex/README.mddocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxschemas/SCHEMA.mddocs/integrations/harness/codex.mdxdocs/integrations/harness/claude.mdxadapters/claude/README.mdadapters/README.mddocs/sdk/python.mdxexamples/notebooks/02_variations.ipynbadapters/hermes/README.mdadapters/deepagents/README.mdATTRIBUTIONS-Rust.md
**/*.{md,rst}
📄 CodeRabbit inference engine (.agents/skills/contribute-api/SKILL.md)
Update documentation and examples in the same branch as the public API change.
Files:
skills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdREADME.mdexamples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdadapters/codex/README.mdschemas/SCHEMA.mdadapters/claude/README.mdadapters/README.mdadapters/hermes/README.mdadapters/deepagents/README.mdATTRIBUTIONS-Rust.md
**/*.{md,rst,txt,adoc}
📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-language-mechanics.md)
**/*.{md,rst,txt,adoc}: For technical documentation, use professional, active, conversational, engaging, precise, and plain-English prose. Prefer active voice, present tense, short sentences, and scannable paragraphs. Avoid casual or imprecise language, swearing, threats, insults, jokes, puns, culture-specific idioms, marketing exaggeration, and unsupported third-party comparisons.
Usecanfor possibility and reservemayfor permission; useafterfor temporal order; userefer tofor cross-references; prefer short direct sentences and specific verbs; avoid unnecessarypleasein technical documentation.
Prefer active voice when the actor matters. Passive voice is acceptable when the actor is unknown or irrelevant, when the action or result is the focus, or in programmer documentation.
Use natural contractions in conversational technical prose, but do not force them in formal legal copy, API references, or generated text.
Prefer simpler English over Latinisms: usefor exampleorsuch asinstead ofe.g.,and so oninstead ofetc.,that isinstead ofi.e.,compared toinstead ofvs., andby,through, orusinginstead ofvia. Use industry-standard terms such as in silico, in vitro, and in vivo when appropriate, and italicize them in running text.
Usethatwithout commas for essential clauses, andwhichwith commas for nonessential clauses.
Format dates and times clearly: spell out months in body text; use forms such asJune 12, 2025; avoid numeric or ordinal dates; capitalize days; use 12-hour time when appropriate; include a space beforea.m.orp.m.; useETandPTfor needed time zones; avoid24/7; and preferfrom 12:30 to 1:00 p.m.for prose ranges.
Format numbers consistently: spell out zero through nine in body text, use numerals for 10 or greater and for technical values, use commas in thousands, do not begin a sentence with a numeral, spell out ordinals, and use numerals consistently within a category wh...
Files:
skills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdREADME.mdexamples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdadapters/codex/README.mdschemas/SCHEMA.mdadapters/claude/README.mdadapters/README.mdadapters/hermes/README.mdadapters/deepagents/README.mdATTRIBUTIONS-Rust.md
skills/**
📄 CodeRabbit inference engine (AGENTS.md)
skills/**: Keep consumer skills underskills/self-contained and dependent only on supported public Python SDK contracts and published documentation; do not add repository-internal contribution guidance.
Keep consumer skills in parity with the public SDK guide, model, and type details when the Python/Rust binding contract changes.
Files:
skills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.md
**/*.md
📄 CodeRabbit inference engine (.agents/skills/README.md)
Documentation and examples must be updated consistently with changes to public behavior and reviewed for NVIDIA technical-writing style.
Files:
skills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdREADME.mdexamples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdadapters/codex/README.mdschemas/SCHEMA.mdadapters/claude/README.mdadapters/README.mdadapters/hermes/README.mdadapters/deepagents/README.mdATTRIBUTIONS-Rust.md
{Cargo.toml,python/pyproject.toml,pyproject.toml}
📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)
Keep Rust workspace/package metadata and Python/maturin package metadata internally consistent, including package names, versions, import paths, and module names.
Files:
Cargo.toml
{Cargo.toml,Cargo.lock,pyproject.toml,uv.lock,python/pyproject.toml}
📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)
{Cargo.toml,Cargo.lock,pyproject.toml,uv.lock,python/pyproject.toml}: Keep workspace, Python, and lockfile dependency versions aligned where required, and review both direct and transitive dependency changes from resolved lockfiles.
Inspect resolved transitive licenses, explicitly surface UNKNOWN, non-SPDX/custom, proprietary, source-available, copyleft, or network-copyleft terms, and route unresolved licensing questions to dependency approvers with distribution and linkage context.
Document the functional need, alternatives considered, rationale for the selected dependency, and any unresolved licensing question when introducing dependencies.
Files:
Cargo.toml
{Cargo.toml,pyproject.toml,python/pyproject.toml}
📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)
Before adding a dependency, prefer the standard library, an existing dependency, or a small local implementation when appropriate; otherwise select a maintained, narrow-fit dependency with clear SPDX metadata and a permissive license where possible.
Files:
Cargo.toml
{Cargo.toml,Cargo.lock,pyproject.toml,uv.lock}
📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)
After updating manifests or lockfiles, run
uv run --no-project python scripts/licensing/license_diff.py --base-ref origin/mainand review added packages and license changes.
Files:
Cargo.toml
{pyproject.toml,python/pyproject.toml,Cargo.toml,docs/package.json,.github/workflows/*.yml,justfile}
📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)
Reflect public packaging changes in release-facing documentation and ensure CI references the same package names and commands used by local workflows.
Files:
Cargo.toml
**/*.{rs,toml}
📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)
For any Rust change, run
just test-rustandcargo fmt --all -- --check.For Rust core, CLI, or shared runtime semantic changes, run Rust formatting and tests, and add Python tests when behavior is exposed through the SDK.
Files:
Cargo.tomlcrates/fabric-core/src/schema.rscrates/fabric-core/Cargo.tomlcrates/fabric-cli/src/presets.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rscrates/fabric-core/src/config.rs
**/{Cargo.toml,Cargo.lock,pyproject.toml,package.json}
📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)
For new or updated dependencies, document the functional need, alternatives considered, and why the selected dependency is the narrowest fit.
Files:
Cargo.tomlcrates/fabric-core/Cargo.toml
**/*.{toml,lock}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
If a manifest or lockfile changes, run the license-diff script against
origin/main, review transitive license changes, and run theattributions-rustandattributions-pythonpre-commit hooks.
Files:
Cargo.tomlcrates/fabric-core/Cargo.toml
**/*.{yml,yaml,toml,lock}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
For CI or packaging changes, use
maintain-ciormaintain-packaging, then run recipes and checks whose behavior changed.
Files:
Cargo.tomlcrates/fabric-core/Cargo.toml
Cargo.toml
📄 CodeRabbit inference engine (.agents/skills/update-project-version/SKILL.md)
Cargo.toml: UseCargo.toml[workspace.package].versionas the source of truth for Rust workspace and Python build versioning.
KeepCargo.toml[workspace.dependencies].nemo-fabric-core.versionaligned with the workspace version.
Use valid Cargo SemVer in Cargo metadata and equivalent PEP 440 syntax in explicit Python metadata for prerelease or build-metadata versions.
Files:
Cargo.toml
**/*.{rs,py,toml}
📄 CodeRabbit inference engine (.agents/skills/update-project-version/SKILL.md)
When editing version helpers, verify every
nemo-fabric-*workspace package through Cargo metadata and reject a static version inpython/pyproject.toml.
Files:
Cargo.tomltests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-core/src/schema.rscrates/fabric-core/Cargo.tomlcrates/fabric-cli/src/presets.rscrates/fabric-core/src/runtime.rsexamples/code_review_agent/config.pycrates/fabric-core/src/error.rstests/python/test_harness_settings_validation.pytests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pytests/e2e/test_claude.pycrates/fabric-python/src/lib.rstests/python/test_notebook_examples.pycrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.py
**/*.{toml,rs,py}
📄 CodeRabbit inference engine (.agents/skills/update-project-version/SKILL.md)
Avoid blind repository-wide replacement of version-like strings; distinguish package-version references from examples and unrelated dependency versions.
Files:
Cargo.tomltests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-core/src/schema.rscrates/fabric-core/Cargo.tomlcrates/fabric-cli/src/presets.rscrates/fabric-core/src/runtime.rsexamples/code_review_agent/config.pycrates/fabric-core/src/error.rstests/python/test_harness_settings_validation.pytests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pytests/e2e/test_claude.pycrates/fabric-python/src/lib.rstests/python/test_notebook_examples.pycrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.py
**/*.{rs,py,pyi,json,yaml,yml}
📄 CodeRabbit inference engine (.agents/skills/contribute-api/SKILL.md)
Determine and update every affected public surface, including the CLI, PyO3 bindings, Python SDK, type stubs, schemas, and adapter contract, so they remain in parity.
Files:
tests/python/test_readme_examples.pyadapters/claude/fabric-adapter.jsonschemas/run-plan.schema.jsontests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsontests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-core/src/schema.rscrates/fabric-cli/src/presets.rscrates/fabric-cli/assets/adapters/claude/fabric-adapter.jsoncrates/fabric-core/src/runtime.rsexamples/code_review_agent/config.pyexamples/harbor/swebench/adapters/claude/fabric-adapter.jsoncrates/fabric-core/src/error.rsschemas/adapter-descriptor.schema.jsontests/python/test_harness_settings_validation.pytests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pytests/e2e/test_claude.pycrates/fabric-python/src/lib.rstests/python/test_notebook_examples.pycrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.py
**/*.{rs,py}
📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)
For native binding changes, run
cargo check -p fabric-python --locked.
**/*.{rs,py}: When changing the Rust core or public schemas, run both the Rust and Python test suites.
When adding functionality, include tests in the corresponding Rust crate or the relevant area undertests/.
Files:
tests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-core/src/schema.rscrates/fabric-cli/src/presets.rscrates/fabric-core/src/runtime.rsexamples/code_review_agent/config.pycrates/fabric-core/src/error.rstests/python/test_harness_settings_validation.pytests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pytests/e2e/test_claude.pycrates/fabric-python/src/lib.rstests/python/test_notebook_examples.pycrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.py
**/*.{py,pyi}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
If Python code or a Python-facing adapter changes, run
just test-python.
Files:
tests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pyexamples/code_review_agent/config.pytests/python/test_harness_settings_validation.pytests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pytests/e2e/test_claude.pytests/python/test_notebook_examples.pytests/python/test_installed_adapter_discovery.py
**/*.{rs,py,pyi}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
**/*.{rs,py,pyi}: If public configuration types change, confirm schema snapshot tests injust test-rustpass and review generated schema diffs.
For schema or public contract changes, run both language suites and review changes underschemas/and generated API references.
Files:
tests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-core/src/schema.rscrates/fabric-cli/src/presets.rscrates/fabric-core/src/runtime.rsexamples/code_review_agent/config.pycrates/fabric-core/src/error.rstests/python/test_harness_settings_validation.pytests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pytests/e2e/test_claude.pycrates/fabric-python/src/lib.rstests/python/test_notebook_examples.pycrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.py
**/*.{py,pyi,rs}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
For Python SDK or PyO3 binding changes, use
python-tests, run focused pytest tests first, thenjust test-python; rebuild withjust build-pythonwhen native code or packaging changes.
Files:
tests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-core/src/schema.rscrates/fabric-cli/src/presets.rscrates/fabric-core/src/runtime.rsexamples/code_review_agent/config.pycrates/fabric-core/src/error.rstests/python/test_harness_settings_validation.pytests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pytests/e2e/test_claude.pycrates/fabric-python/src/lib.rstests/python/test_notebook_examples.pycrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.py
tests/**/*.py
📄 CodeRabbit inference engine (.agents/skills/python-tests/SKILL.md)
tests/**/*.py: Use Pytest to run Python tests.
Do not add@pytest.mark.asyncioto tests; async tests are automatically detected and run by the async runner.
Do not add-> Nonereturn type annotations to test functions.
When mocking a class, useunittest.mock.MagicMockorunittest.mock.AsyncMock, using thespecargument when necessary, rather than defining a new class.
Prefix mocked class names withmock, notfake.
Prefer pytest fixtures over helper methods.
Do not repeat fixtures; place fixtures needed by multiple test files inconftest.py.
Define fixtures using@pytest.fixture(name="<fixture_name>"[, scope="<scope>"])and a function named<fixture_name>_fixture; specifyscopeonly when it is notfunction.
Preferpytest.mark.parametrizeover separate tests for different input types.
Use@pytest.mark.usefixtureswhen a fixture is needed but its return value is unused or it does not return a value.
Use the autouserestore_environ_fixturefromtests/conftest.pyto restore environment variables; modify variables withos.environand do not usemonkeypatch.setenv.
Avoid defensive programming in tests; access expected data directly so missing data raises a clear failure, such as usingresults["data"]instead ofresults.get("data").
Files:
tests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pytests/python/test_harness_settings_validation.pytests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pytests/e2e/test_claude.pytests/python/test_notebook_examples.pytests/python/test_installed_adapter_discovery.py
**/*.py
📄 CodeRabbit inference engine (CONTRIBUTING.md)
Use type annotations for public Python APIs.
Files:
tests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pyexamples/code_review_agent/config.pytests/python/test_harness_settings_validation.pytests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pytests/e2e/test_claude.pytests/python/test_notebook_examples.pytests/python/test_installed_adapter_discovery.py
**/*.{py,rs}
📄 CodeRabbit inference engine (CONTRIBUTING.md)
**/*.{py,rs}: Keep native Python binding declarations synchronized with their Rust implementations.
Usesnake_casefor functions and variables; usePascalCasefor Rust types and Python classes.
Files:
tests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-core/src/schema.rscrates/fabric-cli/src/presets.rscrates/fabric-core/src/runtime.rsexamples/code_review_agent/config.pycrates/fabric-core/src/error.rstests/python/test_harness_settings_validation.pytests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pytests/e2e/test_claude.pycrates/fabric-python/src/lib.rstests/python/test_notebook_examples.pycrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.py
{tests/**,python/tests/**}
⚙️ CodeRabbit configuration file
{tests/**,python/tests/**}: Tests should cover the behavior promised by the changed API surface, including error paths, lifecycle cleanup, and SDK/native parity where relevant.
Files:
tests/python/test_readme_examples.pytests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsontests/adapters/test_codex_adapter.pytests/python/test_harness_settings_validation.pytests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pytests/e2e/test_claude.pytests/python/test_notebook_examples.pytests/python/test_installed_adapter_discovery.py
{README.md,docs/index.yml}
📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)
Update
README.mdordocs/index.ymlwhen documentation entry points or example reading paths change.
Files:
README.md
README.md
📄 CodeRabbit inference engine (AGENTS.md)
Update the root
README.mdwhen public behavior, thenemo-fabricpackage, examples, or supported bindings change.Update the top-level
README.mdwhen changed behavior affects an entry point users would naturally consult.
Files:
README.md
**/README.md
📄 CodeRabbit inference engine (.agents/skills/review-doc-style/SKILL.md)
Update relevant package, crate, adapter, and integration README files when public behavior or entry-point documentation changes.
Files:
README.mdexamples/harbor/README.mdadapters/codex/README.mdadapters/claude/README.mdadapters/README.mdadapters/hermes/README.mdadapters/deepagents/README.md
{adapters/**,examples/**}
⚙️ CodeRabbit configuration file
{adapters/**,examples/**}: Review adapter and example changes for command correctness, config/schema consistency, artifact handling, and compatibility with the public NeMo Fabric contracts.
Files:
examples/notebooks/01_quickstart.ipynbadapters/claude/fabric-adapter.jsonexamples/harbor/README.mdadapters/claude/src/nemo_fabric_adapters/claude/adapter.pyadapters/codex/README.mdexamples/code_review_agent/config.pyexamples/harbor/swebench/adapters/claude/fabric-adapter.jsonadapters/claude/README.mdadapters/README.mdexamples/notebooks/02_variations.ipynbadapters/hermes/README.mdadapters/deepagents/README.md
**/*.{json,jsonschema}
📄 CodeRabbit inference engine (CONTRIBUTING.md)
Public contract changes must keep checked-in JSON Schema snapshots synchronized.
Files:
adapters/claude/fabric-adapter.jsonschemas/run-plan.schema.jsontests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsoncrates/fabric-cli/assets/adapters/claude/fabric-adapter.jsonexamples/harbor/swebench/adapters/claude/fabric-adapter.jsonschemas/adapter-descriptor.schema.json
schemas/**/*
⚙️ CodeRabbit configuration file
schemas/**/*: Schemas are generated public contract snapshots. Check that schema diffs correspond to intentional Rust type changes and are covered by core tests.
Files:
schemas/run-plan.schema.jsonschemas/SCHEMA.mdschemas/adapter-descriptor.schema.json
tests/adapters/**/*.py
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
tests/adapters/**/*.py: If an adapter or integration changes, run its focused tests.
For adapter behavior changes, run focused adapter tests undertests/adapters, then runjust test-python.
Files:
tests/adapters/test_codex_adapter.pytests/adapters/test_claude_adapter.py
**/SKILL.md
📄 CodeRabbit inference engine (.agents/skills/README.md)
**/SKILL.md: Maintainer skills must begin with YAML frontmatter containing at leastnameanddescription.
Maintainer skills may reference repository internals, build and test commands, and contribution workflows, but external usage guidance must remain in the top-levelskills/directory.
Files:
skills/integrations/consumer/nemo-fabric-integrate/SKILL.md
⚙️ CodeRabbit configuration file
**/SKILL.md: Do not flag SKILL.md files for missing SPDX headers. Skill entrypoints intentionally start with YAML frontmatter instead.
Verify that every SKILL.md keeps valid YAML frontmatter with at least name and description fields before the Markdown body.
Files:
skills/integrations/consumer/nemo-fabric-integrate/SKILL.md
**/*.rs
📄 CodeRabbit inference engine (.agents/skills/contribute-api/SKILL.md)
Implement new runtime or binding behavior in the shared Rust core first.
**/*.rs: Format Rust code withcargo fmt --all; Rust formatting checks must pass withcargo fmt --all -- --check.
Rust workspace changes must passcargo check --workspace --locked.
Files:
crates/fabric-core/src/schema.rscrates/fabric-cli/src/presets.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rscrates/fabric-core/src/config.rs
crates/fabric-core/**/*.{rs,py}
📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)
Changes under
crates/fabric-coremust run both the Rust and Python test suites.
Files:
crates/fabric-core/src/schema.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/error.rscrates/fabric-core/src/config.rs
crates/fabric-core/**/*.rs
📄 CodeRabbit inference engine (.agents/skills/review-doc-style/SKILL.md)
For Rust API reference changes, update Rust documentation comments under
crates/fabric-core/instead of editing generated reference output.If
crates/fabric-corechanges in a way exposed through Python, run both the Rust and Python suites.
Files:
crates/fabric-core/src/schema.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/error.rscrates/fabric-core/src/config.rs
**/*.{rs,rmeta}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
If Rust code changes, run
cargo fmt --all -- --checkandjust test-rust.
Files:
crates/fabric-core/src/schema.rscrates/fabric-cli/src/presets.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rscrates/fabric-core/src/config.rs
crates/fabric-core/src/**/*.rs
⚙️ CodeRabbit configuration file
crates/fabric-core/src/**/*.rs: Review the Rust core for runtime lifecycle correctness, handle validation, capability routing accuracy, schema stability, and error semantics.
Public API changes should match committed schemas, tests, and documentation.
Files:
crates/fabric-core/src/schema.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/error.rscrates/fabric-core/src/config.rs
docs/reference/api/**
📄 CodeRabbit inference engine (AGENTS.md)
Regenerate or update generated API references under
docs/reference/api/when the public API changes.Treat all files under
docs/reference/api/as generated output and do not modify them directly.
Files:
docs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdx
adapters/*/README.md
📄 CodeRabbit inference engine (AGENTS.md)
Update adapter README files when public behavior, examples, or supported bindings change.
Files:
adapters/codex/README.mdadapters/claude/README.mdadapters/hermes/README.mdadapters/deepagents/README.md
schemas/SCHEMA.md
📄 CodeRabbit inference engine (AGENTS.md)
Keep the JSON Schema notes in
schemas/SCHEMA.mdcurrent when the public API or Python/Rust binding contract changes.
Files:
schemas/SCHEMA.md
docs/sdk/python.mdx
📄 CodeRabbit inference engine (AGENTS.md)
Keep
docs/sdk/python.mdxcurrent when the public Python API changes.
Files:
docs/sdk/python.mdx
crates/fabric-python/**/*.{rs,toml}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
If the PyO3 bridge or package metadata changes, run
just build-pythonandcargo check -p fabric-python --locked.
Files:
crates/fabric-python/src/lib.rs
crates/fabric-python/**/*
⚙️ CodeRabbit configuration file
crates/fabric-python/**/*: Treat native binding changes as public API changes. Check JSON/type conversion, error propagation, GIL/thread behavior, and parity with the Python SDK.
Files:
crates/fabric-python/src/lib.rs
**/ATTRIBUTIONS-*.md
📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)
Regenerate and include changed
ATTRIBUTIONS-*.mdfiles.
Files:
ATTRIBUTIONS-Rust.md
🧠 Learnings (3)
📚 Learning: 2026-06-29T22:34:52.407Z
Learnt from: AjayThorve
Repo: NVIDIA/NeMo-Fabric PR: 27
File: adapters/codex-cli/fabric-adapter.json:13-15
Timestamp: 2026-06-29T22:34:52.407Z
Learning: In NeMo-Fabric adapter manifest files (e.g., `*/fabric-adapter.json`), keep `config.accepts` limited to the top-level Fabric capability sections that `resolve_capability_plan` consumes (such as `models`, `tools`, `mcp`, `skills`, `telemetry`). Do not add adapter-owned `harness.settings` keys to `config.accepts`; `harness.settings` should remain adapter-owned and be passed through unchanged.
Applied to files:
adapters/claude/fabric-adapter.jsontests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsoncrates/fabric-cli/assets/adapters/claude/fabric-adapter.jsonexamples/harbor/swebench/adapters/claude/fabric-adapter.json
📚 Learning: 2026-07-09T22:28:51.689Z
Learnt from: AjayThorve
Repo: NVIDIA/NeMo-Fabric PR: 43
File: adapters/claude-sdk/src/nemo_fabric_adapters/claude_sdk/adapter.py:164-168
Timestamp: 2026-07-09T22:28:51.689Z
Learning: In the NeMo-Fabric adapters, treat path values used in Fabric adapter configuration (including logic like `_resolve_path` in adapter.py) as config-root-relative. Do not apply `Path.expanduser()` (or otherwise apply `~`/home or shell-style expansion), because it will make the resolved paths normalize inconsistently across adapters. Also, do not rely on or add any resolution behavior that uses `harness.settings.cwd` as an override point for these adapter paths—`harness.settings.cwd` is explicitly unsupported in this adapter context.
Applied to files:
adapters/claude/src/nemo_fabric_adapters/claude/adapter.py
📚 Learning: 2026-07-24T16:07:22.255Z
Learnt from: AjayThorve
Repo: NVIDIA/NeMo-Fabric PR: 118
File: docs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdx:5-5
Timestamp: 2026-07-24T16:07:22.255Z
Learning: In this repo, files generated under `docs/reference/api/**` are NVIDIA NeMo Fabric API reference output. When reviewing changes to these generated pages, do not treat sidebar `position`/ordering updates as direct manual edits—these can be regenerated by running `just docs` after adding public types. Only flag substantive content changes that are not explained by generation.
Applied to files:
docs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdx
🪛 ast-grep (0.45.0)
tests/python/test_notebook_examples.py
[error] 41-41: The use of exec can be insecure
Context: exec(compile(source, str(QUICKSTART_NOTEBOOK), "exec"), namespace)
Note: [CWE-94] Improper Control of Generation of Code ('Code Injection').
(no-exec)
[warning] 41-41: The use of compile can be insecure
Context: compile(source, str(QUICKSTART_NOTEBOOK), "exec")
Note: [CWE-94] Improper Control of Generation of Code ('Code Injection').
(no-compile)
tests/python/test_installed_adapter_discovery.py
[info] 52-52: use jsonify instead of json.dumps for JSON output
Context: json.dumps(data)
Note: [CWE-116] Improper Encoding or Escaping of Output.
(use-jsonify)
[error] 127-137: Command coming from incoming request
Context: subprocess.run(
[
"uv",
"build",
"--wheel",
"--out-dir",
str(wheelhouse),
str(ROOT / "adapters" / "claude"),
],
check=True,
)
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
(subprocess-from-request)
[error] 142-145: Command coming from incoming request
Context: subprocess.run(
["uv", "pip", "install", "--python", str(python), "--no-deps", str(wheel)],
check=True,
)
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
(subprocess-from-request)
🪛 Ruff (0.16.0)
examples/notebooks/02_variations.ipynb
[warning] 274-274: Abstract raise to an inner function
(TRY301)
[warning] 274-274: Avoid specifying long messages outside the exception class
(TRY003)
[warning] 279-279: Abstract raise to an inner function
(TRY301)
[warning] 279-279: Avoid specifying long messages outside the exception class
(TRY003)
[warning] 283-283: Abstract raise to an inner function
(TRY301)
[warning] 283-283: Avoid specifying long messages outside the exception class
(TRY003)
[warning] 297-297: Do not catch blind exception: Exception
(BLE001)
tests/e2e/test_claude.py
[warning] 36-36: Missing return type annotation for private function _use_current_python_for_adapter_discovery
(ANN202)
tests/python/test_installed_adapter_discovery.py
[error] 128-128: subprocess call: check for execution of untrusted input
(S603)
[error] 129-136: Starting a process with a partial executable path
(S607)
[error] 143-143: subprocess call: check for execution of untrusted input
(S603)
[error] 144-144: Starting a process with a partial executable path
(S607)
| if let Some(schema) = &descriptor.settings_schema { | ||
| let schema = Value::Object(schema.clone()); | ||
| jsonschema::meta::options() | ||
| .validate(&schema) | ||
| .map_err(|error| FabricError::InvalidAdapterDescriptor { | ||
| path: path.to_path_buf(), | ||
| message: format!("settings_schema is not valid JSON Schema: {error}"), | ||
| })?; | ||
| jsonschema::validator_for(&schema).map_err(|error| { | ||
| FabricError::InvalidAdapterDescriptor { | ||
| path: path.to_path_buf(), | ||
| message: format!("settings_schema could not be compiled: {error}"), | ||
| } | ||
| })?; | ||
| } |
There was a problem hiding this comment.
🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick win
🧩 Analysis chain
🌐 Web query:
Does the Rust jsonschema crate version 0.49 expose jsonschema::meta::options() with a chained .validate(&schema) method?
💡 Result:
No, the Rust jsonschema crate does not expose a method with that specific signature. While the crate provides both jsonschema::options [1] and meta-schema validation capabilities via the jsonschema::meta module [2], they do not form a single chained method call of the type jsonschema::meta::options.validate(&schema). The configuration for standard validation is accessed via the top-level jsonschema::options function [1], which returns a ValidationOptions builder [1]. This builder is used to configure validation before calling.build(&schema) [3][1] to create a reusable validator, or to use other methods on the validator instance. Meta-schema validation is handled through the jsonschema::meta module [2]. The function jsonschema::meta::options returns a MetaSchemaOptions struct [2], which provides its own dedicated.validate(&schema) method to check if a schema is valid according to its meta-schema [2]. The two APIs (general validation and meta-schema validation) are distinct and not chained in the manner described [2][1].
Citations:
- 1: https://docs.rs/jsonschema/latest/jsonschema/fn.options.html
- 2: https://docs.rs/jsonschema/latest/jsonschema/meta/struct.MetaSchemaOptions.html
- 3: https://docs.rs/jsonschema/latest/jsonschema/
🏁 Script executed:
#!/bin/bash
set -euo pipefail
# Inspect the relevant config functions and nearby types.
FILE="crates/fabric-core/src/config.rs"
sed -n '1450,1585p' "$FILE" | cat -n
# Look for any existing caching or precompiled validator storage.
rg -n "ResolvedAdapterDescriptor|validator_for|settings_schema|MetaSchemaOptions|compiled validator|Validator" crates/fabric-core/src/config.rs crates/fabric-core/src -g '!**/target/**'Repository: NVIDIA/NeMo-Fabric
Length of output: 11094
🏁 Script executed:
#!/bin/bash
set -euo pipefail
sed -n '120,230p' crates/fabric-core/src/config.rs | cat -n
rg -n "derive\\(|Serialize|Deserialize|skip|validator" crates/fabric-core/src/config.rs crates/fabric-core/src/schema.rsRepository: NVIDIA/NeMo-Fabric
Length of output: 23047
Cache the compiled settings_schema validator
validate_harness_settings recompiles the same schema on every resolve_run_plan call, even though descriptor loading already compiles it once. Store a compiled validator with the resolved descriptor to avoid repeating that work.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@crates/fabric-core/src/config.rs` around lines 1494 - 1508, Cache the
compiled settings_schema validator when loading the descriptor, then store it
alongside the resolved descriptor and reuse it in validate_harness_settings
during resolve_run_plan. Replace the repeated jsonschema::validator_for
compilation while preserving the existing schema validation and
invalid-descriptor error handling.
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@adapters/claude/src/nemo_fabric_adapters/claude/adapter.py`:
- Line 554: Update the Claude adapter’s tool configuration around allowed_tools
so enabled Claude tools retain an explicit approval path and can execute with
permission_mode="dontAsk" in headless use. Restore the appropriate auto-approval
tool list, or add coverage that verifies enabled tools can be invoked under that
permission mode.
In `@examples/harbor/swebench/adapters/claude/fabric-adapter.json`:
- Around line 9-42: add a focused parity test alongside
test_installed_claude_wheel_supplies_metadata_and_settings_schema that loads the
example Claude fabric-adapter.json and the canonical
adapters/claude/fabric-adapter.json, then asserts their settings_schema objects
are identical. Ensure the check covers future schema changes without duplicating
or hardcoding schema fields.
In `@examples/notebooks/02_variations.ipynb`:
- Around line 273-310: Move the blocker(harness) evaluation and its NOT RUN
handling before fabric.plan(cfg, base_dir=BASE_DIR) in the harness loop. Only
build the plan and execute the run when blocker(harness) returns no reason,
while preserving the existing output and continuing to later variants when a
harness is unavailable.
In `@tests/python/test_harness_settings_validation.py`:
- Line 119: Remove the `@pytest.mark.asyncio` decorator from the affected async
test in test_harness_settings_validation.py, leaving the test function and its
automatic async-runner behavior unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: dff2f022-961c-4025-9ccd-91635657f645
⛔ Files ignored due to path filters (1)
Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing (46)
ATTRIBUTIONS-Rust.mdCargo.tomlREADME.mdadapters/README.mdadapters/claude/README.mdadapters/claude/fabric-adapter.jsonadapters/claude/src/nemo_fabric_adapters/claude/adapter.pyadapters/codex/README.mdadapters/deepagents/README.mdadapters/hermes/README.mdcrates/fabric-cli/assets/adapters/claude/fabric-adapter.jsoncrates/fabric-cli/src/presets.rscrates/fabric-core/Cargo.tomlcrates/fabric-core/src/config.rscrates/fabric-core/src/error.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/schema.rscrates/fabric-python/src/lib.rsdocs/integrations/harness/claude.mdxdocs/integrations/harness/codex.mdxdocs/integrations/harness/deepagents.mdxdocs/integrations/harness/hermes.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/sdk/python.mdxexamples/code_review_agent/config.pyexamples/harbor/README.mdexamples/harbor/calculator/README.mdexamples/harbor/swebench/adapters/claude/fabric-adapter.jsonexamples/notebooks/01_quickstart.ipynbexamples/notebooks/02_variations.ipynbpython/src/nemo_fabric/integrations/harbor/fabric_agent.pyschemas/SCHEMA.mdschemas/adapter-descriptor.schema.jsonschemas/run-plan.schema.jsonskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdtests/adapters/test_claude_adapter.pytests/adapters/test_codex_adapter.pytests/e2e/test_claude.pytests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsontests/integrations/test_harbor_runner.pytests/python/test_harness_settings_validation.pytests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.pytests/python/test_readme_examples.py
💤 Files with no reviewable changes (2)
- python/src/nemo_fabric/integrations/harbor/fabric_agent.py
- examples/harbor/calculator/README.md
📜 Review details
🧰 Additional context used
📓 Path-based instructions (57)
**/*.{md,rst}
📄 CodeRabbit inference engine (.agents/skills/contribute-api/SKILL.md)
Update documentation and examples in the same branch as the public API change.
Files:
examples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdschemas/SCHEMA.mdREADME.mdadapters/hermes/README.mdadapters/claude/README.mdadapters/codex/README.mdadapters/deepagents/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdadapters/README.mdATTRIBUTIONS-Rust.md
{README.md,docs/**/*.{md,mdx,yml},examples/**/*.{md,mdx,yml}}
📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)
Keep package names, repository references, and build commands current in documentation and examples.
Files:
examples/harbor/README.mdREADME.mddocs/integrations/harness/hermes.mdxdocs/integrations/harness/claude.mdxdocs/integrations/harness/codex.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/sdk/python.mdx
{docs/**/*.{md,mdx,yml},examples/**/*.{md,mdx,yml}}
📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)
Update relevant getting-started, reference, adapter, and example documentation when the corresponding examples or adapters change.
Files:
examples/harbor/README.mddocs/integrations/harness/hermes.mdxdocs/integrations/harness/claude.mdxdocs/integrations/harness/codex.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/sdk/python.mdx
**/*
📄 CodeRabbit inference engine (.agents/skills/karpathy-guidelines/SKILL.md)
**/*: Before implementing, explicitly state assumptions, surface ambiguity and tradeoffs, present multiple interpretations when relevant, and ask for clarification rather than silently deciding or proceeding when requirements are unclear.
Prefer the minimum code needed to solve the requested problem: avoid speculative features, unnecessary abstractions, unrequested flexibility, and handling of impossible scenarios; simplify overcomplicated solutions.
When editing existing code, make surgical changes only: do not modify unrelated code, comments, formatting, or pre-existing dead code; match the existing style, and remove only unused imports, variables, or functions introduced by your changes.
Define verifiable success criteria for each task, such as writing regression tests for bugs and invalid-input tests for validation, then verify the implementation against those criteria. For multi-step work, state a brief plan with a verification check for each step.
**/*: Always spellNVIDIAin all caps; do not useNvidia,nvidia,nVidia,nVIDIA, orNV.
Usean NVIDIAbefore a noun, because the name begins with an “en” sound.
Do not add a registered trademark symbol afterNVIDIAwhen referring to the company; use trademark symbols with product names only when required by the document type or legal guidance.
Verify official capitalization, spacing, hyphenation, and spelling for NVIDIA and third-party product names; do not rewrite official product names for grammar or title-case rules.
Precede NVIDIA product names withNVIDIAon first mention when natural and accurate, and link the first mention when the destination helps the reader.
On first use, include the company name and full model qualifier when it helps identify the model; preserve official capitalization and punctuation, and use shorter family names only after establishing the full name.
For learning-oriented and developer content, do not force trademark symbols unless explicitly required; for press, ...
Files:
examples/harbor/README.mdcrates/fabric-core/src/schema.rsskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdtests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsonCargo.tomlexamples/notebooks/01_quickstart.ipynbexamples/code_review_agent/config.pyschemas/SCHEMA.mdschemas/run-plan.schema.jsoncrates/fabric-core/src/runtime.rstests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyREADME.mdadapters/hermes/README.mdadapters/claude/fabric-adapter.jsondocs/integrations/harness/hermes.mdxadapters/claude/README.mdadapters/claude/src/nemo_fabric_adapters/claude/adapter.pyschemas/adapter-descriptor.schema.jsonadapters/codex/README.mddocs/integrations/harness/claude.mdxcrates/fabric-core/Cargo.tomldocs/integrations/harness/codex.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxcrates/fabric-cli/assets/adapters/claude/fabric-adapter.jsoncrates/fabric-cli/src/presets.rsdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/deepagents/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdadapters/README.mdtests/adapters/test_claude_adapter.pydocs/sdk/python.mdxtests/python/test_notebook_examples.pycrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rsexamples/harbor/swebench/adapters/claude/fabric-adapter.jsontests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pyATTRIBUTIONS-Rust.mdexamples/notebooks/02_variations.ipynbtests/python/test_installed_adapter_discovery.pycrates/fabric-core/src/config.rs
**/*.{md,mdx,rst}
📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-guide.md)
**/*.{md,mdx,rst}: For NeMo Fabric documentation, verify technical claims against the current repository, public API, or documented command before reviewing style.
Always spellNVIDIAin all caps; do not useNvidia,nvidia, orNV.
Format commands, code elements, expressions, package names, file names, and paths as inline code.
Use descriptive link text; avoid raw URLs and weak anchors such ashereorread more.
Use title case consistently for technical documentation headings.
Introduce code blocks, lists, tables, and images with complete sentences.
Write procedures as imperative, parallel steps; split long procedures into smaller tasks.
Prefer active voice, present tense, short sentences, contractions, and plain English while preserving necessary technical precision.
Usecanfor possibility and reservemayfor permission.
Useafterfor temporal relationships instead ofonce, and preferrefer tooverseewhen directing readers to another resource.
Avoid culture-specific idioms, unnecessary Latinisms, jokes, and marketing exaggeration in technical documentation.
Spell out months in body text, avoid ordinal dates, and use clear time zones.
Spell out whole numbers from zero through nine unless they are technical values, parameters, versions, or UI values; use numerals for 10 or greater and commas in thousands.
Do not add trademark symbols to learning-oriented documentation unless the source, platform, or legal guidance explicitly requires them.
Do not replace precise technical terms with simpler words when doing so would lose precision.
Do not flag passive voice when the actor is unknown or the action is the important part.
Do not rewrite API names, package names, command flags, or code literals for style.
**/*.{md,mdx,rst}: Use consistent title case for technical-document headings and table headers; avoid quotation marks, ampersands, and exclamation marks in headings, while preserving official product, event, research, and whitepaper title ...
Files:
examples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdschemas/SCHEMA.mdREADME.mdadapters/hermes/README.mddocs/integrations/harness/hermes.mdxadapters/claude/README.mdadapters/codex/README.mddocs/integrations/harness/claude.mdxdocs/integrations/harness/codex.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/deepagents/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdadapters/README.mddocs/sdk/python.mdxATTRIBUTIONS-Rust.md
**/*.{md,rst,txt,adoc}
📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-language-mechanics.md)
**/*.{md,rst,txt,adoc}: For technical documentation, use professional, active, conversational, engaging, precise, and plain-English prose. Prefer active voice, present tense, short sentences, and scannable paragraphs. Avoid casual or imprecise language, swearing, threats, insults, jokes, puns, culture-specific idioms, marketing exaggeration, and unsupported third-party comparisons.
Usecanfor possibility and reservemayfor permission; useafterfor temporal order; userefer tofor cross-references; prefer short direct sentences and specific verbs; avoid unnecessarypleasein technical documentation.
Prefer active voice when the actor matters. Passive voice is acceptable when the actor is unknown or irrelevant, when the action or result is the focus, or in programmer documentation.
Use natural contractions in conversational technical prose, but do not force them in formal legal copy, API references, or generated text.
Prefer simpler English over Latinisms: usefor exampleorsuch asinstead ofe.g.,and so oninstead ofetc.,that isinstead ofi.e.,compared toinstead ofvs., andby,through, orusinginstead ofvia. Use industry-standard terms such as in silico, in vitro, and in vivo when appropriate, and italicize them in running text.
Usethatwithout commas for essential clauses, andwhichwith commas for nonessential clauses.
Format dates and times clearly: spell out months in body text; use forms such asJune 12, 2025; avoid numeric or ordinal dates; capitalize days; use 12-hour time when appropriate; include a space beforea.m.orp.m.; useETandPTfor needed time zones; avoid24/7; and preferfrom 12:30 to 1:00 p.m.for prose ranges.
Format numbers consistently: spell out zero through nine in body text, use numerals for 10 or greater and for technical values, use commas in thousands, do not begin a sentence with a numeral, spell out ordinals, and use numerals consistently within a category wh...
Files:
examples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdschemas/SCHEMA.mdREADME.mdadapters/hermes/README.mdadapters/claude/README.mdadapters/codex/README.mdadapters/deepagents/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdadapters/README.mdATTRIBUTIONS-Rust.md
**/README.md
📄 CodeRabbit inference engine (.agents/skills/review-doc-style/SKILL.md)
Update relevant package, crate, adapter, and integration README files when public behavior or entry-point documentation changes.
Files:
examples/harbor/README.mdREADME.mdadapters/hermes/README.mdadapters/claude/README.mdadapters/codex/README.mdadapters/deepagents/README.mdadapters/README.md
**/*.{md,mdx}
📄 CodeRabbit inference engine (.agents/skills/review-doc-style/SKILL.md)
**/*.{md,mdx}: Use the full product nameNVIDIA NeMo Fabricon its first usage, typically in the title or H1; useNeMo Fabricthereafter.
Usefabricby itself only when referring to the CLI tool, and surround those references with backticks.
CapitalizeNVIDIAcorrectly in public documentation.
Format commands, code elements, expressions, file names, paths, and filenames as inline code where needed.
Use title case consistently for headings in technical documentation.
Introduce code blocks, tables, and lists with complete lead-in sentences.
Use descriptive anchor text instead of raw URLs or generic link text such ashere.
Prefer active voice, present tense, short sentences, and plain English.
Use consistent terminology for the same concept throughout a document.
Write procedures as imperative, parallel, easy-to-scan steps, and split long sequences into smaller tasks.
Useafterinstead ofoncewhen expressing temporal sequence.
Usecaninstead ofmaywhen the intended meaning is possibility rather than permission.
Avoid ambiguous numeric dates and ordinal dates in body text.
For learning-oriented documentation, do not force trademark symbols unless the source document explicitly requires them.
Introduce examples' code blocks with full sentences and ensure examples match current APIs and build commands.For docs site changes, run
just docsto regenerate Python and Rust API references and validate the Fern configuration.
Files:
examples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdschemas/SCHEMA.mdREADME.mdadapters/hermes/README.mddocs/integrations/harness/hermes.mdxadapters/claude/README.mdadapters/codex/README.mddocs/integrations/harness/claude.mdxdocs/integrations/harness/codex.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/deepagents/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdadapters/README.mddocs/sdk/python.mdxATTRIBUTIONS-Rust.md
**/*.{rs,py,html,md,mdx,toml,yml,yaml,sh,bash}
📄 CodeRabbit inference engine (CONTRIBUTING.md)
All Rust, Python, HTML, Markdown, MDX, TOML, YAML, and shell source files must include the project SPDX copyright and Apache-2.0 license headers using the comment syntax appropriate to each file type.
Files:
examples/harbor/README.mdcrates/fabric-core/src/schema.rsskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdCargo.tomlexamples/code_review_agent/config.pyschemas/SCHEMA.mdcrates/fabric-core/src/runtime.rstests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyREADME.mdadapters/hermes/README.mddocs/integrations/harness/hermes.mdxadapters/claude/README.mdadapters/claude/src/nemo_fabric_adapters/claude/adapter.pyadapters/codex/README.mddocs/integrations/harness/claude.mdxcrates/fabric-core/Cargo.tomldocs/integrations/harness/codex.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxcrates/fabric-cli/src/presets.rsdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/deepagents/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdadapters/README.mdtests/adapters/test_claude_adapter.pydocs/sdk/python.mdxtests/python/test_notebook_examples.pycrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rstests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pyATTRIBUTIONS-Rust.mdtests/python/test_installed_adapter_discovery.pycrates/fabric-core/src/config.rs
**/{README.md,*.md,*.mdx}
📄 CodeRabbit inference engine (CONTRIBUTING.md)
Update relevant documentation when changes affect public behavior, adapters, examples, or workspace structure.
Files:
examples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdschemas/SCHEMA.mdREADME.mdadapters/hermes/README.mddocs/integrations/harness/hermes.mdxadapters/claude/README.mdadapters/codex/README.mddocs/integrations/harness/claude.mdxdocs/integrations/harness/codex.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/deepagents/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdadapters/README.mddocs/sdk/python.mdxATTRIBUTIONS-Rust.md
**/*.md
📄 CodeRabbit inference engine (.agents/skills/README.md)
Documentation and examples must be updated consistently with changes to public behavior and reviewed for NVIDIA technical-writing style.
Files:
examples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdschemas/SCHEMA.mdREADME.mdadapters/hermes/README.mdadapters/claude/README.mdadapters/codex/README.mdadapters/deepagents/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdadapters/README.mdATTRIBUTIONS-Rust.md
{adapters/**,examples/**}
⚙️ CodeRabbit configuration file
{adapters/**,examples/**}: Review adapter and example changes for command correctness, config/schema consistency, artifact handling, and compatibility with the public NeMo Fabric contracts.
Files:
examples/harbor/README.mdexamples/notebooks/01_quickstart.ipynbexamples/code_review_agent/config.pyadapters/hermes/README.mdadapters/claude/fabric-adapter.jsonadapters/claude/README.mdadapters/claude/src/nemo_fabric_adapters/claude/adapter.pyadapters/codex/README.mdadapters/deepagents/README.mdadapters/README.mdexamples/harbor/swebench/adapters/claude/fabric-adapter.jsonexamples/notebooks/02_variations.ipynb
{*.md,**/*.md,**/*.mdx,**/*.ipynb}
⚙️ CodeRabbit configuration file
{*.md,**/*.md,**/*.mdx,**/*.ipynb}: Enforce the product name in user-facing prose: use "NVIDIA NeMo Fabric" on first use and "NeMo Fabric" thereafter. Flag standalone capitalized "Fabric" when it refers to the product. Do not flag the lowercasefabricCLI command, package/import/crate names, code identifiers, API symbols, configuration keys, file paths, or unrelated generic uses of the word.
Files:
examples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdexamples/notebooks/01_quickstart.ipynbschemas/SCHEMA.mdREADME.mdadapters/hermes/README.mddocs/integrations/harness/hermes.mdxadapters/claude/README.mdadapters/codex/README.mddocs/integrations/harness/claude.mdxdocs/integrations/harness/codex.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/deepagents/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdadapters/README.mddocs/sdk/python.mdxATTRIBUTIONS-Rust.mdexamples/notebooks/02_variations.ipynb
**/*.rs
📄 CodeRabbit inference engine (.agents/skills/contribute-api/SKILL.md)
Implement new runtime or binding behavior in the shared Rust core first.
**/*.rs: Format Rust code withcargo fmt --all; Rust formatting checks must pass withcargo fmt --all -- --check.
Rust workspace changes must passcargo check --workspace --locked.
Files:
crates/fabric-core/src/schema.rscrates/fabric-core/src/runtime.rscrates/fabric-cli/src/presets.rscrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rscrates/fabric-core/src/config.rs
**/*.{rs,py,pyi,json,yaml,yml}
📄 CodeRabbit inference engine (.agents/skills/contribute-api/SKILL.md)
Determine and update every affected public surface, including the CLI, PyO3 bindings, Python SDK, type stubs, schemas, and adapter contract, so they remain in parity.
Files:
crates/fabric-core/src/schema.rstests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsonexamples/code_review_agent/config.pyschemas/run-plan.schema.jsoncrates/fabric-core/src/runtime.rstests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/fabric-adapter.jsonadapters/claude/src/nemo_fabric_adapters/claude/adapter.pyschemas/adapter-descriptor.schema.jsoncrates/fabric-cli/assets/adapters/claude/fabric-adapter.jsoncrates/fabric-cli/src/presets.rstests/adapters/test_claude_adapter.pytests/python/test_notebook_examples.pycrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rsexamples/harbor/swebench/adapters/claude/fabric-adapter.jsontests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pytests/python/test_installed_adapter_discovery.pycrates/fabric-core/src/config.rs
**/*.{rs,toml}
📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)
For any Rust change, run
just test-rustandcargo fmt --all -- --check.For Rust core, CLI, or shared runtime semantic changes, run Rust formatting and tests, and add Python tests when behavior is exposed through the SDK.
Files:
crates/fabric-core/src/schema.rsCargo.tomlcrates/fabric-core/src/runtime.rscrates/fabric-core/Cargo.tomlcrates/fabric-cli/src/presets.rscrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rscrates/fabric-core/src/config.rs
**/*.{rs,py}
📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)
For native binding changes, run
cargo check -p fabric-python --locked.
**/*.{rs,py}: When changing the Rust core or public schemas, run both the Rust and Python test suites.
When adding functionality, include tests in the corresponding Rust crate or the relevant area undertests/.
Files:
crates/fabric-core/src/schema.rsexamples/code_review_agent/config.pycrates/fabric-core/src/runtime.rstests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-cli/src/presets.rstests/adapters/test_claude_adapter.pytests/python/test_notebook_examples.pycrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rstests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pytests/python/test_installed_adapter_discovery.pycrates/fabric-core/src/config.rs
crates/fabric-core/**/*.{rs,py}
📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)
Changes under
crates/fabric-coremust run both the Rust and Python test suites.
Files:
crates/fabric-core/src/schema.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/error.rscrates/fabric-core/src/config.rs
crates/fabric-core/**/*.rs
📄 CodeRabbit inference engine (.agents/skills/review-doc-style/SKILL.md)
For Rust API reference changes, update Rust documentation comments under
crates/fabric-core/instead of editing generated reference output.If
crates/fabric-corechanges in a way exposed through Python, run both the Rust and Python suites.
Files:
crates/fabric-core/src/schema.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/error.rscrates/fabric-core/src/config.rs
**/*.{rs,rmeta}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
If Rust code changes, run
cargo fmt --all -- --checkandjust test-rust.
Files:
crates/fabric-core/src/schema.rscrates/fabric-core/src/runtime.rscrates/fabric-cli/src/presets.rscrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rscrates/fabric-core/src/config.rs
**/*.{rs,py,pyi}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
**/*.{rs,py,pyi}: If public configuration types change, confirm schema snapshot tests injust test-rustpass and review generated schema diffs.
For schema or public contract changes, run both language suites and review changes underschemas/and generated API references.
Files:
crates/fabric-core/src/schema.rsexamples/code_review_agent/config.pycrates/fabric-core/src/runtime.rstests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-cli/src/presets.rstests/adapters/test_claude_adapter.pytests/python/test_notebook_examples.pycrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rstests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pytests/python/test_installed_adapter_discovery.pycrates/fabric-core/src/config.rs
**/*.{py,pyi,rs}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
For Python SDK or PyO3 binding changes, use
python-tests, run focused pytest tests first, thenjust test-python; rebuild withjust build-pythonwhen native code or packaging changes.
Files:
crates/fabric-core/src/schema.rsexamples/code_review_agent/config.pycrates/fabric-core/src/runtime.rstests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-cli/src/presets.rstests/adapters/test_claude_adapter.pytests/python/test_notebook_examples.pycrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rstests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pytests/python/test_installed_adapter_discovery.pycrates/fabric-core/src/config.rs
**/*.{rs,py,toml}
📄 CodeRabbit inference engine (.agents/skills/update-project-version/SKILL.md)
When editing version helpers, verify every
nemo-fabric-*workspace package through Cargo metadata and reject a static version inpython/pyproject.toml.
Files:
crates/fabric-core/src/schema.rsCargo.tomlexamples/code_review_agent/config.pycrates/fabric-core/src/runtime.rstests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-core/Cargo.tomlcrates/fabric-cli/src/presets.rstests/adapters/test_claude_adapter.pytests/python/test_notebook_examples.pycrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rstests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pytests/python/test_installed_adapter_discovery.pycrates/fabric-core/src/config.rs
**/*.{toml,rs,py}
📄 CodeRabbit inference engine (.agents/skills/update-project-version/SKILL.md)
Avoid blind repository-wide replacement of version-like strings; distinguish package-version references from examples and unrelated dependency versions.
Files:
crates/fabric-core/src/schema.rsCargo.tomlexamples/code_review_agent/config.pycrates/fabric-core/src/runtime.rstests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-core/Cargo.tomlcrates/fabric-cli/src/presets.rstests/adapters/test_claude_adapter.pytests/python/test_notebook_examples.pycrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rstests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pytests/python/test_installed_adapter_discovery.pycrates/fabric-core/src/config.rs
**/*.{py,rs}
📄 CodeRabbit inference engine (CONTRIBUTING.md)
**/*.{py,rs}: Keep native Python binding declarations synchronized with their Rust implementations.
Usesnake_casefor functions and variables; usePascalCasefor Rust types and Python classes.
Files:
crates/fabric-core/src/schema.rsexamples/code_review_agent/config.pycrates/fabric-core/src/runtime.rstests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-cli/src/presets.rstests/adapters/test_claude_adapter.pytests/python/test_notebook_examples.pycrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rstests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pytests/python/test_installed_adapter_discovery.pycrates/fabric-core/src/config.rs
crates/fabric-core/src/**/*.rs
⚙️ CodeRabbit configuration file
crates/fabric-core/src/**/*.rs: Review the Rust core for runtime lifecycle correctness, handle validation, capability routing accuracy, schema stability, and error semantics.
Public API changes should match committed schemas, tests, and documentation.
Files:
crates/fabric-core/src/schema.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/error.rscrates/fabric-core/src/config.rs
skills/**
📄 CodeRabbit inference engine (AGENTS.md)
skills/**: Keep consumer skills underskills/self-contained and dependent only on supported public Python SDK contracts and published documentation; do not add repository-internal contribution guidance.
Keep consumer skills in parity with the public SDK guide, model, and type details when the Python/Rust binding contract changes.
Files:
skills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.md
**/*.{json,jsonschema}
📄 CodeRabbit inference engine (CONTRIBUTING.md)
Public contract changes must keep checked-in JSON Schema snapshots synchronized.
Files:
tests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsonschemas/run-plan.schema.jsonadapters/claude/fabric-adapter.jsonschemas/adapter-descriptor.schema.jsoncrates/fabric-cli/assets/adapters/claude/fabric-adapter.jsonexamples/harbor/swebench/adapters/claude/fabric-adapter.json
{tests/**,python/tests/**}
⚙️ CodeRabbit configuration file
{tests/**,python/tests/**}: Tests should cover the behavior promised by the changed API surface, including error paths, lifecycle cleanup, and SDK/native parity where relevant.
Files:
tests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsontests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pytests/adapters/test_claude_adapter.pytests/python/test_notebook_examples.pytests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pytests/python/test_installed_adapter_discovery.py
{Cargo.toml,python/pyproject.toml,pyproject.toml}
📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)
Keep Rust workspace/package metadata and Python/maturin package metadata internally consistent, including package names, versions, import paths, and module names.
Files:
Cargo.toml
{Cargo.toml,Cargo.lock,pyproject.toml,uv.lock,python/pyproject.toml}
📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)
{Cargo.toml,Cargo.lock,pyproject.toml,uv.lock,python/pyproject.toml}: Keep workspace, Python, and lockfile dependency versions aligned where required, and review both direct and transitive dependency changes from resolved lockfiles.
Inspect resolved transitive licenses, explicitly surface UNKNOWN, non-SPDX/custom, proprietary, source-available, copyleft, or network-copyleft terms, and route unresolved licensing questions to dependency approvers with distribution and linkage context.
Document the functional need, alternatives considered, rationale for the selected dependency, and any unresolved licensing question when introducing dependencies.
Files:
Cargo.toml
{Cargo.toml,pyproject.toml,python/pyproject.toml}
📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)
Before adding a dependency, prefer the standard library, an existing dependency, or a small local implementation when appropriate; otherwise select a maintained, narrow-fit dependency with clear SPDX metadata and a permissive license where possible.
Files:
Cargo.toml
{Cargo.toml,Cargo.lock,pyproject.toml,uv.lock}
📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)
After updating manifests or lockfiles, run
uv run --no-project python scripts/licensing/license_diff.py --base-ref origin/mainand review added packages and license changes.
Files:
Cargo.toml
{pyproject.toml,python/pyproject.toml,Cargo.toml,docs/package.json,.github/workflows/*.yml,justfile}
📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)
Reflect public packaging changes in release-facing documentation and ensure CI references the same package names and commands used by local workflows.
Files:
Cargo.toml
**/{Cargo.toml,Cargo.lock,pyproject.toml,package.json}
📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)
For new or updated dependencies, document the functional need, alternatives considered, and why the selected dependency is the narrowest fit.
Files:
Cargo.tomlcrates/fabric-core/Cargo.toml
**/*.{toml,lock}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
If a manifest or lockfile changes, run the license-diff script against
origin/main, review transitive license changes, and run theattributions-rustandattributions-pythonpre-commit hooks.
Files:
Cargo.tomlcrates/fabric-core/Cargo.toml
**/*.{yml,yaml,toml,lock}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
For CI or packaging changes, use
maintain-ciormaintain-packaging, then run recipes and checks whose behavior changed.
Files:
Cargo.tomlcrates/fabric-core/Cargo.toml
Cargo.toml
📄 CodeRabbit inference engine (.agents/skills/update-project-version/SKILL.md)
Cargo.toml: UseCargo.toml[workspace.package].versionas the source of truth for Rust workspace and Python build versioning.
KeepCargo.toml[workspace.dependencies].nemo-fabric-core.versionaligned with the workspace version.
Use valid Cargo SemVer in Cargo metadata and equivalent PEP 440 syntax in explicit Python metadata for prerelease or build-metadata versions.
Files:
Cargo.toml
**/*.{py,pyi}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
If Python code or a Python-facing adapter changes, run
just test-python.
Files:
examples/code_review_agent/config.pytests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pytests/adapters/test_claude_adapter.pytests/python/test_notebook_examples.pytests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pytests/python/test_installed_adapter_discovery.py
**/*.py
📄 CodeRabbit inference engine (CONTRIBUTING.md)
Use type annotations for public Python APIs.
Files:
examples/code_review_agent/config.pytests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pyadapters/claude/src/nemo_fabric_adapters/claude/adapter.pytests/adapters/test_claude_adapter.pytests/python/test_notebook_examples.pytests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pytests/python/test_installed_adapter_discovery.py
schemas/SCHEMA.md
📄 CodeRabbit inference engine (AGENTS.md)
Keep the JSON Schema notes in
schemas/SCHEMA.mdcurrent when the public API or Python/Rust binding contract changes.
Files:
schemas/SCHEMA.md
schemas/**/*
⚙️ CodeRabbit configuration file
schemas/**/*: Schemas are generated public contract snapshots. Check that schema diffs correspond to intentional Rust type changes and are covered by core tests.
Files:
schemas/SCHEMA.mdschemas/run-plan.schema.jsonschemas/adapter-descriptor.schema.json
tests/**/*.py
📄 CodeRabbit inference engine (.agents/skills/python-tests/SKILL.md)
tests/**/*.py: Use Pytest to run Python tests.
Do not add@pytest.mark.asyncioto tests; async tests are automatically detected and run by the async runner.
Do not add-> Nonereturn type annotations to test functions.
When mocking a class, useunittest.mock.MagicMockorunittest.mock.AsyncMock, using thespecargument when necessary, rather than defining a new class.
Prefix mocked class names withmock, notfake.
Prefer pytest fixtures over helper methods.
Do not repeat fixtures; place fixtures needed by multiple test files inconftest.py.
Define fixtures using@pytest.fixture(name="<fixture_name>"[, scope="<scope>"])and a function named<fixture_name>_fixture; specifyscopeonly when it is notfunction.
Preferpytest.mark.parametrizeover separate tests for different input types.
Use@pytest.mark.usefixtureswhen a fixture is needed but its return value is unused or it does not return a value.
Use the autouserestore_environ_fixturefromtests/conftest.pyto restore environment variables; modify variables withos.environand do not usemonkeypatch.setenv.
Avoid defensive programming in tests; access expected data directly so missing data raises a clear failure, such as usingresults["data"]instead ofresults.get("data").
Files:
tests/python/test_readme_examples.pytests/adapters/test_codex_adapter.pytests/adapters/test_claude_adapter.pytests/python/test_notebook_examples.pytests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pytests/python/test_installed_adapter_discovery.py
tests/adapters/**/*.py
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
tests/adapters/**/*.py: If an adapter or integration changes, run its focused tests.
For adapter behavior changes, run focused adapter tests undertests/adapters, then runjust test-python.
Files:
tests/adapters/test_codex_adapter.pytests/adapters/test_claude_adapter.py
{README.md,docs/index.yml}
📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)
Update
README.mdordocs/index.ymlwhen documentation entry points or example reading paths change.
Files:
README.md
README.md
📄 CodeRabbit inference engine (AGENTS.md)
Update the root
README.mdwhen public behavior, thenemo-fabricpackage, examples, or supported bindings change.Update the top-level
README.mdwhen changed behavior affects an entry point users would naturally consult.
Files:
README.md
{docs/**,README.md,AGENTS.md}
⚙️ CodeRabbit configuration file
{docs/**,README.md,AGENTS.md}: Review documentation for technical accuracy against the current API, command correctness, and consistency with generated schemas.
For links between files under docs/, require paths relative to the source file with the target file's .mdx extension so they work in both Fern builds and repository browsers. Flag Fern site-root links such as NeMo Fabric overview; use the repository-relative equivalent, such as NeMo Fabric overview.
Files:
README.mddocs/integrations/harness/hermes.mdxdocs/integrations/harness/claude.mdxdocs/integrations/harness/codex.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/sdk/python.mdx
adapters/*/README.md
📄 CodeRabbit inference engine (AGENTS.md)
Update adapter README files when public behavior, examples, or supported bindings change.
Files:
adapters/hermes/README.mdadapters/claude/README.mdadapters/codex/README.mdadapters/deepagents/README.md
**/*.mdx
📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)
In MDX files, use JSX comment delimiters (
{/*and*/}) for top-of-file comments, including SPDX headers; do not use HTML comments.Use
{/* ... */}delimiters for top-of-file MDX SPDX comments, not HTML comment delimiters.
Files:
docs/integrations/harness/hermes.mdxdocs/integrations/harness/claude.mdxdocs/integrations/harness/codex.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/sdk/python.mdx
docs/**/*.{md,mdx,yml}
📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)
Run
just docswhen the documentation site changes.
Files:
docs/integrations/harness/hermes.mdxdocs/integrations/harness/claude.mdxdocs/integrations/harness/codex.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/sdk/python.mdx
docs/**/*
📄 CodeRabbit inference engine (AGENTS.md)
Update Fern documentation under
docs/when public behavior, thenemo-fabricpackage, examples, or supported bindings change.
Files:
docs/integrations/harness/hermes.mdxdocs/integrations/harness/claude.mdxdocs/integrations/harness/codex.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/sdk/python.mdx
docs/reference/api/**
📄 CodeRabbit inference engine (AGENTS.md)
Regenerate or update generated API references under
docs/reference/api/when the public API changes.Treat all files under
docs/reference/api/as generated output and do not modify them directly.
Files:
docs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdx
**/SKILL.md
📄 CodeRabbit inference engine (.agents/skills/README.md)
**/SKILL.md: Maintainer skills must begin with YAML frontmatter containing at leastnameanddescription.
Maintainer skills may reference repository internals, build and test commands, and contribution workflows, but external usage guidance must remain in the top-levelskills/directory.
Files:
skills/integrations/consumer/nemo-fabric-integrate/SKILL.md
⚙️ CodeRabbit configuration file
**/SKILL.md: Do not flag SKILL.md files for missing SPDX headers. Skill entrypoints intentionally start with YAML frontmatter instead.
Verify that every SKILL.md keeps valid YAML frontmatter with at least name and description fields before the Markdown body.
Files:
skills/integrations/consumer/nemo-fabric-integrate/SKILL.md
docs/sdk/python.mdx
📄 CodeRabbit inference engine (AGENTS.md)
Keep
docs/sdk/python.mdxcurrent when the public Python API changes.
Files:
docs/sdk/python.mdx
crates/fabric-python/**/*.{rs,toml}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
If the PyO3 bridge or package metadata changes, run
just build-pythonandcargo check -p fabric-python --locked.
Files:
crates/fabric-python/src/lib.rs
crates/fabric-python/**/*
⚙️ CodeRabbit configuration file
crates/fabric-python/**/*: Treat native binding changes as public API changes. Check JSON/type conversion, error propagation, GIL/thread behavior, and parity with the Python SDK.
Files:
crates/fabric-python/src/lib.rs
**/ATTRIBUTIONS-*.md
📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)
Regenerate and include changed
ATTRIBUTIONS-*.mdfiles.
Files:
ATTRIBUTIONS-Rust.md
🧠 Learnings (3)
📚 Learning: 2026-06-29T22:34:52.407Z
Learnt from: AjayThorve
Repo: NVIDIA/NeMo-Fabric PR: 27
File: adapters/codex-cli/fabric-adapter.json:13-15
Timestamp: 2026-06-29T22:34:52.407Z
Learning: In NeMo-Fabric adapter manifest files (e.g., `*/fabric-adapter.json`), keep `config.accepts` limited to the top-level Fabric capability sections that `resolve_capability_plan` consumes (such as `models`, `tools`, `mcp`, `skills`, `telemetry`). Do not add adapter-owned `harness.settings` keys to `config.accepts`; `harness.settings` should remain adapter-owned and be passed through unchanged.
Applied to files:
tests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsonadapters/claude/fabric-adapter.jsoncrates/fabric-cli/assets/adapters/claude/fabric-adapter.jsonexamples/harbor/swebench/adapters/claude/fabric-adapter.json
📚 Learning: 2026-07-09T22:28:51.689Z
Learnt from: AjayThorve
Repo: NVIDIA/NeMo-Fabric PR: 43
File: adapters/claude-sdk/src/nemo_fabric_adapters/claude_sdk/adapter.py:164-168
Timestamp: 2026-07-09T22:28:51.689Z
Learning: In the NeMo-Fabric adapters, treat path values used in Fabric adapter configuration (including logic like `_resolve_path` in adapter.py) as config-root-relative. Do not apply `Path.expanduser()` (or otherwise apply `~`/home or shell-style expansion), because it will make the resolved paths normalize inconsistently across adapters. Also, do not rely on or add any resolution behavior that uses `harness.settings.cwd` as an override point for these adapter paths—`harness.settings.cwd` is explicitly unsupported in this adapter context.
Applied to files:
adapters/claude/src/nemo_fabric_adapters/claude/adapter.py
📚 Learning: 2026-07-24T16:07:22.255Z
Learnt from: AjayThorve
Repo: NVIDIA/NeMo-Fabric PR: 118
File: docs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdx:5-5
Timestamp: 2026-07-24T16:07:22.255Z
Learning: In this repo, files generated under `docs/reference/api/**` are NVIDIA NeMo Fabric API reference output. When reviewing changes to these generated pages, do not treat sidebar `position`/ordering updates as direct manual edits—these can be regenerated by running `just docs` after adding public types. Only flag substantive content changes that are not explained by generation.
Applied to files:
docs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdx
🪛 ast-grep (0.45.0)
tests/python/test_notebook_examples.py
[warning] 41-41: The use of compile can be insecure
Context: compile(source, str(QUICKSTART_NOTEBOOK), "exec")
Note: [CWE-94] Improper Control of Generation of Code ('Code Injection').
(no-compile)
[error] 41-41: The use of exec can be insecure
Context: exec(compile(source, str(QUICKSTART_NOTEBOOK), "exec"), namespace)
Note: [CWE-94] Improper Control of Generation of Code ('Code Injection').
(no-exec)
tests/python/test_installed_adapter_discovery.py
[info] 52-52: use jsonify instead of json.dumps for JSON output
Context: json.dumps(data)
Note: [CWE-116] Improper Encoding or Escaping of Output.
(use-jsonify)
[error] 127-137: Command coming from incoming request
Context: subprocess.run(
[
"uv",
"build",
"--wheel",
"--out-dir",
str(wheelhouse),
str(ROOT / "adapters" / "claude"),
],
check=True,
)
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
(subprocess-from-request)
[error] 142-145: Command coming from incoming request
Context: subprocess.run(
["uv", "pip", "install", "--python", str(python), "--no-deps", str(wheel)],
check=True,
)
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
(subprocess-from-request)
🪛 Ruff (0.16.0)
tests/e2e/test_claude.py
[warning] 36-36: Missing return type annotation for private function _use_current_python_for_adapter_discovery
(ANN202)
examples/notebooks/02_variations.ipynb
[warning] 274-274: Abstract raise to an inner function
(TRY301)
[warning] 274-274: Avoid specifying long messages outside the exception class
(TRY003)
[warning] 279-279: Abstract raise to an inner function
(TRY301)
[warning] 279-279: Avoid specifying long messages outside the exception class
(TRY003)
[warning] 283-283: Abstract raise to an inner function
(TRY301)
[warning] 283-283: Avoid specifying long messages outside the exception class
(TRY003)
[warning] 297-297: Do not catch blind exception: Exception
(BLE001)
tests/python/test_installed_adapter_discovery.py
[error] 128-128: subprocess call: check for execution of untrusted input
(S603)
[error] 129-136: Starting a process with a partial executable path
(S607)
[error] 143-143: subprocess call: check for execution of untrusted input
(S603)
[error] 144-144: Starting a process with a partial executable path
(S607)
| "for harness in HARNESSES:\n", | ||
| " cfg = for_harness(harness)\n", | ||
| " plan = fabric.plan(cfg, base_dir=BASE_DIR)\n", | ||
| " rc = plan.config.runtime\n", | ||
| " model = plan.config.models[\"default\"][\"model\"]\n", | ||
| " print(f\"### {harness['name']}\")\n", | ||
| " print(f\" adapter = {plan.adapter.adapter_id}\")\n", | ||
| " print(f\" model = {model} input schema = {rc.input_schema}\")\n", | ||
| " reason = blocker(harness)\n", | ||
| " if reason:\n", | ||
| " print(f\" NOT RUN here ({reason}).\")\n", | ||
| " print(f\" To run it, provide: {harness['needs']}\")\n", | ||
| " else:\n", | ||
| " try:\n", | ||
| " result = await fabric.run(cfg, base_dir=BASE_DIR, input=PROMPT)\n", | ||
| " print(f\" RAN -> {result.status}\")\n", | ||
| " print(f\" reply: {oneline(getattr(result.output, 'response', result.output))}\")\n", | ||
| " if result.status != \"succeeded\":\n", | ||
| " detail = failure_detail(result)\n", | ||
| " print(\" error:\", json.dumps(detail, indent=2))\n", | ||
| " run_failures.append(f\"{harness['name']}: {json.dumps(detail, sort_keys=True)}\")\n", | ||
| " except Exception as error:\n", | ||
| " print(f\" run failed ({type(error).__name__}: {oneline(error, 120)}).\")\n", | ||
| " print(\" Attempted run failed; continuing with remaining variants.\")\n", | ||
| " run_failures.append(f\"{harness['name']}: {type(error).__name__}: {error}\")\n", | ||
| " print()" | ||
| " previous_adapter_python = os.environ.get(\"ADAPTER_PYTHON\")\n", | ||
| " try:\n", | ||
| " adapter_python = harness.get(\"python\")\n", | ||
| " if adapter_python:\n", | ||
| " os.environ[\"ADAPTER_PYTHON\"] = str(adapter_python)\n", | ||
| " else:\n", | ||
| " os.environ.pop(\"ADAPTER_PYTHON\", None)\n", | ||
| " cfg = for_harness(harness)\n", | ||
| " plan = fabric.plan(cfg, base_dir=BASE_DIR)\n", | ||
| " rc = plan.config.runtime\n", | ||
| " model = plan.config.models[\"default\"][\"model\"]\n", | ||
| " print(f\"### {harness['name']}\")\n", | ||
| " print(f\" adapter = {plan.adapter.adapter_id}\")\n", | ||
| " print(f\" model = {model} input schema = {rc.input_schema}\")\n", | ||
| " reason = blocker(harness)\n", | ||
| " if reason:\n", | ||
| " print(f\" NOT RUN here ({reason}).\")\n", | ||
| " print(f\" To run it, provide: {harness['needs']}\")\n", | ||
| " else:\n", | ||
| " try:\n", | ||
| " result = await fabric.run(cfg, base_dir=BASE_DIR, input=PROMPT)\n", | ||
| " print(f\" RAN -> {result.status}\")\n", | ||
| " print(f\" reply: {oneline(getattr(result.output, 'response', result.output))}\")\n", | ||
| " if result.status != \"succeeded\":\n", | ||
| " detail = failure_detail(result)\n", | ||
| " print(\" error:\", json.dumps(detail, indent=2))\n", | ||
| " run_failures.append(f\"{harness['name']}: {json.dumps(detail, sort_keys=True)}\")\n", | ||
| " except Exception as error:\n", | ||
| " print(f\" run failed ({type(error).__name__}: {oneline(error, 120)}).\")\n", | ||
| " print(\" Attempted run failed; continuing with remaining variants.\")\n", | ||
| " run_failures.append(f\"{harness['name']}: {type(error).__name__}: {error}\")\n", | ||
| " print()\n", | ||
| " finally:\n", | ||
| " if previous_adapter_python is None:\n", | ||
| " os.environ.pop(\"ADAPTER_PYTHON\", None)\n", | ||
| " else:\n", | ||
| " os.environ[\"ADAPTER_PYTHON\"] = previous_adapter_python" |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
python3 - <<'PY'
import json, pathlib, re
nb_path = pathlib.Path('examples/notebooks/02_variations.ipynb')
nb = json.loads(nb_path.read_text())
for i, cell in enumerate(nb['cells']):
src = ''.join(cell.get('source', []))
if 'for harness in HARNESSES' in src or 'def blocker' in src or 'def for_harness' in src:
print(f'--- CELL {i} ---')
print(src)
print()
PYRepository: NVIDIA/NeMo-Fabric
Length of output: 5981
🏁 Script executed:
rg -n "def blocker|def for_harness|HARNESSES|adapter_python_available|FabricConfigError|plan\(" examples notebooks . -g '!**/*.ipynb'Repository: NVIDIA/NeMo-Fabric
Length of output: 27507
🏁 Script executed:
python3 - <<'PY'
import json, pathlib
nb_path = pathlib.Path('examples/notebooks/02_variations.ipynb')
nb = json.loads(nb_path.read_text())
for i, cell in enumerate(nb['cells']):
src = ''.join(cell.get('source', []))
if 'for harness in HARNESSES' in src or 'def blocker' in src or 'def for_harness' in src:
print(f'--- CELL {i} ({cell.get("cell_type")}) ---')
print(src)
print()
PYRepository: NVIDIA/NeMo-Fabric
Length of output: 5995
🏁 Script executed:
python3 - <<'PY'
import json, pathlib
nb = json.loads(pathlib.Path('examples/notebooks/02_variations.ipynb').read_text())
for i, cell in enumerate(nb['cells']):
src = ''.join(cell.get('source', []))
if 'def blocker' in src or 'def for_harness' in src:
print(f'--- CELL {i} ---')
print(src)
PYRepository: NVIDIA/NeMo-Fabric
Length of output: 3980
🏁 Script executed:
rg -n "adapter_python_available|ADAPTER_PYTHON|FabricConfigError|unknown adapter|timeout" .Repository: NVIDIA/NeMo-Fabric
Length of output: 50375
🏁 Script executed:
sed -n '1,170p' python/src/nemo_fabric/client.py
printf '\n---\n'
sed -n '150,340p' tests/python/test_installed_adapter_discovery.pyRepository: NVIDIA/NeMo-Fabric
Length of output: 12224
Move blocker() before fabric.plan()
fabric.plan(cfg, base_dir=BASE_DIR) still runs for every harness before the skip check. If a harness interpreter is unavailable, planning can raise FabricConfigError and abort the loop before the notebook prints “NOT RUN here” or reaches later variants.
🧰 Tools
🪛 Ruff (0.16.0)
[warning] 274-274: Abstract raise to an inner function
(TRY301)
[warning] 274-274: Avoid specifying long messages outside the exception class
(TRY003)
[warning] 279-279: Abstract raise to an inner function
(TRY301)
[warning] 279-279: Avoid specifying long messages outside the exception class
(TRY003)
[warning] 283-283: Abstract raise to an inner function
(TRY301)
[warning] 283-283: Avoid specifying long messages outside the exception class
(TRY003)
[warning] 297-297: Do not catch blind exception: Exception
(BLE001)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@examples/notebooks/02_variations.ipynb` around lines 273 - 310, Move the
blocker(harness) evaluation and its NOT RUN handling before fabric.plan(cfg,
base_dir=BASE_DIR) in the harness loop. Only build the plan and execute the run
when blocker(harness) returns no reason, while preserving the existing output
and continuing to later variants when a harness is unavailable.
3cc4a0e to
b890544
Compare
There was a problem hiding this comment.
Actionable comments posted: 5
♻️ Duplicate comments (1)
adapters/claude/src/nemo_fabric_adapters/claude/adapter.py (1)
549-571: 🩺 Stability & Availability | 🟠 Major | 🏗️ Heavy liftHardcoded empty
allowed_toolsstill forecloses an auto-approval path for enabled tools.
allowed_tools=[]was previously flagged as removing the auto-approval list, so apermission_mode="dontAsk"run advertising enabled tools may not be able to execute them headlessly. The updated closedsettings_schema(seetests/adapters/test_claude_adapter.pyLines 89-125) confirmsallowed_toolsis no longer a configurable setting at all, so this gap is now structural. Confirm the intended headless approval story fortools.enabledunder non-bypass permission modes, or restore an explicit auto-approval path.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@adapters/claude/src/nemo_fabric_adapters/claude/adapter.py` around lines 549 - 571, Update the ClaudeAgentOptions construction to provide an explicit auto-approval path for tools.enabled when using non-bypass permission modes, rather than always setting allowed_tools to an empty list. Preserve the existing behavior for bypass modes and ensure headless dontAsk runs can execute the enabled tools.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@adapters/codex/README.md`:
- Around line 106-121: Update the prose reference to “public Fabric
configuration” in the Codex descriptor documentation to “public NeMo Fabric
configuration,” preserving the surrounding explanation and code identifiers
unchanged.
In `@crates/fabric-core/src/config.rs`:
- Around line 1519-1627: The validate_harness_settings path recompiles
settings_schema on every resolve_run_plan call. Reuse the validator compiled
during validate_adapter_descriptor_shape by storing it alongside the resolved
descriptor and consuming that cached validator during settings validation,
removing the repeated jsonschema::validator_for compilation while preserving
existing validation errors and behavior.
In `@examples/harbor/README.md`:
- Line 86: Update the `fabric_harness_settings` row in the Harbor README to
describe that supplied settings are merged by `build_harbor_config` but rejected
during planning when the selected descriptor lacks `settings_schema`, rather
than implying the input is unmapped.
In `@tests/adapters/test_codex_adapter.py`:
- Line 1009: Expand the Codex preset regression coverage around the existing
plan.config.harness.settings assertion to verify the post-change defaults for
disabled apps, multi-agent behavior, plugins, and web search. Assert the
intended values for each capability so the test validates behavior removed from
presets.rs rather than only confirming an empty settings map.
In `@tests/e2e/test_claude.py`:
- Around line 35-44: Remove the manual previous-value capture and restoration
from _use_current_python_for_adapter_discovery. Set ADAPTER_PYTHON directly to
sys.executable and rely on the shared autouse restore_environ_fixture for
cleanup, preserving the fixture’s autouse behavior.
---
Duplicate comments:
In `@adapters/claude/src/nemo_fabric_adapters/claude/adapter.py`:
- Around line 549-571: Update the ClaudeAgentOptions construction to provide an
explicit auto-approval path for tools.enabled when using non-bypass permission
modes, rather than always setting allowed_tools to an empty list. Preserve the
existing behavior for bypass modes and ensure headless dontAsk runs can execute
the enabled tools.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: 9dadf52b-aab8-4407-b9b6-b07fd731c791
⛔ Files ignored due to path filters (1)
Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing (45)
ATTRIBUTIONS-Rust.mdCargo.tomlREADME.mdadapters/README.mdadapters/claude/README.mdadapters/claude/fabric-adapter.jsonadapters/claude/src/nemo_fabric_adapters/claude/adapter.pyadapters/codex/README.mdadapters/deepagents/README.mdadapters/hermes/README.mdcrates/fabric-cli/assets/adapters/claude/fabric-adapter.jsoncrates/fabric-cli/src/presets.rscrates/fabric-core/Cargo.tomlcrates/fabric-core/src/config.rscrates/fabric-core/src/error.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/schema.rscrates/fabric-python/src/lib.rsdocs/integrations/harness/claude.mdxdocs/integrations/harness/codex.mdxdocs/integrations/harness/deepagents.mdxdocs/integrations/harness/hermes.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/sdk/python.mdxexamples/code_review_agent/config.pyexamples/harbor/README.mdexamples/harbor/calculator/README.mdexamples/harbor/swebench/adapters/claude/fabric-adapter.jsonexamples/notebooks/01_quickstart.ipynbexamples/notebooks/02_variations.ipynbpython/src/nemo_fabric/integrations/harbor/fabric_agent.pyschemas/SCHEMA.mdschemas/adapter-descriptor.schema.jsonschemas/run-plan.schema.jsonskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdtests/adapters/test_claude_adapter.pytests/adapters/test_codex_adapter.pytests/e2e/test_claude.pytests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsontests/integrations/test_harbor_runner.pytests/python/test_harness_settings_validation.pytests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.py
💤 Files with no reviewable changes (2)
- examples/harbor/calculator/README.md
- python/src/nemo_fabric/integrations/harbor/fabric_agent.py
📜 Review details
🧰 Additional context used
📓 Path-based instructions (57)
**/*.{md,rst}
📄 CodeRabbit inference engine (.agents/skills/contribute-api/SKILL.md)
Update documentation and examples in the same branch as the public API change.
Files:
examples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdadapters/hermes/README.mdREADME.mdschemas/SCHEMA.mdadapters/deepagents/README.mdskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdadapters/claude/README.mdadapters/README.mdadapters/codex/README.mdATTRIBUTIONS-Rust.md
{README.md,docs/**/*.{md,mdx,yml},examples/**/*.{md,mdx,yml}}
📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)
Keep package names, repository references, and build commands current in documentation and examples.
Files:
examples/harbor/README.mddocs/integrations/harness/hermes.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxREADME.mddocs/integrations/harness/claude.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/sdk/python.mdx
{docs/**/*.{md,mdx,yml},examples/**/*.{md,mdx,yml}}
📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)
Update relevant getting-started, reference, adapter, and example documentation when the corresponding examples or adapters change.
Files:
examples/harbor/README.mddocs/integrations/harness/hermes.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/integrations/harness/claude.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/sdk/python.mdx
**/*
📄 CodeRabbit inference engine (.agents/skills/karpathy-guidelines/SKILL.md)
**/*: Before implementing, explicitly state assumptions, surface ambiguity and tradeoffs, present multiple interpretations when relevant, and ask for clarification rather than silently deciding or proceeding when requirements are unclear.
Prefer the minimum code needed to solve the requested problem: avoid speculative features, unnecessary abstractions, unrequested flexibility, and handling of impossible scenarios; simplify overcomplicated solutions.
When editing existing code, make surgical changes only: do not modify unrelated code, comments, formatting, or pre-existing dead code; match the existing style, and remove only unused imports, variables, or functions introduced by your changes.
Define verifiable success criteria for each task, such as writing regression tests for bugs and invalid-input tests for validation, then verify the implementation against those criteria. For multi-step work, state a brief plan with a verification check for each step.
**/*: Always spellNVIDIAin all caps; do not useNvidia,nvidia,nVidia,nVIDIA, orNV.
Usean NVIDIAbefore a noun, because the name begins with an “en” sound.
Do not add a registered trademark symbol afterNVIDIAwhen referring to the company; use trademark symbols with product names only when required by the document type or legal guidance.
Verify official capitalization, spacing, hyphenation, and spelling for NVIDIA and third-party product names; do not rewrite official product names for grammar or title-case rules.
Precede NVIDIA product names withNVIDIAon first mention when natural and accurate, and link the first mention when the destination helps the reader.
On first use, include the company name and full model qualifier when it helps identify the model; preserve official capitalization and punctuation, and use shorter family names only after establishing the full name.
For learning-oriented and developer content, do not force trademark symbols unless explicitly required; for press, ...
Files:
examples/harbor/README.mddocs/integrations/harness/hermes.mdxadapters/claude/fabric-adapter.jsonadapters/claude/src/nemo_fabric_adapters/claude/adapter.pyexamples/notebooks/01_quickstart.ipynbcrates/fabric-cli/src/presets.rscrates/fabric-core/src/schema.rsskills/integrations/consumer/nemo-fabric-integrate/SKILL.mddocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxtests/adapters/test_codex_adapter.pycrates/fabric-core/Cargo.tomlschemas/adapter-descriptor.schema.jsonadapters/hermes/README.mdREADME.mdschemas/SCHEMA.mdcrates/fabric-cli/assets/adapters/claude/fabric-adapter.jsoncrates/fabric-core/src/runtime.rstests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsonadapters/deepagents/README.mdCargo.tomlschemas/run-plan.schema.jsontests/python/test_harness_settings_validation.pycrates/fabric-core/src/error.rsdocs/integrations/harness/claude.mdxtests/e2e/test_claude.pyexamples/harbor/swebench/adapters/claude/fabric-adapter.jsondocs/integrations/harness/deepagents.mdxskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdadapters/claude/README.mddocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxtests/integrations/test_harbor_runner.pydocs/integrations/harness/codex.mdxdocs/sdk/python.mdxadapters/README.mdadapters/codex/README.mdexamples/notebooks/02_variations.ipynbcrates/fabric-python/src/lib.rstests/adapters/test_claude_adapter.pyexamples/code_review_agent/config.pyATTRIBUTIONS-Rust.mdcrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.py
**/*.{md,mdx,rst}
📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-guide.md)
**/*.{md,mdx,rst}: For NeMo Fabric documentation, verify technical claims against the current repository, public API, or documented command before reviewing style.
Always spellNVIDIAin all caps; do not useNvidia,nvidia, orNV.
Format commands, code elements, expressions, package names, file names, and paths as inline code.
Use descriptive link text; avoid raw URLs and weak anchors such ashereorread more.
Use title case consistently for technical documentation headings.
Introduce code blocks, lists, tables, and images with complete sentences.
Write procedures as imperative, parallel steps; split long procedures into smaller tasks.
Prefer active voice, present tense, short sentences, contractions, and plain English while preserving necessary technical precision.
Usecanfor possibility and reservemayfor permission.
Useafterfor temporal relationships instead ofonce, and preferrefer tooverseewhen directing readers to another resource.
Avoid culture-specific idioms, unnecessary Latinisms, jokes, and marketing exaggeration in technical documentation.
Spell out months in body text, avoid ordinal dates, and use clear time zones.
Spell out whole numbers from zero through nine unless they are technical values, parameters, versions, or UI values; use numerals for 10 or greater and commas in thousands.
Do not add trademark symbols to learning-oriented documentation unless the source, platform, or legal guidance explicitly requires them.
Do not replace precise technical terms with simpler words when doing so would lose precision.
Do not flag passive voice when the actor is unknown or the action is the important part.
Do not rewrite API names, package names, command flags, or code literals for style.
**/*.{md,mdx,rst}: Use consistent title case for technical-document headings and table headers; avoid quotation marks, ampersands, and exclamation marks in headings, while preserving official product, event, research, and whitepaper title ...
Files:
examples/harbor/README.mddocs/integrations/harness/hermes.mdxskills/integrations/consumer/nemo-fabric-integrate/SKILL.mddocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/hermes/README.mdREADME.mdschemas/SCHEMA.mdadapters/deepagents/README.mddocs/integrations/harness/claude.mdxdocs/integrations/harness/deepagents.mdxskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdadapters/claude/README.mddocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/sdk/python.mdxadapters/README.mdadapters/codex/README.mdATTRIBUTIONS-Rust.md
**/*.{md,rst,txt,adoc}
📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-language-mechanics.md)
**/*.{md,rst,txt,adoc}: For technical documentation, use professional, active, conversational, engaging, precise, and plain-English prose. Prefer active voice, present tense, short sentences, and scannable paragraphs. Avoid casual or imprecise language, swearing, threats, insults, jokes, puns, culture-specific idioms, marketing exaggeration, and unsupported third-party comparisons.
Usecanfor possibility and reservemayfor permission; useafterfor temporal order; userefer tofor cross-references; prefer short direct sentences and specific verbs; avoid unnecessarypleasein technical documentation.
Prefer active voice when the actor matters. Passive voice is acceptable when the actor is unknown or irrelevant, when the action or result is the focus, or in programmer documentation.
Use natural contractions in conversational technical prose, but do not force them in formal legal copy, API references, or generated text.
Prefer simpler English over Latinisms: usefor exampleorsuch asinstead ofe.g.,and so oninstead ofetc.,that isinstead ofi.e.,compared toinstead ofvs., andby,through, orusinginstead ofvia. Use industry-standard terms such as in silico, in vitro, and in vivo when appropriate, and italicize them in running text.
Usethatwithout commas for essential clauses, andwhichwith commas for nonessential clauses.
Format dates and times clearly: spell out months in body text; use forms such asJune 12, 2025; avoid numeric or ordinal dates; capitalize days; use 12-hour time when appropriate; include a space beforea.m.orp.m.; useETandPTfor needed time zones; avoid24/7; and preferfrom 12:30 to 1:00 p.m.for prose ranges.
Format numbers consistently: spell out zero through nine in body text, use numerals for 10 or greater and for technical values, use commas in thousands, do not begin a sentence with a numeral, spell out ordinals, and use numerals consistently within a category wh...
Files:
examples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdadapters/hermes/README.mdREADME.mdschemas/SCHEMA.mdadapters/deepagents/README.mdskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdadapters/claude/README.mdadapters/README.mdadapters/codex/README.mdATTRIBUTIONS-Rust.md
**/README.md
📄 CodeRabbit inference engine (.agents/skills/review-doc-style/SKILL.md)
Update relevant package, crate, adapter, and integration README files when public behavior or entry-point documentation changes.
Files:
examples/harbor/README.mdadapters/hermes/README.mdREADME.mdadapters/deepagents/README.mdadapters/claude/README.mdadapters/README.mdadapters/codex/README.md
**/*.{md,mdx}
📄 CodeRabbit inference engine (.agents/skills/review-doc-style/SKILL.md)
**/*.{md,mdx}: Use the full product nameNVIDIA NeMo Fabricon its first usage, typically in the title or H1; useNeMo Fabricthereafter.
Usefabricby itself only when referring to the CLI tool, and surround those references with backticks.
CapitalizeNVIDIAcorrectly in public documentation.
Format commands, code elements, expressions, file names, paths, and filenames as inline code where needed.
Use title case consistently for headings in technical documentation.
Introduce code blocks, tables, and lists with complete lead-in sentences.
Use descriptive anchor text instead of raw URLs or generic link text such ashere.
Prefer active voice, present tense, short sentences, and plain English.
Use consistent terminology for the same concept throughout a document.
Write procedures as imperative, parallel, easy-to-scan steps, and split long sequences into smaller tasks.
Useafterinstead ofoncewhen expressing temporal sequence.
Usecaninstead ofmaywhen the intended meaning is possibility rather than permission.
Avoid ambiguous numeric dates and ordinal dates in body text.
For learning-oriented documentation, do not force trademark symbols unless the source document explicitly requires them.
Introduce examples' code blocks with full sentences and ensure examples match current APIs and build commands.For docs site changes, run
just docsto regenerate Python and Rust API references and validate the Fern configuration.
Files:
examples/harbor/README.mddocs/integrations/harness/hermes.mdxskills/integrations/consumer/nemo-fabric-integrate/SKILL.mddocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/hermes/README.mdREADME.mdschemas/SCHEMA.mdadapters/deepagents/README.mddocs/integrations/harness/claude.mdxdocs/integrations/harness/deepagents.mdxskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdadapters/claude/README.mddocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/sdk/python.mdxadapters/README.mdadapters/codex/README.mdATTRIBUTIONS-Rust.md
**/*.{rs,py,html,md,mdx,toml,yml,yaml,sh,bash}
📄 CodeRabbit inference engine (CONTRIBUTING.md)
All Rust, Python, HTML, Markdown, MDX, TOML, YAML, and shell source files must include the project SPDX copyright and Apache-2.0 license headers using the comment syntax appropriate to each file type.
Files:
examples/harbor/README.mddocs/integrations/harness/hermes.mdxadapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-cli/src/presets.rscrates/fabric-core/src/schema.rsskills/integrations/consumer/nemo-fabric-integrate/SKILL.mddocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxtests/adapters/test_codex_adapter.pycrates/fabric-core/Cargo.tomladapters/hermes/README.mdREADME.mdschemas/SCHEMA.mdcrates/fabric-core/src/runtime.rsadapters/deepagents/README.mdCargo.tomltests/python/test_harness_settings_validation.pycrates/fabric-core/src/error.rsdocs/integrations/harness/claude.mdxtests/e2e/test_claude.pydocs/integrations/harness/deepagents.mdxskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdadapters/claude/README.mddocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxtests/integrations/test_harbor_runner.pydocs/integrations/harness/codex.mdxdocs/sdk/python.mdxadapters/README.mdadapters/codex/README.mdcrates/fabric-python/src/lib.rstests/adapters/test_claude_adapter.pyexamples/code_review_agent/config.pyATTRIBUTIONS-Rust.mdcrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.py
**/{README.md,*.md,*.mdx}
📄 CodeRabbit inference engine (CONTRIBUTING.md)
Update relevant documentation when changes affect public behavior, adapters, examples, or workspace structure.
Files:
examples/harbor/README.mddocs/integrations/harness/hermes.mdxskills/integrations/consumer/nemo-fabric-integrate/SKILL.mddocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/hermes/README.mdREADME.mdschemas/SCHEMA.mdadapters/deepagents/README.mddocs/integrations/harness/claude.mdxdocs/integrations/harness/deepagents.mdxskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdadapters/claude/README.mddocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/sdk/python.mdxadapters/README.mdadapters/codex/README.mdATTRIBUTIONS-Rust.md
**/*.md
📄 CodeRabbit inference engine (.agents/skills/README.md)
Documentation and examples must be updated consistently with changes to public behavior and reviewed for NVIDIA technical-writing style.
Files:
examples/harbor/README.mdskills/integrations/consumer/nemo-fabric-integrate/SKILL.mdadapters/hermes/README.mdREADME.mdschemas/SCHEMA.mdadapters/deepagents/README.mdskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdadapters/claude/README.mdadapters/README.mdadapters/codex/README.mdATTRIBUTIONS-Rust.md
{adapters/**,examples/**}
⚙️ CodeRabbit configuration file
{adapters/**,examples/**}: Review adapter and example changes for command correctness, config/schema consistency, artifact handling, and compatibility with the public NeMo Fabric contracts.
Files:
examples/harbor/README.mdadapters/claude/fabric-adapter.jsonadapters/claude/src/nemo_fabric_adapters/claude/adapter.pyexamples/notebooks/01_quickstart.ipynbadapters/hermes/README.mdadapters/deepagents/README.mdexamples/harbor/swebench/adapters/claude/fabric-adapter.jsonadapters/claude/README.mdadapters/README.mdadapters/codex/README.mdexamples/notebooks/02_variations.ipynbexamples/code_review_agent/config.py
{*.md,**/*.md,**/*.mdx,**/*.ipynb}
⚙️ CodeRabbit configuration file
{*.md,**/*.md,**/*.mdx,**/*.ipynb}: Enforce the product name in user-facing prose: use "NVIDIA NeMo Fabric" on first use and "NeMo Fabric" thereafter. Flag standalone capitalized "Fabric" when it refers to the product. Do not flag the lowercasefabricCLI command, package/import/crate names, code identifiers, API symbols, configuration keys, file paths, or unrelated generic uses of the word.
Files:
examples/harbor/README.mddocs/integrations/harness/hermes.mdxexamples/notebooks/01_quickstart.ipynbskills/integrations/consumer/nemo-fabric-integrate/SKILL.mddocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxadapters/hermes/README.mdREADME.mdschemas/SCHEMA.mdadapters/deepagents/README.mddocs/integrations/harness/claude.mdxdocs/integrations/harness/deepagents.mdxskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.mdadapters/claude/README.mddocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/sdk/python.mdxadapters/README.mdadapters/codex/README.mdexamples/notebooks/02_variations.ipynbATTRIBUTIONS-Rust.md
**/*.mdx
📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)
In MDX files, use JSX comment delimiters (
{/*and*/}) for top-of-file comments, including SPDX headers; do not use HTML comments.Use
{/* ... */}delimiters for top-of-file MDX SPDX comments, not HTML comment delimiters.
Files:
docs/integrations/harness/hermes.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/integrations/harness/claude.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/sdk/python.mdx
docs/**/*.{md,mdx,yml}
📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)
Run
just docswhen the documentation site changes.
Files:
docs/integrations/harness/hermes.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/integrations/harness/claude.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/sdk/python.mdx
docs/**/*
📄 CodeRabbit inference engine (AGENTS.md)
Update Fern documentation under
docs/when public behavior, thenemo-fabricpackage, examples, or supported bindings change.
Files:
docs/integrations/harness/hermes.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/integrations/harness/claude.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/sdk/python.mdx
{docs/**,README.md,AGENTS.md}
⚙️ CodeRabbit configuration file
{docs/**,README.md,AGENTS.md}: Review documentation for technical accuracy against the current API, command correctness, and consistency with generated schemas.
For links between files under docs/, require paths relative to the source file with the target file's .mdx extension so they work in both Fern builds and repository browsers. Flag Fern site-root links such as NeMo Fabric overview; use the repository-relative equivalent, such as NeMo Fabric overview.
Files:
docs/integrations/harness/hermes.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxREADME.mddocs/integrations/harness/claude.mdxdocs/integrations/harness/deepagents.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdxdocs/integrations/harness/codex.mdxdocs/sdk/python.mdx
**/*.{rs,py,pyi,json,yaml,yml}
📄 CodeRabbit inference engine (.agents/skills/contribute-api/SKILL.md)
Determine and update every affected public surface, including the CLI, PyO3 bindings, Python SDK, type stubs, schemas, and adapter contract, so they remain in parity.
Files:
adapters/claude/fabric-adapter.jsonadapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-cli/src/presets.rscrates/fabric-core/src/schema.rstests/adapters/test_codex_adapter.pyschemas/adapter-descriptor.schema.jsoncrates/fabric-cli/assets/adapters/claude/fabric-adapter.jsoncrates/fabric-core/src/runtime.rstests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsonschemas/run-plan.schema.jsontests/python/test_harness_settings_validation.pycrates/fabric-core/src/error.rstests/e2e/test_claude.pyexamples/harbor/swebench/adapters/claude/fabric-adapter.jsontests/integrations/test_harbor_runner.pycrates/fabric-python/src/lib.rstests/adapters/test_claude_adapter.pyexamples/code_review_agent/config.pycrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.py
**/*.{json,jsonschema}
📄 CodeRabbit inference engine (CONTRIBUTING.md)
Public contract changes must keep checked-in JSON Schema snapshots synchronized.
Files:
adapters/claude/fabric-adapter.jsonschemas/adapter-descriptor.schema.jsoncrates/fabric-cli/assets/adapters/claude/fabric-adapter.jsontests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsonschemas/run-plan.schema.jsonexamples/harbor/swebench/adapters/claude/fabric-adapter.json
**/*.{rs,py}
📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)
For native binding changes, run
cargo check -p fabric-python --locked.
**/*.{rs,py}: When changing the Rust core or public schemas, run both the Rust and Python test suites.
When adding functionality, include tests in the corresponding Rust crate or the relevant area undertests/.
Files:
adapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-cli/src/presets.rscrates/fabric-core/src/schema.rstests/adapters/test_codex_adapter.pycrates/fabric-core/src/runtime.rstests/python/test_harness_settings_validation.pycrates/fabric-core/src/error.rstests/e2e/test_claude.pytests/integrations/test_harbor_runner.pycrates/fabric-python/src/lib.rstests/adapters/test_claude_adapter.pyexamples/code_review_agent/config.pycrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.py
**/*.{py,pyi}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
If Python code or a Python-facing adapter changes, run
just test-python.
Files:
adapters/claude/src/nemo_fabric_adapters/claude/adapter.pytests/adapters/test_codex_adapter.pytests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pyexamples/code_review_agent/config.pytests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.py
**/*.{rs,py,pyi}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
**/*.{rs,py,pyi}: If public configuration types change, confirm schema snapshot tests injust test-rustpass and review generated schema diffs.
For schema or public contract changes, run both language suites and review changes underschemas/and generated API references.
Files:
adapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-cli/src/presets.rscrates/fabric-core/src/schema.rstests/adapters/test_codex_adapter.pycrates/fabric-core/src/runtime.rstests/python/test_harness_settings_validation.pycrates/fabric-core/src/error.rstests/e2e/test_claude.pytests/integrations/test_harbor_runner.pycrates/fabric-python/src/lib.rstests/adapters/test_claude_adapter.pyexamples/code_review_agent/config.pycrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.py
**/*.{py,pyi,rs}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
For Python SDK or PyO3 binding changes, use
python-tests, run focused pytest tests first, thenjust test-python; rebuild withjust build-pythonwhen native code or packaging changes.
Files:
adapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-cli/src/presets.rscrates/fabric-core/src/schema.rstests/adapters/test_codex_adapter.pycrates/fabric-core/src/runtime.rstests/python/test_harness_settings_validation.pycrates/fabric-core/src/error.rstests/e2e/test_claude.pytests/integrations/test_harbor_runner.pycrates/fabric-python/src/lib.rstests/adapters/test_claude_adapter.pyexamples/code_review_agent/config.pycrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.py
**/*.{rs,py,toml}
📄 CodeRabbit inference engine (.agents/skills/update-project-version/SKILL.md)
When editing version helpers, verify every
nemo-fabric-*workspace package through Cargo metadata and reject a static version inpython/pyproject.toml.
Files:
adapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-cli/src/presets.rscrates/fabric-core/src/schema.rstests/adapters/test_codex_adapter.pycrates/fabric-core/Cargo.tomlcrates/fabric-core/src/runtime.rsCargo.tomltests/python/test_harness_settings_validation.pycrates/fabric-core/src/error.rstests/e2e/test_claude.pytests/integrations/test_harbor_runner.pycrates/fabric-python/src/lib.rstests/adapters/test_claude_adapter.pyexamples/code_review_agent/config.pycrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.py
**/*.{toml,rs,py}
📄 CodeRabbit inference engine (.agents/skills/update-project-version/SKILL.md)
Avoid blind repository-wide replacement of version-like strings; distinguish package-version references from examples and unrelated dependency versions.
Files:
adapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-cli/src/presets.rscrates/fabric-core/src/schema.rstests/adapters/test_codex_adapter.pycrates/fabric-core/Cargo.tomlcrates/fabric-core/src/runtime.rsCargo.tomltests/python/test_harness_settings_validation.pycrates/fabric-core/src/error.rstests/e2e/test_claude.pytests/integrations/test_harbor_runner.pycrates/fabric-python/src/lib.rstests/adapters/test_claude_adapter.pyexamples/code_review_agent/config.pycrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.py
**/*.py
📄 CodeRabbit inference engine (CONTRIBUTING.md)
Use type annotations for public Python APIs.
Files:
adapters/claude/src/nemo_fabric_adapters/claude/adapter.pytests/adapters/test_codex_adapter.pytests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pyexamples/code_review_agent/config.pytests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.py
**/*.{py,rs}
📄 CodeRabbit inference engine (CONTRIBUTING.md)
**/*.{py,rs}: Keep native Python binding declarations synchronized with their Rust implementations.
Usesnake_casefor functions and variables; usePascalCasefor Rust types and Python classes.
Files:
adapters/claude/src/nemo_fabric_adapters/claude/adapter.pycrates/fabric-cli/src/presets.rscrates/fabric-core/src/schema.rstests/adapters/test_codex_adapter.pycrates/fabric-core/src/runtime.rstests/python/test_harness_settings_validation.pycrates/fabric-core/src/error.rstests/e2e/test_claude.pytests/integrations/test_harbor_runner.pycrates/fabric-python/src/lib.rstests/adapters/test_claude_adapter.pyexamples/code_review_agent/config.pycrates/fabric-core/src/config.rstests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.py
**/*.rs
📄 CodeRabbit inference engine (.agents/skills/contribute-api/SKILL.md)
Implement new runtime or binding behavior in the shared Rust core first.
**/*.rs: Format Rust code withcargo fmt --all; Rust formatting checks must pass withcargo fmt --all -- --check.
Rust workspace changes must passcargo check --workspace --locked.
Files:
crates/fabric-cli/src/presets.rscrates/fabric-core/src/schema.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rscrates/fabric-core/src/config.rs
**/*.{rs,toml}
📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)
For any Rust change, run
just test-rustandcargo fmt --all -- --check.For Rust core, CLI, or shared runtime semantic changes, run Rust formatting and tests, and add Python tests when behavior is exposed through the SDK.
Files:
crates/fabric-cli/src/presets.rscrates/fabric-core/src/schema.rscrates/fabric-core/Cargo.tomlcrates/fabric-core/src/runtime.rsCargo.tomlcrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rscrates/fabric-core/src/config.rs
**/*.{rs,rmeta}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
If Rust code changes, run
cargo fmt --all -- --checkandjust test-rust.
Files:
crates/fabric-cli/src/presets.rscrates/fabric-core/src/schema.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/error.rscrates/fabric-python/src/lib.rscrates/fabric-core/src/config.rs
crates/fabric-core/**/*.{rs,py}
📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)
Changes under
crates/fabric-coremust run both the Rust and Python test suites.
Files:
crates/fabric-core/src/schema.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/error.rscrates/fabric-core/src/config.rs
crates/fabric-core/**/*.rs
📄 CodeRabbit inference engine (.agents/skills/review-doc-style/SKILL.md)
For Rust API reference changes, update Rust documentation comments under
crates/fabric-core/instead of editing generated reference output.If
crates/fabric-corechanges in a way exposed through Python, run both the Rust and Python suites.
Files:
crates/fabric-core/src/schema.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/error.rscrates/fabric-core/src/config.rs
crates/fabric-core/src/**/*.rs
⚙️ CodeRabbit configuration file
crates/fabric-core/src/**/*.rs: Review the Rust core for runtime lifecycle correctness, handle validation, capability routing accuracy, schema stability, and error semantics.
Public API changes should match committed schemas, tests, and documentation.
Files:
crates/fabric-core/src/schema.rscrates/fabric-core/src/runtime.rscrates/fabric-core/src/error.rscrates/fabric-core/src/config.rs
skills/**
📄 CodeRabbit inference engine (AGENTS.md)
skills/**: Keep consumer skills underskills/self-contained and dependent only on supported public Python SDK contracts and published documentation; do not add repository-internal contribution guidance.
Keep consumer skills in parity with the public SDK guide, model, and type details when the Python/Rust binding contract changes.
Files:
skills/integrations/consumer/nemo-fabric-integrate/SKILL.mdskills/integrations/consumer/nemo-fabric-integrate/references/config-mapping.md
**/SKILL.md
📄 CodeRabbit inference engine (.agents/skills/README.md)
**/SKILL.md: Maintainer skills must begin with YAML frontmatter containing at leastnameanddescription.
Maintainer skills may reference repository internals, build and test commands, and contribution workflows, but external usage guidance must remain in the top-levelskills/directory.
Files:
skills/integrations/consumer/nemo-fabric-integrate/SKILL.md
⚙️ CodeRabbit configuration file
**/SKILL.md: Do not flag SKILL.md files for missing SPDX headers. Skill entrypoints intentionally start with YAML frontmatter instead.
Verify that every SKILL.md keeps valid YAML frontmatter with at least name and description fields before the Markdown body.
Files:
skills/integrations/consumer/nemo-fabric-integrate/SKILL.md
docs/reference/api/**
📄 CodeRabbit inference engine (AGENTS.md)
Regenerate or update generated API references under
docs/reference/api/when the public API changes.Treat all files under
docs/reference/api/as generated output and do not modify them directly.
Files:
docs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdx
tests/adapters/**/*.py
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
tests/adapters/**/*.py: If an adapter or integration changes, run its focused tests.
For adapter behavior changes, run focused adapter tests undertests/adapters, then runjust test-python.
Files:
tests/adapters/test_codex_adapter.pytests/adapters/test_claude_adapter.py
tests/**/*.py
📄 CodeRabbit inference engine (.agents/skills/python-tests/SKILL.md)
tests/**/*.py: Use Pytest to run Python tests.
Do not add@pytest.mark.asyncioto tests; async tests are automatically detected and run by the async runner.
Do not add-> Nonereturn type annotations to test functions.
When mocking a class, useunittest.mock.MagicMockorunittest.mock.AsyncMock, using thespecargument when necessary, rather than defining a new class.
Prefix mocked class names withmock, notfake.
Prefer pytest fixtures over helper methods.
Do not repeat fixtures; place fixtures needed by multiple test files inconftest.py.
Define fixtures using@pytest.fixture(name="<fixture_name>"[, scope="<scope>"])and a function named<fixture_name>_fixture; specifyscopeonly when it is notfunction.
Preferpytest.mark.parametrizeover separate tests for different input types.
Use@pytest.mark.usefixtureswhen a fixture is needed but its return value is unused or it does not return a value.
Use the autouserestore_environ_fixturefromtests/conftest.pyto restore environment variables; modify variables withos.environand do not usemonkeypatch.setenv.
Avoid defensive programming in tests; access expected data directly so missing data raises a clear failure, such as usingresults["data"]instead ofresults.get("data").
Files:
tests/adapters/test_codex_adapter.pytests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pytests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.py
{tests/**,python/tests/**}
⚙️ CodeRabbit configuration file
{tests/**,python/tests/**}: Tests should cover the behavior promised by the changed API surface, including error paths, lifecycle cleanup, and SDK/native parity where relevant.
Files:
tests/adapters/test_codex_adapter.pytests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsontests/python/test_harness_settings_validation.pytests/e2e/test_claude.pytests/integrations/test_harbor_runner.pytests/adapters/test_claude_adapter.pytests/python/test_installed_adapter_discovery.pytests/python/test_notebook_examples.py
**/{Cargo.toml,Cargo.lock,pyproject.toml,package.json}
📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)
For new or updated dependencies, document the functional need, alternatives considered, and why the selected dependency is the narrowest fit.
Files:
crates/fabric-core/Cargo.tomlCargo.toml
**/*.{toml,lock}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
If a manifest or lockfile changes, run the license-diff script against
origin/main, review transitive license changes, and run theattributions-rustandattributions-pythonpre-commit hooks.
Files:
crates/fabric-core/Cargo.tomlCargo.toml
**/*.{yml,yaml,toml,lock}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
For CI or packaging changes, use
maintain-ciormaintain-packaging, then run recipes and checks whose behavior changed.
Files:
crates/fabric-core/Cargo.tomlCargo.toml
schemas/**/*
⚙️ CodeRabbit configuration file
schemas/**/*: Schemas are generated public contract snapshots. Check that schema diffs correspond to intentional Rust type changes and are covered by core tests.
Files:
schemas/adapter-descriptor.schema.jsonschemas/SCHEMA.mdschemas/run-plan.schema.json
adapters/*/README.md
📄 CodeRabbit inference engine (AGENTS.md)
Update adapter README files when public behavior, examples, or supported bindings change.
Files:
adapters/hermes/README.mdadapters/deepagents/README.mdadapters/claude/README.mdadapters/codex/README.md
{README.md,docs/index.yml}
📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)
Update
README.mdordocs/index.ymlwhen documentation entry points or example reading paths change.
Files:
README.md
README.md
📄 CodeRabbit inference engine (AGENTS.md)
Update the root
README.mdwhen public behavior, thenemo-fabricpackage, examples, or supported bindings change.Update the top-level
README.mdwhen changed behavior affects an entry point users would naturally consult.
Files:
README.md
schemas/SCHEMA.md
📄 CodeRabbit inference engine (AGENTS.md)
Keep the JSON Schema notes in
schemas/SCHEMA.mdcurrent when the public API or Python/Rust binding contract changes.
Files:
schemas/SCHEMA.md
{Cargo.toml,python/pyproject.toml,pyproject.toml}
📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)
Keep Rust workspace/package metadata and Python/maturin package metadata internally consistent, including package names, versions, import paths, and module names.
Files:
Cargo.toml
{Cargo.toml,Cargo.lock,pyproject.toml,uv.lock,python/pyproject.toml}
📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)
{Cargo.toml,Cargo.lock,pyproject.toml,uv.lock,python/pyproject.toml}: Keep workspace, Python, and lockfile dependency versions aligned where required, and review both direct and transitive dependency changes from resolved lockfiles.
Inspect resolved transitive licenses, explicitly surface UNKNOWN, non-SPDX/custom, proprietary, source-available, copyleft, or network-copyleft terms, and route unresolved licensing questions to dependency approvers with distribution and linkage context.
Document the functional need, alternatives considered, rationale for the selected dependency, and any unresolved licensing question when introducing dependencies.
Files:
Cargo.toml
{Cargo.toml,pyproject.toml,python/pyproject.toml}
📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)
Before adding a dependency, prefer the standard library, an existing dependency, or a small local implementation when appropriate; otherwise select a maintained, narrow-fit dependency with clear SPDX metadata and a permissive license where possible.
Files:
Cargo.toml
{Cargo.toml,Cargo.lock,pyproject.toml,uv.lock}
📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)
After updating manifests or lockfiles, run
uv run --no-project python scripts/licensing/license_diff.py --base-ref origin/mainand review added packages and license changes.
Files:
Cargo.toml
{pyproject.toml,python/pyproject.toml,Cargo.toml,docs/package.json,.github/workflows/*.yml,justfile}
📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)
Reflect public packaging changes in release-facing documentation and ensure CI references the same package names and commands used by local workflows.
Files:
Cargo.toml
Cargo.toml
📄 CodeRabbit inference engine (.agents/skills/update-project-version/SKILL.md)
Cargo.toml: UseCargo.toml[workspace.package].versionas the source of truth for Rust workspace and Python build versioning.
KeepCargo.toml[workspace.dependencies].nemo-fabric-core.versionaligned with the workspace version.
Use valid Cargo SemVer in Cargo metadata and equivalent PEP 440 syntax in explicit Python metadata for prerelease or build-metadata versions.
Files:
Cargo.toml
docs/sdk/python.mdx
📄 CodeRabbit inference engine (AGENTS.md)
Keep
docs/sdk/python.mdxcurrent when the public Python API changes.
Files:
docs/sdk/python.mdx
crates/fabric-python/**/*.{rs,toml}
📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)
If the PyO3 bridge or package metadata changes, run
just build-pythonandcargo check -p fabric-python --locked.
Files:
crates/fabric-python/src/lib.rs
crates/fabric-python/**/*
⚙️ CodeRabbit configuration file
crates/fabric-python/**/*: Treat native binding changes as public API changes. Check JSON/type conversion, error propagation, GIL/thread behavior, and parity with the Python SDK.
Files:
crates/fabric-python/src/lib.rs
**/ATTRIBUTIONS-*.md
📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)
Regenerate and include changed
ATTRIBUTIONS-*.mdfiles.
Files:
ATTRIBUTIONS-Rust.md
🧠 Learnings (3)
📚 Learning: 2026-06-29T22:34:52.407Z
Learnt from: AjayThorve
Repo: NVIDIA/NeMo-Fabric PR: 27
File: adapters/codex-cli/fabric-adapter.json:13-15
Timestamp: 2026-06-29T22:34:52.407Z
Learning: In NeMo-Fabric adapter manifest files (e.g., `*/fabric-adapter.json`), keep `config.accepts` limited to the top-level Fabric capability sections that `resolve_capability_plan` consumes (such as `models`, `tools`, `mcp`, `skills`, `telemetry`). Do not add adapter-owned `harness.settings` keys to `config.accepts`; `harness.settings` should remain adapter-owned and be passed through unchanged.
Applied to files:
adapters/claude/fabric-adapter.jsoncrates/fabric-cli/assets/adapters/claude/fabric-adapter.jsontests/fixtures/hermes-shim-agent/adapters/hermes-shim/fabric-adapter.jsonexamples/harbor/swebench/adapters/claude/fabric-adapter.json
📚 Learning: 2026-07-09T22:28:51.689Z
Learnt from: AjayThorve
Repo: NVIDIA/NeMo-Fabric PR: 43
File: adapters/claude-sdk/src/nemo_fabric_adapters/claude_sdk/adapter.py:164-168
Timestamp: 2026-07-09T22:28:51.689Z
Learning: In the NeMo-Fabric adapters, treat path values used in Fabric adapter configuration (including logic like `_resolve_path` in adapter.py) as config-root-relative. Do not apply `Path.expanduser()` (or otherwise apply `~`/home or shell-style expansion), because it will make the resolved paths normalize inconsistently across adapters. Also, do not rely on or add any resolution behavior that uses `harness.settings.cwd` as an override point for these adapter paths—`harness.settings.cwd` is explicitly unsupported in this adapter context.
Applied to files:
adapters/claude/src/nemo_fabric_adapters/claude/adapter.py
📚 Learning: 2026-07-24T16:07:22.255Z
Learnt from: AjayThorve
Repo: NVIDIA/NeMo-Fabric PR: 118
File: docs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdx:5-5
Timestamp: 2026-07-24T16:07:22.255Z
Learning: In this repo, files generated under `docs/reference/api/**` are NVIDIA NeMo Fabric API reference output. When reviewing changes to these generated pages, do not treat sidebar `position`/ordering updates as direct manual edits—these can be regenerated by running `just docs` after adding public types. Only flag substantive content changes that are not explained by generation.
Applied to files:
docs/reference/api/rust-library-reference/nemo-fabric-core/config/struct-adapterdescriptor.mdxdocs/reference/api/rust-library-reference/nemo-fabric-core/error/enum-fabricerror.mdx
🪛 ast-grep (0.45.0)
tests/python/test_installed_adapter_discovery.py
[info] 51-51: use jsonify instead of json.dumps for JSON output
Context: json.dumps(data)
Note: [CWE-116] Improper Encoding or Escaping of Output.
(use-jsonify)
[error] 121-131: Command coming from incoming request
Context: subprocess.run(
[
"uv",
"build",
"--wheel",
"--out-dir",
str(wheelhouse),
str(ROOT / "adapters" / "claude"),
],
check=True,
)
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
(subprocess-from-request)
[error] 136-139: Command coming from incoming request
Context: subprocess.run(
["uv", "pip", "install", "--python", str(python), "--no-deps", str(wheel)],
check=True,
)
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
(subprocess-from-request)
tests/python/test_notebook_examples.py
[error] 41-41: The use of exec can be insecure
Context: exec(compile(source, str(QUICKSTART_NOTEBOOK), "exec"), namespace)
Note: [CWE-94] Improper Control of Generation of Code ('Code Injection').
(no-exec)
[warning] 41-41: The use of compile can be insecure
Context: compile(source, str(QUICKSTART_NOTEBOOK), "exec")
Note: [CWE-94] Improper Control of Generation of Code ('Code Injection').
(no-compile)
🪛 Ruff (0.16.0)
tests/e2e/test_claude.py
[warning] 36-36: Missing return type annotation for private function _use_current_python_for_adapter_discovery
(ANN202)
examples/notebooks/02_variations.ipynb
[warning] 273-273: Abstract raise to an inner function
(TRY301)
[warning] 273-273: Avoid specifying long messages outside the exception class
(TRY003)
[warning] 278-278: Abstract raise to an inner function
(TRY301)
[warning] 278-278: Avoid specifying long messages outside the exception class
(TRY003)
[warning] 282-282: Abstract raise to an inner function
(TRY301)
[warning] 282-282: Avoid specifying long messages outside the exception class
(TRY003)
[warning] 296-296: Do not catch blind exception: Exception
(BLE001)
tests/python/test_installed_adapter_discovery.py
[error] 122-122: subprocess call: check for execution of untrusted input
(S603)
[error] 123-130: Starting a process with a partial executable path
(S607)
[error] 137-137: subprocess call: check for execution of untrusted input
(S603)
[error] 138-138: Starting a process with a partial executable path
(S607)
| fn validate_harness_settings( | ||
| config: &FabricConfig, | ||
| resolved: Option<&ResolvedAdapterDescriptor>, | ||
| ) -> Result<()> { | ||
| let Some(resolved) = resolved else { | ||
| return Ok(()); | ||
| }; | ||
| let Some(schema) = &resolved.descriptor.settings_schema else { | ||
| if config.harness.settings.is_empty() { | ||
| return Ok(()); | ||
| } | ||
| let name = config | ||
| .harness | ||
| .settings | ||
| .keys() | ||
| .min() | ||
| .expect("non-empty settings have a key"); | ||
| return invalid_harness_settings( | ||
| resolved, | ||
| format!("harness.settings.{name}"), | ||
| "the resolved descriptor does not declare a settings_schema", | ||
| ); | ||
| }; | ||
|
|
||
| let schema = Value::Object(schema.clone()); | ||
| let settings = Value::Object(config.harness.settings.clone()); | ||
| let validator = jsonschema::validator_for(&schema).map_err(|error| { | ||
| FabricError::InvalidAdapterDescriptor { | ||
| path: resolved.path.clone(), | ||
| message: format!("settings_schema could not be compiled: {error}"), | ||
| } | ||
| })?; | ||
| if let Some(error) = validator.iter_errors(&settings).next() { | ||
| let settings_path = harness_settings_error_path(&error); | ||
| let reason = harness_settings_error_reason(&error); | ||
| return invalid_harness_settings(resolved, settings_path, reason); | ||
| } | ||
| Ok(()) | ||
| } | ||
|
|
||
| fn invalid_harness_settings<T>( | ||
| resolved: &ResolvedAdapterDescriptor, | ||
| settings_path: String, | ||
| reason: impl Into<String>, | ||
| ) -> Result<T> { | ||
| Err(FabricError::InvalidHarnessSettings { | ||
| adapter_id: resolved.descriptor.adapter_id.clone(), | ||
| descriptor_source: resolved.source, | ||
| descriptor_path: resolved.path.clone(), | ||
| settings_path, | ||
| reason: reason.into(), | ||
| }) | ||
| } | ||
|
|
||
| fn harness_settings_error_path(error: &jsonschema::ValidationError<'_>) -> String { | ||
| let mut segments = error | ||
| .instance_path() | ||
| .as_str() | ||
| .split('/') | ||
| .skip(1) | ||
| .map(decode_json_pointer_segment) | ||
| .collect::<Vec<_>>(); | ||
| match error.kind() { | ||
| jsonschema::error::ValidationErrorKind::AdditionalProperties { unexpected } | ||
| | jsonschema::error::ValidationErrorKind::UnevaluatedProperties { unexpected } => { | ||
| if let Some(name) = unexpected.iter().min() { | ||
| segments.push(name.clone()); | ||
| } | ||
| } | ||
| jsonschema::error::ValidationErrorKind::Required { property } => { | ||
| if let Some(name) = property.as_str() { | ||
| segments.push(name.to_string()); | ||
| } | ||
| } | ||
| _ => {} | ||
| } | ||
| if segments.is_empty() { | ||
| "harness.settings".to_string() | ||
| } else { | ||
| format!("harness.settings.{}", segments.join(".")) | ||
| } | ||
| } | ||
|
|
||
| fn decode_json_pointer_segment(segment: &str) -> String { | ||
| segment.replace("~1", "/").replace("~0", "~") | ||
| } | ||
|
|
||
| fn harness_settings_error_reason(error: &jsonschema::ValidationError<'_>) -> String { | ||
| match error.kind() { | ||
| jsonschema::error::ValidationErrorKind::AdditionalProperties { .. } | ||
| | jsonschema::error::ValidationErrorKind::UnevaluatedProperties { .. } => { | ||
| "is not declared by the adapter settings schema".to_string() | ||
| } | ||
| jsonschema::error::ValidationErrorKind::Required { .. } => { | ||
| "is required by the adapter settings schema".to_string() | ||
| } | ||
| jsonschema::error::ValidationErrorKind::Type { .. } => { | ||
| "has a type that is not accepted by the adapter settings schema".to_string() | ||
| } | ||
| jsonschema::error::ValidationErrorKind::Enum { .. } => { | ||
| "is not one of the values accepted by the adapter settings schema".to_string() | ||
| } | ||
| jsonschema::error::ValidationErrorKind::ExclusiveMinimum { .. } => { | ||
| "must be greater than the minimum declared by the adapter settings schema".to_string() | ||
| } | ||
| _ => format!("does not satisfy the adapter settings schema ({error})"), | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick win
Recompiles settings_schema on every resolve_run_plan call.
The schema is already meta-validated and compiled once in validate_adapter_descriptor_shape (Lines 1494-1508) during descriptor loading, but validate_harness_settings calls jsonschema::validator_for again on every planning call. Consider caching the compiled validator alongside the resolved descriptor and reusing it here.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@crates/fabric-core/src/config.rs` around lines 1519 - 1627, The
validate_harness_settings path recompiles settings_schema on every
resolve_run_plan call. Reuse the validator compiled during
validate_adapter_descriptor_shape by storing it alongside the resolved
descriptor and consuming that cached validator during settings validation,
removing the repeated jsonschema::validator_for compilation while preserving
existing validation errors and behavior.
| assert plan.adapter.harness == "codex" | ||
| assert plan.config.runtime.input_schema == "text" | ||
| assert plan.config.harness.settings["reasoning_effort"] == "high" | ||
| assert plan.config.harness.settings == {} |
There was a problem hiding this comment.
🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick win
Cover the Codex capability change, not only the empty map.
This assertion verifies the new settings contract but not the behavior removed from crates/fabric-cli/src/presets.rs, including disabled apps, multi-agent behavior, plugins, and web search. Add regression coverage for the intended post-change defaults so an empty settings map cannot mask a capability regression.
As per path instructions, tests should cover behavior promised by the changed API surface.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@tests/adapters/test_codex_adapter.py` at line 1009, Expand the Codex preset
regression coverage around the existing plan.config.harness.settings assertion
to verify the post-change defaults for disabled apps, multi-agent behavior,
plugins, and web search. Assert the intended values for each capability so the
test validates behavior removed from presets.rs rather than only confirming an
empty settings map.
Source: Path instructions
Signed-off-by: Zhongxuan Wang <daniewang@nvidia.com>
b890544 to
d202f6c
Compare
|
Superseded by #149, using the zhongxuanwang-nv-owned fork. |
Overview
Validate
harness.settingsduringFabric.plan()against JSON Schema owned by the exact resolved adapter descriptor.settings_schema.setting_sources,max_budget_usd, andpermission_mode.RunPlan; JSON Schema defaults are never applied.Per FABRIC-132's phased scope, Codex, Deep Agents, and Hermes do not receive production schemas in this change. Their non-empty
harness.settingsnow fail closed until follow-up schemas are added. Legacy Python-selection keys and adapter-specific tool aliases are not retained:ADAPTER_PYTHONand normalized tool configuration are authoritative.The Rust core uses released
jsonschema0.49.2 with default features disabled.schemarsgenerates schemas but does not validate arbitrary instances; a hand-written subset would duplicate JSON Schema semantics; invoking Python would cross an interpreter boundary during core planning. A smaller Rust validator was also evaluated and rejected because its released version can report an incorrect array index afterprefixItems; this change includes a regression assertingharness.settings.values.2. Withjsonschemadefault features disabled, HTTP/file retrieval, TLS, and async resolution are absent, so descriptor schemas must be self-contained while local$defsreferences remain supported.The apparent diff size is overwhelmingly generated dependency metadata. The exact diff is 46 files and 17,831 displayed changed lines:
Cargo.lockandATTRIBUTIONS-Rust.mdchanges.The lockfile adds 87 Rust packages. The license audit reports Apache-2.0, MIT, MIT-0, BSD-2-Clause, Unicode-3.0, and Zlib expressions, with no Python dependency changes.
Details
ADAPTER_PYTHON, and agent-local descriptors atomically with their settings schema.ResolvedAdapterDescriptor; there is no adapter-to-schema table, separate schema search, harness-name inference, or adapter Python import.UnknownAdapterprecedence over settings validation.dontAskmode, pre-approve only tools that were explicitly enabled; blocked-tool filters remain authoritative.ADAPTER_PYTHON, and agent-local override discovery.Validation
cargo fmt --all -- --checkcargo check -p fabric-python --lockedjust build-pythonjust test-rust: 22 CLI, 1 frontier, and 43 core tests passed; Rust doc tests passedjust test-python: 527 passed, 15 skipped.venv/bin/pytest -q tests/e2e/test_claude.py: 1 passed, 5 skipped; fixture ordering verified with--setup-planjust docswith Rust 1.93: all checks passed; only the expected unauthenticated Fern redirect check was skippeduv run pre-commit run --all-files: all hooks passedscripts/licensing/license_diff.py --base-ref upstream/release/0.1: 87 Rust additions with the license expressions above; no Python additions, removals, or changesrelease/0.1head and clean diff/ancestry hygieneWhere should the reviewer start?
Start with
validate_harness_settingsand descriptor loading incrates/fabric-core/src/config.rs, then reviewadapters/claude/fabric-adapter.jsonandtests/python/test_harness_settings_validation.py. Installed, split-interpreter,ADAPTER_PYTHON, and override coverage is intests/python/test_installed_adapter_discovery.py.Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Closes FABRIC-132
I confirm this contribution is my own work, or I have the right to submit it under this project's license.
I searched existing issues and open pull requests, and this does not duplicate existing work.
Summary by CodeRabbit
ADAPTER_PYTHONenvironment variable.