Dependencies#

The Toolkit uses only third-party packages that the repository owner has approved. The approved packages are listed in ci/dependencies.toml, and CI fails a change that uses any other.

What the check covers#

The dependency_approval job runs ci/check_dependencies.py. It reads every package that any environment installs, from the same locks as the software bill of materials:

Source

Packages

Each uv.lock

Python packages, with every extra and group

Each skill script’s <script>.py.lock

Python packages of PEP 723 scripts

reference/application/console/package-lock.json

npm packages, including development ones

reference/orchestration/nemo/nvidia-platform.lock.toml

Internal wheels of the agent runtime

Tracked requirements*.txt files

Python packages an image installs by name

The check compares names, not versions:

  • Upgrading a listed package needs nothing.

  • A package that a new direct dependency, an upgrade or a lock refresh newly brings in is new, even when nobody named it.

  • Python names are compared normalized (Typing_Extensions is typing-extensions); npm names as written.

A change that fails shows each package, the environments that use it, and the entry to add once it is approved.

Add a dependency#

  1. Open a GitLab issue that names the package, what needs it, and why no listed package does. Include its license.

  2. Get the repository owner’s approval on the issue.

  3. Add the package to the environment’s pyproject.toml or package.json, and refresh the lock.

  4. Add one [[approved]] entry to the end of ci/dependencies.toml for the package and for every other new package the lock now holds:

    [[approved]]
    ecosystem = "pypi"
    name = "example-package"
    issue = 123
    reason = "What needs it, and why no listed package does."
    
  5. Push. The dependency_approval job lists the packages your change approves, so the reviewer sees them. The approval itself is recorded on the issue.

ecosystem is pypi, npm or generic (a wheel or Git source outside a registry). Every field is required.

The baseline#

[baseline] lists the packages in use when the check was introduced. It is frozen: in a merge request, the job compares it with the base commit and fails if it grew. Never add a package to it; approve the package with an [[approved]] entry instead.

When a package is no longer used, the job says how many listed packages are unused. You may remove them from the list; removing never fails the check.

Agents#

Agents working in this repository do not add dependencies. When a task seems to need one, the agent stops and asks, and does not edit ci/dependencies.toml to make CI pass (AGENTS.md).

Run it locally#

python3 ci/check_dependencies.py --base "$(git merge-base origin/main HEAD)"

It needs uv on PATH, which exports the locks, and runs offline with UV_OFFLINE=1.