Skip to content

static_parse_limit from a backtick-quoted word in a shell comment, or an apostrophe after inline code, turns clean files into AE1 HIGH #901

Closed

Description

@illyaMs

Summary

static_patterns_tool_misuse reports static_parse_limit for two kinds of ordinary text. The file is then counted as partially inspected, and the file that references it gets an AE1 HIGH finding ("Referenced artifact was not completely inspected"). A skill with no other findings scores 25 (CAUTION).

Both reproduce on v2.13.0 and on main at 11c8b48 (version string 2.12.0), with Python 3.12 on macOS and --no-llm.

Related: #868 (prose apostrophes; e28e1ba fixes the plain-text form of reproducer 2 on main, but not the inline-code form), and #884 and #694 (other static_parse_limit triggers in the same analyzer).

Reproducer 1: backtick-quoted word in a shell comment

SKILL.md

---
name: printf-only
description: Demo skill that reproduces a scanner coverage gap.
---

See [scripts/run.sh](scripts/run.sh).

scripts/run.sh

#!/usr/bin/env bash
# Uses the `printf` builtin.
echo ok

The scan is complete without the backticks (# Uses the printf builtin.). The same sentence is also fine in a Markdown file.

Reproducer 2: apostrophe after a command in inline code

SKILL.md as above, linking references/guide.md instead.

references/guide.md

Run `rm -f build.log` to clean the project's output.

The scan is complete when any of these is true:

  • the apostrophe comes before the command
  • another apostrophe follows later in the file
  • the command isn't destructive (ls build)
  • on main only, the command isn't in backticks

Command

skillspector scan <skill-dir> --no-llm --format json --output r.json

Actual (both reproducers, main 11c8b48)

{"status": "partial", "is_complete": false, "partially_inspected_files": 1,
 "ledger_exceptions": [{"phase": "static", "reason_code": "static_parse_limit",
   "path": "scripts/run.sh",
   "message": "A security-relevant expression exceeded a bounded static parser's span limit."}]}
[{"id": "AE1", "severity": "HIGH", "finding": "scripts/run.sh (partial)", "file": "SKILL.md", "line": 6}]

Risk score: 25, CAUTION. Reproducer 2 gives the same result for references/guide.md.

Expected

The file is fully inspected: a shell comment, or prose around inline code, doesn't stop the tool-misuse parser. If the parser does give up, the coverage gap shouldn't become a HIGH finding that raises the score of an otherwise clean skill.

Impact

On documentation-heavy skills, these two patterns are common in comments and reference docs. They account for most of the AE1 HIGH findings we see, so we have to suppress AE1 (partial) findings across the board, which also hides real coverage gaps.

Activity

  1. Varshith-Kali commented on Oct 22, 2026

    @Varshith-Kali
    Contributor

    Hi, this one is significant: false AE1 HIGH findings on ordinary backticks and apostrophes force users to suppress partial-inspection findings wholesale, which hides real coverage gaps. I have reproduced both cases on current main and root-caused them in the bounded shell tokenizer (quoted spans in comments/prose stretch past the span limit). I can put up a fix with regression tests for both reproducers. May I take this one?

  2. added a commit that references this issue on Oct 28, 2026
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