From bac23fe42b200f297822e220b21c489f98f75fec Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 16 Nov 2026 01:32:52 +0000 Subject: [PATCH 1/2] docs(ci): make the jq quality gate fail closed The CI guide's gate passed when a report had no quality score, because min // 100 turned an empty list into 100. It also read only a top-level report, which a folder target does not write. Check every report under reports/ and fail when a report has no score or none was written. Signed-off-by: Christopher Kevin --- CHANGELOG.md | 3 +++ docs/ci-integration.mdx | 10 +++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4a1e75c4..1ff646e1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -228,6 +228,9 @@ All notable changes to SkillEvaluator are documented in this file. ### Documentation +- The CI guide's `jq` quality gate fails when a report has no quality score + (it passed before) and checks every skill's report in a folder run. + - The starter walkthrough identifies the PASS message as the success summary; the runner's final line gives the report and editable-starter directory. diff --git a/docs/ci-integration.mdx b/docs/ci-integration.mdx index 4067c5f45..788fc494c 100644 --- a/docs/ci-integration.mdx +++ b/docs/ci-integration.mdx @@ -312,11 +312,15 @@ publication signal. Require `publication_status == "pass"` (or A step that enforces a stricter score than the built-in gate: ```bash title="Gate on quality score with jq" -report=$(ls -t reports/skillevaluator-output-*.json | head -1) -jq -e '([.quality_summary[]?.overall_score] | min // 100) >= 80' "$report" +mapfile -t reports < <(find reports -name 'skillevaluator-output-*.json' -type f) +if [ "${#reports[@]}" -eq 0 ]; then + echo "No SkillEvaluator JSON report under reports/" >&2 + exit 1 +fi +jq -se 'all(.[]; [.quality_summary[]?.overall_score] | length > 0 and min >= 80)' "${reports[@]}" ``` -`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). +A single-skill target writes its report at the top of `reports/`, and a folder target writes one per skill under `reports//`, so the step checks every report it finds; write them to an empty `reports/` folder. The gate fails closed: a run with no report, or a report without a quality score, fails it. `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 From f57b0d2b5ff5b21f05fb4299ec9a423ac843ebbb Mon Sep 17 00:00:00 2001 From: Christopher Kevin Date: Mon, 16 Nov 2026 01:39:49 +0000 Subject: [PATCH 2/2] docs(ci): fail the quality gate on an empty report file jq -s reads a zero-byte file as no document, so all() was true. Require one parsed document per report file. Signed-off-by: Christopher Kevin --- docs/ci-integration.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/ci-integration.mdx b/docs/ci-integration.mdx index 788fc494c..36d61eefe 100644 --- a/docs/ci-integration.mdx +++ b/docs/ci-integration.mdx @@ -317,10 +317,11 @@ if [ "${#reports[@]}" -eq 0 ]; then echo "No SkillEvaluator JSON report under reports/" >&2 exit 1 fi -jq -se 'all(.[]; [.quality_summary[]?.overall_score] | length > 0 and min >= 80)' "${reports[@]}" +jq -se --argjson n "${#reports[@]}" \ + 'length == $n and all(.[]; [.quality_summary[]?.overall_score] | length > 0 and min >= 80)' "${reports[@]}" ``` -A single-skill target writes its report at the top of `reports/`, and a folder target writes one per skill under `reports//`, so the step checks every report it finds; write them to an empty `reports/` folder. The gate fails closed: a run with no report, or a report without a quality score, fails it. `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). +A single-skill target writes its report at the top of `reports/`, and a folder target writes one per skill under `reports//`, so the step checks every report it finds; write them to an empty `reports/` folder. The gate fails closed: a run with no report, an empty report file, or a report without a quality score fails it. `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