Repository navigation
feat(tier3): add run-level next steps to Tier 3 reports - #377
Conversation
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
left a comment
There was a problem hiding this comment.
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.
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: |
…-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]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
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,datasetoragentproblemandevidencefrom this run (case ids, attempt marks, per-agent pass-rate changes)actionwith the flag or file to change, and acheckthat would show improvementstrength:supported,hypothesis(a cause or remedy to test, e.g. one agent following the skill differently) orlimited(the run is incomplete)Rules, in priority order (new module
src/skillevaluator/tier3/next_steps.py, reusing the case-summary helpers):run errorfix already says so--n-attempts)expected_skill: null/should_trigger: falsecaseNo 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:Verification
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)docs/reports.mdx,fern checkclean)make lintmake test(the only failures are environment-dependent git-remote, same-inode and Ctrl-C tests that also fail on a cleanmaincheckout on the same machine)make buildRelease Impact
CHANGELOG.md