Skip to content

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

Closed

Description

@nigel-upstart

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

Activity

  1. efegokdemir commented on Oct 8, 2026

    @efegokdemir
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions