You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
skillspector baseline only suppresses the first occurrence of a repeated finding #630
Baselines made with skillspector baseline don't suppress repeated findings. When the same finding appears on several lines, the baseline gets one fingerprint, and the next scan with that baseline still reports every other line.
On five real skills and plugins with 490 findings, the generated baselines suppressed 103.
Reproduce
mkdir demo
cat > demo/SKILL.md <<'MD'---name: demodescription: Starts a local file server for the user.---Start it with `npx @modelcontextprotocol/server-filesystem ./docs`.If it stops, run `npx @modelcontextprotocol/server-filesystem ./docs` again.On a fresh machine, `npx @modelcontextprotocol/server-filesystem ./docs` also installs it.MD
skillspector scan demo --no-llm
skillspector baseline demo -o baseline.yaml --no-llm
skillspector scan demo --no-llm --baseline baseline.yaml
The first scan reports RP1 on lines 6, 8 and 10 with a score of 12. baseline prints "Wrote baseline with 1 suppressed finding(s)". The scan with the baseline still reports RP1 on lines 8 and 10, suppresses 1, and scores 10. All three should be suppressed.
Cause
The report node checks the baseline against the per-line findings before deduplication, at report.py L1702-L1711. The baseline command fingerprints effective_findings(result) at cli.py L3184-L3192. That comes from filtered_findings, set at report.py L1839, which is the deduplicated list where repeats are folded into one finding with occurrences. So the baseline has one fingerprint per group, but the scan looks for one per line.
Suggested fix
Build the baseline from the same list that partition_findings receives. I tested that by wrapping report.partition_findings to capture its input and passing it to build_baseline_dict. Those baselines suppressed all 490 findings, and a rescan reported 0 active.
2.12.0 changed occurrence handling in #409 and #584. I haven't checked whether earlier versions have the same problem.
Environment
SkillSpector 2.12.0, commit c7958a3, installed with uv tool install on Python 3.13.15, macOS 27.2 on Apple silicon. All scans used --no-llm.
Two proposed fixes are open in PR #631 and PR #643, both expanding occurrences before baseline fingerprinting. Neither has merged. Keeping this issue open until an accepted implementation lands and repeated-occurrence suppression is verified. The related cross-file/context case is tracked separately in #633 / PR #637.
Resolved by merged PR #637 (e5ceb619). Baseline generation now fingerprints active_findings before report deduplication, using the same per-occurrence data as suppression matching.
Verified on current main (33c9afe) with the exact three-line RP1/npx reproduction from this issue: 3 findings produced 3 fingerprints, and the baseline rescan suppressed all 3, leaving 0 active findings and score 0.
Closing as completed. This supersedes the earlier pending PR #631/PR #643 alternatives, which are now closed unmerged. The fix is on main; no new tagged release is implied.
Activity
rng1995 commentedon Sep 28, 2026
Two proposed fixes are open in PR #631 and PR #643, both expanding occurrences before baseline fingerprinting. Neither has merged. Keeping this issue open until an accepted implementation lands and repeated-occurrence suppression is verified. The related cross-file/context case is tracked separately in #633 / PR #637.
Release 0.4.0
fix(cli): baseline command fingerprints expanded findings (NVIDIA#630)
fix(cli): baseline command fingerprints expanded findings (NVIDIA#630)
rng1995 commentedon Oct 4, 2026
Resolved by merged PR #637 (
e5ceb619). Baseline generation now fingerprintsactive_findingsbefore report deduplication, using the same per-occurrence data as suppression matching.Verified on current
main(33c9afe) with the exact three-line RP1/npx reproduction from this issue: 3 findings produced 3 fingerprints, and the baseline rescan suppressed all 3, leaving 0 active findings and score 0.Closing as completed. This supersedes the earlier pending PR #631/PR #643 alternatives, which are now closed unmerged. The fix is on
main; no new tagged release is implied.