Repository navigation
feat(tier3): import production trace exports as reviewed eval cases - #378
Conversation
Add tier3 import-traces, which turns a documented trace export (JSONL or a versioned JSON wrapper) into a redacted review bundle outside the skill, and tier3 accept-traces, which promotes only explicitly reviewed candidates into evals/evals.json with entry-local fixtures and source-session provenance. Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
The 2 MiB redaction guard still catches quadratic regressions, but 5s was too tight for loaded runners. Signed-off-by: Christopher Kevin <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Automated review: 16 findings (0 P1, 2 P2, 14 P3); 16 posted inline.
Checked import-traces and accept-traces end to end: export parsing (wrapper, JSONL, encodings), redaction of prompts, tool summaries, fixtures and provenance, duplicate and missing-input detection, promotion into evals/evals.json, and how the Harbor adapter stages accepted fixtures and picks the Tier 3 source.
Tests run at f716d24: tests/test_trace_import.py (43 passed) and tests/golden/test_cli_surface.py (3 passed), plus probes for each comment above and a tier3 validate on an accepted dataset (3 ok).
Main: merges cleanly.
Other open PRs: real conflicts with #375 in docs/cli-reference.mdx and tests/golden/cli_surface.json, and with #388 in tests/golden/cli_surface.json (both also touch CHANGELOG.md); whichever merges second regenerates the golden surface and, for #375, rebases the CLI reference. CHANGELOG.md only with #225, #372, #374, #377, #381-#385 and #387.
Overlap with #381: accepted trace entries set expected_skill, so #381's dataset coverage counts them as positive cases; trace import can never add negative controls, which is expected.
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: |
…ce-datasets Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…ce-datasets Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…ce-datasets Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…ce-datasets Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md # docs/cli-reference.mdx
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Summary
Teams with a skill in production want eval cases that reflect how the skill is actually used. This adds a local, LLM-free import-and-review workflow that turns exported agent sessions into eval cases without treating production behavior as the correct answer.
skillevaluator tier3 import-traces SKILL EXPORT [-o DIR] [--force] [--dry-run]reads a documented trace export (JSONL, or askillevaluator.trace-exportv1 JSON wrapper). Each session can carry an ATIFtrajectoryor a rawagent_logfrom a supported agent (claude-code,cursor-cli,cline,opencode,codex), which is rebuilt with the existing log converters. It writes a review bundle (candidates.jsonplusfixtures/<id>/) outside the skill directory. Each candidate keeps observed evidence (outcome, final output, tool-call summary), source-session provenance, redaction counts, warnings, and apendingreview./home/<name>/paths). Raw logs and unknown fields are never copied.missing replay input: …).skillevaluator tier3 accept-traces SKILL REVIEW_DIR [--dry-run]promotes only reviewed candidates:acceptneeds anexpected_outputwritten by the reviewer.accept_observedreuses the observed output and is refused unless the session succeeded.evals/files/trace/<id>/with references local to each entry, and entries gettrace_sourceprovenance.docs/trace-datasets.mdx(export contract, review decisions, what redaction does and does not catch), plus CLI reference and changelog entries.Verification
tests/test_trace_import.py; CLI golden surface regenerated)make lintmake test: all new tests pass. 47 failures intest_ci_onboarding,test_plugin_dependencies/test_plugin_dependency_records/test_plugin_discovery,TestResolveGitRemoteUrl, and the same-inode mtime tests also fail on a cleanorigin/maincheckout in the same environment (git remote / filesystem setup), so they are unrelated to this change.make buildEnd-to-end run on a scratch skill:
accept_observedon the failed session was refused.tier3 validate.tier3 evaluate(opencode, Docker, 1 case) built the task image with the trace fixtures copied to/workspace/input/. The trial then errored at Docker compose container start in this sandbox, so no score was produced.Release Impact
CHANGELOG.md