Skip to content

feat(datasets): record how a dataset was generated and show it on reports - #405

Merged
rng1995 merged 6 commits into
feat/christopherk/guided-dataset-groundingfrom
feat/christopherk/dataset-generation-provenance
Nov 10, 2026
Merged

rng1995 merged 6 commits into
feat/christopherk/guided-dataset-groundingfrom
feat/christopherk/dataset-generation-provenance

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Stacked on #401, which adds the generation record. The diff shown is against that branch.

A dataset generated from templates looks the same as a hand-written or model-generated one once it is reused. This PR records how each dataset was produced and shows it on every report.

  • The generation mode is now llm, template_requested (--no-llm) or template_fallback, with a sanitized fallback_reason. A refined flag marks trace refinement. One-case autopilot generation writes the same record. A dataset without a record is treated as unknown or hand-written.
  • Tier 3 carries the record into the report payload as dataset_provenance.
  • One line renders in tier3 evaluate, the validate AGENT_EVAL section, the HTML overview (as a warning for templates) and BENCHMARK.md:
    • Dataset: generated from templates (fallback: <reason>) — cases are generic starters; review before relying on scores
    • Dataset: generated by intent grounding, review state needs_review; 2 cases need review
    • No line for hand-written datasets.
  • Verdicts and scores don't change.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran make lint (ruff check and format on the changed files)
  • Ran make test (focused dataset generation/provenance tests)
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

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: 7 findings (0 P1, 2 P2, 5 P3); 7 posted inline.

Checked the generation record from runner capture through payload sanitizing to the evaluate, validate, HTML, BENCHMARK.md and Markdown output, with probes for native Harbor sources, malformed and hostile generation blocks, large payloads and passing validate runs.
Tests at 483b350: the new provenance, grounding and progress tests plus the Tier 3, reporting, CLI and evaluation-service suites passed in three runs (706, 969, and 1,072 with 4 skipped). test_fifo_dataset_is_rejected_without_blocking timed out once under load and passes alone on head and base.
Merges cleanly into main and into its #401 base. Real file conflicts: #406 in six files (reporting/benchmark.py, reporting/cli.py, html.py, report.html.j2, generate_dataset.py, result_display.py, where both add a report line at the same spots), #400 (report.html.j2, generate_dataset.py), #404 (runner.py, result_display.py), #395 (reporting/cli.py, result_display.py), #397 (reporting/cli.py), #381 (cli.py autopilot block), and import lines with #384/#387/#388. The other open PRs conflict in CHANGELOG.md only. Merge right after #401, then land one of #405/#406 and rebase the other.
#378: accept-traces keeps the top-level template record while appending reviewed production cases, so such a dataset still prints "cases are generic starters; review before relying on scores". trace_source is never consulted.
#401: its generator writes mode template, which sanitize_generation_record drops, so datasets generated before this PR lands render as hand-written.
#225: the Gym runner's result block does not add dataset_provenance, so Gym runs show no dataset line.

Comment thread src/skillevaluator/reporting/cli.py Resolved
Comment thread src/skillevaluator/reporting/html.py Resolved
@github-actions

github-actions Bot commented Nov 9, 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: 7eb44c7eec5f836b8d863cd0b01a909e9840ae4e · Environment: docker

@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: 0 findings (0 P1, 0 P2, 0 P3); 0 posted inline.

Re-checked our 7 comments at head 651ab24. Since our review the PR adds fix commit b156fa1, and the other new commits only merge origin/main through #401. Each original scenario reproduces at the reviewed head 483b350 and no longer reproduces at 651ab24, so all 7 are fixed.
Tests at 651ab24 (focused files, no xdist): the provenance, grounding and generation-progress tests pass (43), test_tier3_progress.py passes (148) and tests/reporting passes (1842). ruff check and ruff format --check are clean on the changed files, and CI on 651ab24 is green (25 passed, 2 skipped).
The branch is up to date with feat/christopherk/guided-dataset-grounding (c9086aa), and GitHub reports it mergeable (clean). It lands after its base PR, #401.
Approved from our side.

@rng1995
rng1995 merged commit a4791b4 into feat/christopherk/guided-dataset-grounding Nov 10, 2026
26 checks passed
@rng1995
rng1995 deleted the feat/christopherk/dataset-generation-provenance branch November 10, 2026 03:27
YMuskrat pushed a commit to YMuskrat/SkillEvaluator that referenced this pull request Nov 10, 2026
…keep authored expectations (NVIDIA#401)

* feat(datasets): choose a grounding source for generated datasets and keep authored expectations

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

* fix(datasets): flag only refinement-dropped authored steps

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

* test(cli): update snapshots for dataset grounding

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

* Fix trace-grounded dataset refinement

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

* feat(datasets): record how a dataset was generated and show it on reports (NVIDIA#405)

* feat(datasets): record how a dataset was generated and show it on reports

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

* fix(reports): harden dataset generation provenance

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

---------

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

---------

Signed-off-by: Christopher Kevin <[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