-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAPEX_AUDIT_LLM.yaml
More file actions
2460 lines (2460 loc) · 85.8 KB
/
APEX_AUDIT_LLM.yaml
File metadata and controls
2460 lines (2460 loc) · 85.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
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
152
153
154
155
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
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
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
metadata:
version: "23.2.0"
format: "yaml"
target_model: "claude"
project_name: "vibecoder"
project_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
timestamp: "2026-02-05T19:12:20.356Z"
duration_ms: 96679
summary:
score: 40
max_score: 70
percentage: 57
verdict: "FAILED"
by_severity:
CRITICAL: 2
HIGH: 56
MEDIUM: 32
LOW: 0
INFO: 0
by_cluster:
FOUNDATION:
passed: 5
failed: 2
total: 7
STRUCTURE:
passed: 1
failed: 5
total: 7
SENSATION:
passed: 5
failed: 2
total: 7
INTEGRITY:
passed: 2
failed: 2
total: 7
PERFORMANCE:
passed: 1
failed: 4
total: 7
NEURAL:
passed: 2
failed: 2
total: 7
EVOLUTION:
passed: 2
failed: 5
total: 7
SUPPLY_CHAIN:
passed: 1
failed: 5
total: 7
RESILIENCE:
passed: 0
failed: 7
total: 7
OBSERVABILITY:
passed: 0
failed: 7
total: 7
total_issues: 90
auto_fixable: 6
blocking_deployment: 2
blocking_pr: 56
instructions:
fix_order: "Fix issues in order: CRITICAL -> HIGH -> AUTO-FIXABLE -> MEDIUM -> LOW"
verification: "After each fix, run: pnpm apex audit --gates <gate_id>"
important_notes:
- "CRITICAL issues BLOCK deployment - fix immediately"
- "HIGH issues BLOCK PR merge - fix before review"
- "Auto-fixable issues can be fixed with /heal command"
- "Total estimated fix time: Major overhaul (~738 minutes)"
model_specific:
- "Recommended temperature: 0.3"
- "Maximum tokens: 200,000"
fix_plan:
total_issues: 90
estimated_effort: "Major overhaul (~738 minutes)"
phases:
- phase: 1
name: "Critical Blockers"
description: "Fix deployment-blocking issues immediately"
issue_ids:
- "APEX-G3-0"
- "APEX-G23-0"
estimated_time: "30 minutes"
can_autofix: false
- phase: 2
name: "High Priority"
description: "Fix PR-blocking issues before code review"
issue_ids:
- "APEX-G9-0"
- "APEX-G9-1"
- "APEX-G9-2"
- "APEX-G9-3"
- "APEX-G9-4"
- "APEX-G9-5"
- "APEX-G9-6"
- "APEX-G9-7"
- "APEX-G9-8"
- "APEX-G9-9"
- "APEX-G9-10"
- "APEX-G9-11"
- "APEX-G9-12"
- "APEX-G9-13"
- "APEX-G9-14"
- "APEX-G9-15"
- "APEX-G9-16"
- "APEX-G9-17"
- "APEX-G9-18"
- "APEX-G9-19"
- "APEX-G9-20"
- "APEX-G9-21"
- "APEX-G9-22"
- "APEX-G9-23"
- "APEX-G9-24"
- "APEX-G9-25"
- "APEX-G9-26"
- "APEX-G9-27"
- "APEX-G9-28"
- "APEX-G9-29"
- "APEX-G9-30"
- "APEX-G9-31"
- "APEX-G9-32"
- "APEX-G9-33"
- "APEX-G9-34"
- "APEX-G9-35"
- "APEX-G9-36"
- "APEX-G9-37"
- "APEX-G9-38"
- "APEX-G9-39"
- "APEX-G9-40"
- "APEX-G9-41"
- "APEX-G9-42"
- "APEX-G9-43"
- "APEX-G9-44"
- "APEX-G9-45"
- "APEX-G9-46"
- "APEX-G9-47"
- "APEX-G9-48"
- "APEX-G29-0"
- "APEX-G30-0"
- "APEX-G34-0"
- "APEX-G35-0"
- "APEX-G46-0"
- "APEX-G57-0"
- "APEX-G59-0"
estimated_time: "560 minutes"
can_autofix: true
- phase: 3
name: "Quick Auto-Fixes"
description: "Apply automated fixes for remaining issues"
issue_ids:
- "APEX-G10-0"
- "APEX-G14-0"
- "APEX-G60-0"
- "APEX-G63-0"
estimated_time: "8 minutes"
can_autofix: true
- phase: 4
name: "Manual Review"
description: "Review and fix remaining issues manually"
issue_ids:
- "APEX-G5-0"
- "APEX-G8-0"
- "APEX-G8-1"
- "APEX-G12-0"
- "APEX-G18-0"
- "APEX-G19-0"
- "APEX-G27-0"
- "APEX-G39-0"
- "APEX-G42-0"
- "APEX-G45-0"
- "APEX-G47-0"
- "APEX-G48-0"
- "APEX-G49-0"
- "APEX-G51-0"
- "APEX-G52-0"
- "APEX-G53-0"
- "APEX-G55-0"
- "APEX-G56-0"
- "APEX-G58-0"
- "APEX-G61-0"
- "APEX-G62-0"
- "APEX-G64-0"
- "APEX-G65-0"
- "APEX-G66-0"
- "APEX-G67-0"
- "APEX-G68-0"
- "APEX-G69-0"
- "APEX-G70-0"
estimated_time: "140 minutes"
can_autofix: false
by_file:
project:
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
language: "unknown"
total_issues: 37
critical_count: 2
high_count: 7
auto_fixable_count: 4
issues:
- &a1
id: "APEX-G3-0"
gate_id: 3
gate_name: "Schema_Lock"
cluster: "FOUNDATION"
severity: "CRITICAL"
severity_score: 9.5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No validation library installed; 14 unused production dependencies"
explanation: "No validation library installed; 14 unused production dependencies"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 3"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/3"
manual_steps:
- "Remove unused deps: @expo-google-fonts/jetbrains-mono, @expo-google-fonts/space-grotesk, @expo/metro-runtime, expo,
expo-constants"
- "Install zod: bun add zod"
- &a2
id: "APEX-G23-0"
gate_id: 23
gate_name: "Input_Valid"
cluster: "INTEGRITY"
severity: "CRITICAL"
severity_score: 9.5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "RLS violations: 0 critical, 6 high"
explanation: "RLS violations: 0 critical, 6 high"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 23"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/23"
manual_steps:
- "Enable RLS: ALTER TABLE <table> ENABLE ROW LEVEL SECURITY"
- "Add policies with auth.uid(): CREATE POLICY ... USING (auth.uid() = user_id)"
- "Cover all CRUD operations: SELECT, INSERT, UPDATE, DELETE"
- &a52
id: "APEX-G29-0"
gate_id: 29
gate_name: "Bundle_Size"
cluster: "PERFORMANCE"
severity: "HIGH"
severity_score: 7.5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "JS bundle: 810.3KB gzipped exceeds 500KB limit (critical); No route-level code splitting detected; Missing
'sideEffects' field in package.json (add sideEffects: false for tree shaking)"
explanation: "JS bundle: 810.3KB gzipped exceeds 500KB limit (critical); No route-level code splitting detected; Missing
'sideEffects' field in package.json (add sideEffects: false for tree shaking)"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 29"
apex_law: "#2 INFINITE SCALE"
documentation_url: "https://apex.dev/gates/29"
manual_steps:
- "Use dynamic imports: import(\"./heavy-module\")"
- "Add \"sideEffects\": false to package.json"
- "Use PurgeCSS or Tailwind's purge for CSS"
- "Analyze bundle with @next/bundle-analyzer or source-map-explorer"
- &a53
id: "APEX-G30-0"
gate_id: 30
gate_name: "Lazy_Loading"
cluster: "PERFORMANCE"
severity: "HIGH"
severity_score: 7.5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "Only 0 lazy loading usages found; 73 heavy components should use lazy loading"
explanation: "Only 0 lazy loading usages found; 73 heavy components should use lazy loading"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 30"
apex_law: "#2 INFINITE SCALE"
documentation_url: "https://apex.dev/gates/30"
manual_steps:
- "import dynamic from 'next/dynamic'"
- "const Component = dynamic(() => import(\"./Component\"), { loading: () => <Loading /> })"
- "Wrap lazy components with <Suspense fallback={...}>"
- "Add loading=\"lazy\" to below-fold images"
- &a54
id: "APEX-G34-0"
gate_id: 34
gate_name: "Core_Web_Vitals"
cluster: "PERFORMANCE"
severity: "HIGH"
severity_score: 7.5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "0 high-severity CWV issues (LCP: 0, CLS: 1, INP: 5)"
explanation: "0 high-severity CWV issues (LCP: 0, CLS: 1, INP: 5)"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 34"
apex_law: "#2 INFINITE SCALE"
documentation_url: "https://apex.dev/gates/34"
manual_steps:
- "LCP: Add priority to above-fold images, use server components for data"
- "CLS: Add width/height to all images, reserve space for dynamic content"
- "INP: Use startTransition for non-urgent updates, memoize heavy computations"
- "Add CWV monitoring (web-vitals, @vercel/speed-insights)"
- &a55
id: "APEX-G35-0"
gate_id: 35
gate_name: "Memory_Leaks"
cluster: "PERFORMANCE"
severity: "HIGH"
severity_score: 7.5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "4 potential memory leaks (timers: 1, listeners: 1, subscriptions: 0, fetch: 0, websocket: 0)"
explanation: "4 potential memory leaks (timers: 1, listeners: 1, subscriptions: 0, fetch: 0, websocket: 0)"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 35"
apex_law: "#4 ROI"
documentation_url: "https://apex.dev/gates/35"
manual_steps:
- "Timers: const id = setInterval(...); return () => clearInterval(id);"
- "Listeners: el.addEventListener('event', handler); return () => el.removeEventListener('event', handler);"
- "Async: let mounted = true; async fn() { if(mounted) setState(...) }; return () => { mounted = false };"
- &a56
id: "APEX-G46-0"
gate_id: 46
gate_name: "CI_Pipeline"
cluster: "EVOLUTION"
severity: "HIGH"
severity_score: 7.5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No CI/CD pipeline found"
explanation: "No CI/CD pipeline found"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 46"
apex_law: ""
documentation_url: "https://apex.dev/gates/46"
manual_steps:
- "Create .github/workflows/ci.yml"
- "Add jobs: lint -> build -> test (in dependency order)"
- "Enable concurrency to cancel stale runs"
- &a57
id: "APEX-G57-0"
gate_id: 57
gate_name: "Error_Bounds"
cluster: "RESILIENCE"
severity: "HIGH"
severity_score: 7.5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No error.tsx or global-error.tsx found in app directory"
explanation: "No error.tsx or global-error.tsx found in app directory"
fix_confidence: 0.8
auto_fixable: true
verify_command: "pnpm apex audit --gates 57"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/57"
manual_steps:
- "Create app/error.tsx for route error handling"
- "Create app/global-error.tsx for root error handling"
- "Include fallback UI with retry button"
- "error.tsx receives { error, reset } props - use them!"
- &a58
id: "APEX-G59-0"
gate_id: 59
gate_name: "Graceful_Deg"
cluster: "RESILIENCE"
severity: "HIGH"
severity_score: 7.5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "Graceful degradation patterns missing or poorly implemented"
explanation: "Graceful degradation patterns missing or poorly implemented"
fix_confidence: 0.8
auto_fixable: true
verify_command: "pnpm apex audit --gates 59"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/59"
manual_steps:
- "Create app/loading.tsx with skeleton/spinner component"
- "Create app/not-found.tsx with helpful 404 message and navigation"
- "Wrap async components with <Suspense fallback={<Loading />}>"
- "Add timeout handling for external requests with AbortController"
- &a59
id: "APEX-G5-0"
gate_id: 5
gate_name: "Boundary_Check"
cluster: "FOUNDATION"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "11 client-side API usages need 'use client' or typeof guard (AST verified)"
explanation: "11 client-side API usages need 'use client' or typeof guard (AST verified)"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 5"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/5"
manual_steps:
- "Add 'use client' at the top of components using React hooks"
- "Add 'use client' for files using browser APIs (localStorage, etc.)"
- "Or wrap browser API access in: if (typeof window !== 'undefined')"
- "Consider extracting client logic into separate components"
- &a63
id: "APEX-G12-0"
gate_id: 12
gate_name: "Barrel_Export"
cluster: "STRUCTURE"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "Dynamic imports: 0, Lazy components: 0, Routes: 0"
explanation: "Dynamic imports: 0, Lazy components: 0, Routes: 0"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 12"
apex_law: "#3 IMMORTALITY"
documentation_url: "https://apex.dev/gates/12"
manual_steps:
- "Use dynamic import() for code splitting heavy modules"
- "Use React.lazy() or next/dynamic for component-level splitting"
- &a65
id: "APEX-G18-0"
gate_id: 18
gate_name: "A11y_Contrast"
cluster: "SENSATION"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "A11y: 6 issues found (AST verified)"
explanation: "A11y: 6 issues found (AST verified)"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 18"
apex_law: "#6 RESPONSIVE"
documentation_url: "https://apex.dev/gates/18"
manual_steps:
- "Associate inputs with labels via id or aria-label"
- &a66
id: "APEX-G19-0"
gate_id: 19
gate_name: "Responsive"
cluster: "SENSATION"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "Speculative UX: parallel-load"
explanation: "Speculative UX: parallel-load"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 19"
apex_law: "#6 RESPONSIVE"
documentation_url: "https://apex.dev/gates/19"
manual_steps:
- "Use useOptimistic() for instant feedback on mutations"
- "Add prefetch on hover/focus for predictive loading"
- "Use Suspense boundaries for streaming SSR and code splitting"
- "Consider stale-while-revalidate for better perceived performance"
- &a67
id: "APEX-G27-0"
gate_id: 27
gate_name: "RLS_Policy"
cluster: "INTEGRITY"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "Protected routes found but no middleware.ts"
explanation: "Protected routes found but no middleware.ts"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 27"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/27"
manual_steps:
- "Create middleware.ts for auth protection"
- "Use Next.js middleware to protect routes"
- &a68
id: "APEX-G39-0"
gate_id: 39
gate_name: "README_Fresh"
cluster: "NEURAL"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "1 TODO/FIXME comments in code"
explanation: "1 TODO/FIXME comments in code"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 39"
apex_law: "#3 IMMORTALITY"
documentation_url: "https://apex.dev/gates/39"
manual_steps:
- "Move TODO/FIXME items to centralized todo file"
- "Use TodoWrite to track tasks during sessions"
- "Create GitHub issues for long-term items"
- &a69
id: "APEX-G42-0"
gate_id: 42
gate_name: "Example_Code"
cluster: "NEURAL"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "Limited simulation/preview capabilities"
explanation: "Limited simulation/preview capabilities"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 42"
apex_law: "#3 IMMORTALITY"
documentation_url: "https://apex.dev/gates/42"
manual_steps:
- "Add --dry-run flag: if (dryRun) { console.log(\"Would:\", action); return; }"
- "Show diff preview: console.log(createPatch(original, modified))"
- "Create backups: fs.copyFile(file, `${file}.bak`) before modifications"
- "Initialize git for version-controlled rollback"
- &a70
id: "APEX-G45-0"
gate_id: 45
gate_name: "PR_Template"
cluster: "EVOLUTION"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No PR template found"
explanation: "No PR template found"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 45"
apex_law: ""
documentation_url: "https://apex.dev/gates/45"
manual_steps:
- "Create .github/pull_request_template.md"
- "Include: Summary, Changes, Test Plan, Checklist (5+ items)"
- &a71
id: "APEX-G47-0"
gate_id: 47
gate_name: "Deploy_Checks"
cluster: "EVOLUTION"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "Vercel configured with issues"
explanation: "Vercel configured with issues"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 47"
apex_law: ""
documentation_url: "https://apex.dev/gates/47"
manual_steps:
- "env.example has few documented variables (2)"
- &a72
id: "APEX-G48-0"
gate_id: 48
gate_name: "Rollback_Ready"
cluster: "EVOLUTION"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "Insufficient rollback capability"
explanation: "Insufficient rollback capability"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 48"
apex_law: ""
documentation_url: "https://apex.dev/gates/48"
manual_steps:
- "Create semantic versioning tags (v1.0.0, v1.1.0, v1.2.0)"
- "Add migration down scripts for each up migration"
- "Add npm script: \"rollback\": \"...\""
- "Use Vercel/Netlify for platform-level rollback"
- &a73
id: "APEX-G49-0"
gate_id: 49
gate_name: "Version_Bump"
cluster: "EVOLUTION"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "v1.0.0"
explanation: "v1.0.0"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 49"
apex_law: ""
documentation_url: "https://apex.dev/gates/49"
manual_steps:
- "No CHANGELOG.md found"
- &a74
id: "APEX-G51-0"
gate_id: 51
gate_name: "Lock_Integrity"
cluster: "SUPPLY_CHAIN"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No SBOM generation configured"
explanation: "No SBOM generation configured"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 51"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/51"
manual_steps:
- "Install @cyclonedx/cyclonedx-npm for CycloneDX format"
- "Or use @spdx/tools for SPDX format"
- "Add sbom script to package.json"
- "Generate SBOM in CI pipeline"
- &a75
id: "APEX-G52-0"
gate_id: 52
gate_name: "License_Check"
cluster: "SUPPLY_CHAIN"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "npm audit failed: Command failed: npm audit --json"
explanation: "npm audit failed: Command failed: npm audit --json"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 52"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/52"
manual_steps:
- "Ensure npm is installed and accessible"
- "Check if package-lock.json exists"
- "Run npm audit manually to diagnose"
- &a76
id: "APEX-G53-0"
gate_id: 53
gate_name: "SBOM_Gen"
cluster: "SUPPLY_CHAIN"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "Could not run license-checker"
explanation: "Could not run license-checker"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 53"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/53"
manual_steps:
- "Install license-checker: npm install -D license-checker"
- "Or run manually: npx license-checker --json --production"
- &a77
id: "APEX-G55-0"
gate_id: 55
gate_name: "Typosquat"
cluster: "SUPPLY_CHAIN"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "9 potentially suspicious package(s) found (9 high, 0 medium risk)"
explanation: "9 potentially suspicious package(s) found (9 high, 0 medium risk)"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 55"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/55"
manual_steps:
- "Verify suspicious packages are intentional"
- "Check npm registry for package authenticity"
- "Review package author and download counts"
- "Consider using npm-audit-resolver for package verification"
- &a78
id: "APEX-G56-0"
gate_id: 56
gate_name: "Outdated_Check"
cluster: "SUPPLY_CHAIN"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No supply chain attestation configured"
explanation: "No supply chain attestation configured"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 56"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/56"
manual_steps:
- "Enable npm provenance: add { publishConfig: { provenance: true } } to package.json"
- "Configure SLSA L3 provenance: uses: slsa-framework/slsa-github-generator@v2"
- "Enable GPG commit signing: git config commit.gpgsign true"
- "Use Gitsign for keyless signing: https://github.com/sigstore/gitsign"
- "See SLSA levels: https://slsa.dev/spec/v1.0/levels"
- &a79
id: "APEX-G58-0"
gate_id: 58
gate_name: "Offline_Detect"
cluster: "RESILIENCE"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No offline detection found"
explanation: "No offline detection found"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 58"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/58"
manual_steps:
- "Create useOnlineStatus hook with navigator.onLine + event listeners"
- "Add visual indicator when user is offline"
- "Use serwist or next-pwa for PWA support with caching"
- "Configure service worker with cache strategies"
- &a80
id: "APEX-G60-0"
gate_id: 60
gate_name: "Health_Endpt"
cluster: "RESILIENCE"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No health check endpoint found (server not running for live test)"
explanation: "No health check endpoint found (server not running for live test)"
fix_confidence: 0.8
auto_fixable: true
verify_command: "pnpm apex audit --gates 60"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/60"
manual_steps:
- "Create app/api/health/route.ts with GET handler"
- "Return { status: 'healthy', timestamp: Date.now(), checks: {...} }"
- "Include database connectivity check"
- "Include external service checks (Redis, APIs, etc.)"
- "Start dev server to enable live health check testing"
- &a81
id: "APEX-G61-0"
gate_id: 61
gate_name: "Retry_Pattern"
cluster: "RESILIENCE"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No retry patterns found for external calls"
explanation: "No retry patterns found for external calls"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 61"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/61"
manual_steps:
- "Use p-retry for promise-based retries with backoff"
- "Configure retry in TanStack Query: { retry: 3, retryDelay: attemptIndex => ... }"
- "Use axios-retry for HTTP retries"
- "Consider cockatiel for comprehensive resilience patterns"
- &a82
id: "APEX-G62-0"
gate_id: 62
gate_name: "Circuit_Break"
cluster: "RESILIENCE"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No circuit breaker or rate limiting found"
explanation: "No circuit breaker or rate limiting found"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 62"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/62"
manual_steps:
- "Use @upstash/ratelimit for serverless rate limiting"
- "Use cockatiel for circuit breaker patterns"
- "Implement circuit breaker for external service calls"
- "Add rate limiting to protect against abuse"
- &a83
id: "APEX-G63-0"
gate_id: 63
gate_name: "Data_Recovery"
cluster: "RESILIENCE"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "Data recovery and queue management patterns missing"
explanation: "Data recovery and queue management patterns missing"
fix_confidence: 0.8
auto_fixable: true
verify_command: "pnpm apex audit --gates 63"
apex_law: "#1 ZERO TRUST"
documentation_url: "https://apex.dev/gates/63"
manual_steps:
- "Use localStorage or Zustand persist for state recovery"
- "Add autosave for forms and editors"
- "Implement beforeunload warning for unsaved changes"
- "For background jobs, use BullMQ with dead letter queue"
- "Add backup/restore functionality for user data"
- &a84
id: "APEX-G64-0"
gate_id: 64
gate_name: "Struct_Logging"
cluster: "OBSERVABILITY"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No structured logging library installed"
explanation: "No structured logging library installed"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 64"
apex_law: "#4 ROI"
documentation_url: "https://apex.dev/gates/64"
manual_steps:
- "Install pino: npm install pino"
- "Or winston: npm install winston"
- &a85
id: "APEX-G65-0"
gate_id: 65
gate_name: "Error_Track"
cluster: "OBSERVABILITY"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No error tracking library installed"
explanation: "No error tracking library installed"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 65"
apex_law: "#4 ROI"
documentation_url: "https://apex.dev/gates/65"
manual_steps:
- "Install @sentry/nextjs for Next.js apps"
- "Install @sentry/react for React apps"
- &a86
id: "APEX-G66-0"
gate_id: 66
gate_name: "Perf_Monitor"
cluster: "OBSERVABILITY"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No performance monitoring detected"
explanation: "No performance monitoring detected"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 66"
apex_law: "#4 ROI"
documentation_url: "https://apex.dev/gates/66"
manual_steps:
- "Install @vercel/speed-insights for automatic Core Web Vitals"
- "Or use web-vitals: import { onCLS, onLCP, onINP } from 'web-vitals'"
- &a87
id: "APEX-G67-0"
gate_id: 67
gate_name: "User_Analytics"
cluster: "OBSERVABILITY"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "Google Analytics partially configured: 0 events"
explanation: "Google Analytics partially configured: 0 events"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 67"
apex_law: "#4 ROI"
documentation_url: "https://apex.dev/gates/67"
manual_steps:
- "Add more track() calls for key user actions"
- "Add identify() to link events to users"
- &a88
id: "APEX-G68-0"
gate_id: 68
gate_name: "Trace_Context"
cluster: "OBSERVABILITY"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No tracing library installed"
explanation: "No tracing library installed"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 68"
apex_law: "#4 ROI"
documentation_url: "https://apex.dev/gates/68"
manual_steps:
- "Install @opentelemetry/sdk-trace-node"
- "Install @opentelemetry/api for trace API"
- &a89
id: "APEX-G69-0"
gate_id: 69
gate_name: "Metrics_Export"
cluster: "OBSERVABILITY"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No metrics library installed"
explanation: "No metrics library installed"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 69"
apex_law: "#4 ROI"
documentation_url: "https://apex.dev/gates/69"
manual_steps:
- "Install @opentelemetry/sdk-metrics"
- "Or prom-client for Prometheus metrics"
- &a90
id: "APEX-G70-0"
gate_id: 70
gate_name: "Dashboard_Ready"
cluster: "OBSERVABILITY"
severity: "MEDIUM"
severity_score: 5
file: "project"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder"
message: "No dashboard or alert configuration files found"
explanation: "No dashboard or alert configuration files found"
fix_confidence: 0.4
auto_fixable: false
verify_command: "pnpm apex audit --gates 70"
apex_law: "#4 ROI"
documentation_url: "https://apex.dev/gates/70"
manual_steps:
- "Create dashboards/*.json for Grafana dashboards"
- "Create alerts.yaml for alerting rules"
- "Export dashboards from your monitoring tool and commit to repo"
data/workflows/phases/web.ts:
file: "data/workflows/phases/web.ts"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder/data/workflows/phases/web.ts"
language: "typescript"
total_issues: 1
critical_count: 0
high_count: 1
auto_fixable_count: 0
issues:
- &a3
id: "APEX-G9-0"
gate_id: 9
gate_name: "Atomic_Size"
cluster: "STRUCTURE"
severity: "HIGH"
severity_score: 7.5
file: "data/workflows/phases/web.ts"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder/data/workflows/phases/web.ts"
line: 1402
message: "File exceeds limit: 1402 LOC (1445 total lines) > 150 limit"
explanation: "49 files exceed 150 LOC limit"
fix_confidence: 0.5
auto_fixable: false
verify_command: "pnpm apex audit --gates 9"
apex_law: "#3 IMMORTALITY"
documentation_url: "https://apex.dev/gates/9"
data/workflows/phases/flutter.ts:
file: "data/workflows/phases/flutter.ts"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder/data/workflows/phases/flutter.ts"
language: "typescript"
total_issues: 1
critical_count: 0
high_count: 1
auto_fixable_count: 0
issues:
- &a4
id: "APEX-G9-1"
gate_id: 9
gate_name: "Atomic_Size"
cluster: "STRUCTURE"
severity: "HIGH"
severity_score: 7.5
file: "data/workflows/phases/flutter.ts"
absolute_path: "/home/nadavcohen/Desktop/mangment/vibecoder/data/workflows/phases/flutter.ts"
line: 1299
message: "File exceeds limit: 1299 LOC (1360 total lines) > 150 limit"
explanation: "49 files exceed 150 LOC limit"
fix_confidence: 0.5
auto_fixable: false
verify_command: "pnpm apex audit --gates 9"
apex_law: "#3 IMMORTALITY"