Skip to content

fix(quality): keep minimum score failures after policy changes - #211

Merged
rng1995 merged 4 commits into
NVIDIA:mainfrom
YMuskrat:fix/quality-minimum-policy
Oct 21, 2026
Merged

rng1995 merged 4 commits into
NVIDIA:mainfrom
YMuskrat:fix/quality-minimum-policy

Conversation

@YMuskrat

@YMuskrat YMuskrat commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Fix quality checks passing below the minimum score

A skill scoring 67.8/100 could return PASS with --min-score 70, just by changing its efficiency findings from LOW to MEDIUM.

The issue was in apply_policy() and ValidationResult.recalculate_from_findings(). A severity change rebuilt pass/fail from the findings and dropped the minimum-score failure set by QualityScoreValidator. The score stayed the same, but the result changed from FAIL to PASS.

This PR keeps minimum-score failures separate from finding severities so they survive policy changes and merged results. Normal severity overrides still work. Added regression tests and a changelog entry.

All 9 new regression tests, lint and build pass. Full-suite validation remains incomplete locally because external API access was blocked.

@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: 2 findings (0 P1, 0 P2, 2 P3); 2 posted inline.

Comment thread tests/test_quality_policy_gate.py Resolved
Surface gate failures in the default terminal view, Tier 1 HTML,
BENCHMARK.md, and JSON. Normalize ANSI output in the CLI regression
test and cover reporter visibility, escaping, redaction, and limits.

Signed-off-by: YMuskrat <[email protected]>
Keep the quality gate and reporting fixes while incorporating the
current main branch and its performance dashboard changes.

Signed-off-by: YMuskrat <[email protected]>
@rng1995

rng1995 commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

@YMuskrat thanks. Both findings are fixed at 4cb5cef, and I resolved the threads. The minimum-score message now appears in the terminal view, HTML, BENCHMARK.md and JSON (gate_failures), and the CLI test passes with FORCE_COLOR=1. #209 has since merged into main, and this branch now conflicts with it in CHANGELOG.md only. Could you merge main and keep both entries under ### Fixed?

@rng1995

rng1995 commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

@YMuskrat I have the merge with current main (including #209) ready for this branch, with conflicts resolved and tests passing, but I can't push it: "Allow edits by maintainers" is off for this PR. Could you tick that box in the PR sidebar? I'll push the merge straight away. If you'd rather keep it off, merge main yourself and I'll re-check.

@YMuskrat

Copy link
Copy Markdown
Contributor Author

@rng1995 I've enabled maintainer edits on this PR, so you can push the prepared merge from main. Thanks!

Conflicted file:
- CHANGELOG.md: main released 0.6.0 and moved the earlier Unreleased
  entries into that section. Kept main's 0.6.0 section unchanged and
  moved this branch's quality-score threshold entry under a new
  ### Fixed heading in ## Unreleased.

No code conflicts. benchmark.py, console_ui.py and report.html.j2
merged automatically.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

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

Approving at 4cb5cef. Both earlier findings are still fixed, and I found nothing new.

I also checked this branch against current main (3728e2f). Every caller of recalculate_from_findings still goes through this PR's version, and merge / merge_with_prefix carry gate_failures. Main's Tier 3 additions since the branch point do not rebuild Tier 1 pass/fail.

On a trial merge, a policy run on the 67.8-point fixture still exits 1 and shows the minimum-score message in the terminal, JSON, HTML, Markdown and BENCHMARK.md. The two PR test files pass, also with FORCE_COLOR=1, and tests/reporting plus tests/validators pass.

The branch still conflicts with main in CHANGELOG.md. Main has released 0.6.0, so the entry belongs under a new ### Fixed heading in ## Unreleased.

@rng1995
rng1995 enabled auto-merge October 21, 2026 13:56
@rng1995
rng1995 merged commit 2085a03 into NVIDIA:main Oct 21, 2026
17 checks passed
rng1995 added a commit that referenced this pull request Oct 22, 2026
Conflicts:
- CHANGELOG.md: main (#211) added an Unreleased ### Fixed entry next to the
  PR's Unreleased ### Added entry. Kept both, Added before Fixed; the 0.6.0
  section is unchanged from main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995 added a commit that referenced this pull request Oct 22, 2026
Conflicted file:
- CHANGELOG.md: kept both Unreleased entries, this branch's ### Changed
  docs entry before main's ### Fixed quality-gate entry (#211).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995 added a commit that referenced this pull request Oct 22, 2026
Merge main 2085a03 (#211 quality minimum-score gate failures).

Conflicts:
- CHANGELOG.md: both sides added the first entry under ## Unreleased.
  Kept the PR's error-code entry under ### Added, then main's
  minimum-score gate entry under ### Fixed.

#211's gate failures are static-validation results, not Tier 3
evaluator execution failures, so they take no error code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995 added a commit that referenced this pull request Oct 22, 2026
Brings in main up to 2085a03: #211 quality minimum-score gate failures.

Conflicts:
- CHANGELOG.md: main's Fixed entry (quality-score gate kept through
  policy overrides) goes first under the branch's Unreleased Fixed
  heading; released sections are identical to main.
- src/skillevaluator/models/result.py: kept the branch's keep_legacy
  rebuild and main's gate failures. A rebuild lists each gate failure
  once, first, and appends it directly, so apply_policy's keep_legacy
  rebuild neither duplicates it nor records it again as a legacy error.
- src/skillevaluator/reporting/benchmark.py: Blocking Findings lists
  main's GATE rows first, then the branch's blocking findings in the
  remaining slots; gate rows follow the branch's required-gate rule
  (an advisory result never blocks), and the "more blocking finding(s)"
  line counts hidden gate rows too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995 added a commit that referenced this pull request Oct 22, 2026
Main's #211 BENCHMARK.md tests count the Blocking Findings bullets and
expect a MEDIUM finding of a gate-failed result there. On this branch the
section lists only findings that block (a MEDIUM blocks only through
fail_on_medium) and adds a count of rows it did not show.

- The "N more blocking finding(s)" count now follows the list as its own
  line instead of being one more bullet, so the bullets are exactly the
  rows shown (gate rows first, as on main).
- test_benchmark_lists_gate_before_findings uses a HIGH finding to check
  that the gate row comes first, and checks that the MEDIUM finding,
  which does not block, is not listed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995 added a commit that referenced this pull request Oct 22, 2026
Brings in main up to e253c41: #218 two-path quickstart and onboarding
docs, #220 Windows program dirs and Python UTF-8 mode for Harbor.

Conflicts:
- CHANGELOG.md: main's Changed entry (two first-run paths) goes first
  under the branch's Unreleased Changed heading, and main's Windows
  Fixed entry follows the #211 entry under Fixed, as on main. Released
  sections are identical to main.
- README.md: kept #218's text; the closing sentence on other artifact
  types now points plugins to Plugin Evaluation (1,099 of the 1,100-word
  budget).
- docs/quickstart.mdx: kept #218's structure. The "Add deduplication or
  live evaluation" table gains an "Evaluate an agent plugin" row, and the
  branch's note on plugin live evaluation (--tier3 or tier3
  evaluate-plugin) follows the table.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
@rng1995 rng1995 mentioned this pull request Oct 30, 2026
15 of 20 tasks
chrisknvidia pushed a commit that referenced this pull request Oct 30, 2026
* Keep quality score thresholds after policy changes
* Show independent quality gate failures across reports

Signed-off-by: YMuskrat <[email protected]>
chrisknvidia pushed a commit that referenced this pull request Oct 30, 2026
Merge main 2085a03 (#211 quality minimum-score gate failures).

Conflicts:
- CHANGELOG.md: both sides added the first entry under ## Unreleased.
  Kept the PR's error-code entry under ### Added, then main's
  minimum-score gate entry under ### Fixed.

#211's gate failures are static-validation results, not Tier 3
evaluator execution failures, so they take no error code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
chrisknvidia pushed a commit that referenced this pull request Oct 30, 2026
Conflicts:
- CHANGELOG.md: main (#211) added an Unreleased ### Fixed entry next to the
  PR's Unreleased ### Added entry. Kept both, Added before Fixed; the 0.6.0
  section is unchanged from main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
chrisknvidia pushed a commit that referenced this pull request Oct 30, 2026
Brings in main up to 2085a03: #211 quality minimum-score gate failures.

Conflicts:
- CHANGELOG.md: main's Fixed entry (quality-score gate kept through
  policy overrides) goes first under the branch's Unreleased Fixed
  heading; released sections are identical to main.
- src/skillevaluator/models/result.py: kept the branch's keep_legacy
  rebuild and main's gate failures. A rebuild lists each gate failure
  once, first, and appends it directly, so apply_policy's keep_legacy
  rebuild neither duplicates it nor records it again as a legacy error.
- src/skillevaluator/reporting/benchmark.py: Blocking Findings lists
  main's GATE rows first, then the branch's blocking findings in the
  remaining slots; gate rows follow the branch's required-gate rule
  (an advisory result never blocks), and the "more blocking finding(s)"
  line counts hidden gate rows too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
chrisknvidia pushed a commit that referenced this pull request Oct 30, 2026
Main's #211 BENCHMARK.md tests count the Blocking Findings bullets and
expect a MEDIUM finding of a gate-failed result there. On this branch the
section lists only findings that block (a MEDIUM blocks only through
fail_on_medium) and adds a count of rows it did not show.

- The "N more blocking finding(s)" count now follows the list as its own
  line instead of being one more bullet, so the bullets are exactly the
  rows shown (gate rows first, as on main).
- test_benchmark_lists_gate_before_findings uses a HIGH finding to check
  that the gate row comes first, and checks that the MEDIUM finding,
  which does not block, is not listed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
chrisknvidia pushed a commit that referenced this pull request Oct 30, 2026
Brings in main up to e253c41: #218 two-path quickstart and onboarding
docs, #220 Windows program dirs and Python UTF-8 mode for Harbor.

Conflicts:
- CHANGELOG.md: main's Changed entry (two first-run paths) goes first
  under the branch's Unreleased Changed heading, and main's Windows
  Fixed entry follows the #211 entry under Fixed, as on main. Released
  sections are identical to main.
- README.md: kept #218's text; the closing sentence on other artifact
  types now points plugins to Plugin Evaluation (1,099 of the 1,100-word
  budget).
- docs/quickstart.mdx: kept #218's structure. The "Add deduplication or
  live evaluation" table gains an "Evaluate an agent plugin" row, and the
  branch's note on plugin live evaluation (--tier3 or tier3
  evaluate-plugin) follows the table.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[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