Skip to content

fix(skillspector): fail loud on output-schema drift, not silent clean - #10

Merged
eric-sabe merged 1 commit into
mainfrom
fix/skillspector-schema-guard
Jul 8, 2026
Merged

fix(skillspector): fail loud on output-schema drift, not silent clean#10
eric-sabe merged 1 commit into
mainfrom
fix/skillspector-schema-guard

Conversation

@eric-sabe

Copy link
Copy Markdown
Owner

Prompted by skillspector's upstream churn (2.0.0 → 2.3.11 in weeks, no formal releases).

Compat: verified good. Upgraded the local install to 2.3.11 and ran the lens on both platforms — the issues[] core contract (id/pattern/severity/category/location) is unchanged, findings normalize identically (116), severities are now uppercase which the lens already lowercases. Updating skillspector is safe.

The hardening (the real change). The lens did (.issues // []), so a future rename/drop of that array would silently produce zero findings → clean — a false all-clear over an unscanned surface. Now: valid JSON lacking a top-level issues key → scan_error (loud, surfaced in the daily DM), while a genuine issues: [] stays correctly clean. Applied to both lenses/skillspector.sh and win/lenses/skillspector.ps1.

shellcheck clean; PSScriptAnalyzer clean.

🤖 Generated with Claude Code

Verified honey's skillspector lens against SkillSpector 2.3.11 (upstream moved
2.0.0 -> 2.3.11): the `issues[]` contract is unchanged — id/pattern/severity/
category/location — and the lens produces identical well-formed findings on
both bash and PowerShell (116 findings; severities are now UPPERCASE, which the
lens already lowercases).

But the lens normalized `(.issues // [])`, so if a FUTURE version renames or
drops that array, honey would yield ZERO findings and report `clean` — a silent
false all-clear over an unscanned surface, exactly the risk of a fast-moving,
release-less upstream. Add a schema guard: valid JSON that lacks a top-level
`issues` key is treated as scan_error (visible) rather than clean. A genuine
`issues: []` is still correctly clean.

Both platforms; shellcheck clean; PSScriptAnalyzer clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@eric-sabe
eric-sabe merged commit 86d666f into main Jul 8, 2026
2 checks passed
@eric-sabe
eric-sabe deleted the fix/skillspector-schema-guard branch July 8, 2026 03:53
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.

1 participant