Repository navigation
fix(quality): report the 5,000-token skill budget as advisory - #272
Merged
Merged
Conversation
The quality check treats 5,000 tokens as the recommended SKILL.md budget, but it deducted for exceeding it with severity "error", which maps to a HIGH finding. A HIGH quality finding fails the result, so a skill just over the budget failed quality-check, validate and tier1 even when its quality score was above --min-score. Report the over-budget finding as MEDIUM instead. The message, suggestion and 15-point Efficiency deduction are unchanged, so a large skill still fails when its score falls below the minimum. Document the behavior in the Tier 1 quality section and add a changelog entry. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
rng1995
requested review from
chrisknvidia,
mosheabr and
rmalani-nv
as code owners
October 30, 2026 18:55
rng1995
commented
Oct 30, 2026
rng1995
left a comment
Collaborator
Author
There was a problem hiding this comment.
Review summary: no findings (no P1/P2/P3).
Checked: the 'warning' deduction maps to MEDIUM and the 15-point Efficiency deduction is unchanged, so a large SKILL.md can still fail --min-score. No other source, test or doc still describes the large-skill finding as HIGH. The tier1-validation.mdx text and the CHANGELOG entry (Unreleased / Fixed) are accurate.
Local verification (head 500da0b): ruff check clean; pytest tests/validators/test_quality_score.py tests/test_quality_policy_gate.py tests/ci: 760 passed, 2 skipped.
Reviewed with Claude Code.
chrisknvidia
force-pushed
the
naren/port-large-skill-advisory
branch
from
October 30, 2026 22:25
500da0b to
62d9648
Compare
This was referenced Nov 2, 2026
2 tasks done
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.
Summary
SKILL.mdover the recommended 5,000-token budget as a MEDIUMquality_efficiencyfinding instead of a HIGH one. The message, suggestion, and 15-point Efficiency deduction are unchanged.docs/tier1-validation.mdxnow says the 5,000-token budget is a recommendation: going over it gives a MEDIUM finding and a 15-point deduction, and the lower score can still fail--min-score.Why
The 5,000-token value is a recommendation (
QUALITY_RECOMMENDED_MAX_TOKENS, and the finding text itself says "recommended max"), but the check deducted with severityerror, which maps to HIGH. A HIGH quality finding fails the result, so a skill just over the budget failedquality-check,validate, andtier1even when its quality score was well above--min-score.Reproduced on
mainwith a well-formed skill whoseSKILL.mdis about 5,500 tokens and has a score above 70:skillevaluator quality-check <skill>QUALITY — Large skill ...listed as failedskillevaluator validate <skill> --tiers 1 --checks quality --no-llmmediumquality_efficiencyfindingUsers who want to block on large skills can still do so through
--min-score, because the deduction still applies.Kept from public
>5000recommendation (no separate 6,000-token tier), and the 15-point deduction are unchanged.--min-scoregate and its policy-override hardening (tests/test_quality_policy_gate.py) are untouched: a large skill whose score falls below the minimum still fails, and policy overrides still cannot waive it.pii_patterns.yamlalready documents. This PR does not add an organization-name allowlist for author labels.Tests
tests/validators/test_quality_score.py:test_large_skill_is_high_severityis nowtest_large_skill_is_advisory. It asserts MEDIUM severity and that the result passes with no gate failures atmin_score=0.test_above_6000_tokens_uses_same_5000_recommendationasserts MEDIUM and keeps thededuction == 15check. Both tests fail on unmodifiedmain.pytest tests/validators tests/reporting tests/cli tests/ci tests/test_cli.py tests/test_quality_policy_gate.py tests/test_quality_config.py tests/test_oss_packaging.py tests/test_ci_change_classifier.py: 4518 passed, 3 skipped. This includes the Tier 1 CI runner tests (tests/ci/test_run_tier1.py) andtests/reporting/test_quality_gate_reports.py.pytest tests/golden tests/models tests/test_commands.py tests/test_checks_routing.py tests/test_plugin_inventory.py tests/test_plugin_context_cost.py tests/test_oss_boundary.py tests/test_oss_source_hygiene.py tests/test_ci_workflows.py: 584 passed.ruff checkpasses on the changed Python files.ruff format --checkreports a formatting difference intests/validators/test_quality_score.py, but it is in lines this PR does not touch, andmainhas the same difference.scripts/check_oss_boundary.py: passed.🤖 Generated with Claude Code