Skip to content

feat(tier3): write deductions as plain-language reasons with evidence - #399

Merged
chrisknvidia merged 11 commits into
mainfrom
feat/christopherk/plain-language-deductions
Nov 10, 2026
Merged

chrisknvidia merged 11 commits into
mainfrom
feat/christopherk/plain-language-deductions

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

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 map to sentences kept next to _ACCURACY_CRITERIA, for example The answer's facts do not match the expected answer (criterion FACTUALLY_ACCURATE). Unknown keys read Criterion KEY was not met. Excluded criteria stay excluded.
  • If a trial's details already carry the expected answer and the agent's final answer, accuracy and goal deductions get a bounded Expected: …; observed: … suffix. Nothing is inferred when those fields are absent, which is the case for most persisted rewards today.
  • The fallback for skill_execution and skill_efficiency checks now reads Check `name` did not pass; no reason was recorded.
  • A non-passing finding with no resolvable evidence references records evidence_unavailable_reason in its JSON. The CLI renders evidence: unavailable — … and the HTML evidence card renders Evidence unavailable — ….
  • docs/reports.mdx describes the reason format and the evidence-unavailable line.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran make lint (ruff check and format on the changed files)
  • Ran make test (focused reporting/tier3 suites)
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Release Impact

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

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

Comment thread src/skillevaluator/reporting/html.py Resolved
@github-actions

github-actions Bot commented Nov 9, 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: 06328649eceac4d73846c4eb68542cb13b6e39c9 · Environment: docker

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

…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]>
@chrisknvidia
chrisknvidia merged commit 9feffaa into main Nov 10, 2026
22 checks passed
@chrisknvidia
chrisknvidia deleted the feat/christopherk/plain-language-deductions branch November 10, 2026 08:05
rng1995 added a commit that referenced this pull request Nov 11, 2026
…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]>
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