Repository navigation
Conversation
Signed-off-by: Afloat <ShuffleMonkey@163.com>
Signed-off-by: Afloat <ShuffleMonkey@163.com>
chrisknvidia
left a comment
There was a problem hiding this comment.
I reproduced the problem on main: a directory with one healthy skill and one latin-1 encoded SKILL.md makes quality-check die with a UnicodeDecodeError traceback (exit 1, no report at all), and a chmod 000 manifest does the same with PermissionError. At this head the same directory reports [latin1] Cannot compute quality score for .../SKILL.md: could not read the UTF-8 manifest (...) as a gate failure, the healthy sibling keeps its score, the run still exits 1, and the aggregate only counts members that were actually scored. A SKILL.md that is a directory or a symlink loop never reaches the read and still goes down the existing "SKILL.md not found" path on both trees, so this change is limited to decode and OS errors on the manifest read, and the except clause is narrow rather than a catch-all. The other file reads in this validator (scripts, references) were already guarded, so the manifest read was the last unguarded one on the folder path.
The five new validator tests and the updated precommit test fail against main's source and pass here, also under Python 3.13. The precommit test change is a tightening (exact message, no numeric grade on the FAIL line, a regex on the PASS line) and the old catch-all path keeps coverage through the new monkeypatched RuntimeError test, so nothing was loosened. The quality, precommit, publication-evidence and reporting suites give the same results on both trees.
One wording nit inline on the new error message. I also tried a trial merge with #885, which edits the same file: the source merges automatically and only CHANGELOG conflicts.
CHANGELOG entry is under Unreleased / Fixed, the commits are signed off, CI is green and the branch merges cleanly into main. The entry sits on the same CHANGELOG line as several other open PRs, so whichever lands second will need a trivial rebase.
Signed-off-by: Afloat <ShuffleMonkey@163.com>
rng1995
left a comment
There was a problem hiding this comment.
Thanks @Afloat16 for this contribution.
[SkillEvaluator Review]
Value and readiness
Isolating failed manifest reads preserves healthy scores and the failed gate. Discovery-time disappearance still distorts the aggregate and needs action before final review by the maintainers and PIC.
Prior findings
The previous manifest diagnostic wording issue is fixed and its thread is already resolved.
Material findings
1 inline.
- exclude a discovered manifest that vanishes before lookup from the average at
src/skillevaluator/validators/quality_score.py:427.
PIC tradeoffs
None identified.
Verification
482 focused tests passed with two skips. All five added regression cases reproduced the issue against main. Independently reproduced the earlier disappearance window described below.
Reviewed head 3a82406152888bd296f22d832c8ead22a408d5f5.
|
Thanks @Afloat16 for this contribution. I prepared and verified a signed-off merge against main at Please enable Allow edits from maintainers in the PR sidebar so I can push the prepared merge. You can also merge main into this branch and keep the unreadable manifest scoring entry as a separate bullet under |
Signed-off-by: Afloat <ShuffleMonkey@163.com>
|
Merged current main in signed-off commit Validation of this exact merged source passed 468 passed, 6 skipped, 0 failed, whole-repository lint, OSS-boundary checks, wheel/sdist builds and final clean-source checks. The description now distinguishes these new focused results from the earlier complete-suite results. Fresh upstream workflows still await maintainer approval. The requested main sync is ready for your final review. |
Keep the missing-manifest failure without assigning the initial quality score. Cover actual deletion after catalog discovery, both beside a healthy skill and when every discovered manifest disappears. Signed-off-by: Afloat <ShuffleMonkey@163.com>
Resolve the changelog conflict by retaining all main entries and the separate unreadable-manifest entry. Quality implementation and regression files are unchanged from af9cb8f. Signed-off-by: Afloat <ShuffleMonkey@163.com>
chrisknvidia
left a comment
There was a problem hiding this comment.
Re-checked af9cb8f and 3a82406. Dropping the 100/A assignment from the missing-manifest branch covers the lost-after-discovery case and also the pre-existing directory and symlink-loop manifest cases, so those members are now excluded from the directory average instead of inflating it (on my probe a two-member directory went from 91.0/A to 82.0/B over the one readable member). Exit code and report keys are unchanged, and re-adding the removed line fails exactly the two new tests. Only thing left is the CHANGELOG conflict, which came back after main moved again.
Signed-off-by: Afloat <ShuffleMonkey@163.com>
Retain the pull request contribution and current upstream changes. Resolve the CHANGELOG conflict by preserving both sets of entries. Signed-off-by: Afloat <ShuffleMonkey@163.com>
Preserve the published 1.3.0 history and the new stable-CI release note, and place this pull request's change under Unreleased. Keep the reviewed source and test changes. Signed-off-by: Afloat <ShuffleMonkey@163.com>
Keep the published 1.3.1 release history and this pull request's change under Unreleased. The reviewed source and test changes are unchanged. Signed-off-by: Afloat <ShuffleMonkey@163.com>
Integrate main 9747bc1 while retaining the original contribution and its regression coverage. Keep the release note as a separate Unreleased Fixed bullet and preserve all main entries. Signed-off-by: Afloat <ShuffleMonkey@163.com>
|
@Afloat16 Please resolve merge conflicts and provide permission for me to merge your PR. |
Keep the contribution under Unreleased and retain the complete published release history. Signed-off-by: Afloat <ShuffleMonkey@163.com>
Current integration update — 2026-12-01
Source:
043edc9ee6215bd685cb62a9451a93eada3560b3; integrated main:108fab86c5c0a8e1548289c036f0977a8c934bf3(1.3.1 release preparation).Resolved the CHANGELOG conflict by preserving the complete published 1.3.1 history and keeping this PR's entry under Unreleased. All PR-specific source and regression-test blobs are identical to previous head
7b1cf04c2aea3aa32f42ae5ef55bd38aee7af475. The merge preserves both parents and carries the required DCO sign-off.Validation for this merge: whitespace checks, released-history preservation, and exact source/test blob comparisons passed. GitHub now reports the PR as conflict-free. Current-source integration checks await maintainer workflow approval; the earlier test results below retain their original revision scope.
Previous integration update (main ad4a12f)
Source:
7b1cf04c2aea3aa32f42ae5ef55bd38aee7af475; integrated main:ad4a12f0e17fe42e8f6839e41b6799ab8990bcf3. Resolved the CHANGELOG conflicts after the 1.3.0 release and stable-CI update. The released history and new upstream entry are preserved, with this PR’s change under Unreleased. The PR-specific source and regression-test files are unchanged from the previous head.Focused validation: 470 passed, 6 skipped, on tree
ad33af9466cd3769987a6fcf3168032d471aa851before the final CI-only main update. That final update changes only CI files and CHANGELOG; the tested runtime and regression files are unchanged. The updated CI modules passed 240 tests on the final #905 integration tree, and those CI blobs are identical in all 11 refreshed branches. Repository Ruff and whitespace checks passed.Current-head upstream workflows require maintainer approval. Earlier results below apply to their recorded revisions.
Original contribution and validation before this integration update
Current main synchronization (2026-11-30)
Current source: a248196, including main d218ef8. The only merge conflict was in
CHANGELOG.md; both entries are retained. The original read-error and missing-manifest fixes are preserved alongside main's newer quality-language/configuration changes. The earlier 46,252-test full-suite result remains historical evidence for4143a3f8; it is not claimed for this combined source.Current-source verification: 707 passed / 6 skipped in the quality manifest-read, quality scoring, language configuration, quality config and pre-commit modules;
make lintand whitespace checks passed. The new upstream CI run and companion workflows are awaiting approval. Earlier verification below applies to its named source.Review follow-up and current source — 2026-11-30
Current source:
4143a3f88a992cca5bf5e67194ee29181f3e91bd, including the discovery-race correction inaf9cb8f8and current main8b057485209ae956f4d520b8132bbe5c004f5988.The missing-manifest branch now returns its existing failure without assigning the initial 100/100 quality score. The regression unlinks actual manifests after catalog discovery and before per-skill lookup, both beside a healthy skill and when every discovered manifest disappears. The new cases fail against the preceding implementation at the intended aggregate-score assertions (2 failed, 5 passed), and pass after the correction. The existing test modules are extended; no new test module is added by this follow-up.
On this current merged source, eight quality, folder, precommit and reporting test modules pass: 639 passed, 6 existing skips. Whole-repository Ruff, changed-file formatting, the OSS-boundary scan, wheel/sdist builds and whitespace checks pass. The new main conflict was only in
CHANGELOG.md; both sides' release notes are preserved, and the implementation and regression files are byte-identical toaf9cb8f8.The complete locked contribution gate passed on current source
4143a3f88a992cca5bf5e67194ee29181f3e91bdand treedea11257e63c703e0d45a64dcd3b113b0428cd63:make testreported 46,252 passed, 347 skipped, 41 deselected; the OSS-boundary check, whole-repositorymake lint, wheel/sdistmake build, and final source/tree/lockfile checks also passed with the locked full extras on Ubuntu 24.04 / Python 3.12. The prior full-suite and focused results below apply only to their named revisions.Earlier main refresh and validation — 2026-11-29
Earlier source:
c8e7c076aaae90c65f3264914296e7f9437d2708. The signed-off merge includes mainda729c85676fc965ff81e710af89953126b44041. The only manual conflict resolution was inCHANGELOG.md: the unreadable manifest scoring entry remains a separate bullet under Unreleased → Fixed, and all main entries are preserved. The original contribution changes and regression coverage remain intact.At this exact source, focused contribution and integration validation completed with 468 passed, 6 skipped, 0 failed. Whole-repository
make lint, OSS-boundary checks,make build(wheel and sdist), and final source/tree/lockfile checks also passed on Ubuntu 24.04 with Python 3.12 and the locked full extras.These are focused checks on the new main merge. The earlier complete-suite results below retain their stated source revisions.
Summary
Reading a skill manifest can raise
UnicodeDecodeErroror an I/O error before quality scoring starts. The exception currently escapes the validator, so one unreadable member aborts a directory's quality evaluation and discards healthy members' results.Record the read failure as a per-skill gate failure and return no numeric grade for that member. Directory evaluation continues and retains healthy members' existing scores. A directory whose manifests are all unreadable receives no aggregate grade.
Verification
could not read the manifest as UTF-8 text, with the precommit assertion updated to match.git diff --checkpassed.make build; wheel and source distribution built successfully.uv sync --all-extras --locked --python 3.12:make lint,make test, andmake build, using the checkout’s.venv/bin/python. Full validation run checked exact contribution head3a82406152888bd296f22d832c8ead22a408d5f5; pytest reported 45,545 passed, 338 skipped, 19 deselected. Skips and marker exclusions are the repository’s existing defaults; no new skips or filters were added.Release Impact
CHANGELOG.md.