archsutra-ai 0.1.4 → 0.2.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 (113) hide show
  1. package/CHANGELOG.md +56 -6
  2. package/README.md +84 -12
  3. package/dist/audit.js +125 -44
  4. package/dist/cli.js +184 -96
  5. package/dist/drift.js +29 -15
  6. package/dist/fsutil.js +117 -20
  7. package/dist/history.js +40 -0
  8. package/dist/html.js +10 -8
  9. package/dist/map.js +26 -5
  10. package/dist/mcp.js +70 -55
  11. package/dist/redact.js +24 -11
  12. package/dist/report.js +69 -19
  13. package/dist/rules-extra.js +59 -0
  14. package/dist/secret-patterns.js +69 -0
  15. package/dist/suppress.js +31 -19
  16. package/dist/verify.js +2 -2
  17. package/dist/write.js +71 -0
  18. package/docs/architecture/overview.html +29 -12
  19. package/docs/architecture/overview.md +2 -2
  20. package/docs/architecture/threat-model.html +28 -11
  21. package/docs/assets/charts/coverage-dark.svg +11 -0
  22. package/docs/assets/charts/coverage.svg +11 -0
  23. package/docs/assets/charts/finding-anatomy-dark.svg +20 -0
  24. package/docs/assets/charts/finding-anatomy.svg +20 -0
  25. package/docs/assets/charts/pipeline-dark.svg +13 -0
  26. package/docs/assets/charts/pipeline.svg +13 -0
  27. package/docs/assets/charts/precision-by-batch-dark.svg +12 -0
  28. package/docs/assets/charts/precision-by-batch.svg +12 -0
  29. package/docs/assets/charts/precision-by-rule-dark.svg +12 -0
  30. package/docs/assets/charts/precision-by-rule.svg +12 -0
  31. package/docs/assets/charts/sample-findings-by-severity-dark.svg +11 -0
  32. package/docs/assets/charts/sample-findings-by-severity.svg +11 -0
  33. package/docs/assets/charts/scan-time-dark.svg +11 -0
  34. package/docs/assets/charts/scan-time.svg +11 -0
  35. package/docs/assets/site.css +259 -138
  36. package/docs/assets/site.js +92 -6
  37. package/docs/community/good-first-issues.html +28 -11
  38. package/docs/compatibility/matrix.html +28 -11
  39. package/docs/compatibility/smoke-tests/index.html +28 -11
  40. package/docs/decisions/ADR-0001-deterministic-cli-plus-ide-skills.html +28 -11
  41. package/docs/guides/cheat-sheet.html +100 -0
  42. package/docs/guides/cheat-sheet.md +146 -0
  43. package/docs/guides/ci-recipes.html +170 -0
  44. package/docs/guides/ci-recipes.md +176 -0
  45. package/docs/guides/evidence-at-a-glance.html +93 -0
  46. package/docs/guides/evidence-at-a-glance.md +65 -0
  47. package/docs/guides/getting-started.html +151 -0
  48. package/docs/guides/getting-started.md +160 -0
  49. package/docs/guides/how-it-works.html +161 -0
  50. package/docs/guides/how-it-works.md +148 -0
  51. package/docs/guides/mcp-server.html +99 -0
  52. package/docs/guides/mcp-server.md +81 -0
  53. package/docs/guides/reading-a-report.html +119 -0
  54. package/docs/guides/reading-a-report.md +111 -0
  55. package/docs/guides/real-world-scenarios.html +287 -0
  56. package/docs/guides/real-world-scenarios.md +377 -0
  57. package/docs/handbook/01-executive-summary.html +30 -13
  58. package/docs/handbook/01-executive-summary.md +2 -2
  59. package/docs/handbook/02-functional-specification.html +30 -13
  60. package/docs/handbook/02-functional-specification.md +3 -3
  61. package/docs/handbook/03-technical-specification.html +31 -14
  62. package/docs/handbook/03-technical-specification.md +3 -3
  63. package/docs/handbook/04-architecture.html +29 -12
  64. package/docs/handbook/04-architecture.md +1 -1
  65. package/docs/handbook/05-user-guide.html +33 -15
  66. package/docs/handbook/05-user-guide.md +5 -4
  67. package/docs/handbook/06-cli-reference.html +52 -16
  68. package/docs/handbook/06-cli-reference.md +47 -4
  69. package/docs/handbook/07-security-privacy-legal.html +31 -12
  70. package/docs/handbook/07-security-privacy-legal.md +4 -0
  71. package/docs/handbook/08-testing-and-proof.html +32 -15
  72. package/docs/handbook/08-testing-and-proof.md +4 -4
  73. package/docs/handbook/09-compatibility-and-roadmap.html +29 -12
  74. package/docs/handbook/09-compatibility-and-roadmap.md +3 -2
  75. package/docs/handbook/10-contributor-guide.html +29 -12
  76. package/docs/handbook/10-contributor-guide.md +1 -1
  77. package/docs/handbook/11-glossary-and-faq.html +34 -13
  78. package/docs/handbook/11-glossary-and-faq.md +7 -1
  79. package/docs/handbook/12-rule-catalog.html +59 -19
  80. package/docs/handbook/12-rule-catalog.md +62 -5
  81. package/docs/handbook/13-trust-and-assurance.html +29 -12
  82. package/docs/handbook/13-trust-and-assurance.md +1 -1
  83. package/docs/handbook/14-real-world-evaluation.html +28 -11
  84. package/docs/handbook/15-supply-chain-and-release.html +28 -11
  85. package/docs/handbook/16-performance-and-quality-metrics.html +28 -11
  86. package/docs/handbook/16-performance-and-quality-metrics.md +1 -1
  87. package/docs/handbook/README.md +4 -2
  88. package/docs/handbook/index.html +31 -13
  89. package/docs/index.html +101 -51
  90. package/docs/legal/legal-review-brief.html +28 -11
  91. package/docs/legal/trademark-and-name-clearance.html +28 -11
  92. package/docs/proof/accessibility.html +28 -11
  93. package/docs/proof/benchmarks.json +9 -9
  94. package/docs/proof/benchmarks.md +4 -4
  95. package/docs/proof/test-results.txt +56 -40
  96. package/docs/rfc/0001-archsutra-v0.1.html +28 -11
  97. package/docs/sample-report/architecture-register.json +46 -0
  98. package/docs/sample-report/audit-report.html +123 -0
  99. package/docs/sample-report/audit-report.md +314 -0
  100. package/docs/sample-report/current-state.html +77 -0
  101. package/docs/sample-report/current-state.md +51 -0
  102. package/docs/sample-report/findings.json +478 -0
  103. package/docs/sample-report/findings.sarif +754 -0
  104. package/docs/sample-report/index.html +57 -0
  105. package/docs/sample-report/overview.md +11 -0
  106. package/docs/search-index.json +1 -0
  107. package/docs/sitemap.xml +39 -28
  108. package/llms.txt +11 -2
  109. package/package.json +3 -2
  110. package/schemas/findings.schema.json +4 -3
  111. package/skills/architecture-audit/SKILL.md +2 -2
  112. package/skills/architecture-audit/references/report-template.md +1 -1
  113. package/skills/architecture-verification/references/fitness-functions.md +1 -1
@@ -0,0 +1,754 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/sarif-2.1.0.json",
3
+ "version": "2.1.0",
4
+ "runs": [
5
+ {
6
+ "tool": {
7
+ "driver": {
8
+ "name": "ArchSutra AI",
9
+ "semanticVersion": "0.2.0",
10
+ "informationUri": "https://github.com/shahvatsalofficial/archsutra-ai",
11
+ "rules": [
12
+ {
13
+ "id": "AS-SEC-004",
14
+ "name": "DynamicCodeOrShellExecution",
15
+ "shortDescription": {
16
+ "text": "Dynamic code or shell execution"
17
+ },
18
+ "fullDescription": {
19
+ "text": "Injection (OWASP A03) frequently starts at eval/exec style sinks."
20
+ },
21
+ "help": {
22
+ "text": "Replace with a safe API (argument arrays, parsers, allowlists). Never build commands or code from strings that include external input."
23
+ },
24
+ "helpUri": "https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/12-rule-catalog.md",
25
+ "defaultConfiguration": {
26
+ "level": "error"
27
+ },
28
+ "relationships": [
29
+ {
30
+ "target": {
31
+ "id": "95",
32
+ "toolComponent": {
33
+ "name": "CWE"
34
+ }
35
+ },
36
+ "kinds": [
37
+ "superset"
38
+ ]
39
+ }
40
+ ],
41
+ "properties": {
42
+ "precision": "medium",
43
+ "tags": [
44
+ "security",
45
+ "external/cwe/cwe-95"
46
+ ],
47
+ "security-severity": "8.0"
48
+ }
49
+ },
50
+ {
51
+ "id": "AS-SEC-005",
52
+ "name": "SQLBuiltByStringConcatenationOrInterpolation",
53
+ "shortDescription": {
54
+ "text": "SQL built by string concatenation or interpolation"
55
+ },
56
+ "fullDescription": {
57
+ "text": "Parameterized queries are the primary defence against injection (OWASP A03)."
58
+ },
59
+ "help": {
60
+ "text": "Use parameterized queries or the ORM query builder. Allowlist any dynamic identifiers."
61
+ },
62
+ "helpUri": "https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/12-rule-catalog.md",
63
+ "defaultConfiguration": {
64
+ "level": "error"
65
+ },
66
+ "relationships": [
67
+ {
68
+ "target": {
69
+ "id": "89",
70
+ "toolComponent": {
71
+ "name": "CWE"
72
+ }
73
+ },
74
+ "kinds": [
75
+ "superset"
76
+ ]
77
+ }
78
+ ],
79
+ "properties": {
80
+ "precision": "medium",
81
+ "tags": [
82
+ "security",
83
+ "external/cwe/cwe-89"
84
+ ],
85
+ "security-severity": "8.0"
86
+ }
87
+ },
88
+ {
89
+ "id": "AS-SEC-006",
90
+ "name": "TLSCertificateVerificationDisabled",
91
+ "shortDescription": {
92
+ "text": "TLS certificate verification disabled"
93
+ },
94
+ "fullDescription": {
95
+ "text": "Disabled verification removes the authenticity guarantee of TLS."
96
+ },
97
+ "help": {
98
+ "text": "Enable verification. For private CAs, trust the CA bundle explicitly instead of disabling checks."
99
+ },
100
+ "helpUri": "https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/12-rule-catalog.md",
101
+ "defaultConfiguration": {
102
+ "level": "error"
103
+ },
104
+ "relationships": [
105
+ {
106
+ "target": {
107
+ "id": "295",
108
+ "toolComponent": {
109
+ "name": "CWE"
110
+ }
111
+ },
112
+ "kinds": [
113
+ "superset"
114
+ ]
115
+ }
116
+ ],
117
+ "properties": {
118
+ "precision": "high",
119
+ "tags": [
120
+ "security",
121
+ "external/cwe/cwe-295"
122
+ ],
123
+ "security-severity": "8.0"
124
+ }
125
+ },
126
+ {
127
+ "id": "AS-ARC-001",
128
+ "name": "CircularDependencyBetweenModulesSrcApiSrcDb",
129
+ "shortDescription": {
130
+ "text": "Circular dependency between modules (src/api <-> src/db)"
131
+ },
132
+ "fullDescription": {
133
+ "text": "Acyclic dependencies keep change local and make extraction (e.g. to a service) feasible."
134
+ },
135
+ "help": {
136
+ "text": "Extract the shared concept into a lower-level module or invert one dependency behind an interface."
137
+ },
138
+ "helpUri": "https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/12-rule-catalog.md",
139
+ "defaultConfiguration": {
140
+ "level": "warning"
141
+ },
142
+ "properties": {
143
+ "precision": "high",
144
+ "tags": [
145
+ "architecture"
146
+ ]
147
+ }
148
+ },
149
+ {
150
+ "id": "AS-ARC-002",
151
+ "name": "LowerLayerDependsOnAHigherLayer",
152
+ "shortDescription": {
153
+ "text": "Lower layer depends on a higher layer"
154
+ },
155
+ "fullDescription": {
156
+ "text": "Layer direction is what keeps business and data logic independent of delivery mechanisms."
157
+ },
158
+ "help": {
159
+ "text": "Move shared types down, or introduce an interface owned by the lower layer and implemented above."
160
+ },
161
+ "helpUri": "https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/12-rule-catalog.md",
162
+ "defaultConfiguration": {
163
+ "level": "warning"
164
+ },
165
+ "properties": {
166
+ "precision": "medium",
167
+ "tags": [
168
+ "architecture"
169
+ ]
170
+ }
171
+ },
172
+ {
173
+ "id": "AS-OPS-001",
174
+ "name": "NoCIPipelineConfigurationFound",
175
+ "shortDescription": {
176
+ "text": "No CI pipeline configuration found"
177
+ },
178
+ "fullDescription": {
179
+ "text": "Automated gates are the cheapest enforcement of architectural rules."
180
+ },
181
+ "help": {
182
+ "text": "Add CI that builds, tests, lints and runs dependency/secret scans on every pull request."
183
+ },
184
+ "helpUri": "https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/12-rule-catalog.md",
185
+ "defaultConfiguration": {
186
+ "level": "warning"
187
+ },
188
+ "properties": {
189
+ "precision": "medium",
190
+ "tags": [
191
+ "operability"
192
+ ]
193
+ }
194
+ },
195
+ {
196
+ "id": "AS-OPS-002",
197
+ "name": "NoTestFilesFound",
198
+ "shortDescription": {
199
+ "text": "No test files found"
200
+ },
201
+ "fullDescription": {
202
+ "text": "Tests are the precondition for safe evolution."
203
+ },
204
+ "help": {
205
+ "text": "Add characterization tests around critical paths before changing them."
206
+ },
207
+ "helpUri": "https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/12-rule-catalog.md",
208
+ "defaultConfiguration": {
209
+ "level": "warning"
210
+ },
211
+ "properties": {
212
+ "precision": "medium",
213
+ "tags": [
214
+ "maintainability"
215
+ ]
216
+ }
217
+ },
218
+ {
219
+ "id": "AS-OPS-003",
220
+ "name": "ContainerRunsAsRoot",
221
+ "shortDescription": {
222
+ "text": "Container runs as root"
223
+ },
224
+ "fullDescription": {
225
+ "text": "Non-root containers are baseline hardening."
226
+ },
227
+ "help": {
228
+ "text": "Create an unprivileged user and add `USER <name>` before the entrypoint."
229
+ },
230
+ "helpUri": "https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/12-rule-catalog.md",
231
+ "defaultConfiguration": {
232
+ "level": "warning"
233
+ },
234
+ "relationships": [
235
+ {
236
+ "target": {
237
+ "id": "250",
238
+ "toolComponent": {
239
+ "name": "CWE"
240
+ }
241
+ },
242
+ "kinds": [
243
+ "superset"
244
+ ]
245
+ }
246
+ ],
247
+ "properties": {
248
+ "precision": "high",
249
+ "tags": [
250
+ "security",
251
+ "external/cwe/cwe-250"
252
+ ],
253
+ "security-severity": "5.5"
254
+ }
255
+ },
256
+ {
257
+ "id": "AS-SUP-001",
258
+ "name": "DependencyManifestWithoutLockfile",
259
+ "shortDescription": {
260
+ "text": "Dependency manifest without lockfile"
261
+ },
262
+ "fullDescription": {
263
+ "text": "Lockfiles pin the exact dependency tree that was tested."
264
+ },
265
+ "help": {
266
+ "text": "Commit the lockfile and install with `npm ci` (or equivalent) in CI."
267
+ },
268
+ "helpUri": "https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/12-rule-catalog.md",
269
+ "defaultConfiguration": {
270
+ "level": "warning"
271
+ },
272
+ "relationships": [
273
+ {
274
+ "target": {
275
+ "id": "1357",
276
+ "toolComponent": {
277
+ "name": "CWE"
278
+ }
279
+ },
280
+ "kinds": [
281
+ "superset"
282
+ ]
283
+ }
284
+ ],
285
+ "properties": {
286
+ "precision": "high",
287
+ "tags": [
288
+ "supply-chain",
289
+ "external/cwe/cwe-1357"
290
+ ]
291
+ }
292
+ },
293
+ {
294
+ "id": "AS-SUP-002",
295
+ "name": "UnpinnedDependencyRangesLatestOr",
296
+ "shortDescription": {
297
+ "text": "Unpinned dependency ranges (\"latest\" or \"*\")"
298
+ },
299
+ "fullDescription": {
300
+ "text": "Unbounded ranges defeat review and reproducibility."
301
+ },
302
+ "help": {
303
+ "text": "Use a bounded semver range and rely on the lockfile plus automated update PRs."
304
+ },
305
+ "helpUri": "https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/12-rule-catalog.md",
306
+ "defaultConfiguration": {
307
+ "level": "warning"
308
+ },
309
+ "relationships": [
310
+ {
311
+ "target": {
312
+ "id": "1357",
313
+ "toolComponent": {
314
+ "name": "CWE"
315
+ }
316
+ },
317
+ "kinds": [
318
+ "superset"
319
+ ]
320
+ }
321
+ ],
322
+ "properties": {
323
+ "precision": "high",
324
+ "tags": [
325
+ "supply-chain",
326
+ "external/cwe/cwe-1357"
327
+ ]
328
+ }
329
+ },
330
+ {
331
+ "id": "AS-DOC-001",
332
+ "name": "NoREADMEAtRepositoryRoot",
333
+ "shortDescription": {
334
+ "text": "No README at repository root"
335
+ },
336
+ "fullDescription": {
337
+ "text": "Docs drift starts when the entry point is missing."
338
+ },
339
+ "help": {
340
+ "text": "Add a README with purpose, setup, run, test, and an architecture section."
341
+ },
342
+ "helpUri": "https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/12-rule-catalog.md",
343
+ "defaultConfiguration": {
344
+ "level": "note"
345
+ },
346
+ "properties": {
347
+ "precision": "high",
348
+ "tags": [
349
+ "developer-experience"
350
+ ]
351
+ }
352
+ },
353
+ {
354
+ "id": "AS-SUP-003",
355
+ "name": "ContainerBaseImageNotPinned",
356
+ "shortDescription": {
357
+ "text": "Container base image not pinned"
358
+ },
359
+ "fullDescription": {
360
+ "text": "Pinning is a core supply-chain control."
361
+ },
362
+ "help": {
363
+ "text": "Pin to a specific version tag, ideally with a digest, and update via automated PRs."
364
+ },
365
+ "helpUri": "https://github.com/shahvatsalofficial/archsutra-ai/blob/main/docs/handbook/12-rule-catalog.md",
366
+ "defaultConfiguration": {
367
+ "level": "note"
368
+ },
369
+ "relationships": [
370
+ {
371
+ "target": {
372
+ "id": "1357",
373
+ "toolComponent": {
374
+ "name": "CWE"
375
+ }
376
+ },
377
+ "kinds": [
378
+ "superset"
379
+ ]
380
+ }
381
+ ],
382
+ "properties": {
383
+ "precision": "medium",
384
+ "tags": [
385
+ "supply-chain",
386
+ "external/cwe/cwe-1357"
387
+ ]
388
+ }
389
+ }
390
+ ]
391
+ }
392
+ },
393
+ "taxonomies": [
394
+ {
395
+ "name": "CWE",
396
+ "organization": "MITRE",
397
+ "shortDescription": {
398
+ "text": "Common Weakness Enumeration"
399
+ },
400
+ "taxa": [
401
+ {
402
+ "id": "1357"
403
+ },
404
+ {
405
+ "id": "250"
406
+ },
407
+ {
408
+ "id": "295"
409
+ },
410
+ {
411
+ "id": "89"
412
+ },
413
+ {
414
+ "id": "95"
415
+ }
416
+ ]
417
+ }
418
+ ],
419
+ "originalUriBaseIds": {
420
+ "%SRCROOT%": {
421
+ "description": {
422
+ "text": "Root of the scanned project"
423
+ }
424
+ }
425
+ },
426
+ "automationDetails": {
427
+ "id": "archsutra/"
428
+ },
429
+ "invocations": [
430
+ {
431
+ "executionSuccessful": true,
432
+ "properties": {
433
+ "filesScanned": 7,
434
+ "truncated": false
435
+ }
436
+ }
437
+ ],
438
+ "results": [
439
+ {
440
+ "ruleId": "AS-SEC-004",
441
+ "level": "error",
442
+ "message": {
443
+ "text": "Dynamic code or shell execution. If any input reaches these calls, an attacker can execute arbitrary code or commands."
444
+ },
445
+ "locations": [
446
+ {
447
+ "physicalLocation": {
448
+ "artifactLocation": {
449
+ "uri": "src/services/user.ts",
450
+ "uriBaseId": "%SRCROOT%"
451
+ },
452
+ "region": {
453
+ "startLine": 3,
454
+ "endLine": 3
455
+ }
456
+ }
457
+ }
458
+ ],
459
+ "partialFingerprints": {
460
+ "archsutra/v1": "5db30390c4ac1c9a8a18c155894b66fe"
461
+ }
462
+ },
463
+ {
464
+ "ruleId": "AS-SEC-005",
465
+ "level": "error",
466
+ "message": {
467
+ "text": "SQL built by string concatenation or interpolation. Possible SQL injection and unpredictable query plans."
468
+ },
469
+ "locations": [
470
+ {
471
+ "physicalLocation": {
472
+ "artifactLocation": {
473
+ "uri": "src/services/user.ts",
474
+ "uriBaseId": "%SRCROOT%"
475
+ },
476
+ "region": {
477
+ "startLine": 2,
478
+ "endLine": 2
479
+ }
480
+ }
481
+ }
482
+ ],
483
+ "partialFingerprints": {
484
+ "archsutra/v1": "3272b8ad3541737fdd2866768b0830e3"
485
+ }
486
+ },
487
+ {
488
+ "ruleId": "AS-SEC-006",
489
+ "level": "error",
490
+ "message": {
491
+ "text": "TLS certificate verification disabled. Connections can be intercepted by a man-in-the-middle."
492
+ },
493
+ "locations": [
494
+ {
495
+ "physicalLocation": {
496
+ "artifactLocation": {
497
+ "uri": "src/services/http.ts",
498
+ "uriBaseId": "%SRCROOT%"
499
+ },
500
+ "region": {
501
+ "startLine": 2,
502
+ "endLine": 2
503
+ }
504
+ }
505
+ }
506
+ ],
507
+ "partialFingerprints": {
508
+ "archsutra/v1": "600a4fbe21f3c9ceee289f36d59609ad"
509
+ }
510
+ },
511
+ {
512
+ "ruleId": "AS-ARC-001",
513
+ "level": "warning",
514
+ "message": {
515
+ "text": "Circular dependency between modules (src/api <-> src/db). Cyclic modules cannot be understood, tested, versioned or deployed independently."
516
+ },
517
+ "locations": [
518
+ {
519
+ "physicalLocation": {
520
+ "artifactLocation": {
521
+ "uri": "src/api/routes.ts",
522
+ "uriBaseId": "%SRCROOT%"
523
+ },
524
+ "region": {
525
+ "startLine": 1,
526
+ "endLine": 1
527
+ }
528
+ }
529
+ }
530
+ ],
531
+ "partialFingerprints": {
532
+ "archsutra/v1": "920f0f27e7eda4856274305641785305"
533
+ }
534
+ },
535
+ {
536
+ "ruleId": "AS-ARC-001",
537
+ "level": "warning",
538
+ "message": {
539
+ "text": "Circular dependency between modules (src/api <-> src/db). Cyclic modules cannot be understood, tested, versioned or deployed independently."
540
+ },
541
+ "locations": [
542
+ {
543
+ "physicalLocation": {
544
+ "artifactLocation": {
545
+ "uri": "src/db/repo.ts",
546
+ "uriBaseId": "%SRCROOT%"
547
+ },
548
+ "region": {
549
+ "startLine": 1,
550
+ "endLine": 1
551
+ }
552
+ }
553
+ }
554
+ ],
555
+ "partialFingerprints": {
556
+ "archsutra/v1": "d1bf44794852fed35aec468292570443"
557
+ }
558
+ },
559
+ {
560
+ "ruleId": "AS-ARC-002",
561
+ "level": "warning",
562
+ "message": {
563
+ "text": "Lower layer depends on a higher layer. Data or service code that imports presentation code inverts the intended dependency direction and blocks reuse."
564
+ },
565
+ "locations": [
566
+ {
567
+ "physicalLocation": {
568
+ "artifactLocation": {
569
+ "uri": "src/db/repo.ts",
570
+ "uriBaseId": "%SRCROOT%"
571
+ },
572
+ "region": {
573
+ "startLine": 1,
574
+ "endLine": 1
575
+ }
576
+ }
577
+ }
578
+ ],
579
+ "partialFingerprints": {
580
+ "archsutra/v1": "c2ae2cdb1d94957ab948aaafaa116191"
581
+ }
582
+ },
583
+ {
584
+ "ruleId": "AS-OPS-001",
585
+ "level": "warning",
586
+ "message": {
587
+ "text": "No CI pipeline configuration found. Regressions and architecture drift are not caught automatically."
588
+ },
589
+ "locations": [
590
+ {
591
+ "physicalLocation": {
592
+ "artifactLocation": {
593
+ "uri": "README.md",
594
+ "uriBaseId": "%SRCROOT%"
595
+ },
596
+ "region": {
597
+ "startLine": 1,
598
+ "endLine": 1
599
+ }
600
+ }
601
+ }
602
+ ],
603
+ "partialFingerprints": {
604
+ "archsutra/v1": "aa877a2a6d740da29dfa5e9a93dff8e4"
605
+ }
606
+ },
607
+ {
608
+ "ruleId": "AS-OPS-002",
609
+ "level": "warning",
610
+ "message": {
611
+ "text": "No test files found. Refactoring and modernization are high-risk without a safety net."
612
+ },
613
+ "locations": [
614
+ {
615
+ "physicalLocation": {
616
+ "artifactLocation": {
617
+ "uri": "README.md",
618
+ "uriBaseId": "%SRCROOT%"
619
+ },
620
+ "region": {
621
+ "startLine": 1,
622
+ "endLine": 1
623
+ }
624
+ }
625
+ }
626
+ ],
627
+ "partialFingerprints": {
628
+ "archsutra/v1": "cff78b889788c7e9f11c8268bf75577b"
629
+ }
630
+ },
631
+ {
632
+ "ruleId": "AS-OPS-003",
633
+ "level": "warning",
634
+ "message": {
635
+ "text": "Container runs as root. A compromised process has root inside the container, easing escape and file tampering."
636
+ },
637
+ "locations": [
638
+ {
639
+ "physicalLocation": {
640
+ "artifactLocation": {
641
+ "uri": "Dockerfile",
642
+ "uriBaseId": "%SRCROOT%"
643
+ },
644
+ "region": {
645
+ "startLine": 1,
646
+ "endLine": 4
647
+ }
648
+ }
649
+ }
650
+ ],
651
+ "partialFingerprints": {
652
+ "archsutra/v1": "33d0a482fbf87a1276926daa236c8875"
653
+ }
654
+ },
655
+ {
656
+ "ruleId": "AS-SUP-001",
657
+ "level": "warning",
658
+ "message": {
659
+ "text": "Dependency manifest without lockfile. Installs are not reproducible; a compromised new release can enter automatically."
660
+ },
661
+ "locations": [
662
+ {
663
+ "physicalLocation": {
664
+ "artifactLocation": {
665
+ "uri": "package.json",
666
+ "uriBaseId": "%SRCROOT%"
667
+ },
668
+ "region": {
669
+ "startLine": 1,
670
+ "endLine": 1
671
+ }
672
+ }
673
+ }
674
+ ],
675
+ "partialFingerprints": {
676
+ "archsutra/v1": "2358f27ef65dcacbdc2ad7c08e2ef12c"
677
+ }
678
+ },
679
+ {
680
+ "ruleId": "AS-SUP-002",
681
+ "level": "warning",
682
+ "message": {
683
+ "text": "Unpinned dependency ranges (\"latest\" or \"*\"). Any future release, including a malicious one, is accepted."
684
+ },
685
+ "locations": [
686
+ {
687
+ "physicalLocation": {
688
+ "artifactLocation": {
689
+ "uri": "package.json",
690
+ "uriBaseId": "%SRCROOT%"
691
+ },
692
+ "region": {
693
+ "startLine": 1,
694
+ "endLine": 1
695
+ }
696
+ }
697
+ }
698
+ ],
699
+ "partialFingerprints": {
700
+ "archsutra/v1": "27ec9944ce28e3d43a43a8b1b15e4bdd"
701
+ }
702
+ },
703
+ {
704
+ "ruleId": "AS-DOC-001",
705
+ "level": "note",
706
+ "message": {
707
+ "text": "No README at repository root. New contributors cannot find purpose, setup, or architecture overview."
708
+ },
709
+ "locations": [
710
+ {
711
+ "physicalLocation": {
712
+ "artifactLocation": {
713
+ "uri": "README.md",
714
+ "uriBaseId": "%SRCROOT%"
715
+ },
716
+ "region": {
717
+ "startLine": 1,
718
+ "endLine": 1
719
+ }
720
+ }
721
+ }
722
+ ],
723
+ "partialFingerprints": {
724
+ "archsutra/v1": "6d791d0b510e1f4b185211ef5a6503cf"
725
+ }
726
+ },
727
+ {
728
+ "ruleId": "AS-SUP-003",
729
+ "level": "note",
730
+ "message": {
731
+ "text": "Container base image not pinned. Builds are not reproducible and can silently pick up a compromised or breaking image."
732
+ },
733
+ "locations": [
734
+ {
735
+ "physicalLocation": {
736
+ "artifactLocation": {
737
+ "uri": "Dockerfile",
738
+ "uriBaseId": "%SRCROOT%"
739
+ },
740
+ "region": {
741
+ "startLine": 1,
742
+ "endLine": 1
743
+ }
744
+ }
745
+ }
746
+ ],
747
+ "partialFingerprints": {
748
+ "archsutra/v1": "f0fc85cdeae5abcd031c447d3e1970c6"
749
+ }
750
+ }
751
+ ]
752
+ }
753
+ ]
754
+ }