Skip to content

feat(tier3): add a lift history view over retained runs - #388

Merged
chrisknvidia merged 23 commits into
mainfrom
feat/christopherk/lift-history
Nov 10, 2026
Merged

chrisknvidia merged 23 commits into
mainfrom
feat/christopherk/lift-history

Conversation

@chrisknvidia

Copy link
Copy Markdown
Collaborator

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_PATH so a skill author can see how Skill Lift moves across skill revisions using the run directories Tier 3 already retains.

  • Lists every retained run for the skill in time order, per agent: run id, evaluation time, skill revision/content digest, model, dataset digest and case count, with-skill and without-skill scores, the recorded paired Skill Lift, case coverage per arm, baseline mode (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.
  • Failed, incomplete, corrupt, --skip-baseline, baseline-only and unscored runs keep lift_delta: null with lift_status and a reason. They are never zero.
  • Rows are grouped into segments by the feat(tier3): reuse a compatible retained no-skill baseline #384 baseline comparison identity (everything except the skill). When the identity changes, the row starts a new segment and lists the mismatch reasons, for example a model, attempt-policy or score-policy change. lift_change vs the previous comparable row is only given within a segment.
  • Options: --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.
  • Docs explain that new runs never remove earlier run directories. They also explain how to keep history with a repository: commit the reviewed result.json / run_config.json summaries, not raw traces or logs (the existing results/ ignore pattern stays in place).

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests (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)
  • Updated documentation for user-visible changes
  • Ran make lint
  • Ran make test (focused suites only)
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Checked against real retained OpenCode runs: a results root with two skill-description revisions, a reused-baseline run, failed runs and an --n-attempts 2 run. 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 real 0.0 lift. 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

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

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 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: 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.

Comment thread src/skillevaluator/tier3/history.py Resolved
Comment thread src/skillevaluator/tier3/history.py Resolved
Comment thread src/skillevaluator/tier3/history.py Resolved
Comment thread src/skillevaluator/tier3/history.py Resolved
Comment thread src/skillevaluator/cli.py Resolved
Comment thread docs/reports.mdx Resolved
Comment thread src/skillevaluator/tier3/history.py Resolved
Comment thread src/skillevaluator/tier3/history.py Resolved
@github-actions

github-actions Bot commented Nov 10, 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: 7adbe878abe8ba8a4700aefad7e5d81befc62d2c · Environment: docker

…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]>
Base automatically changed from feat/christopherk/reuse-baseline to main November 10, 2026 13:25
Signed-off-by: Christopher Kevin <[email protected]>
@chrisknvidia
chrisknvidia merged commit 98d1279 into main Nov 10, 2026
22 checks passed
@chrisknvidia
chrisknvidia deleted the feat/christopherk/lift-history branch November 10, 2026 14:49
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