Skip to content

feat(tier3): add run-level next steps to Tier 3 reports - #377

Merged
chrisknvidia merged 12 commits into
mainfrom
feat/christopherk/run-next-steps
Nov 10, 2026
Merged

chrisknvidia merged 12 commits into
mainfrom
feat/christopherk/run-next-steps

Conversation

@chrisknvidia

Copy link
Copy Markdown
Collaborator

Summary

Tier 3 reports tell an author how to fix individual failed cases, but not what to try next for the run as a whole: whether the evidence is strong enough to act on, whether more attempts or cases are needed, or whether the result depends on the agent.

This adds up to three run-level Next steps below the per-case fixes in the terminal case summary, the report.html "Conclusion & Next Steps" preview, and the Markdown report. Each step carries:

  • target: evaluation, dataset or agent
  • problem and evidence from this run (case ids, attempt marks, per-agent pass-rate changes)
  • action with the flag or file to change, and a check that would show improvement
  • strength: supported, hypothesis (a cause or remedy to test, e.g. one agent following the skill differently) or limited (the run is incomplete)

Rules, in priority order (new module src/skillevaluator/tier3/next_steps.py, reusing the case-summary helpers):

Step Shown when
Incomplete run Attempts did not produce a score and no per-case run error fix already says so
Inconsistent results A case passed on some attempts and failed on others (suggests more --n-attempts)
Single attempt Every case ran once (stop-on-pass skips don't count as single attempts)
Agent-dependent effect Two or more agents differ by 20+ points in pass-rate change (labelled hypothesis)
More cases Fewer than five skill cases, unless a case fix already asks for new cases
Negative controls The dataset snapshot has no expected_skill: null / should_trigger: false case
Agent experiment One agent ran and the skill showed no clear gain (labelled hypothesis)

No step suggests removing cases or loosening expectations; negative-control cases are excluded from the skill-case count. Baseline-only and never-activated runs get no steps. The rules are deterministic, so the same steps appear without an LLM. The Tier 3 payload carries them as next_steps. Example terminal output:

Next steps
 1. 1 case result(s) passed on some attempts and failed on others  [evaluation]
    try: Re-run with more attempts per case (`--n-attempts 4`) before editing the skill or the cases, ...
    check: Each case passes or fails consistently and the verdict keeps its direction.
    evidence: claude-code/c1 with-skill ✓✗
 2. the skill's effect depends on the agent: claude-code +75 pp, codex +0 pp  [agent · hypothesis]
    try: Test the hypothesis that codex follows the skill differently: compare its failing trajectories ...

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests (tests/test_tier3_next_steps.py: each rule, incomplete/limited runs, no duplication of per-case fixes, cap and no weakening advice, CLI, HTML and Markdown rendering)
  • Updated documentation for user-visible changes (docs/reports.mdx, fern check clean)
  • Ran make lint
  • Ran make test (the only failures are environment-dependent git-remote, same-inode and Ctrl-C tests that also fail on a clean main checkout on the same machine)
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Release Impact

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

List up to three distinct next steps for the run below the per-case fixes in
the terminal, report.html and the Markdown report. Each names its target
(evaluation, dataset or agent), the observed problem and evidence, the action
and the check that shows improvement. Agent and model steps are hypotheses,
steps from incomplete runs are limited, and no step removes cases or loosens
expectations. The rules are deterministic, so they need no LLM.

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: 5 findings (0 P1, 1 P2, 4 P3); 5 posted inline.

Checked each next-step rule in tier3/next_steps.py against docs/reports.mdx and the PR table, and traced next_steps through the terminal summary, the run report.html and the validate Markdown/HTML reporters, with probes for mixed-agent, restated-prompt, hurt-agent and stop-on-pass runs.
Tests run at f9c6671: tests/test_tier3_next_steps.py, test_tier3_case_summary.py and reporting/test_case_findings_report.py (59 passed); test_tier3_result_display.py plus the reporting suites (reporters, secure output, unified Tier 3, private static, redesign: 430 passed); ruff check and format clean on the touched files.
Main: merges cleanly.
Other open PRs: a real conflict with #372 in docs/reports.mdx; whichever merges second needs a rebase there; CHANGELOG.md only with the rest.
Overlap with #381: next_steps._routing copies tier3/eval_core/checks.resolve_should_trigger, which #381's dataset coverage imports, and both PRs report the same dataset gaps (no negative control, too few cases). This PR counts unlabeled cases as skill cases while #381 counts them separately, so the two can give different case counts for the same run; reusing resolve_should_trigger and one count would keep them consistent.

Comment thread src/skillevaluator/tier3/next_steps.py Resolved
Comment thread src/skillevaluator/tier3/next_steps.py Resolved
Comment thread src/skillevaluator/tier3/next_steps.py Resolved
Comment thread src/skillevaluator/tier3/next_steps.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: 30d827490acfec24b50841fe354814f322cb36d1 · Environment: docker

…-next-steps

Signed-off-by: Christopher Kevin <[email protected]>

# Conflicts:
#	CHANGELOG.md
…-next-steps

Signed-off-by: Christopher Kevin <[email protected]>

# Conflicts:
#	CHANGELOG.md
…-next-steps

Signed-off-by: Christopher Kevin <[email protected]>

# Conflicts:
#	CHANGELOG.md
…-next-steps

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]>
@chrisknvidia
chrisknvidia merged commit 0bd8920 into main Nov 10, 2026
22 checks passed
@chrisknvidia
chrisknvidia deleted the feat/christopherk/run-next-steps branch November 10, 2026 12:14
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