Commit ce45b4b
feat(hypatia-rules): HYP-S005 self-consistency heuristics (2026-04-18)
Add three cheap pre-filter heuristics to the CRG overclaim detector that
fire BEFORE the file-tree evidence scan:
1. grade_ge_c_but_early_stage — flags repos claiming C/B/A with
version < 0.5.0 AND completion-percentage < 50 AND no populated
[dogfooding-status]. Catches the civic-connect / bofig / januskey
shape where STATE.a2ml contradicts itself on its own face.
2. grade_b_but_no_external_targets — flags B/A claims without any
[external-targets] or legacy [grade-b-status] entries.
3. grade_a_but_no_field_signal — flags A claims without any
[field-signal] entries.
Reduces full scan cost by whatever fraction of the estate is overclaimed
on its own metadata alone. 2026-04-18 Phase 3 bulk-triage found 17 of 46
self-declared-C repos (~37%) fail the cheapest heuristic without any
file-tree inspection; the full evidence scan now runs only on those that
pass self-consistency.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a26393e commit ce45b4b
1 file changed
Lines changed: 58 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
157 | 215 | | |
158 | 216 | | |
159 | 217 | | |
| |||
0 commit comments