Repository navigation
feat(datasets): choose a grounding source for generated datasets and keep authored expectations - #401
Conversation
…keep authored expectations Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
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.
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
SkillEvaluator CI resultsRequired gate: Skipped Only Tier 1 blocks CI; Tier 2 and Tier 3 are advisory.
Commit: |
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
Summary
create-eval-datasetalways 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 authoredground_truthwith whatever the agent answered. This PR makes the starting point explicit and keeps authored expectations.--grounding {skill,intent,trace}option. The default isskill, which keeps current behavior.intentrequires author guidance (evals/EVAL.mdor--prompt) and puts it ahead of SKILL.md. It errors clearly when no guidance exists.tracebuilds on existing trajectories, the same path as--refine, which keeps working. It errors clearly when no trajectory is available.Grounding: author intent from evals/EVAL.md.ground_truthis kept, and an authoredexpected_behaviorstep that refinement drops is restored. Cases getreview: {status: needs_review, reasons: [...]}in three situations:agent answer differs from authored ground truthrefinement dropped authored step: <step>expected outcome taken from an observed run; confirm it is correct, when no ground truth was authoredgenerationrecord: 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.docs/eval-datasets.mdxanddocs/cli-reference.mdxdocument grounding sources and review flags.Verification
make lint(ruff check and format on the changed files)make test(focused: 40 dataset generation/grounding tests passed)make buildRelease Impact
CHANGELOG.md