Repository navigation
fix(reporting): show the evidence that decided the BENCHMARK.md verdict - #524
Merged
Merged
Conversation
The full report declared `Overall verdict: PASS — Recommended for publication` with nothing that explained the decision. A reader could see an agent with no dimension scores and another agent below the documented 40% FAIL boundary and had no way to tell why the gate still passed (issue #192). The card now renders a "Why This Verdict" block under the verdict callout: the rule that fired, the Tier 3 evidence state with its publication policy, each blocking reason, and a per-agent table of what the dimension gate actually read — which agent passed every dimension, which dimension fell below the FAIL or PASS boundary, and which agent the gate did not count, naming the excluded arm when the run recorded one. `agent_eval_dimension_verdict` is now a fold of a new `agent_eval_dimension_breakdown`, and the block is rendered from that breakdown and from the same `PublicationAssessment` the printed status is projected from, so the explanation cannot drift from the verdict. Agent names and recorded reasons go through the existing publication-safety helpers. No verdict changes. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
rng1995
requested review from
chrisknvidia,
mosheabr and
rmalani-nv
as code owners
November 13, 2026 21:04
rng1995
commented
Nov 13, 2026
rng1995
left a comment
Collaborator
Author
There was a problem hiding this comment.
Found two correctness issues in the new verdict explanation. I am addressing both and will resolve these threads after regression tests pass.
Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Finishes the last open code item on #192.
The maintainer's triage sorted that issue into four items. Three are done — the 1.6.0 gate fix, the 1.7.1
Excluded — <reason>label, and #507's token-row validation and security false positives. This is the fourth, in the maintainer's words: "The report still needs to show the evidence that actually decided the verdict."The complaint
The reporter's
BENCHMARK.mddeclaredOverall verdict: PASS — Recommended for publicationwhile Claude Code had no dimension scores at all and Codex Security sat at 23.8%, below the documented 40% FAIL boundary. Everything the report offered by way of explanation was the banner itself:There was no way to tell whether PASS was right and the reader had misunderstood the rule, or whether the gate was broken.
What the report says now
A
### Why This Verdictblock is rendered directly beneath the callout on the full-report path. For the issue's own shape:diffof the card before and after is exactly this inserted block — no number, verdict or other line moved.FAIL lists its blocking reason and omits the "does not overturn" line; NEUTRAL names the dimension that sits between the boundaries; INCOMPLETE lists every recorded reason; a skipped Tier 3 says so. An agent held out with a recorded reason renders it, e.g.
… (baseline unavailable (0 of 24 attempts scored)), which is precisely the information whose absence confused the reporter.Why the explanation cannot drift from the verdict
A second, parallel explanation of a verdict is a latent lie: it agrees today and diverges the first time the gate changes. This takes the other route.
render_allcomputes_publication_assessment(...)once. The printed status is_assessment_status(assessment)and the explanation reads that same object. There is no second status computation.agent_eval_dimension_breakdown(...)— the same call, the same payload, the samerequire_baseline=Truethatassess_tier3_evidenceuses. The existingagent_eval_dimension_verdictis now a pure fold of that breakdown, so the table cannot show a classification the verdict did not use.test_rendered_explanation_never_contradicts_the_computed_verdictasserts over four payload mutations that the rendered decision equals_overall_status(...)and the callout.No verdict changes. The refactor was checked differentially against a verbatim copy of the pre-change
agent_eval_dimension_verdictover 40,000 randomized payloads — bothrequire_baselinevalues, malformed agent sets, missing dimensions, broken lifts, never-activated agents, not-applicable baselines — with 0 mismatches.Publication safety
BENCHMARK.mdis signed and published, and agent names are untrusted. Agent names go through_agent_display_labelthen_md_cell; reporter vocabulary through_trusted_md_cell; assessment and arm reasons through_publication_safe_inlinewith private-label redaction threaded through.test_untrusted_agent_identity_cannot_inject_markdown_structureproves a|-bearing agent name cannot open a column or a section. The block deliberately avoids the stringOverall verdict:so the publication gate's duplicate-verdict-field check still sees exactly one.Tests
tests/reporting/test_verdict_evidence.pyis new (14 tests). Both golden cards are regenerated. The new tests plus the full golden suite: 253 passed.ruff checkclean; CHANGELOG under## Unreleasedonly with zero deletions from released sections.Three failures in the wider reporting selection are pre-existing and fail identically on a clean
main: two areModuleNotFoundError: No module named 'harbor.agents.agent_auth_resolution'and one is Harbor environment kwarg contract drift — all three are the shared venv's Harbor version not matching the tree.One thing worth a reviewer's eye
In the regenerated
benchmark_failgolden, both agents render as "not counted". That is accurate: the fixture sets per-dimension baselines and lifts but leaves a stale agent-levelliftfrom the pass fixture, so the gate genuinely reads nothing from either agent and the FAIL comes from the Tier 1 HIGH finding. It is a pre-existing fixture inconsistency that this block makes visible rather than a behaviour change — but it is worth deciding whether to repair the fixture separately.Scope
This does not close #192. The remaining item is operational and outside this repository: re-running NVSkills CI on a current release and regenerating
BENCHMARK.mdandskill.oms.sigfor the NVFlare skill.🤖 Generated with Claude Code