SkillSpector icon indicating copy to clipboard operation
SkillSpector copied to clipboard

CLI still reports zero-finding scans as partial/CAUTION when the only exceptions are reference_missing (#510 fixed MCP only)

Open nigel-upstart opened this issue 1 month ago • 1 comments

Summary

On SkillSpector 2.12.0 (main @ 3c8e4b9), a skill with score 0 and zero findings is still reported by the CLI as analysis_completeness.status: partial, is_complete: false, and recommendation: CAUTION when its only ledger exceptions are reference_missing.

reference_missing fires for any backticked, path-like token that is not in the bundle. In practice, most of these point at files in the user's workspace that the skill operates on (helm/..., infra/..., memory/...), not at artifacts the skill should have bundled.

#510 reported the output-file variant of this. It was closed by #526, which only stops reference_missing from blocking the MCP safe_to_install verdict (mcp_server.py, reference_caveat_only). The CLI JSON, terminal, and SARIF reports still downgrade the result, so CI gates using --fail-on-incomplete (or consumers reading is_complete or recommendation) still treat these skills as incomplete.

Reproduction (no API credentials)

---
name: workspace-helper
description: Explain how a service is configured in the user's repository.
---

# Workspace helper

1. Read `helm/environment/values.yml` in the user's repository to find the app name.
2. Check `infra/bin/infra.ts` for the service owner.
3. Append a short note to `memory/learnings.md` in the user's notes directory.
skillspector scan ./workspace-helper --no-llm --format json

Result:

score findings recommendation status is_complete ledger_exceptions
0 0 CAUTION partial false 3 × reference_missing (lines 8–10)

The original #510 reproduction (Save the analysis result to `save.md`.) also still gives CAUTION / partial on current main.

Scale

We scanned 256 skills from an internal marketplace with claude_cli:

  • 1,023 of 1,131 ledger exceptions were reference_missing.
  • 120 skills had reference_missing as their only ledger exception, with no degraded analyzers.
    • 29 of them had zero findings but still got CAUTION / partial.

On a spot check, nearly every one was a workspace path, a runtime-written output, or a dotted identifier in inline code, not a missing bundled file.

Workarounds tried

  • --baseline: suppresses findings only. The result stays CAUTION / partial.
  • No documented flag or env var treats reference_missing as a non-blocking caveat in CLI reports.

Expected

Apply the same reasoning as #526 to the CLI and report outputs. Every discovered file is still fully inspected, so a scan whose only exceptions are reference_missing hides no bytes. It should be:

  • complete (or a distinct, non-blocking status such as complete_with_caveats), and
  • excluded from the SAFE → CAUTION downgrade and from --fail-on-incomplete,

while still listing the references in analysis_completeness.references for reviewers. reference_unresolved (ambiguous matches) can keep blocking, as #526 already does for MCP.

Related

  • #510: output-file references (closed; the MCP-only fix in #526)
  • #524 / #525: quoted metadata.version misread as a reference (narrow case of the same downgrade)
  • #450 / #451: slash-separated prose

nigel-upstart avatar Oct 08 '26 07:10 nigel-upstart

I reproduced the CLI-only completeness downgrade on current main. I plan to apply the existing reference-caveat handling consistently to CLI reports and --fail-on-incomplete, while preserving reference entries and keeping genuinely incomplete scans fail-closed; I’ll add regression coverage for both cases.

efegokdemir avatar Oct 08 '26 13:10 efegokdemir