Skip to content

feat(ci): add LLM security, gateway agents and benchmark PRs - #439

Merged
rng1995 merged 18 commits into
mainfrom
naren/ci-gateway-benchmarks
Nov 12, 2026
Merged

rng1995 merged 18 commits into
mainfrom
naren/ci-gateway-benchmarks

Conversation

@rng1995

@rng1995 rng1995 commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Extend three-tier CI onboarding with protected Tier 1 LLM/SkillSpector checks, independent gateway-backed Claude Code/Codex execution, and source-bound BENCHMARK.md reports with optional benchmark-update PRs. Consumers still commit two thin CI entry files; shared execution, provisioning and publishing remain upstream.

Builds on merged #349 (three-tier onboarding/reporting), #408 (Docker-free GitLab Tier 2) and #409 (SkillEvaluator self-CI). This is a new follow-up against current main.

Evaluation behavior

Tier Execution Merge policy
1 — Static and Security Validation Keyless baseline plus admitted --llm/SkillSpector, verification and rubric checks in the hardened image Required
2 — Deduplication Intra/inter-skill comparison, independent chat and embedding settings, no Milvus requirement Advisory
3 — Live Agent Evaluation Explicit native agents and models, separate gateway/judge settings, paired treatment/baseline execution; Docker or local mode Advisory

An admitted Tier 1 LLM run cannot fall back to a passing static result when enriched evidence fails. Incomplete Tier 2/3 evidence stays visible without failing the merge gate.

Onboarding and reporting

  • Capability-gated CLI inputs support independent providers/models, gateway credentials and --benchmark-pr; existing default callers remain compatible.
  • Retain combined native JSON and BENCHMARK.md beside each skill's report, linked from the aggregate index. Preserve the compact PR summary and one combined report link per skill.
  • Preserve Tier 1 required-check scope through retained JSON. Missing or conflicting evidence remains incomplete.
  • A separate trusted GitHub publisher regenerates eligible cards from verified JSON and opens/updates a dedicated benchmark PR after a current default-branch run. It never edits the evaluated PR or pushes to main.
  • GitLab retains benchmark cards in artifacts; benchmark-update PR publication is GitHub-only.
  • Update onboarding, GitHub/GitLab, reports and benchmark documentation and the changelog.

Trust and self-CI configuration

  • Bind provider-backed evaluation to the authorized current commit; recheck GitLab's live protected default-branch head.
  • Isolate selected model credentials from feedback credentials. Pin workflows/tools and retain the immutable released Tier 1 image.
  • Verify publisher ownership, exact generated paths/blob receipts and concurrent edits before writes. Approve the exact uploaded caller bytes for both feedback jobs.
  • Configure this repository for NVIDIA Build Tier 1/2 and explicit Claude Code/Codex gateway models for Tier 3, using repository secrets plus a repository endpoint variable. Upstream provider defaults stay unchanged.

Review follow-up fixes

  • Compare stable benchmark PR identity instead of mutable repository metadata; preserve unrelated Git filenames and skip superseded default-branch evidence before writes.
  • Validate and forward embedding configuration only for Tier 2.
  • Align enriched GitLab job rules and aggregate selection with admitted push/web events; document read-token access for both MR and default-branch admission.
  • Preserve the concurrent correction commit and both regression test sets. Pin the workflows, tools and descriptor to merged source e56ced7f, including latest main 6e117792, with both exact caller approvals refreshed.

Latest main merge

Resolved the changelog conflict while preserving both feature entries. Commit
e56ced7f merges main 6e117792; 0169971b pins evaluation, feedback and
onboarding to that merged runtime and refreshes both exact caller approvals.
GitHub reports the PR mergeable. Focused verification passed 652 integration
tests
and 107 workflow tests (plus a fresh caller-binding check); Ruff,
OSS boundary and Fern checks passed. The new head's CI is running.

The full live-evaluation evidence below belongs to the previously verified
d07e02aa head; it is not a claim that the new merge's CI has completed.

Verification

  • Reviewed contributing guidelines, signed off commits and updated documentation/changelog.
  • Independent scoped code review; reported findings addressed and all current review threads resolved.
  • Combined CI/onboarding/Harbor regressions: 1,878 passed, 4 skipped.
  • Merged review check: 170 passed; final pinned-caller/workflow/golden check: 110 passed. These overlap with the combined suite.
  • Publisher: 60 passed; routing/bootstrap/launcher: 137 passed; GitLab/workflow: 117 passed after the concurrent merge.
  • Source and freshly built distribution boundary checks, public benchmark fixture lint, Ruff and formatting passed.
  • Fern check: 0 errors, one existing warning. Wheel/sdist build and bundled descriptor checks passed.
  • Golden CLI contract regenerated and reviewed for exactly 11 intentional options and two added provider choices. Timeout diagnostic test synchronizes child readiness while retaining the real production deadline and redaction assertions.
  • Final-head full CI matrix passed: Python 3.12/3.13/3.14 each 26,520 passed, 79 skipped; Python 3.12 coverage 89%. Windows suite: 3,762 passed, 77 skipped; all other platform/package checks passed.
  • Isolated gateway protocol probe: HTTP 200 and valid protocol responses for the configured judge, Codex and Claude models. This is API acceptance evidence, not full native paired evaluation.
  • Final-head live three-tier run passed after a targeted Tier 1 retry. All 13 Tier 1 validators passed; Tier 2 completed; Tier 3 passed 32/32 scored trials, both agents × eight cases × treatment/baseline. Combined report artifact. Producing attempts are 2/1/1, verifying reuse of completed Tier 2/3 evidence.
  • No credentials, private datasets or proprietary benchmark content added.

Activation and remaining validation

Live execution verified. Gateway protocol/model access and all 32 paired Tier 3 trials were independently checked in native artifacts; a green advisory wrapper alone was not used as proof. The self-CI collection has one skill, so it cannot establish inter-skill live acceptance.

The released Tier 1 image predates the required-check scope serialization fix. Its evidence may remain publication-incomplete until a compatible image is released; this PR does not invent coverage or publish an image.

The completed run also exposed a pre-existing publication-policy mismatch:
standard no-skill baselines explicitly mark discoverability/efficiency N/A, but
reporting/base.py requires numeric values for every baseline dimension and
compares full-score subtraction instead of the native paired-metric lift.
Those files are unchanged by this PR. A separate reporting-policy/card-rendering
fix is needed before these otherwise complete native results become publication
eligible; current cards correctly stay incomplete. This is separate from the
released Tier 1 image prerequisite above.

The updated trusted listener must reach main before it accepts the new caller revision and posts automatic feedback. An actual benchmark-update PR additionally requires eligible evidence from a subsequent current default-branch run. GitHub Actions PR creation is enabled for this repository.

Release impact

  • Updated CHANGELOG.md.
  • New capabilities are advertised only with immutable candidate workflow/tool references.
  • No release or image publication performed.

@rng1995
rng1995 marked this pull request as ready for review November 9, 2026 20:14

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI review: source/package checks fail on the repository-specific gateway secret mapping. The fix will preserve the generic gateway contract and the existing OSS boundary checks. Enriched Tier 1 separately reports provider rate/quota failures and remains blocking until valid LLM evidence is available.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review at 0a24315: 3 P2 and 3 P3 inline. The PR's focused suites (227 tests) pass locally. The issues sit in paths the test fakes don't model: live GitHub base.repo metadata, the tier1-llm job's reduced environment, and GitLab scheduled default-branch pipelines.

Comment thread ci/benchmark_publish.py Resolved
Comment thread ci/model_config.py Resolved
Comment thread ci/gitlab/all-tiers.yml Resolved
Comment thread ci/benchmark_publish.py Resolved
Comment thread ci/eligible_gitlab.py Resolved
Comment thread ci/benchmark_publish.py Resolved

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow-up CI review: the full Python 3.13 run reaches 26,455 passing tests but fails the frozen CLI surface contract. The new onboarding flags are intentional; their reviewed snapshot must be updated alongside the CLI.

Comment thread src/skillevaluator/ci_onboarding.py Resolved
- Compare stable PR identity before updating the benchmark PR. GitHub
  returns base.repo as the live repository, and the publisher's own
  branch push changes its pushed_at.
- Skip, rather than fail, a publisher whose default-branch run a newer
  push superseded, matching the later guarded checks.
- Accept unrelated repository tree paths; written card and receipt
  paths keep their _safe_path checks.
- Validate the embedding route only for Tier 2, so the Tier 1 image job
  works with an openai-compatible base provider and tier1-provider.
- Run GitLab enriched Tier 1 only for push and web default-branch
  pipelines, matching admission. Scheduled, API and trigger pipelines
  keep the keyless baseline instead of failing the required gate.
- Name the read-token remedy when default-branch admission cannot read
  the branch, and document that it uses the same credential choice.

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

rng1995 commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator Author

Review and CI repair update

Merged the concurrent review corrections without rewriting either branch. Current head: d07e02aa; workflow/tool pins and both exact caller approvals use merged source ab832a3f.

All reported findings are addressed: stable benchmark PR identity checks, normal stale-run skips, unrelated Git filenames, independent tier model routing, GitLab event/admission parity, default-branch read-token guidance, and the intentional CLI snapshot update. Independent scoped review found no further actionable issues.

Validation:

  • Combined CI/onboarding/Harbor regression run: 1,878 passed, 4 skipped.
  • Merged review regression check: 170 passed; final pins/workflows/golden check: 110 passed. These overlap with the combined suite.
  • Source and fresh distribution boundary scans, Ruff, formatting and Fern checks pass (Fern retains one existing warning).

The first full local run found the CLI snapshot drift and a 100 ms child-startup assumption in the timeout diagnostic test; both were reproduced and corrected. The status test file passes sequentially (158 passed, 2 skipped). A separate unchanged test_bounded_harbor_process_failure_reaps_descendants[timeout] was timing-sensitive under local parallel load and passed its sequential rerun.

Fresh GitHub CI is running on the final head. Previous-head native evidence verified enriched Tier 1 and complete Tier 2, but cancelled Tier 3 runs retained only incomplete wrapper manifests. I am not treating those advisory results as completed paired evaluation. Only Tier 1 remains blocking.

The documented activation requirements remain: the updated trusted listener must reach the default branch, and eligible benchmark publication requires a compatible Tier 1 image carrying required-check scope. No release or image publication was performed.

Final verified result

Every workflow is green on d07e02aa, including software CI and all-tier evaluation. All 8 review threads are resolved.

  • Python 3.12/3.13/3.14 each: 26,520 passed, 79 skipped; coverage 89%. Windows: 3,762 passed, 77 skipped. Security, image build, DCO, packaging, onboarding and macOS checks passed.
  • Tier 1 retry: all 13 validators passed, including rubric evaluation and five SkillSpector LLM analyzers using the configured model. The initial Build HTTP 429 remained a required failure until the real retry passed.
  • Tier 2 native evaluation completed. Tier 3 native verdict pass, 32/32 scored trials: both configured agents, all eight distinct cases, treatment and baseline. Source/model/dataset identities and canonical execution completeness were independently validated.
  • Final aggregate producing attempts are 2/1/1: Tier 2/3 were reused without being rerun. The successful Tier 1 native JSON is byte-identical inside the aggregate. Download digests match GitHub artifact metadata.
  • Combined report artifact · native Tier 3 artifact · isolated protocol probe.

Separate publication follow-up

Execution success is not publication eligibility. The released Tier 1 image still needs the documented required-scope serialization upgrade. Live evidence also revealed an unrelated policy mismatch already present on main: explicitly N/A discoverability/efficiency baseline dimensions are rejected at reporting/base.py:1175, and :1205 checks full-score subtraction instead of paired-metric lift. benchmark.py also labels those N/A values as “baseline not run.” All relevant producer/reporting files are unchanged by PR 439.

A separate reporting-policy/rendering fix should validate explicit per-arm N/A, preserve complete paired coverage and source/provenance checks, use the native paired lift basis, and retain rejection of unmarked missing metrics. The retained native artifact reproduces this offline; another evaluation is unnecessary to diagnose it. Current benchmark cards remain honestly incomplete, and no eligible benchmark-update PR is claimed. Automatic feedback still requires merging the updated trusted listener onto the default branch.

Latest merge update

Merged main 6e117792 into #439 without dropping either changelog entry; current head 0169971b pins merged runtime e56ced7f. GitHub reports the PR mergeable. The new merge passed 652 focused integration tests, 107 workflow checks, fresh caller-binding verification, Ruff, OSS boundary and Fern checks. New-head CI is running; the full all-tier evidence above remains explicitly tied to prior head d07e02aa. Repository secret metadata and the gateway selector were verified; no key value was read.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed with independent subagents. All eight discussion threads are resolved; concurrent corrections and both regression sets were preserved. Every workflow is now green on d07e02a. Native artifacts verify all 13 Tier 1 checks, completed Tier 2, and 32/32 paired Tier 3 trials with the configured agents/models; the targeted retry reused Tier 2/3 producing attempt 1. Full validation and report links: #439 (comment) . Separate publication prerequisites remain documented: the released image scope upgrade and a pre-existing N/A-baseline/paired-lift reporting-policy mismatch. Execution success is not being represented as publication eligibility.

Brings in #441 (path-filtered all-tier caller). The conflict in
skill-feedback-all-tiers.yml keeps this branch's e56ced7 pins and the
benchmarks job, and moves trusted-caller-blobs on both jobs to da786a5,
the blob of the merged path-filtered skill-checks-all-tiers.yml.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995 and others added 2 commits November 12, 2026 09:38
Brings in the 37 main commits through #440. #443 moved the all-tier CI
sections out of docs/cli-onboarding.mdx, github-actions.mdx, gitlab-ci.mdx
and reports.mdx into ci/templates/all-tiers/README.md. Those pages now
match main, and this branch's edits to the moved sections are re-applied
in the README at the same text (the line sets added and removed are
identical). The new "LLM security, gateway agents and benchmark cards"
subsection closes the README's GitHub section, and links into it now
use the README.

CHANGELOG keeps this branch's entry and every main entry, with this
branch's wording for the model-settings line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
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]>
@rng1995
rng1995 merged commit 487910e into main Nov 12, 2026
29 of 30 checks passed
@rng1995
rng1995 deleted the naren/ci-gateway-benchmarks branch November 12, 2026 18:44
rng1995 added a commit that referenced this pull request Nov 12, 2026
Keeps both Unreleased/Added CHANGELOG entries (NeMo Gym backend and
CI onboarding/benchmark PRs from #439). No other files conflicted.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
chrisknvidia added a commit that referenced this pull request Nov 17, 2026
…it (#712)

Every push to main and every pull request showed the "Skill checks (all
tiers)" workflow as failed with no jobs. GitHub's error was:

  Invalid workflow file: .github/workflows/skill-checks-all-tiers.yml#L24
  error parsing called workflow ".github/workflows/skill-checks-all-tiers.yml"
  -> "NVIDIA/SkillEvaluator/.github/workflows/evaluate-all-tiers.yml@80ef7b6..."
  : workflow was not found.

The caller pinned the reusable workflow to 80ef7b6, a commit from the
pull-request branch of #468. That commit is reachable from no branch or
tag since the squash merge, and GitHub resolves a called workflow only at
a reachable commit, so every run since the merge failed before any job
started. The feedback caller pins the same commit and would fail the same
way once the scan workflow runs again. The previous pin, e56ced7 from
#439, was orphaned the same way.

Pin both callers to ba7779a, the workflow_ref and tools_ref of the
committed 0.9.0 release descriptor, which is on main, and move the Tier 1
image to the same release's digest so the callers match what the all-tier
onboarding writes today. Refresh trusted-caller-blobs for the edited scan
caller. Add a test that the repository's own callers pin a revision named
by a committed release descriptor, which rejects pull-request branch
commits before they are merged.

Signed-off-by: Christopher Kevin <[email protected]>

This branch was previously deployed

1 inactive deployment
skillevaluator — 911e0a4d Deployed Nov 12, 2026 by rng1995 via skills / paid-tiers (3) #114
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