Repository navigation
feat(tier3): write deductions as plain-language reasons with evidence - #399
Conversation
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Automated review: 6 findings (0 P1, 2 P2, 4 P3); 6 posted inline.
Checked the new criterion sentences, the Expected/observed suffix and the evidence-unavailable line at head c255ece in the CLI findings, findings JSON, HTML evaluator cards, drill-down row reasons and the HTML preview budget, comparing main and head with probes.
At c255ece the PR's 4 changed test files pass (477 tests), and the wider tier3 and reporting suites pass (5652 passed: all of tests/reporting plus the Harbor collector, Harbor report-link, judge, evidence, ATIF and error-recovery tests). Ruff check and format are clean on the 9 changed .py files. The later main merge (83b9c80) adds only #408's CI files, so these results carry over.
Merges cleanly into main (c3b298c). Real file conflicts with other open PRs: #372 (tier3/harbor/report.py, _extract_findings), #379 (tier3/harbor/report.py, skill_execution fallback reason), #395 (tests/reporting/test_tier3_failure_reasons.py, both rewrite the top-level-card preview test), and #400 plus #406, which is stacked on it (docs/reports.mdx, same insertion point). #369, #376, #380, #397 and #398 conflict only in CHANGELOG.md, and the rest merge cleanly. No merge order is needed.
With #382: its new Dataset-tab diagnostics show raw keys ("Unmet rubric checks: FACTUALLY_ACCURATE") while this PR turns them into sentences; whichever lands second should reuse _accuracy_criterion_failure_reason.
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: |
rng1995
left a comment
There was a problem hiding this comment.
Automated review: 3 findings (0 P1, 2 P2, 1 P3); 3 posted inline.
Re-checked our 6 comments at head d830719, plus the fix commits 08b38a1, 19bca40 and d830719.
4 of 6 are fixed: command-line redaction in the Expected/observed suffix, criterion names in drill-down reasons, _trajectory_load treated as provenance, and the saved-payload labels (the _failing_multi_agent_payload(2, 36) preview renders every reason again with no notice). Still open: the CLI still prints the evidence-unavailable label on security and skill findings. The card reason now has its own droppable field and my 16-case size repro renders like main again, but the new reason line repeats the grader's reason and breaks the evidence row layout (two inline comments).
Tests at d830719: 484 passed in the four changed test files, and tests/reporting, tests/tier3 and the findings display suites pass (11,864 passed, 7 skipped). ruff check and format are clean on the touched files.
Merge state: GitHub reports the PR mergeable with state clean against main. It is 3 commits behind main.
Signed-off-by: Christopher Kevin <[email protected]>
…in-language-deductions Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md
…in-language-deductions Signed-off-by: Christopher Kevin <[email protected]>
…in-language-deductions Signed-off-by: Christopher Kevin <[email protected]> # Conflicts: # CHANGELOG.md # src/skillevaluator/tier3/harbor/report.py
Signed-off-by: Christopher Kevin <[email protected]>
…ed-note Brings in the main changes since e5c100a. Three files conflicted, all where main's plain-language deductions (#399) added the evidence_unavailable_reason evidence field on the same lines that this branch adds comparison_excluded. Both fields are kept: - src/skillevaluator/evaluation/tier3_report.py: _metric_evidence keeps main's _METRIC_EVIDENCE_REF_METRICS import next to this branch's _entry_id import, and sets comparison_excluded for a judge-mixed case before main's evidence_unavailable_reason block. - src/skillevaluator/reporting/html.py: keeps this branch's _sanitize_tier3_comparison_basis helper ahead of main's new _sanitize_tier3_evaluator_card signature (keyword include_evidence_unavailable_default), and keeps the comparison_excluded check followed by main's evidence_unavailable_reason default. - src/skillevaluator/reporting/templates/report.html.j2: takes main's per-case dedup_map seed (with evidence_unavailable_reason and reason, at main's indentation) and adds this branch's comparison_excluded default; keeps both per-evidence update lines. CHANGELOG.md and docs/reports.mdx merged cleanly; this branch's Fixed entry stays under Unreleased next to the same neighbours. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
Tier 3 findings listed failed accuracy criteria as bare IDs such as
FACTUALLY_ACCURATE failed. Skill checks without a recorded reason were shown as<check> failed. Neither tells an author what was expected or what went wrong. This PR writes each deduction as a plain sentence and says when no evidence was recorded. Scoring doesn't change._ACCURACY_CRITERIA, for exampleThe answer's facts do not match the expected answer (criterion FACTUALLY_ACCURATE). Unknown keys readCriterion KEY was not met. Excluded criteria stay excluded.Expected: …; observed: …suffix. Nothing is inferred when those fields are absent, which is the case for most persisted rewards today.skill_executionandskill_efficiencychecks now readsCheck `name` did not pass; no reason was recorded.evidence_unavailable_reasonin its JSON. The CLI rendersevidence: unavailable — …and the HTML evidence card rendersEvidence unavailable — ….docs/reports.mdxdescribes the reason format and the evidence-unavailable line.Verification
make lint(ruff check and format on the changed files)make test(focused reporting/tier3 suites)make buildRelease Impact
CHANGELOG.md