hawdb 0.25.0

An embedded Rust graph database for local data-plane workloads
Documentation
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
# Test ownership and known slow paths

Use this index to select an existing regression owner and understand what a
slow target is checking. Target definitions and CI job configuration remain
authoritative; this is a map of test families, not an exhaustive list of every
Rust test function. Update it when changing a family's scope, build profile,
execution lane, fixture size, isolation or known failure mode.

Mem query-shaped compatibility (`nowledge-co/mem#9338`) is owned by
`api::tests::mem_query_contract` in `//:hawdb_unit_general_tests` (the existing
required native general lane). The finite fixtures cover C1-C5 execution,
NULL/type/arity errors, Entity multiplicity, Space isolation, atomic constant
multi-binding SET, alias ordering, missing bindings, operation/output-memory
refusal, transaction rollback, temporal range preservation (including equal-instant
UTC-offset tie-breaks) and WAL-backed
close/reopen. They retain read CASE/UNWIND, OPTIONAL MATCH aggregation and SQL
comparison controls. Replay `cargo test --locked -p hawdb --lib mem_9338 --
--test-threads=1` or the owning Bazel target with `--test_arg=mem_9338`.
The immutable 1,427-case migration corpus is unchanged; explicit stage overrides
now qualify `mem-0361` and `mem-0420` with supplied parameters, while preserving
historical counts and missing-parameter errors. Core text-scalar and storage
minimum-preservation cases use the existing component test owners.
No new execution lane, profile, fixture amplification or timeout is introduced.
See [the contract and explicit SQL scope](specs/MEM_QUERY_COMPATIBILITY_9338.md).

The same Mem query owner also covers PR 1504 review optimizations: invariant
regexp_replace validation on empty scans, cache rebinding across pattern and
replacement values (including an invalid-pattern failure), row-dependent patterns,
Unicode whitespace/zero-width Space isolation, adjacent SET row budgets and
aliased writes after a selector property changes. Core `string_function` tests
prove prepared row evaluation does not recompile or mutate source-only cache
owners and that output admission precedes materialization. Literal/parameter
patterns use the existing source-only regex cache lifecycle; dynamic patterns
retain their evaluator path. Replacement sizing admits every piece before a
single exact buffer allocation. Query memory/work caps and mutation atomicity
remain required. Existing fixtures and execution lanes are retained.

[Bazel exclusive test scheduling](https://bazel.build/reference/be/common-definitions#common.tags)
places this owner after build activity and non-exclusive tests.
`//crates/executor:hawdb_executor_unit_tests` retains its full ordinary unit-test
inventory and its original default size/deadline, using one `exclusive` target
rather than another executable or a reduced filter. The existing staged-mutation
endpoint oracle keeps all 3,000 Person nodes, duplicate/missing/wrong-type rows,
both index modes, four endpoint-pattern forms and exact reference comparisons.
PR 1504 check run 125124334072 timed out while this oracle was still running;
the visible tail also shows concurrent compilation. The complete remote BEP
was not obtained, so no precise remote per-case duration or speedup is claimed.
At source `1ea024e038`, the complete local owner ran 595 passing/16 existing
ignored cases in 33.124 seconds including runner overhead; an isolated exact
replay passed in 15.42 seconds. Local compile-cache hits are separate from these
execution measurements. The isolation preserves Cargo/Bazel feature selections
and the current fixture, assertions, timeout and compilation profile; external
machine contention remains possible. Replay the existing owner with
`bazel test //crates/executor:hawdb_executor_unit_tests`.

The optimizer-graph joint-statistics owner also covers a residual filter above
HashJoin when either or both marginal key NDVs are missing. Single-key and
multi-key predicates retain the existing default selectivity; compatible
marginals still avoid double counting an already-estimated hash key. Replay:
`cargo test --locked -p hawdb-optimizer-graph --lib unknown_hash_key_ndv_preserves`.

Joint graph statistics extend the existing
`//crates/optimizer-graph:hawdb_optimizer_graph_tests` owner with bounded,
unordered catalog key sets, invalid/stale/sampled/incomplete statistics,
correlated/independent reference populations, conditional access coverage,
duplicate bindings, NULL-bearing grouping, alias scope, optional rebindings,
single-key hash intermediates and selected-trace provenance. Replay with
`cargo test --locked -p hawdb-optimizer-graph --lib`. Root
`api::tests::joint_ndv_statistics` covers exact rows in auto/memo/direct modes,
pinned readers, warm cache reuse, correlated/independent/skewed keys, NULLs,
duplicate join pairs, optional unmatched rows and deterministic tied sort windows.
It belongs to `//:hawdb_unit_general_tests`; the supported minimal replay is
`cargo test --locked -p hawdb --no-default-features --lib --
api::tests::joint_ndv_statistics:: api::tests::aggregates::
api::tests::statistics:: --test-threads=1`. The default-feature replay omits
`--no-default-features`. Executor `transform::tests::limit_admission` is owned by
`//crates/executor:hawdb_executor_unit_tests`; it checks selected-window payload
admission, skipped wide rows, exhausted offsets and one-byte-deficit refusal.
Replay the complete unchanged transform family with `cargo test --locked -p
hawdb-executor --lib transform::tests`. The root integration keeps a changed
Sort plus LIMIT choice within a 2-MiB query budget. Existing batch/payload and
query ceilings remain enforced. See [the estimation contract](QUERY_JOINT_STATISTICS.md).
The manual `joint_ndv_planning` benchmark is local-only; no test lane, feature
matrix, timeout or compilation profile changes.

`//:pypi_publish_script_test` belongs to the required root
`//:hawdb_unit_tests` aggregate. It executes the publisher workflow's Python
preflight and registry verification with temporary distributions and mocked
PyPI responses. It covers publisher-created attestation sidecars, frozen
pre-upload hashes, incomplete or conflicting uploads, delayed visibility and
network failures without credentials, uploads or real sleeps. Replay with
`bazel test //:pypi_publish_script_test`, or
`python scripts/pypi-publish.test.py` with `packaging` installed. Actual Trusted
Publishing and public-install smoke verification remain release-workflow gates.

The plan-cache retention family uses
`//crates/plan-cache:hawdb_plan_cache_tests` for weighted LFU total/per-entry
limits, zero budgets, overflow, replacement and spare table-capacity accounting.
`//crates/plan-cache:hawdb_template_retention_tests` is its independent native
requested-allocation oracle: logical and physical CASE templates at 20/100/512
candidates, nested values, source-only regex templates, temporal projections with a boxed duration parameter and byte-driven churn must retain no more requested
heap than their conservative charges. The observer is thread-local and runs as
one test; requalify its standard-library layout assumptions on toolchain
changes. Replay with `cargo test --locked -p hawdb-plan-cache --test
template_retention -- --test-threads=1`. Requested heap excludes allocator
rounding and caller-owned in-flight copies; these checks are not RSS or latency
benchmarks. The facade's `api::plan_cache::retention_allocation` oracle belongs
to `//:hawdb_unit_general_tests`: it observes complete private cache keys,
physical IR, traces, shared metadata, proof-schema table/property IDs and EXISTS
strings, both scoring-key forms and table capacity
at 20/100/512 candidates, owned row-bound/nested list and path expressions, UNWIND source payloads, boxed shortest-path
descriptors with spare string capacities (Any/All selection), temporal literals,
thousands of boxed durations, temporal-function arguments, map literals and boxed
property access, and byte-driven eviction. Its thread-local
observer is enabled only in that one unit test. Replay with `cargo test --locked
-p hawdb --lib retention_allocation -- --test-threads=1 --nocapture`.
The same existing root owner covers `simple_case_dispatch` physical cache hits,
changed parameters, folded guards, lazy/cached errors, result budgets,
cancellation, zero/tiny cache-budget refusals and accepted/refused admission traces;
`query_observability` checks regex source-template hits beside a hot plan.
`knowledge_label_regex_memory_connections` retains its original physical-hit,
complete bounded-query result, snapshot and budget/error assertions. Core regex
and independent allocation tests prove that execution compilation neither lives
in nor grows the source-only cache owner.
Its vector-procedure pipeline check preserves default-feature cache bypass
and minimal-feature capability refusal before any cache lookup or bypass.
Run those filters with default and `--no-default-features` configurations.
Existing target profiles and execution lanes are unchanged.

`cargo build --locked --release --bench physical_plan_cache` builds the manual
embedded CASE cache benchmark. It covers cold/reused/fresh-handle reads at
20/100/512 candidates, scope and body scaling, complete result parity and a
separate qualification-feature allocation/preparation observer. It adds no
benchmark CI lane. With no arguments it runs a small 20-candidate, 512-row,
three-repeat smoke using the same complete-result assertions. Explicit arguments
retain the measured experiment sizes. Procedure, source-bound measurements and the per-read-handle
reuse limitation are in the [physical cache report](benchmarks/physical_plan_cache_macos_2026_10_31/README.md).

`//:storage_tla_evidence_script_test` belongs to the required root
`//:hawdb_unit_tests` aggregate. It validates the actual checked-in TLA model
inventory through `scripts/check-storage-tla.sh --manifest-json` before running
the synthetic evidence/negative fixtures. Its runfiles include every root-level
model and config plus the manifest, so unsorted/duplicate entries, undeclared
models and missing pairs fail before merge. This inventory step neither downloads
tools nor runs TLC; the existing postsubmit TLA lane retains model checking,
mutant rejection and retained-evidence verification. The existing moderate script
timeout is unchanged. Replay with `bazel test //:storage_tla_evidence_script_test`
or `bash scripts/check-storage-tla.test.sh`.

`nowledge_mem::tests::catch_up_admission_tests` belongs to the existing root
`//:hawdb_unit_general_tests` owner. Its two guards each exercise full-residency
and incremental projection dispatch with one explicitly configured governor.
A retained Background physical I/O wave must not reject caller-selected
Foreground catch-up; existing Background APIs still refuse. A saturated
Foreground lane must refuse before hydration and succeed after release. The
fixtures retain durable projection and permit-refund assertions, keep automatic
maintenance enabled, and do not use sleeps or admission retries. Initial task
refund is observed before opening the automatic-maintenance owner; global
admission counters are not assumed stable while that worker can run. Local replay:
`cargo test --locked -p hawdb --lib catch_up_admission_tests -- --test-threads=1`.
See [caller-priority catch-up](https://github.com/nowledge-co/hawdb/issues/1306).

The experimental [Windows directory-custody first packet](../scripts/windows-directory-custody-probe.ps1)
is owned by the narrowly path-filtered, same-repository
[Directory Custody Primitive Probe](../.github/workflows/directory-custody-probe.yml)
PR job on Windows2025. It is a falsification fixture for
[the captured-open investigation](https://github.com/nowledge-co/hawdb/issues/1291),
not a production SDK API or a default storage-qualification gate. Publishing or
synchronizing its PR executes native code, so exact-source review precedes that
publication. The packet retains one original GenericRead/shareWRITE|DELETE
directory owner; checks same/child-process sharing and unobstructed controls;
records separate original-object ReOpenFile and empty-name NtCreateFile
write-only open/identity/Flush outcomes; observes attribute-only equal identity;
and checks duplicate/last-handle lifetime. Its 18 cases permit at most 10 child
attempts, each 15s plus bounded termination/output collection, within a 10-minute
job. Setup/C#compile and native runtime costs are not measured yet; the runner
performs no Rust build. Artifacts keep source hashes, ABI/masks, OS/filesystem,
per-case progress, child logs and distinct negative/incomplete outcomes.
Local replay on Windows uses a fresh process and artifact directory:
`pwsh -NoProfile -File scripts/windows-directory-custody-probe.ps1 -OutputDirectory
<new-temp-artifact-directory> -ExpectedSourceRevision <exact-git-HEAD>`.
Exit 0 means a fixed primitive combination was observed with the packet controls;
exit 2 means both candidates were falsified or unqualified; exit 1 means harness or
cleanup failure. None qualifies cold-RO ACLs, independent cursors, relative child
IO, missing/foreign/reparse bindings, ordinary-client coexistence, role admission,
power-loss durability or full captured-open integration. These remain separate
required qualification; a candidate refusal is never relabeled SDK success.

The executor `spill::tests` family covers streaming binding encoding with a
full query-memory account, read/decode admission, exact disk quotas, nesting
preflight, short writes, I/O errors and scalar/nested/vector round trips.
`blocking::sort::tests` compares Sort/TopN tie order with and without spilling
and checks 16-KiB rows through bounded merges. The existing executor unit target
owns these regressions; replay with `cargo test --locked -p hawdb-executor --lib
spill::tests` and the `blocking::sort::tests` filter. The existing local-only
`//crates/executor:hawdb_sort_merge_account_fuzz_tests` campaign also exercises
adaptive buffers below an observed peak while preserving hard root refusal,
as well as the tie-order and wide-row controls. Test lanes, profiles and deadlines stay
unchanged; allocation microprobes do not establish end-to-end RSS or latency.

Native Decimal and shared numeric SQL execution (#1419) use the existing core,
SQL, SQL-syntax, plan-cache, relational, system-SQL, storage, executor and root
unit owners. Core tests check exact arithmetic, bounded parsing, midpoint-away
rounding, overflow, numeric identity/order and ordered-key encodings against
integer/rational comparisons. SQL tests check both frontends, prepared parameters,
CAST metadata and flat expression depth limits. Relational tests check exact
index boundaries, integer/Decimal joins, SUM/HAVING and atomic failed UPDATEs.
Root BIGINT mutation regressions cover NULL propagation, NOT NULL and numeric
type refusals, and unchanged rows after rejected assignments or overflow.
Vector scalar projection tests require an explicit DOUBLE fallback cast for
COALESCE and reject a mixed Decimal/DOUBLE call even on an empty table.
Native locking tests keep comparison bounds unrounded across both residency
modes. Serializable tests retain true incompatible-type and volatile-value
refusals while checking mixed BIGINT/DOUBLE results above 2^53, fail-closed
cross-domain key capture, and exact integral Decimal-to-BIGINT capture.
Storage and spill tests check raw scale, malformed/truncated payload rejection,
page projection and subsequent-record alignment. Cache keys distinguish equal
numeric values with different scales when cached results retain representation.
Root `api::tests::decimal` runs persistent SQL in both Materialized and OutOfCore
modes with demand-paged indexes, plus graph WAL/checkpoint reopen. Graph coverage
checks Decimal ranges with exact integer bounds, repeated-bound intersection,
IN, NULL, negation and ORDER BY with scalar/composite indexes in both residency
modes. Zone maps, source summaries and range-block envelopes must not prune
matching Decimal rows using incomplete mixed-numeric extrema. Mixed temporal
and Decimal records pin distinct value kinds and WAL/checkpoint/spill tags.
Explicit scalar/composite range physical plans check exact Decimal and integer
bounds plus incomparable Float bounds at each recovery stage, independently of
cost-based scan choices for properties excluded from histogram collection.
These tests also cover exact and quoted Decimal schema defaults together with
main's SQL type aliases/contextual strings, and concurrent secondary-index rekeys
locking both stored images after Decimal rescaling while allowing disjoint readers.
These tests do not independently qualify machine power-loss behavior. Replay with
`cargo test --locked -p hawdb-core -p hawdb-plan-cache -p hawdb-relational
-p hawdb-storage -p hawdb-executor --lib decimal`,
`cargo test --locked -p hawdb-sql -p hawdb-sql-syntax -p hawdb-system-sql --lib`,
and `cargo test --locked -p hawdb --all-features --lib native_decimal`.
Python parameter tests cover native `decimal.Decimal` and seeded arithmetic
against an independent `fractions.Fraction` oracle; C JSON tests cover the
exact `$decimal` marker. Existing binding lanes remain unchanged; retained
foreign numeric buffers do not gain a Decimal ABI type. Manual Shiro result
controls distinguish Decimal scale in ordered and bag comparisons, including
nested lists/maps, while retaining duplicate multiplicities and float bits.
Replay: `cargo test --locked --manifest-path tools/shiro/Cargo.toml --lib
decimal_report_preserves_exact_digits_and_scale` and the `comparison` filter.
These controls remain in the existing local-only Shiro test targets.

Cypher `LOAD CSV` and the type-conversion functions are owned by existing
targets: `hawdb-core` `conversion_function::tests` (Neo4j conversion rules),
`hawdb-cypher` `tests::load_csv` and the PEG/reference differential
`parser::frontend::tests::load_csv_matches_reference_parser`, `hawdb-plan-cypher`
`logical::load_csv_tests` (row-source binding and refusals), `hawdb-optimizer-graph`
`graph::tests::load_csv` (lowering/EXPLAIN), `hawdb-plan-cache`
`template::tests::load_csv_plans_keep_parameter_sources_unbound_and_reusable`,
`hawdb-executor` `load_csv::tests` (RFC 4180 reader, path policy and its
`Semantic`/`Execution` error classes, record/file limits and per-row mutation
resolution, using temporary directories), `hawdb-executor`
`mutation::staged::tests` (statement-level matched-relationship endpoint
resolution: result equivalence with per-row scans for duplicates, misses,
composite keys, missing labels and indexed/unindexed labels; one pass per
endpoint pattern; cancellation; ledger refusal of staged mutations and endpoint
maps; fan-out endpoints refused with the commit's own affected-row errors before
their ids are copied; charged id copies on `UNWIND` batches; the host's
configured execution memory on the store entrypoint), `hawdb-storage`
`store::tests::id_in_mutation` (id-led conjunction fast path against a
single-element `Or` scan oracle, including pending nodes, and a 5,000-source
fan-out whose recheck excludes the leading id list), and
root `api::tests::load_csv` (end-to-end LDBC-style loads, refusal without an
import root, path escapes, remote URLs, parameter rebinding, mutation/WAL/read
and query-memory budgets, explicit transactions including nodes staged earlier
in the transaction, zero per-row label scans under the write guard for
`LOAD CSV` and `UNWIND` relationship loads at 3,000 nodes and rows via the
hidden storage scan counter, `UNWIND` relationship CREATE and MERGE batches
resolving their endpoints on the autocommit and explicit-transaction paths,
fan-out loads beyond `max_affected_rows` refused
with no writes, CSV fields read through temporal constructors and `toString`
over temporal values, missing-file error classes and, on Unix, a FIFO source refused
without blocking). Replay with `cargo test --locked -p hawdb-executor
--lib load_csv`, `cargo test --locked -p hawdb-executor --lib mutation::staged`
and `cargo test --locked -p hawdb --lib api::tests::load_csv`. No lane, profile
or deadline changes; see [LOAD CSV](CYPHER_LOAD_CSV.md).

Cypher `sum()` and expression-argument aggregates are owned by existing
targets: `blocking::aggregate::tests` (Sum numeric/NULL/empty/overflow/
non-numeric/DISTINCT accumulator and partial-merge rules),
`blocking::hash_oracle` (`sum_and_expression_aggregates_match_oracle_with_and_without_spill`
and the overflow check through partial and buffered paths), the
`hawdb-cypher` parser tests, `logical::pipeline::tests` planner targets, and
root `api::tests::aggregates`. Replay with `cargo test --locked -p
hawdb-executor --lib aggregate` and `cargo test --locked -p hawdb --lib --
api::tests::aggregates`. No lane, profile or deadline changes.

Row-bound node-pattern properties and read-only `UNWIND` are owned by the
existing Cypher parser and planner targets, executor batch-dispatch coverage,
and root `api::tests::row_bound_pattern_properties` in
`//:hawdb_unit_general_tests`. The regressions cover scalar/property bindings,
optional predicate boundaries, duplicate matches and inputs, NULL/empty values,
indexed and generic execution, parameter cache rebinding, dropped/unknown scope,
and payload/result budget failures. The Mem Thread-reference regression keeps
its original Boolean/COALESCE predicate and complete MATCH → row-dependent
UNWIND → WITH/aggregate → correlated MATCH/OPTIONAL MATCH query. Per-row
expansion also covers WITH aliases/native metadata, nested and multiple sources,
NULL lists/items, duplicate multiplicities, early LIMIT stop and scalar alias
reuse. Executor `transform::tests::row_unwind` owns cancellation, stop and refusal
cleanup; plan-cache `row_unwind_parameters` owns logical/physical rebinding, and
the existing allocation oracle covers owned row-UNWIND expressions and refuses
a 1 MiB output before allocating a copy. Mutation source refusals remain owned
by the planner. Replay with `cargo test --locked -p hawdb
--lib row_bound_pattern_properties`, `cargo test --locked -p hawdb-cypher
row_bound_pattern_properties`, and `cargo test --locked -p hawdb-plan-cypher
row_bound_pattern_properties`. No CI lane or timeout is added.

General `shortestPath` / `allShortestPaths` coverage is owned by existing
targets: executor `traversal::shortest_path_bfs::tests` (directions,
deterministic single/all selection, parallel relationships, equal endpoints,
bounded and capped hops, excluded relationships, operator-budget refusal,
cancellation during discovery and enumeration), `hawdb-cypher` parser tests,
`logical::pipeline::tests` binder/normalization tests and root
`api::tests::shortest_paths` (IC13 OPTIONAL MATCH, WITH/ORDER BY/LIMIT,
exact-parameter plan caching, hop cap and blocking-budget failures). Replay with
`cargo test --locked -p hawdb-executor --lib shortest_path_bfs` and
`cargo test --locked -p hawdb --lib api::tests::shortest_paths`. No lane,
profile or deadline changes. See [contract](SHORTEST_PATH_EXECUTION.md).

Anchored `GraphMatchExec` (#1423) is owned by optimizer
`graph::lowering::match_order::tests` and root `api::tests::anchored_match`
in the existing general unit lane. The embedded family checks exact rows,
step order, full-scan counts against an equivalent bound-first query, and
NULL anchors with required matches and OPTIONAL padding. A projected input
scan may contribute zero to the full-node scan counter; the regression checks
that anchoring adds no per-row scan rather than assuming the input scan kind.
Replay with `cargo test --locked -p hawdb --lib api::tests::anchored_match`.
No lane, fixture, feature matrix or deadline changes.

Early `GraphMatchExec` WHERE placement (#1424) is owned by optimizer
`graph::lowering::match_predicates::tests` and root `api::tests::early_match_predicates`.
The optimizer cases include dependencies nested in scalar conversions, temporal functions,
component access and map literals, and prove that moving conjuncts changes
intermediate work without changing the complete predicate's output cardinality.
The embedded combined regression anchors an OPTIONAL MATCH before placing its
conjuncts and final property projection. It checks exact rows, NULL padding,
the reordered step indices, and retention of a property used only by WHERE.
The executor evaluates placed conjuncts before undoing in-place candidate bindings.
Replay with `cargo test --locked -p hawdb-optimizer-graph match_predicates`.
Existing fixtures and assertions remain; CI lanes, feature profiles and deadlines
are unchanged.

`GraphMatchExec` record projection (#1427) is owned by optimizer
`graph::match_reads::tests` (which node properties later projections,
aggregates, filters, sort keys, nested conversion/temporal/component/map expressions
and later MATCH clauses read; whole-node
escapes, same-name columns and unknown operators keep full reads) and root
`api::tests::graph_match_reads` in `//:hawdb_unit_general_tests`. The root
family checks exact rows on a resident and a checkpointed out-of-core store
for anonymous and named relationships, relationship property patterns,
whole-node returns, `collect`, node equality, node lists, WHERE-only and
ORDER BY properties, variable-length trails, multi-label targets, bound
targets, undirected self-loops, OPTIONAL MATCH padding and cached-plan
rebinding. Persistent fixtures use process/sequence-qualified directories so
parallel cases do not depend on clock uniqueness. Its structural assertions use the always-compiled storage
`record_reads_for_test` point-read counters. Replay with `cargo test --locked
-p hawdb-optimizer-graph match_reads` and `cargo test --locked -p hawdb --lib
api::tests::graph_match_reads`. No lane, profile or deadline changes.

`GraphMatchExec` relationship conjunct pushdown and relationship projection
(#1483) extend those owners: optimizer `graph::lowering::match_predicates::tests`
(which conjuncts read only a one-hop step's relationship, including OR, NOT,
IS NULL, mixed, constant, bound, reused, anonymous and variable-length cases),
optimizer `graph::match_reads::tests` (relationship property demand, pattern
properties, whole-relationship escapes, imports and variable-length steps),
executor `batch::tests::graph_match` (edge-conjunct result equivalence, error
deferral and malformed placement), and root `api::tests::edge_predicates` in
`//:hawdb_unit_general_tests`. The root family checks exact rows on a resident
and a checkpointed out-of-core store for three-valued conjuncts, pattern
properties, whole relationships, OPTIONAL MATCH padding when every edge fails
and errors raised only for complete matches. Its structural assertion uses the
`record_reads_for_test` counters, including the new `projected_relationships`,
to show that rejected relationships read no target. Replay with `cargo test
--locked -p hawdb-optimizer-graph match_`, `cargo test --locked -p
hawdb-executor graph_match` and `cargo test --locked -p hawdb --lib
api::tests::edge_predicates`. No lane, profile or deadline changes.

The adaptive execution family extends those existing executor owners with
encoded non-expression key selection, complete-record validation, 64-KiB nested
payload forwarding, descriptor/memory-driven 8/4/2-way merges, and live host
pressure releasing sort capacity. The existing sort differential campaign
includes the wide-record, fan-in and pressure controls, plus sustained-pressure
TopN cutoff preservation (4,096 inputs, 48 retained, no spill for ascending or
descending arrival). Executor kernel tests bound soft-target polling to once
per 64 safe checks without delaying hard refusal or the progress floor. The admitted hash-join
unit family covers pressure arriving after build completion without duplicate
probe output. QoS `runtime::memory_target::tests` owns unchanged grants, child
propagation, mixed foreground/background tasks, recovery hysteresis and
unavailable process feedback halving work areas while admission stays closed.

The vector-projection unit owner also covers filtered execution feedback at
0.1%, 1% and 10% eligible fractions, contiguous/sparse IDs, exhaustive filtered
ground truth, productive traversal, insufficient work and mid-scan cancellation.
Its additional manual-only
`//crates/vector-projection:hawdb_diskann_feedback_fuzz_tests` target runs those
controls with the existing small-beam recall differential case. Do not add this
campaign to CI. Existing report-value differential tests cover the new adaptive
scan counter. The release-only `spill_resource_probe` example measures identical
small, wide, many-run and four-query workloads; `--governed` binds foreground
permits to one shared governor and process policy. It is not a CI performance gate.
See [the implementation and measurement contract](specs/ADAPTIVE_EXECUTION_MEMORY_SPEC.md).
No existing feature matrix, test deadline or compilation profile is removed.

The executor `scan::indexed_tests::bounded_index_projection` family covers
admitted scalar-index projection reads with work budgets, single/multiple keys,
NodeId-ordered duplicate merging, cross-property union deduplication, missing
index fallback, residual predicates, cancellation, work refusal, early limits,
payload/consumer refusal refunds, and pinned snapshots across update/delete.
Empty input and early Stop preserve a prior or callback-caught work refusal.
Its 256-row resident fixtures and complete-scan controls require selective reads
to finish within 32/64 work units rather than enumerate the graph. One unit is
charged before each scalar index probe and each posting-iterator advance,
including end-of-list; heap capacity is admitted and proportional to query keys,
not matching rows. The existing `//crates/executor:hawdb_executor_unit_tests`
owner discovers all cases through `:hawdb_executor_tests`; replay with
`cargo test --locked -p hawdb-executor --lib bounded_index_projection`.
The existing `hawdb_projection_allocation_tests` owner retains before-copy
payload-admission coverage. No test lane, timeout or feature scope changes.
Root `api::tests::query_execution::bounded_scalar_index_queries_rebind_in_and_union_parameters`
also checks ordinary parameterized Cypher equality/IN/OR, fused projection plans,
ordered output and parameter rebinding under a 64-unit task budget. Its existing
general root owner runs both default/minimal selections.

The `api::tests::materialized_views` family covers synchronous SQL view DDL,
projection/group retractions, differential SELECT equality, admission refusals,
rollback, concurrent commits, cascade deletes and WAL/checkpoint recovery.
Its `extrema` submodule covers retractable BIGINT/TEXT MIN/MAX, NULL-complete
source index admission, affected-prefix row budgets, exact creation row costs,
visible/unique view indexes, and Mem Thread message summaries with indexed
parameterized reads in shadow/demand-paged modes. The Mem schema fixture is
pinned in the test and guide; it does not claim legacy timestamp parsing parity.
It belongs to the existing root general unit lane and Cargo library tests;
local replay: `cargo test --locked -p hawdb --lib api::tests::materialized_views`.
Fixtures are small and do not introduce a new fuzz or CI lane. Supported modes
and limits are documented in [the implementation guide](MATERIALIZED_VIEWS.md).
The existing storage unit lane also covers admission-aware view recovery, WAL
decode parity, indexed MIN/MAX schema copying, and reservation release through
`cargo test --locked -p hawdb-storage --lib controlled_materialized_view_recovery`.
Storage's `relational::materialized_view::tests` checks the 250,000-row default,
the unchanged 64 MiB payload ceiling and exact refusal boundaries through counter
charges, without allocating large backfills. The existing storage unit target
checks that explicit maintenance limits also set hydration row, compressed-byte,
decompressed-byte and working-memory bounds. Its decoder matrix checks that WAL
row admission covers default mutations and checkpoint decoding covers WAL row,
value, schema and record shapes; independent logical/encoded byte limits are
not required to be equal. The same target
also owns `wal_recovery_ignores_foreground_work_limits_and_preserves_view_maintenance`
(two source rows and one COUNT view), decoder/default row-bound compatibility,
and both row and replay-access encoder/decoder admission parity with two-entry
fixtures and injected one-entry bounds. Replay:
`cargo test --locked -p hawdb-storage --lib wal_`.
The existing recovery preparation/discard case additionally lowers foreground
payload admission to one byte; recovery still stages and retries without
changing live state until installation. No CI lane, feature or timeout changes.

The manual [IMV work-limit diagnostic](benchmarks/imv_work_limits_2026_10_30/README.md)
measures process peak RSS at the row-work ceiling and near the unchanged payload
ceiling through the public SQL facade. It is an unpublished temporary Cargo host
over the retained Rust source, outside library archives and all CI/test suites.
Large fixtures belong only to this explicit resource measurement; ordinary
admission UTs remain counter-based or use two-row fixtures. The guide records
the exact default-feature checked profile, source/binary fingerprints, replay
commands and the limits of cumulative process high-water measurements.

The `api::query_request::tests` unit family covers compact request collection
through the ordinary read-transaction API. The 2,048-row collection regression
compares rows and payload accounting with validated consumer delivery, checks
owned-result completion/peak charges, rejects row and payload overflows, and
reuses the snapshot after refusal. Existing scoring, access-control, EXPLAIN,
and cancellation cases exercise the same compact collector. Mem bounded read
snapshots use this collector and retain cumulative statement budgets.

`api::tests::knowledge_entity_deletes` retains its six deletion scenarios through
ordinary parameterized requests: incident edges, scoped nonmatches, idless
identity, invalid syntax, read-only refusal and WAL replay. It no longer uses
single-entity deletion adapters or their DTOs. `graph_route_evidence` and
`workload_fixtures` retain private route statement qualification, while the
readiness crate tests its generic reducer with a small parameterized statement.
These remain in their existing root/readiness CI owners; the weekly native
runtime lane also selects the deletion and route-evidence families.

`api::tests::{community_assignments,community_cleanup}` retain their seven
scenarios through bounded ordinary Cypher: scoped and global NULL assignment,
invalid syntax before WAL, preservation of other labels, detach/incident-edge
deletion, empty no-op, one-batch durability and reopen. They use query rows and
commit epochs instead of removed business response DTOs. Their existing root
general unit owner remains unchanged.

`api::dependency_read::tests` checks both Cypher and SQL source mappings under
zero, undersized and sufficient result reservations, plus cancellation and
failed-proof refusal. Consumer catch-up admits result memory separately from
publication working memory. The registered Consumer integration cases in
`mvcc_staging_session` exercise graph/SQL delta and full-source verification,
rebuild, reopen and released admission, including the native Windows lane.
Standalone staging/baseline fixtures explicitly reserve results too; a zero
reservation remains a refusal. Request parity also checks explicit zero SQL
payload limits. CI owns these regressions; the weekly native runtime lane
explicitly selects the prepared-source reservation/cancellation case.

`api::concurrent::lock_dependency_tests` covers incremental pessimistic SQL
locking after disjoint commits, unchanged snapshot reads and read-your-own-writes,
overlapping/ABA changes, empty-range inserts, deterministic queued-wait commit
and rollback, schema barriers, first-statement refresh, and both residency modes
through pinned checkpoint and WAL/checkpoint reopen. It belongs to the
existing root concurrent CI owner. Storage's
`store::read_dependencies::locked_ranges::tests` checks interval boundaries
against the standard-library range oracle, payload/rekey/tombstone summaries,
oversized-key barriers, source/history refusal, metadata admission and a
65,537-stamp fixture with constant point-seek work and bounded broad validation.
The existing storage CI owner runs it. Focused replay uses
`cargo test --locked -p hawdb --lib lock_dependency_tests` and
`cargo test --locked -p hawdb-storage --all-features --lib locked_ranges`.
Required manual MVCC and local fuzz campaigns keep their existing owners and
profiles; these resource assertions do not measure transaction throughput.

`api::concurrent::composite_lock_tests` extends the same root concurrent owner
with composite order-prefix mutations, exclusive/inclusive suffix boundaries,
empty-range inserts, secondary/primary lock coordination, nullable secondary
entries, literal/parameter rekeys, and deterministic queued refresh/deadlock
schedules, plus later-key validation after implicit table escalation. Full-scan
waits retain validation of unchanged/absent write intents, and contradictory
single-key predicates remain lock free. Both
materialized and out-of-core fixtures reopen checkpointed data
before exercising locks. Candidate discovery uses the ordinary pinned SQL row
and index readers, caps output at 65 rows and 1 MiB, and bounds candidate work;
more than 64 discovered lock entries or 1 MiB of staged key values escalates to
a table guard. The suite checks large assignment parameters before key fanout and
that escalation cannot expose a partial lock set, including a `LIMIT 1` query.
Sparse 5,000-row residual scans exercise internal work-budget escalation for
locking reads, UPDATE and DELETE, including autocommit and both primary-key
shapes/residencies. Typed work/output refusals distinguish internal probe caps
from caller limits; smaller caller limits still fail without table escalation.
Hydration retains caller limits while the streaming probe bounds visited rows.
Relational aggregate unit tests, `tests/execution_request_contract.rs` and
Python `test_read_controls.py` pin the public work-refusal contract: Rust
`ResourceBudgetExceeded` / Python `ResourceBudgetError`, with query-scoped
work units and the originating budget option. Existing cancellation, output
and memory refusal controls remain distinct in their current owners.
DB-API pickle regressions separately retain generic execution-error attributes
and typed work-budget attributes with their respective PEP 249 classifications.
Focused replay: `cargo test --locked -p hawdb --lib composite_lock_tests`.
Constraint-key changes and nonliteral index rekeys retain conservative guards;
nullable index version validation retains its existing table dependency.

`api::sql_runtime::tests` passes prepared SQL mutations through the database and
transaction kernels with diagnostic-only text, detecting accidental parser
fallback. DDL, INSERT/RETURNING, UPDATE, DELETE and Strict Append preserve bound
parameters, output refusal, earlier transaction work and publication. Root
general and the native runtime lane own these cases. The relational crate's
prepared-mutation cases rebind current schemas/parameters and append routing;
its existing manual statement compiler campaign reuses templates across inputs
and compares independent typed writes. No new fuzz CI owner is introduced.

`hawdb-sql::template_cache::tests` keeps branch-catalog inspection out of the
selected branch's data-query cache without reparsing its returned template.
The SQL crate unit owner covers eviction/hit behavior; the existing root recovery
`branch_lifecycle` family preserves the ordinary database cache-isolation check.

The executor `result_delivery::tests::borrowed` family checks native columnar
payload pointer identity for immediate consumers, compact validated delivery
across source retirement and segment boundaries, logical quota refusal before
callbacks, cancellation/error/unwind release, schema rejection and nested-copy
admission independent of source spare capacity. The executor unit owner runs
these regressions in CI. Root `api::tests::query_execution` checks the public
borrowed streaming entrypoint's compact views and zero-prefix budget refusal.
The weekly native runtime lane also selects these borrowed-result cases on
Windows and macOS. These do not yet qualify a native scan-to-consumer production
path.

The `api::query_request::adapter_tests` family exercises shared Cypher and SQL
requests across database, pinned-read, explicit-write, concurrent optimistic and
pessimistic, and Embedded transaction paths. Cases include parameters, scoring,
ACL availability, zero/output limits, parent/request cancellation, prepared-policy
invalidation, SQL RETURNING and Cypher SET RETURN refusal before private staging
or publication. A changed ACL requires fresh preparation; a missing ACL capability
retains its typed error. Branch-switch cases retain the distinct branch error.
Cypher cases retain earlier successful statements through refused
updates in both locking modes, enforce exact/zero row and payload limits, and
distinguish aggregate result size from affected-node count and zero matches.
Persistent coverage reopens a database after refused SET RETURN statements and
checks that only successful transaction statements survived. The executor
mutation-preflight owner independently proves output refusal precedes any storage
write call.
The production qualification fixture counts separate preparation/execution
admissions. Its small mixed soak funds both phases and bounded stream buffers
with 3 MiB, retains a raw dataset twice that size (768 nodes, 8 KiB payloads),
and preserves the 32 KiB blocking-operator/64 KiB segment-cache limits, complete
query counts, checkpoint advancement and final zero-admission assertions.
`api::query_request::host::tests` also covers host-scorer delivery through the
concurrent and transaction entry points. These remain root-unit regressions;
the weekly platform runtime lane exercises the request families with ACL enabled
and disabled. Core cancellation tests cover linked cancellation/waker cleanup,
controller preservation and common-ancestor work accounting in that lane.

`api::query_request::budget_tests` exercises one mixed Cypher/SQL read budget
while concurrent writes advance, rejects cumulative row/payload overflow without
debiting failed owned results, and charges EXPLAIN's delivered report. These
cases share the request family's root-unit and weekly platform owners.
`embedded_tokio::request_tests` covers owned request attachments, ACL enabled
and disabled, host-scorer invocation/disposal, streaming ceilings, cancellation,
admitted SQL template reuse with rebound parameters, SQL/Cypher RETURNING rejection
before commit with unchanged epochs and refunded admission, and refusal while an
explicit Embedded transaction is open. The weekly
runtime lane runs the complete Tokio family with `tokio-runtime`, then these
request cases with `tokio-runtime,acl`. Its saturated-admission case also proves
SQL waits for capacity before parsing. Native CI owns execution; local strict
Clippy checks compile the same test sources.

`nowledge_mem::concurrent_owner::tests` requires a second writer to commit while
the first transaction callback remains suspended, then checks both the retained
old snapshot and the newly published state and released admission memory. It
uses the existing App snapshot fixture and root general unit owner.
The weekly native runtime lane also runs this family and
`nowledge_mem::app_read_snapshot_tests`, preserving their mixed-statement,
publication-failure, unwind, admission and old-generation assertions after Mem
switches to the concurrent transaction kernel.

`api::concurrent::graph_preparation_tests` compares actual planner bypass counts
with pessimistic execution/replay counters. One statement prepares once even when
new locks require two executions; the next statement rebinds its parameters and
uses the staged schema. Refused output restores the statement without dropping
earlier writes or their locks. This is owned by the root general unit suite and
the macOS/Windows runtime lane. Existing request, lock and serializability
families continue to cover the shared execution kernel; preparation counts are
not latency or allocation measurements.

The same family also pauses a sealed graph transaction between compaction and
WAL encoding, proves a disjoint writer commits during that pause, and verifies
that an intervening conflicting writer is rejected before WAL and stays rejected
after reopen. `api::concurrent::publication::tests` covers borrowed read-only
Cypher views across publication generations, mutable/EXPLAIN fallback, limits,
cancellation, reports and private observation refresh. These additions retain
the existing root general/concurrent owners, checked profile and timeouts.

Storage's existing unit owner covers cached COW page weights through replacement,
mutable guards, splitting, retain/unwind and saturating payload sizes;
relationship record sharing preserves old snapshots and untouched payload
addresses. `version::page_history_tests` exercises page-owned history charges,
last-owner refunds, unmanaged-root adoption, epoch-cache invalidation and pruning
without spare history budget. Existing retention, checkpoint admission and WAL
codec/recovery families remain their complementary owners. Manual release-only
`cargo bench --locked --bench mvcc_hot_paths` compares identical fixed-work
harnesses on baseline and candidate for small/large COW pages, pinned/unpinned
relationships, concurrent Cypher reads and synchronized graph commits including
reopen validation. It is excluded from CI; measurements and limits are linked
from [the MVCC validation protocol](MVCC_COMMIT_VALIDATION_PROTOCOL.md).

`api::concurrent::autocommit::tests` covers ordinary Cypher writers sharing a
label but updating distinct unique keys, readers progressing while private
execution is suspended, intervening commits without replanning, excluded unique
candidates, schema invalidation, cancellation/output refusal, and durable create
IDs after reopen. The root concurrent suite and macOS/Windows runtime lane own these
cases, along with out-of-core unique lookup, EXPLAIN ANALYZE rejection, mutation
summary ceilings and expression/NULL predicate parity.
The expression fallback uses a supported `COALESCE` comparison. The concurrent
read-observation cases pause SQL and Cypher private execution before publication;
post-commit telemetry is not a prepublication synchronization point.
`nowledge_mem::read_execution::tests` additionally exercises the actual
admitted report adapter with two such writers, captured plans, one preparation
per statement and full admission refund. These are correctness/operation-count
checks, not release latency or allocation evidence.

`embedded_tokio::concurrency_tests` covers both ordinary languages with two
writers and advancing readers, preparation reuse across intervening commits,
direct-host mutation exclusion, database replacement refusal, cancellation and
complete admission refund. It uses the same concurrent kernel phase gates as the
facade regressions. Root Tokio and the existing macOS/Windows Tokio-entrypoint
lane own this family; these are correctness checks, not release benchmarks.
Planning regressions now test compatibility across data/checkpoint changes,
configuration refusal and durable execution/reopen rather than the retired
whole-publication equality fence. Existing explicit transaction fences remain.

`api::concurrent::autocommit::sql::tests` covers two ordinary SQL point writers
and advancing readers, old publication release before lock waiting, fresh-snapshot
arithmetic, changed constraint scopes, excluded predicate candidates versus
explicit writers, independent table inserts with UUID defaults, FK cascades,
RETURNING refusal, precommit cancellation and durable reopen. Prepared DDL/Strict
Append execution receives diagnostic-only text to detect parser fallback. The
root concurrent unit suite and an exact required macOS/Windows runtime filter own
these cases. Existing explicit-transaction stale-snapshot tests remain unchanged.
These assertions establish scope/ownership behavior, not release speedup.

`HawDBAutocommitScope` joins the existing `docs/tla:storage_models` positive
owner. Its three manual controls (`UnprotectedPredicate`, `EarlySnapshot`,
`IgnoreSchema`) distinguish predicate protection, snapshot ordering and admission
invalidation. They do not replace positive checking or native scope-mapping tests.

`nowledge_mem::read_execution::tests` covers ordinary owned/streaming and report
reads from published views: streaming and report-observation callbacks must allow
a writer and fresh reader to finish, and execution-admission telemetry must
release the preparation view in both ordinary and report entrypoints.
Data-only commits remain reusable; schema and database-instance changes reject
the old preparation before execution. Every case checks released admission
memory. Report cases also require one cache lookup per preparation and preserve
physical-plan capture with rebound parameters. External text/vector seed reports
admit the published projection's I/O depth without retaining its generation while
waiting; graph-only reports and plain EXPLAIN do not reserve projection I/O.
A projection I/O-depth change during admission rejects the old request and
releases its preparation, execution memory and I/O reservations.
The root general unit owner and weekly runtime lane execute this family.
Production resource-profile cases in the same family require completion while
the publication owner is held, live cache observations with the original durable
and manifest metadata, one preparation, host/statement ceilings and full refund
after refusal. Admission telemetry advances data, schema or the database instance;
profiling releases its preparation view and rejects stale evidence against the
execution epoch. `store::tests::detached_snapshots_preserve_live_cache_and_captured_manifest_observations`
additionally checks nested snapshots after their writable owner closes. These
observations are shared cache/process metrics, not per-query concurrency attribution.
The family also checks schema guidance and generated queries against the last
published view while a direct writer holds the owner. Generated reads use one
preparation lookup, retain parameter/row/payload checks, and reject a stale
generated context after an ordinary data commit during admission. Plain EXPLAIN
observation covers read, DML and DDL plans while a writer and fresh reader finish.
Generated parameter rejection uses an explicitly typed `Thread.id` property; an
undeclared `Any` property correctly accepts integers. Both admitted generated-read
entrypoints reject invalid parameters before preparation and leave the plan-cache
counters unchanged; snapshot epoch validation still occurs at execution.
EXPLAIN observation uses a
separate 64 KiB host result budget for retained plan/schema metadata; ordinary
App reads keep 16 KiB. Failed observations surface the original query error
after releasing the waiting writer, without panicking inside telemetry.
`api::query_runtime::tests` checks that plain EXPLAIN never executes write plans,
ANALYZE rejects DML/DDL, zero diagnostic budgets fail, and direct/forked read
snapshots retain captured query settings with statement-local overrides. These
tests use the existing root general and weekly runtime owners and features.
Small logical-payload cases preserve successful bounded reads and typed payload
refusals while separately testing a stricter caller result-memory reservation and
zero delivery on refusal. Governor counters include both preparation and execution
admissions, with complete release after each statement.

The App snapshot family also exercises out-of-core generation replacement through
the actual Mem maintenance entrypoint while a snapshot callback remains active.
It checks the old graph/projection pair, the newer pair, generation advancement,
release of the old reader after callback completion, and refunded admission.
The FD-pressure retry case holds descriptor reservations on another thread so
refresh cannot borrow them; it checks the old pinned reader and same-handle retry.
This covers `SearchOutOfCoreReader::refresh_shared` through its embedded host;
the resident fixture now applies three graph/projection updates while an old
snapshot remains active and checks fresh/old pairs plus final refund. Resident
report-observation tests cover ordinary and external text queries while a writer
and a fresh reader advance. Search resident-generation units cover shared funding,
capacity refusal/retry, last-owner release and frozen freshness in query reports.
The existing Search feature matrix and root runtime lanes own these cases.
The resident text-seed fixture requires the graph, SQL and projection writer to
finish before the retained snapshot callback returns, then verifies its old
results and epoch remain stable. Incremental out-of-core helper fixtures submit
documents in the generation writer's required strictly increasing ID order.
The text-seed fixture also exercises the report entrypoint and EXPLAIN ANALYZE
with the captured out-of-core external operator. Plain/analyzed explain rows
have an explicit 1 MiB diagnostic cap and debit their delivered row/payload from
the cumulative snapshot ledger; ordinary reads keep their 8 KiB snapshot cap.

The root general `nowledge_mem` family exercises out-of-core text, hydration,
graph context and `CALL vector_search` with default DiskANN and explicit RaBitQ
artifacts. It checks typed ANN/raw score sources and the raw-scan behavior of
disabled compression. Replacement/shadow evidence fixtures explicitly select
RaBitQ because their compression gate remains required; sampled default-backend
recall retains DiskANN. `production_search::tests` likewise builds explicit
RaBitQ artifacts for its required/preferred compression lifecycle probes.
The default/minimal staging session family counts both deleted native keys and
legacy document tombstones before reducing the complete pinned source interval.

## Execution lanes

| Lane / entry point | Problems covered | Execution policy |
| --- | --- | --- |
| Prow root: `//:hawdb_unit_tests`, `//:hawdb_system_sql_loom_tests`, `//:hawdb_linux_ci_smoke_tests`, CLI/shadow and package-parity targets | Embedded facade behavior, concurrent publication, recovery, public consumers, compatibility protocols and benchmark evidence | Required PR and mainline regression coverage. Fuzz is excluded. |
| Prow crates: `//:hawdb_presubmit_crate_tests` | Internal component contracts and exact Search feature profiles | Required checked-profile component coverage (the release-only observer target runs in the native lane). Each package owns `:presubmit_tests`; manual-only targets must not accidentally enter implicit suite discovery. |
| Prow dense analytics: `//:hawdb_unit_analytics_rss_tests` | Persistent graph identity admission, edge streaming and bounded incremental RSS in a fresh process | Separate exclusive target; dense fixture construction is outside the measured child's RSS baseline. |
| Prow storage crash recovery: `//:hawdb_storage_crash_recovery_tests` | Subprocess termination at persistence boundaries, complete transaction recovery, endpoint integrity and artifact generations | Dedicated job binds evidence to source/toolchain/features. Process termination does not alone establish power-loss safety. |
| Native bindings: `//bindings/ffi:hawdb_ffi_tests`, `//bindings/go:hawdb_go_tests`, `//bindings/python/...` | C ABI retention, host ownership/errors, Go integration/race checks and Python behavior | Binding-specific PR/mainline workflows; Windows contracts and scheduled qualification are distinct receipts. See workflow definitions for current triggers. |
| MoonBit Native: `//bindings/moonbit:hawdb_moonbit_tests` (Rust lifecycle + real-engine conformance) | Direct Rust adapter builds against `//:hawdb`; Rust ownership, codec (including exact Decimal text, malformed-tag refusal and literal marker maps), autocommit/transaction separation, SQL/Cypher, transactions and durability contracts | Native Bindings Bazel Linux/macOS matrix runs the toolchain-free `//bindings/moonbit/native:hawdb_moonbit_rust_tests` on every engine change. `.github/workflows/moonbit-native.yml` runs the `manual`-tagged executable conformance through Bazel on Linux/macOS and through Cargo on Windows, for SDK changes and mainline engine changes; the MoonBit compiler must be on `PATH`. |
| Python release: `.github/workflows/pypi.yaml` | Released tag/version/main-history agreement, reviewed shared dependency identities, byte-identical sdist lock/profile and tool exclusions, five native wheel builds from that sdist, installed default/Pydantic binding tests, typing/license/metadata payloads and PyPI file hashes | GitHub Release publication or explicit replay of an existing release tag. Linux x86-64/AArch64 use manylinux 2.28; macOS x86-64/AArch64 and Windows x86-64 build natively. Reuses `bindings/python/tests` on CPython 3.11; the final public install smoke is Linux x86-64 with bounded index/CDN retries. No fuzz campaigns or new presubmit test lane. Build cost includes a first release-profile compilation on each platform. See [publishing](../bindings/python/README.md#publishing). |
| Python dependency lock: `bindings/python/test_check_lock.py` and `check_lock.py` | Reject shared version/source/checksum drift and local engine version mismatch; accept reviewed multiple-version selections and binding-only dependencies | Existing Python Bindings pip job, before its locked wheel build. Replay: `python -m unittest discover -s bindings/python -p test_check_lock.py` and `python bindings/python/check_lock.py` with Python 3.11+. These pure metadata controls do not join the Bazel native-binding test inventory or compile the engine. |
| Weekly platform and daily Windows abandonment qualification | Supported platform/feature combinations and the complete Windows abandonment/GC fault matrix | Scheduled or explicit workflows. They are not fuzz time budgets. |
| Cypher PEG frontend | The default statement, profiled and pipeline entries share the SQL/PGQ packrat engine with a Cypher-specific lexer. Existing migration inventory (1,427 cases) compares acceptance, error classes and full AST/source spans with the test-only handwritten driver. Generated clause/wrapper and UTF-8 truncation differentials cover anonymous-name rollback, hints, legacy procedure admission, combined nesting and PEG work/node/memo/depth limits. A native capture counter checks that two-WITH lookahead reuses accepted clause ASTs. | `cargo test --locked -p hawdb-cypher`; `bazel test //crates/cypher:hawdb_cypher_tests //crates/cypher:hawdb_cypher_backtracking_fuzz_tests`. Shared engine regressions remain in `//crates/sql-syntax:hawdb_sql_syntax_tests`; SQL/PGQ integration targets remain unchanged. No new CI or crate boundary. |
| Local Shiro and MVCC tools | Generated SQL/Cypher result relations, parser/storage campaigns and optimistic transaction-history checking | Manual only. Never include the tools in normal or dedicated CI, scheduled workflows or production dependencies. |

## Root regression owners

Namespace durability anchors use the existing storage descriptor tests,
`branch_project_open` integration target and root power-loss family. Storage
cases cover bounded inclusive barriers, unchanged default ancestry, failed
barrier retry/accounting, pre-effect validation, canonical aliases, symlink
escape and live-owner configuration conflicts. Related sibling components
inherit the explicit host anchor while retaining their own finite descriptor
domains; nested components keep the containing domain's capacity. Detached
producer scratch keeps the initiating project's descriptor accounting. Scratch
inside its explicit anchor stops there inclusively; scratch outside retains its
complete ancestor walk. Both paths propagate failed barriers without leaking
permits. Storage directory-sync cases retain failed operation/path/native-source
diagnostics and typed descriptor-budget classification through contextual IO
errors. These use the existing storage unit/native owners without a new lane.
The Windows descriptor case uses a fresh thread with a restricted token, removing administrator-group
authority and privileges without changing machine ACLs. It opens and reopens a
private project and sibling component beneath the OS-owned temp directory. The
embedded facade case round-trips graph and SQL data, opens and reopens the
sibling search store, checks its live descriptor domain's anchor, and refuses missing incremental projections
without creating them. The anchored initial-installation recorder
reuses the complete before/after mkdir, lost-write and committed mixed-transaction
oracles of the default installation case. These cases add no CI job or profile;
the native Windows storage descriptor lane discovers the restricted-token case.
Local replay filters are `namespace_anchor` (storage) and
`namespace_durability_anchor` (facade integration and power-loss owners).
The recorder requires the root `test-support` feature; the ordinary default
unit executable does not contain it. Replay it with
`bazel test //:hawdb_unit_test_binary --//:windows_native_profile=facade_all --test_arg=namespace_durability_anchor`
or `cargo test --locked -p hawdb --all-features --lib namespace_durability_anchor`.
Its existing full-feature qualification owner is the branch power-loss
workflow's `remaining` partition; the native Windows storage shard separately
owns the restricted-token descriptor case.

| Target / family | What it detects | Notes |
| --- | --- | --- |
| `//:hawdb_manual_checkpoint_tests`, `//:hawdb_manual_checkpoint_minimal_tests` | Explicit ordinary/concurrent/embedded checkpoints preserve durable publication independently of background support/admission. Embedded controls retain one same-governor background or foreground I/O permit, distinguish allowed foreground work from legitimate refusal, and check reopen and refunds. | Existing default/minimal public-consumer carriers and profiles; replay `cargo test --locked --test manual_checkpoint`, adding `--no-default-features` for minimal. The existing root automatic-checkpoint `publication_io` family also pauses the actual owner with its acquired wave, observes manual suspension, and checks durable completion/refunds under [#1219](https://github.com/nowledge-co/hawdb/issues/1219). |
| `//:hawdb_unit_general_tests` | Embedded API, schema/query and general facade regressions | Shared unit executable; partition script assigns each discovered case an owner. |
| Automatic checkpoint `read_handoff` | Read callbacks, concurrent and SQL reads adopt ready generations; invalid identities fail closed; typed EXPLAIN ANALYZE progresses without the owner mutex | Five existing cases in `//:hawdb_unit_general_tests`. The seal-pause fixture waits for the owner's handoff-pause acknowledgement before adoption or guard release; observing `Phase::Handoff` alone races probe entry. The invalid-identity case prepares its foreign persistent database before entering the bounded owner pause, keeping unrelated setup I/O outside the 15-second assertion window. Existing query, admission refund, snapshot and reopen assertions and deadlines remain. Replay: `bazel test //:hawdb_unit_general_tests --test_arg=api::automatic_checkpoint::tests::read_handoff`. Ref [#1116](https://github.com/nowledge-co/hawdb/issues/1116); this fixture race is distinct from other checkpoint/branch-open stalls. |
| `//:hawdb_unit_concurrent_tests` | Transaction locks, read observation, commit admission and concurrent publication races | Known long target: [#972](https://github.com/nowledge-co/hawdb/issues/972). Preserve barriers and observations; a deadline is not a substitute for a deterministic schedule. |
| Covered pessimistic graph mutations (`covered_graph`) and concurrent metrics (`api::concurrent::metrics::tests`) | Retained staged results under existing locks, new-target/upgrade replay, stale-epoch refusal, lock timeout/retry, rollback, failed-statement atomicity, durable reopen, disabled-by-default instrumentation and explicit metrics inspection during writer ownership | Owned by `//:hawdb_unit_concurrent_tests`; local replay with `--test_arg=covered_graph` or `--test_arg=api::concurrent::metrics::tests`. Assertions use work counts and final rows rather than timing thresholds. |
| Typed pessimistic retry errors | Core transaction-error tests cover typed-only classification and preserve optimistic conflict behavior. Root concurrent transaction tests verify SQL/Cypher stale snapshots, repeated query and commit calls, typed deadlock victims, lock release, unchanged rejected graph mutations and usable transactions after statement-level lock timeout. Owned by existing core and `//:hawdb_unit_concurrent_tests` CI; replay with `cargo test --locked -p hawdb --lib pessimistic_` and `cargo test --locked -p hawdb --lib deadlock_`. |
| `//:hawdb_unit_analytics_core_general_tests` | Graph algorithms, projected artifacts, identity and generation behavior | Separate from isolated dense RSS ownership. |
| `//:hawdb_unit_analytics_rss_tests` | Dense persistent graph algorithms with bounded reader RSS and streamed adjacency | 128 nodes / 16,256 relationships. Isolated by #1030; history in [#1027](https://github.com/nowledge-co/hawdb/issues/1027). Uses the same repository test profile as every other root partition. |
| `//:hawdb_unit_recovery_tests`, `//:hawdb_unit_storage_crash_matrix_tests` | Transaction persistence, checkpoint/compaction and recovery boundary regressions | Dedicated crash-job evidence has additional identity and completeness checks. |
| `//:hawdb_unit_row_page_compaction_{materialized,out_of_core}_tests` | Physical row-page reclamation while pinned readers retain old generations; correct reopen/scrub in both residency modes | Full 16-table churn fixture and physical-byte assertions. Repository-wide checked test profile. Split by residency in #959; history in [#889](https://github.com/nowledge-co/hawdb/issues/889). |
| `//:hawdb_unit_row_page_compaction_admission_tests` | Budget refusal, retryability, failpoints and admission release around compaction | Ordinary compilation; separate from the two full convergence cases. |
| `//:hawdb_mvcc_joined_reads{,_minimal}_tests` | Joined-read dependencies, absent/filtered parents, off-page children, key bindings and sticky errors | Root presubmit; full and minimal feature contracts, each compiled once and executed as eight disjoint exact-case Bazel shards. The 16 cold/warm, point/page and parent/child-effect scenarios are individually named tests, distributed two per shard alongside seven other joined-read cases (23 cases total). Every fixture and assertion remains; each shard retains the 300-second deadline. Fixed scenario matrix rather than timed fuzz. The shard script rejects empty inventories, invalid coordinates, failed or zero-case selections; its regression checks cover both 8-case and uneven 23-case inventories. Issue #1158 tracks loaded-run timeout headroom. |
| `//:hawdb_mvcc_projection_publication{,_minimal}_tests` | Projection publication versus concurrent reads and transaction validation | Preserve publication barriers and complete observation evidence. |
| `//:hawdb_mvcc_staging_session{,_minimal}_tests` | Fixed-E graph/SQL mapping, complete-E phantom/delete/content guards, disjoint-write rejection, append/projection isolation, registered Consumer publication, cancellation and reopen | Root CI; one-item batches and hot/cold full-rebuild equality. Registered Consumer cases also run on native Windows. The competing-registration/candidate fixture uses one background slot and proves idle tokens retain no execution slots. The stationary Consumer family covers fresh publication admission, 260 resident refusals with unchanged allocation ledger/directories, native birth retirement, seal/intent FD pressure with injected pre-selection failure and seven publication/ACK/cache boundaries with live resolution and reopen. FD observers require `test-support`; other cases run in the default unit lane too. Final artifact construction is blocking. See [source-coherent catch-up](specs/SOURCE_COHERENT_SEARCH_CATCH_UP_SPEC.md) and [registered publication](REGISTERED_CONSUMER_CATCH_UP.md). |
| `//:hawdb_mvcc_full_source{,_minimal}_tests`, `//:hawdb_mvcc_baseline_comparison{,_minimal}_tests` | Exhaustive pinned source enumeration, duplicate IDs, full set/content comparison and full-rebuild reference | Root CI; small deterministic hot/cold fixtures. Complete-E verification adds a full-source pass and conservatively rejects every post-E write. |
| `//:hawdb_branch_project_open{,_minimal}_tests` and root branch lifecycle units | Existing-project open, recovery, leases and resource ownership | Includes V2 project selectors, exactly one retained metadata directory handle, strict foreground saturation/export retry, pending-child internal recovery completion at four descriptors, and cold branch publication and branch switching while strict foreground capacity is occupied. Verify durable identity, catalog results, reservation retirement, source isolation and reopen. Native FD scaling runs in an isolated subprocess and verifies return to baseline after closure. Persistent fixture cost is distinct from randomized exploration. |
| `//:hawdb_execution_request_contract_tests`, process-memory/search-consumer contracts | Request budgets, refusal behavior, projection generation publication and host resource policy | Preserve exact error and readiness assertions. |
| Registered stationary Consumer unit family (`cargo test -p hawdb --all-features --lib api::search_projection_consumer::`) and `//:hawdb_search_projection_consumer{,_minimal}_tests` | Native creation/catch-up/reopen, immutable old pins, completed receipts, revocation, disposable-cache recovery, transient IO retry and allocation capacity | Includes 260 actual catch-ups with an old pin, 256 unresolved rows with typed exhaustion, and transient retry through both direct open and pending-publication `open_or_create` startup recovery without reinitialization. The long capacity fixture suspends automatic checkpoint publication; checkpoint concurrency remains covered separately. Root checked-profile lane plus Unix native binding targets; positive `registered_stationary` and `_1043_` selections execute in the Windows native contract lane. [Protocol, limits and remaining gates](CONSUMER_STATIONARY_PUBLICATION.md). |
| `api::search_projection_consumer::tests::recovery::registered_stationary_*` | Same-handle preparation/lost-response retry, interrupted initializer, late generation/resident refusal, exact reservation reuse and cleanup custody | Registered in the root unit family and selected by the existing Windows `registered_stationary` lane. The FD/rename-observer cases require `--features test-support` (included by Windows `--all-features`); the remaining cases also run in the default root lane. Post-intent descriptor pressure must not cause target refusal; injected pre-selection failures reuse the same operation without rerunning the initializer; unknown cleanup evidence must survive. Rejected selectors and pre-selection source advancement settle creation, release capacity and private controls, and require explicit fresh-target rebuild. Lost metadata replies refresh expired/changed lease policies. Recovery capacity applies even to a registry that needs reinitialization. Terminal cleanup retries preserve foreign evidence and succeed after another operation compacts the completed row. Ref [#1106](https://github.com/nowledge-co/hawdb/issues/1106). |
| Native configured directory components (`native_directory_component`) | Captured-parent native name open/exclusive birth, exact space/Unicode/native-unit spelling, nofollow/reparse and collision refusal, original capture evidence, descriptor/model pre-effect refusal and retained Created after a real post-mkdir observer error | Existing `//crates/storage:hawdb_storage_tests` / Prow crates owner and explicit Windows storage failure-boundary selection. Tests reuse the real namespace backend and recorder; lost-response fault synchronously poisons only a local test observer after actual mkdir. Names retain Linux raw-byte/Windows UTF16-unit budgets. Apple raw input fits PATH_MAX scratch while native create/lookup decide eligibility; real long Unicode and canonical-equivalent lookup use held-file identity to retain one original recorder inode/path. Exact model keys need one FD; alias probe admission is lazy, outside the engine lock, and refunded on refusal. A real governor-backed caller wrapper funds the native-specific conservative trace bound until directory Drop, including longer registered spellings and pre-IO budget refusal. Artifact names stay ASCII-only. Before/after crash images and the actual parent barrier remain separate from process recovery. Replay `cargo test --locked -p hawdb-storage --lib native_directory_component`. Cross-compilation does not qualify Windows native name/reparse/rename behavior. This primitive grants no captured-open, SDK custody or activation permission. |
| Storage `consumer_allocation::bootstrap_tests`, `file_io::source_directory::control_candidate::tests`, `held_wal_rollback` | Torn bootstrap candidate isolation, lost ledger reply, pre-effect retry versus uncertain rename, foreign-name cleanup refusal and original-WAL header preservation | Existing storage unit owner plus explicit native Windows failure-boundary selection. Torn/reordered images use the finite power-loss model, separately from process reopen and native execution. |
| Storage WAL admission (`store::durable::wal::tests`) | Healthy mutation admission avoids generation-directory inventory; refusal retains exact pressure measurements and reasons | Existing `//crates/storage:hawdb_storage_tests` / Prow crates owner. Two pure cases cover lazy observation and 1,536 pressure combinations, including integrity, WAL/delta, free-space, cache and retained-reader states. Public pressure reports and durability/namespace checks retain their existing owners. |
| Storage source-sync and captured-WAL units | Non-strict source-barrier progress versus uncertain durability failure | Source barriers complete under strict foreground descriptor pressure without losing the live handle; captured WAL append prepays native validation handles before writing even when a competing owner fills remaining capacity. The latter also executes explicitly in the native Windows contract lane. |
| Storage WAL identity-cache and source-directory namespace units | Reuse pinned descriptor identity while preserving fresh namespace lookup, rotation, symlink retargeting and strict admission | Existing storage unit owner. Unix-only cache coverage complements captured-WAL replacement, uncertain append, rollback and power-loss tests; Windows keeps the existing native identity path. |
| Private checkpoint WAL resume and verbatim suffix fixtures | Partial append rollback through the original native object, completed-prefix retry, exact payload preservation and independent reopen | Existing storage unit and weekly Windows/macOS storage lanes. Windows rollback verifies that recovery handles can exceed the foreground FD ceiling while remaining accounted. Independent test copies exclude the source's active ownership-lock sidecar. |
| Search generation cleanup captured-source units | Relative enumeration/unlink preserve foreign replacement files; both sweeps reject foreign retention without losing retries | Existing search unit and vector platform feature lanes. Windows replaces the path after native directory capture and before opening child locks; Unix also replaces it after publication/source binding. Both require an actual replacement and preserve all deletion/retention assertions; native ancestor-rename refusal is separately covered by storage source-directory units. |
| Storage `file_descriptors::tests::capacity_policy` and root `api::tests::descriptor_capacity` | Soft capacity with pinned readers, strict foreground refusal, non-strict internal progress, joined-worker policy handoff and accounting retirement | Existing storage/root checked-profile owners; deterministic small fixtures. Refusal cases explicitly select strict mode. Both project constructors and the database facade preserve typed strict/soft configuration conflicts, the active policy and counts; a policy can change after all previous owners close. The existing compat protocol-server unit lane round-trips both policy-conflict directions and rejects non-boolean fields. Unix subprocesses lower only their own soft limit to verify the shared process OS allowance across three project domains, namespace/standalone accounting, active/retired prepaid-slot ownership, atomic final-slot admission by competing projects, failed-open retirement, typed pre-effect refusal, unchanged WAL bytes, same-handle retry and reopen; native exhaustion remains a separate Linux test. The default full-budget reservation test also uses an isolated Unix process so it cannot consume another test's process allowance. Namespace-probe fixtures verify independent-project and alias isolation, initializing standard-library OS error formatting before measuring exact native handle retirement on every iteration. Native Bindings `windows-native-contracts` runs the complete descriptor family and facade capacity tests, records source/toolchain and retains output; native Windows execution remains distinct from cross-compilation. Metadata/bootstrap, ownership-lock, sidecar publication, source synchronization, change capture and search/initializer cleanup regressions cover internal progress or native failure retirement at occupied strict capacity. Change capture retains its preimage byte limits and complete replay assertions. See [descriptor capacity](FILE_DESCRIPTOR_CAPACITY.md). |
| Default/minimal/graph-text consumer, host allocator and portable tests | Public feature boundaries, allocator ownership, in-memory portability and excluded native dependencies | Do not replace exact minimal-feature compilation with a default-feature run. |
| Scoped Consumer preparation (`cargo test --locked -p hawdb --all-features --test mvcc_staging_session registered_consumer_`) | Real writer commits between capture, reservation, construction and selection; repeated durable watermarks; graph/SQL/schema/source fences; reserved/prepared drop recovery and cold reopen | Root integration lane owns the tests. The split API is described in [Consumer progress and retention](CONSUMER_PROGRESS_AND_RETENTION.md); manual `consumer_publication` timing also records commits during native construction. |
| Read-only conflict history (`cargo test --locked -p hawdb-storage --lib snapshot_retention_tests`) | Long readers release unrelated stamps; stale read-to-write upgrades fail closed; writable savepoints preserve delete/reinsert conflicts; snapshot allocation accounting | Storage unit lane owns the tests. Read data and dependency/write validation pins have separate lifetimes. |
| Cross-crate FD refusal and owned cleanup (`spill::tests`, relational `descriptor_exhaustion`, vector `artifact::descriptor_tests`, Search descriptor/root-registry/stage-cleanup families, storage control-candidate and root derived-repair units) | Strict foreground rejection versus internal progress, native cleanup failure, lock custody and exact retry | Existing crate/root checked-profile CI owners and the complete Search feature matrix. Foreground refusal fixtures explicitly select strict mode, and repair metadata/database owners share that policy. Pressure loops stop at the configured target rather than running to OS exhaustion. Abandoned projection writers, private stages, stationary producers and publication locks must progress at occupied strict capacity while preserving pinned readers and peer exclusion. Captured publication leases use bounded directory duplicates, preserve foreign lock-path evidence on native failure, release failed registration, and retry under strict pressure; background-only/vector-only matrices must not use native process exhaustion as the fixture. Directory blockers or injected native unlink failures retain cleanup debt, bytes, host charges and retry dispositions; cancellation/memory refusal and root-alias/foreign-root registry isolation remain covered. Native Windows selects storage control-candidate, stationary Consumer and captured-publication lease families explicitly; the lease cases reuse the existing all-feature Search test binary and retain their own evidence file. No feature matrix, fixture, assertion budget or timeout is reduced. |
| Consumer physical reclamation (`cargo test --locked -p hawdb --all-features --lib consumer_reclamation`) | Old snapshot and initial-lease protection, durable branch and pending-operation roots, bounded retries, unknown-evidence retention, FD/memory release and ledger retirement before unlink | Seven lifecycle cases belong to the root unit lane, including cleanup and retry at occupied strict foreground FD capacity; two recorder cases belong to the power-loss family. The recorder fixture and database opens explicitly share the strict 32-descriptor configuration. The Windows native contract lane selects all nine through its existing family filter. Recorder cases explore lost/torn/reordered uncovered writes at the first retirement unlink and verify sealed-producer inode sharing before the target-directory barrier, durable linked data after scratch retirement, scratch-removal synchronization and Consumer reopen. Replay the latter pair with `cargo test --locked -p hawdb --features test-support --lib api::tests::power_loss::consumer_reclamation`. Close/reopen fixtures do not qualify the complete platform power-loss matrix. See [cleanup ownership](SEARCH_CLEANUP_OWNERSHIP.md). |
| Publication-owner admission (`api::publication::tests`) | A waiting admitted reader precedes later writers, an admitted writer precedes later readers, reader callbacks remain concurrent, and nonblocking writers honor the gate, retry after release and reject poisoned admission | Existing root unit lane, ordinary profile. Channel-controlled cases inspect only the private acquisition gate; they do not claim platform-wide FIFO fairness. Validation/publication exclusion and error/retry tests retain their existing ownership. No additional CI job. |
| Registered covered-token reclamation (`registered_consumer_reclamation_preserves_continuously_invalidated_covered_base`) and manual `consumer_publication` benchmark | Actual post-E writer commits while preparation is paused, typed refusal and retained base during GC; outer publication-owner latency and watermark progress under 1/4/8 writers | Regression: default/minimal `mvcc_staging_session` and native Windows registered selection. Benchmark: manual only, repository bench profile, disabled/legacy/covered/scoped-blocking/detached controls and raw p95/p99 samples. The opt-in `--sustained true` detached workload continues publication until writers finish or its explicit attempt ceiling, with checkpoints every 16,384 foreground writes and retained checkpoint samples. Its finite-progress qualification is separate from latency controls and the original strict writer gate. Manual `python3 scripts/measure-consumer-publication.test.py` checks executable/profile matching and actual feature provenance; no default CI registration. The separate opt-in `--with-readers` driver cohort adds one pinned canonical reader per writer and phase-boundary Linux process RSS/high-water/CPU-tick/I/O observations. It checks every document identity/content and retains per-request owner wait and preparation-overlap intervals. Missing resources, zero reads or drain-only reads cannot qualify; process high-water marks do not prove phase heap ownership. Reader measurement remains manual and does not change the completed writer-only cohorts. Whole-Database post-E dependencies retain conservative refusals; Domains-scoped finite progress is qualified separately. The helper records intake/mapping call counts with a `2 * feed.items + 1` host bound for its Done-only/no-delta mapper, without changing feed/mapping resources. A 60,000-update manual regression exercises complete coverage and native publication past the old 100,000-call bound; no new CI job. Quiescent drains are not sustained progress. [Workload and qualification boundaries](CONSUMER_PUBLICATION_QUALIFICATION.md). |
| `//:hawdb_system_sql_loom_tests` | Bounded modeled system-table publication interleavings | Model exploration; not a wall-clock fuzz campaign. |
| Package parity, query-limit inventory and root-partition script tests | Missing package ownership, unbudgeted query routes, duplicate or omitted test partition selection | Keep these structural checks when moving targets. |

The `_1043_` deleted-prefix fixture updates a surviving node in the same
prefix transaction so its one-operation budget still truncates before the
deletion after live-upsert filtering. Both residency modes retain prefix
refusal, unchanged durable checkpoint and complete-retry/rebuild parity.

Brace notation describes several concrete labels; expand it before invoking
Bazel. A family description does not imply every leaf belongs to every lane.

### Automatic-checkpoint frontend deadline controls

`//:hawdb_unit_checkpoint_headroom_tests` owns
`api::automatic_checkpoint::tests::headroom` in the isolated default-feature root CI lane
(`background-maintenance` required). It retains the checked profile, 320-row
write/reopen fixtures and
target timeout ceilings. Functional idle/retiring/prepared-prefix tests freeze
only the private test clock for frontend capacity/backoff policy, so compiler
contention cannot consume a deliberately paused owner's production deadline.
Synthetic Preparing/Discarding/Releasing capacity and preparation-backoff cases
advance to one nanosecond before and exactly at the original deadlines, with
repeated notifications proving that wakes do not renew a deadline. Production
uses `Instant::now()` and keeps the 10 ms backoff and 5 s capacity policy.
Replay with `cargo test --locked -p hawdb --lib
api::automatic_checkpoint::tests::headroom`; also check
`--no-default-features --features background-maintenance`. The ordinary minimal
feature matrix remains unchanged.
This change does not establish a remote speedup or fix every #1116 stall;
joined-read sharding is owned by PR #1217.

### Relational live-overlay checkpoint pressure

`api::automatic_checkpoint::tests::relational_live_overlay` joins the sustained
WAL/delta pressure cases in the isolated `//:hawdb_unit_checkpoint_headroom_tests`
lane (`background-maintenance` required) and uses default storage limits and a one-hour checkpoint age, so only live-overlay pressure can
schedule work ([#1438](https://github.com/nowledge-co/hawdb/issues/1438)).
Four hundred whole-table update rounds on one handle (512 rows of 1 KiB) exceed
the 64 MiB live envelope several times; base `bb30c40` rejects round 97 before
WAL append. Cases assert every commit, peak occupancy within the envelope, at
least two pressure-triggered generations, values before and after reopen, exact
debt/residency accounting folded by checkpoint, the shared 70%/80% boundaries
for all four row/index pairs, a reader pinned across two drains, and a
subprocess stop at `during_checkpoint_publication` and
`after_manifest_publication` of the pressure-triggered drain that recovers every
acknowledged round whole before continuing. An insert-only case grows one
TPC-C ORDER_LINE-shaped table (composite primary key plus a secondary index,
2,500 rows per commit) through five pressure-triggered drains on one handle and
asserts every commit, no failed checkpoint attempt (each drain's capture of the
recovery delta plus the live overlay is admitted), live row/index occupancy
below its envelope after each commit, the delta charged as debt, point and
secondary-index reads before and after reopen, a further commit on the reopened
handle and exact totals once folded (writers retry the bounded-wait
`BranchBusy`, which applies nothing, when an unoptimized drain is slow) ([#1464](https://github.com/nowledge-co/hawdb/issues/1464));
`c8d767cd` refuses the second drain's capture three times and rejects commit 48.
`relational::row_page::live` pins the live-overlay and checkpoint-capture
charge of that row shape. Replay with `cargo test --locked
-p hawdb --lib api::automatic_checkpoint::tests::relational_live_overlay`.

## Component regression owners

The manual `concurrent_writers` benchmark accepts
`--pessimistic-statements 1|8|32` for repeated updates of each writer's disjoint
node under pessimistic transactions. It keeps the 1/4/8-writer matrix, checks
every final row and durable reopen, and uses wave barriers to prevent unrelated
epoch drift from requiring retries. Record staging and commit latency separately;
barrier overlap is not evidence of parallel engine execution. This optional
workload does not change default or CI benchmark selection.

| Component / `:presubmit_tests` family | Problems covered |
| --- | --- |
| Manual work-admission benchmark | `HAWDB_EXECUTOR_BENCH_MODE=work-admission bazel run //:hawdb_bench_executor_vectorization` compares complete one-hop property hydration at degrees 32/1,024 and an 8,192-row predicate scan, with a deadline and no work cap. Three warmups, 11 raw samples of eight iterations, checksum/row-count and final-zero ledger assertions. Explicit opt-in only; default `full` and CI coverage are unchanged. Compare identical harness/profile/source identities; local timings are not remote CI speedups. |
| Core, expression, SQL/SQL-syntax, Cypher and DDL | Typed values, expression semantics, parsing/binding and schema constraints. |
| Ordinary relational projection admission | Existing `//crates/relational:hawdb_relational_tests` / Prow crates owner. Borrowed previews admit repeated projection values, locator sort keys and DISTINCT ordering keys before copying. Ordinary, ordered, borrowed and FROM-less paths retain their existing result contracts. A test-only, thread-local System allocation probe compares cumulative large-payload allocation traffic with the same-source narrow control; it does not measure peak RSS. Guards cover canonical memory and persisted row snapshots, expression aliases, refusal/refund/retry, empty and LIMIT 0 input, duplicate/NULL values and exact result-payload boundaries. Replay: `cargo test --locked -p hawdb-relational --all-features --lib projection_admission`. No feature, deadline, profile or lane change. See [projection admission](RELATIONAL_PROJECTION_ADMISSION.md). |
| Cypher temporal types | Core `temporal::` tests cover ISO parsing/rendering, constructors, components, arithmetic, `duration.between`, truncation, comparable order versus `Value` order/hash and the shared binary payload (golden bytes, corruption). Storage tests pin WAL fields 11–15, canonical tags 11–15 and text `D/T/L/Z/P` encodings with golden bytes, unknown-tag/field fail-closed decoding and background-writer parity; executor spill tags 10–14 round-trip. Parser (`tests::temporal`) and planner (`logical::temporal_tests`) cover syntax, depth limits, constant folding to `PropertyCompare` and the pinned statement clock. Root `api::tests::temporal` covers the embedded API: constructors, components, CREATE/SET/MERGE, WAL replay, checkpoint reopen in materialized and out-of-core modes, range-index seeks, CASE-based ORDER BY keys containing temporal component arithmetic with changing parameters and warm cache hits, and the LDBC IC3/IC4, IC7 and IC10 shapes. FFI, Python and Go binding tests cover tagged JSON. Existing CI lanes apply. Replay: `cargo test --locked -p hawdb-core temporal`, `-p hawdb-storage temporal`, `-p hawdb --lib temporal`. See [contract](CYPHER_TEMPORAL.md). |
| Shared SQL/Cypher vectors | Core/SQL targets cover dimensions, encoding and exact distance; storage covers value/schema codecs, fingerprints and cooperative cancellation; root `hawdb_unit_general_tests` covers exact filtered ranking versus candidate post-filtering, traversal, rollback and WAL/checkpoint/read-only reopen. Executor allocation tests and native FFI/Python/Go targets cover payload accounting and ownership. Shiro reports retain vector dimensions and coordinate bits. Existing CI lanes apply. Focused replay: `--test_arg=shared_vector --test_arg=vector_schema --test_arg=vector_encoding --test_arg=vector_distance`; include `checkpoint_units` for storage cancellation and `owned_record_bounds` for the allocation oracle. See [contract](specs/VECTOR_COLUMN_SCHEMA_SPEC.md). |
| Schema-bound vector indexes | Core tests cover resolved descriptors and canonical metadata; Search tests cover binding persistence, backend identity and typed budget diagnostics. Root tests exercise complete SQL/node source capture, empty/NULL inputs, composite keys, source/schema read-domain fencing, full rebuild after updates/deletes/NULL transitions, retained old domains and reopen, signed distances, cancellation and admission retry. Existing Search feature-matrix and root general CI lanes own these cases. Focused replay: `--test_arg=vector_index`; include `--test_arg=projection_fallback_requires_a_typed_resource_error` and `--test_arg=search_projection_consumer::tests` when changing shared Consumer publication. Eligible-domain cases cover SQL/Cypher parity after an ineligible nearest prefix, typed read-domain identity, source-work refusal even with no surviving candidate, bounded canonical fallback, duplicate paths and upstream LIMIT, ordered range/LIMIT with rebound parameters, and shared-ledger eligible/output memory handoff. The existing ACL capability runner also selects the traversal visibility test, which exercises exact and filtered-ANN modes and refuses a missing test name; its fixture covers hidden intermediate nodes. Storage adjacency tests independently meter rejected edges before emission. Core scoped-work tests cover shared clones, parent limits and cancellation. Storage projection admission borrows work ownership separately from payload admission and preserves typed exhaustion without allocator probes. Core guards distinguish unbounded work no-ops from explicit cancellation checkpoints. Executor point-read guards use a shared ledger sized for exactly one payload plus fixed callback overhead, covering resident and canonical nodes/relationships, repeated reads, missing/label-rejected reads and complete refund. Storage point guards meter missing/tombstoned/rejected reads and preserve sticky work refusal; existing adjacency guards cover rejected edges. Language cases cover missing/duplicate/unknown parser options, rejected SQL shapes and Cypher YIELD bindings, SQL/Cypher foreign-governor refusal, SQL single/early/final callback cancellation, consumer-error precedence and fresh-task read-domain reuse, typed parameters, signed distances, SQL composite-key hydration, post-window filtering, Cypher canonical traversal, and exact canonical identities across old/current/reopened generations. A smaller-than-input ANN window asserts actual rerank counts. Filtered-ANN guards assert zero collection scoring, eligibility before candidate generation, smaller-than-domain bounded reranking, validated empty eligibility, same-scope native mapping work refusal/retry and preserved default post-filtering. Native mapping units reject missing, duplicate-visible and NULL-ordinal mappings, exercise typed memory refusal at initial reserve and per-key growth, retry after pressure is released and refund their admitted memory on every exit. Root empty-index mapping tests preserve errors and same-permit retry; captured candidate-spill and Stage cleanup guards independently cover native resource owners; empty-domain queries still enforce binding/mode/candidate caps and perform no spill or vector scan. Rebuild/update/delete/NULL and old-pin cases exercise all three modes. Allocation-owner tests cover canonical SQL point reads, wide-row/repeated-projection/empty-literal refusal before copying, LIKE/ILIKE layout admission with Unicode/escape controls, covered-catch-up refusal before mapping/allocation, foreign-governor refusal before skipped execution, retry, producer workspace refusal and cancellable I/O-wave admission, same-database branch mismatch and uncertain selection recovery with old pins. Minimal consumer and portable facade cases refuse schema-bound index construction before filesystem work when the native backend is absent. See [contract](specs/VECTOR_INDEX_BINDING_SPEC.md). |
| SQL result column order | `//crates/executor:hawdb_executor_unit_tests` covers named rows ordered by a declared schema, empty results and rejected column drift. Root `//:hawdb_unit_general_tests` (`relational_sql::tests`) pins each shape's EXPLAIN plan and runs it with and without matching rows: borrowed scans, key and index lookups, inner and LEFT joins, scalar functions, index-ordered, top-N (on projected and non-projected columns, also over inner and LEFT joins), DISTINCT and alias-ordered projection, wildcards over top-N, DISTINCT and LEFT joins, LIMIT 0, and columnar, row-at-a-time and grouped aggregates, including HAVING and joins. A cost-reordered wildcard join and strict-append SELECT also run with and without rows; FROM-less SELECT and COUNT DISTINCT always return one row. Repeated output names and the reserved `__hawdb_relational_sort_` prefix fail during preparation, including EXPLAIN. `crates/qualification` `evidence_digest::tests` keeps result digests independent of column order, matching name-keyed reference rows. The Python binding reports these schemas unchanged as `QueryResult.columns`; `tests/pg-regress` sorts column names and does not cover order. Existing CI lanes apply. Replay: `cargo test --locked -p hawdb-executor --lib named_rows_follow_the_declared_schema` and `cargo test --locked -p hawdb --lib -- relational_sql::tests::database_sql_ relational_sql::tests::unordered_and_wildcard_joins`. Catalog and SQL EXPLAIN coverage is listed below. Cypher RETURN and the vector-index SQL streaming callback, which receives name-keyed maps, remain outside this family. |
| Catalog and SQL EXPLAIN column order | Root `api::tests::result_column_order` covers explicit and aliased catalog projections across Database, snapshot and transaction reads, empty results, declared wildcard order, mixed wildcard/explicit projections, duplicate output rejection and unchanged row/payload refusal. `api::tests::relational_explain_output` pins relational SQL EXPLAIN/ANALYZE column order; its `strict_append` module covers all three entrypoints. Owned by existing `//:hawdb_unit_general_tests` CI; focused replay: `cargo test --locked -p hawdb --lib -- result_column_order relational_explain_output`. Python DB-API regression coverage runs in its existing CI family. Cypher coverage is listed below. |
| Cypher result column order | Root `api::tests::result_column_order` covers declared RETURN ordinals, empty matches and LIMIT 0, cache reuse with rebound parameters, DISTINCT, hidden sort keys, WITH, interleaved aggregate/group outputs, numeric projections, SET RETURN and structured EXPLAIN/ANALYZE across database, snapshot and transaction entrypoints. Repeated output names retain the existing collision suffixes. Planner coverage in `plan_cache::output_schema::tests` pins RETURN and LIMIT 0 schemas for vector/text seeds, graph seeds, vector-index search and legacy graph algorithms. Executor result-delivery tests cover named and borrowed value reordering across segments and changing source orders, schema drift, empty-schema memory admission and reservation release after refusal. Owned-result tests bound repeated permutation validation to linear name visits and verify cache admission/release. Existing root/executor CI lanes own these tests; Python `test_smoke.py` checks declaration order and empty schemas on both backends; `test_notebook.py` retains empty-result HTML headers. Focused replay: `cargo test --locked -p hawdb --lib result_column_order` and `cargo test --locked -p hawdb-executor --lib result_delivery`. |
| Optimizer, optimizer-{graph,relational,predicate,vector}, plan-{core,cache,cypher}, explain | Rewrite legality, plan construction, cache/publication concurrency and observable plans. |
| Graph row-goal costing | Existing optimizer-graph unit and root general owners cover consumed work through filters, projections, lookup/probes and expansion fanout; startup, nested/zero/saturated windows, missing statistics, conservative blocking/retrieval boundaries, one postorder costing visit, small/large ordered-alternative choices, exact ASC/DESC native keyset implication (mismatched bounds/direction and extra residuals remain conservative), unbounded prefix-only ordered access with full work in both memo and direct lowering, joint-filter selectivity reaching row goals with selected provenance intact, skewed full-result parity, NULL/type rebinding, deterministic ties, explicit search directives, cancellation and row/payload budgets. Replay: `cargo test --locked -p hawdb-optimizer-graph --lib row_goals` and `cargo test --locked -p hawdb --lib row_goal_planning`; repeat facade coverage with `--no-default-features`. The existing `//:hawdb_linux_ci_optimizer_summary_smoke_test` retains exact costs, decisions, fingerprints and repeated-planning assertions, including the filter-above-aggregate consumed-work cost. Existing lanes, profiles, budgets and timeouts apply. Manual Cargo-only `row_goal_planning` benchmark records source-bound release query/preparation timing and admitted memory/work with full result checks; no fuzz/benchmark CI job is added. See [costing contract](QUERY_ROW_GOALS.md) and [Apple Silicon measurements](benchmarks/row_goal_costing_macos_2026_10_31/README.md). |
| Bounded graph property proofs and qualification | `//crates/cascades:hawdb_cascades_tests` and `//crates/optimizer-graph:hawdb_optimizer_graph_tests` own bounded controls, Applied-only assertions, nullable keys, equality/order, aliases, fanout, evaluator and budget fences. Executor `transform` tests own exact column/literal batch sizing, duplicate-alias suffix preservation, bounded alias inventories and computed/graph-column fallback; root proves singleton-group replacement under the unchanged 2-MiB budget. Root `//:hawdb_unit_general_tests` owns `api::tests::optimizer_proofs`: same-statement pinned execution, errors, strict output limits, parameter rebinding, lifecycle/EXISTS cache identity, actual distinct plans and unchanged raw costs across ranking seeds. Replay with `cargo test --locked -p hawdb --lib optimizer_proofs`. Existing local-only `//tools/shiro:shiro_tests` / `shiro_cli_tests` own opt-in variants, replay, coverage separation and negative oracles; independent Cargo replay filter `optimizer_qualification`, plus `--bin shiro` for CLI controls. The manual `cargo bench --locked --features qualification --bench property_proofs -- distinct 10000 warm 5` reports complete parity and admitted memory. Existing uniform profiles, complete suites, assertions and timeouts remain. See [contract and scope](specs/OPTIMIZER_PROOFS_SPEC.md). |
| Sparse composite prefix ranges | `//crates/optimizer-graph:hawdb_optimizer_graph_tests`, `//crates/storage:hawdb_storage_tests` and root `//:hawdb_unit_general_tests` cover [#1183](https://github.com/nowledge-co/hawdb/issues/1183): missing/NULL suffix values, one or multiple leading equalities, strict/inclusive bounds, checkpoint/delta/reopen and retained views. Storage differentials force owned/admitted access independently of planner selection, preserve Stop and admission refusal, and check native index work for complete keys. Unconstrained wider suffixes use a complete fallback; full-key ranges retain their existing path. The contiguous-prefix projection fixture uses a complete `(prefix, range)` key; candidate guards separately reject an unconstrained suffix. Existing profiles and lanes apply; fixtures stay small. Focused Cargo replay: `cargo test --locked -p hawdb-storage sparse_composite`, `cargo test --locked -p hawdb sparse_composite`, or optimizer-graph package filter `composite_range_candidates`. |
| Native keyless SQL tables ([#1454](https://github.com/nowledge-co/hawdb/issues/1454)) | Existing storage unit owner: `relational::tests::hidden_row_id` covers duplicate identities, stable update handles, snapshot retention, deletion/checkpoint allocation fences, WAL replay, failed durability publication, concurrent allocation and exhaustion. Existing root general owner: `relational_sql::postgres_compat` covers Materialized and OutOfCore/DemandPaged SQL, implicit INSERT, duplicate rows, secondary and unique indexes, UPSERT, rollback, WAL and checkpoint reopen, and ALTER TABLE. `api::tests::hidden_row_id` checks allocation-only checkpoint changes and read-only recovery; `api::concurrent::key_range_tests::hidden_row_id` checks pessimistic lock conflicts. No new CI lane. |
| Relational overflow pruning per commit ([#1439](https://github.com/nowledge-co/hawdb/issues/1439)) | Existing `//crates/storage:hawdb_storage_tests` / Prow crates owner (`relational::tests::overflow_pruning`) and root `//:hawdb_unit_general_tests` (`relational_sql::tests::relational_bulk_load_with_overflow_values_keeps_constraints_and_payloads`). A thread-local `#[doc(hidden)]` counter of rows examined for overflow reachability bounds each insert commit by its own rows (40 commits of 50 always-overflowed rows), independently of table size; an update that keeps its value examines its two row images. Exactness covers content-shared segments, release and reuse within one transaction, values of rows an upsert did not store, whole-table column rewrites and checkpoint encode/decode, which rejects unreachable segments. Checked builds also compare every incremental result with the full reachability pass. The SQL case loads parent/child tables with shared overflow bodies across 20 commits, then checks primary-key, unique and foreign-key rejection, cascade delete, value replacement and checkpoint reopen. Replay: `cargo test --locked -p hawdb-storage --lib overflow_pruning` and `cargo test --locked -p hawdb --lib relational_bulk_load_with_overflow`. No new lane, profile or timeout. |
| SQL composite index intervals | Root `//:hawdb_unit_general_tests` (`api::tests::relational_range`), relational unit and storage unit / existing Prow crates lanes. Compare indexed SQL with an unindexed database across open/closed, one-sided, NULL/contradictory bounds, duplicates, aliases, parameters, residuals, uniform ASC/DESC, OFFSET/LIMIT and first-column ranges. Cover nullable unique suffixes, checkpoint/live/pinned/private/recovery views in Shadow/DemandPaged/Authoritative modes. A 5,000-row prefix must deliver a late LIMIT 3 under a four-row index budget with three observed index rows and early Stop. Tiny-page and scalar/encoded-bound differentials cover trailing-key ties and extrema. Replay: `cargo test --locked -p hawdb --lib api::tests::relational_range`, storage filters `encoded_partial_bounds` / `relational_index_shadow_range_seek`, and the relational index-runtime suite. See [contract](specs/POSTGRES_RELATIONAL_CONTENT_STORE_SPEC.md). No new grammar, persisted format, lane or profile. |
| Executor and query/query-policy | Operator execution, result delivery, cancellation and budget/refusal behavior. Small borrowed-projection units in the existing executor unit / Prow crates lane compare 1–8 simple columns with the general path, preserve duplicate-alias and computed/wide fallback, exact wide-row refusal and workspace refunds, and release preparation before a byte-boundary Stop without repeated evaluation. Replay: `cargo test --locked -p hawdb-executor --lib expression::projection::tests`. No new lane, feature, fixture deadline or profile. Text-seed result-owner unit cases cover prepaid window storage and the internal capacity-growth path, including simultaneous replacement admission, exact row limits, sticky refusal and parent-allowance retention. Allocation probes use the repository profile; compare measurements only within the same profile. |
| Complete lexical and grouped evidence | Existing Cypher/Plan-Cypher, executor, Search, readiness and root general lanes cover opt-in complete providers, exhaustion/skipped reports, candidate ceilings before canonical filtering, lazy capacity growth, scalar MAX and bounded per-group evidence. Root differentials cover mixed supported keys, signed zero, ID maxima, permutations, graph eligibility and retained reads across raw/resident/layered disk sources with replacement and deletion. Executor allocation probes cover ID admission, one owned copy of repeated wide scalar keys, retained callback ownership and cancellation/error precedence. Search regressions compare canonical field phrase-alias occurrences and full-corpus scores, including raw window/complete parity and actual allocation peaks. Sparse overlapping-layer regressions cover metadata predicates, external identities and exact live-corpus scores in window/complete modes. The `grouped_evidence` and `grouped_evidence_native` release benches manually qualify scalar and native lexical/graph paths; neither is a CI performance gate. See [measured results](benchmarks/GROUPED_RETRIEVAL_RESULTS.md). See [contract](specs/GROUPED_RETRIEVAL_SPEC.md). |
| Mixed numeric range projections | Existing storage unit (`//crates/storage:hawdb_storage_tests`) and root general (`//:hawdb_unit_general_tests`) CI owners. Scalar node, relationship and composite projection ranges preserve numeric predicates when Value ordering separates Int and Float. Reference envelopes cover clipped equality prefixes, strict/inclusive bounds, extreme values and NaN; homogeneous blocks must still prune. Persistent/API cases refresh bounded statistics and rebind after cold reopen to require native scalar/composite range plans, then cover delta type changes, pinned reads and reopen; the original reference and snapshot assertions remain intact. Replay filters: `mixed_numeric`, `composite_numeric_range_envelopes`. No lane, feature or profile change. |
| Storage descriptor bound traversal | Existing `//crates/storage:hawdb_storage_tests` / Prow crates owner. Forward and reverse inclusive-bound scans retain ordered delivery, tree-height/page/descriptor admission, early Stop and caller refusal. Reverse guards cover cross-leaf/group boundaries and binary upper-bound work on a verified warm page; skipped prefixes must not be visited. Replay: `cargo test --locked -p hawdb-storage --lib reverse_bound_scan` and `warm_page_views_reuse_integrity_proof`. No new profile or lane. |
| Composite ordered query and cache | Existing optimizer-graph / Prow crates and root general lanes cover exact two-direction keyset concatenation versus full canonical sorting, runtime capability, non-NULL typed unique suffix proofs, strict continuation, parameter numeric-shape changes, ordered prepared-plan invalidation versus unrelated point-plan reuse, ambiguous aliases, mixed directions, index availability across checkpoint, retained reads, moves/deletes/inserts, consumer error/retry and reopen. See [contract](specs/COMPOSITE_ORDERED_SEEK_SPEC.md). Plan-cache units verify used-binding type-proof ownership, unused-list omission and shape separation. Actual resident native plans and canonical checkpoint/delta/reopen plans are asserted separately; pre-checkpoint OutOfCore pages retain full semantic references without forcing a cost decision. Focused replay filters: `ordered_composite` and `parameter_type_proofs`. The opt-in `composite_ordered_seek` manual benchmark measures raw alternating samples, index work and admitted memory at shallow/deep continuations; it is not a CI performance gate or device-cold claim. Persistent preparation uses explicit Materialized mode before checkpoint/OutOfCore reopen. Fixture loading uses bounded transactions, followed by full uniqueness validation, index creation and an exact row-count preflight; complete setup cost is separate. See [source-bound read measurements](benchmarks/composite_ordered_seek_2026_10_23/README.md). No existing lane/profile changes. |
| Ordered composite projection and overlay | Existing storage unit / Prow crates owner. Immutable ordered pages compare with a complete two-direction reference, including global block ordinals, exclusive continuation, deep descriptor work, cold/full versus warm/logarithmic block decoding, verified-cache capacity refusal and admitted scratch refund after refusal/Stop. Store pages merge canonical base with moved/deleted/inserted delta keys across retained views, checkpoint and reopen; the low-level domain consists of complete non-NULL keys, with canonical-query coverage proved separately by planning. Explicit ordered checkpoints preserve cancellation without payload probes or work-unit charges. Replay filters: `composite_ordered_pages`, `ordered_composite`, `ordered_scratch_checkpoint`. No new CI lane or compilation profile. |
| Storage borrowed key intervals | Existing `//crates/storage:hawdb_storage_tests` / Prow crates ownership. Forward, reverse and alternating-end traversal matches a BTreeMap reference across immutable segment boundaries, empty/singleton/outside intervals and COW mutation with a retained snapshot. Replay: `cargo test --locked -p hawdb-storage --lib borrowed_key_interval`. No new feature/profile/lane or timed campaign. |
| Storage, integrity, cascades and artifact/bootstrap | WAL/checkpoint, encoded artifacts, indexes, corruption/refusal and startup ownership. Projection capture covers 65,537-node commits, oversized-preimage gaps, cold node/adjacency/relationship/spill capture under strict foreground descriptor pressure, nested resource/cancellation refusals versus physical corruption across canonical readers, and cancellation across grouped replay work. |
| Native projection keys and immutable reuse | Existing storage unit/native platform owners cover deleted native node candidates for built-in and custom labels, materialized/out-of-core residency, pinned feed end epochs, WAL failure/uncertain recovery, checkpoint and reopen (`cargo test --locked -p hawdb-storage --lib search_projection_capture`). The restart-safe change-log checkpoint case also retains the deleted native candidate together with its legacy document tombstone and verifies canonical absence after reopen (`cargo test --locked -p hawdb-storage --lib checkpoints_search_projection_changes_for_restart_safe_catch_up`). `captured_link` cases in `file_io::source_directory` cover native inode reuse after both labels move, occupied names, foreign project/source identities, component validation, Unix symlinks and platform descriptor refusal/retry. The recorder cases model lost unsynchronized links, before/after cuts, required target-directory barriers and retention after source unlink; they do not qualify complete Consumer selection. Replay with `cargo test --locked -p hawdb-storage --lib captured_link` and `cargo test --locked -p hawdb-storage --lib power_loss`. Windows replaces captured directory labels before opening descendant files; Unix retains replacement after file capture. A separate Windows link case attempts ancestor rename with an already-open file and verifies original-object linking and unlink custody after either success or native pre-effect refusal. All inode, foreign-name and recorder/barrier assertions remain. Windows strict Clippy also owns its native FileLinkInformation path. Registered Consumer installation uses these links only for sealed immutable producer output; arbitrary source installation retains independent copying. No lane, profile, source-format or durability-default change. |
| Search | Unit behavior plus nine explicit feature profiles; public streamed-document and source-policy lifecycle fixtures have independent owners below. |
| Default resident DiskANN | Existing Search unit targets and the unchanged vector feature profiles own `resident_diskann` (`cargo test --locked -p hawdb-search --lib resident_diskann`). They compare default filtered graph candidates with explicit exhaustive scoring across replacement, deletion, NULL and reinsertion, preserve original graph identity, and cover zero/signed-cosine behavior, non-finite-source refusal, offset pagination, hybrid fusion versus exact scoring, validated delta atomicity, checkpoint/reopen, typed memory/work refusal, cancellation and retry, and retained runtime allocation ownership through cache destruction. Concurrent admission blocking must not retain the cache lock, and initialization wait obeys the query deadline. Checkpoint cases require HDANN002, actual native graph execution, unchanged retained-reader bytes/results, and explicit RaBitQ settings across reopen/replacement. Reopen must reuse a verified mapping, remain queryable below the construction envelope, and keep its original baseline across CRUD and clean checkpoint copying. Corruption cases retain quarantine evidence and reject stale-source fallback. Directory replacement, stale cleanup and memory/cancellation fixtures retain both explicit RaBitQ and default graph coverage. Native registered source/MVCC and persistent artifact qualification have separate owners below. No CI lane or profile change. |
| Default out-of-core DiskANN | Existing Search targets and feature-matrix lanes own `generation_writer::tests::diskann` (`cargo test --locked -p hawdb-search --all-features --lib generation_writer::tests::diskann`). Filtered default queries compare with explicit exhaustive scoring after insert/replacement/delete/NULL deltas, with and without LSG. Guards check inherited topology settings, unchanged base graph bytes/native inode, retained old-reader results, abandoned-candidate rollback, cancellation and typed graph memory refusal, empty and deletion-only layers, legacy zero-cosine semantics across mixed graph/compatible layers, and refusal to satisfy explicit compression with a raw graph. Readiness also covers an empty-vector first segment, complete graph/visibility identity, exact live vector counts after mixed text/vector retractions, deletion-only and NULL-only heads, empty vector domains, old pins, cold reopen, and reuse of validated retraction counts during refresh. Mixed graph/legacy-codec closures cannot qualify as a pure graph. Explicit RaBitQ parameters also survive default delta preparation. The ordinary reader-refresh identity case checks model/version/dimension drift against the persisted graph binding. These are standalone projection segment-reuse cases; schema-bound canonical source-feed publication and power-loss qualification remain separate. Existing RaBitQ fixtures select their backend explicitly. No feature matrix, profile or lane is removed. See [delivery contract](specs/FILTERED_DISKANN_SPEC.md). |
| Analytics and vector-projection | Streaming algorithms, projected artifact IO and vector representation behavior. `//crates/vector-projection:hawdb_vector_projection_tests` also owns the Filtered DiskANN kernel/artifact family (`cargo test --locked -p hawdb-vector-projection --all-features diskann`; omit `--all-features` for standalone file I/O): Vamana full-beam/exhaustive distance parity, small-beam filtered recall against exhaustive ground truth, navigation without rejected-vector scoring, optional LSG and duplicate radii, deterministic construction, typed work/memory refusal, work-bounded workspace on a virtual large graph, and cancellation. File cases cover parameter/link/distance round trips, byte-identical mapped successor copying and cancelled-copy source retention, bounded header inspection, source/epoch/generation drift, truncation/trailing bytes/checksums, semantically invalid records with a matching checksum, admission refusal/retry and release of all charges. Core `projection_distance` tests also cover raw queries against unaligned byte-backed vectors and cooperative failure. Small synthetic fixtures use the repository profile; this is kernel/artifact evidence, not default-engine or database CRUD/MVCC qualification. See [delivery contract](specs/FILTERED_DISKANN_SPEC.md). |
| Exact vector arithmetic and prepared queries | Existing Core, Search and vector-projection owners cover ordered-f64 scalar/AVX2/NEON bit parity, forced short/unaligned native loads, finite/zero/dimension checks, work/error precedence, query-norm reuse, native DiskANN providers and raw-score parity. Replay: `cargo test --locked -p hawdb-core vector::`; `cargo test --locked -p hawdb-search raw_vector_math_tests`; `cargo test --locked -p hawdb-vector-projection --all-features diskann`. Native tests differ from cross-target compilation. Prepared distance entry points retain direct scalar evaluation below 16 dimensions, including work/error precedence. Auto uses portable arithmetic below 16 dimensions and for AArch64 L2/norm; NEON/AVX2 implementations remain directly covered. The ignored Core `exact_distance_measurement` and Cargo-only `exact_vector_profile` example are manual global-release component/complete-Search measurements, excluded from CI/fuzz scheduling: `cargo test --locked --release -p hawdb-core exact_distance_measurement -- --ignored --nocapture --test-threads=1`; `cargo run --locked --release --example exact_vector_profile`. No per-target profile or timeout changes. See [native ARM experiment, including adverse file controls](benchmarks/exact_vector_simd_macos_2026_10_30/README.md). Ref [#1339](https://github.com/nowledge-co/hawdb/issues/1339). |
| RaBitQ SIMD scoring | Existing `//crates/vector-projection:hawdb_vector_projection_tests` and native vector-platform CI own bitwise scalar/AVX2/NEON parity, CPU selection, all code values, unaligned and short inputs, dimension tails, filtered memory/file scans, ties and worker merging. Replay: `cargo test --locked -p hawdb-vector-projection kernel::`. The two ignored `simd_` release probes are local-only throughput and deadline-response measurements, run serially. The existing `rabitq_query_profile` example adds a local `compare` mode for interleaved scalar/native-SIMD complete-query measurements over 100,000 vectors, including raw-vector reranking and hydration with exact final-result parity. These probes do not replace native AArch64 qualification. See [method and limitations](RABITQ_VECTOR_PROJECTION_BENCHMARK.md). No CI lane, profile or fuzz job is added. |
| QoS, cgroup, telemetry, resource-profile and runtime-tokio | Resource detection/admission, metrics and synchronous/async runtime boundaries. Existing `//crates/qos:hawdb_qos_tests` owns SharedHost SSD no-hint 12/3 defaults, explicit-hint clamps, unchanged non-SSD/mobile profiles and independent foreground/background I/O saturation/refund. Focused replay: `cargo test --locked -p hawdb-qos resource::tests`. No benchmark or device-discovery qualification is implied. |
| Readiness, evidence, route-ownership, nowledge-contracts, compat and qualification | Typed readiness, complete evidence identity, compatibility and host integration contracts. |
| `crates/fuzz-contracts` | Production readiness contract values only. Its fast unit tests are not the Shiro generator/campaign. |
| Python DB-API (`bindings/python/tests/test_dbapi.py`) | The PEP 249 layer in `hawdb.dbapi`: module globals and the PEP 249 exception hierarchy, with every engine error and every built-in error from statement parameters raised as its PEP 249 class while keeping its own type, attributes and pickling, or raised unchanged if it cannot be rebuilt as that class; tuple rows in SELECT-list order, a `description` with type codes, also for a key lookup that matches nothing, and identity-hashed type objects; lazily begun connection transactions with commit, rollback, close and context-manager semantics; autocommit set at connect or between transactions, read-only and branch-command routing; `executemany` delegation and the aborted state after a failed batch; parameter containers matching the native rule; and refusal of closed objects and of other threads, including reused thread idents. Owned by `//bindings/python:hawdb_python_tests` and the Python Bindings pip job. Engine transaction semantics run on file and in-memory databases, durability, read-only and branch cases on a file database, and the rest in memory. The engine's column order per query shape belongs to the SQL result column order family. Catalog queries also pin tuple order and empty-result descriptions under both autocommit and transactions; SQL EXPLAIN and EXPLAIN ANALYZE pin their diagnostic column and tuple order. The `pandas.read_sql` smoke skips without pandas; the pip job installs a pinned pandas and selects it with `-k pandas`. Replay: `pytest tests/test_dbapi.py` in `bindings/python` with the wheel installed. |

## Default WAL recovery

The existing storage unit owner includes `store::doctor::recovery_tests::recovery_995_*`:
bounded suffix evidence, real recorder images with lost/torn/reordered relaxed
writes, durable-prefix protection, policy changes, grouped synchronization and
per-persistence-step IO retry and native repair crash images. The existing facade recovery owner includes
`api::tests::storage_recovery::wal_tail` for typed readiness and subprocess
append/repair cuts. Both are explicitly selected by the Windows native storage
shard; no new fuzz CI lane is added. Local replay uses
`cargo test --locked -p hawdb-storage --lib recovery_995 -- --nocapture` and the
existing facade recovery target. The local WAL-tail oracle remains
`bazel run //crates/fuzz:hawdb_storage_fuzz -- --wal-tail --seed 174 --cases 64`.
See [recovery protocol](STORAGE.md#repair-evidence-and-retry) and
[qualification limits](BRANCH_POWER_LOSS_QUALIFICATION.md#default-wal-recovery-and-synchronization-fences-995).

The same manual `concurrent_writers` benchmark accepts
`--after-relaxed-interval` to seed one relaxed append, then measure synchronous
ungrouped/grouped commits in that generation. It reports the first relaxed
append separately and preserves all row, epoch and reopen checks. Compare this
opt-in diagnostic against an identical baseline harness; do not pool it with
the ordinary post-checkpoint/reopened cohorts or claim that it measures steady
relaxed throughput. It has no additional CI owner.

## WAL identity performance qualification

The manual `concurrent_writers` harness retains its post-checkpoint control and
adds an explicit `--reopen-before-measure` fixture for captured WAL ownership.
The manually dispatched writer job runs separate fixed 40-pair cohorts with
identical baseline/candidate harnesses, retained raw samples and unchanged
per-cohort thresholds. It is excluded from default/scheduled execution.
The concurrent matrix selects writer counts from one through half of the
effective physical-core/cgroup capacity, with explicit manual writer/reader
overrides. Fresh snapshot readers verify atomic row pairs and published epochs
while a retained initial snapshot stays stable. Timed request intervals must
prove mixed progress, and every final durable state is reopened and checked.
Read/write p50/p95/p99 and fixed-work rates remain separate from the historical
single-stream control. CPU topology fixtures run locally; the manual workflow
retains complete paired receipts. See [matrix and replay protocol](CONCURRENT_WRITER_QUALIFICATION.md).
Replacement, rotation, symlink/unlink, strict-capacity and captured append
recovery regressions remain in their existing storage/native CI owners.
See [protocol, coverage diagnosis and retained evidence](benchmarks/wal_identity_linux_2026_10_23/README.md).
The [source 823e8e9c publication follow-up](benchmarks/publication_qualification_2026_10_23/FINAL_823E.md)
retains the completed 18-cohort allocation, all nine read-latency regressions,
and observational epoch/interval strata. These diagnostics do not change the
manual execution lane, fixtures, exact checks or strict acceptance thresholds.

The Filtered DiskANN kernel/artifact cases also run in the existing
`vector-projection-platform` job in `.github/workflows/ci.yml`, through its
standalone and `storage-io` Cargo test steps on Linux x86_64/aarch64, macOS
aarch64 and Windows x86_64. The virtual-large-graph fixture allocates
only its bounded query workspace; it does not create billions of records.

Default vector recall probes execute the same resident DiskANN path as ordinary
queries. `resident_diskann` owns sampled exact/graph parity, verified mapped
qualification identity and refusal to qualify a changed overlay. The
`recall_validation` units bind the reported backend to the artifact algorithm;
RaBitQ recall cannot qualify a DiskANN graph. Existing compressed recall cases
use the explicit compressed probe/qualification entrypoints. The production
RaBitQ qualification family also selects its original codec and probes
explicitly, including ACL cases; the compression advisor still requires RaBitQ
evidence. The embedded facade checks default-graph sampled recall and its
separate preferred-compression control. The minimum
production dataset size and complete release binding remain required. Replay
with `cargo test --locked -p hawdb-search --all-features --lib recall` and the
resident family above. These cases stay in the existing Search feature profiles.
The standalone/storage-io artifact family also checks the complete CRC32C
fingerprint captured during admitted verification. The manual
`rabitq_query_profile` example explicitly selects its original RaBitQ codec;
its corpus, profile and query assertions are unchanged.

The manual `filtered_diskann_qualification` example is a thin public-library
fixture, outside automated test/CI execution. It builds a fresh clustered
synthetic graph with an explicit memory envelope and optional LSG, then runs
held-out synthetic queries with unfiltered, correlated and anti-correlated
10%/1% filters against exhaustive eligible-domain ground truth. It refuses
ineligible/duplicate hits, an unexpected/fallback backend, empty ground truth or
mean recall below 950,000 per million for any filter family. JSON lines retain
every sample's recall, per-family aggregate recall, build/open/query timing, graph
identity, build resource evidence, scored-vector and read-byte counters; those
admitted/counted bytes are not measured RSS or physical disk traffic. Build and
query processes are separate, so process-lifetime RSS can be measured externally.
Use the repository profile consistently across controls. Local replay:
`cargo run --locked --example filtered_diskann_qualification -- build /tmp/new-diskann-fixture 1000 16 64 plain`,
then `cargo run --locked --example filtered_diskann_qualification -- query /tmp/new-diskann-fixture 8`.
Use another fresh path and `lsg` for the LSG control. The fixture retains its
files, refuses existing build paths, and grants no canonical incremental/CRUD
or production-data qualification by itself.

The same manual example's `canonical` mode owns synthetic source ingestion,
default-parameter plain/LSG builds and mixed replacement/delete/NULL/insert
workloads at an explicit changed-key rate. Initial loading is sealed every 10,000
rows within the default live-row overlay bound, before retaining the source/index
baseline. It checks canonical exact recall, independent eligibility, retained old
MVCC results, stale-source refusal, graph
reuse, restore/reinsertion, no-op maintenance and cold reopen. Existing library
tests retain their CI owners. The opt-in Native Bindings
`canonical_vector_lifecycle` dispatch runs four fixed 100k-by-128 workloads
in four independent matrix jobs: plain/LSG at 1%/10% changed keys, sixteen query samples per family and
state, a 320 MiB canonical source/producer envelope, source-feed work bounded
from the row count and a 2 GiB host governor, with a 180-minute ceiling per job.
The source capture explicitly funds the complete atomic changed-key envelope:
4,096 entries for the 1% controls and 10,000 for the 10% controls, with the
unchanged 256 KiB capture byte limit. These typed workload settings leave
library defaults intact. The host wrapper retries typed retryable background-task
saturation or `BranchBusy` for at most 30 seconds, only while the completed
stationary source and selection remain unchanged, and records every retry.
Every control retains its complete lifecycle; failures do not cancel siblings.
The original 128 MiB envelope correctly refused
the conservative resident source charge plus point-query workspace before graph
construction; graph-only preflight is not canonical-build qualification.
It preserves partial JSON/timing evidence,
source/tree/toolchain/profile and binary hash separately per job, including
repeated compilation cost. Compilation and each full
lifecycle have separate process time/RSS observations. Default/scheduled CI,
existing test deadlines and repository compiler profiles are unchanged; no fuzz
tool is registered. Replay and resource-evidence limits are documented in
[the canonical lifecycle protocol](specs/FILTERED_DISKANN_SPEC.md#manual-canonical-lifecycle-qualification).

Canonical SQL point CRUD is additionally covered by Storage's
`relational_row_workspace::tests::primary_key_mutations` in the existing
`//crates/storage:hawdb_storage_tests` / Prow crates owner. Replay with
`cargo test --locked -p hawdb-storage --all-features --lib relational_row_workspace::tests -- --test-threads=1`.
A native 16-row fixture changes three keys under a four-entry budget, compares
captures with the materialized oracle, encodes/decodes WAL, replays the exact
working set and checks unchanged old views. Residual NULL/contradictory/missing
key predicates, rekey destination closure/collision, complete composite-key
ordering, scan-only refusal, and legacy full-scan WAL recovery with strict drift
rejection are separate controls. Existing differential smoke and manual campaign
ownership, profiles and CI lanes remain unchanged.
The same owner also checks retained-row Materialized CRUD under that four-entry
budget, compares residual UPDATE/DELETE captures with the legacy scan oracle,
and recovers both access shapes with transient rows and primary-key changes.
Surplus access entries must fail exact replay validation. Storage's existing
checkpoint-admission cases also exercise controlled point-key allocation.

Composite-key mutation coverage uses the same Storage owner, with no new lane
or profile. `relational_row_workspace::tests::composite_key_mutations` compares
prefix and interval UPDATE/DELETE with the legacy full-scan oracle, keeping a
fixed eight-entry budget while unrelated orders grow from 3 to 1,000. It checks
candidate decode/workspace counts, residuals and empty/open/closed intervals,
transient/rekeyed rows, exact legacy and new WAL replay, admission refusal, and
pinned old views. `relational::primary_key_range::tests` checks all supported
ordered scalar domains, including signed zero, NaN payloads, embedded NUL and
maximal keys, against predicate truth and encoded ordering. Root
`storage_recovery::composite_mutations` in the existing general unit lane checks
parameterized SQL, multi-statement rollback/commit, warehouse isolation, old
reads, WAL reopen and checkpoint reopen under both residency modes. Focused
replay: `cargo test --locked -p hawdb-storage --all-features --lib composite_mutation`,
`cargo test --locked -p hawdb-storage --all-features --lib primary_key_range::tests`,
and `cargo test --locked -p hawdb --lib composite_mutations`.

The existing root vector API family additionally owns explicit source-capture
capacity refusal/success, single-background-slot and held-catalog admission with
unchanged selection and retry, no-op behavior under saturation, and
automatic-checkpoint feed preservation. The admission and automatic-checkpoint
controls require `background-maintenance`;
the feed control waits for a real automatic checkpoint, then suspends the owner
while validating the captured feed and catch-up so another checkpoint cannot
reacquire the sole background slot between an idle observation and admission.
They remain in the existing root/Prow and native API lanes. Replay with
`cargo test --locked -p hawdb --all-features --lib api::vector_index:: -- --test-threads=1`.
The existing Consumer vector uncertainty test also requires stationary-receipt
refusal after selector publication, so a host cannot mistake an uncertain
outcome for a safe retry.
The same Consumer vector owner checks explicit reopen working-memory ceilings,
host-capacity refusal, admission refunds, unchanged selected generation and
successful retry through both default and explicitly funded opens. Replay with
`cargo test --locked -p hawdb --all-features --lib vector_index_reopen_honors_explicit_working_memory_and_host_capacity`.
The manual canonical qualification declares its existing 320 MiB construction
envelope for cold reopen through `open_search_projection_consumer_with_task`;
the public default, generation-size and resident compatibility limits stay fixed.

The out-of-core DiskANN family also checks candidate-window propagation on a
512-vector fixture: independent navigation coverage, default output window, explicit rank window, configured
ceiling, excess-window refusal and unchanged explicit exhaustive behavior.
The ceiling must not silently become the requested candidate count. Replay with
`cargo test --locked -p hawdb-search --all-features --lib default_graph_uses_the_requested_candidate_window`.
Resident `default_graph_navigation_is_funded_independently_of_its_output_window`
also requires navigation beyond the 128 output candidates, rejects the former
smaller workspace without changing the cached graph, and retries with sufficient
funding. Both remain in existing Search lanes with the repository profile.

The vector-projection DiskANN family also owns sorted-ID filtered entry points,
small-domain ID lookup without rejected-link scanning, two-hop rejection bounds
with poisoned rejected-vector reads, late bridge promotion in dense/sparse
visited state, unknown-ID work refusal, parent work accounting, and deterministic
unique entry selection at ordinal/address-space boundaries. Existing arbitrary
provider multi-hop cases remain covered. Replay with
`cargo test --locked -p hawdb-vector-projection --all-features diskann`.

The existing Search resident DiskANN owner additionally covers an actual
1,024 x 16,384 source above the 64 MiB cache cap: default vector/hybrid and ACL
queries retain filtered scalar results and a typed fallback reason, and full
checkpoint/reopen preserves deletes and NULL transitions. A second fixture
holds a dirty cache with more than 32 MiB of real ID storage while checkpoint
uses the streaming compatible codec. Small-source graph use and explicit
query-budget/cancellation refusals remain covered by the same family. Replay:
`cargo test --locked -p hawdb-search --all-features --lib resident_diskann::tests`.
The storage `relational_row_workspace::tests::primary_key_mutations` family
also compares a non-PK UNIQUE update against the full reference, rejects both
existing-row and same-batch collisions, and replays the bounded access closure.
The power-loss partition script's six native controls include a discovered
case whose name contains the exact GC case; the remaining partition uses
complete exact names, preserving its membership without substring exclusions.
The existing Windows native search shard also executes the resident family,
retaining a separate fresh BEP/log/XML for it. No test lane, compilation profile
or timeout changes.

Resident read generations additionally retain default graph state and isolated
CRUD retractions alongside shared immutable document pages. The existing Search
owner covers old/current exact-result parity after insert, replacement, NULL and
delete, with the graph created before or after capture. Generation capacity
includes default graph construction/cache bounds and any mapped graph payload;
explicit compressed lazy-projection admission remains covered independently.
Replay with `cargo test --locked -p hawdb-search --all-features --lib resident_snapshot::`.

Canonical vector construction additionally verifies publication admission for
default, smaller and larger explicit task memory, over-budget refusal, and
propagation into the private graph builder. A pure 100,000-by-128 preflight and
governed reservation crosses the former 64 MiB ceiling without allocating graph
vectors. This is budget propagation evidence, not a large-graph build benchmark.
The existing root/Search owners retain these tests; replay with
`cargo test --locked -p hawdb --all-features --lib vector_index_publication_funds`
and `cargo test --locked -p hawdb-search --all-features --lib canonical_vector_builder_uses`.

The root vector-index family also owns
`api::vector_index::build::tests::diskann` (Cargo replay:
`cargo test --locked -p hawdb --lib vector_index`). It covers the schema-bound
DiskANN default, optional-LSG SQL/node publication and reopen, both filtered
language paths, large finite L2/zero-vector inputs, and old MVCC pins across a
full-rebuild successor after update/delete/NULL/insert. Explicit RaBitQ controls
remain in `search_projection_consumer::tests::vector_index`. These cases use
the existing root unit/presubmit lane. A vector Consumer metadata-only case
checks bounded snapshot size, no encoded resident rows, logical counts,
descriptor/freshness access, refusal of resident-index access, native queries
and reopen. Search's `vector_index` family rejects duplicate/mixed/unbound
summaries and impossible counts. Ordinary Consumer coverage retains the full
resident-index contract.

`api::vector_index::build::tests::incremental` belongs to the same root unit lane
and `vector_index` replay. It covers SQL/custom-node C..E updates with optional
LSG, repeated keys, two-vector construction for four changed keys over a
32-vector base, old graph byte/inode reuse, exact/filtered-ANN parity across
layers, old MVCC domains, no-op generation stability, empty/delete-only/reinsert,
checkpoint/reopen, rollback and cancellation, feed/memory/key pre-encoding refusal
and retry, explicit RaBitQ and Euclidean-zero behavior, schema/backend drift, host
origin spoof refusal and terminal builder invalidation. Incremental construction
must complete with its single admitted I/O wave: nested writer phases borrow
the synchronous phase instead of acquiring another governor slot. Search's
`generation_writer::tests::io_waves` and Consumer producer family also verify
wave waiting, cancellation, idle release and cleanup. The sibling
`api::search_projection_consumer::tests::vector_index::incremental_recovery`
family replays fixed-field SQL/custom-node publication faults before reservation,
after preparation, before/after selector publication and its barrier, before
acknowledgement and before/after registry publication. Live resolution and cold
reopen must preserve registration/operation identity after later source writes,
return the selected complete C or E generation, refuse binding it to newer G,
then catch up to G without reviving deleted/NULL vectors. Live old canonical
domains and original graph bytes remain unchanged. Replay with
`cargo test --locked -p hawdb --all-features --lib vector_index_incremental_publication_faults`;
the existing root unit and Windows consumers owners retain this scope. Its
`vector_index_incremental_prepared_fd_pressure` case covers both full rebuild
and incremental maintenance for SQL/node fields before/after intent under
occupied strict descriptor capacity. Original custody survives registry refresh,
execution slots are released, and later source advancement uses a new operation.
The root vector-index build family also owns
`vector_index_canonical_completion_scopes_full_source_to_declared_field`:
SQL/node baseline builds and explicit rebuilds must complete under finite work
limits with unrelated SQL/graph data and the operational schema-migration
table present.
Initial construction and explicit rebuild share the descriptor-scoped source
cursor. Its name keeps it in the existing Windows consumers selection. No
incremental feed, feature lane or compiler profile changes.
The acknowledged-image
owner is `api::tests::power_loss::consumer_vector_incremental` with `test-support`;
it checks SQL and custom-node sources under both durability policies, original
source/index pairing, old pins and
materialized power-loss reopen at strict 32-descriptor capacity. Its `faults`
submodule captures the first installed native link, before/after the sealed
candidate directory barrier that retires producer scratch, actual private selector writes, selector renames, and the final project
root barrier. SQL/custom-node sources and both durability policies retain one
atomic source transaction, original old pins, complete C/E data and exact native
IDs after replay. Every lost/reordered/isolated/torn plan is evaluated; only
identical full namespaces, inode aliases and bytes share a native reopen. This
bounds repeated startup cost without dropping fault plans or assertions. A lost
relaxed transaction may leave only C while an unselected E preparation exists;
recovery settles that logical operation, preserves all candidate bytes and permits
fresh catch-up. Selected E still requires its durable canonical source and full
artifact verification. Source-bound logs report plan and distinct-reopen counts;
these are known slow local replay families, not fuzz timeout durations. Replay
with `cargo test --locked -p hawdb --all-features --lib vector_index_incremental_power_loss_`.
Its `faults::recovery` family continues the actual recorder from a verified
physical image, then interrupts recovery publication before intent, with an
unselected intent and with a selected intent. Seven cuts cover the private
recovery write, both file-sync boundaries, both rename boundaries and both root
barriers, for SQL/custom nodes and both durability modes (84 combinations), plus
28 relaxed-mode combinations where E is actually lost before intent or during
private selector preparation. Recovery must preserve the surviving C source.
Every lost, isolated, reordered and applicable torn plan is evaluated; identical
physical states share reopening. Acknowledged recovery and two repeated reopens
retain the original selection receipt, source/index epochs, candidate bytes and
inode aliases. Stale C still refuses a current-E canonical binding. Native
Windows artifact assertions check exact lengths and read only the expected
bytes, including empty locked lease files, without an EOF probe.
Windows weekly power-loss and required native-consumer matrices isolate these
recovery cases in seven required shards: births, unselected intents, selected
intents, and lost relaxed SQL/node sources split by Link versus SelectorWrite
origin. The first three retain 28 combinations each; the final four retain seven
each, for the same 112 combinations. Linux/macOS retain the complete family in
one process. Three additional Windows shards own the existing first-crash
artifact-closure, torn-selector and selector/root-barrier tests, preserving all
32 cut/source/durability combinations. The weekly consumer-publication and
ordinary native consumer selections exclude the complete vector fault module
because these ten exact selections own it. The Windows `remaining` partition
also excludes these cases through the same discovery inventory. A shared selector
validates actual Rust discovery and both workflow matrices; a runtime coverage check requires
every `(origin, cut, durability, source family, source-updated)` combination
exactly once. All fault plans, physical-image deduplication, two repeated reopens,
single-process test concurrency, compiler profiles and 120-minute job ceilings
remain unchanged. Native runner negative controls reject missing coverage even
when the Rust test itself reports success. The former combined Windows lane
reached its 120-minute ceiling after only 34 recovery combinations; isolated
first-build and execution costs require final-head CI evidence. Replay the
selector through `bazel test //:power_loss_partition_script_test` and the runner
controls with `bash scripts/run-windows-native-bazel.test.sh`. Issue #1343 tracks
the remaining runtime headroom: pre-split BEP recorded 1684.2 seconds of native
vector selection execution, 1591.2 seconds for lost SQL source recovery and
1076.5 seconds for lost node source recovery. New shard concurrency can repeat
cold compilation; final-head Actions evidence must separate that cost from test
execution before claiming a speedup.
The weekly Windows matrix also retains all eight branch-abandonment cases in
their own serial shard; they consumed about 41 minutes before recovery began
in the former combined lane. This preserves their assertions and the existing
separate native GC campaign. The remaining partition is checked against actual
discovery, with automatic checkpoints, recovery and abandonment excluded only
because required sibling shards own them.
The subsequent Windows run at `60f8b596` also reached the unchanged 120-minute
ceiling in the combined remaining selection and the automatic manifest case.
Its consumer publication cases consumed about 31 minutes and its single
deletion/GC case about 48 minutes before later cases could finish. Windows now
owns consumer publication, Search projection publication and that GC case in
separate required shards; the core remaining selection retains all other cases.
The manifest test is split by `SyncOnEveryWrite` and `SyncOnCheckpoint`, retaining
both observation boundaries and all three successive generations per policy.
This changes four automatic Rust tests to five, and the complete root power-loss
discovery from 48 to 49 cases, while preserving all 48 automatic
`(cut, policy, boundary, generation)` configurations and the same physical plans.
A runtime checker requires each automatic configuration exactly once and a
positive physical-image completion summary for every selected test. Missing or
duplicate records fail even after a successful Rust exit. Linux/macOS still run
the entire family; Windows partitions must remain disjoint, exhaustive and
nonempty against compiled discovery. Compiler profiles, assertions, fixtures,
single-process concurrency and the 120-minute job ceilings are unchanged.
Complete discovery, first-build logs, execution logs and coverage receipts remain
artifacts; a partition change alone is not a final-head speedup claim.
The storage `power_loss::tests::recovery_` family owns recorder continuation,
bounded baseline import, hard-link identity, second torn writes, native drift,
active-handle refusal and failed-attachment cleanup; the Storage unit/native
owners run it. `resume_from_image` accepts only an exact native materialization
before runtime open, and treats the surviving image as the new durable baseline.
The root general `search_projection_graph_delta` family preserves the legacy
batch API's live-node candidate contract before applying its operation ceiling.
Materialized/out-of-core checkpoint reopens retain raw deleted native keys for
fixed projectors while a one-operation legacy delete remains admissible. The
point visibility check tests immutable record membership without owning property
values; existing segment I/O still applies. Whole-commit refusal and legacy
tombstones remain unchanged.
The storage `observations_capture` family owns captured-root directory barriers
and descendant writes, including rejection of escaped/non-normal paths. The
existing root and Windows consumers owners retain all feature scopes, profiles
and timeout ceilings. Recovery-publication cuts and K-proportional total I/O remain
separate qualification items.

## Search feature and lifecycle matrix

The pinned dictionary loader's `cjk_dictionary::tests` family verifies the
complete upstream byte digest and 48 upstream token/offset fixtures with HMM
enabled and disabled. It remains in every existing Search unit profile; the
standalone `hawdb_search_analyzer_workspace_allocation_tests` target imports the
same loader and retains its complete scratch/TLS qualification. Bazel declares
the compressed resource as compile data, including direct-source unit profiles.
Replay with `cargo test --locked -p hawdb-search --lib cjk_dictionary` or
`bazel test //crates/search:hawdb_search_tests --test_arg=cjk_dictionary`.
The [unregistered component probe](benchmarks/jieba_dictionary_loading_2026_10_27/README.md)
compares the old and new loaders outside the production dependency graph. It
must not be added to CI, a workspace, or a published library archive.

See [SEARCH_FEATURE_TESTS.md](SEARCH_FEATURE_TESTS.md) for feature-specific
expectations. The concrete profile set is default, acl, minimal, text_only,
vector_only, background_only, text_vector, text_background and vector_background.

| Target pattern | What it detects | Cost and known issues |
| --- | --- | --- |
| `//crates/search:hawdb_search_tests` and `hawdb_search_<profile>_tests` | Search unit, persistence/recovery and feature capability behavior | Large lifecycle fixtures include 128-MiB sources. The three admitted-root heap-reclamation probes run in exact-case child processes because staging-registry nodes are shared across operations; all peak and final-zero assertions remain. The `io_waves` family runs through the isolated owners below, using these same executables. Repository test profile; the full matrix still runs. Existing deadlines remain unchanged. |
| Binary vector sidecars (`out_of_core::vector_segment::tests`, `out_of_core::vector_query::tests`, `out_of_core::tests::vector_segments`) | Layout V2 round trip of exact `f32` bits for every row subset, multi-byte IDs and empty segments; head/row CRC detection of every corrupt head byte and of corrupt selected rows (unselected corrupt rows are never read); count/dimension/length/bounds/order mismatches; refusal of superseded V1 text payloads and layouts with a rebuild message; encoder rejection of non-finite, ragged and unordered rows; query-account admission refunds, bounded run reads and cancellation; exact, filtered, DiskANN, RaBitQ and hybrid serving equal to brute-force cosine bits; Required rerank checksum/budget/cancellation guards; ID-only head mapping | Existing Search unit feature-matrix owners and repository checked profile. Graph/compressed/hybrid serving cases require `vector-search` (hybrid also `full-text-search`); format cases run in every profile. No CI scheduling or timeout changes. Replay: `cargo test --locked -p hawdb-search --lib vector_segment` and `cargo test --locked -p hawdb-search --lib vector_query`. Ref [#1469](https://github.com/nowledge-co/hawdb/issues/1469). The text-decimal selected-decode family (`out_of_core::vector_selection_tests::`) and the selected-vector arm of `out_of_core::vector_query::layout_probe::` were retired with the V1 text sidecar; their recorded results remain in [VECTOR_SELECTED_DECODE_BENCHMARK.md](VECTOR_SELECTED_DECODE_BENCHMARK.md) and [the layout investigation](benchmarks/vector_adjacency_layout_2026_10_29/README.md). |
| Out-of-core hit hydration levels (`out_of_core::hydration::tests::hit_hydration_levels`) | Default document hydration versus sidecar hydration for vector-only requests (identical hits, no document payload reads) and `SearchHitHydration::ScoresOnly` (identical IDs and ranking scores, no hydration reads) across exact, filtered and graph vector modes, plus text/hybrid requests that keep full hydration | Existing Search unit feature-matrix owners and repository checked profile; graph cases require `vector-search`, text/hybrid cases `full-text-search`. Replay: `cargo test --locked -p hawdb-search --lib hit_hydration_levels`. |
| Adjacency layout investigation (`out_of_core::vector_query::layout_probe::adjacency_layout_measurement`) | Manual persistent-component A/B measurement of IDs-only/property adjacency scans with disabled/bounded engine caches | One ignored probe requires the repository-wide release profile and stays out of CI/fuzz scheduling: `cargo test --locked --release -p hawdb-search --lib layout_probe:: -- --ignored --nocapture --test-threads=1`. [Methods, results and limits](benchmarks/vector_adjacency_layout_2026_10_29/README.md). Payload-visit counters are not physical I/O; an engine cache disabled run is not an OS-cold run. The selected-vector arm was retired with the V1 text sidecar (#1469). Ref [#1326](https://github.com/nowledge-co/hawdb/issues/1326). |
| `hawdb_search_io_wave_tests` and `hawdb_search_<profile>_io_wave_tests` | Complete standalone writer Task/Wave admission, idle release, cancellation and cleanup contracts | All nine unit feature profiles reuse their existing executable. Required crate presubmits run this family with one libtest thread and Bazel `exclusive`; no additional Rust executable or compilation profile. The runner rejects empty discovery and overlapping skips and preserves caller arguments and failures. The existing 20-second task deadlines and enclosing target timeouts are unchanged. Replay: `bazel test //crates/search:hawdb_search_text_background_io_wave_tests`; the runner itself is covered by `//crates/search:search_unit_family_script_test`. |
| Search BM25 decode and filter reuse (`lexical_projection::`, `text_seed`) | Reusable posting buffers, corrupt-frame rollback, stable internal predicates, arbitrary callback semantics, exact metadata routing and memory ownership | Existing Search unit feature-matrix owners and repository checked profile; public text-seed cases require `full-text-search`. Allocation probes serialize through the existing measurement gate and cover 8/128/4096 postings; filter cases cover false results, cancellation, complete/window counts and sparse overlapping layers. Local replay: `bazel test //crates/search:hawdb_search_tests --test_arg=lexical_projection:: --test_arg=text_seed --test_arg=--nocapture`. Existing ignored differential campaigns remain local-only. Ref [#1206](https://github.com/nowledge-co/hawdb/issues/1206). |
| Search BM25 cursor selection (`lexical_projection::tests::cursor_selection`) | Exact score bits, tie-breaking, exhaustive match counts and callback order across empty/unknown and 1/4/16/32-term queries; pruning eligibility before the rank window fills | Existing Search unit feature-matrix owners and repository checked profile; existing pruning regressions cover active WAND and overlays. Replay: `bazel test //crates/search:hawdb_search_tests --test_arg=lexical_projection::`. The ignored 4096-document warmed timing probe is local-only: `cargo test --locked -p hawdb-search --lib cursor_selection_query_measurement -- --ignored --nocapture --test-threads=1`; two warmups and 21 repetitions per query, including statistics reads, excluding fixture construction. Ref [#1208](https://github.com/nowledge-co/hawdb/issues/1208). |
| Resident BM25 query-term statistics (`resident_bm25::tests`) | Legacy full-vocabulary oracle versus query-only DF/TF: exact score bits, weighted fields, phrase/identifier aliases, CJK, empty/unknown terms, filtered corpus, tied rankings, offsets, complete hit counts and hybrid rank windows; vocabulary-heavy allocation regression | Existing nine Search unit feature-matrix owners and repository checked profile. Scalar oracle/allocation cases run in every profile, resident text integration requires `full-text-search`, and hybrid integration also requires `vector-search`. Replay with `--test_arg=resident_bm25:: --test_arg=resident_text_seed::`. The ignored `resident_bm25_measurement` probe compares legacy/candidate statistics and scalar scoring inside one test binary, excluding fixture setup, filtering, hydration and result shaping; two warmups and 21 alternating timed pairs per workload. It is a manual allocation/timing diagnostic, not an RSS or end-to-end latency gate: `cargo test --locked -p hawdb-search --lib resident_bm25_measurement -- --ignored --nocapture --test-threads=1`. Ref [#1289](https://github.com/nowledge-co/hawdb/issues/1289). |
| Search BM25 verified dictionary reuse (`lexical_projection::tests::query_context::dictionaries`) | One FST validation per loaded shared block, bitwise BM25 and bounded-window parity for 1/4/32 terms, zero-allocation cache hits, Vec reuse at eviction, cancellation and failed-dictionary retry | Existing Search unit feature-matrix owners and repository checked profile. The ignored `dictionary_reuse_query_measurement` is a local-only work-count, allocation and warmed timing probe: `cargo test --locked -p hawdb-search --lib dictionary_reuse_query_measurement -- --ignored --nocapture --test-threads=1`. It uses 128/4096 single-token documents, 32 warmups and 21 timed batches; includes statistics reads and excludes fixture construction. Current writer blocks contain at most 128 total postings, so frame-only decoding cannot yet reduce their decoded memory bound. Ref [#1278](https://github.com/nowledge-co/hawdb/issues/1278). |
| Search BM25 global windows and shared physical buffers | Global bounded segment merge versus exhaustive scores, exact text counts/offsets/ties, duplicate-live-layer refusal, inherited WAND floors before the local heap fills, one physical read for co-located terms, cancelled cache hits and failed-read retry, borrowed wide ranking IDs and admission refunds | Existing Search feature-matrix owners; window integration requires `full-text-search`, buffer/ranking/pruning guards run in minimal profiles too. Replay with `--test_arg=lexical_projection:: --test_arg=out_of_core::tests::bm25_windows --test_arg=out_of_core::query_ranking::`. The ignored `bm25_window_allocation_measurement` and `rank_id_allocation_measurement` probes are manual allocation measurements under the repository test profile, not latency/RSS benchmarks or CI gates: `cargo test --locked -p hawdb-search --all-features --lib -- bm25_window_allocation_measurement rank_id_allocation_measurement --ignored --nocapture --test-threads=1`. Fixtures are built outside the allocator observation; probes use the existing serial measurement gate. |
| `hawdb_search_source_policy_tests` and `hawdb_search_<profile>_source_policy_tests` | Inherited source/token admission policy through build, replacement, compaction, deletion and reopen; valid over-default-budget reader bodies | Million-token boundaries intentionally remain large. Five FTS profiles previously exceeded 900s: [#1034](https://github.com/nowledge-co/hawdb/issues/1034). Non-FTS decomposition: [#872](https://github.com/nowledge-co/hawdb/issues/872). |
| `hawdb_search_streamed_lifecycle_tests` and FTS profile variants | 32-MiB streamed bodies through projection update, replay, compaction/retraction and budget refusal | Five complete FTS feature profiles. Reuse the same feature-profile library; compilation is uniform across the repo. |
| Allocation-specific integration targets | Identifier, descriptor, segment, analyzer and related allocation accounting | Uses the same repository profile; preserve measurement assumptions and compare allocation evidence after profile changes. |

Weekly platform steps use Bash's fail-fast execution on every OS, including
Windows, so an earlier failing native command cannot be hidden by a later
successful test command. The explicit PowerShell artifact collector remains
an override. A green legacy Windows job with failed tests in its log is not
passing qualification evidence.

Resident generation cases in the existing Search unit/feature matrix cover
ordered COW ranges, writer progress with an old read view, body ownership after
deletion, retained key/directory capacity, and old/new payload reads across
checkpoint replacement. The text-enabled case requires physical range reads,
checks old/new freshness, and checks final descriptor refund. The strict FD
fixture now verifies that an already pinned read succeeds at capacity while a
new generation open refuses with the typed cause and retries after release.
Storage's existing range-reader family independently replaces and removes the
pathname before the first captured read, retains digest rejection and checks
final clone release. These use the existing native Search/Storage CI lanes;
no local duplicate runtime execution or adapter lock/performance acceptance is
implied. Local replay filters are `resident_documents::`, `resident_snapshot::`
and `scan::reader::tests::captured_file_` in their owning Cargo packages.

The power-loss publication fixtures select actual temporary manifest writes by
filename prefix, preserving after-write, before/after-rename and torn/reordered
fault schedules for both ordinary and partitioned mutations. Validation scratch
written by later cleanup must not replace the observed publication boundary.
The partitioned initial-publication fixture explicitly builds legacy RaBitQ
content because its required-compression queries must exercise that codec after
every recovered publication. Its five cuts and empty/replacement states remain
unchanged; ordinary mutation/compaction fixtures retain the default graph.
The storage model unit family checks that this filter preserves path scope,
skip/last selection and pre-sync torn bytes despite later writes and barriers.
The branch-GC fixture checks balanced descriptor ownership after runtime closure
and uses reservation pressure to evict the model-owned idle file cache before
asserting return to the original native-root charge. Internal recovery/cleanup
may exceed the strict foreground target. Search-ancestry refusal/retry reserves
the remaining capacity after that root charge: this standalone writer synchronizes
ancestors serially and refuses with zero free slots. Unix retries with one;
Windows additionally refuses with one, refunds every charge and retries with
two because the model audits the retained root's full native identity through
a second counted handle. The completed writer retains only its spool beside
the original root anchor; the total descriptor limit and crash/reopen checks
are unchanged. Governed Consumer staging uses its separate captured-directory inventory.
These remain existing storage/root and native branch-power-loss CI families.

### Standalone Search writer I/O waves

The isolated `hawdb_search_io_wave_tests` and profile variants own
`out_of_core::generation_writer::tests::io_waves`: post-create refusal cleanup with no retained stage debt under one-slot Task/Wave reservations, original-governor contention
before native creation, cancellation (including the exact post-mkdir,
pre-return boundary in `spool::stage::tests`), zero-slot refusal, idle token release,
Task/Wave depth-one partition builds, same-governor streamed source/output
handoff, and nonflushing Drop/deferred cleanup with
fresh admitted retry. The mutation phase cases also cover occupied-slot
refusal before term-file creation, target hydration and unordered run creation;
cancellation retains the selected generation and refunds memory after cleanup.
They verify nonflushing unordered run Drop, fresh cleanup retry, and complete
owned/streamed/unordered updates under both one-slot Task and Wave reservations.
Existing prepared/FD cleanup fixtures explicitly declare
I/O capacity while preserving memory/FD limits and assertions. Replay with
`cargo test --locked -p hawdb-search --lib generation_writer` and
`--no-default-features`; the vector Consumer positive control also runs in the
normal default-feature Search target; its one-slot Task/Wave success controls
assert zero pending stages, retained cleanup metadata and disk debt before
fixture removal. The ignored `manual_bulk_input_admission_profile` measures
256 owned/streamed documents (about 8 MiB) with raw/governed controls, counts
original-governor wave acquisitions, includes final spool flush and excludes
artifact build/publication. Replay with `cargo test --locked -p hawdb-search
--lib manual_bulk_input_admission_profile -- --ignored --nocapture
--test-threads=1`; it has no throughput threshold and is not an extra CI job.
All nine feature selections, fixture scopes and timeouts remain unchanged;
only Bazel execution ownership is isolated. Native Cargo discovery is unchanged.
See [the admission contract](SEARCH_WRITER_IO_ADMISSION.md).

## CI benchmark smoke owners

Native numeric result delivery is covered by the executor `numeric::` family
and the facade's query-execution family. The deterministic native oracle covers
row, lending, owned-typed and columnar-morsel inputs, scalar/NULL values, output
ceilings, stop and error. Ownership cases verify source/literal pointer identity,
duplicate aliases, schema refusal, cancellation and panic cleanup. The existing
parallel resource-refusal case exercises both binding and native sinks. The
facade case checks compact owned parity, immediate native versus validated
compact callbacks, fail-closed row/payload limits and SKIP/LIMIT. The native
Runtime Platform lane selects these cases; the ignored long campaign remains
local-only. Report-value tests include the native projection counter.

The local-only `mixed_point_growth` probe additionally separates plain EXPLAIN,
EXPLAIN ANALYZE, no diagnostic, and their original combined sequence. Full and
minimal parameter maps isolate unused binding variants, with database-cache
counters for both timed phases. See `bindings/benchmarks/README.md`; these
manual controls do not enter CI or qualify latency on a contended host.

Plan-cache component regressions also cover omission of irrelevant bindings,
exact pagination variants and missing required parameters. The existing root
`plan_cache` family verifies rotating point values and unused bindings across
bound EXPLAIN/ANALYZE, including cache hit/miss counts and returned values.
Both remain in their ordinary existing crate/root CI owners; they are not
additional benchmark or fuzz jobs.

`//:hawdb_linux_ci_smoke_tests` includes correctness/protocol checks and
benchmark evidence. The following benchmark groups remain `exclusive`, so
Bazel executes them sequentially after ordinary tests in the invocation.
Do not remove isolation merely to reduce wall time: relative latency and RSS
measurements can become unreliable under competing fixtures.

| Target / group | What it checks | Current execution |
| --- | --- | --- |
| `optimizer_summary`, `optimizer_group_1`, `optimizer_group_3` smoke targets | Optimizer/report evidence plus join, aggregate, lookup, vectorization and storage/search benchmark protocols | Existing complete workloads through the repository test profile. |
| `hawdb_linux_ci_benchmark_<name>_smoke_test` | index_restart_cost, integrity_checksum, relational_index_access, relational_index_page_cache, relational_monotonic_append and relational_oltp_mix | Separate targets keep the original finite deadlines and exclusive isolation. |
| `hawdb_linux_ci_wal_group_commit_smoke_test` | Concurrent/single-writer commit behavior, group-sync counts, paired latency policy evidence and complete reopen/recovery | Four paired workloads, 11 rounds each. Fixed work, not a requested run duration. |
| Fixture, storage recovery, background maintenance, previous-wrapper and migration-gate smokes | Protocol shape, recovery, compatibility evidence and fail-closed readiness | Existing semantic gates are preserved. |

There are no CI-specific optimized benchmark wrappers or target-local
optimization flags. Benchmarks used by test smokes follow the same checked test
profile as other targets. To explicitly verify release behavior, use
`bazel test --config=release ...` or `bazel run --config=release ...`. The legacy
`hawdb_bench_relational_index_access_release` label is a compatibility alias;
it no longer changes compilation mode by itself.

## Repository-wide compilation profiles

Cargo loads `.cargo/config.toml` from the repository hierarchy, covering the root
workspace, independent tools and bindings. Run Cargo from
within the repository (including when using `--manifest-path`); callers outside
this directory hierarchy must explicitly supply the config. Published library
consumers still own their host application's profiles. External-consumer
measurements explicitly copy this config into their temporary host and record
its digest, so moving the host outside the repo does not silently lose the
selected release policy.

| Setting | Cargo dev | Cargo test / default Bazel | Cargo release/bench; explicit Bazel release verification |
| --- | --- | --- | --- |
| Optimization | 1 | 1 | 3 |
| Debug information | 0 | 0 | 0 |
| Codegen units | 256 | 16 | 1 |
| Cross-crate LTO | Disabled | Disabled | Thin |
| Debug assertions | Enabled | Enabled | Disabled |
| Integer overflow checks | Enabled | Enabled | Disabled |
| Symbol stripping | None | None | None |

Cargo incremental compilation remains enabled for dev/test and disabled for
release/bench. Bazel uses its action cache rather than Cargo incremental state.
Host build tools and platform linker/ABI requirements follow their toolchains;
they are not special optimization profiles for individual regression targets.
Bazel is primarily a test runner; release is an explicit regression-verification
profile, not a production artifact publishing path.

GitHub Actions jobs using `setup-bazel` enable Bazelisk downloads, repository
archives, disk action outputs and extracted external-repository caches. Disk
cache keys are scoped by workflow/job; the action also separates OS/architecture
and keeps disk/repository cache directories distinct. These caches are restored
and saved through GitHub Actions cache storage, without a Bazel remote cache.
Cached results remain cache reuse rather than new execution evidence; compare
restore/save overhead and cold/warm build costs before claiming a CI speedup.

The ignored executor regression
`observer::query::tests::query_observer_registration_without_debug_assertions`
is explicitly selected by `//crates/executor:hawdb_query_observer_release_tests`
under `--config=release` in the required Linux native-bindings job. Its target
is manual so the ordinary checked crate suite cannot run it in the wrong mode.
Its assertion remains intact; moving its execution does not waive coverage.
Tide gates on the `Bazel native bindings (ubuntu-24.04)` context: the current
[context policy](https://github.com/nowledge-co/test-infra/blob/5a7b3995d384ed4b3f3ba576fe6d06cd700f27e6/config/prow/cluster/config.yaml#L108)
marks only Windows native contracts optional for HawDB and does not skip unknown
contexts. Preserve this merge-gate ownership when changing workflow or Tide policy.

The policy follows the distinction illustrated by [TiKV's Cargo profiles](https://github.com/tikv/tikv/blob/master/Cargo.toml):
cheap development/test code generation with assertions, versus explicit optimized
release code generation. TiKV's dev/test optimization is 0; HawDB chooses 1 to
reduce measured unoptimized-loop overhead without the compile cost of level 2.
No per-package optimization exceptions are copied from TiKV.

## Recent slow-run evidence and interpretation

Complete PR #1145 BEP on 2026-10-21 recorded:

| Lane | Bazel elapsed | Notable executed targets |
| --- | --- | --- |
| [Root](https://prow.nowledge.co/view/gs/ci-cd-503413-prow-public/artifacts/native/pr-logs/pull/nowledge-co_hawdb/1145/pull-skein-bazel-test-root/2112766656664047616) | 1565.6s | Compaction 445.2/444.2s; WAL benchmark 376.1s; optimizer group 1 229.1s. Exclusive benchmark execution adds about 864s sequentially. |
| [Crates](https://prow.nowledge.co/view/gs/ci-cd-503413-prow-public/artifacts/native/pr-logs/pull/nowledge-co_hawdb/1145/pull-skein-bazel-test-crates/2112766656974426112) | About 1218s | FTS source-policy 637-655s; streamed lifecycle 433-455s; heavy unit profiles 420-590s. |
| [Dense analytics](https://prow.nowledge.co/view/gs/ci-cd-503413-prow-public/artifacts/native/pr-logs/pull/nowledge-co_hawdb/1145/pull-skein-bazel-test-analytics-dense/2112766656806653952) | 798.0s | Isolated RSS target 551.6s; TestRunner consumed about 551 CPU seconds, indicating actual computation rather than a timed sleep. |

The initial opt-level=2 experiment on macOS arm64 changed complete materialized
compaction from 71.947s to 16.756s and default source-policy from 89.424s to
11.275s. Its first optimized invocation cost about 171s versus 111s for the
baseline due to new compile actions. That target-specific implementation was
removed after adopting repository-wide profiles; those numbers are exploratory
evidence, not results of the final level-1 profile. Obtain final-head BEP to
judge execution savings together with cold-build cost.

The final uniform level-1 profile completed the same materialized compaction
case in 21.991s and default source-policy fixture in 15.920s. Both targets
executed, with local compilation concurrency limited to four after observing
host memory pressure. The first level-1 invocation cost about 126s including
new compilation versus about 111s for the original baseline; this remains
local evidence, not a remote CI speedup claim.

Bazel `long`/`eternal` timeouts are maximum allowed execution times. They do not
make tests run for that duration. Cache-hit BEP can retain the original result's
recorded test duration: check cached-result counts before interpreting it as
new execution. Compare exact source, runner, features, fixture size, execution
versus cache hits, cold build cost and required target inventory.

## Local fuzz and reproductions

- Shiro: `make shiro-fuzz` runs one worker continuously until interrupted or an
  oracle fails; `SHIRO_SECONDS=30` adds a local time budget. Explicit `--cases`
  and `--case-index` support finite verification/replay. See
  [tools/shiro](../tools/shiro/README.md).
- SQL maintenance and ranges: every Shiro case compares backfilled projection,
  grouped/global COUNT/SUM/BIGINT-and-TEXT extrema and indexed view reads with an
  unindexed reference after random INSERT/UPSERT/UPDATE/DELETE, commit, rollback,
  overflow rejection and clear/repopulation. It verifies pinned old snapshots
  and ordered composite ranges with inclusive/exclusive/equal/reversed/NULL
  bounds and residual filters. Local `//tools/shiro:shiro_fast_tests` owns the
  generator, positive campaign and corrupted-view negative controls; no CI
  ownership is added. `sql_maintenance_coverage` separates actual initial range
  plans from fallback plans. Replay with `--seed 7 --cases 32 --case-index 0`;
  the v4 campaign protocol rejects old resume reports. Cases rotate memory,
  file-backed Shadow and file-backed DemandPaged indexes. Disk cases compare
  full pre-close results/epochs after initial WAL replay, checkpoint reopen and
  checkpoint-plus-WAL recovery, then continue mutations; retained snapshots
  also cross checkpoint publication. Recovery reports prove the selected paths.
  The common-data-loss negative control prevents a jointly lost source and
  reference from passing. Original failing databases are retained; reduction
  scratch is cleaned. Replay indexes 1/2 for the disk modes. Source rows remain
  resident as required by materialized views; this is file recovery evidence,
  not out-of-core view support or crash/power-loss qualification.
- MVCC: `make mvcc-fuzz` defaults to 30 seconds of local transaction histories.
  `MVCC_FUZZ_ARGS="--mode pessimistic"` instead runs two pessimistic
  transactions on worker threads and also checks lock waits, deadlock victims,
  snapshot refresh and serialization aborts for SQL and Cypher writes. Its
  twelve families include incremental disjoint SQL locks; an independent
  logical-key version map distinguishes overlapping changes from unrelated
  epochs while checking original snapshot reads and committed results.
  Generate editable cases, replay failures and shrink them before introducing a
  focused deterministic regression. See [tools/mvcc-fuzz](../tools/mvcc-fuzz/README.md).
- Local deterministic fuzz verification:
  `bazel test //tools/shiro:shiro_tests //tools/shiro:shiro_cli_tests //:hawdb_linux_ci_fuzz_smoke_test`.
  Historical `//crates/fuzz:*` labels are compatibility wrappers only.
- A fuzz discovery belongs in CI as a small confirmed regression, not by adding
  the continuous tool or arbitrary duration-based exploration to CI.

Python capsule destructor regressions (`cargo test --manifest-path bindings/python/Cargo.toml --lib destructor_tests`)
run locally and in the Python Bindings Cargo release-profile lane after wheel
construction. They cover a pending `PanicException` and a panicking release callback. No Rust unwind
may cross the C destructor; descriptors are still released and ordinary pending
Python exceptions restored.

Python `open` / `Database` / DB-API `connect` path checks (`bindings/python/tests/test_file.py` and
`test_memory.py`) run in `//bindings/python:hawdb_python_tests` and the Python
Bindings `pytest` step on Linux and Windows. The Windows wheel lane runs the
installed default/Pydantic suites and strict Clippy for the independent binding
workspace before release; optional Arrow/pandas consumer lanes remain on Linux.
Path cases cover missing parents, read-only refusal, regular files and
non-directory parents through absolute and relative paths, `":memory:"` and empty paths (including an
existing project as the current directory), with rejected opens leaving files
and directories intact. POSIX permission cases preserve the underlying error
and skip only when the user can bypass directory permissions. Native handles
retain absolute paths across `chdir`, preserve symlink spelling on POSIX, and
reopen persisted data. The parent check remains non-atomic with engine open.
Windows parent validation checks metadata because a regular-file ancestor can
surface as NotFound for the child. Preserve the requested absolute path in that
refusal and leave the existing file untouched. The release profile and feature
set match the existing Linux wheel lane.

The `registered_consumer_embedded` cases in
`tests/support/embedded_consumer_coverage.rs` belong to `mvcc_staging_session`
and its existing `registered_consumer` native-platform selection. Both default
and minimal Bazel targets declare this helper in their `srcs`. They cover
#1171 one-operation private progress, cancellation/restart, complete pinned
rebuild comparison, prepared-drop/conflict recovery, original embedded owner
lifetime, and legacy full-residency/incremental interval compatibility.

The covered Consumer unit family also checks the exact retention boundary:
`registered_stationary_covered_retention_checks_complete_epoch_not_old_receipt`
accepts completed E at the resume floor after C expires, rejects E below the
floor, and preserves dependency rejection for a relevant post-E write. This is
part of the existing Search Consumer unit target; no new CI job is required.

## PostgreSQL 18.0 compatibility (manual)

| Family | Purpose and owner | Lane and known limits |
| --- | --- | --- |
| PostgreSQL regressions on HawDB alone | [`tests/pg-regress/tests/upstream_sql.rs`](../tests/pg-regress/tests/upstream_sql.rs), `make pg-regress-hawdb`; 19 unchanged upstream queries with exact source/output ranges and checked checksums | Manual Cargo integration test, `--no-default-features --test upstream_sql`; no PostgreSQL server or libpq. Covers column-left int8 comparisons, ungrouped HAVING and ordering by a non-projected input column. Original output supplies integer/ASCII-word expected rows; typed error mapping and fixture-only adaptations are explicit. Unselected syntax and ambiguous psql cells are not coverage. |
| PostgreSQL upstream SQL comparison | Same independent project, `make pg-regress`; Rust `libpq` reference client; typed rows, NULL, duplicate multiplicity, ordering and DML counts against a real 18.0 server | Optional manual path; pinned selected Boolean/int8 and adapted SELECT cases; unsupported source statements are not coverage. Stock expected files are provenance for this live-comparison CLI. |
| PostgreSQL isolation schedules | Same runner and embedded transaction worker; selected `simple-write-skew.spec` step permutations with explicit Serializable options and first-statement snapshot capture | Manual only; synchronous nonblocking steps. SSI victim/timing divergence is reported as a strict comparison mismatch, not proof of a HawDB isolation defect. Lock-wait scheduling, numeric fixtures and full PG equivalence remain outside this slice. |
| Harness negative controls | `cargo test --locked --manifest-path tests/pg-regress/Cargo.toml --all-targets --all-features` | Local comparator/provenance controls; no production CI registration. Independent Rust fmt/Clippy and actual PG 18.0 execution remain additional evidence. |

The pure Rust comparison CLI calls both the embedded library and Rust `libpq`
in-process. The additional embedded fixture has a manual Bazel binary target
`//tests/pg-regress:hawdb_pg_regress_worker`; no new crate is added to the library
workspace or package archive. The report records the source SHA/checksums,
working-tree state, first differing SQL, both observations and incomplete runs.

The stationary strict-capacity test also exercises detached reservation, native
construction and publication with the foreground descriptor target occupied;
no idle token may retain a descriptor reservation between those stages.

The same unit family covers unregister and competing reservation at Reserved,
Pending and Recorded native-birth states, busy unregister followed by successful
publication after registry-cache reload, and a scoped mapper that follows a
relationship to an out-of-scope label whose post-E mutation must invalidate
publication. Storage units check immutable reservation predecessors, missing
registration policy, and direct history pruning without staging compaction.

### Prepared query admission reuse

The runtime retained-memory tests cover fixed-reservation transfer, exact capacity,
shared process accounting, non-retryable self-wait refusal, and changed capacity.
`hawdb-runtime-tokio` tests cover single-CPU preparation/execution, queued future
drop and cancellation, and failed/panicking preparation. API runtime tests check
schema, branch and configuration revalidation and verify that a prepared object
does not retain a reader pin. Embedded template-cache tests require one lookup per
request, including disabled caches and non-deterministic bypasses. The
`HawDBPreparedAdmission` model and four negative controls cover the ownership
transition independently of query execution. Two manual reachability controls
also witness hard-refusal recovery after releasing preparation and a final
refusal when execution alone still exceeds capacity. The positive model remains
in the existing TLA suite; native capacity-band tests own Tokio waiter renewal.

## PR #1217 root CI scheduling

- `//:hawdb_unit_checkpoint_headroom_tests` owns the complete
  `api::automatic_checkpoint::tests::headroom::` namespace and the two sustained
  `delta_pressure_sustains_generations_and_preserves_all_values_after_reopen`
  and `soft_wal_pressure_sustains_multiple_generations_without_host_checkpoints`
  cases, including capacity,
  notification, foreground and preparation-backoff submodules. It is included
  through the existing required root unit suites and excluded from general by
  the same inventory partitioner. It reuses the ordinary root executable and
  global checked profile, runs with one libtest thread and Bazel `exclusive`,
  and keeps the existing 900-second partition deadline. Internal test-created
  concurrency remains intact. Automatic-checkpoint headroom CREATE failures retain the original success/refusal contract and add phase, actual work-progress, wake/resource and libtest-concurrency diagnostics for [#1116](https://github.com/nowledge-co/hawdb/issues/1116); no caller retries or deadline changes. This prevents the phase/clock assertions from
  competing with roughly 1,800 unrelated unit cases and other test actions
  in the same Bazel invocation; external node contention remains possible.
- The production five-second no-progress refusal, deliberate stalled-owner
  deadline tests, 320 acknowledged rows, checkpoint-count and reopen assertions
  are unchanged. No Busy retry, ignored assertion or production timing change
  is introduced. Native Cargo ownership is unchanged.
- The previous source-bound root run for #1217 (Prow
  `2113655888001634304`, head `7546e2d09`, base `8e9eab185`) completed all 68
  targets: 65 passed, two joined-read targets timed out at 300.154/300.316s and
  the general partition failed on `automatic checkpoint capacity`. The joined
  cases create synchronous durable fixtures and overlapped other tests and
  compilation. This is scheduling evidence, not proof of a WAL regression.
- Root presubmit also owns `//:mvcc_joined_read_shard_script_test` and
  `//:root_unit_partition_script_test`. They check complete/disjoint inventory
  ownership, nonempty execution, shard status signaling and native error
  propagation. Local replay uses the existing public joined-read labels or
  `bazel test //:hawdb_unit_checkpoint_headroom_tests`; no CI-only flags or
  special compiler profile are required. Final-head CI must establish runtime
  acceptance; target isolation alone is not a measured speedup.

PR #1277 scheduling evidence is bound to head `66920d194a` and base `84d5ed46e`.
The complete Prow BEP records one uncached failed Search text/background unit
attempt (197.851 seconds, 1,031 passed and one failed) and one uncached failed
root general attempt (191.404 seconds, 1,939 passed and two failed). Search
failed at its internal 20-second task deadline during preparation; the two
root sustained cases hit the five-second no-progress checkpoint capacity
refusal. These are internal refusals, not Bazel timeout ceilings. The existing
isolated checkpoint partition passed in the same root job (23.086 seconds).
The original logs and BEP remain available in the
[crate job](https://prow.nowledge.co/view/gs/ci-cd-503413-prow-public/artifacts/native/pr-logs/pull/nowledge-co_hawdb/1277/pull-skein-bazel-test-crates/2114716414920101888)
and [root job](https://prow.nowledge.co/view/gs/ci-cd-503413-prow-public/artifacts/native/pr-logs/pull/nowledge-co_hawdb/1277/pull-skein-bazel-test-root/2114716414613917696).
Contention is a scheduling hypothesis; final-head remote execution must still
establish whether isolation resolves these failures. No production deadline,
caller retry, fixture assertion or target timeout is changed.

## Bf-Tree MVCC adapter (manual experiment)

| Family | Purpose and owner | Lane and known limits |
| --- | --- | --- |
| Adapter correctness and recovery | [`experiments/bftree-mvcc`](../experiments/bftree-mvcc/README.md); `cargo test --locked --manifest-path experiments/bftree-mvcc/Cargo.toml --all-targets --all-features` | Manual independent workspace, no CI. Snapshot/atomic-pair visibility, conflict/rollback, binary-key model, page splits/history/ranges, deep-version filtered chunks and tombstones, exact inclusive snapshot seeks, native-returned-record/row budgets, bounds/ownership, exact retry and recovered receipt-backed sparse updates/deletion/reinsertion, uncertain/unwind and subprocess crash replay. Comparison-kernel differential tests cover binary ordering, 0–160-byte lengths, pointer offsets, every mismatch position, prefixes and random pairs; head/separator tests cover fixed previews and valid binary fences. Shuffled variable-length binary keys and deep histories exercise actual native inner levels, retained generations and late gap writes. The default dependency remains unpatched. Both ignored children are exercised by parent crash tests. Process exit alone does not qualify power-loss safety. |
| Bounded batch reads | Same independent workspace, `src/index/batch.rs` and adapter regressions; `bench-advanced <new-journal> <layout> 512 24 prefix64 keep` under the global release profile | Manual only. Input order/duplicates, missing/binary/prefix/max-length keys, old/current snapshots, dense cursor positioning and sparse/deep-history fallback, carried encoded targets, complete budget refusal and snapshot/collector races. Reports separate dense/sparse/missing/duplicate scalar/batch request tails and observable wrapper work; cursor starts are not exact native root-descent counts. Ownership regression retains an incidental descriptor copy across final-handle close/reopen, while active snapshots and the next owner remain exclusive. |
| Snapshot-safe collection/checkpoints | Same workspace, `src/adapter/maintenance.rs` and `maintenance/tests.rs`; `maintenance-demo <new-journal>` and `bench-advanced ... collect` | Manual only. Read/write leases, fixed-horizon bounded passes, released-lease cursor catch-up, retained anchors/tombstones, old-writer conflicts, generation publication, exact old receipts read by captured WAL ranges, full-prefix verification and suffix-only index replay. Injected errors and 15 subprocess exit/layout boundaries cover durable/partial deletion and checkpoint publication. Checksummed invalid metadata, lost unacknowledged tails, torn/zeroed writes and reordered full blocks fail closed without repairing evidence. Device/filesystem power-loss behavior remains unqualified. Receipt evidence consumes the unchanged bounded journal; collection does not reclaim disk capacity. |
| Layout comparison | Same workspace, `bench <new-directory> 16 2` and `bench <new-directory> 512 24` under the global release profile; [paired scan driver](../experiments/bftree-mvcc/measurements/scan-20261024/measure.py) also covers `2048 48` | Manual only. Rotated fresh-process versioned/hybrid/COW comparisons with identical synchronized journal; current/old read and write percentiles, prepare/sync versus index-installation phases, reopen, journal and RSS. Paired scan cohorts retain all controls, journal hashes and host/compiler observations. Memory working indexes; not a production engine or out-of-memory benchmark. |
| Bf-Tree comparison probe | [Manual prepare/build/measure drivers](../experiments/bftree-mvcc/simd/README.md), `bench-shaped` and [results](../experiments/bftree-mvcc/measurements/simd-20261024/README.md) | Manual only, outside CI and the production dependency graph. Checksum-verified temporary upstream/word/NEON dependency copies, strict adapter Clippy and dev/release MVCC tests, shape/layout smoke cases, rotated three-way comparisons of short/common-prefix/spread keys with COW controls and journal-byte equality. NEON measurements require an eligible ARM64 host. Cross-target kernel metadata checks do not qualify native Windows/Linux behavior. |
| Internal-key structural probes | [Manual structural drivers](../experiments/bftree-mvcc/structural/README.md), `prepare.py`, `build.py`, `measure.py` | Manual only, outside CI/production dependencies. Checksum/commit/lock/profile-bound temporary upstream/head/compact/combined copies, full adapter tests and strict Clippy in checked/release profiles. Separate diagnostic copies count actual pivot bytes, preview equality/fallbacks and retained generations through owned mutation-path summaries; instrumented timings never qualify performance. Five matched repetitions rotate layouts, key shapes and workloads with COW controls, exact normalized transaction equality, full raw reports and host/compiler observations. Read-only old-format audit is evidence normalization, not a database migration. |

The experiment is binary-only, unpublished and excluded from library archives.
See its README for independent formatting/Clippy and demo commands. Its journal
and Bf-Tree dependency do not change canonical storage or production test scope.


## Windows native contract ownership

The native workflow runs seventeen independent Bazel shards and a separate strict
Cargo Clippy job. The original `Windows native contracts` check requires every
result to pass. See [Windows native CI](WINDOWS_NATIVE_CI.md) for the complete
selection/profile/count matrix, cache policy, cold-build costs and local replay.
The daily/manual abandonment lane remains separate and requires eight passing
cases with the selected 1/2/4/8-thread setting. No fuzz campaign is added.

## Query identity encoding

The existing `//crates/query:hawdb_query_tests` / Prow crates lane owns published
`q1`/`t1` vectors, length-prefixed UTF-8/NUL framing, zero/max-u16 version headers,
lowercase hex, and ASCII-only language canonicalization across borrowed canonical
names, mixed ASCII case, Unicode whitespace and preserved non-ASCII case.
Replay: `cargo test --locked -p hawdb-query --lib`. These extend the existing
normalization family without changing its feature matrix, profile or lane.
The separate manual [encoding allocation experiment](benchmarks/query_identity_encoding_2026_10_27/README.md)
records source-bound constructor/retained-byte and admitted-host controls;
its probe is unpublished and is not registered in CI.

## Request-owned Cypher identity

The root general unit lane owns `api::tests::query_observability::query_identity`.
Its ordinary and concurrent cases cover read/write parameter rebinding, cache
hits and disabled caches, enabled/disabled summaries, recovery from failed
observation to successful completion, exact current-text hashes across equivalent query
spellings, telemetry, and summary/slow-log behavior after execution and planning
refusals. Counter deltas after the two equivalent-spelling requests prove the
ordinary and concurrent read hit, disabled-cache no-hit and SET bypass paths.
The same lane owns `api::query_runtime::tests::prepared_query_identity_rejects_mismatched_transfer_and_records_current_text`:
text mismatch leaves the prepared identity available, failed observation hashes
the current text through fallback, and a matching transfer consumes it once.
Replay: `cargo test --locked -p hawdb --lib query_identity`.
No profile, timeout, feature selection or execution lane changes. SQL, EXPLAIN
and deferred retained-cursor observation keep their existing owners. The manual
[allocation probes](benchmarks/query_identity_2026_10_27/README.md) record ordinary
and concurrent facade requests separately from admitted-host controls; no new
CI benchmark target is registered.

## Borrowed statement-summary completion

The existing `//crates/system-sql:hawdb_system_sql_tests` / Prow crates owner
covers borrowed versus owned completion, disabled capacity, first-sample
retention across text/language/kind changes, UTF-8 truncation, failure recovery,
FIFO eviction and saturating counters. Replay:
`cargo test --locked -p hawdb-system-sql --lib statement_summary_tests`.
The root general unit identity family above covers ordinary and concurrent
facade integration, including telemetry and slow logs when summaries are disabled.
No test profile, feature selection, timeout or execution lane changes.
The Cargo-only `statement_summary_allocations` example is a manual host-owned
allocation control; it compares current owned/borrowed inputs, separately from
historical whole-query producers, and is not registered in CI. Build with
`cargo build --locked --example statement_summary_allocations` and run
`target/debug/examples/statement_summary_allocations 1000`.
The [allocation record](benchmarks/statement_summary_2026_10_27/README.md)
retains complete facade/component samples and admitted-host negative controls.

## Strict append preparation

- Existing storage unit owner: `//crates/storage:hawdb_storage_tests`, discovered
  by the Prow crate presubmit suite on PRs. The weekly Storage Platform Cargo
  job additionally runs these library cases on macOS and Windows.
  `append_table::tests::preparation` covers mixed DDL/caller/generated batches,
  sparse metadata overlays, deep-history old/new partitions, checkpoint-state
  restoration and exact recovered sequence gaps, late rejection atomicity and
  retry without consumed sequence values. The tests are deterministic and use
  the global checked profile. Existing append admission/exhaustion and
  durability/concurrency cases remain additional coverage.
- Manual measurements: `cargo bench --locked -p hawdb-storage --bench
  strict_append_prepare` uses the global release profile. Both key modes,
  one/64 rows, zero/1024 unrelated tables and zero/1024 live batches; 257 measured
  preparations per release case with exact output/source validation. No CI or
  scheduled registration. See [workload, results and limits](STRICT_APPEND_PREPARE_BENCHMARK.md).
  These are preparation timings without WAL synchronization, not committed
  throughput or durable p99 measurements.

### Resident read leases

`HawDBResidentReadLease` covers atomic graph/projection capture after execution
admission, shared generation charges, refusal, release-before-refund and continued
publication while readers retain old generations. The storage-model CI suite owns
the positive model. Its manual-only `TornPair`, `UnchargedRead`, `PinnedWait` and
`EarlyRefund` controls must each violate the intended invariant. Native snapshot
and report tests above establish the host correspondence; the finite model does
not establish allocator capacity bounds or throughput.

The existing Mem `app_read_snapshot_tests` and `read_execution` runtime lanes
also cover detached candidate search, hydration and retrieval: resident and
out-of-core readers keep the old graph/projection pair while writer publication
and fresh public helpers advance; admission callbacks retire old publications,
accept data updates and reject changed I/O requirements. Retrieval checks zero
admitted working/result ceilings and a successful bounded control. Report
observation checks both `match_return` and `text_graph_search` event kinds and
preserves worker errors separately from a missing callback or timeout.

### Windows power-loss partitions

The weekly Branch Power Loss lane gives head, root, WAL-sync and manifest cuts
one Windows job per durability policy. Consumer
publication, Search projection publication, deletion/GC, abandonment and vector
recovery have required sibling selections, plus a disjoint core remainder.
Linux/macOS retain the full 52-case suite.
`scripts/branch-power-loss-shard.py` derives selected tests from
Cargo's actual discovery and rejects missing/new automatic families, duplicates,
empty partitions or an incomplete union. Each artifact records complete discovery,
all partition membership and the selected test names. Recorder and configuration
checks remain in every Windows job; all fault schedules, assertions, features,
checked-profile settings, `--test-threads=1` isolation and 120-minute job ceilings
are unchanged. This trades repeated build/setup cost for completing independent
fault groups before the job ceiling. Source `83eab403` run 39959116101 stopped
inside the automatic manifest case at 120 minutes; that is incomplete coverage,
not a 120-minute fuzz campaign. Source `60f8b596` again reached that ceiling after
starting 10 of 12 manifest configurations. The policy split retains all twelve;
runtime coverage also checks all 48 configurations across the four cut families
and positive completion summaries. Final-source runtime durations remain required.

At `ad4eaab5`, the separate Windows root and candidate-WAL-sync cases also
exceeded the unchanged 120-minute ceiling. Complete source-bound job logs show
roughly 15--18 minutes of compilation/setup before those cases; progress reached
8/12 and 11/12 configuration starts respectively, without a Rust completion
summary. These starts do not establish completed coverage. Root and WAL-sync now
follow the manifest policy split, retaining both boundaries and all three
successive generations in each policy fixture. The shared qualification body,
physical plans, assertions, compiler profile and job ceilings are unchanged.
Automatic Rust discovery grows from five to seven tests, and full power-loss
discovery from 49 to 51; the runtime validator still requires exactly the same
48 distinct configurations and positive completion summaries for every selected
automatic test. Missing/duplicate configuration and completion controls remain.

At `a9f9e0ef`, all six policy-specific manifest/root/WAL-sync selections completed,
but the remaining mixed-policy head case exceeded the same 120-minute ceiling
in run 40249469385. Native check annotations confirm the job timeout; its partial
log contains 8/12 configuration starts and no Rust or automatic completion
summary. Starts are not completed coverage. Head now uses the same independent
policy fixtures, preserving both boundaries, all three successive generations,
the shared qualification body and every physical fault plan/assertion. Discovery
is eight automatic tests and 52 full power-loss tests, with exactly the same 48
configuration identities. Profiles, serial execution and job ceilings are
unchanged. Source-bound runtime completion remains required for both head jobs.

`//:power_loss_partition_script_test` and the platform job's preflight check
exercise actual selector output under simulated Windows default CRLF translation,
then interpret LF-delimited arguments as Bash does. Control files explicitly use
LF so filters and `--exact`/`--skip` reach libtest unchanged. The test also rejects
duplicate, missing, unexpected and empty discovery. It locates the selector through
Bazel runfiles when the test launcher is renamed, preserving direct Python usage.
Candidate `92681f67` exposed
this transport bug before the selected qualification cases could start; those
failed jobs are not recovery-test results.
Manual dispatch with `scope=power-loss` runs the same complete power-loss
platform matrix in a separate concurrency group, preserving an ongoing full run.
`scope=runtime` selects both runtime platforms in another independent group for
query/adapter changes. Partial runs do not qualify their skipped lanes.
Scheduled and default `scope=all` manual runs continue to include every lane.

### Parameterized PageRank persistence

`api::tests::pagerank` exercises score updates and clearing through bounded
parameterized Cypher in explicit transactions. The root general unit owner
retains first-duplicate input normalization, missing IDs, preservation of
projected entities without external IDs, null clearing, exact commit epochs,
one WAL batch and reopen values. Its input-normalization fixture validates the
whole input before opening a transaction, including invalid scores and labels;
it performs no graph reads or mutations. The old PageRank CRUD methods, helpers
and response/request DTOs are removed from test builds as well as production.
These runtime regressions remain CI-owned; local strict Clippy compiles them.


## Mem adapter concurrency qualification

The manual `mem_query_concurrency` Cargo/Bazel benchmark exercises the ordinary
Mem handle with multiple report writers and point, report or streaming readers.
It retains per-call intervals, acknowledgement observations, errors, actual
runtime CPU/cgroup limits and residency, and verifies successful writes after
reopen under default synchronous durability. Its optional sustained-reader mode
keeps readers active until every fixed-work writer finishes, with the original
reader iteration count as a minimum and a caller-enforced process timeout.
Fixed-work and sustained workloads are reported separately. The `qualification` feature adds
actual publication-owner wait/hold histograms, process-wide Rust allocation
requests and shared-runtime Cypher parse/preparation counters. The parser count
includes admission and unprepared execution; the planner count includes cache
lookup/binding and optimization on misses, including refused attempts. SQL and
standalone parser users are outside that observation boundary. Instrumented
timings are not ordinary release latency. See
[`MEM_QUERY_CONCURRENCY.md`](MEM_QUERY_CONCURRENCY.md) for identical baseline
porting, workload manifests, boundaries and missing acceptance evidence.

The existing root general `api::publication::` family owns histogram boundary,
completed-guard, failed-acquisition and unwind accounting tests. These are also
compiled without qualification instrumentation in the minimal library build;
only unit-test owners enable their counters automatically. No manual benchmark
or additional fuzz job is added to CI.


The native `process_memory_policy_contract` shared-reservation fixture refreshes
its synthetic RSS sample after both persistent handles finish opening, before
starting admission assertions. Slow Windows initialization must not accidentally
turn the reservation-accounting test into sample-expiry coverage; the dedicated
missing/unsupported/stale case retains its fail-closed assertions and zero-age
sample. No production freshness limit changes.


The root general `augmentation_jobs_lifecycle` and `augmentation_jobs_interrupt`
modules now execute bounded parameterized Cypher directly. Status eligibility is
in MATCH/WHERE, mutation is in SET or MERGE/ON CREATE, and multiple transitions
share an ordinary explicit transaction. Caller-only input normalization retains
duplicate input, empty-reason and finite-progress refusal coverage. Existing
missing/status-mismatch, no-op epoch/WAL and one-batch durable-reopen assertions
remain. The legacy CRUD adapters, storage scans and eight response/input DTOs
are removed. These fixtures remain in their existing CI owner; local smoke does
not replace those assertions.

The same root general owner retains `graph_meta`, `schema_migrations`,
`community_lifecycle`, `community_memberships` and `community_reads` through
ordinary bounded queries. Coverage includes MERGE creation versus existing
rows, sequential duplicate requests, read-your-own-writes, guarded updates,
missing endpoints, stable projected ordering, separate count/page statements,
plan-cache reuse, pinned reads, one-WAL-batch publication and exact reopen.
An additional existing-only schema-migration case requires unchanged epoch and
WAL bytes. Host-only ID/property/finite-value normalization retains refusal
coverage. Twelve database mutation adapters, the Mem entity-delete forwarding
method, two test read wrappers, their graph scans/response shaping and 48 DTOs
disappear; request helpers only attach parameters
and row/payload limits. The remaining business fixtures still need migration.


`knowledge_entity_batch_deletes` and the root Source/Skill/Thread deletion cases
use bounded parameterized IN predicates and DETACH DELETE directly. They retain
scoped nonmatches, duplicate input, missing IDs, projected-idless protection,
read-only refusal, incident-edge removal, unchanged unrelated nodes and one-batch
recovery. They no longer use generic entity-delete response DTOs or business
read helpers for their postconditions. Native CI retains the existing owners.

### Matched UNWIND relationship MERGE

The existing plan-cypher relationship-batch family also checks retained heap
ownership of the boxed command, nested mutation values and projection spare
capacity. The allocation-free scalar row marker adds no reachable heap. These
cases protect integration with the shared retained-plan admission contract.
Scalar row references use the same AST binding as read-only node-pattern
properties; both planner families and the root read/mutation regressions
protect their independent scope and lowering paths. Bare scalar row mutation
values remain limited to relationship MERGE; node CREATE/MERGE retain their
existing row-property-only binding and refuse unsupported scalar row values.

The existing root general owner (`//:hawdb_unit_general_tests`) runs
`api::tests::merge_relationships::matched_*`: exact projected member rows,
duplicate input multiplicity, missing/NULL/empty matches, ON CREATE retention,
all database/concurrent transaction result-budget refusals, full-batch input and
storage refusal, NULL relationship-property refusal, large endpoint fan-out
with pending property-subset matches, and embedded host count-guard rollback
followed by WAL reopen. The executor preflight family (`//crates/executor:hawdb_executor_unit_tests`)
counts one projected scan/index lookup per endpoint pattern, preserves
unlabelled all-node matching even with an empty named catalog label, and covers early
fan-out refusal before ID rewriting, empty pairs, host memory budgets and
cancellation. Storage's existing `id_in_mutation` family in
`//crates/storage:hawdb_storage_tests` retains the independent scan oracle and
checks ID-led property/label rechecks over 4,096 candidates and pending nodes.
The parser and plan-cypher crate owners retain the syntax and scope/refusal
checks. No carrier, feature matrix, timeout or CI lane is added. Local replay:
`cargo test --locked -p hawdb --lib api::tests::merge_relationships::matched_`
and `cargo test --locked -p hawdb-plan-cypher --lib relationship_merge_batch`.
See [the supported pipeline contract](CYPHER_DEFAULT_PIPELINE.md#bounded-relationship-mutation-input)
and [#1397](https://github.com/nowledge-co/hawdb/issues/1397).

### Property mutation query fixtures

The property mutation cases in `src/api/tests.rs` and
`src/api/tests/knowledge_property_batch_mutations.rs` now use ordinary bounded
Cypher (five rows / 4 KiB per statement), fixed property names and explicit
transactions for batch writes. Input normalization only checks that a requested
assignment exists. Filtering and id matching stay in Cypher. Coverage preserves
invalid syntax, missing/filtered targets, idless protection, no-op epochs,
read-only refusal, exact changed/unchanged values and one-batch WAL/reopen.
The existing `//:hawdb_unit_general_tests` partition in the root Prow lane
owns execution; local lint compiles the cases but does not replace runtime
results.

Memory dedup-review fixtures use the same bounded request boundary, parameterized
IN matching and one explicit transaction/WAL batch. The root API lane retains
duplicate/missing/idless, empty-id and integer/string timestamp replay coverage.

Memory metadata fixtures retain omitted-timestamp versus explicit-timestamp
behavior, first-input duplicate precedence, missing/idless targets and durable
one-batch replay through fixed bounded SET statements in the same root API lane.

Memory content fixtures assert all 13 fields after a bounded parameterized SET,
first-input duplicate precedence, missing/idless protection and one-batch reopen.
Host input validation retains empty-id/unit/extraction and finite numeric checks.
The general root partition owns these migrated cases.

Memory access fixtures preserve repeated-touch increments, optional click/dwell
fields, negative-dwell refusal and one-batch replay using arithmetic SET
statements. Missing targets return no rows; host normalization does no graph
aggregation. The general root partition owns these migrated cases.

The memory decay refresh fixtures retain first-input deduplication, missing and
idless target protection, optional-confidence preservation, finite-number input
validation, exact values and one-batch reopen through bounded Cypher. Their
execution remains in the existing root API partition.

Lifecycle fixture corrections retain the original root cases: MERGE statements
are followed by bounded identity/value reads inside the same explicit
transaction; ordinary CREATE/DELETE statements use before/after state and
committed delete counts rather than expecting immediate projected rows.
Community summary presence and ordering use existing CASE predicates. The
fixtures retain identity, idempotence, no-op epoch/WAL and reopen assertions.

Normalized-space move fixtures use fixed Thread/Memory statements with
CASE-normalized source predicates, target exclusions and identity-property
matching. They preserve duplicate/missing/filtered targets, unchanged storage
identities, optional timestamps, retry no-op epochs, invalid property syntax and
one-batch WAL/reopen in the existing root API partition.
## License hook and subprocess lease handshake

- `scripts/check-license-headers.test.py` is a local pinned-HawkEye fixture
  check for full/SPDX forms, Python/Shell shebangs, excluded/unsupported files,
  mixed valid/invalid batches, wrong owners/licenses and byte preservation.
  The staged-file hook uses the same HawkEye rules for both header templates.
- `//crates/storage:hawdb_storage_tests` owns the cross-process directory lease
  case `ownership::tests::rejects_lease_held_by_another_process`. The child keeps
  the lease until a parent pipe notification, avoiding its former ten-second
  self-expiry under CPU contention. Parent exit closes the pipe; the ordinary
  finite test deadline remains the outer bound. Native Cargo/Windows ownership
  lanes retain the same exclusion assertion.

## Native Go shared-library runfiles

`//bindings/go:hawdb_go_tests` resolves the single runtime file exposed by
`//bindings/ffi:hawdb_ffi_runtime`. The projection reuses the existing Rust
cdylib output and preserves its runtime runfiles; it creates no compilation or
copy action. The original `//bindings/ffi:hawdb_ffi` still provides the complete
linker outputs, including the Windows `.dll.lib` import library. Passing that
multi-file target to `rlocationpath` fails Windows analysis before Go executes.
Existing Go TestMain resolves the path through the runfiles API (including
Windows manifests) and actual bindings tests exercise dynamic loading on all
three native CI platforms. Windows uses the bindings feature profile and fresh
Go test results; the Unix native binding jobs retain their existing profile.

The native feature inventory audit also requires the independent telemetry
Bazel spec and lock to match the workspace Cargo.lock package version, source
and checksum. Update them together when upgrading the optional dependency.

### Memory lifecycle and evolution queries

`api::tests::memory_lifecycle` retains the ten lifecycle/latest/EVOLVES cases
previously in the root API module, owned by the same root general Prow partition.
Bounded parameterized SET/CREATE statements and explicit transactions preserve
first-input duplicate handling, scoped nonmatches, missing/idless endpoints,
exact property values, commit epochs and one-batch WAL/reopen. Input-only
validation covers empty identifiers/state/relation and non-finite confidence
before any database effect. The three database mutation adapters, twelve DTOs
and final two Mem business forwarding methods are removed. Transaction and
maintenance admission remain independent typed capabilities.

### Skill lifecycle and source queries

`api::tests::skill_lifecycle` retains eleven runtime cases from the root API
module in the general Prow partition. Fixed bounded SET statements cover usage,
optional success rate, metadata and lifecycle field groups. MATCH/MERGE/ON CREATE
keeps source relationships idempotent, including stable identities/timestamps
and unchanged WAL/epoch on retry or missing endpoints. Explicit transactions
retain the single WAL batch and exact durable-reopen checks. Input normalization
checks identifiers, lifecycle fields, nonnegative use count and finite bounded
success rates. Four business adapters and fourteen DTOs are removed; their
obsolete compile-only Skill DTO re-export identity assertion is removed too.

### Thread lifecycle and cleanup queries

`api::tests::thread_lifecycle` moves fifteen existing runtime cases from the root
API module into the same general Prow owner. Fixed bounded queries preserve
optional metadata timestamps, first-input duplicate handling, message counts
with newer-timestamp protection, repeated CONTAINS edges versus distinct deleted
messages, compaction endpoint/idless protection and exact/cascade identity
selection. Predicates and graph traversal remain in Cypher. Explicit transactions
and bounded reads verify affected counts, no-op epochs, unchanged survivors,
single WAL batches and exact reopen. Five business methods, fifteen DTOs, their
graph-inspection helpers and four old test read wrappers are removed.

### Label lifecycle and transfer queries

`api::tests::label_lifecycle` retains twelve root general cases through ordinary
bounded parameterized requests. Fixed SET/DELETE statements cover omitted
fields, duplicate input, missing/idless targets, exact/all label deletion and
surviving endpoints. Transfer candidates are selected, filtered and deduplicated
by Cypher; the host only binds each selected identity into an exact MERGE within
the same explicit transaction. Coverage preserves duplicate source edges,
space refusal, protected idless memories, existing relationship identity and
properties, retry no-op epoch/WAL, single-batch recovery and exact reopen. Four
business methods, twelve DTOs and their graph-scan helpers are removed. The
entity-label read fixture migration is described below.

### Entity label read queries

`api::tests::entity_labels` retains four existing root general cases using one
public read transaction and bounded parameterized requests. Separate entity
lookup and label pages distinguish a missing entity from a found entity with
no labels; Cypher owns ordering, projection and LIMIT. The same pinned reader
preserves three cache hits on repeat, future-property projections and stable
epochs. Malformed label/property syntax and empty normalized identities refuse
without WAL changes. Two business read wrappers, their handwritten result
shaping and eight DTOs are removed, completing removal of the test-only
lifecycle DTO module. Runtime execution remains in the root general CI owner.

### Source lifecycle and metadata queries

`api::tests::source_lifecycle` retains six root general runtime cases through
fixed bounded requests. Cypher predicates enforce current lifecycle state and
external identity; optional chunk assignments use a separate statement. Host
normalization validates identifiers, states and nonnegative chunk counts and
retains first-input duplicates without graph inspection. Assertions preserve
filtered/missing statement rows, empty commit output for SET RETURN, idless
protection, omitted fields, timestamps, one WAL batch and exact durable reopen. Two business methods and eight mutation DTOs
are removed. Source count, parsed/revision and label adapters remain separate
migration work.

### Source parsed metadata queries

`api::tests::source_parsed_metadata` retains three root general cases with bounded
parameterized SET statements. Base parsing fields and optional detail/path
assignments remain separate statements in one explicit transaction. The cases
preserve full versus omitted fields, empty file paths, missing/idless targets,
first-input duplicates, exact timestamps/content, validation before WAL and
one-batch durable reopen. One business adapter, four DTOs and the assignment
factory disappear; no executor feature or runtime test ownership changes.
Invalid-input coverage compares against the captured initial epoch, which may
include persistent bootstrap work.

### Source revision edge queries

`api::tests::source_revisions` retains three root general cases using bounded
parameterized endpoint reads and CREATE statements. Missing and idless source
identities create no relationship; ordinary explicit-transaction CREATE returns
no provisional rows, and commit/readback verifies the exact edge count and
properties. Input rejection preserves WAL/epoch, while two valid creates retain
one WAL batch and exact endpoints, timestamps and default properties on reopen.
One business adapter, four DTOs and its relationship-request factory are removed.

### Parsed Source creation queries

`api::tests::source_parsed_create` retains three root general cases through fixed
bounded MERGE/ON CREATE statements. Existing identities and repeated batch input
preserve original nodes/properties; three source formats retain exact input and
default fields. Pure input validation rejects missing fields, negative size and
nonpositive version before WAL changes. Explicit transactions preserve one WAL
batch, creation flags and complete durable-reopen contents. One business method,
four DTOs and the typed entity-create factory are removed.

### Source label relationship queries

`api::tests::source_labels` retains six root general cases through bounded
parameterized MERGE/ON CREATE and DELETE. Exact endpoint predicates protect
missing/idless sources and labels; repeated/existing associations retain
relationship identity and original properties. Staged pair reads, commit counts
and exact readback cover selection and survivors. Invalid inputs leave WAL and
epoch unchanged; both write families preserve one batch and durable reopen,
including retained endpoint nodes. Two business methods and eight DTOs are
removed with their typed relationship factories and validators.

### Source memory-count queries

`api::tests::source_memory_count` retains three root general cases with bounded
point calculations followed by fixed SET in the same explicit transaction.
Cypher computes increments and floor decrements; the host only binds computed
values. Repeated inputs observe earlier staged counts, NULL starts at zero and
missing identities produce no candidate. A nonnumeric stored count refuses its
query while prior staged changes remain committable. Invalid input preserves
WAL/epoch; two source updates retain one batch and exact reopen. One business
method, four DTOs and the graph-side aggregation helpers are removed.
Arithmetic stays in WITH/RETURN stages outside CASE branches, with a numeric
operand check before clamping. Increment clamps the base to `i64::MAX - delta`
before addition; decrement clamps the base to zero before adding its negative
delta and floors the result, preserving MAX/MIN boundary coverage.

### Source-reference cleanup queries

`api::tests::source_reference` retains its five root general cases. The three
mutation cases now use bounded parameterized CREATE/DELETE and candidate reads,
removing the cleanup adapter, three DTOs and three generic create-fixture calls.
Selection stays in Cypher; committed counts and exact survivor identities cover
reference isolation and retained nodes. Empty/whitespace references refuse
before WAL changes; setup-close/reopen-cleanup preserves one delete batch and
exact durable recovery. Existing pinned read/cache and delete-guard cases stay
in the same module and CI owner.

### Crystal source association queries

`api::tests::crystal_source` retains two root general cases through fixed bounded
MERGE and same-transaction reads. The cases preserve numeric finite input checks,
missing endpoints, exact relationship identity/properties, create versus retry
outcomes, unchanged epoch/WAL on retry and one-batch durable reopen. Two DTOs
and the business mutation adapter are removed without changing the CI owner.

### Entity creation and update queries

`api::tests::entity_writes` retains thirteen root general scenarios using bounded
fixed MERGE, SET and exact projections. The tests distinguish ON CREATE from ON
MATCH, preserve existing identity and properties, deduplicate batch inputs, reject
invalid syntax/identity before WAL, refuse read-only mutations and retain one
transaction batch with exact reopen values. The idless case exercises the
external-id predicate on an update; internal projected identifiers cannot select
that mutation. Four adapters, ten DTOs and dynamic statement factories disappear.
The obsolete compile-only identity assertion for the removed entity-create DTO
is removed separately from the thirteen runtime scenarios.

### Relationship deletion queries

`api::tests::{knowledge_relationship_deletes,knowledge_relationship_batch_deletes}`
retain six autocommit and seven explicit-transaction scenarios through fixed
bounded DELETE and projection queries. Endpoint/property/scope predicates stay
in Cypher; missing endpoints, preserved nodes, partial scope matches, read-only
refusal, invalid syntax before WAL and one-batch reopen remain covered. The
idless fixture retains a real edge to prove an internal projected identifier
cannot delete it. Four mutation adapters, seven DTOs and the dynamic deletion
statement builder are removed. The obsolete compile-only identity assertion for
the deleted DTO disappears separately; runtime root general ownership is unchanged.

### Relationship property update queries

`api::tests::knowledge_relationship_updates` retains nine root general scenarios
through bounded SET and projection queries. Relationship properties and source
scopes remain Cypher predicates; exact assignments, missing/idless endpoints,
filtered no-ops, invalid/empty SET, read-only refusal and one-batch durable reopen
remain covered. The idless case includes a real relationship whose weight must
remain unchanged. Four adapters, seven DTOs and their dynamic SET builder are
removed; non-returning SET results are verified through commit and readback.

### Relationship creation and merge queries

`api::tests::{knowledge_relationship_create_upserts,knowledge_relationship_batch_creates}`
retain ten and six root general cases through bounded CREATE/MERGE and fixed
readback. The cases preserve exact endpoint/property values, missing/idless
protection, source/target scope predicates, repeated MERGE identity/properties,
read-only refusal and one-batch durable reopen. Four fixture calls in two existing
storage-recovery/statistics cases also use bounded CREATE; their out-of-core,
checkpoint, cache/spill and exact-statistics assertions retain their CI owners.
The last eight business mutation methods and fourteen DTOs are removed, along
with the test-only analytics DTO module and handwritten mutation graph inspection.
Read adapter migration and final runtime qualification remain separate work.

### Entity and property query fixtures

The four entity-read cases and six former root batch/property cases now share
`src/api/tests/knowledge_entity_reads.rs`. Scope predicates and property
projection execute in fixed parameterized statements. Separate candidate and
visible phases share one snapshot and explicit cumulative output budgets;
caller-slot shaping does not filter or traverse the graph. Cache cases inspect
the snapshot cache (one template per statement), including separate exact and
scoped templates. Missing identities, filtered identities, null properties,
request order and exclusion of unselected payloads remain covered.

The entity-detail case moves from the removed legacy lookup helper into that
module, retaining exact distinct-neighbor and relationship counts. Its obsolete
malformed legacy-DTO decoder unit is removed with the decoder. The navigation
cases retain missing-identity and idless-node coverage through explicit external
or internal identity queries; the implicit facade fallback is removed. Two
existing out-of-core cases retain checkpointed entity/property reads and digest
corruption refusal. These cases remain in the existing root general CI lane.
Six read extension methods, eleven DTOs and the test-only mutation DTO module
are removed; fourteen other read wrappers still require migration.

### Crystal query fixtures

Nine existing root cases move to `src/api/tests/crystal_reads.rs`. Fixed queries
own key ranking, cursor predicates, limits, community grouping, distinct source
counts, visibility ordering and default-value projections. Detail/page counts
use separate statements on one snapshot with a cumulative row/payload budget.
Invalid key/cursor combinations and empty/null community scopes remain caller
validation. Cache assertions account for separate count/page templates and the
snapshot cache. All field, path-multiplicity, pagination and read-only epoch
checks remain in the root general CI lane. The three legacy wrappers, twelve
DTOs and host-side graph-result sorting/truncation helpers are removed.

### Community query fixtures

The existing two visibility and four memory cases retain their files and root
general CI owner. Visibility uses a bounded optional match and separate entity
count, preserving entities without memories, label isolation, default latest
flags, deterministic ordering and two-template cache reuse. Memory reads use
fixed mentioned/ranked/direct statements with query-owned scope/unit/crystal
predicates, distinct entity aggregation, ordered entity IDs and bounded output.
The main three-phase case shares one snapshot and cumulative budget. Mixed
sources remain separate named phases rather than a host-side graph merge.
All existing field, missing/default, rank, invalid input and cache assertions
remain query fixtures. Shared scope validation only normalizes caller input.
Two read wrappers, ten DTOs and their handwritten join/filter/sort helpers are
removed; navigation wrappers remain for the next migration.

### Induced-edge query fixtures

The two existing induced-edge cases move from `knowledge_navigation.rs` to
`induced_edge_reads.rs` under the same root general CI owner. Parameterized
identity, edge-count and ordered-page statements share an immutable snapshot
and explicit cumulative row/payload budget. Queries own endpoint membership,
strength/confidence/default selection, sorting and LIMIT. Caller missing-slot
shaping only consumes selected identity rows. Exact endpoints/types/strengths,
outside-node exclusion, total count independent of page size, repeat-cache hits
and invalid empty input remain covered. One wrapper, three DTOs and the legacy
host-side graph filtering/sorting helpers are removed.

### Relationship read query fixtures

Three existing navigation cases move to `relationship_reads.rs`. Separate seed,
scope and bounded relationship-page queries retain caller order, missing and
filtered seed distinctions, edge properties, unknown relationship-type empty
results and snapshot cache reuse. The scoped phases share one snapshot and
cumulative row/payload budget. The unknown-type fixture now asserts an existing
seed plus an empty edge query rather than the deleted facade's synthetic zero
seed counters. An existing out-of-core case additionally checks both exact edge
types and targets before checkpoint. The same root general CI lane owns these
cases. Two wrappers, four DTOs and legacy empty-group synthesis are removed;
shared traversal internals remain until neighbor/path/subgraph migration.

### Neighbor and dense navigation query fixtures

Five existing navigation cases move to `neighbor_reads.rs`, retaining explicit
internal identity for idless nodes, one/two-hop edge identities and properties,
incoming/outgoing matching, unknown types, normalized scope, missing seeds,
LIMIT 0 and deterministic limited pages with cache reuse. Fixed hop statements
replace the old host traversal; the main traversal phases share a cumulative
snapshot budget. An empty unknown-type result remains valid after the delivered
row quota is consumed. Fixture creation now uses ordinary queries.

The dense fixture still creates exactly the dense-adjacency threshold and
checks the physical group's layout, node, degree and untyped group enumeration.
Typed/untyped ordinary profiled reads return every exact relationship and target
under explicit output limits; distinct-neighbor count plus the seed retain the
subgraph cardinality check. The deleted facade's reason DTO/string fields are
not claimed as ordinary query-report fields. Existing out-of-core checkpoint
and reopen neighbor reads now use fixed statements, including exact target and
weight checks. These cases remain in the root general CI lane. Two wrappers,
three DTOs, their traversal helpers and one obsolete compile-only DTO re-export
identity assertion are removed; path/subgraph fixtures remain to migrate.

### Crystal key-ranking parser regression

`crystal_key_ranking_preserves_exact_prefix_and_contains_order` exercises both
Crystal projections with a Unicode key and conflicting importance/lexical
orders. It keeps exact matches before prefixes before contains matches, excludes
non-Crystals, and checks the cumulative six-row snapshot budget. Prefix ranking
uses `left(id, $key_chars) = $key` because `STARTS WITH` is a WHERE predicate,
not a supported CASE condition. The existing two failing Crystal CI fixtures
retain their result and cache assertions. The root general CI lane owns these
ordinary-query runtime checks.

### Final path and subgraph query fixtures

All six path/subgraph runtime cases in `knowledge_navigation.rs` now execute
fixed parameterized statements. Endpoint identity, one/two-hop paths, both
edge types, wrong direction, unknown types, source/target scopes, LIMIT 0,
zero allowed hops, missing endpoints and snapshot cache reuse remain covered.
Node pages use bounded zero-to-two-hop expansion; edge pages restrict both
endpoints to the query-selected node IDs. Host code only passes those selected
IDs to the next statement. The main path/subgraph phases share cumulative
snapshot budgets and assert exact identities, relationship types/properties
and commit epochs. All fixture creation uses ordinary queries.

These are bounded query fixtures, not a replacement generic BFS adapter.
Retired facade diagnostics and synthetic unknown-type node counts are removed;
an explicit seed lookup still distinguishes an existing seed from an empty
relationship result. Four wrappers, their request/output/diagnostic models,
legacy traversal/decoding/filter helpers, the test-support trait and both
re-export modules are removed. The obsolete contracts and facade fallback-enum encoding
units are removed with their enum; all six graph runtime cases remain in the root
general CI lane. Production retrieval retains its outgoing/incoming dense
adjacency reports using the existing storage directions directly.

The final navigation fixtures use scalar CASE comparisons for parameterized hop
bounds. Bare WHERE parameter predicates support equality/null checks, not ordered
comparisons. Bidirectional one/two-hop checks use fixed one-hop edges per pattern.
These syntax repairs retain
all exact-result, missing-endpoint, zero-hop and exhausted-budget assertions.

### Query-first concurrency review regressions

PR #1194 review repairs extend the existing root, search and Tokio test owners;
no execution lane, profile, timeout or discovery filter changes. Root autocommit
coverage pins a data writer before execution, publishes a new graph label, then
checks catalog/data preservation through checkpoint and reopen; UUID predicate
locks use the storage column type, and constraint/configuration changes reject
stale preparation. Embedded and Tokio cases cover execution that fits capacity
only after retained preparation is released. Search cases cover admitted lazy
resident RaBitQ reuse and refusal before allocation. Mem incremental maintenance
retains its reader/configuration after a descriptor refusal and retries on the
same handle. Query profiles count delivered SKIP/LIMIT rows once. Migrated route
fixtures execute repeated MERGE and missing/NULL assignments; parameter-only
normalization tests are named explicitly and are not database coverage.

These regressions run in the existing required Cargo/Bazel root/crate CI suites.
Local-only verification remains the Shiro regression/smoke targets and the short
MVCC campaign documented above.

The query-first review regressions also cover Mem report/stream admission when
execution fits but retained preparation does not, and route qualification
statements that exceed explicit row or payload ceilings. These live in
`src/nowledge_mem/read_execution.rs` and `src/graph_route_evidence_tests.rs` under
the existing root library test targets.

### Pinned full-scan input cost

The optimizer relational unit target (`//crates/optimizer-relational:hawdb_optimizer_relational_tests`;
`cargo test --locked -p hawdb-optimizer-relational --lib`) owns candidate-cap
independence, snapshot-size monotonicity, selective covering-index selection,
and unchanged point/default-context controls. These are checked-profile unit
cases in the existing crate lane; no fixture, feature matrix, timeout or
execution lane changes. See [the cost model](OPTIMIZER_COST_MODEL.md).


## Embedded architecture ownership (#1222)

- `//:hawdb_storage_language_boundary_test` checks both normal Bazel dependency
  paths from storage to Cypher syntax and plans; Cargo metadata checks the same
  normal closure. It belongs to the existing root unit suite.
- Existing storage units own `canonical::node_label_cursor` and
  `store::projection_full_source::tests`: complete label synopses, absent labels,
  sparse IDs, overlapping labels, pinned checkpoint/delta/tombstone membership,
  cancellation, corruption and sticky budget/IO/memory refusals. Existing
  checkpoint accumulator cut/retry tests also cover resumable label inventory.
  Label Bloom cardinality cases compare one and 4,096 propertyless nodes with
  one or three distinct labels in ordinary and admitted flushes, including
  persisted descriptor round trips. Repeated labels retain the original memory
  allocation. A distinct-label insertion case cancels at every work-unit cut
  across two bounded shift blocks, then resumes without duplicate keys or leaks.
  Descriptor admission is checked before both matching and Bloom-negative
  decisions with cold and warm serving caches. Resident batches retain one
  pinned COW iterator per step and check cancellation between every delivered row.
- Existing default/minimal `hawdb_mvcc_staging_session` targets own the four
  `registered_consumer_defin` cases: canonical version/scope identity, graph/SQL
  catch-up and complete rebuild equality, target-version refusal/reopen, original
  owner retention, cancellation and conflict. No fixture or deadline is reduced.
- Ordinary query regression tests migrated on main in PR #1194 stay in their
  existing root partitions. Splitting API/embedded-owner implementations into
  private responsibility modules preserves their public facade identity and
  ordinary query execution; no captured-response replacement corpus is added.
- The manual storage `projection_label_source` and root `consumer_publication`
  benches report scan work/time and foreground latency/successful watermarks.
  The optional capture-before-writers schedule uses bounded setup handshakes
  outside measured transaction/preparation/construction intervals; it adds no
  rate limiter and changes no progress threshold. See the [source-bound
  controls](benchmarks/architecture_2026_10_24/README.md). No fuzz lane is added.


PR #1240 descriptor-admission follow-up retains the existing storage owner.
The label cursor reuses admitted checkpoint descriptor traversal; three new Rust
cases cover cold/warm serving caches and Bloom-positive/negative decisions under
tiny and exhausted concrete memory. They also check memory-before-IO refusal,
no denied descriptor progress, no shared-reader poison, prompt pruned-lease
release and selected descriptor/payload ownership after task closure. Original
production reproductions fail the new admission oracles; corrected cursor tests
and affected checkpoint/source tests pass. No target, fixture budget, timeout or
CI/fuzz lane is weakened.

## Owned SQL/PGQ token PEG

The existing `//crates/sql-syntax:hawdb_sql_syntax_tests` target owns the token
PEG engine regressions: ordered choice, successful and failed packrat reuse,
lookahead diagnostics, long invalid token text, invalid grammar rejection,
linear malformed recursion,
fatal work/storage/depth budgets, capture rollback with memo reuse, and exact
entry/edge accounting across direct and sparse memo storage. The existing
`postgres_pgq_tests` and `postgres_select_pgq_tests` targets own syntax ASTs,
graph nesting, aliases,
joins, byte spans and composed GRAPH_TABLE rejection. All use the ordinary
checked profile and existing SQL syntax CI lanes.

`//crates/sql:hawdb_sql_tests` retains the frozen production/owned frontend
corpus and PGQ binder/lowering tests. It must preserve the recorded acceptance
and rejection codes, including the explicitly reviewed SELECT-family promotion
changes. The default SELECT/EXPLAIN PEG path is compared with the legacy parser
for complete accepted relational IRs (including source positions) and rejected
inputs across the frozen corpus. Error classes must match outside the 11
explicit frozen Semantic-to-Parse exceptions; the generated vector `:=` refusal
has its own explicit exception. Keep those exceptions exercised. Oversized
INSERT/DDL regression inputs verify that prefix dispatch does not impose the
owned full-input cap on legacy bodies, while oversized SELECT/EXPLAIN still
fail closed. Malformed numeric separator cases cover both SQL frontends and
PGQ syntax refusal before creation binding. Existing root relational SQL tests own embedded
query results, plans, parameters, caching, joins, aggregates and vector execution.
DDL/DML retain upstream routing pending separate qualification.
Local Shiro parser campaigns and
`//crates/sql-syntax:hawdb_sql_alias_boundary_fuzz_tests` remain manual/local.
The ignored `parser::owned::tests::parser_timing_diagnostic` is a manual
production SELECT parser comparison, run with `cargo test --locked --release
-p hawdb-sql parser::owned::tests::parser_timing_diagnostic -- --exact --ignored
--nocapture`. It compares the legacy reference and default PEG in one binary,
checks complete successful IRs first, alternates order, and emits nine samples
per shape (discard the first). It covers short queries, vector calls, rejection,
and 500-column ASCII/UTF-8 projections; it is not a CI timing gate.
`cargo bench --locked -p hawdb-sql-syntax --bench frontend` is a manual parser-only
release benchmark; `-- --shapes` adds wide projections, many joins and rejected
inputs. It emits nine samples after grammar warmup and is not a CI timing gate.
See [SQL PEG parser](SQL_PEG_PARSER.md) for the matcher/transformer boundary,
budget accounting and explicit production-routing limitations.

### Unsupported storage format classification (#1260)

Existing storage unit ownership covers relational/append codec version refusal,
unknown materialized-view expression tags, and checksum precedence for slice,
streaming-file, and cooperatively controlled checkpoint reads. Core tests preserve
typed causes through nested I/O wrappers. The existing `branch_project_open`
integration owner covers public branch admission, Mem startup, doctor planning,
automatic/interrupted repair refusal, canonical checkpoint schemas, full-checkpoint
versions/features, and byte-for-byte file preservation. Python error tests keep compatibility refusal separate from integrity
errors. No CI lane or fuzz target is added.

Focused replays: `cargo test --locked -p hawdb-storage compatibility_tests`,
`cargo test --locked -p hawdb-storage append_wal_versions`, and
`cargo test --locked -p hawdb --test branch_project_open storage_format`.

### Graph row-width and blocking-cost estimates

Existing optimizer-graph ownership covers `graph::costing::width::tests`,
`graph::costing::work::tests` and `graph::costing::tests_width`: pinned typed
schema, bounded distinct-domain width sampling, required-only decoding,
projection/graph ownership and alias scope, key-versus-body comparisons,
context-sensitive choices in memo/direct lowering, selected trace refresh,
metadata bounds and saturating row/cost arithmetic. Input estimates within the
OFFSET+LIMIT window use an equal ordering-work proxy and prefer TopN on ties in
both lowerings; greater-than-window controls retain comparison-aware choices.
Projection-fused pricing is pinned around the 64-MiB unit threshold and 2-MiB
facade threshold, where costing an unfused graph binding would invent spill.
Combined row-goal/width controls keep complete blocking comparison/spill work,
scale streaming decode work, and preserve the caller's memory hint for bounded
ordered-versus-Sort/TopN competitors in both memo and direct lowering.
Root `order_by_expressions` keeps the five-row exact-page control, including
its cheaper property Sort+Limit choice, and retains strict property/computed-key
TopN assertions with 64 additional low-ranked rows. Small and bulk cases share
complete expected-page assertions.
Asymmetric hash-join
inputs pin right-build retention and spill; one-to-three-hop traversal controls
keep opaque graph contributions visible in `proxy_fields`. Joint grouping and
width costing share the incoming alias scope: correlated key counts change the
spill estimate while an INT alias shadowing TEXT keeps its scalar width. The existing
`//:hawdb_linux_ci_optimizer_summary_smoke_test` pins the corresponding
comparison/decode costs for all seven affected graph workloads, retaining exact
row/cost, decision, fingerprint and repeated-planning assertions.
Core schema snapshot tests
cover table-qualified descriptor iteration, deletion and old snapshot identity.
The joint-NDV small-budget control retains all 400 source rows and the original
40-row window (TopN), and adds a 19-row window to keep Sort+Limit transfer
admission covered under the same 2-MiB query budget.
Root `api::tests::width_costing` checks complete NULL/tied output, pinned reads,
warm templates, small budgets and checkpoint/reopen in all residency modes.
A correlated-filter regression estimates at most 19 rows but consumes all 256
matches, returns the exact offset/tied page on cold and warm calls, and verifies
TopN stays within its 256-KiB blocking allowance without spill or leaked admission.
`query_observability::order_by_limit_uses_top_n_and_preserves_stable_order`
retains a selective TopN fixture under comparison-aware costing. Executor
`transform::tests::limit_admission` verifies selected-window transfers, skipped
payload, exhausted offsets and exact/one-byte-deficit admission; the same narrow
kernel regression is independently carried by the joint-NDV change. Replay:

```console
cargo test --locked -p hawdb-core --lib schema::snapshot_tests
cargo test --locked -p hawdb-optimizer-graph --lib
cargo test --locked -p hawdb-executor --lib transform
cargo test --locked -p hawdb --lib -- width_costing order_by_limit_uses_top_n_and_preserves_stable_order
```

The opt-in `width_cost_planning` release benchmark is manual, with bounded CLI
inputs, exact complete output checks, explicit row/payload budgets, cache and
spill/admission counters. No default target, profile, resource limit or CI lane
is changed. Read [the cost contract](QUERY_WIDTH_COSTS.md) before interpreting
logical width/CPU/IO units as measurements.

The source-bound [macOS ARM experiment](benchmarks/width_costs_macos_2026_10_31/README.md)
contains 19 cells, 114 processes and 684 fully checked calls, including narrow,
TEXT/STRING/vector, arrival order/native ordering, small/full K, three blocking
budgets, width-proxy misses and persistent residency controls. It shows gains
when TopN removes measured spill and records neutral/adverse outcomes explicitly;
it is not a CI performance gate or a bound on actual heap allocation.