Commit 3d7e47a
GATE-004: Enable Namespace Deduplication Check (BLOCKING) (#81)
* Initial plan
* Enable GATE-004: Namespace Deduplication Check
- Updated CI workflow to enable GATE-004 (changed continue-on-error from true to false)
- Updated CI governance gates index to mark GATE-004 as Active
- Script check_ata99_registry.py already fully implemented
- Database schema already in place (plc_ontology_schema.sql)
- Tested locally: script runs successfully and checks for duplicate namespace IDs
Co-authored-by: AmedeoPelliccia <164860269+AmedeoPelliccia@users.noreply.github.com>
* Fix GATE-004 duplicate detection logic
- Fixed namespace ID pattern regex (removed line anchors ^ and $)
- Fixed duplicate detection to check scanned entries before registration
- Fixed report generation to use tracked conflicts
- Fixed output display to show conflicts from report
- Tested with duplicate and non-duplicate scenarios
- Exit code 0 for pass, 1 for fail with duplicates
Co-authored-by: AmedeoPelliccia <164860269+AmedeoPelliccia@users.noreply.github.com>
* Address code review feedback for GATE-004
- Removed duplicate conflict tracking (use only checker.conflicts)
- Record all conflict pairs for 3+ duplicates (not just first two)
- Improved finding message to include occurrence count
- Tested with 3-way duplicate scenario
Co-authored-by: AmedeoPelliccia <164860269+AmedeoPelliccia@users.noreply.github.com>
* Fix conflict pair recording and validation consistency
- Record all unique pairs for N duplicates (N*(N-1)/2 pairs)
Previously: 3 duplicates → 2 pairs (A-B, B-C)
Now: 3 duplicates → 3 pairs (A-B, A-C, B-C)
- Changed validation from re.match() to re.search() for consistency
Both scanning and validation now use same matching behavior
Addresses feedback in PR review comment #2674204672 and #2674204685
Co-authored-by: AmedeoPelliccia <164860269+AmedeoPelliccia@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: AmedeoPelliccia <164860269+AmedeoPelliccia@users.noreply.github.com>1 parent 57d4113 commit 3d7e47a
File tree
3 files changed
+70
-31
lines changed- .github/workflows
- scripts
3 files changed
+70
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 197 | + | |
| 198 | + | |
203 | 199 | | |
204 | 200 | | |
205 | 201 | | |
| |||
319 | 315 | | |
320 | 316 | | |
321 | 317 | | |
322 | | - | |
| 318 | + | |
323 | 319 | | |
324 | 320 | | |
325 | 321 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
| 450 | + | |
451 | 451 | | |
452 | | - | |
| 452 | + | |
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
217 | | - | |
218 | 216 | | |
219 | | - | |
| 217 | + | |
220 | 218 | | |
221 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
222 | 227 | | |
223 | 228 | | |
224 | 229 | | |
| |||
248 | 253 | | |
249 | 254 | | |
250 | 255 | | |
| 256 | + | |
251 | 257 | | |
252 | 258 | | |
253 | 259 | | |
254 | 260 | | |
255 | 261 | | |
256 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
257 | 290 | | |
258 | 291 | | |
259 | 292 | | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | 293 | | |
264 | 294 | | |
265 | 295 | | |
266 | 296 | | |
267 | 297 | | |
268 | 298 | | |
269 | | - | |
| 299 | + | |
270 | 300 | | |
271 | 301 | | |
272 | 302 | | |
273 | | - | |
| 303 | + | |
274 | 304 | | |
275 | 305 | | |
276 | 306 | | |
277 | 307 | | |
278 | 308 | | |
279 | 309 | | |
280 | | - | |
| 310 | + | |
281 | 311 | | |
282 | 312 | | |
283 | 313 | | |
284 | 314 | | |
285 | | - | |
| 315 | + | |
286 | 316 | | |
287 | 317 | | |
288 | 318 | | |
| |||
388 | 418 | | |
389 | 419 | | |
390 | 420 | | |
391 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
392 | 435 | | |
393 | 436 | | |
394 | 437 | | |
| |||
0 commit comments