Skip to content

feat(tier3): import precomputed custom metrics - #375

Merged
chrisknvidia merged 9 commits into
mainfrom
feat/christopherk/import-custom-metrics
Nov 10, 2026
Merged

chrisknvidia merged 9 commits into
mainfrom
feat/christopherk/import-custom-metrics

Conversation

@chrisknvidia

Copy link
Copy Markdown
Collaborator

Summary

  • Add tier3 import-metrics for precomputed, per-case custom scores using the existing custom_metrics reward envelope and aggregation helpers. The initial contract accepts normalized 0–1 numbers, not raw traces, execution or unrestricted physical measurements.
  • Validate versioned definitions, units, direction, evaluation identities, duplicate observations and missing/non-finite values. Compute paired custom delta only for matching case/attempt IDs in one declared context; report direction-aware improvement separately.
  • Write external-only JSON/Markdown reports with declared provenance, source SHA-256, import time and coverage. Imports do not execute tests, assign canonical scores or alter live-run/publication artifacts.
  • Document the contract and include a runnable synthetic circuit-simulation example.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran make lint
  • Ran make test
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Additional checks:

  • 91 focused import/CLI golden tests pass; one unrelated timestamp test also passes on isolated rerun.
  • Targeted Mypy checks pass for both new source modules; repository-wide Ruff and OSS boundary checks pass.
  • Fern validation: zero errors; unauthenticated redirects check skipped.
  • Built wheel imported the simulator example in a base-only environment without Harbor or provider credentials.
  • Full local suite: 25,132 passed, 82 skipped, 46 failed. Of those failures, 45 reproduce on clean origin/main (repository identity/setup and file-timestamp checks); the remaining file-timestamp test passes on isolated rerun. No unrelated tests or environment configuration are changed here.

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Automated review: 4 findings (0 P1, 0 P2, 4 P3); 4 posted inline.

Checked the new tier3 import-metrics path on the head (51aabb8): contract validation and limits in tier3/external_metrics.py, the arm and paired-delta aggregation, the JSON and Markdown reports, CLI wiring, and the docs and CHANGELOG claims, with probes on this head and origin/main.
Tests run on the head: tests/tier3/test_external_metrics.py with tests/golden/test_cli_surface.py, tests/test_skillevaluator_skill.py and tests/test_oss_packaging.py gave 195 passed; tests/test_harbor_metrics_truth.py (the reused custom-metric helpers) gave 96 passed.
CLI end to end on docs/assets/simulator-metrics.json with Harbor, LiteLLM, Docker and provider SDK imports blocked: exit 0, both reports written, values match the docs; a second run into the same directory refuses with "File exists". A 1000-observation by 128-metric file loads in 0.47s, and inputs over 4 MiB are rejected as documented.
Merges onto current main without conflicts. Real file conflicts with #378 in docs/cli-reference.mdx and tests/golden/cli_surface.json (both add a tier3 import-* command at the same spot), and with #388 in tests/golden/cli_surface.json; whichever of the three lands later needs to regenerate cli_surface.json. With #225, #372, #374, #377, #381-#385 and #387 it conflicts in CHANGELOG.md only, and it does not conflict with #333, #373, #376, #379, #380 or #386.

Comment thread docs/custom-graders.mdx Resolved
Comment thread docs/cli-reference.mdx Resolved
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Evaluation run

SkillEvaluator CI results

Required gate: Skipped

Only Tier 1 blocks CI; Tier 2 and Tier 3 are advisory.

Skill Tier 1: Static and Security Validation Tier 2: Deduplication Tier 3: Live Agent Evaluation Report
No skills evaluated SKIPPED · issues unknown · No selected skills changed; Tier 1 evaluation did not run. INCOMPLETE · issues unknown · The tier did not produce retained evidence; inspect its failed or cancelled CI job. INCOMPLETE · issues unknown · The tier did not produce retained evidence; inspect its failed or cancelled CI job. Report

Commit: d6c0495398f465b88391af2f3e524a67a4d45f92 · Environment: docker

…ort-custom-metrics

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

# Conflicts:
#	CHANGELOG.md
…ort-custom-metrics

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

# Conflicts:
#	CHANGELOG.md
…ort-custom-metrics

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

# Conflicts:
#	CHANGELOG.md
…ort-custom-metrics

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

# Conflicts:
#	CHANGELOG.md
#	docs/cli-reference.mdx
#	src/skillevaluator/cli.py
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
@chrisknvidia
chrisknvidia merged commit 2adb700 into main Nov 10, 2026
22 checks passed
@chrisknvidia
chrisknvidia deleted the feat/christopherk/import-custom-metrics branch November 10, 2026 09:00
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