Skip to content

feat(datasets): choose a grounding source for generated datasets and keep authored expectations - #401

Merged
chrisknvidia merged 11 commits into
mainfrom
feat/christopherk/guided-dataset-grounding
Nov 10, 2026
Merged

chrisknvidia merged 11 commits into
mainfrom
feat/christopherk/guided-dataset-grounding

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

create-eval-dataset always started from SKILL.md, even when the author had written what the skill must do or a real run showed how it behaves. Trace refinement could also replace an authored ground_truth with whatever the agent answered. This PR makes the starting point explicit and keeps authored expectations.

  • New --grounding {skill,intent,trace} option. The default is skill, which keeps current behavior.
    • intent requires author guidance (evals/EVAL.md or --prompt) and puts it ahead of SKILL.md. It errors clearly when no guidance exists.
    • trace builds on existing trajectories, the same path as --refine, which keeps working. It errors clearly when no trajectory is available.
    • The chosen source is printed, e.g. Grounding: author intent from evals/EVAL.md.
  • Refinement no longer overwrites authored expectations. Authored ground_truth is kept, and an authored expected_behavior step that refinement drops is restored. Cases get review: {status: needs_review, reasons: [...]} in three situations:
    • agent answer differs from authored ground truth
    • refinement dropped authored step: <step>
    • expected outcome taken from an observed run; confirm it is correct, when no ground truth was authored
  • Generated datasets carry a generation record: mode, grounding, inputs with skill-relative path and SHA-256, UTC timestamp, and review state. External inputs record only the basename and hash. The loader and validator already accept the extra fields, and scoring ignores them.
  • The generator summary prints how many cases need review.
  • docs/eval-datasets.mdx and docs/cli-reference.mdx document grounding sources and review flags.

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: 40 dataset generation/grounding tests passed)
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Release Impact

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

@NVIDIA NVIDIA deleted a comment from devin-ai-integration Bot Nov 9, 2026

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

Checked the --grounding option, the intent ordering, both refiners, the overwrite guard, the no-trajectory abort, the generation record and the new docs against base, using CLI and in-process probes with fake trajectories, a fake LLM client and faked Harbor.
Tests at head: test_dataset_grounding + test_generate_dataset_results + test_evaluation_service 80 passed; dataset progress, line-endings and plugin-dataset tests 29 passed; commands, dataset Harbor gate, workflow and source hygiene 221 passed; CLI surface + test_cli 115 passed.
Merges cleanly into main. Real file conflict with #400 in tier3/generate_dataset.py (the generator summary prints; #406 inherits it through its base). Other open PRs: CHANGELOG.md only.
#405: this PR writes generation.mode "template" or "llm", but #405's sanitize_generation_record accepts only llm/template_requested/template_fallback, so a dataset generated while only #401 is merged shows as hand-written after #405 (no line, no template warning). Merge this before #405 and land #405 promptly, or have #405 accept "template" as a legacy alias.
#378: accept-traces appends reviewed production cases but leaves this generation record (mode, inputs, review_state) unchanged, so it goes stale and #405 then reports it as describing the whole dataset.
#402 normalizes placeholder script/behavior values in template and LLM generation but not in the two refinement paths that --grounding trace uses; the loader still normalizes them at evaluation time.

Comment thread docs/eval-datasets.mdx 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: 5ca9c4cbd637835eb689909c62c483ed13d6168c · Environment: docker

Signed-off-by: Christopher Kevin <[email protected]>
…orts (#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]>
…ded-dataset-grounding

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

# Conflicts:
#	CHANGELOG.md
…ded-dataset-grounding

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

# Conflicts:
#	CHANGELOG.md
…ded-dataset-grounding

Signed-off-by: Christopher Kevin <[email protected]>
…ded-dataset-grounding

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

# Conflicts:
#	CHANGELOG.md
#	src/skillevaluator/cli.py
@chrisknvidia
chrisknvidia merged commit f256e03 into main Nov 10, 2026
22 checks passed
@chrisknvidia
chrisknvidia deleted the feat/christopherk/guided-dataset-grounding branch November 10, 2026 05:42
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