Repository navigation
fix(reporting): let default Tier 3 runs with a baseline pass publication - #332
Conversation
Since NVIDIA#258 the no-skill baseline records skill_execution and skill_efficiency as not applicable, so it has no Discoverability or Efficiency baseline and the agent lift only covers the other three dimensions. The publication check still wanted a baseline for all five dimensions and compared the lift with the five-dimension score, so a default run with a baseline that should have been PASS or NEUTRAL came out INCOMPLETE in BENCHMARK.md. A dimension can now go without a baseline only when the baseline recorded all of its metrics as not applicable and the dimension carries no lift, and the agent lift is checked over the dimensions both arms scored. Anything else that's missing or doesn't add up still fails closed. Signed-off-by: Saibernard Yogendran <[email protected]>
1c95a2f to
8cc3692
Compare
rng1995
left a comment
There was a problem hiding this comment.
Automated review: 3 findings (0 P1, 2 P2, 1 P3); 3 posted inline.
The gate change itself holds up. I re-ran the new tests at 8cc3692 (they pass), and the four rejection cases fail closed as intended. A trial merge with current main conflicts only in CHANGELOG.md. base.py, benchmark.py and the test file have not changed on main since this PR's base, so the findings below still apply after a rebase.
Not approving yet: both P2s are about what the card says once it reaches PASS. Rendering the card from _collected_default_run gives:
| Overall | 65.0% → 93.0% (+28.0 points) |
| Discoverability | 100.0% — baseline not run; uplift unavailable |
| Efficiency | 90.0% — baseline not run; uplift unavailable |
Before this PR these cards were INCOMPLETE. With it, they pass the publication gate and the check_public_benchmarks linter with these rows.
chrisknvidia
left a comment
There was a problem hiding this comment.
Reviewed. The direction is right: a baseline that recorded both skill metrics as not applicable has no Discoverability or Efficiency baseline, so the gate should check the lift only over the dimensions both arms scored. Building the fixture from real verifier output through collect_harbor_results and build_agent_eval_payload is a good end-to-end test.
The three open threads look like the remaining work before this can merge, and I agree with all three:
- The card's Overall row still shows the five-dimension with-skill score against the three-dimension baseline (+28.0 points), while the gate now accepts the +26.7-point lift, so the PASS card and the gate disagree.
- Discoverability and Efficiency rows on that PASS card print "baseline not run", although the baseline ran and recorded those metrics as not applicable.
- The exemption accepts any N/A-eligible metric, not just
skill_executionandskill_efficiency, so a baseline-only N/A onaccuracy,goal_accuracyorbehavior_checkwould also pass the gate.
The branch also conflicts with main now, so it needs main merged in before CI can run on the final head.
Resolve the CHANGELOG.md conflict by keeping main's entries and this PR's entry. Signed-off-by: Christopher Kevin <[email protected]>
The publication check let a dimension go without a baseline whenever the baseline recorded all of its metrics as not applicable. That list also has accuracy, goal_accuracy and behavior_check, which are only not applicable when a case has no reference to judge against, and that holds for both arms. So a payload with accuracy marked that way in the baseline alone passed, with Correctness left out of the lift. Only skill_execution and skill_efficiency qualify now, the two a baseline without the skill can't score. The check moves into a helper so the card renderer can use the same rule. Signed-off-by: Saibernard Yogendran <[email protected]>
…n't score A baseline that ran has no Discoverability or Efficiency score, because it has no skill to discover or route to. The card printed those rows as "baseline not run; uplift unavailable", which was only ever seen on cards that could not pass. Now that such a card can pass, that text tells a reader the comparison was skipped when it wasn't. Those rows say "baseline N/A (no skill in the baseline arm)", from the same rule the publication check uses. A baseline that really did not run keeps the old text. Signed-off-by: Saibernard Yogendran <[email protected]>
… scored The publication check accepts the lift as the with-skill score over the dimensions the baseline scored, minus the baseline. The card's Overall row still used the five-dimension with-skill score, so a card that now passes printed 65.0% → 93.0% (+28.0 points) while the recorded lift was +26.7. When the baseline recorded dimensions as not applicable and the lift is that comparison, the Overall row shows the same two scores, 65.0% → 91.7% (+26.7 points), and a note under the table says what it covers. In every other case the row is unchanged. Signed-off-by: Saibernard Yogendran <[email protected]>
Resolve the CHANGELOG.md conflict by keeping main's entry and this PR's entry. Signed-off-by: Saibernard Yogendran <[email protected]>
|
Fixed everything. The Overall row now compares both arms on the dimensions the baseline scored, so the card from the test shows 65.0% → 91.7% (+26.7 points), the same lift the gate checks, and there's a note under the table saying what it covers. It only switches when the recorded lift is that comparison, so every other card keeps the row it had. Discoverability and Efficiency say baseline N/A (no skill in the baseline arm) now. A baseline that really didn't run still says baseline not run. The exemption is limited to skill_execution and skill_efficiency. The accuracy case from the review is in the test, it passed the gate before and is rejected now. One thing to flag. #373 changes the same Overall row and ends up with the same numbers for this card, and #376 touches the cells next to it, so whichever lands later needs a small merge in benchmark.py. If that's this one I'll redo it on top of them. I merged main again for the CHANGELOG conflict. @chrisknvidia @rng1995 the workflows on the new head are waiting for approval, could one of you approve them so CI can run? |
NVIDIA#373 now builds the Overall row from the lift_overall pair, which for a baseline without the skill is the same comparison over the dimensions the baseline scored, 65.0% → 91.7% (+26.7 points) for the run in the test. Resolve the conflict by keeping main's row and note, drop this branch's own Overall helper and note, and check main's note in the test. Keep both CHANGELOG entries, with the Overall sentence left to Signed-off-by: Saibernard Yogendran <[email protected]> NVIDIA#373's.
NVIDIA#376 moved the dimension cells into _dimension_cell and added a baseline-only case to the same functions this branch changed. Keep both: the baseline-only text from main, and the baseline N/A text for a dimension a no-skill baseline can't score, now checked inside _dimension_cell. NVIDIA#395 fails a case whose goal accuracy is below 1.0, so the default-run fixture in the test scores the with-skill goal accuracy 1.0 and behavior check 0.8. The five-dimension and three-dimension scores still differ, 0.94 and 0.9333, and the expected lift and the two rejection cases move with them. Signed-off-by: Saibernard Yogendran <[email protected]>
Signed-off-by: Saibernard Yogendran <[email protected]>
|
#373, #376 and #395 landed, so I merged main. #373's Overall row does the same thing mine did, so I dropped mine and kept #373's. This PR is just the gate and the two baseline N/A rows now. I also set goal accuracy to 1.0 in the test fixture since #395 fails a case below that. @chrisknvidia @rng1995 could one of you approve the workflow runs for the new head? |
Looks good to me! |
Summary
Since #258 a default Tier 3 run with a baseline can't get a PASS on BENCHMARK.md. Even when all five dimensions pass, the card says INCOMPLETE, and a run that should be NEUTRAL comes out INCOMPLETE too. This is in 0.7.0 and 0.7.1.
The no-skill baseline now records skill_execution and skill_efficiency as not applicable, so Discoverability and Efficiency have no baseline and the agent lift only covers the other three dimensions. The publication check still wanted all five baselines and compared the lift with the five-dimension score, so it treated every one of those cards as missing evidence.
With this change Discoverability and Efficiency can go without a baseline when the baseline recorded skill_execution and skill_efficiency as not applicable and the dimension has no lift, and the lift is checked over the dimensions both arms scored, which is how the collector computes it. No other metric gets that exemption, and anything else that's missing or doesn't add up still comes out INCOMPLETE.
On the card those two rows say baseline N/A instead of baseline not run. The Overall row comes from #373 and shows the lift the check accepted, 65.0% → 93.3% (+28.3 points) for the run in the test.
To check it I put together a Tier 3 result for the calculator reference skill from verifier output for both arms and ran skillevaluator validate on it. On main the Tier 3 row and the card say INCOMPLETE, with this change they say PASS, and a run that should fail still fails.
Verification
make lintmake testmake buildOn my Mac make test has 42 failures that fail the same way on main (the Docker and Windows transfer tests, and the custom grader script, which runs under the system Python 3.9 here), and one Windows transfer test hangs, so I ran it with that test deselected.
Release Impact
CHANGELOG.md