Repository navigation
feat(tier3): add a lift history view over retained runs - #388
Conversation
Add tier3 evaluate --reuse-baseline RUN|latest. A retained run's fresh without-skill rows are reused only when the dataset, cases, agents and models, environment, judge/scorer, attempt policy and evaluator version match; otherwise an explicit run id is refused before execution and latest falls back to a fresh baseline with recorded rejection reasons. Reused rows go through the same aggregation and lift pipeline as fresh rows, and results record baseline provenance plus fresh versus reused execution counts and measured usage. Signed-off-by: Christopher Kevin <[email protected]>
Add tier3 history SKILL_PATH, which lists every retained run for a skill in time order with skill revision, model, dataset identity, arm scores, recorded Skill Lift, coverage and baseline mode. Rows whose baseline comparison identity changes start a new segment with the mismatch reasons, so evaluation changes are not shown as a trend. Failed, incomplete and baseline-skipped runs are unavailable rather than zero. Output can be exported as JSON, CSV or Markdown; the command never writes into the results root. Signed-off-by: Christopher Kevin <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Automated review: 8 findings (0 P1, 1 P2, 7 P3); 8 posted inline.
Checked tier3 history against the #384 base: row status and lift gating, segment identity, revision/score columns, terminal and CSV/JSON/Markdown output, and the new retention docs, with probes built on the real collector (multi-agent runs, legacy runs, evaluated-source identities, edited result.json files). Tests at the PR head: tests/test_tier3_history.py 26 passed; tests/test_baseline_store.py + tests/golden/test_cli_surface.py 27 passed; tests/golden/test_cli_surface.py + tests/test_oss_packaging.py 51 passed.
Merge with main: one import line in src/skillevaluator/reporting/html.py, inherited from #384; clean against feat/christopherk/reuse-baseline. Merge #384 first, then rebase this PR.
Conflicts with other open PRs: src/skillevaluator/cli.py and docs/reports.mdx with #387; options.py with #225 (inherited from #384); tests/golden/cli_surface.json with #375 and #378; CHANGELOG.md only with the rest.
Overlap: Overall lift is shown three ways across the open PRs. History takes lift_delta from the recorded paired lift (result.json's lift.overall, falling back to lift.json), as #373 does, but prints the arm overalls beside it, which is the BENCHMARK.md mismatch #373 removes; #386 recomputes Overall from arm summaries instead.
Signed-off-by: Christopher Kevin <[email protected]>
…story 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]>
SkillEvaluator CI resultsRequired gate: Skipped Only Tier 1 blocks CI; Tier 2 and Tier 3 are advisory.
Commit: |
…se-baseline Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…t-history Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…se-baseline Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…t-history Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…se-baseline Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…' into feat/christopherk/lift-history Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
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
Builds on #384 (this PR's base is that branch; only the top commit is new, and it does not depend on #387). Adds
skillevaluator tier3 history SKILL_PATHso a skill author can see how Skill Lift moves across skill revisions using the run directories Tier 3 already retains.fresh/reused/skipped, from feat(tier3): reuse a compatible retained no-skill baseline #384) and run status. Lift is never recomputed by subtracting arm averages.--skip-baseline, baseline-only and unscored runs keeplift_delta: nullwithlift_statusand a reason. They are never zero.lift_changevs the previous comparable row is only given within a segment.--results-dir(same root resolution and legacy fallback as the other result readers, so local and external roots both work),--agent,--json,--output FILE.{json,csv,md}. The command is read-only. Writing an export inside a results root is refused.result.json/run_config.jsonsummaries, not raw traces or logs (the existingresults/ignore pattern stays in place).Verification
tests/test_tier3_history.py: chronology, unavailable rows not zero, segment breaks on model and score-policy changes, external results dir, JSON/CSV/Markdown export, older runs surviving a new reservation)make lintmake test(focused suites only)make buildChecked against real retained OpenCode runs: a results root with two skill-description revisions, a reused-baseline run, failed runs and an
--n-attempts 2run. History put the attempts-2 run in its own segment with the attempt-policy reason, kept the skill-not-activated runs as unavailable lift, and kept the reused run's real0.0lift. A second external root with two revisions plus a failed run listed the failure as unavailable. Before and after the history runs, every retained file had the same content and mtime.Release Impact
CHANGELOG.md