Skip to content

feat(ci): add three-tier onboarding and private report feedback - #349

Merged
rng1995 merged 53 commits into
mainfrom
naren/three-tier-ci-onboarding
Nov 9, 2026
Merged

rng1995 merged 53 commits into
mainfrom
naren/three-tier-ci-onboarding

Conversation

@rng1995

@rng1995 rng1995 commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Onboard all three SkillEvaluator tiers in a consumer repository’s CI with two thin files and one current-head PR/MR summary comment. Execution, runtime provisioning and reporting stay upstream. Existing Tier 1-only consumers remain supported.

Only Tier 1 blocks CI. Tier 2 and Tier 3 are advisory, including failed and incomplete outcomes. Each skill gets one summary-table row with the three named tiers, a one-line status/issue count/key finding, and one combined Report link.

User workflow

  1. Install a reviewed candidate and run skillevaluator ci init --tiers 1,2,3 locally inside the consumer checkout.
  2. Review the two generated files, configure CI credentials and runner prerequisites, then merge the setup PR/MR.
  3. Skill changes run automatically in consumer CI. Local ci status checks configuration; optional local ci demo opens a small test PR/MR.

Onboarding commands do not run during normal evaluations. Automatic feedback starts after the trusted publisher reaches the default branch. Released 0.8.0 bundles remain Tier 1-only; candidate onboarding automatically selects its bundled schema-version 2 descriptor.

Evaluation and reports

Tier Execution CI policy
1: Static and Security Validation Existing keyless validation, SkillSpector scanning, thresholds and changed-skill selection Required
2: Deduplication Intra-skill checks and inter-skill comparison against the configured collection; no Milvus required Advisory
3: Live Agent Evaluation Strict committed datasets; complete treatment/baseline coverage; Docker by default, local explicitly Advisory
  • Preserve execution outcomes independently from gate policy, including in retained native JSON, HTML and Markdown. Missing/partial evidence has unknown issue counts.
  • Keep detailed aggregate/native reports in one authenticated artifact, retained for 14 days. Download and extract it, then open index.html.
  • Validate native evidence before deriving comment metrics. Deduplicate actionable findings while preserving independent errors/warnings; bound and escape the summary.
  • Preserve deprecated Tier 3-required inputs as ignored compatibility options. Historical reports retain their declared policies; standalone validation and benchmark publication policies are unchanged.

Trust and compatibility

  • Bind provider-backed evaluation to the authorized exact commit; isolate provider credentials from repository and feedback credentials.
  • Run the publisher from trusted pinned tools, validate producer provenance/current head/caller configuration and retained artifact identity, and update one bot-owned comment.
  • Reuse prior tier evidence safely for “Re-run failed jobs”; keep bounded, redacted diagnostics for incomplete execution.
  • Support GitHub and GitLab consumer adapters. The upstream reusable workflows do not self-onboard SkillEvaluator; comments on its own PRs require separate consumer callers.
  • Document GitLab root-file merges, protected execution/feedback environments, scoped credentials and tagged/untagged runner requirements.

Candidate workflow/tools/feedback source: 472e8becc289a2dc1131e550ebd335c08249918d; native runtime version and lock digest match that source. The reviewed Tier 1 image remains independently pinned.

Validation

  • Locked environment: 1,710 CI/onboarding/report tests passed, 4 skipped; 990 runtime/compatibility tests passed, 3 skipped. These suites overlap.
  • Final all-tier onboarding suite: 80 passed. New regressions reproduce malformed/missing-input readiness failures and Tier 2’s incorrect native blocking policy before the fixes.
  • Clean two-skill fixture: default ci init preview/save passed without --release or API calls and generated exactly two workflow files.
  • Ruff, changed-file formatting, OSS boundary scan, wheel/sdist build and packaged-descriptor checks passed. Fern: zero errors; authenticated redirect checking was skipped without FERN_TOKEN.
  • Hosted checks for the current head are running. Local checks do not establish complete paid-tier CI acceptance.

Live consumer evidence — earlier candidates

Evidence Verified result
Private GitHub: two-file setup #3, demo #2, automatic comment, combined report One summary table and Report link; T1 PASSED with 10 real issues; T2/T3 INCOMPLETE due to missing credentials; required gate passed. No model calls.
Public GitHub: demo #2, reports T1/T2 passed; T3 incomplete, 2/4 attempts scored.
Tier 1-only control: one-file PR Released schema 1, both skills passed without provider keys.
Private GitLab: setup #3, demo #4, comment Trusted feedback and exact-head archive verified with a prior candidate. Disposable credentials revoked; runner paused.

Existing screenshots and exact onboarding command logs.

Outstanding validation and follow-ups

No verified end-to-end CI run has completed all three evaluations successfully. Complete paired Docker Tier 3 remains unverified after judge HTTP 429 and OpenCode EPIPE failures (upstream issue). Local paired evaluation completed one skill (4/4); the second remained partial (3/4). Complete credentialed acceptance in both supported modes before promoting the all-tier release.

Potential separate PRs:

  • Self-onboard SkillEvaluator with consumer callers if summaries are wanted on its own PRs.
  • Avoid starting Docker-in-Docker for GitLab Tier 2; preserve native job and feedback identity contracts.

Public starter/demo work already exists in #374; no duplicate is needed. Cloud/Kubernetes onboarding is excluded. This PR remains unmerged.

@rng1995
rng1995 marked this pull request as ready for review November 5, 2026 21:50
…nboarding

Signed-off-by: Narendran Raghavan <[email protected]>

# Conflicts:
#	CHANGELOG.md
@rng1995
rng1995 enabled auto-merge (squash) November 9, 2026 17:06
@rng1995
rng1995 merged commit 86f1a1f into main Nov 9, 2026
22 checks passed
@rng1995
rng1995 deleted the naren/three-tier-ci-onboarding branch November 9, 2026 17:33
@chrisknvidia chrisknvidia mentioned this pull request Nov 10, 2026
10 tasks done
rng1995 added a commit that referenced this pull request Nov 12, 2026
…s and summarize affected artifacts (#460)

* feat(tier1): name SkillSpector AE1 findings and say why each file was not inspected

SkillSpector reports a High AE1 (incomplete referenced artifact analysis)
finding at each line that names a file it did not completely inspect. The
finding said only "Referenced artifact was not completely inspected", so the
reason had to be matched by hand against the incomplete-analysis error. With
SkillSpector before v2.12.0 it was titled "Unknown (AE1)" and suggested
making the file available although SkillSpector had read part of it.

The new skillspector_references module projects the finding's evidence:
the target, its disposition and up to 16 reasons, read from the ledger rows
of earlier releases, with bounded, redacted text and paths kept only inside
the scan. The suggestion names the file and each reason, and the result
counts the files and reference lines in skillspector_reference_summary and
one message, also across the --llm stage and a folder of skills. Severities,
completeness and gates are unchanged.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(reporting): count incompletely inspected referenced files in failed Tier 1 reports

When the security check fails, the full and compact terminal output, the
Markdown report and the HTML report add one line that counts the files
SkillSpector did not completely inspect and the lines that name them. The
JSON report records the counts in skillspector_reference_summary, with only
its three count fields.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(tier1): describe the reasons and counts of SkillSpector AE1 findings

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(tier1): drop AE1 reason limits too large for a float

A reason's limit that is an integer beyond the float range raised
OverflowError in math.isfinite, so the scan returned no result. Check
the type and range first and call math.isfinite only for floats, so such
a limit is left out like any other out-of-range value.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(tier1): keep the AE1 count line out of passing results

The count of incompletely inspected referenced artifacts was also added
to the result's messages. A policy that lowers the AE1 findings, or
--verify-llm, can pass a complete scan, and reporters list a passing
result's messages as passed checks, so the Markdown, HTML and terminal
reports showed the count as a success. Every reporter already renders
the line from the skillspector_reference_summary metadata, and only for
a failed result, so the message is dropped. JSON still records the
counts for every result.

Also pin that a severity override for a SkillSpector report before
v2.12.0 matches the rule's name, not "Unknown (AE1)".

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* perf(tier1): normalize each AE1 path and text once per SkillSpector report

Every reference line and reason of every AE1 finding went through
redaction, and every absolute path resolved the scan root again. A
report with thousands of AE1 findings that repeat the same lines took
seconds instead of a fraction of one.

ReportNormalizer keeps, for one report, the redacted form of each
distinct text and the in-scan form of each distinct path, and resolves
the scan root at most once. _process_skillspector_cli_result builds one
and passes it to the ledger index and to every issue it converts.
report_path keeps its behavior for a single path.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(reporting): prefix AE1 reference lines with their skill in folder results

merge_with_prefix put the skill's [name] prefix on each finding's path
and on the PII scan's metadata occurrences, but not on the
skillspector_occurrences of an AE1 finding. In a folder report a JSON
reader could not tell which skill a listed reference line was in
without the finding's own path. Prefix those lines the same way; the
referenced file's target_path stays relative to the named skill.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(reporting): say the AE1 count line names any reasons SkillSpector gave

The count line ended "each AE1 finding names the artifact and why its
analysis stopped", but a finding counts whenever SkillSpector names its
file, even with an empty reason list and no ledger row for the file.
Say instead that each finding names the artifact and any reasons
SkillSpector gave.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* refactor(reporting): import the AE1 count formatter where cli and markdown use it

The module-level imports in reporting/cli.py and reporting/markdown.py
sat in the same import slot that several open pull requests also add
to, so each of those merges would conflict on one line. Import
reference_summary_message inside the method that uses it, as html.py
already does.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(tier1): note the AE1 check-name change for severity overrides

With SkillSpector before v2.12.0 the AE1 check name changes from
"Unknown (AE1)" to "Incomplete referenced artifact analysis (AE1)", so
a severity_overrides entry keyed on the old name no longer matches and
the SARIF rule ID changes. Say so in the CHANGELOG and the Tier 1 docs,
and soften "gates are unchanged" to the one case where a gate can
change. Also say that JSON records the counts for every result, while
the other reports show them only for a failed one.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* refactor(reporting): register the AE1 count filter first in the HTML environment

Two sibling port branches add a filter after skip_reason, where this
branch also added one, so each merge conflicted on one line. Register
skillspector_reference_summary before the other filters instead.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(tier1): keep the measured run time out of AE1 suggestions

A finding's suggestion is part of its finding_id, which the docs say stays
the same across runs. The AE1 suggestion listed every limit of a reason,
including observed_seconds, the wall-clock time SkillSpector records with a
runtime_limit reason. Each run of a scan that hit the runtime budget gave
the finding a new finding_id, and with --llm the two stages' copies of one
reference line counted as two unique findings when the second stage was
incomplete.

The suggestion now leaves out observed_seconds; the finding's metadata still
records it. Reasons that differ only in the run time are described once.
The CHANGELOG notes that AE1 finding_id values change once because the
suggestion text is new.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(reporting): keep the AE1 count line in reports rendered from retained JSON

CI renders its HTML and Markdown reports again from the JSON report through
retained_results, which rebuilds each result's metadata from named fields.
skillspector_reference_summary was not one of them, so a failed Tier 1
result lost the count line in every report that CI published, although the
docs and the CHANGELOG say the Markdown and HTML reports show it.

retained_results now copies the record through reference_summary_record,
so only valid counts are kept and a malformed record is dropped. The hunk
sits after the scanners block, apart from the lines that open PRs #333 and
#349 change in this function.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(tier1): keep the time budget out of AE1 suggestions

SkillSpector sets a runtime_limit reason's limit_seconds to the part of
the scan's time budget left when the step began: for each file that
YARA did not reach and for the dependency analysis of a lockfile. The
value differs from run to run like observed_seconds, so an AE1 finding
with such a reason got a new finding_id on every run.

Leave every *_seconds limit out of the suggestion and its grouping key.
The finding's metadata keeps both values.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(tier1): say beside the counters that AE1 counts are totaled like them

The sentence on the AE1 counts followed the paragraph on reference and
target roots, so "the same way" read as the target-root rule. It now
sits in the paragraph on the applicability counters.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Signed-off-by: Narendran Raghavan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants