From 9db637d85d6fb36112bb185e7432808dc9f3458b Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 9 Nov 2026 18:06:56 -0800 Subject: [PATCH 1/5] docs: restore Tier 1-first repository CI onboarding Signed-off-by: Christopher Kevin --- CHANGELOG.md | 4 + ci/templates/README.md | 41 +-- ci/templates/all-tiers/README.md | 603 +++++++++++++++++++++++++++++++ docs/AGENTS.md | 19 +- docs/README.md | 3 + docs/advanced-ci.mdx | 43 +++ docs/ci-integration.mdx | 45 +-- docs/cli-onboarding.mdx | 174 +-------- docs/environment-variables.mdx | 2 +- docs/github-actions.mdx | 112 +----- docs/gitlab-ci.mdx | 220 +---------- docs/reports.mdx | 113 +----- docs/repository-integration.mdx | 5 +- docs/tier1-validation.mdx | 2 +- docs/tier2-deduplication.mdx | 4 +- docs/tier3-live-evaluation.mdx | 4 +- fern/docs.yml | 3 + 17 files changed, 753 insertions(+), 644 deletions(-) create mode 100644 ci/templates/all-tiers/README.md create mode 100644 docs/advanced-ci.mdx diff --git a/CHANGELOG.md b/CHANGELOG.md index 49b08522c..6e382e134 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ All notable changes to SkillEvaluator are documented in this file. ### Added +- Restore Tier 1-first repository CI onboarding with no model key required, + keeping optional LLM checks and hosted feedback separate. Preserve opt-in + all-tier setup and report contracts in an Advanced CI reference. + - Run SkillEvaluator's own `skills/` through the pinned three-tier GitHub callers, retaining Tier 1 as required and Tier 2/3 as advisory. A separate consumer feedback listener preserves the reusable publisher's public path; diff --git a/ci/templates/README.md b/ci/templates/README.md index c7fdf41fa..c5bd57950 100644 --- a/ci/templates/README.md +++ b/ci/templates/README.md @@ -61,41 +61,8 @@ Enable the platform's CI service, allow the referenced workflows or includes, and provide a compatible runner. The [platform guides](../../docs/repository-integration.mdx) cover results and merge-gating settings. +## Advanced CI -## Candidate all-tier templates - -The unreleased all-tier setup uses two thin consumer files per platform: - -| Platform | Evaluation | Trusted feedback | -| --- | --- | --- | -| GitHub | [skill-checks-all-tiers.yml](all-tiers/skill-checks-all-tiers.yml) | [feedback-all-tiers.yml](all-tiers/feedback-all-tiers.yml) | -| GitLab | [gitlab-all-tiers.yml](all-tiers/gitlab-all-tiers.yml) | [gitlab-feedback-all-tiers.yml](all-tiers/gitlab-feedback-all-tiers.yml) | - -These files contain placeholders. Use a reviewed schema-version 2 release -with the platform's all-tier capability and immutable workflow, tools and -image pins. Released 0.8.0 downloads remain Tier 1 only. Install a reviewed -candidate build and use `ci init --tiers 1,2,3` to select its bundled -`ci-release-all-tiers.json`; use `--release` to review an alternate descriptor. -The all-tier CLI renders these references and approves the exact GitHub caller blob. See -[the onboarding guide](../../docs/cli-onboarding.mdx#opt-in-to-three-tier-ci). -Merge the trusted feedback entrypoint onto the default branch before the -first demo PR/MR. On GitLab, merging into an existing root `.gitlab-ci.yml` -means replacing the Tier 1 include with exactly the two all-tier includes, -keeping `test` in any `stages` list, and starting every other job's rules with -`- if: '$SKILL_EVAL_FEEDBACK == "true"'` / `when: never`, because trusted -feedback runs as a default-branch pipeline. Merge those guards to the default -branch before the setup MR; see the -[GitLab guide](../../docs/gitlab-ci.mdx#merge-into-an-existing-root-configuration). -Only Tier 1 gates CI; Tier 2 and Tier 3 remain advisory, including failed or -incomplete outcomes, with their native evidence retained. -The CLI's `--tier3-required`, GitHub's `tier3-required` input and GitLab's -`SKILL_EVAL_TIER3_REQUIRED` variable are deprecated and ignored; they cannot -make Tier 3 blocking. Reports expire after 14 days, Docker is the default, and -native local mode is also supported. - -Maintainers must refresh the candidate descriptor's `workflow_ref`, -`feedback_ref`, `gitlab_ref` and `tools_ref` together after workflow, runtime or -feedback fixes, so new consumers receive the reviewed implementation. -`evaluator_version` and `runtime_lock_sha256` must match the package version and -`uv.lock` at `tools_ref`. Keep the image digest independently pinned to the -reviewed Tier 1 image. +The unreleased, explicitly enabled all-tier integration has separate +[setup and maintainer instructions](all-tiers/README.md). Released templates +above provide Tier 1 checks without a model key. diff --git a/ci/templates/all-tiers/README.md b/ci/templates/all-tiers/README.md new file mode 100644 index 000000000..ec1718568 --- /dev/null +++ b/ci/templates/all-tiers/README.md @@ -0,0 +1,603 @@ +# Advanced CI setup and maintainer reference + +This is the explicitly enabled, unreleased all-tier integration. For standard +no-key Tier 1 onboarding, use the [template catalog](../README.md), +[GitHub guide](../../../docs/github-actions.mdx) or +[GitLab guide](../../../docs/gitlab-ci.mdx). + +Released 0.8.0 bundles and plain `skillevaluator ci init` remain Tier 1 only. +A successful setup command is configuration preparation, not a completed CI +run. Inspect real provider-backed outputs before claiming all tiers passed. + +## Candidate templates + +The unreleased all-tier setup uses two thin consumer files per platform: + +| Platform | Evaluation | Trusted feedback | +| --- | --- | --- | +| GitHub | [skill-checks-all-tiers.yml](skill-checks-all-tiers.yml) | [feedback-all-tiers.yml](feedback-all-tiers.yml) | +| GitLab | [gitlab-all-tiers.yml](gitlab-all-tiers.yml) | [gitlab-feedback-all-tiers.yml](gitlab-feedback-all-tiers.yml) | + +These files contain placeholders. Use a reviewed schema-version 2 release +with the platform's all-tier capability and immutable workflow, tools and +image pins. Released 0.8.0 downloads remain Tier 1 only. Install a reviewed +candidate build and use `ci init --tiers 1,2,3` to select its bundled +`ci-release-all-tiers.json`; use `--release` to review an alternate descriptor. +The all-tier CLI renders these references and approves the exact GitHub caller blob. See +[the onboarding guide](#opt-in-to-three-tier-ci). +Merge the trusted feedback entrypoint onto the default branch before the +first demo PR/MR. On GitLab, merging into an existing root `.gitlab-ci.yml` +means replacing the Tier 1 include with exactly the two all-tier includes, +keeping `test` in any `stages` list, and starting every other job's rules with +`- if: '$SKILL_EVAL_FEEDBACK == "true"'` / `when: never`, because trusted +feedback runs as a default-branch pipeline. Merge those guards to the default +branch before the setup MR; see the +[GitLab guide](#merge-into-an-existing-root-configuration). +Only Tier 1 gates CI; Tier 2 and Tier 3 remain advisory, including failed or +incomplete outcomes, with their native evidence retained. +The CLI's `--tier3-required`, GitHub's `tier3-required` input and GitLab's +`SKILL_EVAL_TIER3_REQUIRED` variable are deprecated and ignored; they cannot +make Tier 3 blocking. Reports expire after 14 days, Docker is the default, and +native local mode is also supported. + +Maintainers must refresh the candidate descriptor's `workflow_ref`, +`feedback_ref`, `gitlab_ref` and `tools_ref` together after workflow, runtime or +feedback fixes, so new consumers receive the reviewed implementation. +`evaluator_version` and `runtime_lock_sha256` must match the package version and +`uv.lock` at `tools_ref`. Keep the image digest independently pinned to the +reviewed Tier 1 image. + +## Opt in to three-tier CI + +The new all-tier path supports **GitHub and GitLab** with two small consumer +files. Tier 1 is the only required tier; Tier 2 and Tier 3 are advisory, including +failed or incomplete results. `--tier3-required` is deprecated and ignored; it +cannot make Tier 3 block CI. Docker is the default. `--env-mode local` runs native +agent CLIs on the selected CI runner. This setup supports these two modes only. + +This is an unreleased capability. Released 0.8.0 bundles and the default +`ci init` setup remain Tier 1 only. Install a reviewed candidate build that +includes the all-tier CLI and its bundled `ci-release-all-tiers.json`, then +opt in with `--tiers 1,2,3`. The CLI selects that descriptor automatically. +It must declare schema version 2 and `all-tiers-github` or `all-tiers-gitlab`, +with immutable workflow, feedback, tools and image references. A Tier 1 +descriptor cannot enable all-tier setup. + +```bash +skillevaluator ci init --tiers 1,2,3 \ + --platform github --provider openai --paths skills --mode preview --no-input --show-files +skillevaluator ci init --tiers 1,2,3 \ + --platform github --provider openai --paths skills --mode pr --no-input +``` + +To review an alternate candidate descriptor, add +`--release ./reviewed-ci-release.json` to either command. Review its immutable +references before using it; the option does not install the candidate CLI. + +For GitLab 17.0 or later, select `--platform gitlab`. GitHub uses your local +`gh` login; GitLab uses only a process-scoped `SKILLEVALUATOR_GITLAB_TOKEN` +for the repository's host, never a generic `GITLAB_TOKEN`. Origins other than +github.com need `--tiers 1,2,3` or `--platform gitlab` before any API request. +GitLab setup does not require `glab`. +`--mode preview` lists the files it would add or change without writing +anything; add `--show-files` to print their contents. +`--mode save` writes the two local configuration files; `--mode pr` opens the +setup review through the platform API. These commands prepare CI configuration; +they do not run the evaluators on your laptop. + +| Local command | Result | Evidence still needed | +| --- | --- | --- | +| `ci init` | Prepare the evaluation and trusted feedback entrypoints | Merge the setup and configure the CI runner and secrets | +| `ci status --tiers 1,2,3` | Read default-branch configuration and latest pipeline status | Inspect the actual CI reports and gates | +| `ci demo --tiers 1,2,3` | Open a small skill-change PR or MR | Inspect the Tier 1 gate, advisory Tier 2/3 results, comment, and retained reports | + +Before the first demo, commit native datasets under each skill's `evals/` +directory; see [Evaluation Datasets](../../../docs/eval-datasets.mdx). CI reuses those cases +with full positive and negative paired coverage. It does not generate cases or +use autopilot. Missing datasets or credentials produce actionable incomplete +results; they do not count as a passing tier. A passing Tier 1 CI gate does not +mean the advisory tiers completed or passed. Central dataset mappings are not +supported by this initial workflow. + +The trusted PR or MR comment shows one summary table with a row per skill: +Static and Security Validation, Deduplication, and Live Agent Evaluation each +get a one-line status, issue count and main finding or blocker. Counts remain +unknown for incomplete or missing evidence. Each skill has one **Report** link +to the run's combined artifact; normal repository authentication and artifact +expiry apply. Download and extract it, then open `index.html` for the detailed +aggregate and native reports. Hosted HTML remains optional. See +[Reports & Results](#retained-three-tier-ci-evidence) for an example. + +Create the `skillevaluator` execution environment and store provider secrets +there (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, or `NVIDIA_API_KEY`). GitHub also +supports the generated explicit mappings from repository CI secrets; scoped +environment secrets are recommended. On GitHub, +provider-backed jobs require the initiating actor to have repository write, +maintain, or admin permission, as verified through GitHub's API. They also +require the exact current same-repository PR head or current default-branch +commit. These checks run again after entering the execution environment. +Environment reviewers are optional: configure them if your repository wants +manual approval; automatic checks do not require a paid reviewer-protection +feature. Restrict repository and CI workflow write access to trusted maintainers. +GitLab's protected execution and feedback prerequisites are described below. +Choose matching chat and embedding configuration with `--provider`, +`--embedding-provider`, `--model`, and `--embedding-model`; the default embedding +provider follows OpenAI or NVIDIA Build; Anthropic defaults to OpenAI embeddings +and needs that provider's key too. The shared `--model` configures chat/judging +and the native agent provider default; agent-specific models in committed eval +configuration keep their native override semantics. `--agents` overrides the +native provider default: OpenAI uses Codex, Anthropic uses Claude Code, and +NVIDIA Build uses OpenCode. CI installs Tier 2 or Tier 3 extras from the reviewed +tools commit. Tier 3 checks the selected environment with `doctor`; local mode +also installs pinned native CLIs into an isolated runtime directory. + +`--timeout-minutes` sets the native job duration (10 to 360, 300 by default). +The evaluator's runtime budget ends 20 minutes, or a quarter of a shorter +duration, earlier so setup and retained evidence fit. If setup outlasts that +reserve and GitLab stops the native job at its timeout, the job uploads no +native evidence and the aggregate reports that tier's evidence as missing. +GitLab receives a literal duration +so the configuration also works on GitLab 17.8. `--runner` chooses a GitHub +runner label or GitLab runner tag. GitHub defaults +to `ubuntu-24.04`; GitLab defaults to a configured `docker` tag. Docker mode +requires a working daemon, Docker CLI, Compose v2 and Buildx; GitLab's included Docker-in-Docker service requires +a privileged runner that shares `/certs/client` for the daemon's TLS client +certificates. Local mode needs a compatible native runner with Node/npm; +the generated GitLab local configuration removes the Docker service. Cloud +sandbox backends are outside this onboarding path. + +Merge both generated files onto the default branch **before opening the demo**. +The first setup PR/MR can show evaluation checks, but automatic comments need +the trusted feedback entrypoint to exist on the default branch. GitLab also +needs a protected default branch and a project access token with `api` scope +and the Maintainer role, stored as a scoped, protected +`SKILLEVALUATOR_GITLAB_TOKEN` limited to the `skillevaluator-feedback` +environment. GitLab before 18.4 also needs a separate project Reporter/read_api +`SKILLEVALUATOR_GITLAB_READ_TOKEN`, scoped to the protected execution environment +(`skillevaluator` by default). The read credential is removed before provider work. +Newer servers use `CI_JOB_TOKEN` by default. Online init/status report the server +version prerequisite; offline preview/save leave admission readiness unverified. +The MR jobs receive no comment token. GitLab's feedback request uses its +short-lived job token; the initiating user needs permission to create a pipeline +on the protected default branch, pass pipeline variables and run the protected +feedback environment. Without it, the request is an allowed failure: no comment +is posted and the Tier 1 gate is unchanged. GitLab's provider-backed and +feedback jobs record no deployments. Do not add deployment approval rules to +their environments: depending on the GitLab version, approvals either do not +gate these jobs or turn them into manual jobs. Restrict them with the protected +environments' deploy access. +See the platform pages for +[GitHub](#github-checks-and-feedback) and +[GitLab](#gitlab-checks-and-feedback) details. + +### Upgrade a Tier 1-only consumer + +Keep the existing workflow while previewing the explicit all-tier setup with a +compatible descriptor. Review the new evaluator and feedback pins, provider, +runner, protected environment, paths and Tier 1-only gate. Remove or disable +the old Tier 1 caller in the setup review once the new all-tier caller covers +the same roots, so a PR does not run two independent scans. Merge the new +feedback entrypoint and then open a fresh demo. Existing released bundles and +Tier 1-only callers keep their current behavior. + +On GitLab, the Tier 1 and all-tier configurations share the root +`.gitlab-ci.yml`, which the CLI never replaces. `--mode preview` prints the +rendered files and the merge steps; `--mode save` and `--mode pr` stop with an +error while a different root file exists. First guard your other jobs with the +`SKILL_EVAL_FEEDBACK` rule and merge those guards to the default branch: the +setup MR's own feedback request runs the default branch's current +configuration. Then, in your setup MR, replace the Tier 1 `skill-evaluation.yml` +include with the two rendered includes, add the rendered variables, workflow +rules and job overrides, keep `test` in any `stages` list, and add +`.gitlab/skill-feedback.yml`. See +[Merge into an existing root configuration](#merge-into-an-existing-root-configuration). + +## GitHub checks and feedback + +The opt-in [CLI setup](#opt-in-to-three-tier-ci) creates +`.github/workflows/skill-checks-all-tiers.yml` and +`.github/workflows/feedback-all-tiers.yml`. This unreleased path needs a reviewed +candidate build and its bundled capability-bearing descriptor; the 0.8.0 +[released downloads](../../bundles/0.8.0/README.md) remain Tier 1 only. `--tiers 1,2,3` selects the candidate's +bundled descriptor; `--release` can override it for an alternate reviewed candidate. +The [candidate source templates](https://github.com/NVIDIA/SkillEvaluator/tree/main/ci/templates) +contain placeholders and must be filled with reviewed immutable references. + +The shared `evaluate-all-tiers.yml` and `feedback-all-tiers.yml` files define +reusable `workflow_call` workflows. Adding them to SkillEvaluator does not +enable checks or comments on SkillEvaluator's own pull requests. Each repository, +including SkillEvaluator itself, needs the generated caller pair committed +there, with the trusted feedback caller on its default branch. + +SkillEvaluator evaluates its own `skills/` collection with +`.github/workflows/skill-checks-all-tiers.yml`. Its consumer feedback listener is +`.github/workflows/skill-feedback-all-tiers.yml`, preserving the public reusable +publisher at `.github/workflows/feedback-all-tiers.yml`. The CLI selects this +alternate filename when the conventional feedback file already defines a +reusable workflow, and `ci status --tiers 1,2,3` recognizes it. + +The repository callers pin a reviewed `main` commit for the evaluator workflows +and tools, and the verified released Tier 1 image. They use Docker, NVIDIA Build, +one attempt and one concurrent task, and the committed native datasets. The +caller's explicit `model` input selects chat, judging and the default live-agent +model together; embeddings use the separate `embedding-model` input. Add +`NVIDIA_API_KEY` as a repository Actions secret before expecting provider-backed +results. Without it, Tier 2 and Tier 3 +remain incomplete/advisory; a passing Tier 1 gate is not an all-tier evaluation +pass. Forks retain keyless Tier 1 checks. On PRs, ordinary software changes +select no skills, skill changes select the affected skills, and CI configuration +changes select the collection. Pushes to `main` and manual runs scan the collection. + +If a provider returns HTTP 404, verify that the selected model accepts chat +requests with your account. Presence in the public model catalog alone does not +prove serving availability. Change the caller's `model` input to an accessible +model and refresh `trusted-caller-blobs` before retrying; do not change global +provider defaults to troubleshoot one repository. + +The setup PR can exercise checks, but its first automatic comment requires +the consumer feedback listener on `main` and a subsequent PR run. Repository +maintainers configure branch protection separately if they want the Tier 1 +aggregate check to block merges. + +The evaluation workflow calls the existing hardened Tier 1 container workflow +at the same evaluator revision. Tier 2 and Tier 3 run independently with +`fail-fast: false`, Python 3.12, and only their tier's installed extras. Native +evaluator tools come from the pinned tools commit, while the candidate is +checked out separately at the exact PR head. Provider-backed jobs require the +current same-repository PR head or current default-branch commit, plus proven +write, maintain, or admin repository permission for the initiating actor. +Both actor permission and commit freshness are checked again before secrets +are used. Environment-scoped provider secrets in `skillevaluator` are +recommended; explicit mappings from repository CI secrets are also supported. +Reviewers are optional: repositories can add an approval rule when they want one, while +automatic execution does not depend on that GitHub plan feature. Protect +repository and CI workflow write access as part of maintaining this boundary. +Fork PRs retain keyless Tier 1 evidence. Provider-backed Tier 2/3 execution needs +an eligible same-repository run; unavailable evidence remains advisory and visible. + +The aggregate job always runs, and only Tier 1 determines its required result. +Tier 2 and Tier 3 remain advisory when they fail or are incomplete; their native +statuses and reports remain visible. The deprecated `tier3-required` input is +ignored, including when set to `true`; it cannot make Tier 3 block CI. Keep the +aggregate check required in branch protection to enforce Tier 1, and review its +actual check name in a completed run. Reports are retained for 14 +days in `skill-evaluator-results-attempt-N`, including failed and incomplete +results, with each tier's native JSON and HTML. **Re-run failed jobs** reuses +the latest evidence from tier jobs that were not rerun, and records each tier's +producing attempt as `source_attempt`. Artifact download links require +normal repository access; they do not create public report hosting. + +The feedback workflow starts from `workflow_run` on the default branch. It +checks out only pinned trusted tools, validates the producer and current PR +head, and updates one comment with a single summary table. Each skill has +one-line results for Static and Security Validation, Deduplication, and Live +Agent Evaluation, plus one **Report** link to the exact run's combined private +artifact. The lines show status, recorded issue count and the main finding or +blocker; incomplete or missing evidence shows an unknown count. Download and +extract the artifact, then open `index.html` for the detailed aggregate and +native reports. See the +[comment and report contract](#retained-three-tier-ci-evidence). +The workflow never checks out the candidate with a write token. Fork PR runs and +producer attempts superseded by a re-run are skipped without a comment rather than +failed. The workflow defers only to a report comment whose run marker names a +newer same-repository producer run or attempt of this caller for the same pull +request head. Otherwise it updates one existing report comment in place, +preferring one whose marker verifies, and leaves any other report comments +untouched. Report comments with unverifiable markers are never deferred to. +Merge this feedback file onto the default branch before expecting the first +automatic comment. Changes to the caller must refresh its approved Git blob in +`trusted-caller-blobs`. + +A missing provider key, unavailable runtime, or missing committed native dataset +must remain visible as an incomplete or needs-action result. Local `ci init`, +`ci status`, and `ci demo` are setup and inspection commands; a successful setup +is not evidence that the three tiers passed. Optional Pages hosting remains a +separate opt-in; artifact feedback works without it. + +## GitLab checks and feedback + +This path requires **GitLab 17.0 or later** for validated include inputs. +The unreleased [all-tier CLI path](#opt-in-to-three-tier-ci) +creates two thin files: `.gitlab-ci.yml` includes the pinned shared evaluation +configuration, and `.gitlab/skill-feedback.yml` includes pinned trusted feedback. +Install a reviewed candidate build; `--tiers 1,2,3` selects its bundled +schema-version 2 descriptor declaring `all-tiers-gitlab`. Use `--release` only +to override it with an alternate reviewed descriptor. Released 0.8.0 +[released configurations](../../bundles/0.8.0/README.md) remain Tier 1 only. The CLI never replaces an existing, +different `.gitlab-ci.yml`, such as a released Tier 1 setup: `--mode preview` +prints the rendered files and the merge steps, and `--mode save` and `--mode pr` +stop with an error until you merge by hand. + +### Merge into an existing root configuration + +The trusted feedback job validates the root `.gitlab-ci.yml` of the MR +pipeline, so a merged file must keep this shape: + +1. Make `include` exactly the two rendered entries: the pinned `all-tiers.yml` + remote and the `.gitlab/skill-feedback.yml` local include with its rule. + Remove the Tier 1 `skill-evaluation.yml` include, which defines the same + `skill-evaluation` job, and any other include. Feedback rejects other + includes and reads the root as plain YAML, so do not use `!reference` tags. +2. Add the rendered `variables`, replacing earlier `SKILL_EVAL_*` values. + If the root defines `stages`, keep `test` in the list: every SkillEvaluator + job uses stage `test`, and GitLab rejects a job whose stage is not listed. +3. Use the rendered `workflow: rules`. Keep your own workflow rules after the + two `SKILL_EVAL_FEEDBACK` rules and before the final `when: never`, and + only if they still allow merge-request, default-branch and web pipelines. +4. Replace any `skill-evaluation` override with the rendered + `skill-evaluation` and `skill-evaluation-native` entries. +5. Guard every other job. Trusted feedback runs as a pipeline on the protected + default branch, so an unguarded job, such as a deployment gated on the + default branch, would run again for every MR. Start each job's rules with + the guard. A job that has neither `rules` nor `only`/`except` gets the guard + followed by `- when: on_success`: + + ```yaml + deploy: + script: ./deploy.sh + rules: + - if: '$SKILL_EVAL_FEEDBACK == "true"' + when: never + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' + lint: + script: make lint + rules: + - if: '$SKILL_EVAL_FEEDBACK == "true"' + when: never + - when: on_success + ``` + + Merge these guards to the default branch before the setup MR. Its own + feedback request starts a pipeline from the current default-branch + configuration, and the guard is inert until `SKILL_EVAL_FEEDBACK` is set. + Write these guards as rules: `.skill-evaluation-not-feedback` is defined by + the all-tiers include, so until the setup MR merges, + `extends: .skill-evaluation-not-feedback` fails validation with + `unknown keys in extends`. After that, a job added later with neither + `rules` nor `only`/`except` can use that `extends` instead. +6. Add `.gitlab/skill-feedback.yml` as rendered and merge both files through + a setup MR. After it merges, `skillevaluator ci status --tiers 1,2,3` + reports whether the root is recognized and warns about unguarded root jobs. + +The shared configuration runs the pinned Tier 1 image plus parallel native +Tier 2 and Tier 3 jobs. Tier 2 runs without a Docker service. Only Tier 1 is +required; Tier 2 and Tier 3 are advisory, +including failed or incomplete outcomes. The deprecated +`SKILL_EVAL_TIER3_REQUIRED` variable is ignored, including when set to `'true'`; +it cannot make Tier 3 block CI. Native execution jobs retain failed outcomes +without stopping their parallel sibling. The aggregate is the required merge +gate and follows Tier 1 only: failed, incomplete or missing Tier 1 evidence +fails it, while advisory outcomes remain visible in retained reports. +The always-running aggregate job +retains `skill-evaluator-results/ci-results.json`, `index.html`, `summary.md`, +and each tier's native reports for 14 days. Reports stay behind your normal +GitLab artifact access controls. + +Trusted MR feedback uses one summary table with a row per skill. Each row has +one-line results for Static and Security Validation, Deduplication, and Live +Agent Evaluation, with status, recorded issue count and the main finding or +blocker. Incomplete or missing evidence shows an unknown count. One **Report** +link per skill downloads the combined aggregate artifact; extract it and open +`index.html` for the detailed aggregate and native reports. Separate tier +sections and per-tier links stay out of the comment. See the +[comment and report contract](#retained-three-tier-ci-evidence). + +Configure a native-job runner matching `SKILL_EVAL_RUNNER` (default `docker`). +Tier 1, aggregation and feedback jobs have no runner tags and also need a +compatible runner that accepts untagged jobs and supports their container +images. This remains necessary when a Linux or macOS shell runner runs the +native jobs in local mode. Configure the protected +`SKILL_EVAL_ENVIRONMENT` (default `skillevaluator`) and provider secrets scoped +to that execution environment. The native jobs and the trusted feedback job +use `environment: action: prepare`: each receives its environment's scoped +variables and access protection but records no deployment, so GitLab's +**Prevent outdated deployment jobs** setting cannot drop an older MR's jobs. +Do not add deployment approval rules to these environments. Depending on the +GitLab version and its `prevent_blocking_non_deployment_jobs` feature flag, +approval rules either do not gate these jobs or turn them into manual jobs +that wait to be run. Restrict who can run them with the protected +environments' deploy access. The Tier 3 Docker +service needs a privileged runner with Docker-in-Docker enabled. The daemon accepts only TLS clients on +port 2376 (`DOCKER_TLS_CERTDIR: /certs`), so agent containers cannot use the +Docker API. Configure the runner with `volumes = ["/certs/client"]` so the job +can read the generated client certificates. Docker mode also requires the Docker CLI, +Compose v2 and Buildx; the shared job installs these clients in supported root +Linux containers and checks readiness before evaluation. For local mode the generated caller +removes that service; use a Linux or macOS native runner with Python 3.12, +Git and Node/npm. Missing native tools must be installed by the runner +administrator; system-package bootstrap is limited to root Linux containers. The +trusted tools are installed from `SKILL_EVAL_TOOLS_REF`, an immutable commit. +Local agent CLIs are pinned and bootstrapped before selected-mode readiness +checks. The current same-project MR head is checked before model execution; +fork MRs do not receive provider-backed jobs. + +GitLab 17.0–18.3 requires a separate project access token with **Reporter** role +and **read_api** scope for current-MR admission. Store it as masked +`SKILLEVALUATOR_GITLAB_READ_TOKEN`, scoped only to the configured execution +environment (`skillevaluator` by default). Protect that environment to approved CI maintainers. For ordinary +unprotected MR branches, the variable must be available on those refs; enabling +GitLab's protected-variable restriction would withhold it. The admission helper +uses this read credential once, refuses HTTP redirects, and the job removes it +before runtime installation, doctor or provider execution. + +GitLab 18.4 and later support the default short-lived `CI_JOB_TOKEN` path for +this MR endpoint; the separate read token remains optional. `ci init --mode pr` +and `ci status` check the server version through the local authenticated API. +Offline preview/save keep the version unverified. These local commands report +the prerequisite and do not claim to validate a stored CI secret's privileges. +The setup still consists of two consumer files. + +Protect the default branch and create a project access token with `api` scope +and the Maintainer role. The publisher reads source-pipeline variables to verify +provenance as well as reading artifacts and updating MR notes; GitLab 17.8 +rejects the variables request for a Developer token. Store the token as masked, protected +`SKILLEVALUATOR_GITLAB_TOKEN`, scoped only to the protected +`skillevaluator-feedback` environment. The MR pipeline never receives that +token. After aggregation, a small job uses its short-lived `CI_JOB_TOKEN` with +GitLab's pipeline trigger API to request a separate pipeline on the protected +default branch. It sends only `SKILL_EVAL_FEEDBACK=true` and the source pipeline +ID, without forwarding repository variables or caller-supplied pipeline overrides. +GitLab also adds its own `TRIGGER_PAYLOAD` file variable. The publisher accepts +that bounded file entry alongside the two selectors and treats its contents as +opaque; additional caller variables remain disallowed. +The API supports same-project pipelines; GitLab's declarative multi-project +bridge rejects a target in the same project. That trusted pipeline uses validated include inputs for fixed evaluator pins, +API host and project, so forwarded MR variables cannot replace its privileged +bootstrap. It fetches only pinned evaluator tools and authenticates the server's +upstream pipeline and source job relationship, then validates the source +configuration, aggregate artifact, MR and current commit before updating one +comment. The publisher needs access to the instance's REST and GraphQL APIs; +the pipeline's persisted MR association supports GitLab 17.x as well. +The initiating pipeline user must be allowed to create a pipeline on +the protected default branch, pass the two pipeline variables and run the +protected feedback environment. Configure these permissions for authorized CI +maintainers; a job token does not bypass protected-branch or protected-environment permissions. +The feedback request is advisory. When GitLab refuses it, for example because +the MR pipeline user cannot run pipelines on the protected default branch or +may not pass pipeline variables, the request job fails as an allowed failure: +the pipeline shows a warning, no comment is posted or updated, and the aggregate +continues to enforce Tier 1. Server and network errors fail the job the same +way; its log says whether to fix permissions or retry. Before the setup MR +installs feedback on the default branch, no comment is posted and the aggregate +still enforces Tier 1. + +For a rejected publisher, open its job log. The check location refers to the +pinned `ci/feedback.py` revision, and the category distinguishes validation, +authentication and transport failures. + +Install both configuration files on the default branch before the first demo +MR. GitLab must permit the downstream pipeline and the protected feedback job; +a setup MR alone cannot establish trusted automatic feedback. On instances +that restrict protected variables in MR pipelines, approve an eligible protected +execution path according to your project policy; missing provider credentials +remain actionable evidence rather than a pass. Review the pipeline's actual +aggregate check before enabling merge restrictions; it gates Tier 1 only. + +The CLI's `--timeout-minutes` option writes a literal native-job duration and +a shorter evaluator budget. The default is 300 minutes. The budget ends 20 +minutes, or a quarter of a shorter duration, before the job timeout, leaving +time for setup and for retaining evidence: 300 minutes gives 16800 seconds. +On GitLab 17.8, CI variables are not expanded in a job's `timeout` field. For +a manual consumer, set the literal directly: + +```yaml +variables: + SKILL_EVAL_TIMEOUT_SECONDS: '2040' +skill-evaluation-native: + timeout: 45 minutes +``` + +Timeout and runner-tag overrides on `skill-evaluation-native` apply to both +native tiers. The +`skill-evaluation-native-tier2` job extends that public job and clears its +Docker service and TLS client variables; a caller's `services` override applies +to Tier 3. The generated local-mode caller sets `services: []` on +`skill-evaluation-native` to disable Tier 3's Docker service too. + +Keep a manual tier selection quoted, for example `SKILL_EVAL_TIERS: '1,2,3'`. +GitLab's YAML parser reads the unquoted value as the number `123`. The CLI +quotes generated variable values automatically. + +## Managed three-tier CI + +For two small consumer files and automatic artifact-backed PR/MR feedback, use +the opt-in [three-tier CLI onboarding](#opt-in-to-three-tier-ci). +This unreleased capability gates only on Tier 1 and runs advisory Tier 2 and +paired Tier 3, defaults to Docker, and supports native local mode. Failed or +incomplete advisory results retain their native evidence without blocking CI. +The deprecated Tier 3 required settings are ignored. It requires an +explicit compatible release descriptor and committed native datasets. The +released Tier 1-only workflows and bundles continue to work unchanged. + +The shared evaluator retains native tier reports and an aggregate manifest, +including incomplete outcomes. A separate trusted feedback entrypoint on the +default branch verifies the current head and updates one comment linking the +exact private CI artifact. Local setup and demo commands prepare the remote +run; inspect that run's gates and reports before considering onboarding verified. +The [hand-written CI recipes](../../../docs/ci-integration.mdx) retain their own CLI flags and policy choices. + +## Retained three-tier CI evidence + +The opt-in all-tier workflows retain one aggregate artifact for 14 days. GitHub +names it `skill-evaluator-results-attempt-N`; GitLab retains the aggregate job's +`skill-evaluator-results/` directory. The trusted feedback comment links the +actual artifact download for that run. Authentication and artifact expiry still +apply; this link does not imply publicly hosted HTML. + +The PR or MR comment presents one summary table with a row for each skill. +Each row shows a one-line status, issue count and the most important available +finding or blocker for **Tier 1 — Static and Security Validation**, +**Tier 2 — Deduplication** and **Tier 3 — Live Agent Evaluation**. A single +**Report** link per skill opens the combined report artifact for that run; +download and extract it, then open `index.html` to inspect the detailed aggregate +and native reports. The comment keeps tier details in those reports rather +than adding separate tier sections or report links. + +This schematic shows the information in a row; real results supply the statuses, +counts, findings and authenticated **Report** link: + +| Skill | Tier 1 — Static and Security Validation | Tier 2 — Deduplication | Tier 3 — Live Agent Evaluation | Combined report | +| --- | --- | --- | --- | --- | +| `skills/example` | Passed · 0 issues | Failed · 1 issue · duplicate content found | Incomplete · issues unknown · paired evidence missing | Report | + +Issue counts summarize unique actionable findings plus independent validation +errors and warnings from retained native evidence; informational notes and +configuration-only scope notices are excluded. Incomplete or missing evidence +shows an unknown count; it cannot imply zero findings or a completed check. +The Tier 1 gate and each advisory tier's status stay separate, so this example +can pass the required CI gate while still needing review of Tier 2 and Tier 3. +Every tier selects the same skills: the changed skills, or every skill when +the pull request changes CI setup under `.github/`, `.gitlab/`, +`.skillevaluator/ci` or `.gitlab-ci.yml` (on GitHub, also when it changes more +files than the API can list). A cell for a skill that its tier did not select +reads `Skipped · issues unknown · Not selected for this tier`. + +```text +ci-results.json +index.html +source-attempts.json # GitHub: run attempt whose artifact supplied each tier +summary.md +tier1/ # hardened scanner reports, including summary.json +tier2/ci-tier.json +tier2/skill-001/ # native retained JSON and HTML +tier3/ci-tier.json +tier3/skill-001/ # native retained JSON and HTML + diagnostics/ # redacted worker logs when execution failed or is incomplete +``` + +`ci-results.json` uses report contract `skillevaluator-ci-v1` and records the +repository, exact commit, platform, run ID, attempt, environment, and each +tier's required/advisory policy: Tier 1 has `required: true`, while Tier 2 and +Tier 3 have `required: false`. On GitHub, each tier with retained evidence +records `source_attempt`, the run attempt that produced it; after **Re-run +failed jobs** it can be earlier than the aggregate's own attempt. A tier can be +`passed`, `failed`, `incomplete`, `skipped`, `not_run`, `needs_action`, or +`neutral`. `neutral` means Tier 3 paired execution completed with a neutral +dimension-based verdict; Skill Lift has its own independent diagnostic band. +Like every Tier 3 status, it is advisory. Failed, +incomplete or missing Tier 1 evidence fails the aggregate. Tier 2/3 failures and +incomplete results remain advisory and retain their native status; a passing CI +gate does not mean those tiers passed. A check that never executed cannot become an empty success. +The deprecated Tier 3 required settings are ignored in CI. Standalone validation +and benchmark publication retain their separate policies. + +Tier 2 reports retain deduplication and catalog-similarity findings; +Tier 3 reports retain paired scores and coverage, Skill Lift, attempts, +latency/resource metrics and available trial links. Download and extract the +artifact, then open `index.html` to inspect the aggregate and native reports. +Detailed files remain available even when a tier fails or needs configuration. +When a native skill's execution fails or is incomplete, or its worker exits +abnormally, the skill retains bounded, redacted worker, Docker and +agent-installation diagnostics under `diagnostics/`, even if no canonical report +was produced or its verdict is failed. A complete run with a failed or neutral +verdict retains none. The worker's `command.log` comes first, then logs from +one trial of each Harbor job (a failing trial when there is one), at most four +trials per skill, with failing trials chosen before passing ones. All +skills of one tier share a limit of 1000 diagnostic files and 16 MiB. Each +`index.json` records retained, omitted and truncated files, including those +omitted at a limit. +Catalog failures retain diagnostics under `tier2/catalog/diagnostics/`. +Agent trajectories, credentials and runtime configuration are excluded. +The publisher renders validated retained JSON; it does not execute artifacts +or trust candidate-provided HTML in its privileged feedback job. Optional +report hosting is independent from these private artifact links. diff --git a/docs/AGENTS.md b/docs/AGENTS.md index 2f94f2fa0..09d92e7d9 100644 --- a/docs/AGENTS.md +++ b/docs/AGENTS.md @@ -24,6 +24,11 @@ folder holds MDX pages published to @@ -247,7 +229,7 @@ severity_overrides: skillevaluator validate ./skills --profile default --policy ./policy.yaml --tiers 1 -r json,markdown -o reports ``` -The policy overlays the default rules, and the resulting profile name is stamped into the HTML and JSON reports (and printed in the run banner with `--verbose`) — so a run always tells you which gate produced it. Full overlay syntax is on the [Tier 1: Validation](tier1-validation.mdx) page. +The policy overlays the default rules, and the resulting profile name is stamped into the HTML and JSON reports (and printed in the run banner with `--verbose`) — so a run always tells you which gate produced it. Full overlay syntax is on the [Tier 1: Validation](/skills/skillevaluator/tier1-validation) page. ## Parse the JSON @@ -262,7 +244,7 @@ When the exit code is not enough — dashboards, custom thresholds, badge genera | `benchmark_policy` | object | Persisted `tier2_required` and `tier3_required` evidence policy used for the publication decision | | `results[].publication_target` | object | Exact NFC filesystem-entry name, versioned source-tree digest, and digest algorithm used to bind split-tier evidence | | `results[].publication_evidence` | object | Validated built-in Tier 1 or Tier 2 producer contract: schema version, producer, tier, and canonical check ID | -| `results[].skillspector_baseline` | object | Single-skill targets with `--skillspector-baseline`, when SkillSpector is installed: `status`, baseline file name and `sha256:` digest (no local path), scanner versions, suppressed (per stage) and active finding counts, and a message. Absent from merged `security-scan` folder reports; `validate` on a folder records it in each skill's report. See [Audited SkillSpector baselines](tier1-validation.mdx#audited-skillspector-baselines) | +| `results[].skillspector_baseline` | object | Single-skill targets with `--skillspector-baseline`, when SkillSpector is installed: `status`, baseline file name and `sha256:` digest (no local path), scanner versions, suppressed (per stage) and active finding counts, and a message. Absent from merged `security-scan` folder reports; `validate` on a folder records it in each skill's report. See [Audited SkillSpector baselines](/skills/skillevaluator/tier1-validation#audited-skillspector-baselines) | | `tier3.run_id` | string | Run-owned Tier 3 identity; duplicated in the Tier 3 summary for consistency checks | | `severity_counts` | object | Totals for `critical`, `high`, `medium`, `low` | | `total_errors`, `total_warnings` | number | Raw error and warning records across all validators; a finding that two validators report counts twice | @@ -325,7 +307,7 @@ report=$(ls -t reports/skillevaluator-output-*.json | head -1) jq -e '([.quality_summary[]?.overall_score] | min // 100) >= 80' "$report" ``` -`jq -e` exits non-zero when the expression is false, so the step fails the job on its own. For Tier 3 payloads and the full results-on-disk layout, see [Reports & Results](reports.mdx). +`jq -e` exits non-zero when the expression is false, so the step fails the job on its own. For Tier 3 payloads and the full results-on-disk layout, see [Reports & Results](/skills/skillevaluator/reports). ## Troubleshooting @@ -340,7 +322,7 @@ jq -e '([.quality_summary[]?.overall_score] | min // 100) >= 80' "$report" scanners fail closed: `validate` exits non-zero and the report stays non-green until every required scanner is installed and returns valid evidence. See the workflow above or - [Installation: System tools](installation.mdx#system-tools). + [Installation: System tools](/skills/skillevaluator/installation#system-tools). Make sure the artifact `path` matches your `-o` directory and that the upload step carries `if: always()` — otherwise a failed gate skips the upload, and you lose the report exactly when you need it. @@ -350,16 +332,21 @@ jq -e '([.quality_summary[]?.overall_score] | min // 100) >= 80' "$report" ## Next steps - + What every report format contains and how to read scores, severities, and Tier 3 payloads. - + Every check behind the gate — what it inspects and how to fix findings. - + Add an LLM provider to unlock `--llm`, Tier 2 dedup, and Tier 3. - + The complete flag reference for `validate` and every other command. + +## Managed three-tier CI + +For the explicit opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). +The [managed three-tier CI reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#managed-three-tier-ci) preserves the detailed setup and contracts. diff --git a/docs/cli-onboarding.mdx b/docs/cli-onboarding.mdx index 29036ff89..6e7b4f4e4 100644 --- a/docs/cli-onboarding.mdx +++ b/docs/cli-onboarding.mdx @@ -1,14 +1,13 @@ --- title: "Set Up CI with the CLI" -description: "Prepare GitHub or GitLab checks and trusted feedback, with an explicit opt-in for three-tier CI." +description: "Prepare no-key Tier 1 checks for GitHub, with optional hosted reports and PR feedback." --- -Bring skill evaluation to your GitHub repository in one guided setup. -SkillEvaluator finds your skills, prepares the workflows and opens a setup PR. -If your repository already has skill checks, it can add reporting to that setup. -The released default setup gives your CI **Tier 1 checks, including -SkillSpector security scanning**. The explicit all-tier path below adds -advisory Tier 2 and paired Tier 3 on GitHub or GitLab. Only Tier 1 gates CI. +Bring Tier 1 quality and security checks to your repository. No model key required. +Optional LLM checks are available. SkillEvaluator finds your skills, prepares +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. ```bash title="Run inside your checked-out GitHub repository" pip install --upgrade skillevaluator @@ -48,153 +47,6 @@ locally. The shared container supplies the runtime; you control the configuratio [GitLab template](/skills/skillevaluator/gitlab-ci). -## Opt in to three-tier CI - -The new all-tier path supports **GitHub and GitLab** with two small consumer -files. Tier 1 is the only required tier; Tier 2 and Tier 3 are advisory, including -failed or incomplete results. `--tier3-required` is deprecated and ignored; it -cannot make Tier 3 block CI. Docker is the default. `--env-mode local` runs native -agent CLIs on the selected CI runner. This setup supports these two modes only. - - - This is an unreleased capability. Released 0.8.0 bundles and the default - `ci init` setup remain Tier 1 only. Install a reviewed candidate build that - includes the all-tier CLI and its bundled `ci-release-all-tiers.json`, then - opt in with `--tiers 1,2,3`. The CLI selects that descriptor automatically. - It must declare schema version 2 and `all-tiers-github` or `all-tiers-gitlab`, - with immutable workflow, feedback, tools and image references. A Tier 1 - descriptor cannot enable all-tier setup. - - -```bash title="Preview, then open a setup PR or MR" -skillevaluator ci init --tiers 1,2,3 \ - --platform github --provider openai --paths skills --mode preview --no-input --show-files -skillevaluator ci init --tiers 1,2,3 \ - --platform github --provider openai --paths skills --mode pr --no-input -``` - -To review an alternate candidate descriptor, add -`--release ./reviewed-ci-release.json` to either command. Review its immutable -references before using it; the option does not install the candidate CLI. - -For GitLab 17.0 or later, select `--platform gitlab`. GitHub uses your local -`gh` login; GitLab uses only a process-scoped `SKILLEVALUATOR_GITLAB_TOKEN` -for the repository's host, never a generic `GITLAB_TOKEN`. Origins other than -github.com need `--tiers 1,2,3` or `--platform gitlab` before any API request. -GitLab setup does not require `glab`. -`--mode preview` lists the files it would add or change without writing -anything; add `--show-files` to print their contents. -`--mode save` writes the two local configuration files; `--mode pr` opens the -setup review through the platform API. These commands prepare CI configuration; -they do not run the evaluators on your laptop. - -| Local command | Result | Evidence still needed | -| --- | --- | --- | -| `ci init` | Prepare the evaluation and trusted feedback entrypoints | Merge the setup and configure the CI runner and secrets | -| `ci status --tiers 1,2,3` | Read default-branch configuration and latest pipeline status | Inspect the actual CI reports and gates | -| `ci demo --tiers 1,2,3` | Open a small skill-change PR or MR | Inspect the Tier 1 gate, advisory Tier 2/3 results, comment, and retained reports | - -Before the first demo, commit native datasets under each skill's `evals/` -directory; see [Evaluation Datasets](eval-datasets.mdx). CI reuses those cases -with full positive and negative paired coverage. It does not generate cases or -use autopilot. Missing datasets or credentials produce actionable incomplete -results; they do not count as a passing tier. A passing Tier 1 CI gate does not -mean the advisory tiers completed or passed. Central dataset mappings are not -supported by this initial workflow. - -The trusted PR or MR comment shows one summary table with a row per skill: -Static and Security Validation, Deduplication, and Live Agent Evaluation each -get a one-line status, issue count and main finding or blocker. Counts remain -unknown for incomplete or missing evidence. Each skill has one **Report** link -to the run's combined artifact; normal repository authentication and artifact -expiry apply. Download and extract it, then open `index.html` for the detailed -aggregate and native reports. Hosted HTML remains optional. See -[Reports & Results](reports.mdx#retained-three-tier-ci-evidence) for an example. - -Create the `skillevaluator` execution environment and store provider secrets -there (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, or `NVIDIA_API_KEY`). GitHub also -supports the generated explicit mappings from repository CI secrets; scoped -environment secrets are recommended. On GitHub, -provider-backed jobs require the initiating actor to have repository write, -maintain, or admin permission, as verified through GitHub's API. They also -require the exact current same-repository PR head or current default-branch -commit. These checks run again after entering the execution environment. -Environment reviewers are optional: configure them if your repository wants -manual approval; automatic checks do not require a paid reviewer-protection -feature. Restrict repository and CI workflow write access to trusted maintainers. -GitLab's protected execution and feedback prerequisites are described below. -Choose matching chat and embedding configuration with `--provider`, -`--embedding-provider`, `--model`, and `--embedding-model`; the default embedding -provider follows OpenAI or NVIDIA Build; Anthropic defaults to OpenAI embeddings -and needs that provider's key too. The shared `--model` configures chat/judging -and the native agent provider default; agent-specific models in committed eval -configuration keep their native override semantics. `--agents` overrides the -native provider default: OpenAI uses Codex, Anthropic uses Claude Code, and -NVIDIA Build uses OpenCode. CI installs Tier 2 or Tier 3 extras from the reviewed -tools commit. Tier 3 checks the selected environment with `doctor`; local mode -also installs pinned native CLIs into an isolated runtime directory. - -`--timeout-minutes` sets the native job duration (10 to 360, 300 by default). -The evaluator's runtime budget ends 20 minutes, or a quarter of a shorter -duration, earlier so setup and retained evidence fit. If setup outlasts that -reserve and GitLab stops the native job at its timeout, the job uploads no -native evidence and the aggregate reports that tier's evidence as missing. -GitLab receives a literal duration -so the configuration also works on GitLab 17.8. `--runner` chooses a GitHub -runner label or GitLab runner tag. GitHub defaults -to `ubuntu-24.04`; GitLab defaults to a configured `docker` tag. Docker mode -requires a working daemon, Docker CLI, Compose v2 and Buildx; GitLab's included Docker-in-Docker service requires -a privileged runner that shares `/certs/client` for the daemon's TLS client -certificates. Local mode needs a compatible native runner with Node/npm; -the generated GitLab local configuration removes the Docker service. Cloud -sandbox backends are outside this onboarding path. - -Merge both generated files onto the default branch **before opening the demo**. -The first setup PR/MR can show evaluation checks, but automatic comments need -the trusted feedback entrypoint to exist on the default branch. GitLab also -needs a protected default branch and a project access token with `api` scope -and the Maintainer role, stored as a scoped, protected -`SKILLEVALUATOR_GITLAB_TOKEN` limited to the `skillevaluator-feedback` -environment. GitLab before 18.4 also needs a separate project Reporter/read_api -`SKILLEVALUATOR_GITLAB_READ_TOKEN`, scoped to the protected execution environment -(`skillevaluator` by default). The read credential is removed before provider work. -Newer servers use `CI_JOB_TOKEN` by default. Online init/status report the server -version prerequisite; offline preview/save leave admission readiness unverified. -The MR jobs receive no comment token. GitLab's feedback request uses its -short-lived job token; the initiating user needs permission to create a pipeline -on the protected default branch, pass pipeline variables and run the protected -feedback environment. Without it, the request is an allowed failure: no comment -is posted and the Tier 1 gate is unchanged. GitLab's provider-backed and -feedback jobs record no deployments. Do not add deployment approval rules to -their environments: depending on the GitLab version, approvals either do not -gate these jobs or turn them into manual jobs. Restrict them with the protected -environments' deploy access. -See the platform pages for -[GitHub](github-actions.mdx#three-tier-checks-and-feedback) and -[GitLab](gitlab-ci.mdx#three-tier-checks-and-feedback) details. - -### Upgrade a Tier 1-only consumer - -Keep the existing workflow while previewing the explicit all-tier setup with a -compatible descriptor. Review the new evaluator and feedback pins, provider, -runner, protected environment, paths and Tier 1-only gate. Remove or disable -the old Tier 1 caller in the setup review once the new all-tier caller covers -the same roots, so a PR does not run two independent scans. Merge the new -feedback entrypoint and then open a fresh demo. Existing released bundles and -Tier 1-only callers keep their current behavior. - -On GitLab, the Tier 1 and all-tier configurations share the root -`.gitlab-ci.yml`, which the CLI never replaces. `--mode preview` prints the -rendered files and the merge steps; `--mode save` and `--mode pr` stop with an -error while a different root file exists. First guard your other jobs with the -`SKILL_EVAL_FEEDBACK` rule and merge those guards to the default branch: the -setup MR's own feedback request runs the default branch's current -configuration. Then, in your setup MR, replace the Tier 1 `skill-evaluation.yml` -include with the two rendered includes, add the rendered variables, workflow -rules and job overrides, keep `test` in any `stages` list, and add -`.gitlab/skill-feedback.yml`. See -[Merge into an existing root configuration](gitlab-ci.mdx#merge-into-an-existing-root-configuration). - ## Run the wizard For a new scan, the wizard discovers folders containing `SKILL.md`. Answer five @@ -222,8 +74,9 @@ Folders [1]: 1,2 The score threshold does not override required security or schema checks. Default Tier 1 checks use no model key. Tier 2 and Tier 3 are not part of -the released Tier 1 wizard described in this section; use the explicit -[all-tier path](#opt-in-to-three-tier-ci) above for those stages. +the released Tier 1 wizard. Optional model-backed Tier 1 checks use the +[separate manual workflow](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/skill-checks-llm.yml) +and a provider key. Already have `.github/workflows/skill-checks.yml`? The CLI recognizes a @@ -392,3 +245,12 @@ extract it and open `index.html`. Failed scans retain their available reports to Add the shared scanner to your GitLab pipeline. + +## Opt in to three-tier CI + +For the explicit opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). +The [three-tier opt-in reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#opt-in-to-three-tier-ci) preserves the detailed setup and contracts. + +## Upgrade a Tier 1-only consumer + +The [Tier 1 consumer migration reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#upgrade-a-tier-1-only-consumer) preserves the detailed setup and contracts. diff --git a/docs/environment-variables.mdx b/docs/environment-variables.mdx index 14c35ff03..4e8ee122a 100644 --- a/docs/environment-variables.mdx +++ b/docs/environment-variables.mdx @@ -278,5 +278,5 @@ Keep credentials out of skill repositories and CI configuration files. Export pr Local onboarding can use `SKILLEVALUATOR_GITLAB_TOKEN` or `GITLAB_TOKEN` in its own process. Keep that user credential local; the CI publisher uses its separate -project-scoped credential. The [GitLab setup guide](gitlab-ci.mdx#three-tier-checks-and-feedback) +project-scoped credential. The [GitLab setup guide](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#gitlab-checks-and-feedback) describes version detection, variable scopes and the two-file consumer. diff --git a/docs/github-actions.mdx b/docs/github-actions.mdx index 71a692180..9a27ee6af 100644 --- a/docs/github-actions.mdx +++ b/docs/github-actions.mdx @@ -3,7 +3,8 @@ title: "GitHub Actions" description: "Bring SkillEvaluator to your GitHub repository with a reusable workflow, clear results and optional PR feedback." --- -Bring skill evaluation to your GitHub repository with one workflow file. +Bring Tier 1 quality and security checks to your repository. No model key required. +Optional LLM checks are available. Choose your skill folders; pull requests check changed skills automatically. The shared image includes **Tier 1 and SkillSpector security scanning**. @@ -16,108 +17,6 @@ The shared image includes **Tier 1 and SkillSpector security scanning**. -## Three-tier checks and feedback - -The opt-in [CLI setup](cli-onboarding.mdx#opt-in-to-three-tier-ci) creates -`.github/workflows/skill-checks-all-tiers.yml` and -`.github/workflows/feedback-all-tiers.yml`. This unreleased path needs a reviewed -candidate build and its bundled capability-bearing descriptor; the 0.8.0 -downloads below remain Tier 1 only. `--tiers 1,2,3` selects the candidate's -bundled descriptor; `--release` can override it for an alternate reviewed candidate. -The [candidate source templates](https://github.com/NVIDIA/SkillEvaluator/tree/main/ci/templates) -contain placeholders and must be filled with reviewed immutable references. - -The shared `evaluate-all-tiers.yml` and `feedback-all-tiers.yml` files define -reusable `workflow_call` workflows. Adding them to SkillEvaluator does not -enable checks or comments on SkillEvaluator's own pull requests. Each repository, -including SkillEvaluator itself, needs the generated caller pair committed -there, with the trusted feedback caller on its default branch. - -SkillEvaluator evaluates its own `skills/` collection with -`.github/workflows/skill-checks-all-tiers.yml`. Its consumer feedback listener is -`.github/workflows/skill-feedback-all-tiers.yml`, preserving the public reusable -publisher at `.github/workflows/feedback-all-tiers.yml`. The CLI selects this -alternate filename when the conventional feedback file already defines a -reusable workflow, and `ci status --tiers 1,2,3` recognizes it. - -The repository callers pin a reviewed `main` commit for the evaluator workflows -and tools, and the verified released Tier 1 image. They use Docker, NVIDIA Build, -one attempt and one concurrent task, and the committed native datasets. The -caller's explicit `model` input selects chat, judging and the default live-agent -model together; embeddings use the separate `embedding-model` input. Add -`NVIDIA_API_KEY` as a repository Actions secret before expecting provider-backed -results. Without it, Tier 2 and Tier 3 -remain incomplete/advisory; a passing Tier 1 gate is not an all-tier evaluation -pass. Forks retain keyless Tier 1 checks. On PRs, ordinary software changes -select no skills, skill changes select the affected skills, and CI configuration -changes select the collection. Pushes to `main` and manual runs scan the collection. - -If a provider returns HTTP 404, verify that the selected model accepts chat -requests with your account. Presence in the public model catalog alone does not -prove serving availability. Change the caller's `model` input to an accessible -model and refresh `trusted-caller-blobs` before retrying; do not change global -provider defaults to troubleshoot one repository. - -The setup PR can exercise checks, but its first automatic comment requires -the consumer feedback listener on `main` and a subsequent PR run. Repository -maintainers configure branch protection separately if they want the Tier 1 -aggregate check to block merges. - -The evaluation workflow calls the existing hardened Tier 1 container workflow -at the same evaluator revision. Tier 2 and Tier 3 run independently with -`fail-fast: false`, Python 3.12, and only their tier's installed extras. Native -evaluator tools come from the pinned tools commit, while the candidate is -checked out separately at the exact PR head. Provider-backed jobs require the -current same-repository PR head or current default-branch commit, plus proven -write, maintain, or admin repository permission for the initiating actor. -Both actor permission and commit freshness are checked again before secrets -are used. Environment-scoped provider secrets in `skillevaluator` are -recommended; explicit mappings from repository CI secrets are also supported. -Reviewers are optional: repositories can add an approval rule when they want one, while -automatic execution does not depend on that GitHub plan feature. Protect -repository and CI workflow write access as part of maintaining this boundary. -Fork PRs retain keyless Tier 1 evidence. Provider-backed Tier 2/3 execution needs -an eligible same-repository run; unavailable evidence remains advisory and visible. - -The aggregate job always runs, and only Tier 1 determines its required result. -Tier 2 and Tier 3 remain advisory when they fail or are incomplete; their native -statuses and reports remain visible. The deprecated `tier3-required` input is -ignored, including when set to `true`; it cannot make Tier 3 block CI. Keep the -aggregate check required in branch protection to enforce Tier 1, and review its -actual check name in a completed run. Reports are retained for 14 -days in `skill-evaluator-results-attempt-N`, including failed and incomplete -results, with each tier's native JSON and HTML. **Re-run failed jobs** reuses -the latest evidence from tier jobs that were not rerun, and records each tier's -producing attempt as `source_attempt`. Artifact download links require -normal repository access; they do not create public report hosting. - -The feedback workflow starts from `workflow_run` on the default branch. It -checks out only pinned trusted tools, validates the producer and current PR -head, and updates one comment with a single summary table. Each skill has -one-line results for Static and Security Validation, Deduplication, and Live -Agent Evaluation, plus one **Report** link to the exact run's combined private -artifact. The lines show status, recorded issue count and the main finding or -blocker; incomplete or missing evidence shows an unknown count. Download and -extract the artifact, then open `index.html` for the detailed aggregate and -native reports. See the -[comment and report contract](reports.mdx#retained-three-tier-ci-evidence). -The workflow never checks out the candidate with a write token. Fork PR runs and -producer attempts superseded by a re-run are skipped without a comment rather than -failed. The workflow defers only to a report comment whose run marker names a -newer same-repository producer run or attempt of this caller for the same pull -request head. Otherwise it updates one existing report comment in place, -preferring one whose marker verifies, and leaves any other report comments -untouched. Report comments with unverifiable markers are never deferred to. -Merge this feedback file onto the default branch before expecting the first -automatic comment. Changes to the caller must refresh its approved Git blob in -`trusted-caller-blobs`. - -A missing provider key, unavailable runtime, or missing committed native dataset -must remain visible as an incomplete or needs-action result. Local `ci init`, -`ci status`, and `ci demo` are setup and inspection commands; a successful setup -is not evidence that the three tiers passed. Optional Pages hosting remains a -separate opt-in; artifact feedback works without it. - ## Get started The scanner uses one **default validation policy** for public and private @@ -277,7 +176,7 @@ or let the [CLI](/skills/skillevaluator/cli-onboarding) handle it. `*.pages.github.io` URL. It accepts an existing SkillEvaluator report site or a newly configured empty private site, and preserves unrelated websites. If private hosting is unavailable, choose checks only. See - [private report hosting](cli-onboarding.mdx#private-report-hosting) for the + [private report hosting](/skills/skillevaluator/cli-onboarding#private-report-hosting) for the guided path and [GitHub's access-control requirements](https://docs.github.com/en/enterprise-cloud@latest/pages/getting-started-with-github-pages/changing-the-visibility-of-your-github-pages-site). @@ -359,3 +258,8 @@ or let the [CLI](/skills/skillevaluator/cli-onboarding) handle it. Use the shared scanner image with a GitLab pipeline. + +## Three-tier checks and feedback + +For the explicit opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). +The [three-tier checks and feedback reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#github-checks-and-feedback) preserves the detailed setup and contracts. diff --git a/docs/gitlab-ci.mdx b/docs/gitlab-ci.mdx index 090e490b9..7c51abed7 100644 --- a/docs/gitlab-ci.mdx +++ b/docs/gitlab-ci.mdx @@ -1,217 +1,14 @@ --- title: "GitLab CI/CD" -description: "Add reusable skill checks to GitLab, including an opt-in three-tier pipeline with trusted feedback." +description: "Add Tier 1 quality and security checks to GitLab with no model key required." --- -Bring skill evaluation to GitLab with a reusable CI job. Point it at your skills +Bring Tier 1 quality and security checks to your repository. No model key required. +Optional LLM checks are available. Point the reusable GitLab CI job at your skills and choose a quality threshold; merge requests evaluate changed skills without installing scanners or adding evaluation code to your repository. The shared container includes SkillSpector security scanning. -## Three-tier checks and feedback - -This path requires **GitLab 17.0 or later** for validated include inputs. -The unreleased [all-tier CLI path](cli-onboarding.mdx#opt-in-to-three-tier-ci) -creates two thin files: `.gitlab-ci.yml` includes the pinned shared evaluation -configuration, and `.gitlab/skill-feedback.yml` includes pinned trusted feedback. -Install a reviewed candidate build; `--tiers 1,2,3` selects its bundled -schema-version 2 descriptor declaring `all-tiers-gitlab`. Use `--release` only -to override it with an alternate reviewed descriptor. Released 0.8.0 -configurations below remain Tier 1 only. The CLI never replaces an existing, -different `.gitlab-ci.yml`, such as a released Tier 1 setup: `--mode preview` -prints the rendered files and the merge steps, and `--mode save` and `--mode pr` -stop with an error until you merge by hand. - -### Merge into an existing root configuration - -The trusted feedback job validates the root `.gitlab-ci.yml` of the MR -pipeline, so a merged file must keep this shape: - -1. Make `include` exactly the two rendered entries: the pinned `all-tiers.yml` - remote and the `.gitlab/skill-feedback.yml` local include with its rule. - Remove the Tier 1 `skill-evaluation.yml` include, which defines the same - `skill-evaluation` job, and any other include. Feedback rejects other - includes and reads the root as plain YAML, so do not use `!reference` tags. -2. Add the rendered `variables`, replacing earlier `SKILL_EVAL_*` values. - If the root defines `stages`, keep `test` in the list: every SkillEvaluator - job uses stage `test`, and GitLab rejects a job whose stage is not listed. -3. Use the rendered `workflow: rules`. Keep your own workflow rules after the - two `SKILL_EVAL_FEEDBACK` rules and before the final `when: never`, and - only if they still allow merge-request, default-branch and web pipelines. -4. Replace any `skill-evaluation` override with the rendered - `skill-evaluation` and `skill-evaluation-native` entries. -5. Guard every other job. Trusted feedback runs as a pipeline on the protected - default branch, so an unguarded job, such as a deployment gated on the - default branch, would run again for every MR. Start each job's rules with - the guard. A job that has neither `rules` nor `only`/`except` gets the guard - followed by `- when: on_success`: - - ```yaml - deploy: - script: ./deploy.sh - rules: - - if: '$SKILL_EVAL_FEEDBACK == "true"' - when: never - - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - lint: - script: make lint - rules: - - if: '$SKILL_EVAL_FEEDBACK == "true"' - when: never - - when: on_success - ``` - - Merge these guards to the default branch before the setup MR. Its own - feedback request starts a pipeline from the current default-branch - configuration, and the guard is inert until `SKILL_EVAL_FEEDBACK` is set. - Write these guards as rules: `.skill-evaluation-not-feedback` is defined by - the all-tiers include, so until the setup MR merges, - `extends: .skill-evaluation-not-feedback` fails validation with - `unknown keys in extends`. After that, a job added later with neither - `rules` nor `only`/`except` can use that `extends` instead. -6. Add `.gitlab/skill-feedback.yml` as rendered and merge both files through - a setup MR. After it merges, `skillevaluator ci status --tiers 1,2,3` - reports whether the root is recognized and warns about unguarded root jobs. - -The shared configuration runs the pinned Tier 1 image plus parallel native -Tier 2 and Tier 3 jobs. Tier 2 runs without a Docker service. Only Tier 1 is -required; Tier 2 and Tier 3 are advisory, -including failed or incomplete outcomes. The deprecated -`SKILL_EVAL_TIER3_REQUIRED` variable is ignored, including when set to `'true'`; -it cannot make Tier 3 block CI. Native execution jobs retain failed outcomes -without stopping their parallel sibling. The aggregate is the required merge -gate and follows Tier 1 only: failed, incomplete or missing Tier 1 evidence -fails it, while advisory outcomes remain visible in retained reports. -The always-running aggregate job -retains `skill-evaluator-results/ci-results.json`, `index.html`, `summary.md`, -and each tier's native reports for 14 days. Reports stay behind your normal -GitLab artifact access controls. - -Trusted MR feedback uses one summary table with a row per skill. Each row has -one-line results for Static and Security Validation, Deduplication, and Live -Agent Evaluation, with status, recorded issue count and the main finding or -blocker. Incomplete or missing evidence shows an unknown count. One **Report** -link per skill downloads the combined aggregate artifact; extract it and open -`index.html` for the detailed aggregate and native reports. Separate tier -sections and per-tier links stay out of the comment. See the -[comment and report contract](reports.mdx#retained-three-tier-ci-evidence). - -Configure a native-job runner matching `SKILL_EVAL_RUNNER` (default `docker`). -Tier 1, aggregation and feedback jobs have no runner tags and also need a -compatible runner that accepts untagged jobs and supports their container -images. This remains necessary when a Linux or macOS shell runner runs the -native jobs in local mode. Configure the protected -`SKILL_EVAL_ENVIRONMENT` (default `skillevaluator`) and provider secrets scoped -to that execution environment. The native jobs and the trusted feedback job -use `environment: action: prepare`: each receives its environment's scoped -variables and access protection but records no deployment, so GitLab's -**Prevent outdated deployment jobs** setting cannot drop an older MR's jobs. -Do not add deployment approval rules to these environments. Depending on the -GitLab version and its `prevent_blocking_non_deployment_jobs` feature flag, -approval rules either do not gate these jobs or turn them into manual jobs -that wait to be run. Restrict who can run them with the protected -environments' deploy access. The Tier 3 Docker -service needs a privileged runner with Docker-in-Docker enabled. The daemon accepts only TLS clients on -port 2376 (`DOCKER_TLS_CERTDIR: /certs`), so agent containers cannot use the -Docker API. Configure the runner with `volumes = ["/certs/client"]` so the job -can read the generated client certificates. Docker mode also requires the Docker CLI, -Compose v2 and Buildx; the shared job installs these clients in supported root -Linux containers and checks readiness before evaluation. For local mode the generated caller -removes that service; use a Linux or macOS native runner with Python 3.12, -Git and Node/npm. Missing native tools must be installed by the runner -administrator; system-package bootstrap is limited to root Linux containers. The -trusted tools are installed from `SKILL_EVAL_TOOLS_REF`, an immutable commit. -Local agent CLIs are pinned and bootstrapped before selected-mode readiness -checks. The current same-project MR head is checked before model execution; -fork MRs do not receive provider-backed jobs. - -GitLab 17.0–18.3 requires a separate project access token with **Reporter** role -and **read_api** scope for current-MR admission. Store it as masked -`SKILLEVALUATOR_GITLAB_READ_TOKEN`, scoped only to the configured execution -environment (`skillevaluator` by default). Protect that environment to approved CI maintainers. For ordinary -unprotected MR branches, the variable must be available on those refs; enabling -GitLab's protected-variable restriction would withhold it. The admission helper -uses this read credential once, refuses HTTP redirects, and the job removes it -before runtime installation, doctor or provider execution. - -GitLab 18.4 and later support the default short-lived `CI_JOB_TOKEN` path for -this MR endpoint; the separate read token remains optional. `ci init --mode pr` -and `ci status` check the server version through the local authenticated API. -Offline preview/save keep the version unverified. These local commands report -the prerequisite and do not claim to validate a stored CI secret's privileges. -The setup still consists of two consumer files. - -Protect the default branch and create a project access token with `api` scope -and the Maintainer role. The publisher reads source-pipeline variables to verify -provenance as well as reading artifacts and updating MR notes; GitLab 17.8 -rejects the variables request for a Developer token. Store the token as masked, protected -`SKILLEVALUATOR_GITLAB_TOKEN`, scoped only to the protected -`skillevaluator-feedback` environment. The MR pipeline never receives that -token. After aggregation, a small job uses its short-lived `CI_JOB_TOKEN` with -GitLab's pipeline trigger API to request a separate pipeline on the protected -default branch. It sends only `SKILL_EVAL_FEEDBACK=true` and the source pipeline -ID, without forwarding repository variables or caller-supplied pipeline overrides. -GitLab also adds its own `TRIGGER_PAYLOAD` file variable. The publisher accepts -that bounded file entry alongside the two selectors and treats its contents as -opaque; additional caller variables remain disallowed. -The API supports same-project pipelines; GitLab's declarative multi-project -bridge rejects a target in the same project. That trusted pipeline uses validated include inputs for fixed evaluator pins, -API host and project, so forwarded MR variables cannot replace its privileged -bootstrap. It fetches only pinned evaluator tools and authenticates the server's -upstream pipeline and source job relationship, then validates the source -configuration, aggregate artifact, MR and current commit before updating one -comment. The publisher needs access to the instance's REST and GraphQL APIs; -the pipeline's persisted MR association supports GitLab 17.x as well. -The initiating pipeline user must be allowed to create a pipeline on -the protected default branch, pass the two pipeline variables and run the -protected feedback environment. Configure these permissions for authorized CI -maintainers; a job token does not bypass protected-branch or protected-environment permissions. -The feedback request is advisory. When GitLab refuses it, for example because -the MR pipeline user cannot run pipelines on the protected default branch or -may not pass pipeline variables, the request job fails as an allowed failure: -the pipeline shows a warning, no comment is posted or updated, and the aggregate -continues to enforce Tier 1. Server and network errors fail the job the same -way; its log says whether to fix permissions or retry. Before the setup MR -installs feedback on the default branch, no comment is posted and the aggregate -still enforces Tier 1. - -For a rejected publisher, open its job log. The check location refers to the -pinned `ci/feedback.py` revision, and the category distinguishes validation, -authentication and transport failures. - -Install both configuration files on the default branch before the first demo -MR. GitLab must permit the downstream pipeline and the protected feedback job; -a setup MR alone cannot establish trusted automatic feedback. On instances -that restrict protected variables in MR pipelines, approve an eligible protected -execution path according to your project policy; missing provider credentials -remain actionable evidence rather than a pass. Review the pipeline's actual -aggregate check before enabling merge restrictions; it gates Tier 1 only. - -The CLI's `--timeout-minutes` option writes a literal native-job duration and -a shorter evaluator budget. The default is 300 minutes. The budget ends 20 -minutes, or a quarter of a shorter duration, before the job timeout, leaving -time for setup and for retaining evidence: 300 minutes gives 16800 seconds. -On GitLab 17.8, CI variables are not expanded in a job's `timeout` field. For -a manual consumer, set the literal directly: - -```yaml -variables: - SKILL_EVAL_TIMEOUT_SECONDS: '2040' -skill-evaluation-native: - timeout: 45 minutes -``` - -Timeout and runner-tag overrides on `skill-evaluation-native` apply to both -native tiers. The -`skill-evaluation-native-tier2` job extends that public job and clears its -Docker service and TLS client variables; a caller's `services` override applies -to Tier 3. The generated local-mode caller sets `services: []` on -`skill-evaluation-native` to disable Tier 3's Docker service too. - -Keep a manual tier selection quoted, for example `SKILL_EVAL_TIERS: '1,2,3'`. -GitLab's YAML parser reads the unquoted value as the number `123`. The CLI -quotes generated variable values automatically. - ## Get started The shared image applies one default validation policy to public and private @@ -328,7 +125,7 @@ Skill result: "skills/glossary-builder" — FAILED The threshold applies to the quality score; security, schema and other - required checks remain independent gates. The first version runs Tier 1 + required checks remain independent gates. This reusable integration runs Tier 1 only. This integration does not host reports or post merge-request comments automatically. Known values detected by credential patterns, NVIDIA API keys, and unquoted `KEY=value` and `Bearer` credentials are redacted, @@ -340,3 +137,12 @@ Skill result: "skills/glossary-builder" — FAILED For GitHub and other CI systems, see [Repository Integration](/skills/skillevaluator/repository-integration). + +## Three-tier checks and feedback + +For the explicit opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). +The [three-tier checks and feedback reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#gitlab-checks-and-feedback) preserves the detailed setup and contracts. + +## Merge into an existing root configuration + +The [merge into an existing root configuration reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#merge-into-an-existing-root-configuration) preserves the detailed setup and contracts. diff --git a/docs/reports.mdx b/docs/reports.mdx index 13f1cdcf0..c3cf0cc19 100644 --- a/docs/reports.mdx +++ b/docs/reports.mdx @@ -16,92 +16,6 @@ lift data that `view` and `compare` read back later. evaluation framework that runs those Tier 3 trials. SkillEvaluator collects its job artifacts into the results tree described on this page. -## Retained three-tier CI evidence - -The opt-in all-tier workflows retain one aggregate artifact for 14 days. GitHub -names it `skill-evaluator-results-attempt-N`; GitLab retains the aggregate job's -`skill-evaluator-results/` directory. The trusted feedback comment links the -actual artifact download for that run. Authentication and artifact expiry still -apply; this link does not imply publicly hosted HTML. - -The PR or MR comment presents one summary table with a row for each skill. -Each row shows a one-line status, issue count and the most important available -finding or blocker for **Tier 1 — Static and Security Validation**, -**Tier 2 — Deduplication** and **Tier 3 — Live Agent Evaluation**. A single -**Report** link per skill opens the combined report artifact for that run; -download and extract it, then open `index.html` to inspect the detailed aggregate -and native reports. The comment keeps tier details in those reports rather -than adding separate tier sections or report links. - -This schematic shows the information in a row; real results supply the statuses, -counts, findings and authenticated **Report** link: - -| Skill | Tier 1 — Static and Security Validation | Tier 2 — Deduplication | Tier 3 — Live Agent Evaluation | Combined report | -| --- | --- | --- | --- | --- | -| `skills/example` | Passed · 0 issues | Failed · 1 issue · duplicate content found | Incomplete · issues unknown · paired evidence missing | Report | - -Issue counts summarize unique actionable findings plus independent validation -errors and warnings from retained native evidence; informational notes and -configuration-only scope notices are excluded. Incomplete or missing evidence -shows an unknown count; it cannot imply zero findings or a completed check. -The Tier 1 gate and each advisory tier's status stay separate, so this example -can pass the required CI gate while still needing review of Tier 2 and Tier 3. -Every tier selects the same skills: the changed skills, or every skill when -the pull request changes CI setup under `.github/`, `.gitlab/`, -`.skillevaluator/ci` or `.gitlab-ci.yml` (on GitHub, also when it changes more -files than the API can list). A cell for a skill that its tier did not select -reads `Skipped · issues unknown · Not selected for this tier`. - -```text -ci-results.json -index.html -source-attempts.json # GitHub: run attempt whose artifact supplied each tier -summary.md -tier1/ # hardened scanner reports, including summary.json -tier2/ci-tier.json -tier2/skill-001/ # native retained JSON and HTML -tier3/ci-tier.json -tier3/skill-001/ # native retained JSON and HTML - diagnostics/ # redacted worker logs when execution failed or is incomplete -``` - -`ci-results.json` uses report contract `skillevaluator-ci-v1` and records the -repository, exact commit, platform, run ID, attempt, environment, and each -tier's required/advisory policy: Tier 1 has `required: true`, while Tier 2 and -Tier 3 have `required: false`. On GitHub, each tier with retained evidence -records `source_attempt`, the run attempt that produced it; after **Re-run -failed jobs** it can be earlier than the aggregate's own attempt. A tier can be -`passed`, `failed`, `incomplete`, `skipped`, `not_run`, `needs_action`, or -`neutral`. `neutral` means Tier 3 paired execution completed with a neutral -dimension-based verdict; Skill Lift has its own independent diagnostic band. -Like every Tier 3 status, it is advisory. Failed, -incomplete or missing Tier 1 evidence fails the aggregate. Tier 2/3 failures and -incomplete results remain advisory and retain their native status; a passing CI -gate does not mean those tiers passed. A check that never executed cannot become an empty success. -The deprecated Tier 3 required settings are ignored in CI. Standalone validation -and benchmark publication retain their separate policies. - -Tier 2 reports retain deduplication and catalog-similarity findings; -Tier 3 reports retain paired scores and coverage, Skill Lift, attempts, -latency/resource metrics and available trial links. Download and extract the -artifact, then open `index.html` to inspect the aggregate and native reports. -Detailed files remain available even when a tier fails or needs configuration. -When a native skill's execution fails or is incomplete, or its worker exits -abnormally, the skill retains bounded, redacted worker, Docker and -agent-installation diagnostics under `diagnostics/`, even if no canonical report -was produced or its verdict is failed. A complete run with a failed or neutral -verdict retains none. The worker's `command.log` comes first, then logs from -one trial of each Harbor job (a failing trial when there is one), at most four -trials per skill, with failing trials chosen before passing ones. All -skills of one tier share a limit of 1000 diagnostic files and 16 MiB. Each -`index.json` records retained, omitted and truncated files, including those -omitted at a limit. -Catalog failures retain diagnostics under `tier2/catalog/diagnostics/`. -Agent trajectories, credentials and runtime configuration are excluded. -The publisher renders validated retained JSON; it does not execute artifacts -or trust candidate-provided HTML in its privileged feedback job. Optional -report hosting is independent from these private artifact links. - ## Report formats Every Tier 1 and Tier 2 command accepts `-r`/`--report` and `-o`/`--output-dir`. @@ -160,7 +74,7 @@ no-color, redirected, and string-rendered output retains readable paths. skillevaluator validate ./my-skill -r json,html,markdown,sarif -o reports ``` -For gating a pipeline on the JSON output, see [Gate Your CI](ci-integration.mdx). +For gating a pipeline on the JSON output, see [Gate Your CI](/skills/skillevaluator/ci-integration). ## Reading the final status @@ -486,7 +400,7 @@ the orchestration did not supply render as Keep the file with the skill and refresh it whenever the skill, eval dataset, agent/model, evaluator version, scoring policy, attempt policy, or execution environment materially changes. Follow the -[rollout and backfill runbook](benchmark-rollout.mdx) when regenerating existing +[rollout and backfill runbook](/skills/skillevaluator/benchmark-rollout) when regenerating existing published cards. ## Safety guarantees @@ -564,7 +478,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](tier3-live-evaluation.mdx#evidence-budgets) or, for + fit the [evidence budget](/skills/skillevaluator/tier3-live-evaluation#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. @@ -688,7 +602,7 @@ has a dimension below 0.40. A +0.03 lift therefore remains neutral under these bands. Lift requires both arms; if you ran with `--skip-baseline`, there is no lift to report. In `custom_only` grading, your own grader defines the score and lift — see -[Custom Graders & Tasks](custom-graders.mdx). +[Custom Graders & Tasks](/skills/skillevaluator/custom-graders). When the HTML report has no lift for an agent or dimension, its label says why. **no baseline** means that row has no baseline score, for example after @@ -880,7 +794,7 @@ Opens a terminal chat about one completed run. Answers are grounded in that run's scores, comparisons, per-case attempts, measured agent resources, and saved feedback, without running the evaluation or regenerating its LLM feedback. Pass the run directory itself; see -[tier3 feedback](cli-reference.mdx#tier3-feedback) for the options and what the +[tier3 feedback](/skills/skillevaluator/cli-reference#tier3-feedback) for the options and what the chat sends to the LLM provider. ```bash title="Discuss one run" @@ -907,7 +821,7 @@ alias.) ## Performance dashboard -Use the optional [Performance Dashboard](performance-dashboard.mdx) to filter +Use the optional [Performance Dashboard](/skills/skillevaluator/performance-dashboard) to filter saved Tier 3 reports and retained runs, compare paired scores and resource use, and download the visible tables as CSV. The guide covers installation, comparison eligibility, measurement limits, and reloading saved inputs. @@ -958,22 +872,27 @@ configured model, unless a server-side `fallback` block in the reply names another model. Exit codes and a ready-made JSON gating recipe live in -[Gate Your CI](ci-integration.mdx). +[Gate Your CI](/skills/skillevaluator/ci-integration). ## Next steps - + 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. - + Define your own scoring when the default graders can't express success. - + Every flag for view, compare, and the report options, with exact defaults. + +## Retained three-tier CI evidence + +For the explicit opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). +The [retained three-tier CI evidence reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#retained-three-tier-ci-evidence) preserves the detailed setup and contracts. diff --git a/docs/repository-integration.mdx b/docs/repository-integration.mdx index 9329cc4b0..4a662cade 100644 --- a/docs/repository-integration.mdx +++ b/docs/repository-integration.mdx @@ -3,8 +3,9 @@ title: "Bring Skill Evaluation to Your Repository" description: "Evaluate changed skills automatically with reusable GitHub and GitLab CI configurations." --- -Bring SkillEvaluator to the repository where your team builds skills. Choose -your skill folders and get results automatically when skills change. +Bring Tier 1 quality and security checks to your repository. No model key required. +Optional LLM checks are available. Choose your skill folders and get results +automatically when skills change. No evaluation code to write. No scanner installations to manage. The shared container brings the Tier 1 runtime to your CI runner, including SkillSpector diff --git a/docs/tier1-validation.mdx b/docs/tier1-validation.mdx index d5439ee84..aaa746e4e 100644 --- a/docs/tier1-validation.mdx +++ b/docs/tier1-validation.mdx @@ -24,7 +24,7 @@ path shows help; expert subcommands remain available below. ## Tier 1 in automatic CI -The [all-tier CI setup](cli-onboarding.mdx#opt-in-to-three-tier-ci) keeps Tier 1 +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 diff --git a/docs/tier2-deduplication.mdx b/docs/tier2-deduplication.mdx index 8aca0be6a..5b65229a9 100644 --- a/docs/tier2-deduplication.mdx +++ b/docs/tier2-deduplication.mdx @@ -17,7 +17,7 @@ No external vector database or catalog service is required. ## Tier 2 in automatic CI -The [all-tier onboarding path](cli-onboarding.mdx#opt-in-to-three-tier-ci) +The [all-tier onboarding path](/skills/skillevaluator/advanced-ci) runs Tier 2 as an advisory check, independently from the Tier 1 image and paired Tier 3 evaluation. Configure chat and embedding provider credentials as CI secrets. Tier 2 does not read `evals/`; committed native datasets are needed @@ -28,7 +28,7 @@ The aggregate artifact preserves native Tier 2 JSON and HTML, including deduplication and catalog-similarity findings. Failed, missing or incomplete Tier 2 results stay advisory and do not block a passing Tier 1 CI gate; they are never relabeled as completed passes. See -[retained CI evidence](reports.mdx#retained-three-tier-ci-evidence). +[retained CI evidence](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#retained-three-tier-ci-evidence). ## Run Tier 2 diff --git a/docs/tier3-live-evaluation.mdx b/docs/tier3-live-evaluation.mdx index 01da045b6..22c91b203 100644 --- a/docs/tier3-live-evaluation.mdx +++ b/docs/tier3-live-evaluation.mdx @@ -13,7 +13,7 @@ finished with-skill vs. without-skill comparison. ## Paired Tier 3 in automatic CI -The [all-tier CI setup](cli-onboarding.mdx#opt-in-to-three-tier-ci) consumes +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 @@ -28,7 +28,7 @@ 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](reports.mdx#retained-three-tier-ci-evidence). +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 diff --git a/fern/docs.yml b/fern/docs.yml index 5903ada96..5ae2ffdd5 100644 --- a/fern/docs.yml +++ b/fern/docs.yml @@ -98,6 +98,9 @@ navigation: - page: Environment Variables path: ../docs/environment-variables.mdx slug: environment-variables + - page: Advanced CI + path: ../docs/advanced-ci.mdx + slug: advanced-ci - page: Contributing path: ../docs/developer-guide.mdx slug: developer-guide From fa6b93318d911de991c592132993c716b38cdcc0 Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 9 Nov 2026 18:09:30 -0800 Subject: [PATCH 2/5] docs: keep advanced CI compatibility links out of onboarding TOCs Signed-off-by: Christopher Kevin --- docs/ci-integration.mdx | 6 +++--- docs/cli-onboarding.mdx | 11 ++++------- docs/github-actions.mdx | 6 +++--- docs/gitlab-ci.mdx | 11 ++++------- docs/reports.mdx | 6 +++--- 5 files changed, 17 insertions(+), 23 deletions(-) diff --git a/docs/ci-integration.mdx b/docs/ci-integration.mdx index db10f15ee..8d4bce967 100644 --- a/docs/ci-integration.mdx +++ b/docs/ci-integration.mdx @@ -346,7 +346,7 @@ jq -e '([.quality_summary[]?.overall_score] | min // 100) >= 80' "$report" -## Managed three-tier CI + -For the explicit opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). -The [managed three-tier CI reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#managed-three-tier-ci) preserves the detailed setup and contracts. +For the explicit all-tier opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). +The [managed CI reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#managed-three-tier-ci) preserves the detailed contracts. diff --git a/docs/cli-onboarding.mdx b/docs/cli-onboarding.mdx index 6e7b4f4e4..de287ab9f 100644 --- a/docs/cli-onboarding.mdx +++ b/docs/cli-onboarding.mdx @@ -246,11 +246,8 @@ extract it and open `index.html`. Failed scans retain their available reports to -## Opt in to three-tier CI + + -For the explicit opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). -The [three-tier opt-in reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#opt-in-to-three-tier-ci) preserves the detailed setup and contracts. - -## Upgrade a Tier 1-only consumer - -The [Tier 1 consumer migration reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#upgrade-a-tier-1-only-consumer) preserves the detailed setup and contracts. +For the explicit all-tier opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). +The [setup](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#opt-in-to-three-tier-ci) and [migration](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#upgrade-a-tier-1-only-consumer) references preserve the detailed contracts. diff --git a/docs/github-actions.mdx b/docs/github-actions.mdx index 9a27ee6af..ea46b333a 100644 --- a/docs/github-actions.mdx +++ b/docs/github-actions.mdx @@ -259,7 +259,7 @@ or let the [CLI](/skills/skillevaluator/cli-onboarding) handle it. -## Three-tier checks and feedback + -For the explicit opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). -The [three-tier checks and feedback reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#github-checks-and-feedback) preserves the detailed setup and contracts. +For the explicit all-tier opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). +The [GitHub setup reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#github-checks-and-feedback) preserves the detailed contracts. diff --git a/docs/gitlab-ci.mdx b/docs/gitlab-ci.mdx index 7c51abed7..8f902d639 100644 --- a/docs/gitlab-ci.mdx +++ b/docs/gitlab-ci.mdx @@ -138,11 +138,8 @@ Skill result: "skills/glossary-builder" — FAILED For GitHub and other CI systems, see [Repository Integration](/skills/skillevaluator/repository-integration). -## Three-tier checks and feedback + + -For the explicit opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). -The [three-tier checks and feedback reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#gitlab-checks-and-feedback) preserves the detailed setup and contracts. - -## Merge into an existing root configuration - -The [merge into an existing root configuration reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#merge-into-an-existing-root-configuration) preserves the detailed setup and contracts. +For the explicit all-tier opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). +The [GitLab setup](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#gitlab-checks-and-feedback) and [all-tier pipeline migration](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#merge-into-an-existing-root-configuration) references preserve the detailed contracts. diff --git a/docs/reports.mdx b/docs/reports.mdx index c3cf0cc19..b9e75ad9f 100644 --- a/docs/reports.mdx +++ b/docs/reports.mdx @@ -892,7 +892,7 @@ Exit codes and a ready-made JSON gating recipe live in -## Retained three-tier CI evidence + -For the explicit opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). -The [retained three-tier CI evidence reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#retained-three-tier-ci-evidence) preserves the detailed setup and contracts. +For the explicit all-tier opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). +The [retained CI evidence reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#retained-three-tier-ci-evidence) preserves the detailed report contract. From 2575c8644c8766a055e4e95fbb0488f3e7ab67bc Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 9 Nov 2026 18:15:25 -0800 Subject: [PATCH 3/5] docs: retain legacy CI anchors in rendered footer elements Signed-off-by: Christopher Kevin --- docs/ci-integration.mdx | 4 +++- docs/cli-onboarding.mdx | 7 +++++-- docs/github-actions.mdx | 4 +++- docs/gitlab-ci.mdx | 7 +++++-- docs/reports.mdx | 4 +++- 5 files changed, 19 insertions(+), 7 deletions(-) diff --git a/docs/ci-integration.mdx b/docs/ci-integration.mdx index 8d4bce967..5ed448eeb 100644 --- a/docs/ci-integration.mdx +++ b/docs/ci-integration.mdx @@ -346,7 +346,9 @@ jq -e '([.quality_summary[]?.overall_score] | min // 100) >= 80' "$report" - +
For the explicit all-tier opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). The [managed CI reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#managed-three-tier-ci) preserves the detailed contracts. + +
diff --git a/docs/cli-onboarding.mdx b/docs/cli-onboarding.mdx index de287ab9f..bc390def5 100644 --- a/docs/cli-onboarding.mdx +++ b/docs/cli-onboarding.mdx @@ -246,8 +246,11 @@ extract it and open `index.html`. Failed scans retain their available reports to -
- +
+
For the explicit all-tier opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). The [setup](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#opt-in-to-three-tier-ci) and [migration](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#upgrade-a-tier-1-only-consumer) references preserve the detailed contracts. + +
+
diff --git a/docs/github-actions.mdx b/docs/github-actions.mdx index ea46b333a..cbe14ab02 100644 --- a/docs/github-actions.mdx +++ b/docs/github-actions.mdx @@ -259,7 +259,9 @@ or let the [CLI](/skills/skillevaluator/cli-onboarding) handle it. -
+
For the explicit all-tier opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). The [GitHub setup reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#github-checks-and-feedback) preserves the detailed contracts. + +
diff --git a/docs/gitlab-ci.mdx b/docs/gitlab-ci.mdx index 8f902d639..130dfedc7 100644 --- a/docs/gitlab-ci.mdx +++ b/docs/gitlab-ci.mdx @@ -138,8 +138,11 @@ Skill result: "skills/glossary-builder" — FAILED For GitHub and other CI systems, see [Repository Integration](/skills/skillevaluator/repository-integration). -
- +
+
For the explicit all-tier opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). The [GitLab setup](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#gitlab-checks-and-feedback) and [all-tier pipeline migration](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#merge-into-an-existing-root-configuration) references preserve the detailed contracts. + +
+
diff --git a/docs/reports.mdx b/docs/reports.mdx index b9e75ad9f..f4f33b69c 100644 --- a/docs/reports.mdx +++ b/docs/reports.mdx @@ -892,7 +892,9 @@ Exit codes and a ready-made JSON gating recipe live in -
+
For the explicit all-tier opt-in and its prerequisites, see [Advanced CI](/skills/skillevaluator/advanced-ci). The [retained CI evidence reference](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/all-tiers/README.md#retained-three-tier-ci-evidence) preserves the detailed report contract. + +
From 9eb642e25c155af568020b98b3eddaeeb82e3993 Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 9 Nov 2026 21:03:52 -0800 Subject: [PATCH 4/5] docs: use plain language for repository skill checks Signed-off-by: Christopher Kevin --- CHANGELOG.md | 3 ++- README.md | 2 +- ci/README.md | 11 ++++++----- ci/templates/README.md | 2 +- docs/AGENTS.md | 8 ++++---- docs/README.md | 6 +++--- docs/advanced-ci.mdx | 15 ++++++++------- docs/ci-integration.mdx | 23 ++++++++++++++--------- docs/cli-onboarding.mdx | 11 ++++++----- docs/github-actions.mdx | 10 +++++----- docs/gitlab-ci.mdx | 11 ++++++----- docs/repository-integration.mdx | 14 +++++++------- 12 files changed, 63 insertions(+), 53 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e382e134..f7b7deb52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,8 @@ All notable changes to SkillEvaluator are documented in this file. ### Added -- Restore Tier 1-first repository CI onboarding with no model key required, +- Simplify repository CI onboarding around quality and security checks with + no model key required, keeping optional LLM checks and hosted feedback separate. Preserve opt-in all-tier setup and report contracts in an Advanced CI reference. diff --git a/README.md b/README.md index cc41cbd05..126445048 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ the [NVIDIA Verified Skills pipeline](https://github.com/NVIDIA/skills). ## Bring skill evaluation to your repository -Check changed skills in GitHub or GitLab with Tier 1 quality checks, SkillSpector +Check changed skills in GitHub or GitLab with quality checks, SkillSpector security scanning and reports. Choose folders and thresholds; no evaluator code to import. diff --git a/ci/README.md b/ci/README.md index 88ce3d16e..dcedfd69d 100644 --- a/ci/README.md +++ b/ci/README.md @@ -1,8 +1,9 @@ # Reusable repository CI -This directory supplies the shared Tier 1 CI runtime and consumer onboarding -templates. Start with [repository integration](../docs/repository-integration.mdx) -for GitHub Actions or GitLab CI/CD. The GitLab adapter is in `ci/gitlab/`; +This directory supplies the shared CI runtime for quality and security checks, +plus consumer onboarding templates. Start with +[repository integration](../docs/repository-integration.mdx) for GitHub Actions +or GitLab CI/CD. The GitLab adapter is in `ci/gitlab/`; the image and report generation are shared by both platforms. The upstream workflow release and public package must be reviewed and published before consumers can use this path. Source templates are not runnable while @@ -32,7 +33,7 @@ policy label. Profile names do not control network access or report visibility. | --- | --- | | `paths` | `skills`; up to 100 newline-separated repository-relative skill directories or roots | | `scan-mode` | `auto`: affected skills on PRs, all configured skills on pushes/manual runs; `all` overrides selection | -| `llm` | `false`; static Tier 1 requires no model key | +| `llm` | `false`; static checks require no model key | | `artifact-name` | Keep `skill-evaluator-tier1` for the optional publisher | | `report-base-url` | Optional own Pages URL, only after hosted publication is configured | | `scan-workers` | `4`; skills scanned at once, from 1 to 16. `1` scans one skill at a time | @@ -288,7 +289,7 @@ placeholders until then. runs read that cache but never write it. Release builds do not reuse cached layers, so `git` and `ca-certificates` come from the Debian packages current at release time. - Build the complete Tier 1 runtime with required external scanners. The base + Build the shared CI runtime with its required external scanners. The base image digest, uv bootstrap, scanner runtime dependencies and SkillSpector build dependencies are pinned; scanner installs require package hashes. Confirm the resulting digest's source revision and the installed scanner diff --git a/ci/templates/README.md b/ci/templates/README.md index c5bd57950..829e9a77f 100644 --- a/ci/templates/README.md +++ b/ci/templates/README.md @@ -65,4 +65,4 @@ cover results and merge-gating settings. The unreleased, explicitly enabled all-tier integration has separate [setup and maintainer instructions](all-tiers/README.md). Released templates -above provide Tier 1 checks without a model key. +above provide quality and security checks without a model key. diff --git a/docs/AGENTS.md b/docs/AGENTS.md index 09d92e7d9..ccedcc5db 100644 --- a/docs/AGENTS.md +++ b/docs/AGENTS.md @@ -24,10 +24,10 @@ folder holds MDX pages published to Remove the `|| true`. Exit code `1` now blocks merges on schema, security, PII, license, code-integrity, Unicode, and quality failures — all still keyless. (The `lint` check also runs, but its findings are advisory warnings and never fail validation.) + + ### Raise the quality bar Bump `--min-score` above the default `70` once your collection consistently clears it. The score and grade in each report tell you where the collection stands before you move the line. ### Add LLM-backed checks - Add a provider key as a masked CI secret, set `SKILL_EVAL_LLM_PROVIDER`, then add `--llm` (and `--llm-verify` to suppress false positives) and select `--tiers 1,2` so Tier 2 overlap checks run too. Once dedup runs, its findings gate alongside Tier 1 by default; add `--no-block-on-dedup` if you want evidence without enforcing it yet. See [Providers & Credentials](/skills/skillevaluator/configuration) for provider setup. + Add a provider key as a masked CI secret, set `SKILL_EVAL_LLM_PROVIDER`, then add `--llm` (and `--llm-verify` to suppress false positives) and select `--tiers 1,2` so overlap checks run too. Once dedup runs, its findings gate alongside quality and security checks by default; add `--no-block-on-dedup` if you want evidence without enforcing it yet. See [Providers & Credentials](/skills/skillevaluator/configuration) for provider setup. ### Add an advisory Tier 3 job @@ -229,7 +234,7 @@ severity_overrides: skillevaluator validate ./skills --profile default --policy ./policy.yaml --tiers 1 -r json,markdown -o reports ``` -The policy overlays the default rules, and the resulting profile name is stamped into the HTML and JSON reports (and printed in the run banner with `--verbose`) — so a run always tells you which gate produced it. Full overlay syntax is on the [Tier 1: Validation](/skills/skillevaluator/tier1-validation) page. +The policy overlays the default rules, and the resulting profile name is stamped into the HTML and JSON reports (and printed in the run banner with `--verbose`) — so a run always tells you which gate produced it. See the [validation policy reference](/skills/skillevaluator/tier1-validation) for the full overlay syntax. ## Parse the JSON @@ -335,7 +340,7 @@ jq -e '([.quality_summary[]?.overall_score] | min // 100) >= 80' "$report" What every report format contains and how to read scores, severities, and Tier 3 payloads. - + Every check behind the gate — what it inspects and how to fix findings. diff --git a/docs/cli-onboarding.mdx b/docs/cli-onboarding.mdx index bc390def5..fa2849f7f 100644 --- a/docs/cli-onboarding.mdx +++ b/docs/cli-onboarding.mdx @@ -1,9 +1,9 @@ --- title: "Set Up CI with the CLI" -description: "Prepare no-key Tier 1 checks for GitHub, with optional hosted reports and PR feedback." +description: "Set up quality and security checks for GitHub, with optional hosted reports and PR feedback." --- -Bring Tier 1 quality and security checks to your repository. No model key required. +Bring quality and security checks to your repository. No model key required. Optional LLM checks are available. SkillEvaluator finds your skills, prepares the GitHub workflows and opens a setup PR. The shared runtime includes SkillSpector security scanning. Choose checks only or add optional hosted @@ -43,7 +43,7 @@ locally. The shared container supplies the runtime; you control the configuratio public and private repositories. Hosted feedback supports public Pages and verified private Pages sites in eligible organization repositories. See [private report hosting](#private-report-hosting) for the one-time prerequisite. - The released Tier 1 wizard supports GitHub. For Tier 1 on GitLab, use the + The released setup wizard supports GitHub. For GitLab, use the [GitLab template](/skills/skillevaluator/gitlab-ci).
@@ -73,8 +73,9 @@ Folders [1]: 1,2 The score threshold does not override required security or schema checks. -Default Tier 1 checks use no model key. Tier 2 and Tier 3 are not part of -the released Tier 1 wizard. Optional model-backed Tier 1 checks use the +The wizard sets up quality and security checks without a model key; +deduplication and live agent evaluation require separate setup. Optional +model-backed checks use the [separate manual workflow](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/skill-checks-llm.yml) and a provider key. diff --git a/docs/github-actions.mdx b/docs/github-actions.mdx index cbe14ab02..a5ed670b0 100644 --- a/docs/github-actions.mdx +++ b/docs/github-actions.mdx @@ -3,10 +3,10 @@ title: "GitHub Actions" description: "Bring SkillEvaluator to your GitHub repository with a reusable workflow, clear results and optional PR feedback." --- -Bring Tier 1 quality and security checks to your repository. No model key required. +Bring quality and security checks to your repository. No model key required. Optional LLM checks are available. Choose your skill folders; pull requests check changed skills automatically. -The shared image includes **Tier 1 and SkillSpector security scanning**. +The shared image includes **SkillSpector security scanning**. @@ -203,8 +203,8 @@ or let the [CLI](/skills/skillevaluator/cli-onboarding) handle it. After the first run, select its scan check in GitHub branch rules. The current template emits `skills / Tier 1 scan`; use the actual check name shown in your repository. `min-score` sets the quality threshold; required - security, schema and other checks remain independent. This integration - runs Tier 1 only. + security, schema and other checks remain independent. The reusable scanner + runs quality and security checks only. Confirm setup is on the default branch and the PR is eligible for comments. @@ -241,7 +241,7 @@ or let the [CLI](/skills/skillevaluator/cli-onboarding) handle it. require the private Pages setup described above. - Default Tier 1 checks use no model key. Dependency audits can contact + Default checks use no model key. Dependency audits can contact vulnerability services and submit package metadata; packages are not installed and build scripts are not run. Optional LLM checks use a separate [manual workflow](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/templates/skill-checks-llm.yml), diff --git a/docs/gitlab-ci.mdx b/docs/gitlab-ci.mdx index 130dfedc7..6bffe6f94 100644 --- a/docs/gitlab-ci.mdx +++ b/docs/gitlab-ci.mdx @@ -1,9 +1,9 @@ --- title: "GitLab CI/CD" -description: "Add Tier 1 quality and security checks to GitLab with no model key required." +description: "Add quality and security checks to GitLab with no model key required." --- -Bring Tier 1 quality and security checks to your repository. No model key required. +Bring quality and security checks to your repository. No model key required. Optional LLM checks are available. Point the reusable GitLab CI job at your skills and choose a quality threshold; merge requests evaluate changed skills without installing scanners or adding evaluation code to your repository. @@ -125,9 +125,10 @@ Skill result: "skills/glossary-builder" — FAILED The threshold applies to the quality score; security, schema and other - required checks remain independent gates. This reusable integration runs Tier 1 - only. This integration does not host reports or post merge-request comments - automatically. Known values detected by credential patterns, NVIDIA API + required checks remain independent gates. The scanner runs quality and + security checks and saves reports as job artifacts; it does not host reports + or post merge-request comments automatically. Known values detected by + credential patterns, NVIDIA API keys, and unquoted `KEY=value` and `Bearer` credentials are redacted, including parts of them that a scanner cuts or escapes, but not every secret or transformation is detectable. Raw scanner logs are diff --git a/docs/repository-integration.mdx b/docs/repository-integration.mdx index 4a662cade..f368955a6 100644 --- a/docs/repository-integration.mdx +++ b/docs/repository-integration.mdx @@ -3,13 +3,13 @@ title: "Bring Skill Evaluation to Your Repository" description: "Evaluate changed skills automatically with reusable GitHub and GitLab CI configurations." --- -Bring Tier 1 quality and security checks to your repository. No model key required. +Bring quality and security checks to your repository. No model key required. Optional LLM checks are available. Choose your skill folders and get results automatically when skills change. No evaluation code to write. No scanner installations to manage. The shared -container brings the Tier 1 runtime to your CI runner, including SkillSpector -for specialized skill security scanning. +container runs the checks in your CI runner, including SkillSpector security +scanning. ## How it works @@ -53,7 +53,7 @@ explains customization and optional LLM checks. ## What you get - **Automatic checks:** evaluate changed skills in pull requests or merge requests; run the configured collection on the default branch. -- **Quality and security:** run Tier 1 checks, including SkillSpector security scanning, without adding evaluator code to the repository. +- **Quality and security:** check your skills with SkillEvaluator and SkillSpector without adding evaluator code to the repository. - **Control:** choose skill directories and a minimum quality score; the job fails when required checks fail or cannot complete. - **Results you can inspect:** see a concise outcome in CI and download the detailed HTML, JSON, Markdown and SARIF reports. @@ -65,9 +65,9 @@ Browse [report, log and PR comment examples](https://github.com/NVIDIA/SkillEval in the public repository. No demo-repository access is needed. - The released CI image runs Tier 1, including SkillSpector. It does not run - Tier 2 or Tier 3. GitHub and GitLab use the same scanner image with - platform-specific workflow files. + These quality and security checks are called **Tier 1** in SkillEvaluator + reports. GitHub and GitLab use the same scanner image with platform-specific + workflow files. Additional evaluation stages require a separate opt-in. ## Other CI systems From e29fe020ddb29b1895efb92e837e4461437d177f Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Tue, 10 Nov 2026 00:09:17 -0800 Subject: [PATCH 5/5] test: follow relocated advanced CI documentation Signed-off-by: Christopher Kevin --- tests/ci/test_all_tier_workflows.py | 16 ++++++++-------- tests/ci/test_tier_manifest.py | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/ci/test_all_tier_workflows.py b/tests/ci/test_all_tier_workflows.py index 21a2d193f..af09b49a0 100644 --- a/tests/ci/test_all_tier_workflows.py +++ b/tests/ci/test_all_tier_workflows.py @@ -458,14 +458,14 @@ def test_gitlab_dind_daemon_requires_tls_client_certificates(): assert variables["DOCKER_TLS_VERIFY"] == "1" assert variables["DOCKER_CERT_PATH"] == "/certs/client" assert "2375" not in str(job) - docs = " ".join((ROOT / "docs/gitlab-ci.mdx").read_text().split()) + docs = " ".join((ROOT / "ci/templates/all-tiers/README.md").read_text().split()) assert 'volumes = ["/certs/client"]' in docs def test_gitlab_native_jobs_use_environment_without_recording_deployments(): job = load("ci/gitlab/all-tiers.yml")["skill-evaluation-native"] assert job["environment"] == {"name": "$SKILL_EVAL_ENVIRONMENT", "action": "prepare"} - docs = " ".join((ROOT / "docs/gitlab-ci.mdx").read_text().split()) + docs = " ".join((ROOT / "ci/templates/all-tiers/README.md").read_text().split()) assert "`environment: action: prepare`" in docs and "Prevent outdated deployment jobs" in docs @@ -476,7 +476,7 @@ def test_gitlab_feedback_job_uses_its_protected_environment_without_recording_de assert job["environment"] == {"name": "skillevaluator-feedback", "action": "prepare"} # The publisher authenticates its job, pipeline and branch, never a deployment record. assert "/deployments" not in (ROOT / "ci/feedback.py").read_text() - docs = " ".join((ROOT / "docs/gitlab-ci.mdx").read_text().split()) + docs = " ".join((ROOT / "ci/templates/all-tiers/README.md").read_text().split()) assert "The native jobs and the trusted feedback job use `environment: action: prepare`" in docs # Some GitLab versions turn prepare jobs on an environment with approval # rules into manual jobs, so deploy access is the only safe restriction. @@ -484,7 +484,7 @@ def test_gitlab_feedback_job_uses_its_protected_environment_without_recording_de assert "Do not add deployment approval rules to these environments" in docs assert "turn them into manual jobs" in docs and "`prevent_blocking_non_deployment_jobs`" in docs assert "Restrict who can run them with the protected environments' deploy access" in docs - onboarding = " ".join((ROOT / "docs/cli-onboarding.mdx").read_text().split()) + onboarding = " ".join((ROOT / "ci/templates/all-tiers/README.md").read_text().split()) assert "so deployment approvals do not gate them" not in onboarding assert "Do not add deployment approval rules to their environments" in onboarding assert "turn them into manual jobs" in onboarding @@ -495,10 +495,10 @@ def test_gitlab_feedback_pipeline_guard_is_offered_and_documented(): hidden = load("ci/gitlab/all-tiers.yml")[".skill-evaluation-not-feedback"] assert hidden["rules"][0] == guard assert hidden["rules"][1] == {"when": "on_success"} - for path in ("docs/gitlab-ci.mdx", "ci/templates/README.md", "ci/templates/all-tiers/gitlab-all-tiers.yml"): + for path in ("ci/templates/all-tiers/README.md", "ci/templates/all-tiers/gitlab-all-tiers.yml"): text = (ROOT / path).read_text() assert "- if: '$SKILL_EVAL_FEEDBACK == \"true\"'" in text, path - docs = " ".join((ROOT / "docs/gitlab-ci.mdx").read_text().split()) + docs = " ".join((ROOT / "ci/templates/all-tiers/README.md").read_text().split()) assert "extends: .skill-evaluation-not-feedback" in docs assert "no comment is posted or updated" in docs assert "Merge these guards to the default branch before the setup MR" in docs @@ -508,7 +508,7 @@ def test_gitlab_feedback_pipeline_guard_is_offered_and_documented(): # Guards merge before the setup MR, while only all-tiers.yml defines the # hidden job, so they use rules; a job without rules needs a fallback rule. assert "gets the guard followed by `- when: on_success`" in docs - assert "- when: on_success" in (ROOT / "docs/gitlab-ci.mdx").read_text() + assert "- when: on_success" in (ROOT / "ci/templates/all-tiers/README.md").read_text() assert "Write these guards as rules" in docs assert "until the setup MR merges, `extends: .skill-evaluation-not-feedback` fails validation" in docs assert ".skill-evaluation-not-feedback" not in (ROOT / "ci/gitlab/skill-evaluation.yml").read_text() @@ -518,7 +518,7 @@ def test_gitlab_feedback_pipeline_guard_is_offered_and_documented(): assert "Write the guards as rules" in template assert "added after this file is on the default branch" in template # The upgrade path must order the guards before the setup MR as well. - onboarding = " ".join((ROOT / "docs/cli-onboarding.mdx").read_text().split()) + onboarding = " ".join((ROOT / "ci/templates/all-tiers/README.md").read_text().split()) guards = onboarding.index("merge those guards to the default branch") assert guards < onboarding.index("Then, in your setup MR") assert "keep `test` in any `stages` list" in onboarding diff --git a/tests/ci/test_tier_manifest.py b/tests/ci/test_tier_manifest.py index 580545ec2..a3b7fe36d 100644 --- a/tests/ci/test_tier_manifest.py +++ b/tests/ci/test_tier_manifest.py @@ -262,7 +262,7 @@ def test_documented_tier_statuses_match_the_manifest_contract(): import re from pathlib import Path - text = " ".join((Path(__file__).parents[2] / "docs/reports.mdx").read_text().split()) + text = " ".join((Path(__file__).parents[2] / "ci/templates/all-tiers/README.md").read_text().split()) sentence = re.search(r"A tier can be (.+?)\.", text) assert sentence is not None assert set(re.findall(r"`([a-z_]+)`", sentence[1])) == tier_manifest._STATUSES