Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Ships reusable CI templates that bring every check to any repository.
Python agent-evaluationagent-pluginsagent-securityagent-skillsagentic-aibenchmarkci-templatesclaude-codecodexevaluateevaluationharnesspluginplugin-evaluationsecurity-scannerskill-evalskill-evaluationskill-evaluatorskill-gap-analysisskills
fix(ci): use a neutral default validation policy (#334)
Christopher Kevin03a7c2283452
diff --git a/.github/workflows/evaluate-skills.yml b/.github/workflows/evaluate-skills.ymlindex ff74f3f3..0d5386e8 100644--- a/.github/workflows/evaluate-skills.yml+++ b/.github/workflows/evaluate-skills.yml@@ -1,4 +1,6 @@name: Reusable Tier 1 skill checks+# The image selects the bundled default policy for both public and private repos.+# Policy rules do not control repository visibility or optional report hosting.on:workflow_call:inputs:diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b3481a81..674730a7 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,6 +4,18 @@ All notable changes to SkillEvaluator are documented in this file.## Unreleased+### Changed++- Name the shared OSS validation policy `default` for both public and private+ repositories. Keep `--profile external`, `--external`, and the legacy+ environment value as compatibility aliases without changing validation rules.+ The CI image now selects `default`; GitHub and GitLab templates explain that+ policy selection does not control report visibility. Existing image pins keep+ their previous label until upgraded to an image containing this change.+ New report policy metadata uses `profile: default` and `audience: all`; its+ digest and bundled source path change with the name. Saved reports are not+ rewritten.+### Documentation- Keep verified CI templates in the public repository and use one productdiff --git a/ci/README.md b/ci/README.mdindex ecaa7cda..88ce3d16 100644--- a/ci/README.md+++ b/ci/README.md@@ -22,6 +22,12 @@ immutable `image`, such asalso pins the workflow with `uses: ...@RELEASE_WORKFLOW_SHA`. Do not substitute amutable image tag or an unreviewed branch reference.+The image selects one bundled `default` validation policy for public and private+repositories. Its rules live in `src/skillevaluator/config/profiles/default.yaml`;+there is no `internal`/`external` CI input. Older released images label this same+policy `external`. Upgrading the workflow alone does not change a pinned image's+policy label. Profile names do not control network access or report visibility.+| Input | Basic configuration || --- | --- || `paths` | `skills`; up to 100 newline-separated repository-relative skill directories or roots |diff --git a/ci/gitlab/skill-evaluation.yml b/ci/gitlab/skill-evaluation.ymlindex 79c0fc46..d41a5bc4 100644--- a/ci/gitlab/skill-evaluation.yml+++ b/ci/gitlab/skill-evaluation.yml@@ -1,6 +1,7 @@# SPDX-License-Identifier: Apache-2.0# Reusable GitLab job. Include a reviewed commit and provide SKILL_EVAL_IMAGE.# Configure merge-request rules in the root .gitlab-ci.yml; GitLab requires it.+# The image selects the bundled default policy for both public and private repos.variables:SKILL_EVAL_PATHS: "skills"SKILL_EVAL_SCAN_MODE: "auto"diff --git a/ci/run_tier1.py b/ci/run_tier1.pyindex 9d2a8319..13dec035 100644--- a/ci/run_tier1.py+++ b/ci/run_tier1.py@@ -427,7 +427,7 @@ def evaluate_skill(str(target),"--llm" if llm else "--no-llm","--profile",- "external",+ "default","--min-score",min_score,# native_reports renders each skill's HTML from the retained JSONdiff --git a/ci/smoke_image.py b/ci/smoke_image.pyindex 65a4568f..2c6396ed 100644--- a/ci/smoke_image.py+++ b/ci/smoke_image.py@@ -261,6 +261,11 @@ def verify_case(directory: Path, case: str, exit_code: int) -> dict:_require(row.get("report_dir") == f"skill-{index:03d}", "Unexpected child report location")child = directory / row["report_dir"]data = _load(child / "skillevaluator-tier1.json")+ policy = data.get("policy", {})+ _require(+ policy.get("profile") == "default" and policy.get("audience") == "all",+ "The image did not report the shared default OSS policy",+ )expected_pass = not (failing and row["path"] == "skills/glossary-builder")_require(row.get("passed") is expected_pass and data.get("overall_passed") is expected_pass,diff --git a/ci/templates/gitlab-skill-checks.yml b/ci/templates/gitlab-skill-checks.ymlindex 1e162092..663535cc 100644--- a/ci/templates/gitlab-skill-checks.yml+++ b/ci/templates/gitlab-skill-checks.yml@@ -1,6 +1,8 @@# SPDX-License-Identifier: Apache-2.0# Merge this into an existing .gitlab-ci.yml or use it as the complete file.# The release-generated copy pins both the reusable job and its container image.+# The image uses the default OSS policy for public and private repositories.+# No internal/external variable is needed; artifacts follow repository access.include:- remote: https://raw.githubusercontent.com/NVIDIA/SkillEvaluator/RELEASE_WORKFLOW_SHA/ci/gitlab/skill-evaluation.ymldiff --git a/ci/templates/skill-checks-llm.yml b/ci/templates/skill-checks-llm.ymlindex 5d4967e2..4ac06671 100644--- a/ci/templates/skill-checks-llm.yml+++ b/ci/templates/skill-checks-llm.yml@@ -1,6 +1,8 @@# SPDX-License-Identifier: Apache-2.0# Optional trusted manual run; the basic skill-checks.yml needs no model secret.# Use the release-generated copy with reviewed workflow and image pins.+# The image uses the same default OSS policy for public and private repositories.+# LLM content sharing is controlled by llm and the selected provider, not a profile.name: Skill checks with LLMon:workflow_dispatch:diff --git a/ci/templates/skill-checks.yml b/ci/templates/skill-checks.ymlindex 4e5c6478..ce31cab5 100644--- a/ci/templates/skill-checks.yml+++ b/ci/templates/skill-checks.yml@@ -1,5 +1,7 @@# SPDX-License-Identifier: Apache-2.0# Use the release-generated copy with reviewed workflow and image pins.+# The image uses the default OSS validation policy for public and private repos.+# No internal/external input is needed; report visibility is configured separately.name: Skill checkson:pull_request:diff --git a/docs/ci-integration.mdx b/docs/ci-integration.mdxindex 9190d546..ae495a20 100644--- a/docs/ci-integration.mdx+++ b/docs/ci-integration.mdx@@ -27,12 +27,12 @@ Tier 1 checks always gate the exit code. Tier 2 deduplication findings gate when## The recommended gate```bash title="Keyless CI gate"-skillevaluator validate ./skills --external --tiers 1 -r json,markdown,sarif -o reports --min-score 70+skillevaluator validate ./skills --profile default --tiers 1 -r json,markdown,sarif -o reports --min-score 70```Each flag earns its place:-- **`--external`** pins the public-publication profile explicitly instead of relying on the environment, so the gate behaves identically on every runner. The active profile name is stamped into the HTML report and `BENCHMARK.md` (and printed in the run banner with `--verbose`), so a run always records which gate was applied.+- **`--profile default`** pins the standard validation policy explicitly instead of relying on the environment, so the gate behaves identically on every runner. The active profile name is stamped into the HTML and JSON reports (and printed in the run banner with `--verbose`), so a run always records which gate was applied.- **`--tiers 1`** runs static checks without the provider-backed Tier 2 and Tier 3 stages. Use `--tiers 1,2` once you add a provider secret, or omit the option to include Tier 3 after configuring its runtime. `--no-dedup` alone skips only Tier 2 and still runs Tier 3.- **`-r json,markdown,sarif`** writes machine-readable JSON, a Markdown PR comment, and a SARIF file for GitHub Code Scanning.- **`-o reports`** collects everything in one directory for artifact upload.@@ -84,7 +84,7 @@ jobs:- name: Validate skillsrun: |- skillevaluator validate ./skills --external --tiers 1 \+ skillevaluator validate ./skills --profile default --tiers 1 \-r json,markdown,sarif -o reports --min-score 70- name: Upload reports@@ -166,7 +166,7 @@ The same shape ports to any CI system: install, run `validate`, gate on the exitPoint `validate` at a folder of skills and it validates each one:```bash title="Validate a whole collection"-skillevaluator validate ./skills --external --tiers 1 -c -r json,markdown -o reports+skillevaluator validate ./skills --profile default --tiers 1 -c -r json,markdown -o reports```Two flags control how a multi-skill run behaves:@@ -188,7 +188,7 @@ You do not have to turn on the strictest gate on day one. A path that works wellRun the gate but never fail the build. Contributors see reports and get used to the findings before anything blocks a merge.```bash title="Report-only mode"- skillevaluator validate ./skills --external --tiers 1 -r markdown -o reports || true+ skillevaluator validate ./skills --profile default --tiers 1 -r markdown -o reports || true```### Gate on Tier 1@@ -214,7 +214,7 @@ Keep provider and agent keys as masked CI secrets in the job environment — nev## Custom policy in CI-If the default `external` profile is too loose or too strict for your repository, commit a policy overlay next to your skills and pin it in the gate. Severity decisions then get reviewed like code:+If the bundled `default` policy is too loose or too strict for your repository, commit a policy overlay next to your skills and pin it in the gate. Severity decisions then get reviewed like code:```yaml title="policy.yaml"profile: community-strict@@ -226,10 +226,10 @@ severity_overrides:``````bash title="Gate with a pinned policy"-skillevaluator validate ./skills --external --policy ./policy.yaml --tiers 1 -r json,markdown -o reports+skillevaluator validate ./skills --profile default --policy ./policy.yaml --tiers 1 -r json,markdown -o reports```-The policy overlays the external profile, and the resulting profile name is stamped into the HTML report and `BENCHMARK.md` (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](tier1-validation.mdx) page.## Parse the JSONdiff --git a/docs/cli-reference.mdx b/docs/cli-reference.mdxindex 24c6bb05..bd5cd4b8 100644--- a/docs/cli-reference.mdx+++ b/docs/cli-reference.mdx@@ -132,7 +132,7 @@ errors, such as an option the workflow does not accept, exit `2`.| `--llm / --no-llm` | Enabled when a provider is configured | Enable or skip rubric, LLM security, and finding verification; explicit `--llm` requires valid provider configuration || `--min-score INTEGER` | `70` | Minimum passing quality and rubric score, from 0 to 100; quality severity overrides cannot waive the minimum || `--quality-config PATH` | packaged `quality-default.yaml` | YAML file that replaces the quality check's expected-heading rules. See [Tier 1: Validation](tier1-validation.mdx#the-checks). |-| `--profile TEXT` | `SKILLEVALUATOR_PROFILE`, then `external` | Validation policy profile |+| `--profile TEXT` | `SKILLEVALUATOR_PROFILE`, then `default` | Validation policy; `external` is a compatibility alias || `--previous-version TEXT` | `SKILLEVALUATOR_PREVIOUS_VERSION`, else unset | Previous version for version checks || `--skillspector-baseline FILE` | unset | Audited SkillSpector suppression baseline; never discovered from the skill. See [Audited SkillSpector baselines](tier1-validation.mdx#audited-skillspector-baselines). |@@ -192,7 +192,7 @@ skillevaluator validate ./my-skill --llm # add LLM security anaskillevaluator validate ./my-skill -r cli,json,html # multiple report formatsskillevaluator validate ./my-skill --no-dedup # skip Tier 2 dedupskillevaluator validate ./my-skill --no-block-on-dedup # run Tier 2 as advisory-skillevaluator validate ./my-skill --external # strict publication profile+skillevaluator validate ./my-skill --profile default # standard validation policyskillevaluator validate ./my-skill -a codex # choose the Tier 3 agentskillevaluator validate ./my-skill -a codex \--block-on-agent-eval # gate on Tier 3 too@@ -220,8 +220,8 @@ Applies to the whole run: target typing, policy profile, reports, tier selection| `--tiers TEXT` | all three for skills | Explicit tier selection, e.g. `--tiers 1,2` skips live evaluation and `--tiers 1,3` skips dedup. Tier 1 always runs. || `--full` | unnecessary for skills | Compatibility flag for all three tiers with autopilot. Explicit tier selection and disable flags still apply. || `--verbose` | off | Print the full per-check detail stream instead of the compact pipeline view. |-| `--profile TEXT` | `$SKILLEVALUATOR_PROFILE`, then `external` | Validation profile: `external` or a custom name. |-| `--external` | — | Shortcut for `--profile external` (validate for public publication). |+| `--profile TEXT` | `$SKILLEVALUATOR_PROFILE`, then `default` | Bundled validation policy. `external` is a compatibility alias for `default`. |+| `--external` | — | Compatibility alias for `--profile default`; does not change repository visibility. || `--policy FILE` | none | Custom policy YAML overlaid on top of `--profile`. || `--workers INTEGER RANGE` | `1` | Concurrent skill jobs when validating a folder of skills (`x>=1`). Values above 1 run skills in parallel processes and disable the per-skill pipeline view. |diff --git a/docs/environment-variables.mdx b/docs/environment-variables.mdxindex d75103d7..e34d039d 100644--- a/docs/environment-variables.mdx+++ b/docs/environment-variables.mdx@@ -131,7 +131,7 @@ These variables tune the static and security checks. The check-by-check guide is| Variable | Default | Effect || --- | --- | --- |-| `SKILLEVALUATOR_PROFILE` | `external` | Default validation profile when no `--profile` flag is passed. The CLI flag always wins. |+| `SKILLEVALUATOR_PROFILE` | `default` | Validation policy when no `--profile` flag is passed. `external` remains a compatibility alias. The CLI flag always wins. || `SKILLEVALUATOR_BANDIT_PATH` | auto-discovered | Absolute path to the Bandit executable. || `SKILLEVALUATOR_SEMGREP_PATH` | auto-discovered | Absolute path to the Semgrep executable. || `SKILLEVALUATOR_SKILLSPECTOR_PATH` | auto-discovered | Absolute path to the SkillSpector executable. |diff --git a/docs/github-actions.mdx b/docs/github-actions.mdxindex ef78e912..2e0dfe46 100644--- a/docs/github-actions.mdx+++ b/docs/github-actions.mdx@@ -18,6 +18,10 @@ The shared image includes **Tier 1 and SkillSpector security scanning**.## Get started+The scanner uses one **default validation policy** for public and private+repositories. There is no `internal`/`external` workflow input. Older images call+this same policy `external`; that label does not publish your repository or reports.+<Steps>### Copy the ready-to-use templatediff --git a/docs/gitlab-ci.mdx b/docs/gitlab-ci.mdxindex 94d7311c..21e46116 100644--- a/docs/gitlab-ci.mdx+++ b/docs/gitlab-ci.mdx@@ -10,6 +10,10 @@ The shared container includes SkillSpector security scanning.## Get started+The shared image applies one default validation policy to public and private+repositories. No `internal`/`external` variable is needed. Older image reports+label the same policy `external`; repository access still controls scan artifacts.+Copy [gitlab-skill-checks.yml](https://github.com/NVIDIA/SkillEvaluator/blob/main/ci/bundles/0.7.2/gitlab-skill-checks.yml)from the [ready-to-use templates](https://github.com/NVIDIA/SkillEvaluator/tree/main/ci/bundles/0.7.2).It includes the pinned shared configuration and scanner image. You do not needdiff --git a/docs/tier1-validation.mdx b/docs/tier1-validation.mdxindex 04136b3b..95596adf 100644--- a/docs/tier1-validation.mdx+++ b/docs/tier1-validation.mdx@@ -113,20 +113,26 @@ skillevaluator validate ./skills --type skill --continue-on-failure## Validation profiles and policies-The bundled `external` profile is the default public-publication policy. It requires a well-formed `metadata.author` value but does not restrict the email domain. Missing or malformed author attribution is HIGH severity. Blocked license findings are CRITICAL; missing or unknown licenses are reported for review.+The bundled `default` policy applies to both public and private repositories.+It requires a well-formed `metadata.author` value but does not restrict the email+domain. Missing or malformed author attribution is HIGH severity. Blocked license+findings are CRITICAL; missing or unknown licenses are reported for review.+The policy controls validation rules, not repository visibility or report hosting.+The old `external` name and `--external` flag remain compatibility aliases for+this same policy; there is no separate bundled `internal` policy.```bash title="Profile selection"-skillevaluator validate ./my-skill # default = external-skillevaluator validate ./my-skill --profile external # explicit public profile-skillevaluator validate ./my-skill --external # alias for --profile external+skillevaluator validate ./my-skill # default policy+skillevaluator validate ./my-skill --profile default # explicit default policy+skillevaluator validate ./my-skill --external # compatibility aliasskillevaluator validate ./my-skill --policy ./policy.yaml # custom overlay-SKILLEVALUATOR_PROFILE=external skillevaluator validate ./my-skill+SKILLEVALUATOR_PROFILE=default skillevaluator validate ./my-skill```-Precedence, highest to lowest: `--policy` overlay, `--profile` flag, `SKILLEVALUATOR_PROFILE` environment variable, then the bundled `external` default.+Precedence, highest to lowest: `--policy` overlay, `--profile` flag, `SKILLEVALUATOR_PROFILE` environment variable, then the bundled `default` policy.<Accordion title="Write a custom policy overlay">- A custom policy overlays the external profile. It can narrow the accepted author domain and change severities by `CATEGORY.check_name` or `CATEGORY.*`:+ A custom policy overlays the default rules. It can narrow the accepted author domain and change severities by `CATEGORY.check_name` or `CATEGORY.*`:```yaml title="policy.yaml"profile: community-strict@@ -143,7 +149,7 @@ Precedence, highest to lowest: `--policy` overlay, `--profile` flag, `SKILLEVALU</Accordion><Note>- The active profile name is stamped into the HTML report header and `BENCHMARK.md`, and printed in the run banner under `--verbose`, so reviewers can see which gate was applied.+ The active profile name is stamped into the HTML report header and JSON report, and printed in the run banner under `--verbose`, so reviewers can see which gate was applied.</Note>## The checks@@ -252,7 +258,7 @@ For `validate`, the default set is `schema`, `version`, `security`, `pii`, `lice</Accordion><Accordion title="license — compliance">- Looks for license evidence in frontmatter, common license files, and SPDX headers. Detected identifiers are normalized and matched against the packaged permissive allowlist and restrictive blocklist. Missing or unknown licenses are reported for review; blocked licenses fail according to the active profile (CRITICAL under the default `external` profile).+ Looks for license evidence in frontmatter, common license files, and SPDX headers. Detected identifiers are normalized and matched against the packaged permissive allowlist and restrictive blocklist. Missing or unknown licenses are reported for review; blocked licenses fail according to the active policy (CRITICAL under the bundled `default` policy).Frontmatter values and SPDX headers can be SPDX license expressions with `AND`, `OR`, `WITH`, and parentheses, such as `MIT OR Apache-2.0`. An expression passes only when every license in it is allowed, and any blocked license fails it. The `+`, `-only`, and `-or-later` forms of a blocked license, such as `GPL-3.0+` or `LGPL-2.1-only`, and deprecated ids such as `GPL-2.0-with-classpath-exception` are blocked too. A `WITH` exception keeps an allowed license allowed only when it is in the packaged `allowed_license_exceptions` list (`LLVM-exception`, `Swift-exception`); other exceptions are reported for review. An expression that uses an upper-case `AND`, `OR`, or `WITH` but has unbalanced parentheses or a missing or repeated operator fails with an `unsupported_license_expression` finding. A value without those operators, such as `MIT License` or `MIT License (MIT)`, is treated as a license name: it is matched by name as before or reported for review. A blocked license fails the value even when it does not parse, so `GPL-3.0 (or later)` and `(GPL-3.0 OR MIT` are blocked.</Accordion>@@ -434,7 +440,7 @@ For `validate`, the default set is `schema`, `version`, `security`, `pii`, `liceInstall `skillevaluator[security]` for the bundled Python scanners (Bandit and pip-audit). Install Semgrep and SkillSpector in separate tool environments, and install Gitleaks separately — it is a Go binary, not a pip package. See [Installation](installation.mdx) for commands and the extras table.-Semgrep uses a policy packaged with the installed distribution, with metrics and version checks disabled; Tier 1 never fetches a registry policy at runtime. The other public Tier 1 configuration also ships inside the package under `skillevaluator/config/`: `pii_patterns.yaml`, `unicode_smuggle_patterns.yaml`, `license_config.yaml`, and `profiles/external.yaml`.+Semgrep uses a policy packaged with the installed distribution, with metrics and version checks disabled; Tier 1 never fetches a registry policy at runtime. The other public Tier 1 configuration also ships inside the package under `skillevaluator/config/`: `pii_patterns.yaml`, `unicode_smuggle_patterns.yaml`, `license_config.yaml`, and `profiles/default.yaml`.Bundled Python scanners resolve next to the SkillEvaluator interpreter before `PATH`; external Semgrep and SkillSpector installations resolve from `PATH`. Intentional replacements require an auditable absolute executable path in `SKILLEVALUATOR_BANDIT_PATH`, `SKILLEVALUATOR_SEMGREP_PATH`, or `SKILLEVALUATOR_SKILLSPECTOR_PATH`.diff --git a/src/skillevaluator/cli.py b/src/skillevaluator/cli.pyindex a2843d88..8493cf52 100644--- a/src/skillevaluator/cli.py+++ b/src/skillevaluator/cli.py@@ -199,7 +199,7 @@ Examples:skillevaluator validate ./my-skill -r cli,json,html # comma-separated tooskillevaluator validate ./my-skill -o reports/ # custom output dirskillevaluator validate ./my-skill --no-dedup # skip Tier 2 dedup- skillevaluator validate ./my-skill --external # strict publish profile+ skillevaluator validate ./my-skill --profile default # standard validation policyskillevaluator validate ./my-skill -c # continue on failure (record all issues)skillevaluator validate ./my-skill -a codex # choose the Tier 3 agentskillevaluator validate ./my-skill --no-autopilot # require an existing dataset@@ -1814,14 +1814,14 @@ def _print_run_banner(target_path: Path, content_type: str, profile: str | None)default=None,cls=GroupedOption,help_group=_RUN_GROUP,- help="Validation profile: external or a custom name. Default: $SKILLEVALUATOR_PROFILE env var, then external.",+ help="Validation policy: default (external is a compatibility alias). Default: $SKILLEVALUATOR_PROFILE, then default.",)@click.option("--external",is_flag=True,cls=GroupedOption,help_group=_RUN_GROUP,- help="Shortcut for --profile external (validate for public publication).",+ help="Compatibility alias for --profile default; does not change repository visibility.",)@click.option("--policy",@@ -2149,7 +2149,7 @@ def validate(from skillevaluator.utils.helpers import make_timestamped_basename, resolve_git_remote_url, resolve_git_rootfrom skillevaluator.validators.policy import apply_policy, resolve_policy- if external and profile and profile != "external":+ if external and profile and profile not in {"default", "external"}:raise click.ClickException(f"--external conflicts with --profile {profile}; pass one or the other.")profile_name = "external" if external else profiletry:@@ -2895,7 +2895,7 @@ def _workflow_report_options(func):default=None,help="Override the packaged quality-default.yaml with a custom YAML file.",)[email protected]("--profile", default=None, help="Validation policy profile [default: external].")[email protected]("--profile", default=None, help="Validation policy [default: default; external is a compatibility alias].")@click.option("--previous-version", default=None, help="Previous version for version checks.")@click.option("--skillspector-baseline", type=SKILLSPECTOR_BASELINE_PATH, default=None, help=_SKILLSPECTOR_BASELINE_HELPdiff --git a/src/skillevaluator/config/profiles/external.yaml b/src/skillevaluator/config/profiles/default.yamlsimilarity index 65%rename from src/skillevaluator/config/profiles/external.yamlrename to src/skillevaluator/config/profiles/default.yamlindex c39aaaa5..adf140cb 100644--- a/src/skillevaluator/config/profiles/external.yaml+++ b/src/skillevaluator/config/profiles/default.yaml@@ -1,12 +1,13 @@# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.# SPDX-License-Identifier: Apache-2.0-# skillevaluator validation profile: external+# SkillEvaluator default validation policy#-# This is the default policy for public repositories. It accepts any-# well-formed contributor email address and keeps licensing errors blocking.+# Shared by public and private repositories. This policy governs finding+# severity and author validation, not repository visibility or report hosting.+# The CLI accepts "external" as a compatibility alias for this same policy.-profile: external+profile: defaultidentity:# Disable domain restriction. The author shape (Name <email@host>) isdiff --git a/src/skillevaluator/reporting/html.py b/src/skillevaluator/reporting/html.pyindex b3f9e0ed..69db644f 100644--- a/src/skillevaluator/reporting/html.py+++ b/src/skillevaluator/reporting/html.py@@ -1581,7 +1581,7 @@ class HTMLReporter(ReporterBase):self._tabs_explicit = tabs is not Noneself.target_path = target_pathself.content_label = content_label- # Active validation profile (e.g. "internal", "external"). Surfaced+ # Active validation policy (e.g. "default" or a custom policy name). Surfaced# in the report header so reviewers can tell which audience the# validation gate was applied for.self.profile = profilediff --git a/src/skillevaluator/reporting/markdown.py b/src/skillevaluator/reporting/markdown.pyindex e4571e76..e52031ad 100644--- a/src/skillevaluator/reporting/markdown.py+++ b/src/skillevaluator/reporting/markdown.py@@ -239,7 +239,7 @@ class MarkdownReporter(ReporterBase):None,)if policy is not None:- lines.append(f"**Profile:** {policy.get('profile', 'external')}")+ lines.append(f"**Profile:** {policy.get('profile', 'default')}")if policy.get("digest"):lines.append(f"**Policy digest:** `{policy['digest']}`")diff --git a/src/skillevaluator/validators/policy.py b/src/skillevaluator/validators/policy.pyindex 89a09e9f..2d002509 100644--- a/src/skillevaluator/validators/policy.py+++ b/src/skillevaluator/validators/policy.py@@ -3,7 +3,7 @@"""Validation policy / profile system.-Implements audience-aware policy for SkillEvaluator validators. A+Implements configurable policy for SkillEvaluator validators. A:class:`ValidationPolicy` carries the severity overrides and identityconstraints (e.g. acceptable author email domains) that a validator shouldapply for a given repository or organization.@@ -39,7 +39,7 @@ logger = get_logger(__name__)PROFILES_DIR = Path(__file__).parent.parent / "config" / "profiles"-DEFAULT_PROFILE_NAME = "external"+DEFAULT_PROFILE_NAME = "default"#: Environment variable that selects the default profile when no CLI flag is set.PROFILE_ENV_VAR = "SKILLEVALUATOR_PROFILE"@@ -50,7 +50,7 @@ _AUTHOR_SHAPE_PATTERN = re.compile(r"\S[^<>\n]* <[^<>@\s]+@[^<>\s]+>")@dataclass(frozen=True)class ValidationPolicy:- """Audience-aware policy bundle consumed by validators.+ """Validation policy bundle consumed by validators.Attributes:profile: Human-readable profile name or a custom name supplied by a@@ -66,7 +66,7 @@ class ValidationPolicy:"""profile: str = DEFAULT_PROFILE_NAME- audience: str = "external"+ audience: str = "all"author_email_regex: re.Pattern[str] | None = Noneseverity_overrides: dict[str, Severity] = field(default_factory=dict)source: Path | None = None@@ -222,7 +222,7 @@ def _policy_from_data(return ValidationPolicy(profile=profile_name,- audience="external",+ audience="all",author_email_regex=author_email_regex,severity_overrides=severity_overrides,source=source,@@ -230,12 +230,14 @@ def _policy_from_data(def load_profile(name: str = DEFAULT_PROFILE_NAME) -> ValidationPolicy:- """Load a bundled profile by name.+ """Load a bundled policy; ``external`` is a compatibility alias for ``default``.Raises:FileNotFoundError: when no YAML exists for the requested profile.ValueError: when the YAML is malformed."""+ if name == "external":+ name = DEFAULT_PROFILE_NAMEpath = PROFILES_DIR / f"{name}.yaml"if not path.exists():available = sorted(p.stem for p in PROFILES_DIR.glob("*.yaml")) if PROFILES_DIR.exists() else []@@ -284,11 +286,11 @@ def load_policy_file(def default_policy() -> ValidationPolicy:- """Return the default public policy."""+ """Return the default policy for both public and private repositories."""try:return load_profile(DEFAULT_PROFILE_NAME)except FileNotFoundError:- logger.warning("Default profile YAML not found; falling back to an in-memory public policy.")+ logger.warning("Default profile YAML not found; falling back to an in-memory default policy.")return ValidationPolicy(profile=DEFAULT_PROFILE_NAME,author_email_regex=None,@@ -312,7 +314,7 @@ def resolve_policy(1. ``policy_path`` overlaid on top of ``profile`` (or the default profile)2. ``profile`` named profile3. ``SKILLEVALUATOR_PROFILE`` env var- 4. Default public profile+ 4. Default policy for all repositories"""base = profile or os.environ.get(PROFILE_ENV_VAR) or DEFAULT_PROFILE_NAMEif policy_path is not None:diff --git a/src/skillevaluator/validators/schema.py b/src/skillevaluator/validators/schema.pyindex 2d30fab5..b262812d 100644--- a/src/skillevaluator/validators/schema.py+++ b/src/skillevaluator/validators/schema.py@@ -590,12 +590,11 @@ class SchemaValidator(ValidatorBase):1. *Shape* — every author value must match ``Name <email@host>``,regardless of profile.2. *Domain* — only enforced when the active policy supplies an- ``author_email_regex`` (the ``internal`` profile pins authors to- an organization-specific domain; the default public profile leaves it- open).+ ``author_email_regex``. A custom policy can require an organization+ domain; the bundled default policy accepts any email domain.Severity for both ``author_missing`` and ``author_format`` comes from- the active policy with internal-equivalent defaults.+ the active policy with HIGH defaults."""result = ValidationResult()policy = self.policy@@ -622,7 +621,7 @@ class SchemaValidator(ValidatorBase):)suggestion = ("Use an email matching the active profile's author_email_regex, "- "or run with --profile external if this skill is for public publication."+ "or review whether that domain restriction is appropriate for your repository.")result.add_finding(diff --git a/tests/ci/test_smoke_image.py b/tests/ci/test_smoke_image.pyindex 65c75525..74ec55f0 100644--- a/tests/ci/test_smoke_image.py+++ b/tests/ci/test_smoke_image.py@@ -107,6 +107,7 @@ def _scan_case(directory, case):"overall_passed": passed,"overall_status": row["overall_status"],"incomplete_scans": [],+ "policy": {"profile": "default", "audience": "all"},"results": results,}(child / "skillevaluator-tier1.json").write_text(json.dumps(payload))@@ -160,6 +161,7 @@ def test_acceptance_checks_cover_each_real_scan_scenario(tmp_path, case):"report-dir","row-incomplete","report-incomplete",+ "wrong-policy",],)def test_acceptance_rejects_incomplete_or_contradictory_scan_evidence(tmp_path, case, damage):@@ -170,6 +172,8 @@ def test_acceptance_rejects_incomplete_or_contradictory_scan_evidence(tmp_path,process_exit = int(case == "invalid-name")if damage == "missing-sarif":(child / "skillevaluator-tier1.sarif.json").unlink()+ elif damage == "wrong-policy":+ data["policy"] = {"profile": "external", "audience": "external"}elif damage == "incomplete-scan":data["results"][0]["incomplete_scans"] = ["gitleaks"]elif damage == "missing-validators":diff --git a/tests/golden/test_policy_behavior.py b/tests/golden/test_policy_behavior.pyindex 8f37e85a..67c9e8c4 100644--- a/tests/golden/test_policy_behavior.py+++ b/tests/golden/test_policy_behavior.py@@ -5,8 +5,10 @@from __future__ import annotations+import jsonfrom pathlib import Path+import pytestfrom click.testing import CliRunnerfrom skillevaluator.cli import cli@@ -41,7 +43,20 @@ def _write_skill(root: Path, name: str, author_line: str | None) -> Path:def _validate(skill: Path, out: Path, *args: str) -> int:result = CliRunner().invoke(cli,- ["validate", str(skill), "--tiers", "1", "--no-llm", "--checks", "schema", "-o", str(out), *args],+ [+ "validate",+ str(skill),+ "--tiers",+ "1",+ "--no-llm",+ "--checks",+ "schema",+ "-r",+ "json,html",+ "-o",+ str(out),+ *args,+ ],)return result.exit_code@@ -66,6 +81,20 @@ def test_external_alias_matches_default_public_policy(tmp_path: Path) -> None:assert _validate(missing, out, "--external") == 1+ "options",+ [[], ["--profile", "default"], ["--profile", "external"], ["--external"], ["--external", "--profile", "default"]],+)+def test_default_and_legacy_cli_forms_keep_author_validation(tmp_path: Path, options: list[str]) -> None:+ present = _write_skill(tmp_path, "attributed-skill", "Demo Author <[email protected]>")+ missing = _write_skill(tmp_path, "unattributed-skill", None)+ assert _validate(present, tmp_path / "passed", *options) == 0+ assert _validate(missing, tmp_path / "failed", *options) == 1+ report = json.loads(next((tmp_path / "passed").glob("skillevaluator-output-*.json")).read_text())+ assert report["policy"]["profile"] == "default"+ assert report["policy"]["audience"] == "all"++def test_benchmark_md_generated_for_skill(tmp_path: Path) -> None:out = tmp_path / "reports"nvidia = _write_skill(tmp_path, "nvidia-skill", "Dev One <[email protected]>")diff --git a/tests/validators/test_policy.py b/tests/validators/test_policy.pyindex f6bffbae..81696562 100644--- a/tests/validators/test_policy.py+++ b/tests/validators/test_policy.py@@ -22,11 +22,39 @@ from skillevaluator.validators.policy import ()[email protected]("name", ["default", "external"])+def test_default_and_legacy_names_resolve_one_policy_without_weakening_rules(name: str) -> None:+ policy = resolve_policy(profile=name)++ assert policy.profile == "default"+ assert policy.audience == "all"+ assert policy.is_author_email_acceptable("Author <[email protected]>")+ assert policy.is_author_email_acceptable("Author <[email protected]>")+ assert policy.severity_for("SCHEMA", "author_missing", Severity.LOW) == Severity.HIGH+ assert policy.severity_for("SCHEMA", "author_format", Severity.LOW) == Severity.HIGH+ assert policy.severity_for("WORKFLOWS", "author_format", Severity.LOW) == Severity.HIGH+ assert policy.severity_for("LICENSE", "blocked_license", Severity.LOW) == Severity.CRITICAL+ assert policy.severity_for("PII", "email", Severity.HIGH) == Severity.HIGH+ assert policy.severity_for("SECURITY", "scanner_failure", Severity.CRITICAL) == Severity.CRITICAL+++def test_legacy_environment_and_custom_overlay_use_the_same_default_policy(tmp_path, monkeypatch) -> None:+ monkeypatch.setenv("SKILLEVALUATOR_PROFILE", "external")+ assert resolve_policy().to_dict() == load_profile("default").to_dict()+ custom = tmp_path / "team.yaml"+ custom.write_text("profile: team\nseverity_overrides:\n SCHEMA.author_missing: critical\n")+ policy = resolve_policy(policy_path=custom)+ assert policy.profile == "team"+ assert policy.severity_for("SCHEMA", "author_missing", Severity.LOW) == Severity.CRITICAL+ assert policy.severity_for("LICENSE", "blocked_license", Severity.LOW) == Severity.CRITICAL+ assert resolve_policy(profile="default").profile == "default"++def test_default_profile_is_the_public_profile() -> None:policy = default_policy()- assert DEFAULT_PROFILE_NAME == "external"- assert policy.profile == "external"+ assert DEFAULT_PROFILE_NAME == "default"+ assert policy.profile == "default"assert policy.author_email_regex is Noneassert policy.is_author_email_acceptable("Jane Doe <[email protected]>")assert policy.severity_for("SCHEMA", "author_missing", Severity.LOW) == Severity.HIGH@@ -118,7 +146,7 @@ def test_bundled_profile_wraps_malformed_yaml(tmp_path: Path, monkeypatch: pytesdef test_policy_validation_and_resolution() -> None:- assert resolve_policy().profile == "external"+ assert resolve_policy().profile == "default"assert (ValidationPolicy(severity_overrides={"LICENSE.*": Severity.MEDIUM}).severity_for("LICENSE", "unknown", Severity.HIGH@@ -133,7 +161,7 @@ def test_public_policy_serialization_has_stable_digest() -> None:policy = default_policy()data = policy.to_dict()- assert data["audience"] == "external"+ assert data["audience"] == "all"assert data["digest"].startswith("sha256:")assert policy.digest == default_policy().digest