Skip to content

fix(ci): apply reviewed baselines and preserve scan completeness evidence - #453

Merged
chrisknvidia merged 1 commit into
mainfrom
fix/christopherk/ci-policy-and-completeness
Nov 11, 2026
Merged

chrisknvidia merged 1 commit into
mainfrom
fix/christopherk/ci-policy-and-completeness

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Reusable CI did not forward reviewed per-skill security baselines and could mark a scan incomplete even when SkillSpector inspected every bundled file. This change adds opt-in baseline support for GitHub and GitLab, preserves authored evaluation inputs, and keeps missing-reference caveats visible without treating them as uninspected bundled files.

  • Baselines default to disabled. The manifest and baseline bytes come from the same exact target commit; candidate changes cannot approve their own exceptions. Reports retain policy provenance and native suppression outcomes.
  • Authored evals/ and .evals/ files remain in scanner input. The reference-only exception requires complete file/analyzer coverage and retains the original partial verdict. Coverage gaps, analyzer failures and blocking findings still fail.
  • Reference diagnostics survive JSON, HTML, Markdown and SARIF. They are neither suppressible baseline vulnerabilities nor inputs to optional LLM finding verification.
  • Documentation clarifies accepted metadata.author attribution. Additional contact addresses remain subject to PII checks; there is no domain-wide exemption or PII-waiver forwarding.

Validation at c1e03a029a0cc3126fea91434e527a56f14817b1:

  • All non-skipped PR checks pass, including Python 3.12/3.13/3.14 tests, packaging, image verification and security checks. The final local affected regression run passed 354 tests.
  • Real private GitHub-hosted runs exercised consumer → shared component → evaluator with the candidate image, score 70 and no model credentials. One changed skill was selected from twelve and passed at 85.8. Full-catalog runs with baselines enabled and disabled both scanned twelve skills with zero incomplete scans; existing PII/security failures remained blocking.
  • A PR with deliberately invalid candidate policy still used the approved target-commit baseline. The scanner explicitly reported a 2.13.0/2.13.3 fingerprint mismatch and suppressed zero findings.
  • Real container controls verified successful suppression only for a mapped skill with a compatible baseline, unchanged behavior when disabled, and changed-skill selection.
  • Downloaded HTML, JSON, Markdown and SARIF were inspected for all four hosted scenarios. Edge-case, option-interaction, duplication and regression review found no outstanding issues.

The private hosted test changes only registry authentication for its unpublished image; scanner and reporting behavior are unchanged. Hosted GitLab execution, private Pages, automated PR comments and a live optional LLM-verifier call were not exercised. GitLab policy selection was tested against real local Git repositories.

This PR does not publish an official image or alter released bundles. Rollout requires a supporting release/image and updated shared-component pins. Consumer policy files remain in each consumer repository.

@chrisknvidia
chrisknvidia marked this pull request as ready for review November 11, 2026 00:41
@chrisknvidia
chrisknvidia merged commit b0461ba into main Nov 11, 2026
22 checks passed
@chrisknvidia
chrisknvidia deleted the fix/christopherk/ci-policy-and-completeness branch November 11, 2026 00:56
rng1995 added a commit that referenced this pull request Nov 12, 2026
main's security-baselines option (#453) reaches only the keyless Tier 1
scan. With tier1-llm enabled, the enriched job's evidence replaces that
scan for the required gate, so reviewed baselines were silently dropped
from the gate.

The enriched path now applies the same opt-in:
- run_tier1_image.py accepts only true/false and requires an exact
  POLICY_SOURCE_SHA when true. It forwards both to the image, and never
  forwards an inherited policy commit when baselines are off.
- On GitHub, tier1-llm passes the same SECURITY_BASELINES and
  POLICY_SOURCE_SHA as evaluate-skills.yml, and keeps the candidate
  checkout's blobs when baselines are on, because the image cannot fetch.
- On GitLab, the enriched job resolves the trusted policy commit with
  the same prepare_security_baselines.py block as the keyless job.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[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.

1 participant