Skip to content

Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Ships reusable CI templates that bring every check to any repository.

fix: avoid redundant Node/npm during Docker agent setup (#193)

Narendran Raghavanb57de44dbce1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 473aeb12..562d9992 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,12 +13,26 @@ All notable changes to SkillEvaluator are documented in this file.
without rerunning the scan. The version is shown even when the report omits
its timestamp.
+### Changed
+
+- Docker Claude Code and Codex containers no longer get the distribution
+ `nodejs` and `npm` packages from agent setup, except on Alpine images. On
+ Debian-based images, including the default eval image, those packages also
+ provided `npx`, `gcc`, `g++`, and `make`. Claude Code containers now have no
+ Node.js unless the image provides it, and Codex's own Node.js is on `PATH`
+ only for the Codex process. Skills whose scripts, tasks, or stdio MCP servers
+ need these tools must install them through `scripts/apt-packages.txt` or a
+ custom `evals/environment/Dockerfile`.
+
### Fixed
- Fixed Docker Codex and Claude Code setup wasting its timeout installing
distribution Node/npm before Harbor's own installers. Native, gateway Codex,
and NVIDIA Build agents now provision Node/npm only on the installer branches
that need them, while preserving installed-agent and version-pin checks.
+- Preserved multiline skill descriptions when saving and loading Tier 2
+ embedding catalogs. Descriptions can contain line breaks and tabs, while
+ catalog identifiers and other control characters remain strictly validated.
- Brought the published documentation in line with 0.5.0. It now covers how
standard grading builds judge evidence and rebuilds trajectories from
OpenCode and Codex logs, structured judge output and retries, the evidence
diff --git a/docs/eval-datasets.mdx b/docs/eval-datasets.mdx
index a7b6d7f7..ec1a04d0 100644
--- a/docs/eval-datasets.mdx
+++ b/docs/eval-datasets.mdx
@@ -309,6 +309,25 @@ command = "python /workspace/tools/server.py"
transport = "stdio"
```
+<Note>
+ In Docker mode, Claude Code and Codex setup no longer installs the
+ distribution `nodejs` and `npm` packages, except on Alpine images. On
+ Debian-based images, including the default `python:3.12-slim` image, those
+ packages also brought `npx` and a C/C++ toolchain (`gcc`, `g++`, `make`).
+ Claude Code containers now have no Node.js unless the image provides it.
+ Codex installs its own Node.js, which is on `PATH` only for the Codex process
+ and the commands it runs. If your skill's scripts, its tasks, or a stdio MCP
+ server (for example `command = "npx ..."`) need these tools, install them in
+ the image: list the packages in `scripts/apt-packages.txt`, one per line, for
+ the auto-generated image, or install them in `evals/environment/Dockerfile`.
+</Note>
+
+```text title="my-skill/scripts/apt-packages.txt"
+nodejs
+npm
+build-essential
+```
+
## Validate before you run
Check the whole contract — dataset fields, case IDs, `config.yml`, Dockerfile
diff --git a/src/skillevaluator/tier3/harbor/installed_agents.py b/src/skillevaluator/tier3/harbor/installed_agents.py
index 9d97d145..b6e514f4 100644
--- a/src/skillevaluator/tier3/harbor/installed_agents.py
+++ b/src/skillevaluator/tier3/harbor/installed_agents.py
@@ -13,6 +13,11 @@ from harbor.agents.installed.codex import Codex
if TYPE_CHECKING:
from harbor.environments.base import BaseEnvironment
+# Harbor's installers download over HTTPS but never request a CA bundle; apt
+# images used to get one only as a dependency of the skipped npm package.
+_CA_BUNDLE_PREDICATE = "[ -s /etc/ssl/certs/ca-certificates.crt ] || [ -s /etc/pki/tls/certs/ca-bundle.crt ]"
+_INSTALLER_BRANCHES = frozenset({"system", "bundled", "bundled-without-ca"})
+
async def _installer_dependencies(
environment: BaseEnvironment,
@@ -27,15 +32,22 @@ async def _installer_dependencies(
# Codex supplies Node via NVM on glibc; Claude's native installer needs no
# Node. Both still need system npm on their respective fallback branches.
result = await environment.exec(
- command=f"if {system_npm_predicate}; then printf '%s' system; else printf '%s' bundled; fi",
+ command=(
+ f"if {system_npm_predicate}; then printf '%s' system; "
+ f"elif {_CA_BUNDLE_PREDICATE}; then printf '%s' bundled; "
+ "else printf '%s' bundled-without-ca; fi"
+ ),
user="root",
)
installer = (result.stdout or "").strip()
- if result.return_code != 0 or installer not in {"system", "bundled"}:
+ if result.return_code != 0 or installer not in _INSTALLER_BRANCHES:
raise RuntimeError("Could not determine agent installer system dependency requirements")
if installer == "system":
return dependencies
- return tuple(dependency for dependency in dependencies if dependency not in {"nodejs", "npm"})
+ bundled = tuple(dependency for dependency in dependencies if dependency not in {"nodejs", "npm"})
+ if installer == "bundled-without-ca":
+ return (*bundled, "ca_certificates")
+ return bundled
class SkillEvaluatorCodex(Codex):
diff --git a/tests/tier3/test_installed_agent_bootstrap.py b/tests/tier3/test_installed_agent_bootstrap.py
index e9ae37f7..337e60a9 100644
--- a/tests/tier3/test_installed_agent_bootstrap.py
+++ b/tests/tier3/test_installed_agent_bootstrap.py
@@ -35,6 +35,7 @@ class _BootstrapEnvironment:
*,
manager: str = "apt-get",
system_node: bool = False,
+ ca_bundle: bool = True,
missing_commands: tuple[str, ...] = ("node", "npm"),
installed: bool = False,
installed_version: str = "1.2.3",
@@ -45,6 +46,7 @@ class _BootstrapEnvironment:
self.exec_kwargs: list[dict[str, object]] = []
self.manager = manager
self.system_node = system_node
+ self.ca_bundle = ca_bundle
self.missing_commands = missing_commands
self.installed = installed
self.installed_version = installed_version
@@ -85,7 +87,9 @@ class _BootstrapEnvironment:
raise self.probe_error
if self.probe_result is not None:
return self.probe_result
- return ExecResult(return_code=0, stdout="system" if self.system_node else "bundled", stderr="")
+ if self.system_node:
+ return ExecResult(return_code=0, stdout="system", stderr="")
+ return ExecResult(return_code=0, stdout="bundled" if self.ca_bundle else "bundled-without-ca", stderr="")
return ExecResult(return_code=0, stdout="", stderr="")
@@ -122,6 +126,29 @@ def test_native_bootstrap_avoids_system_node_and_keeps_vendor_installer(
assert any("https://downloads.claude.ai/claude-code-releases/bootstrap.sh" in c for c in environment.commands)
[email protected]("agent_class", [SkillEvaluatorCodex, SkillEvaluatorClaudeCode])
+ ("manager", "expected_install"),
+ [
+ ("apt-get", "set -o pipefail; apt-get update && apt-get install -y ca-certificates"),
+ ("dnf", "set -o pipefail; dnf install -y ca-certificates"),
+ ],
+)
+def test_bundled_installer_without_ca_bundle_installs_ca_certificates(
+ tmp_path: Path, agent_class: type, manager: str, expected_install: str
+) -> None:
+ # Without npm, nothing else pulls in the CA bundle the vendor downloads need.
+ environment = _BootstrapEnvironment(manager=manager, ca_bundle=False)
+ agent = agent_class(logs_dir=tmp_path, model_name="openai/test-model")
+
+ asyncio.run(agent.install(environment))
+
+ assert len(environment.probes) == 1
+ assert "[ -s /etc/ssl/certs/ca-certificates.crt ]" in environment.probes[0]
+ assert "[ -s /etc/pki/tls/certs/ca-bundle.crt ]" in environment.probes[0]
+ assert environment.package_installs == [expected_install]
+
+
@pytest.mark.parametrize("agent_class", [SkillEvaluatorCodex, SkillEvaluatorClaudeCode])
@pytest.mark.parametrize("manager", ["apt-get", "apk"])
def test_system_npm_installer_still_provisions_node_and_npm(tmp_path: Path, agent_class: type, manager: str) -> None: