Commit a163f1b
authored
fix: stale-counts policy correction and example-dialogue skip (#38)
The cursor-plugin and mcp-server type-level skip_checks entries in
drift-checker.config.json have been suppressing stale-counts entirely
on 8 of 9 tool repos since v1.7.5. This was a wider suppression than
intended - the policy was meant to exempt narrative-aggregate prose in
AGENTS.md and CLAUDE.md, not silence the check on every file in those
repo types.
Empirical evidence of the over-suppression: the DTD#13 investigation
discovered an off-by-one drift in steam-api-reference/SKILL.md
(TMHSDigital/Steam-Cursor-Plugin#13) that the production drift-check
had been silently missing.
Three changes:
1. Removes the type-level stale-counts entries from
standards/drift-checker.config.json. The cursor-plugin type now
skips nothing; mcp-server still skips required-refs.
2. Adds a hardcoded AGENTS.md / CLAUDE.md skip in stale_counts.py.
The narrative-aggregate convention belongs in the check's logic,
not in repo-level config that over-suppressed.
3. Implements DTD#37: skips counts inside ## Example sections and
on lines beginning with **User:** / **Assistant:** dialogue
markers. Handles the category C false positive identified in
Home-Lab's secrets-management/SKILL.md.
Regression tests added including the Steam off-by-one as a fixture so
that future re-suppression cannot go unnoticed. Existing AGENTS.md-based
pragma and emergency-skip tests were ported to SKILL.md (the only
file type stale-counts now scrutinizes by default in the absence of
hardcoded skips).
Closes #12, closes #37.
Refs #13.
Made-with: Cursor
Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com>1 parent 6bdac4f commit a163f1b
5 files changed
Lines changed: 272 additions & 42 deletions
File tree
- scripts/drift_check/checks
- standards
- tests
- fixtures/drift_check/repo_with_aggregate_counts/skills/sample
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
19 | 34 | | |
20 | 35 | | |
21 | 36 | | |
22 | 37 | | |
23 | 38 | | |
24 | | - | |
| 39 | + | |
25 | 40 | | |
26 | 41 | | |
27 | 42 | | |
| |||
41 | 56 | | |
42 | 57 | | |
43 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
44 | 80 | | |
45 | 81 | | |
46 | 82 | | |
| |||
85 | 121 | | |
86 | 122 | | |
87 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
88 | 152 | | |
89 | 153 | | |
90 | 154 | | |
| |||
94 | 158 | | |
95 | 159 | | |
96 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
97 | 167 | | |
98 | 168 | | |
99 | 169 | | |
| |||
114 | 184 | | |
115 | 185 | | |
116 | 186 | | |
| 187 | + | |
117 | 188 | | |
| 189 | + | |
| 190 | + | |
118 | 191 | | |
119 | 192 | | |
120 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments