@descent-vtt/spec-guard 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +107 -0
  2. package/README.md +73 -29
  3. package/dist/cites.d.ts.map +1 -1
  4. package/dist/cites.js +11 -1
  5. package/dist/cites.js.map +1 -1
  6. package/dist/cli.d.ts +15 -1
  7. package/dist/cli.d.ts.map +1 -1
  8. package/dist/cli.js +25 -6
  9. package/dist/cli.js.map +1 -1
  10. package/dist/engine.d.ts +48 -1
  11. package/dist/engine.d.ts.map +1 -1
  12. package/dist/engine.js +224 -13
  13. package/dist/engine.js.map +1 -1
  14. package/dist/glob.d.ts +9 -0
  15. package/dist/glob.d.ts.map +1 -1
  16. package/dist/glob.js +23 -0
  17. package/dist/glob.js.map +1 -1
  18. package/dist/impact.d.ts +13 -9
  19. package/dist/impact.d.ts.map +1 -1
  20. package/dist/impact.js +5 -3
  21. package/dist/impact.js.map +1 -1
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/polyglot.d.ts +4 -1
  25. package/dist/polyglot.d.ts.map +1 -1
  26. package/dist/polyglot.js +448 -69
  27. package/dist/polyglot.js.map +1 -1
  28. package/dist/prove.d.ts.map +1 -1
  29. package/dist/prove.js +42 -14
  30. package/dist/prove.js.map +1 -1
  31. package/dist/reporter.d.ts.map +1 -1
  32. package/dist/reporter.js +13 -0
  33. package/dist/reporter.js.map +1 -1
  34. package/dist/runner.d.ts.map +1 -1
  35. package/dist/runner.js +17 -13
  36. package/dist/runner.js.map +1 -1
  37. package/dist/scope.d.ts +22 -2
  38. package/dist/scope.d.ts.map +1 -1
  39. package/dist/scope.js +10 -2
  40. package/dist/scope.js.map +1 -1
  41. package/dist/structure.d.ts +3 -1
  42. package/dist/structure.d.ts.map +1 -1
  43. package/dist/structure.js +15 -4
  44. package/dist/structure.js.map +1 -1
  45. package/dist/types.d.ts +7 -0
  46. package/dist/types.d.ts.map +1 -1
  47. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -10,6 +10,113 @@ what to do when upgrading; the family's policy, including how a flag or field
10
10
  is deprecated before it goes, is spec-core's
11
11
  [ADR-0009](https://github.com/DescentVTT/spec-core/blob/main/docs/adr/0009-versions-before-1-0.md).
12
12
 
13
+ ## 0.28.0
14
+
15
+ A regex rule's `^` and `$` read a line with either engine, where they
16
+ read the file's two ends and a rule passed that should have failed; and
17
+ another git work tree below the root is not read, by a run or by
18
+ `cites`. A Rust or C# declaration its compiler refuses is said, Go and
19
+ C# names are read whole, and on Windows a drive letter names its volume
20
+ in either case.
21
+
22
+ ### Changed
23
+
24
+ - **A Rust use declaration and a C# using directive that the compiler
25
+ refuses are said, as a note under each import rule over the file**, as a
26
+ Python statement Python refuses is: `use forbidden::thing c;` and `using
27
+ forbidden.;` name no module, and a rule over them passed under `--strict`
28
+ too. And what 0.27.0 read though the compiler refuses it is decided by
29
+ the compiler: a keyword of every edition for a segment (`use mod::d;`,
30
+ `use a::fn;`) or a C# keyword written plain (`using class.N;`), a doc
31
+ comment between two tokens, `self`, `super` or `crate` where rustc
32
+ refuses them, `use crate;` with no `as`, and a `$` name outside a macro
33
+ are each read as nothing and said. Of 159 Rust sources rustc 1.97.1
34
+ refuses in every edition 155 are said, of 63 C# ones the compiler of the
35
+ .NET SDK 10.0.401 refuses 52, and none of the 292 the two compile; over
36
+ 31,176 Rust files of a cargo registry and 1,985 C# files no note is made
37
+ but 61 in Visual Studio's project templates
38
+ ([ADR-0008](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0008-polyglot-imports.md)).
39
+ Upgrading: a `--strict` run over a Rust or C# file the compiler would
40
+ refuse may now fail; mend the declaration the note names. A rule that
41
+ failed only for such a declaration, `use forbidden::fn;`, now passes with
42
+ the note under it. A C# alias of a keyword type, `using T = int;`, names
43
+ nothing, where `int` was read, and a C# using whose types nest deeper
44
+ than 64 is reported as truncated.
45
+ - **`impact` names a file whose imports could not all be read on the line
46
+ of each note**, `src/a.rs:2 a declaration that ...`, where it named the
47
+ file alone, and counts a file with two notes once
48
+ ([ADR-0018](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0018-impact.md)).
49
+ Upgrading: each entry of `gaps` in `impact --json` and in
50
+ `get_dependents` has `line` beside `file` and `detail`; `formatVersion`
51
+ stays 1, and the package exports `ImpactGap`.
52
+ - **A Go package name and the types of a C# alias are read whole.** `import
53
+ 名 "fmt"`, `import café "fmt"` and `import _x "fmt"` were read as no
54
+ import, so a rule on the package passed over each; a package name is now
55
+ read as the Go specification has an identifier, a keyword is none, and a
56
+ name at the end of its line, which Go ends the import at, imports
57
+ nothing. `using T = G.L<N1.X>;` named `G.L` alone and `using T = (N1.X,
58
+ N2.Y);` nothing; each type an alias or a `using static` holds is now a
59
+ reference, its type arguments and the elements of a tuple among them.
60
+ Of 29 Go sources held to the specification, 0.27.0 read 13 otherwise
61
+ than it does, and of 23 C# ones compiled by the .NET SDK 10.0.401, 19
62
+ otherwise than the compiler
63
+ ([ADR-0008](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0008-polyglot-imports.md)).
64
+ Upgrading: an import rule over Go or C# that passed may now fail for a
65
+ dependency written one of those ways; mend the import it names, or give
66
+ the rule a `baseline`. From the package, `Reader.identifier` reads a
67
+ name as Go has one.
68
+ - **`^` and `$` in a regex rule read a line, with either engine**, where
69
+ they read only a file's two ends: `symbol="^\s*-?\s*uses:"` passed over a
70
+ workflow with `uses:` on its fourth line, under `--engine js` and
71
+ `--engine rg` alike. A line ends at LF, at CRLF and at a lone CR, as
72
+ ripgrep reads one with `--crlf`, and ripgrep is asked with `--crlf` and
73
+ `--multiline`, so the files it names hold every one the scanner counts in:
74
+ `foo\s+bar` over two lines was counted by `--engine js` and passed by
75
+ `--engine rg`. A pattern with `\n` is read by ripgrep now, where its search
76
+ fell back to the scanner with a warning. `prove` shows a regular
77
+ expression's maximum its text below a line of its own too, and its
78
+ `--json` holds that second probe before the one for a minimum
79
+ ([ADR-0007](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0007-search-scope.md),
80
+ [ADR-0016](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0016-rules-seen-to-fail.md)).
81
+ Upgrading: a regex rule with `^` or `$` whose match is not on a file's
82
+ first or last line may now fail; mend the line it names, or give the rule
83
+ a `baseline`. A rule that failed only on a match after a file's last line
84
+ end or in an empty file, as `\s+$` did over every file that ends with a
85
+ line end, now passes; `[ \t]+$` reads only the blanks a line ends with.
86
+ - **Another git work tree below the root is not read**, by a run or by
87
+ `cites`: a directory holding a `.git` file, as a linked worktree under
88
+ `.claude/worktrees` and a submodule do, or a `.git` directory with a
89
+ `HEAD`, as a clone does. 0.27.0 read a desktop-app session's worktree as
90
+ part of the checkout above it: a rule over `.` counted its code, `cites`
91
+ counted its citations twice, and a stale citation in it failed
92
+ `cites --strict` in the checkout. A run names each work tree it left
93
+ out, as `skipped` with `reason: "worktree"`, which `--strict` does not
94
+ fail on; `cites` names them as `workTrees`; `--no-default-skips` reads
95
+ them
96
+ ([ADR-0007](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0007-search-scope.md)).
97
+ Upgrading: a rule over a directory that holds another work tree no longer
98
+ reads it, so a rule that failed only on a worktree's code passes, and one
99
+ that needed a file in another work tree, for a minimum or for a scope
100
+ that holds a file, may now fail; name the work tree as the rule's target
101
+ to read it. A spec pattern no longer reaches another work tree's specs,
102
+ nor `impact` its files. A script that took every `skipped` entry for a
103
+ gap reads its `reason`.
104
+
105
+ ### Fixed
106
+
107
+ - **On Windows a drive letter names its volume in either case**, so
108
+ `--root C:\x` beside `--root c:\x` is one root, in either order and on
109
+ every command. It was refused, exit 2, as two values. The rest of a
110
+ path is compared as it resolves, as before, so `--root C:\x` beside
111
+ `--root C:\X` is still refused, and off Windows the two letters are
112
+ two names and refused as they were
113
+ ([ADR-0014](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0014-configuration-and-watch.md)).
114
+ - **A file two targets that overlap both reach is counted once under
115
+ ripgrep**, as under the scanner. ripgrep given `.` and `src` named each
116
+ file in `src` under both, and each match there was counted twice, so
117
+ `target=".,src"` with a bound could fail under `--engine rg`, and under
118
+ `auto` past its budget, and pass under `--engine js`.
119
+
13
120
  ## 0.27.0
14
121
 
15
122
  A Rust use declaration and a C# using directive are read as their
package/README.md CHANGED
@@ -232,9 +232,9 @@ These read the dependency rather than the text, in **five languages**:
232
232
  | --- | --- | --- |
233
233
  | JavaScript / TypeScript | `.js .mjs .cjs .jsx .ts .mts .cts .tsx` | `import`, `export ... from`, `require()`, `import()` |
234
234
  | Python | `.py .pyi` | `import a.b` and `from .rel import x` in every spelling Python's grammar takes, 3.15's `lazy import` among them, and `importlib.import_module("x")` |
235
- | Go | `.go` | `import "x"` and grouped `import ( ... )`, including aliases and `_` |
235
+ | Go | `.go` | `import "x"` and grouped `import ( ... )`, including `.`, `_` and a package name as Go writes one, beyond ASCII too |
236
236
  | Rust | `.rs` | `use a::{b, c}` with nested groups, `pub use` and `extern crate`, in every spelling rustc's grammar takes: white space and comments between the tokens, a raw identifier, `self` at the end of a path |
237
- | C# | `.cs .csx` | `using`, `using static`, `global using`, `using X = A.B`, `global::` and extern-alias qualifiers, and a using relative to its namespace, in every spelling the C# grammar takes: white space and comments between the tokens, a name written with `@` or an escape, `using static unsafe` and a generic type |
237
+ | C# | `.cs .csx` | `using`, `using static`, `global using`, `using X = A.B`, `global::` and extern-alias qualifiers, and a using relative to its namespace, in every spelling the C# grammar takes: white space and comments between the tokens, a name written with `@` or an escape, `using static unsafe` and a generic type, and each type an alias or a `using static` holds, its type arguments and the elements of a tuple among them |
238
238
 
239
239
  No parser and no new dependency. JavaScript gets a full tokenizer because a
240
240
  module reference can appear anywhere in an expression; the other four are read
@@ -289,9 +289,14 @@ stops it being mistaken for a complete answer.
289
289
  - **A passing rule prints it** without `--verbose` too, since a green run is
290
290
  when it would otherwise go unread.
291
291
  - **`--strict` turns those warnings into failures.**
292
- - **A Python statement that starts as an import and that Python refuses is
293
- one of them**, `from a import b,` among them: it names no module, and the
294
- rule says so on its file and line.
292
+ - **A statement that starts as an import and that its compiler refuses is
293
+ one of them**: a Python statement Python refuses, `from a import b,`; a
294
+ Rust use declaration or extern crate that rustc refuses in every
295
+ edition, `use a::b c;` or `use a::fn;`; and a C# using directive the
296
+ compiler refuses, `using A.;`. Each names no module, and the rule says so
297
+ on its file and line. A `use` among a macro's tokens, or in a bound such
298
+ as `impl Trait + use<'a>`, a C# using statement or declaration, and a
299
+ directive in a section an `#if` may leave out start none.
295
300
  - **Files in scope in a language whose imports spec-guard cannot read are
296
301
  counted and reported**, so a rule pointed at the wrong tree says "analysed 2
297
302
  of 3 files; 1 is in a language whose imports spec-guard cannot read (.razor)"
@@ -375,10 +380,13 @@ single pattern do both halves of a layer rule - hold the files under
375
380
  - **`module=` is a namespace too**, as above: `module="Shop.Infrastructure"`
376
381
  covers `using Shop.Infrastructure.Persistence;`.
377
382
  - **What is read**: `using`, `global using`, `using static` and aliases, with
378
- any `global::` or extern-alias qualifier left off the name. A using inside a
379
- namespace may be relative to it, so `using Application.Orders;` inside
380
- `namespace Shop.Domain` also counts as `Shop.Application.Orders`. Nothing in a
381
- comment, a verbatim string or a raw string literal is read.
383
+ any `global::` or extern-alias qualifier left off the name, and each type
384
+ an alias or a `using static` holds: `using Pool =
385
+ Dictionary<Shop.Db.Key, int>;` names `Dictionary` and `Shop.Db.Key`, and
386
+ `using T = int;` names nothing. A using inside a namespace may be relative
387
+ to it, so `using Application.Orders;` inside `namespace Shop.Domain` also
388
+ counts as `Shop.Application.Orders`. Nothing in a comment, a verbatim
389
+ string or a raw string literal is read.
382
390
 
383
391
  What it cannot see, and the text rule that covers each - a text rule reads a
384
392
  name wherever it is written:
@@ -579,7 +587,7 @@ Passes when every listed path exists relative to `--root`. Directories count.
579
587
  | `min` / `max` | count (`max` on all but present) | Inclusive bounds |
580
588
  | `glob` | absence, count, structure | Include-only file filters, e.g. `*.ts,*.tsx` (ripgrep `-g` semantics) |
581
589
  | `exclude` | all but present | Paths to leave out, gitignore-style: `src/config/**`, `tests`, `*.test.ts` |
582
- | `regex` | absence, count | Treat `symbol` as a regular expression |
590
+ | `regex` | absence, count | Treat `symbol` as a regular expression, JavaScript's, where `^` and `$` match at each line's start and end |
583
591
  | `word` | absence, count | Require word boundaries, so `Primary` does not match `PrimaryButton` |
584
592
  | `ignore-case` | absence, count | Case-insensitive matching |
585
593
  | `comments` | absence, count | `ignore` (default) or `include` for matches inside comments |
@@ -600,6 +608,15 @@ Unknown attributes are an error, not a shrug: `expct="1"` fails the run instead
600
608
  of silently asserting nothing. A spec tool whose typos assert nothing is worse
601
609
  than no spec tool.
602
610
 
611
+ A `regex` is read against each file's whole text, so a match may cross a
612
+ line end. `^` and `$` match at the start and the end of every line, a line
613
+ ending at LF, at CRLF or at a lone CR, as ripgrep reads one with `--crlf`;
614
+ U+2028 and U+2029 end none, and no line follows a file's last line end.
615
+ `symbol="^\s*-?\s*uses:"` meets `uses:` on any line, with either engine
616
+ ([ADR-0007](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0007-search-scope.md)).
617
+ `\s` matches a line end too, so `\s+$` also meets a line followed by an
618
+ empty one; `[ \t]+$` reads only the blanks a line ends with.
619
+
603
620
  ### `exclude` - everywhere except
604
621
 
605
622
  Most real rules are "nowhere except one place", not "not here":
@@ -805,7 +822,8 @@ for architecture rules.
805
822
  An assertion is worth exactly as much as the set of files behind it, so
806
823
  spec-guard is explicit about that set and never quietly narrows it.
807
824
 
808
- **Four directory names are skipped**, and nothing else:
825
+ **Four directory names are skipped**, as is another git work tree below the
826
+ root (see below), and nothing else:
809
827
 
810
828
  | Skipped | Why |
811
829
  | --- | --- |
@@ -830,7 +848,26 @@ To narrow scope, say so in the assertion:
830
848
  <!-- @assert-absence target="src" symbol="TODO" exclude="dist coverage" -->
831
849
  ```
832
850
 
833
- `--no-default-skips` removes even those four, for a run that has to be certain.
851
+ **Another git work tree below the root is not read either**: a directory
852
+ holding a `.git` file, as a linked worktree and a submodule do (a
853
+ desktop-app session keeps its worktree under `.claude/worktrees`), or a
854
+ `.git` directory with a `HEAD`, as a clone does. Its files are another
855
+ checkout's: read, a stale citation in a session's worktree failed
856
+ `cites --strict` in the checkout above it. A run names each one it left
857
+ out, and `--json` has it in `skipped` with `reason: "worktree"`, which
858
+ `--strict` does not fail on:
859
+
860
+ ```text
861
+ ⚠ 1 other git work tree not read: .claude/worktrees/feature
862
+ ```
863
+
864
+ Where a walk starts is read as asked, so a root that is itself a worktree is
865
+ read, and a rule can name a work tree as its `target`. `query` and the MCP
866
+ server read no file, so they cannot tell a work tree from a directory
867
+ ([ADR-0007](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0007-search-scope.md)).
868
+
869
+ `--no-default-skips` removes even those four, and reads the other work trees
870
+ too, for a run that has to be certain.
834
871
 
835
872
  ### Spec files are left out of their own searches
836
873
 
@@ -1124,11 +1161,13 @@ spec-guard prove 3 specs · 12 rules
1124
1161
 
1125
1162
  Each rule is **killed** (it failed on the violation), **survived** (it still
1126
1163
  passed, and the violation is shown), or **unprovable** (no violation could be
1127
- made, and the reason is given). Both bounds of a count are probed. `prove`
1128
- exits 1 when a rule survived, and under `--strict` when one is unprovable. It
1129
- takes the run's `--root`, `--spec`, `--exclude`, `--ignore-status`, `--json`
1130
- and `--format sarif|github|gitlab`, and the configuration's specs, exclusions
1131
- and strictness.
1164
+ made, and the reason is given). Both bounds of a count are probed, and a
1165
+ regular expression's maximum twice: with its text at a file's start, and
1166
+ below a line of prove's own, so a pattern whose `^` or `$` met only a file's
1167
+ ends survives. `prove` exits 1 when a rule survived, and under `--strict`
1168
+ when one is unprovable. It takes the run's `--root`, `--spec`, `--exclude`,
1169
+ `--ignore-status`, `--json` and `--format sarif|github|gitlab`, and the
1170
+ configuration's specs, exclusions and strictness.
1132
1171
 
1133
1172
  A kill means the rule can fail, not that it catches the way the code is
1134
1173
  written: `module="src/db.ts"` is killed by `import 'src/db.ts'` though every
@@ -1191,10 +1230,11 @@ in the file name:
1191
1230
  named. `cites` takes no `--allow-empty`, since it refuses nothing.
1192
1231
  - **Comment text only**, as the comment classifier reads it: an id in a string,
1193
1232
  a raw string or a YAML value is not a citation. Markdown is spec-graph's and
1194
- is not read, nor are the spec files, the project's `exclude`, and the default
1195
- skips. Files in a language whose comments spec-guard does not know are
1196
- counted by extension, and a file read in part - binary, unreadable, or a scan
1197
- that lost its place - is named.
1233
+ is not read, nor are the spec files, the project's `exclude`, the default
1234
+ skips, and another git work tree below the root, which is named, and is
1235
+ `workTrees` in `--json`. Files in a language whose comments spec-guard does
1236
+ not know are counted by extension, and a file read in part - binary,
1237
+ unreadable, or a scan that lost its place - is named.
1198
1238
  - **Another project's ids are not checked**: `spec-core's ADR-0005`,
1199
1239
  `spec-graph ADR-0017` or `its ADR-12` name a document in another repository,
1200
1240
  and are counted instead.
@@ -1311,7 +1351,7 @@ spec-guard impact <paths...> # the files that depend on each path, and
1311
1351
  | `--allow-missing-targets` / `--no-allow-missing-targets` | Warn instead of failing when a `target` path does not exist |
1312
1352
  | `--allow-empty-scope` / `--no-allow-empty-scope` | Warn instead of failing when an assertion inspects no files |
1313
1353
  | `--print-baseline` | Print the `baseline="..."` that would exempt today's violations, and exit |
1314
- | `--no-default-skips` / `--default-skips` | Search `.git`, `.hg`, `.svn` and `node_modules` too |
1354
+ | `--no-default-skips` / `--default-skips` | Search `.git`, `.hg`, `.svn` and `node_modules` too, and the other git work trees below the root |
1315
1355
  | `--exclude <globs>` | Paths no assertion looks at, beside each directive's own `exclude`. Repeatable; replaces the configuration's list, and `--exclude=` clears it. Separators with nothing between them, `","`, are refused |
1316
1356
  | `--ignore-status` / `--no-ignore-status` | Execute directives in documents not in force too: draft, proposed, rejected, deprecated, superseded or archived |
1317
1357
  | `--include-specs` / `--no-include-specs` | Also count matches inside the spec files themselves |
@@ -1391,11 +1431,15 @@ spec-guard: Option --json is given beside --format "sarif", and one of the two w
1391
1431
 
1392
1432
  The same value given twice is read as once, however it is spelled: `--root .`
1393
1433
  beside `--root ./`, `--format JSON` beside `--format json`, and `--json`
1394
- beside `--format json`. `--spec` and `--exclude` are lists, and each use adds
1395
- to its list; `--exclude=` adds nothing to it, and the configuration's list is
1396
- replaced either way. Such a line is refused with `--help` or `--version` on
1397
- it too, as a line with a pair is. And `--help` beside `--version` is refused
1398
- the same way, in either order: they ask for two answers, and a line gets one.
1434
+ beside `--format json`. On Windows a drive letter names its volume in either
1435
+ case, so `--root C:\x` beside `--root c:\x` is one root; the rest of a path
1436
+ is compared as it resolves, and `--root C:\x` beside `--root C:\X` is two,
1437
+ since whether they are one directory is the disk's to say. `--spec` and
1438
+ `--exclude` are lists, and each use adds to its list; `--exclude=` adds
1439
+ nothing to it, and the configuration's list is replaced either way. Such a
1440
+ line is refused with `--help` or `--version` on it too, as a line with a
1441
+ pair is. And `--help` beside `--version` is refused the same way, in either
1442
+ order: they ask for two answers, and a line gets one.
1399
1443
 
1400
1444
  And so is a spec pattern that matches no file beside others that do. After
1401
1445
  `old-docs` was renamed, `spec-guard docs old-docs` ran the specs under `docs`
@@ -1982,8 +2026,8 @@ build fails if they stop being true. CI proves every one of those rules can
1982
2026
  fail, and `spec-guard cites` holds every ADR a comment in the code cites to
1983
2027
  existing and being in force.
1984
2028
 
1985
- Line coverage is 100%, CI's full mutation sweep kills 99.33% of 13,242 mutants
1986
- (0.27.0), and every survivor a release adds is replayed before it ships
2029
+ Line coverage is 100%, CI's full mutation sweep kills 99.23% of 14,224 mutants
2030
+ (0.28.0), and every survivor a release adds is replayed before it ships
1987
2031
  ([ADR-0003](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0003-mutation-testing.md));
1988
2032
  [CONTRIBUTING.md](https://github.com/DescentVTT/spec-guard/blob/main/CONTRIBUTING.md)
1989
2033
  has how to build, test and release, and
@@ -1 +1 @@
1
- {"version":3,"file":"cites.d.ts","sourceRoot":"","sources":["../src/cites.ts"],"names":[],"mappings":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E,QAAQ,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IACjC,+EAA+E;IAC/E,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,sDAAsD;IACtD,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,oEAAoE;IACpE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,2FAA2F;IAC3F,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,EAAE,CAAC,EAAE,EAAE,CAAC;CACT;AAED,0GAA0G;AAC1G,qBAAa,UAAW,SAAQ,KAAK;CAAG;AAqCxC;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAmM/E"}
package/dist/cites.js CHANGED
@@ -448,6 +448,7 @@ export async function findCitations(options) {
448
448
  const candidates = [];
449
449
  const starts = options.paths?.map((entry) => (entry === '.' ? '' : entry)) ?? [''];
450
450
  const seen = new Set();
451
+ const workTrees = [];
451
452
  // With nothing to look for, no path is walked, and every count stays at zero.
452
453
  if (families.length > 0) {
453
454
  for (const start of starts) {
@@ -457,7 +458,15 @@ export async function findCitations(options) {
457
458
  if (stats?.isFile())
458
459
  entries.push({ relativePath: start, absolutePath: absoluteStart });
459
460
  else {
460
- for await (const entry of walkPaths(absoluteStart, { io, scope })) {
461
+ // A worktree inside the checkout holds its own copy of every comment,
462
+ // and its citations were counted twice and its stale ones failed
463
+ // `cites --strict` in the checkout above it.
464
+ const onSkip = (relativePath, reason) => {
465
+ const top = start === '' ? relativePath : `${start}/${relativePath}`;
466
+ if (reason === 'worktree' && !excluded(`${top}/.git`) && !workTrees.includes(top))
467
+ workTrees.push(top);
468
+ };
469
+ for await (const entry of walkPaths(absoluteStart, { io, scope, onSkip })) {
461
470
  entries.push({ relativePath: start === '' ? entry.relativePath : `${start}/${entry.relativePath}`, absolutePath: entry.absolutePath });
462
471
  }
463
472
  }
@@ -580,6 +589,7 @@ export async function findCitations(options) {
580
589
  unclassified: [...unclassified]
581
590
  .map(([extension, files]) => ({ extension, files }))
582
591
  .sort((a, b) => b.files - a.files || comparePaths(a.extension, b.extension)),
592
+ workTrees,
583
593
  notes,
584
594
  exclude,
585
595
  };
package/dist/cites.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cites.js","sourceRoot":"","sources":["../src/cites.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC5H,OAAO,EAAE,MAAM,EAAW,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAG/C,gFAAgF;AAEhF,mEAAmE;AACnE,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC;AAQ5B,0EAA0E;AAC1E,wEAAwE;AACxE,MAAM,IAAI,GAAG,kBAAkB,CAAC;AAEhC,6EAA6E;AAC7E,8EAA8E;AAC9E,0EAA0E;AAC1E,6CAA6C;AAC7C,SAAS,OAAO,CAAC,IAAwB;IACvC,wDAAwD;IACxD,OAAQ,IAAe,IAAI,GAAG,IAAK,IAAe,IAAI,GAAG,CAAC;AAC5D,CAAC;AAED,SAAS,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AAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;QACtC,GAAG,KAAK;QACR,KAAK,EAAE,QAAQ,CAAC,OAAO;QACvB,MAAM,EAAE,MAAM,CAAC,EAAE;QACjB,QAAQ,EAAE,KAAK,CAAC,IAAI;QACpB,MAAM;QACN,GAAG,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS,CAAC,EAAE,EAAE,CAAC;QAC1D,OAAO,EAAE,GAAG,EAAE,UAAU,QAAQ,CAAC,OAAO,cAAc,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,SAAS,CAAC,EAAE,UAAU,EAAE;QAC5H,IAAI,EACF,SAAS,KAAK,IAAI;YAChB,CAAC,CAAC,GAAG,IAAI,iGAAiG;YAC1G,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC;gBAC1B,CAAC,CAAC,GAAG,IAAI,6BAA6B,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,SAAS,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,4BAA4B,SAAS,CAAC,EAAE,EAAE;gBAC7K,CAAC,CAAC,GAAG,IAAI,EAAE;KAClB,CAAC;AACJ,CAAC"}
package/dist/cli.d.ts CHANGED
@@ -101,7 +101,21 @@ export declare class UsageError extends Error {
101
101
  * fallback nobody knows still works.
102
102
  */
103
103
  export declare function version(manifest?: string): string;
104
- export declare const HELP = "spec-guard - Executable architecture assertions for Markdown specs & ADRs\n\nUsage\n spec-guard [patterns...] [options] execute the directives in the specs\n spec-guard query <paths...> [options] list the rules in force for files or directories\n spec-guard mcp [options] serve the rules to an AI agent over MCP on stdio\n spec-guard prove [patterns...] [options]\n show each rule a violation of itself, in memory, and report any that pass\n spec-guard cites [paths...] [options] check that each spec a code comment cites exists and is in force\n spec-guard impact <paths...> [options] the files that depend on each path, and the rules in play there\n\nPatterns\n Globs or paths to the Markdown specs to execute. A directory expands to the\n Markdown files inside it. Defaults to \"docs/**/*.md\" when omitted. query,\n mcp, cites and impact take theirs from --spec.\n\nOptions\n -r, --root <path> Codebase root that assertions are resolved against, a directory (default: cwd)\n --spec <pattern> A spec glob or path; repeatable (default: \"docs/**/*.md\")\n -v, --verbose Print passing assertions too\n --watch Run again as the tree changes, until Ctrl+C (human output only)\n --fail-fast Stop at the first failing assertion\n --json Emit a machine-readable JSON report (same as --format json)\n --format <name> human | json | sarif | github | gitlab (sarif uploads to code scanning,\n github annotates a pull request from the log, gitlab is Code Quality)\n --engine <name> auto | rg | js (default: auto - scanner for small trees, ripgrep for big ones)\n ripgrep is rg on PATH, or the program SPEC_GUARD_RG names; where that\n is no ripgrep that runs, rg is exit 2 and auto leaves it to the scanner\n --strict Treat analysis that could not be completed, and a run that\n executed no assertion, as a failure\n --allow-missing-targets\n Tolerate target paths that do not exist (they fail by default)\n --allow-empty-scope Tolerate assertions whose scope holds no files (they fail by default)\n --print-baseline Print the baseline=\"...\" that would exempt today's violations, and exit\n --no-default-skips Search .git, .hg, .svn and node_modules too\n --exclude <globs> Paths no assertion looks at, beside each directive's exclude; repeatable\n --ignore-status Execute directives in documents not in force too (see Directives)\n --include-specs Also count matches inside the spec files themselves\n --max-snippets <n> Failure snippets per assertion (default: 5)\n --concurrency <n> Assertions executed in parallel, 1 or more (default: 8)\n --depth <n> impact: follow dependents at most n imports away (default: all)\n --allow-empty Let a run, prove or impact through when no spec file matched, or when\n one pattern matched none beside others that did (not an assertion)\n --color/--no-color Force colour on or off (NO_COLOR, FORCE_COLOR and TERM=dumb are honoured)\n --ascii/--no-ascii Write a report in ASCII, its marks as + x ! o, or with their Unicode\n forms, on any platform. Without either, SPEC_GUARD_ASCII asks for\n ASCII unless it is empty, 0 or false\n -h, --help Show this help\n --version Print the version\n\n An option that is set and names nothing is refused, exit 2, never read as if\n it were not there: an empty --root or spec pattern, --exclude \",\" (--exclude=\n with nothing clears the list), --concurrency 0, a root that is no directory,\n and a value given to an option that takes none, as in --strict=false.\n\n An option given beside its own opposite is refused the same way, in either\n order, since one of the two would go unread: --strict beside --no-strict,\n --color beside --no-color, and each other pair. The same option given twice\n is read as once.\n\n So is an option that takes one value and is given two, since the first of\n them would go unread: --root a --root b, --format json --format sarif, and\n --json beside a --format that names another format. The same value given\n twice is read as once, as --json beside --format json is. --spec and\n --exclude are lists, and each use adds to its list. Such a line is refused\n with --help or --version on it too, as a line with a pair is. And --help\n beside --version is refused, in either order: a line gets one answer.\n\n A spec pattern that matches no file, beside others that do, is refused the\n same way and by name, since none of its rules was read: a run, prove, impact\n and query exit 2. --allow-empty lets the first three through and still names\n it; --watch and mcp carry on, and say which pattern it is; cites names it\n and goes on, and exits 1 for it under --strict (see cites, below).\n\nConfiguration\n package.json in the root can hold specs, exclude, engine, strict,\n allowMissingTargets, allowEmptyScope, ignoreStatus, includeSpecs, defaultSkips,\n maxSnippets and concurrency under \"specGuard\"; a root with no package.json can\n keep them in .spec-guard.json instead, but not in both. A flag wins over the\n file, every on/off option there also takes its opposite (--no-strict,\n --default-skips, ...), and --exclude= with nothing clears exclude.\n \"cites\": [{ \"id\": \"ADR-{n}\", \"files\": \"docs/adr/{n}-*.md\" }] names the\n documents code comments cite; without it, cites reads them off the titles of\n numbered specs.\n\nDirectives\n <!-- @assert-absence target=\"src/\" symbol=\"LegacyGateway\" exclude=\"src/legacy/**\" -->\n <!-- @assert-count target=\"src/\" symbol=\"SessionManager\" expected=\"1\" -->\n <!-- @assert-present file=\"SECURITY.md\" -->\n <!-- @assert-import-cycle target=\"src/\" types=\"ignore\" -->\n <!-- @assert-layers target=\"src/\" order=\"domain, application, infrastructure\" -->\n <!-- @assert-structure target=\"src/\" exclude=\"*.test.ts\" partner=\"[name].test.ts\" -->\n\n Matches inside comments do not count; add comments=\"include\" to count them.\n An assertion whose scope holds no files fails; add allow-empty=\"true\" to allow it.\n A document whose status is draft, proposed, rejected, deprecated, superseded\n or archived is reported and not executed; --ignore-status runs it anyway.\n The status is read in English, whatever language the document is written in:\n status: superseded.\n\nprove adds, changes or removes files in memory only - never on disk - to make\nthe violation each rule forbids, and runs the rule over that tree. A rule that\nstill passes survived, and exits 1; one no violation could be made for is\nunprovable, and exits 1 under --strict.\n\ncites reads comment text only - not strings, not Markdown - for ids such as\nADR-0007, ADR-7 and ADR-007, which are one document. A ghost citation names no\ndocument, and exits 1; a stale one names a document superseded, deprecated,\nrejected or archived, and exits 1 under --strict. A family whose files match no\ndocument exits 2. A spec pattern that matches no file beside others that do is\nnamed on stderr. Without \"cites\" in the configuration the families are read off\nthe specs, so one kept under that pattern was not read and no citation of it\nwas looked for: exit 1 under --strict. Families \"cites\" names lose nothing.\n\nimpact follows the import graph backwards: relative JavaScript, TypeScript and\nPython imports that name a file. Go, Rust, C# and absolute Python imports name\nmodules, and are counted rather than followed; an import that names no file is\nlisted, never guessed at.\n\nquery answers from the specs alone, without reading the codebase, so it works\nfor a file that does not exist yet. mcp offers the same answer, a check and\nimpact's, as the tools get_architectural_rules, check_architecture and\nget_dependents.\n\nExit codes\n 0 all assertions passed 1 an assertion failed, or none ran under --strict\n 2 spec-guard could not run 130 a --watch session was stopped";
104
+ export declare const HELP = "spec-guard - Executable architecture assertions for Markdown specs & ADRs\n\nUsage\n spec-guard [patterns...] [options] execute the directives in the specs\n spec-guard query <paths...> [options] list the rules in force for files or directories\n spec-guard mcp [options] serve the rules to an AI agent over MCP on stdio\n spec-guard prove [patterns...] [options]\n show each rule a violation of itself, in memory, and report any that pass\n spec-guard cites [paths...] [options] check that each spec a code comment cites exists and is in force\n spec-guard impact <paths...> [options] the files that depend on each path, and the rules in play there\n\nPatterns\n Globs or paths to the Markdown specs to execute. A directory expands to the\n Markdown files inside it. Defaults to \"docs/**/*.md\" when omitted. query,\n mcp, cites and impact take theirs from --spec.\n\nOptions\n -r, --root <path> Codebase root that assertions are resolved against, a directory (default: cwd)\n --spec <pattern> A spec glob or path; repeatable (default: \"docs/**/*.md\")\n -v, --verbose Print passing assertions too\n --watch Run again as the tree changes, until Ctrl+C (human output only)\n --fail-fast Stop at the first failing assertion\n --json Emit a machine-readable JSON report (same as --format json)\n --format <name> human | json | sarif | github | gitlab (sarif uploads to code scanning,\n github annotates a pull request from the log, gitlab is Code Quality)\n --engine <name> auto | rg | js (default: auto - scanner for small trees, ripgrep for big ones)\n ripgrep is rg on PATH, or the program SPEC_GUARD_RG names; where that\n is no ripgrep that runs, rg is exit 2 and auto leaves it to the scanner\n --strict Treat analysis that could not be completed, and a run that\n executed no assertion, as a failure\n --allow-missing-targets\n Tolerate target paths that do not exist (they fail by default)\n --allow-empty-scope Tolerate assertions whose scope holds no files (they fail by default)\n --print-baseline Print the baseline=\"...\" that would exempt today's violations, and exit\n --no-default-skips Search .git, .hg, .svn and node_modules too, and the other git work trees\n below the root\n --exclude <globs> Paths no assertion looks at, beside each directive's exclude; repeatable\n --ignore-status Execute directives in documents not in force too (see Directives)\n --include-specs Also count matches inside the spec files themselves\n --max-snippets <n> Failure snippets per assertion (default: 5)\n --concurrency <n> Assertions executed in parallel, 1 or more (default: 8)\n --depth <n> impact: follow dependents at most n imports away (default: all)\n --allow-empty Let a run, prove or impact through when no spec file matched, or when\n one pattern matched none beside others that did (not an assertion)\n --color/--no-color Force colour on or off (NO_COLOR, FORCE_COLOR and TERM=dumb are honoured)\n --ascii/--no-ascii Write a report in ASCII, its marks as + x ! o, or with their Unicode\n forms, on any platform. Without either, SPEC_GUARD_ASCII asks for\n ASCII unless it is empty, 0 or false\n -h, --help Show this help\n --version Print the version\n\n An option that is set and names nothing is refused, exit 2, never read as if\n it were not there: an empty --root or spec pattern, --exclude \",\" (--exclude=\n with nothing clears the list), --concurrency 0, a root that is no directory,\n and a value given to an option that takes none, as in --strict=false.\n\n An option given beside its own opposite is refused the same way, in either\n order, since one of the two would go unread: --strict beside --no-strict,\n --color beside --no-color, and each other pair. The same option given twice\n is read as once.\n\n So is an option that takes one value and is given two, since the first of\n them would go unread: --root a --root b, --format json --format sarif, and\n --json beside a --format that names another format. The same value given\n twice is read as once, as --json beside --format json is, and on Windows\n a drive letter names its volume in either case, so --root C:\\x beside\n --root c:\\x is one root. --spec and --exclude are lists, and each use adds\n to its list. Such a line is refused with --help or --version on it too, as\n a line with a pair is. And --help beside --version is refused, in either\n order: a line gets one answer.\n\n A spec pattern that matches no file, beside others that do, is refused the\n same way and by name, since none of its rules was read: a run, prove, impact\n and query exit 2. --allow-empty lets the first three through and still names\n it; --watch and mcp carry on, and say which pattern it is; cites names it\n and goes on, and exits 1 for it under --strict (see cites, below).\n\nConfiguration\n package.json in the root can hold specs, exclude, engine, strict,\n allowMissingTargets, allowEmptyScope, ignoreStatus, includeSpecs, defaultSkips,\n maxSnippets and concurrency under \"specGuard\"; a root with no package.json can\n keep them in .spec-guard.json instead, but not in both. A flag wins over the\n file, every on/off option there also takes its opposite (--no-strict,\n --default-skips, ...), and --exclude= with nothing clears exclude.\n \"cites\": [{ \"id\": \"ADR-{n}\", \"files\": \"docs/adr/{n}-*.md\" }] names the\n documents code comments cite; without it, cites reads them off the titles of\n numbered specs.\n\nDirectives\n <!-- @assert-absence target=\"src/\" symbol=\"LegacyGateway\" exclude=\"src/legacy/**\" -->\n <!-- @assert-count target=\"src/\" symbol=\"SessionManager\" expected=\"1\" -->\n <!-- @assert-present file=\"SECURITY.md\" -->\n <!-- @assert-import-cycle target=\"src/\" types=\"ignore\" -->\n <!-- @assert-layers target=\"src/\" order=\"domain, application, infrastructure\" -->\n <!-- @assert-structure target=\"src/\" exclude=\"*.test.ts\" partner=\"[name].test.ts\" -->\n\n Matches inside comments do not count; add comments=\"include\" to count them.\n An assertion whose scope holds no files fails; add allow-empty=\"true\" to allow it.\n A document whose status is draft, proposed, rejected, deprecated, superseded\n or archived is reported and not executed; --ignore-status runs it anyway.\n The status is read in English, whatever language the document is written in:\n status: superseded.\n\nprove adds, changes or removes files in memory only - never on disk - to make\nthe violation each rule forbids, and runs the rule over that tree. A rule that\nstill passes survived, and exits 1; one no violation could be made for is\nunprovable, and exits 1 under --strict.\n\ncites reads comment text only - not strings, not Markdown - for ids such as\nADR-0007, ADR-7 and ADR-007, which are one document. A ghost citation names no\ndocument, and exits 1; a stale one names a document superseded, deprecated,\nrejected or archived, and exits 1 under --strict. A family whose files match no\ndocument exits 2. A spec pattern that matches no file beside others that do is\nnamed on stderr. Without \"cites\" in the configuration the families are read off\nthe specs, so one kept under that pattern was not read and no citation of it\nwas looked for: exit 1 under --strict. Families \"cites\" names lose nothing.\n\nimpact follows the import graph backwards: relative JavaScript, TypeScript and\nPython imports that name a file. Go, Rust, C# and absolute Python imports name\nmodules, and are counted rather than followed; an import that names no file is\nlisted, never guessed at.\n\nquery answers from the specs alone, without reading the codebase, so it works\nfor a file that does not exist yet. mcp offers the same answer, a check and\nimpact's, as the tools get_architectural_rules, check_architecture and\nget_dependents.\n\nExit codes\n 0 all assertions passed 1 an assertion failed, or none ran under --strict\n 2 spec-guard could not run 130 a --watch session was stopped";
105
+ /**
106
+ * A resolved root as two of them are compared. On Windows a drive letter
107
+ * names its volume in either case, so `--root C:\x` beside `--root c:\x` is
108
+ * one directory asked for twice (spec-core's ADR-0005, amended 2026-10-19).
109
+ * A resolved path starts with its drive letter there, and with a separator,
110
+ * which has no case, everywhere else and for a UNC path: so the first
111
+ * character is the one folded, on every host. The rest of the path is the
112
+ * disk's to tell apart, and is compared as resolved. Folded down instead of
113
+ * up, two letters compare alike, so that mutant is equivalent. So is the
114
+ * whole path folded with the rest of it added as resolved, `.charAt(0)`
115
+ * taken off: two keys made so are equal exactly where the first characters
116
+ * fold alike and the rest is the same, as two made by this line are.
117
+ */
118
+ export declare function comparedRoot(resolved: string): string;
105
119
  /** Minimal, dependency-free argv parser. Supports `--flag value` and `--flag=value`. */
106
120
  export declare function parseArgs(argv: read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scope Tolerate assertions whose scope holds no files (they fail by default)
101
101
  --print-baseline Print the baseline="..." that would exempt today's violations, and exit
102
- --no-default-skips Search .git, .hg, .svn and node_modules too
102
+ --no-default-skips Search .git, .hg, .svn and node_modules too, and the other git work trees
103
+ below the root
103
104
  --exclude <globs> Paths no assertion looks at, beside each directive's exclude; repeatable
104
105
  --ignore-status Execute directives in documents not in force too (see Directives)
105
106
  --include-specs Also count matches inside the spec files themselves
@@ -128,10 +129,12 @@ Options
128
129
  So is an option that takes one value and is given two, since the first of
129
130
  them would go unread: --root a --root b, --format json --format sarif, and
130
131
  --json beside a --format that names another format. The same value given
131
- twice is read as once, as --json beside --format json is. --spec and
132
- --exclude are lists, and each use adds to its list. Such a line is refused
133
- with --help or --version on it too, as a line with a pair is. And --help
134
- beside --version is refused, in either order: a line gets one answer.
132
+ twice is read as once, as --json beside --format json is, and on Windows
133
+ a drive letter names its volume in either case, so --root C:\\x beside
134
+ --root c:\\x is one root. --spec and --exclude are lists, and each use adds
135
+ to its list. Such a line is refused with --help or --version on it too, as
136
+ a line with a pair is. And --help beside --version is refused, in either
137
+ order: a line gets one answer.
135
138
 
136
139
  A spec pattern that matches no file, beside others that do, is refused the
137
140
  same way and by name, since none of its rules was read: a run, prove, impact
@@ -308,6 +311,22 @@ const NOT_WITH_WATCH = [
308
311
  ];
309
312
  /** The long name of an option, whichever way it was spelled. */
310
313
  const LONG_NAMES = { '-v': '--verbose', '-r': '--root', '-h': '--help' };
314
+ /**
315
+ * A resolved root as two of them are compared. On Windows a drive letter
316
+ * names its volume in either case, so `--root C:\x` beside `--root c:\x` is
317
+ * one directory asked for twice (spec-core's ADR-0005, amended 2026-10-19).
318
+ * A resolved path starts with its drive letter there, and with a separator,
319
+ * which has no case, everywhere else and for a UNC path: so the first
320
+ * character is the one folded, on every host. The rest of the path is the
321
+ * disk's to tell apart, and is compared as resolved. Folded down instead of
322
+ * up, two letters compare alike, so that mutant is equivalent. So is the
323
+ * whole path folded with the rest of it added as resolved, `.charAt(0)`
324
+ * taken off: two keys made so are equal exactly where the first characters
325
+ * fold alike and the rest is the same, as two made by this line are.
326
+ */
327
+ export function comparedRoot(resolved) {
328
+ return `${resolved.charAt(0).toUpperCase()}${resolved.slice(1)}`;
329
+ }
311
330
  /** Minimal, dependency-free argv parser. Supports `--flag value` and `--flag=value`. */
312
331
  export function parseArgs(argv, cwd) {
313
332
  const command = COMMANDS.has(argv[0]) ? argv[0] : 'check';
@@ -512,7 +531,7 @@ export function parseArgs(argv, cwd) {
512
531
  throw new UsageError(`Option ${name} expects a directory, got ${JSON.stringify(value)}. Name one, or leave the option out to run in the working directory.`);
513
532
  }
514
533
  options.root = path.resolve(cwd, value);
515
- asks(options.root, value);
534
+ asks(comparedRoot(options.root), value);
516
535
  break;
517
536
  }
518
537
  case '--spec':