Known Version Gaps
The failure this project cares most about is a tool that reports a clean result for something it never actually inspected. Staying quiet about a limitation is its own version of that, so the limitations live here.
Read this before you trust a clean result
This page mirrors KNOWN_VERSION_GAPS.md in the repository so a reader on the website sees the same corrections a reader on GitHub sees. Everything below is either reproducible from the shipped package or names the test that asserts it. Where a number is measured, the measurement date is on it.
1) Release history
An audit on May 6, 2026 surfaced historical gaps in this project's version history. We fixed what was fixable and documented the rest.
9 PyPI versions were never published, 7 of them pre launch plus 0.2.27 and 0.2.30 which failed as silent uploads. 8 git tags were missing for versions that did ship.
All 8 missing tags were created retroactively pointing at the right commits, then pushed.
Left alone. pip install sunglasses works fine, and retroactive uploads carrying stale code would create more confusion than they resolve.
A preflight gate blocks any new ship that would skip a patch number, and a daily integrity check audits PyPI against git tags, the changelog and the live site so drift surfaces before it builds up.
2) Language coverage is English first
The README used to advertise a language count of 23 in four places. That number counted every language named anywhere in the ruleset as though it were covered. Measured against the shipped pattern database at this release, the real shape is four tiers.
| Tier | Languages | What actually exists |
|---|---|---|
| Full ruleset (1) | English | All 1566 patterns. |
| Dedicated patterns (13) | Spanish, Portuguese, French, German, Russian, Turkish, Arabic, Chinese, Japanese, Korean, Hindi, Indonesian, Vietnamese | Exactly 2 patterns each. One "ignore previous instructions" injection and one credential exfiltration shape. |
| Keyword level only (7) | Italian, Dutch, Ukrainian, Polish, Czech, Azerbaijani, Hebrew | Keywords appear inside English scoped patterns. No dedicated pattern. |
| Named only (2) | Persian, Bengali | No dedicated pattern and no keyword. Listed as covered, present nowhere. |
Two patterns is a seed, not coverage. It catches the single most literal phrasing of one attack and nothing else, so a non English deployment should not be assumed to have English parity. The normalization layer (Unicode confusables, encodings, invisible characters and the other steps) is language independent and does apply everywhere. Nothing about detection changed when this was corrected. No pattern was added, removed or edited. Only the claim was.
Deepening real coverage needs per language false positive corpora first, because a language whose false positive rate we cannot measure separately is a language we cannot honestly advertise.
3) What the keyword numbers mean
Four different keyword counts are all correct and all measure different things, which is exactly how a number ends up looking wrong. Measured on the v0.5.7 release tree.
| Count | Number | What it is |
|---|---|---|
keyword_entries | 7,683 | Every keyword listed on every pattern, summed. Duplicates counted once per pattern. |
keywords_declared | 6,931 | Unique keywords across the whole database. |
keywords | 6,642 | What the pre screen index actually holds. This is the number published on this site. |
| Difference | 289 | Generic keywords deliberately excluded from the index because they would pre screen almost everything. |
All three are reported by engine.info(), so none of this has to be taken on trust. Pattern count is 1,540 and category count is 118, both verified at this release.
4) The firewall's pattern lane stops itself after 7 seconds and asks
Matcher cost grows with input length. A long document of tens of kilobytes can take several seconds.
The optional pattern lane of the PreToolUse hook (off by default; turn it on with an empty file ~/.sunglasses/warn-lane) runs under the hook's 10 second timeout.
Since v0.6.6 it stops itself at 7 seconds and answers ask, with a reason that says the call was not pattern-checked, so a slow input is a visible prompt, not a silent pass.
Since v0.6.10 a default install also sets onFailure: "block", so on Claude Code 2.1.295 and later a hook that still times out blocks the call instead of letting it through. init --fail-open restores the pass-through; older hosts ignore the key.
The cost of the matcher itself is not reduced by this; a very large call costs one prompt.
Mitigation shipped in v0.6.6. Matcher-side speed-up still open.
On older Python versions the stop can come later than 7 seconds; the 0.6.6 changelog lists the limits.
Treat the pattern lane as best effort on very large inputs.
v0.6.20, 2026-11-09.
5) Scan time depends on input shape, not just size
Measured 2026-09-07 on the release head. Six payloads, each just over the 1 MiB cap so each scans exactly the capped 1,048,576 bytes, warm engine, same machine. This is the ordinary shape band.
| Payload shape | Wall clock |
|---|---|
" " * n, a run of spaces | 51.8 s |
"." * n | 52.9 s |
"benign filler. " * n, ordinary prose | 66.6 s |
"filler line\n" * n | 73.8 s |
"a " * n | 111.0 s |
"\n" * n, a run of newlines | 139.8 s |
Same byte count, a 2.7 times spread. It is recorded because the README previously stated a linear rate without qualification, and because a reader sizing a CI budget from that rate would be wrong by a factor of three before ever meeting an adversarial input.
6) A boundary assertion defect leaves some pattern branches unreachable
A \b written immediately before a literal that is not a word character, meaning -, . or /, can never assert after whitespace, so the alternative behind it never matches.
A static sweep of the pattern database finds 198 unreachable alternatives across 89 patterns, of which 175 are high, 13 medium and 10 critical severity.
Four were repaired, including GLS-EX-007 where every alternative began with -. That pattern matched nothing at all from 2026-04-08 until the repair.
No pattern is wholly unreachable any more. The remaining 89 still fire on their other branches, so the effect is that those rules are quietly narrower than they read. A full sweep, plus a permanent gate that makes this class unshippable, is a v0.6 item.
7) A repository scan and a file scan do not read the same bytes
Both surfaces report their coverage honestly and neither reports a false clean. They simply do not read the same bytes, and there are two separate reasons for that.
scan --file big.txt reads the first 1 MiB, reports truncated: true and inspection_complete: false, and exits 1, so a finding in the first KB of a 1.1 MB file is found alongside an explicit statement that the rest was not read.
scan --repo skips any member over the 1 MB walker limit entirely, names it in skipped, and exits 3. Stated plainly, an attacker who pads a poisoned file past 1 MB is invisible to a repository scan while remaining visible to a direct file scan of that same file.
The walker declines members by extension. The file path routes by content. Crossing the two lists, .bmp .gif .jpeg .jpg .pdf .png .webp are skipped and named in repository mode, while .tif and .tiff are scanned because they are simply absent from the walker's skip list.
So an instruction hidden in a committed PNG's EXIF, a GIF's later frame or a PDF's annotations is reported by scan --repo as uninspected scope and by scan --file as a finding. The same instruction in a committed TIFF is found by both.
Every skipped member is named, in every output format, and the scan exits 3 rather than 0. Nothing claims to have read them. The skip line also says what closes it, namely scanning that path directly.
A consumer that reads skipped is not misled, though a consumer that reads only the exit code learns "incomplete" rather than "there is an injection in here".
Reconciling the lists means the walker runs OCR over every committed image, which changes what a repository scan costs, seconds per image and per frame, and what it promises. That is a scope decision with a performance budget attached, taken deliberately in v0.6.
8) Smaller open items
attack-db/ is generated from the pattern source and has not been regenerated in some time. Re running the exporter rewrites 51 existing files and creates 409 that were never exported.
The engine is the source of truth, so treat attack-db/ as a lagging mirror until v0.6 re syncs and gates it.
sunglasses pin asks before starting your MCP servers, but that gate lives in the CLI. A Python caller that imports the firewall module and calls the probe or build functions directly still spawns the configured servers with no prompt.
The CLI is the only shipped surface that reaches those functions, so nothing we distribute launches a server unasked.
The boundary is still real and anyone embedding the library should know where the gate is before assuming they inherited it. Moving it changes a public API signature, so it is a v0.6 item.
Outside the scan path, sunglasses check skips a settings file it cannot parse and a hook command it cannot lex, and sunglasses receipts skips a receipt line that is not valid JSON.
They are the same shape as the defects this release fixed, a thing we could not read passed over without saying so, and in the first two cases that means check can report a healthy firewall while sitting next to a settings file it never managed to read.
Recorded rather than fixed, so the next round starts with them on the list.
9) What "every document carries the three axes" is scoped to
A scan document carries threat_found, inspection_complete and is_clean. That sentence is true of every surface enumerated in the acceptance matrix, 28 surfaces across 12 input states, each asserted by a test. It is scoped to those rows deliberately, because an external review refused the unqualified version of the claim and was right to. At that point several convenience functions had no rows and two were returning documents with no axes at all. They have rows now and the defects are fixed, but the honest form of the claim names its scope, because the argument that made it false once is available again the moment somebody adds a surface without adding a row.
Anything a caller assembles by hand from ScanResult attributes without going through normalize(). The firewall hook verdicts, which answer allow, deny or defer for a tool call rather than a coverage question. And info(), check, version and the other non scan commands.
The matrix test module runs one test per asserted cell, and the table generator reads the same module the tests parametrize over, so the table cannot claim a cell the suite does not assert. Note what that does not prove.
A generated table proves the table and the tests read one source, not that the tests assert anything. That is what the 18 mutation cases in the same file are for, each feeding a response with its coverage evidence stripped and requiring it to fail.
10) Three input states that answer differently
Behaviour changes rather than bug fixes, and each one is a matrix state.
A FIFO, socket, device node or directory at the input path is an operational error, meaning CLI exit 2.
Previously the readability probe proved a path readable by opening it, and opening a FIFO with no writer blocks in the kernel, so an MCP scan of a named pipe never returned at all. The type check now happens on metadata before any file object exists.
Note the consequence, scan --file /dev/null is now exit 2 where an empty regular file is exit 0. A device is not a thing we can scan. An empty file is.
Every text read used to ignore decoding errors, which silently drops undecodable bytes. A 256 byte file of non UTF-8 pairs scanned 128 bytes and returned complete and clean.
We still scan what decodes, because throwing the file away would lose real coverage, but the answer is exit 3 and the warning names how many bytes went unread.
On stdin the answer differs because the transport does. Undecodable stdin is an operational error, since decoding with replacement there would mean reporting on a substitution the caller never sent.
An empty text argument, empty stdin, an empty file and an empty MCP string all return exit 0 with 0 bytes scanned. Nothing went unread, so nothing was hidden.
Both human renderings say the input was empty rather than reporting no threats detected, so a reader can tell a clean scan of a document from a clean scan of nothing.
11) Open limit as of v0.6.4
blocked_paths in the firewall policy asks what a call touches. For Write, Edit, MultiEdit, NotebookEdit and Read that question is now answered from the documented path fields, so prose that merely names a protected path is no longer treated as touching it.
For Bash the same false positive remains. Subtracting quoted heredoc bodies from a command before asking the path question was tried twice and was unsafe both times.
An independent review executed nine commands where the parser removed text the shell really runs, and seven of them survived the hardened second attempt.
The failure underneath is that a fallback for a parser which fails does nothing for a parser which is confidently wrong.
A Bash command is judged on all of its text, so writing about a blocked path inside a shell heredoc is refused. The repair needs a real shell grammar rather than another special case, and a named test asserts the limit is still present so it cannot quietly disappear.
12) Open limit as of v0.6.20: five rules block some real files, and one misses some workflow steps
GLS-PT-001 (path traversal, file channel) blocks real package.json files whose script or tool-config fields hold relative parent paths: 213 of 1,907 distinct npm packages on one Mac (581 of 5,691 top-level files), measured Nov 9 2026 on 0.6.20.
scan --dir skips node_modules, so this reaches a user who scans a single manifest or a vendored tree.
GLS-CI-007 quarantines our own action.yml the same way.
Present since v0.2.4; not a regression. The fix is a rule change that needs review and a false-positive run, and no release is named for it yet.
GLS-TS-251, GLS-GHSA-PI-202 and GLS-APIP-005 block real workflow, issue-template and Dockerfile files on comment, URL or glob text: 20 of 298 distinct files found on one Mac (copies of our own repos and installed npm packages included).
Measured Nov 9 2026 on 0.6.20; 4 of the 113 files in the Poisoned Build Manifests report.
GLS-CI-007 (workflow shell-step interpolation, file channel) misses some forms of the step it is aimed at: of 72 attacker-source workflow shapes we wrote, it flags 48 and misses 24; a list of misses we wrote, not a miss rate on real workflows.
Measured Nov 9 2026 on 0.6.20.
13) Open limit as of v0.6.20: tool-description poisoning, three gaps in the 58 class rules
GLS-MECH-006 flagged 2 of 309 real descriptions (309 distinct tool descriptions from 11 sources on one Mac, 120 from one vendor's connector caches). Both are false positives.
Measured Nov 9 2026 on 0.6.20.
0 of 5 reworded attacks fired a class rule, and 4 of 5 were allowed on every channel. n=5, written by us: a list of misses, not a miss rate.
Measured Nov 9 2026 on 0.6.20.
Benchmark case HARD-08: 0 findings on all 9 documented channels on 0.6.20. The fix is a rule change, and no release is named for it yet.
Measured Nov 9 2026 on 0.6.20.
Numbers and method: the Poisoned Tool Descriptions report.
Found something we have not listed
A gap we have not written down is worth more to us than a gap we have. Send it to contact@sunglasses.dev or open an issue on GitHub, and if it is real it lands on this page.