-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathGAP_FINDINGS.toml
More file actions
1454 lines (1302 loc) · 45.6 KB
/
Copy pathGAP_FINDINGS.toml
File metadata and controls
1454 lines (1302 loc) · 45.6 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
# KeyHog gap findings registry — Santh STANDARD.md tests/gap/ roadmap.
# Each entry maps to exactly one test file under crates/*/tests/gap/<id>.rs
# Status: open | fixed | waived
# Fix target: semver milestone or date
# LR2-A8: deduplicated agent-conflicting ids (was 001-019 partial merge)
# R1-A6: semantic dedup — status `dupe` + `dupe_of` pointer (OPEN 66→57; total 80→86 after LR2-A6 verifier ids)
# R2-M7: dedupe 093→040 (same test path); revert 079/080 OPEN (ci-operability gap tests absent on NFS);
# promote 004/007/016 FIXED (LR2-A7 orchestrator split — gap oracles green on NFS)
# R3.3-F1: restored tests/FILE_GATE_MATRIX.toml (167 [[module]] rows); removed from .gitignore (LR2-A8 cli harness)
# Status: open | fixed | waived | dupe
[[finding]]
id = "KH-GAP-001"
severity = "bar-miss"
status = "fixed"
crate = "cli"
title = "(cli slice): args.rs exceeds the 500-line modularity cap."
test = "crates/cli/tests/gap/args_rs_exceeds_modularity_cap.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-002"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "Contract gate: backend subcommand defines self-test failure exit 4."
test = "crates/cli/tests/gap/backend_self_test_exit_code_four_in_src.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-003"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "Contract gate: detectors subcommand defines audit failure exit 3."
test = "crates/cli/tests/gap/detectors_audit_exit_code_three_in_src.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-004"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "`--exclude-paths` is documented but does not suppress scanned files."
test = "crates/cli/tests/gap/exclude_paths_flag_not_wired.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-005"
severity = "micro-flaw"
status = "dupe"
dupe_of = "KH-GAP-009"
crate = "cli"
title = "DUPE→009: Santh exit codes — 2 user error, 3 system error (subset oracle)."
test = "crates/cli/tests/gap/exit_code_system_vs_user.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-006"
severity = "bar-miss"
status = "fixed"
crate = "cli"
title = "detectors.rs still hosts inline tests."
test = "crates/cli/tests/gap/inline_test_offenders_detectors_subcommand.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-007"
severity = "bar-miss"
status = "fixed"
crate = "cli"
title = "orchestrator.rs still hosts inline tests."
test = "crates/cli/tests/gap/inline_test_offenders_orchestrator.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-008"
severity = "bar-miss"
status = "fixed"
crate = "cli"
title = "value_parsers.rs still hosts inline tests."
test = "crates/cli/tests/gap/inline_test_offenders_value_parsers.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-009"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "main.rs defines distinct user (2) and system (3) exit codes."
test = "crates/cli/tests/gap/main_defines_user_and_system_exit_codes.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-010"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "main.rs routes SCANNER_PANICKED to EXIT_SYSTEM_ERROR."
test = "crates/cli/tests/gap/main_maps_scanner_panic_to_system_exit.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-011"
severity = "bar-miss"
status = "fixed"
crate = "cli"
title = "(cli slice): `src/` must not host `#[cfg(test)]` modules."
test = "crates/cli/tests/gap/no_inline_tests_in_src.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-012"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "Contract gate: orchestrator_config reads KEYHOG_DETECTORS env var."
test = "crates/cli/tests/gap/orchestrator_config_honors_keyhog_detectors_env.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-013"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "Contract gate: orchestrator_config reads KEYHOG_THREADS env var."
test = "crates/cli/tests/gap/orchestrator_config_honors_keyhog_threads_env.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-014"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "Contract gate: orchestrator defines EXIT_LIVE_CREDENTIALS = 10."
test = "crates/cli/tests/gap/orchestrator_defines_live_exit_ten.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-015"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "Contract gate: orchestrator defines EXIT_SCANNER_PANIC = 11."
test = "crates/cli/tests/gap/orchestrator_defines_scanner_panic_exit_eleven.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-016"
severity = "bar-miss"
status = "fixed"
crate = "cli"
title = "(cli slice): orchestrator.rs must stay under the 500-line"
test = "crates/cli/tests/gap/orchestrator_modularity_cap.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-017"
severity = "bar-miss"
status = "fixed"
crate = "cli"
title = "(cli slice): scan_system.rs exceeds the 500-line modularity cap."
test = "crates/cli/tests/gap/scan_system_rs_exceeds_modularity_cap.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-018"
severity = "micro-flaw"
status = "fixed"
crate = "core"
title = "Path globs with oversized segments must not match (DoS guard)."
test = "crates/core/tests/gap/allowlist_oversized_glob_segment_rejected.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-019"
severity = "micro-flaw"
status = "fixed"
crate = "core"
title = "Single-element cross-detector dedup must pass through unchanged cardinality."
test = "crates/core/tests/gap/cross_detector_single_input_passthrough.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-020"
severity = "micro-flaw"
status = "fixed"
crate = "core"
title = "Dedup must merge identical `(detector, credential)` pairs into one group"
test = "crates/core/tests/gap/dedup_same_credential_one_group.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-021"
severity = "micro-flaw"
status = "fixed"
crate = "core"
title = "Encoding module must reject inputs above the documented byte cap."
test = "crates/core/tests/gap/encoding_rejects_oversized_input.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-022"
severity = "micro-flaw"
status = "fixed"
crate = "core"
title = "lib.rs must not duplicate the Santh lint preamble block."
test = "crates/core/tests/gap/lib_rs_duplicate_lint_preamble.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-023"
severity = "micro-flaw"
status = "dupe"
dupe_of = "KH-GAP-024"
crate = "core"
title = "DUPE→024: Santh lint preamble subset (unwrap_used + todo fragments only)."
test = "crates/core/tests/gap/lint_preamble.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-024"
severity = "micro-flaw"
status = "fixed"
crate = "core"
title = "Santh STANDARD.md lint preamble must be present at the top of `lib.rs`."
test = "crates/core/tests/gap/lint_preamble_present.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-025"
severity = "micro-flaw"
status = "fixed"
crate = "core"
title = "legacy save() cache must not satisfy load_with_spec gate."
test = "crates/core/tests/gap/merkle_load_without_spec_invalidates_legacy_save.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-026"
severity = "bar-miss"
status = "fixed"
crate = "core"
title = "(core slice): `src/` must not host `#[cfg(test)]` modules;"
test = "crates/core/tests/gap/no_inline_tests_in_src.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-027"
severity = "micro-flaw"
status = "fixed"
crate = "core"
title = "sarif unicode path percent encoded"
test = "crates/core/tests/gap/sarif_unicode_path_percent_encoded.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-028"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "Bar gate: `analyze_keyword_only.rs` must not be a decorative"
test = "crates/scanner/tests/gap/analyze_keyword_only_must_assert.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-029"
severity = "bar-miss"
status = "fixed"
crate = "scanner"
title = "compiler.rs still hosts inline alternation tests."
test = "crates/scanner/tests/gap/compiler_inline_tests_in_src.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-030"
severity = "bar-miss"
status = "fixed"
crate = "scanner"
title = "compiler_prefix.rs still hosts inline inner-literal tests."
test = "crates/scanner/tests/gap/compiler_prefix_inline_tests_in_src.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-031"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "uncalibrated detectors must not halve confidence on fresh install."
test = "crates/scanner/tests/gap/confidence_calibration_uncalibrated_passthrough.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-032"
severity = "bar-miss"
status = "fixed"
crate = "scanner"
title = "confidence/penalties.rs still hosts inline tests."
test = "crates/scanner/tests/gap/confidence_penalties_inline_tests_in_src.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-033"
severity = "bar-miss"
status = "fixed"
crate = "scanner"
title = "context/false_positive.rs still hosts inline tests."
test = "crates/scanner/tests/gap/context_false_positive_inline_tests_in_src.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-034"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "sequential placeholder detection must strip known prefixes first."
test = "crates/scanner/tests/gap/context_sequential_placeholder_strips_prefix.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-035"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "`async fn test_*` bodies under `#[tokio::test]` are not TestCode."
test = "crates/scanner/tests/gap/context_tokio_async_fn_test_body_is_test_code.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-036"
severity = "bar-miss"
status = "fixed"
crate = "scanner"
title = "decode/pipeline.rs approaches god-file territory at 463 LOC."
test = "crates/scanner/tests/gap/decode_pipeline_exceeds_modularity_cap.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-037"
severity = "bar-miss"
status = "fixed"
crate = "scanner"
title = "Every loaded detector id must have a contract TOML (100% by id)."
test = "crates/scanner/tests/gap/detector_contract_coverage_100pct.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-038"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "keyword-context entropy must not fire without keyword assignment line."
test = "crates/scanner/tests/gap/entropy_keyword_only_requires_keyword_line.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-039"
severity = "bar-miss"
status = "fixed"
crate = "scanner"
title = "entropy/keywords.rs still hosts inline identifier tests."
test = "crates/scanner/tests/gap/entropy_keywords_inline_tests_in_src.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-040"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "forced GPU backend must not silently scan with CPU without signal."
test = "crates/scanner/tests/gap/gpu_forced_backend_no_silent_degrade.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-041"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "When `KEYHOG_REQUIRE_GPU=1`, GPU gates must panic/fail"
test = "crates/scanner/tests/gap/gpu_require_env_fails_not_skips.rs"
fix_target = "0.6.0"
# R3.2-D: wgpu AC kernel routing restores KEYHOG_REQUIRE_GPU=1 scan on full corpus.
[[finding]]
id = "KH-GAP-042"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "GPU parity tests must not silently skip when KEYHOG_REQUIRE_GPU=1."
test = "crates/scanner/tests/gap/gpu_tests_fail_not_skip.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-043"
severity = "bar-miss"
status = "waived"
crate = "scanner"
title = "Megakernel and literal-set GPU paths must produce identical findings."
test = "crates/scanner/tests/gap/megakernel_literal_set_parity.rs"
fix_target = "0.6.0"
waiver = "crates/scanner/spec_waivers/megakernel_literal_set_parity.toml"
waiver_expires = "2026-08-01"
[[finding]]
id = "KH-GAP-044"
severity = "bar-miss"
status = "fixed"
crate = "scanner"
title = "A3 slice src files still contain inline #[cfg(test)] modules."
test = "crates/scanner/tests/gap/no_inline_tests_in_a3_slice.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-045"
severity = "bar-miss"
status = "fixed"
crate = "scanner"
title = "Inline `#[cfg(test)]` modules in `src/` violate the"
test = "crates/scanner/tests/gap/no_inline_tests_in_src.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-046"
severity = "bar-miss"
status = "fixed"
crate = "scanner"
title = "(pipeline slice): `pipeline.rs` must stay ≤500 LOC until"
test = "crates/scanner/tests/gap/pipeline_exceeds_modularity_cap.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-047"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "pipeline.rs god file (1923 LOC) concentrates hot-path allocations."
test = "crates/scanner/tests/gap/pipeline_hot_path_allocs.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-048"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "Santh STANDARD requires tests/contract/ on in-policy crates."
test = "crates/scanner/tests/gap/santh_contract_dir_exists.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-049"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "single-line Python implicit concat joins locally but does not append"
test = "crates/scanner/tests/gap/single_line_implicit_concat_not_appended.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-050"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Archive open path must skip symlinked archive files."
test = "crates/sources/tests/gap/archive_symlink_guard_in_source.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-051"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Ghidra decompiled output must be capped before parsing."
test = "crates/sources/tests/gap/binary_max_decompiled_cap_in_source.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-052"
severity = "micro-flaw"
status = "dupe"
dupe_of = "KH-GAP-053"
crate = "sources"
title = "DUPE→053: alias gate for unbounded fs::read (superseded by binary_read_is_capped)."
test = "crates/sources/tests/gap/binary_no_unbounded_fs_read.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-053"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "closed: binary strings path uses capped read, not unbounded fs::read."
test = "crates/sources/tests/gap/binary_read_is_capped.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-054"
severity = "micro-flaw"
status = "dupe"
dupe_of = "KH-GAP-053"
crate = "sources"
title = "DUPE→053: binary bounded-read gate (mmap/cap oracle; same binary/mod.rs fix)."
test = "crates/sources/tests/gap/binary_source_streaming.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-055"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Compressed stream path must cap total decompressed bytes at 4× max_file_size."
test = "crates/sources/tests/gap/compressed_extraction_4x_budget_in_source.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-056"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Compressed inputs must refuse mapping when compressed size exceeds max_file_size."
test = "crates/sources/tests/gap/compressed_input_uses_size_cap.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-057"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Docker layer unpack must enforce per-entry and cumulative tar caps."
test = "crates/sources/tests/gap/docker_tar_caps_in_source.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-058"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Archive extraction must enforce 4× max_file_size uncompressed budget."
test = "crates/sources/tests/gap/filesystem_archive_4x_budget_in_source.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-059"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Ghidra analysis subprocess must use wait_timeout kill path."
test = "crates/sources/tests/gap/ghidra_subprocess_uses_wait_timeout.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-060"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Ghidra subprocess wall clock must match shared timeouts module."
test = "crates/sources/tests/gap/ghidra_timeout_is_five_minutes.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-061"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Git blob streaming must cap single blob and total in-memory bytes."
test = "crates/sources/tests/gap/git_blob_byte_caps_in_source.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-062"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "GitHub org shallow clone budget must be centralized in timeouts.rs."
test = "crates/sources/tests/gap/git_clone_timeout_is_five_minutes.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-063"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Git ref resolution must use --end-of-options before user refs."
test = "crates/sources/tests/gap/git_rev_parse_end_of_options.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-064"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Git subprocess must refuse $PATH lookup for git binary in git/mod.rs."
test = "crates/sources/tests/gap/git_uses_resolve_safe_bin.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-065"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Git sources must canonicalize repo paths and require .git/HEAD."
test = "crates/sources/tests/gap/git_validate_repo_path_canonicalizes.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-066"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Shared HTTP builder must disable auto gzip to prevent body bombs."
test = "crates/sources/tests/gap/http_client_no_auto_gzip.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-067"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "mmap paths must re-stat after open and refuse multi-GiB TOCTOU growth."
test = "crates/sources/tests/gap/mmap_toctou_sanity_cap_in_read.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-068"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "S3 object fetch must cap downloaded bytes."
test = "crates/sources/tests/gap/s3_max_object_bytes_in_source.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-069"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Stdin source must cap piped input to prevent unbounded allocation."
test = "crates/sources/tests/gap/stdin_max_bytes_cap_in_source.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-070"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Unix file open must use O_NOFOLLOW to refuse symlink traversal."
test = "crates/sources/tests/gap/unix_open_no_follow_in_read.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-071"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Directory walker must not follow symlinks out of scan root."
test = "crates/sources/tests/gap/walker_follow_symlinks_disabled.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-072"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "Web fetch must cap raw response bytes; gzip auto-decompress disabled via http.rs."
test = "crates/sources/tests/gap/web_max_response_bytes_in_source.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-073"
severity = "bar-miss"
status = "fixed"
crate = "verifier"
title = "(verifier slice): src/ must not host #[cfg(test)] modules;"
test = "crates/verifier/tests/gap/no_inline_tests_in_src.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-081"
severity = "bar-miss"
status = "fixed"
crate = "verifier"
title = "LR2-A6 / LR1 KH-GAP-028: auth CRLF sanitize inline tests exiled from verify/auth.rs"
test = "crates/verifier/tests/unit/a6_lr2/sanitize_strips_crlf.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-082"
severity = "bar-miss"
status = "fixed"
crate = "verifier"
title = "LR2-A6 / LR1 KH-GAP-029: credential retry metadata inline tests exiled from verify/credential.rs"
test = "crates/verifier/tests/unit/a6_lr2/retry_preserves_metadata_on_exhaustion.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-083"
severity = "bar-miss"
status = "fixed"
crate = "verifier"
title = "LR2-A6 / LR1 KH-GAP-030: OOB wait_for race inline tests exiled from oob/session.rs"
test = "crates/verifier/tests/unit/a6_lr2/oob_wait_for_race_store_before_wait.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-084"
severity = "bar-miss"
status = "fixed"
crate = "verifier"
title = "LR2-A6 / LR1 KH-GAP-031: interactsh decrypt inline tests exiled from oob/client.rs"
test = "crates/verifier/tests/unit/a6_lr2/interactsh_decrypt_roundtrip.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-085"
severity = "bar-miss"
status = "fixed"
crate = "verifier"
title = "LR2-A6 / LR1 KH-GAP-032: rate limiter burst wall-clock inline test exiled from rate_limit.rs"
test = "crates/verifier/tests/unit/a6_lr2/rate_limit_burst_respects_interval.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-086"
severity = "bar-miss"
status = "fixed"
crate = "verifier"
title = "oob/client.rs exceeded 500 LOC — extracted oob/decrypt.rs"
test = "crates/verifier/tests/unit/gates/oob_client_file_size_cap.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-076"
severity = "bar-miss"
status = "fixed"
crate = "scanner"
title = "Positive invariant: nightly job exports every multiplier strict env var."
test = "crates/scanner/tests/gap/nightly_exports_all_strict_env_vars.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-077"
severity = "bar-miss"
status = "fixed"
crate = "scanner"
title = "Positive invariant: runners-nightly.yml lists all 14 contract multipliers."
test = "crates/scanner/tests/gap/nightly_matrix_has_fourteen_runner_binaries.rs"
fix_target = "0.6.0"
[[finding]]
id = "KH-GAP-091"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "`--dogfood` emits duplicate identical example_suppressed events (one per pipeline stage)."
test = "crates/cli/tests/stress/scan_dogfood_one_event_per_example.rs"
fix_target = "0.6.0"
# R3-D: dedupe dogfood events on (path, credential_redacted) in telemetry.rs.
# R3.2-D: re-verified; stress + demo-secret.env dogfood green.
[[finding]]
id = "KH-GAP-092"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "`--git-diff HEAD` compares commit SHAs only; uncommitted working-tree changes are invisible (unlike `git diff HEAD`)."
test = "crates/cli/tests/e2e/scan_git_diff_head_includes_worktree.rs"
fix_target = "0.6.0"
# R3-D: worktree mode (git diff HEAD + untracked ls-files) when base==head commit.
# R3.2-D: re-verified; e2e + temp-repo dogfood green.
[[finding]]
id = "KH-GAP-093"
severity = "micro-flaw"
status = "fixed"
dupe_of = "KH-GAP-041"
crate = "scanner"
title = "R1-D2: KEYHOG_REQUIRE_GPU=1 + --backend gpu must not silently CPU-fallback on dispatch failure."
test = "crates/cli/tests/gap/scan_require_gpu_forbids_silent_cpu_fallback.rs"
fix_target = "0.6.0"
# R3.2-D: wgpu forced onto AC kernel + subgroup coalesce off (gpu_lazy/gpu_literal_phase1).
[[finding]]
id = "KH-GAP-094"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "`detectors --search` help claimed 888-strong corpus; embedded count is 891."
test = "crates/cli/tests/gap/detectors_search_help_detector_count_drift.rs"
fix_target = "0.6.0"
# R3-REV: args.rs + detectors.rs updated to 891-strong.
[[finding]]
id = "KH-GAP-095"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "README exit-code section omitted 3/4/10/11 documented in CLI `--help`."
test = "crates/cli/tests/gap/readme_exit_codes_match_cli_contract.rs"
fix_target = "0.6.0"
# R3-REV: README quickstart exit codes aligned with Cli after_help.
[[finding]]
id = "KH-GAP-096"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "`scan --git-history` on a non-repository exits 0 (CI silent false-clean)."
test = "crates/cli/tests/gap/git_history_non_repo_exits_nonzero.rs"
fix_target = "0.6.0"
# R3-REV: gap oracle fails; stress test remote_source_failure_nonzero_exit.rs mirrors.
# R3.3-F3: SOURCE_ERRORS + run() bail when git-history SourceError; gap + stress green.
[[finding]]
id = "KH-GAP-097"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "`--stream` progress cites line numbers beyond the scanned file length."
test = "crates/cli/tests/gap/stream_progress_line_within_file.rs"
fix_target = "0.6.0"
# R3-REV: gap oracle fails on 2-line fixture (reports :4).
# R3.3-F3: stream_line_label caps to file line count; gap + stress green.
[[finding]]
id = "KH-GAP-098"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "`docs/vyre-usage.md` claims KEYHOG_USE_MEGAKERNEL routing; engine/ never reads env."
test = "crates/scanner/tests/gap/docs_megakernel_env_claim_matches_engine.rs"
fix_target = "0.6.0"
# R3-REV: docs lie until megakernel hook lands or doc corrected.
# R3.3-F3: docs/vyre-usage.md corrected — env is no-op until engine hook; gap oracle green.
[[finding]]
id = "KH-GAP-099"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "Cli after_help described exit 3 as audit-only; main.rs uses 3 for system errors."
test = "crates/cli/tests/gap/cli_after_help_documents_system_exit_three.rs"
fix_target = "0.6.0"
# R3-REV: args.rs after_help exit table corrected.
[[finding]]
id = "KH-GAP-100"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "`--progress` flag parsed but ignored; progress UI gated only on stderr TTY."
test = "crates/cli/tests/contract/progress_flag_emits_backend_line_without_tty.rs"
fix_target = "0.6.0"
# R3-TCLI: orchestrator/run.rs honors args.progress when stderr is piped.
# R3.2-D: contract + piped dogfood re-verified green.
[[finding]]
id = "KH-GAP-101"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "Adversarial engine: AKIAIOSFODNN7EXAMPLE negative twins fire in dead_corpus_evasion paths."
test = "crates/scanner/tests/adversarial/engine_cases/dead_corpus_evasion.rs"
fix_target = "0.6.0"
# R3-TADV: evasion_embedded_in_binary + evasion_reversed_strings negative twins regress.
[[finding]]
id = "KH-GAP-102"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "Adversarial engine: TESTKEY_111111… fake twins not suppressed (concat/rtl/homoglyph)."
test = "crates/scanner/tests/adversarial/engine_cases/concatenation_e2e.rs"
fix_target = "0.6.0"
# R3-TADV: split_string_concat, rtl_override, unicode_homoglyph_keyword negative twins fail.
[[finding]]
id = "KH-GAP-103"
severity = "micro-flaw"
status = "fixed"
crate = "scanner"
title = "megakernel_waiver helper called .ok() on PathBuf (all_tests compile break)."
test = "crates/scanner/tests/support/megakernel_waiver.rs"
fix_target = "0.6.0"
# R3-TADV: parse_waiver_expiry uses waiver_path() directly (was waiver_path().ok()?).
[[finding]]
id = "KH-GAP-104"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "README/site document `hook install --no-daemon` but hook subcommand has no such flag."
test = "crates/cli/tests/gap/hook_install_no_daemon_readme_phantom_flag.rs"
fix_target = "0.6.0"
# R4-D: README + site/hooks.html; stress test hook_install_no_daemon_readme_lie.rs also red.
[[finding]]
id = "KH-GAP-105"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "`daemon start` fails outside repo cwd — no embedded detector fallback unlike scan/watch."
test = "crates/cli/tests/gap/daemon_start_no_embedded_detector_fallback.rs"
fix_target = "0.6.0"
# R4-D: `keyhog daemon start` from /tmp errors on missing detectors/; scan uses embedded corpus.
[[finding]]
id = "KH-GAP-106"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "`backend --patterns` default 1509 stale vs ~5769 compiled patterns in progress banner."
test = "crates/cli/tests/gap/backend_patterns_default_stale_vs_compiled.rs"
fix_target = "0.6.0"
# R4-D: routing matrix mis-simulates GPU breakeven on fresh installs.
[[finding]]
id = "KH-GAP-107"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "README/site API examples call phantom `keyhog_core::embedded_detectors()`."
test = "crates/cli/tests/gap/readme_embedded_detectors_api_phantom.rs"
fix_target = "0.6.0"
# R4-D: public API is embedded_detector_tomls() + parse; site/api.html also wrong.
[[finding]]
id = "KH-GAP-108"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "Error messages cite `keyhog detectors list` but CLI rejects `list` subcommand."
test = "crates/cli/tests/gap/detectors_list_phantom_subcommand_in_errors.rs"
fix_target = "0.6.0"
# R4-D: orchestrator_config.rs + spec/load.rs operator strings.
[[finding]]
id = "KH-GAP-109"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "`keyhog watch` duplicates findings when notify fires Create+Modify for one save."
test = "crates/cli/tests/gap/watch_duplicate_findings_on_create.rs"
fix_target = "0.6.0"
# R4-D: single brandnew.txt create emitted 4 finding lines (2 detectors × 2 events).
[[finding]]
id = "KH-GAP-110"
severity = "micro-flaw"
status = "fixed"
crate = "cli"
title = "README quickstart `--baseline` line omits prerequisite `--create-baseline` workflow."
test = "crates/cli/tests/gap/readme_baseline_quickstart_omits_create.rs"
fix_target = "0.6.0"
# R4-D: site/baseline.html documents create-baseline; README Filter section does not.
[[finding]]
id = "KH-GAP-113"
severity = "micro-flaw"
status = "fixed"
crate = "sources"
title = "`async_client_builder` lacks `.no_gzip()/.no_brotli()/.no_deflate()`; KH-GAP-066 gate passes on blocking substring only."
test = "crates/sources/tests/gap/http_async_client_no_auto_gzip.rs"
fix_target = "0.6.0"
# R4-SRC: http.rs:137-156 async path omits body-bomb defenses present on blocking builder.
# R4.3-SRC: async_client_builder mirrors blocking decompress disable; gap oracle green.
[[finding]]
id = "KH-GAP-114"
severity = "bar-miss"
status = "fixed"
crate = "sources"
title = "Windows CI: four adversarial symlink/EACCES tests are empty `#[cfg(not(unix))]` stubs."
test = "crates/sources/tests/adversarial/archive_symlink_target_swap_attempt.rs"
fix_target = "0.6.0"
# R4-SRC: plain_file_symlink_refused, walker_symlink_escape_outside_root, permission_denied_subtree_scan_continues.
# R4.3-SRC: adversarial/support.rs shared oracles (Unix+Windows); gap oracle adversarial_windows_stubs_no_op green.
[[finding]]
id = "KH-GAP-115"
severity = "bar-miss"
status = "fixed"
crate = "sources"
title = "FILE_GATE_MATRIX marks all sources+verifier modules `adversarial=false` despite green adversarial suites."
test = "tests/FILE_GATE_MATRIX.toml"
fix_target = "0.6.0"
# R4-SRC: registry honesty vs TESTING_PROGRAM meso bar.
# R4.3-SRC: sources+verifier rows adversarial=true; gap oracle file_gate_matrix_sources_verifier_adversarial_unmarked green.
[[finding]]
id = "KH-GAP-116"
severity = "bar-miss"
status = "fixed"
crate = "sources"
title = "Seven src submodule files absent from FILE_GATE_MATRIX (167/167 claim incomplete)."
test = "tests/FILE_GATE_MATRIX.toml"
fix_target = "0.6.0"
# R4-SRC: archive.rs, compressed.rs, walk_util.rs, skip_lists.rs, read/decode.rs, github_org/redact.rs, oob/decrypt.rs.
# R4.3-SRC: +7 [[module]] rows (174 total); gap oracle file_gate_matrix_missing_submodule_rows green.
[[finding]]
id = "KH-GAP-117"