Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ All notable changes to SkillEvaluator are documented in this file.

### Added

- `create-eval-dataset --grounding` selects skill, author-intent, or trace
grounding. Generated datasets record relative input provenance and review
flags for observed answers that differ from authored expectations or miss
authored behavior steps.

- `skills/skillevaluator/` is an agent skill for operating SkillEvaluator: it
routes requests to the right tier, readiness check, dataset, report, or CI
command, and ships Tier 3 evaluation cases for itself. A test keeps every
Expand Down
7 changes: 4 additions & 3 deletions docs/cli-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,10 @@ skillevaluator create-eval-dataset ./my-skill --full
| `--dry-run` | off | Preview without writing. |
| `--force` | off | Overwrite existing `evals/evals.json`. |
| `--prompt PATH` | none | Developer eval-guidance file for generation (default: auto-detects `evals/EVAL.md`). |
| `--refine` | off | Refine cases using existing or collected trajectories. Reading trajectories from existing results does not require the `tier3` extra; when none exist, collecting one runs `claude-code` through Harbor and needs the `tier3` extra, Docker, and a configured provider (see [Eval Datasets](eval-datasets.mdx)). |
| `--from-results PATH` | none | With `--refine`: results path containing agent trajectories (default: latest results). |
| `--results-dir DIRECTORY` | unset | With `--refine`: external results root to search for trajectories. |
| `--grounding {skill,intent,trace}` | `skill` | Choose `SKILL.md`, author guidance (`evals/EVAL.md` or `--prompt`), or agent trajectories as the primary grounding source. |
| `--refine` | off | Refine cases with trajectories on top of the selected grounding source; equivalent to trace refinement. If none exist, collection runs `claude-code` through Harbor and needs the `tier3` extra, Docker, and a configured provider (see [Eval Datasets](eval-datasets.mdx)). |
| `--from-results PATH` | none | With `--grounding trace` or `--refine`: results path containing agent trajectories (default: latest results). |
| `--results-dir DIRECTORY` | unset | With `--grounding trace` or `--refine`: external results root to search for trajectories. |

## init-custom-grader

Expand Down
19 changes: 19 additions & 0 deletions docs/eval-datasets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,25 @@ require an existing source instead of generating one.
overwrite too — it produces the final version of the dataset.
</Warning>

### Choose a grounding source

`create-eval-dataset --grounding skill|intent|trace` selects the primary
source used to generate and refine cases. The default, `skill`, preserves the
existing behavior and grounds cases in `SKILL.md`. `intent` requires author
guidance in `evals/EVAL.md` or a file passed with `--prompt`; that guidance is
the primary source, with `SKILL.md` as context. `trace` refines cases from
observed agent trajectories and accepts `--from-results` and `--results-dir`.
The existing `--refine` flag remains available as a trace-refinement alias on
top of the selected grounding source.

Generated datasets include a `generation` record with the mode, grounding
source, relative input paths and SHA-256 digests, generation time, and review
state. Cases whose authored expectations conflict with an observed answer, or
whose authored behavior is not present in the trace, include
Comment thread
chrisknvidia marked this conversation as resolved.
Resolved
`review.status: needs_review` and reasons. A proposed ground truth based on an
observed answer is also flagged for review; inspect these cases before relying
on them as authored expectations.

### The four case buckets

`--full` with an LLM provider targets one case per bucket, including a negative
Expand Down
3 changes: 3 additions & 0 deletions src/skillevaluator/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3377,6 +3377,7 @@ def evaluate(
@click.option("--dry-run", is_flag=True, help="Preview without writing.")
@click.option("--force", is_flag=True, help="Overwrite existing evals/evals.json.")
@click.option("--prompt", type=click.Path(exists=True, path_type=Path), default=None)
@click.option("--grounding", type=click.Choice(["skill", "intent", "trace"]), default="skill")
@click.option("--refine", is_flag=True, help="Refine cases using existing or collected trajectories.")
@click.option("--from-results", type=click.Path(exists=True, path_type=Path), default=None)
@click.option("--results-dir", type=click.Path(file_okay=False, dir_okay=True, path_type=Path), default=None)
Expand All @@ -3387,6 +3388,7 @@ def create_dataset(
dry_run: bool,
force: bool,
prompt: Path | None,
grounding: str,
refine: bool,
from_results: Path | None,
results_dir: Path | None,
Expand All @@ -3403,6 +3405,7 @@ def create_dataset(
dry_run=dry_run,
force=force,
prompt=prompt,
grounding=grounding,
refine=refine,
from_results=from_results,
results_dir=results_dir,
Expand Down
1 change: 1 addition & 0 deletions src/skillevaluator/evaluation/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class DatasetOptions:
dry_run: bool = False
force: bool = False
prompt: Path | None = None
grounding: str = "skill"
refine: bool = False
from_results: Path | None = None
results_dir: Path | None = None
Expand Down
3 changes: 3 additions & 0 deletions src/skillevaluator/tier3/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ def create_dataset(
dry_run: bool = False,
force: bool = False,
prompt: Path | None = None,
grounding: str = "skill",
refine: bool = False,
from_results: Path | None = None,
results_dir: Path | None = None,
Expand All @@ -447,6 +448,8 @@ def create_dataset(
argv.append("--force")
if prompt:
argv.extend(["--prompt", str(prompt.resolve())])
if grounding != "skill":
argv.extend(["--grounding", grounding])
if refine:
argv.append("--refine")
if from_results:
Expand Down
Loading
Loading