Skip to content

Stop quality-check penalizing skills written in Russian or Chinese - #885

Merged
rng1995 merged 33 commits into
mainfrom
fix/quality-check-language-neutral
Nov 30, 2026
Merged

rng1995 merged 33 commits into
mainfrom
fix/quality-check-language-neutral

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

quality-check matched English markers only, so a well-formed skill written in another language lost points for wording it did have. A Russian SKILL.md whose description says «Используй для …» and whose troubleshooting section documents failures lost 20 points:

  • "Description doesn't mention WHEN to use this skill" (-10): the trigger-word list was hardcoded in quality_score.py, so --quality-config could not change it.
  • "No mention of error handling or validation" (-10): the packaged error terms were English-only.

Expected headings (## Prerequisites, ## Limitations, ## Troubleshooting) accepted only English text as well.

Changes

  • Every hardcoded word list moves from quality_score.py into quality-default.yaml: trigger words, vague words, person phrases, broad-description terms and negatives, action verbs, buzzwords, resource-documentation terms and the ## Purpose heading. --quality-config can replace any of them, and points: 0 turns a rule off, as for the existing rules.
  • The packaged lists, the error-handling terms and the expected-heading alternatives now cover English, Russian and Chinese. No language detection: every list applies to every skill.
  • Matching: a term in a script written without spaces between words (Chinese, kana) matches anywhere in the text; English and Russian terms still match whole words only, now with Unicode-aware boundaries, so for does not match inside платформа.
  • The config loader validates the new keys (unknown keys, empty or duplicate lists, non-heading entries and out-of-range numbers are usage errors, as before).
  • Docs (tier1-reference, metrics-reference, cli-reference) and CHANGELOG updated.

When no configured non-English or custom section applies to a rule, ## Instructions and ## Usage retain their legacy literal heading lookup. When a configured nonlegacy section also applies, an exact top-level English heading can still take precedence in configuration order. Its body then uses parsed Markdown section boundaries, including a following top-level H1. Parsed instruction sections count ordered and unordered Markdown lists for the list-format check. Raw HTML <ol> and <ul> blocks receive no list credit. Legacy literal-only sections retain the original marker check. Markdown example recognition and Unicode word boundaries can change scores on some inputs. The has_instructions and has_examples metrics can change with Markdown section detection.

Tests

  • New tests/validators/test_quality_score_languages.py: Russian and Chinese skills keep the trigger-word, error-handling and heading points; English terms stay whole-word; Chinese terms match inside running text.
  • tests/test_quality_config.py: the packaged YAML round-trips with every new key, overlays replace individual lists, and invalid values are rejected.
  • Quality, config, docs-reference and packaging suites: 637 passed locally.

Fixes #865

quality-check matched English markers only, so a well-formed skill in
another language lost points for wording it did have. A Russian
SKILL.md whose description says when to use it and whose
troubleshooting section documents failures lost 20 points: the
trigger-word list was hardcoded in quality_score.py and the
error-handling terms and expected headings were English-only.

Move every hardcoded word list (trigger words, vague words, person
phrases, broad-description terms and negatives, action verbs,
buzzwords, resource-documentation terms and the Purpose heading) into
quality-default.yaml, where --quality-config can replace any of them
and points: 0 turns a rule off. The packaged lists, the error-handling
terms and the expected headings now cover English, Russian and Chinese.
No language detection takes place; every list applies to every skill.

A term in a script written without spaces between words, such as
Chinese, matches anywhere in the text. English and Russian terms still
match whole words only, now with Unicode-aware boundaries.

Refs #865

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>

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

[SkillEvaluator Review]

Thanks @chrisknvidia for this contribution.

Value and readiness: The configurable EN/RU/ZH rubric supports the linked feature request. The new heading parser changes scores for some English skills, and an action-verb heading override controls the separate list-format deduction. Review both behavior changes with PIC. CHANGELOG.md conflicts. Please address the findings below before final review.

Material findings: 2 P2

  • P2 Preserve English instruction scoring (src/skillevaluator/validators/quality_score.py:451)
  • P2 Keep the list-format deduction independent (src/skillevaluator/validators/quality_score.py:449)

PIC tradeoffs: Agree on whether the English scoring changes and shared setting are intended.

Verification and gaps: Inspected the current diff and related code, tests, and GitHub checks. CI: Green. No local contributor execution.

Reviewed head: be7260828cf9de07fe743b6d9a1dd55c992b700e

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

[SkillEvaluator Review]

Thanks @chrisknvidia for this contribution.

Value and readiness: Valuable and mostly sound: the Russian case from #865 and a Chinese equivalent each score 98.2, matching the English equivalent; 17 of the 27 new language tests fail on base source; regex injection through --quality-config is closed; matching is linear (a 220 KB skill takes 0.28 s versus 0.06 s on base). Not ready (draft): both of my earlier P2 threads are unfixed, there is one new P2, the branch conflicts with main in CHANGELOG.md, and the PR text says English scoring is unchanged while it is not.
Prior findings: 0 of 2 earlier threads fixed. quality_score.py:451 (rng1995, P2): ## Instructions ## and a heading with trailing spaces now drop an English skill from 98.2 to 95.2, and a PR test pins the new behavior; quality_score.py:449 (rng1995, P2): headings: ['## Steps'] lets prose under ## Instructions skip the list-format check, and points: 0 still leaves the list-format deduction, because the one action_verbs.headings setting drives both.
Material findings: 7 inline: P2 src/skillevaluator/config/quality-default.yaml:56 Russian error and action-verb lists miss common inflected forms; P3 src/skillevaluator/validators/quality_score.py:205 No Unicode normalization: decomposed Cyrillic text misses every term; P3 src/skillevaluator/validators/quality_score.py:190 A Latin term next to Chinese text has no boundary and never matches; P3 src/skillevaluator/config/quality-default.yaml:105 Description length thresholds are still counted in characters for Chinese; P3 src/skillevaluator/config/quality-default.yaml:37 Common Chinese section headings are not in the packaged alternatives; P3 CHANGELOG.md:9 CHANGELOG entry omits the digest change, new keys and heading-recognition effect; P3 docs/cli-reference.mdx:155 Bundled skill reference still lists the old quality-config rule groups.
PIC tradeoffs: English scores now change for headings the Markdown parser recognizes but the old literal split did not (## Instructions ##, trailing spaces, headings in code fences) and for has_instructions: across 65 skills, base versus head, 54 were identical, 3 changed score (-3.0, -3.0, -2.5) and 8 flipped has_instructions or has_examples; accented-word descriptions also lose the trigger-word match because for no longer matches inside forêt. Whether that is acceptable, and whether action_verbs.headings should be split from the list-format check, is the maintainers' call. One shared English, Russian and Chinese vocabulary applies to every skill without language detection, so an English-only grader must replace about twenty lists; whole-word matching for an inflected language (Russian) versus stem or prefix matching is a design choice.
Verification and gaps: Read the full delta (quality_score.py, markdown.py, quality_config.py, quality-default.yaml, docs, tests); ran the PR's own tests plus neighbours (597 passed) in a scrubbed environment and ruff check and format on the changed files (clean); 654 tests pass on the auto-merged tree; CI is green (25 contexts). The only conflict with main is CHANGELOG.md: the entry belongs under ## Unreleased > ### Fixed (main's Unreleased already has one, so the PR's own header would duplicate it), or ### Changed if the English scoring change is accepted. I did not push a merge to this draft. Not verified: the full suite, and Windows and Python 3.13/3.14 (CI covers them).

Reviewed head: be7260828cf9de07fe743b6d9a1dd55c992b700e

Comment thread CHANGELOG.md Resolved
Comment thread docs/cli-reference.mdx Resolved
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Evaluation run

SkillEvaluator CI results

Required gate: Passed

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
skills/skillevaluator PASSED · 5 issues · Missing recommended section: '## Instructions' 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: bbed8b182a0a39129ac3ab72307cb7ea6ee26d91 · Environment: docker

Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
@rng1995
rng1995 marked this pull request as ready for review November 28, 2026 14:06
devin-ai-integration[bot]

This comment was marked as resolved.

Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
@rng1995

rng1995 commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

/nvskills-ci

svc-nvskills-signing and others added 2 commits November 28, 2026 14:41
Signed-off-by: nvskills-svc-account <svc-nvskills-signing@nvidia.com>
Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
(cherry picked from commit 67960794fd310569aec3d32a7c54a73ca545173f)
devin-ai-integration[bot]

This comment was marked as resolved.

Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
@rng1995

rng1995 commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

/nvskills-ci

Signed-off-by: nvskills-svc-account <svc-nvskills-signing@nvidia.com>
devin-ai-integration[bot]

This comment was marked as resolved.

rng1995 and others added 3 commits November 29, 2026 18:38
Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
…ns apply

Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
devin-ai-integration[bot]

This comment was marked as resolved.

Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
@rng1995

rng1995 commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

/nvskills-ci

devin-ai-integration[bot]

This comment was marked as resolved.

Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
devin-ai-integration[bot]

This comment was marked as resolved.

rng1995 and others added 2 commits November 29, 2026 21:11
Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
Signed-off-by: nvskills-svc-account <svc-nvskills-signing@nvidia.com>
devin-ai-integration[bot]

This comment was marked as resolved.

Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>

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

Thanks @chrisknvidia for this contribution.

[SkillEvaluator Review]

Value and readiness

Configurable vocabulary and headings reduce false deductions on multilingual skills. The focused regressions cover mixed-language instruction boundaries and Markdown list scoring, and the bundled benchmark now records the evaluated source, actual Tier 3 run, and replay options. Ready for final review by the maintainers and PIC.

Prior findings

All review threads are resolved. I verified the heading and list behavior and the signed publisher output.

Material findings

None.

PIC tradeoffs

The documented mixed-language heading and list rules can change deductions for those documents.

Verification

Required GitHub checks, enriched Tier 1, and full NVSkills validation passed. The separate, nonrequired GitHub paid Tier 3 job was still running at review time. 1,589 focused tests passed with four skips on the signed source and test tree. The final docs passed Fern with one redirects warning. All 14 signed file hashes match and the publication scan passed.

Reviewed head 4e1964b5a14e9a458277b91b13beb48daeb3eb94.

Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
@rng1995

rng1995 commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

/nvskills-ci

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 new potential issues.

🐛 2 issues in files not directly in the diff

🐛 Skill package fails signature verification

The signed resources manifest lists stale hashes for the skill instructions, evaluation dataset, and Tier 1 command reference. Verifiers reject the package because those three files no longer match the signature.


⚠️ Publication verdict for different skill contents

The benchmark and skill card recommend publication using results from a different skill tree. The recorded source digest does not match publication_source_digest for the shipped skill.

Devin Review

Signed-off-by: nvskills-svc-account <svc-nvskills-signing@nvidia.com>

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

Thanks @chrisknvidia for this contribution.

[SkillEvaluator Review]

Value and readiness

The multilingual quality checks preserve the documented instruction and list scoring behavior. The parent merge preserves both sets of authored skill changes, and the freshly evaluated benchmark and signature match the combined skill. Ready for final review by the maintainers and PIC.

Prior findings

All review threads are resolved. Their previously verified fixes remain present on this head.

Material findings

None.

PIC tradeoffs

None outstanding.

Verification

The conflict resolution retained both authored changes and the publisher regenerated, signed, and verified the benchmark and skill card. I checked the signed resource hashes, replay metadata, public benchmark scan, the merge against main, and current-head required GitHub checks and NVSkills validation.

Reviewed head bbed8b182a0a39129ac3ab72307cb7ea6ee26d91.

@rng1995
rng1995 merged commit b6eebe5 into main Nov 30, 2026
34 checks passed
@rng1995
rng1995 deleted the fix/quality-check-language-neutral branch November 30, 2026 05:31
@rng1995 rng1995 mentioned this pull request Nov 30, 2026
8 tasks done
westonplatter added a commit to westonplatter/SkillEvaluator that referenced this pull request Nov 30, 2026
Re-check the plan against NVIDIA/SkillEvaluator main at 38cb609. Thirteen
of the 33 rows moved upstream in NVIDIA#885 (R2, R4, R5, R8-R12, R15, R24, R27,
R29, R30); twenty remain. Show the upstream key for each moved row, record
that D4 and D5 are settled and D2 and D3 are settled for R29, mark the
claude/quality-config-efficiency branch obsolete, drop Global Constraint 3
(upstream added headings settings), and refresh the follow-up list.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Weston Platter <westonplatter@gmail.com>
westonplatter added a commit to westonplatter/SkillEvaluator that referenced this pull request Dec 1, 2026
Re-check the plan against NVIDIA/SkillEvaluator main at 38cb609. Thirteen
of the 33 rows moved upstream in NVIDIA#885 (R2, R4, R5, R8-R12, R15, R24, R27,
R29, R30); twenty remain. Show the upstream key for each moved row, record
that D4 and D5 are settled and D2 and D3 are settled for R29, mark the
claude/quality-config-efficiency branch obsolete, drop Global Constraint 3
(upstream added headings settings), and refresh the follow-up list.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Weston Platter <westonplatter@gmail.com>
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.

quality-check penalizes non-English skills: trigger words, error terms and expected headers are English-only

3 participants