Eight-hour native fuzz campaign

All 31 native fuzz targets ran for eight hours and reached 434,171,028 executions. No SDK bug was found. Thirty targets finished with no failure. minima_sketches saved three inputs, and all three were false alarms from a harness bound too narrow for QSketch. The harness now gives each sketch its own band.

Method and source identity

Item Value
Factory bb9fb6fdf8d3eb1b572b48c32d14e85704bd2fee, branch fuzz/native-hylix-wire
SDK 60fd1bbc0b184bc3117e963bb07cdc90d2f0c424, clean. The factory gitlink pins 16bbcc1; 60fd1bb only adds build-time identity checks.
Compiler rustc 1.101.0-nightly (7df81381d 2026-10-14)
Time 2026-11-08T18:02:06Z to 2026-11-09T02:06:02Z; 28,800 s for every target, running together
Execution libFuzzer fork mode with AddressSanitizer, seed 4701, 44 workers at nice 10, -ignore_crashes=1, fixed binaries copied before the run

Thirty targets exited 0 and minima_sketches exited 77. The run saved no timeout, out-of-memory, leak or slow-unit files, and no log contains a sanitizer report.

The three failures

Each is a QSketch<u64, 64> estimate above the old bound |estimate - n| <= 0.6n + 16.

Input Bytes Sketch seed Keys Estimate Estimate/keys
crash-6d40ed3e 51 255 74 136.29 1.842
crash-253cf1c8 55 255 143 257.78 1.803
crash-92fdea55 41 0 101 187.58 1.857

The first is kept as the qsketch_wide_estimate seed. The other two were not kept as seeds:

crash-253cf1c867014aeef615af367b4c5ed630733eb1
fe ff ff ff 01 00 ff ff ea 93 30 15 ff 48 06 ff 15 ea 48 48 3f 3f 3f 7c 3f 3f 5d 2a
3f 3f 7c 3f 3f 2a 3f 3f 3f 3f 3f 3f 3f 3f ff ff ff ff 3f 5d 3f 3f 3f 3f 3f 20 ff

crash-92fdea5546ccdd1b5ab0a66bad5c850b1d81c9a1
01 13 00 04 3d 3d c0 24 3d 70 f6 ef 08 01 0a 04 3d 3d c0 3d 26 ff 04 00 ff 00 b9 ff
29 00 00 00 00 00 00 00 ff 30 ff ff 04

These estimates are correct results, for two independent reasons:

  • Recomputation: separate XXH64, register and truncated-likelihood code matched the SDK within 3e-8 on all three inputs, and within 7.5e-8 on 2,000 random inputs.
  • Distribution: the SDK matches a simulation with ideal independent exponentials. Seed 255 does not explain the failures: 16% of QSketch corpus inputs use it, and the two inputs above that use it share only 16 keys.
QSketch at 74 keys Trials Bias Relative SD Outside the old bound
Ideal simulation 200M +1.60% 13.37% 1.41e-5
SDK, random keys 20M +1.60% 13.37% 1.43e-5
SDK, keys shaped like the harness 20M +1.58% 13.36% 1.55e-5

The old bound was the problem. Its fixed +16 matters less as keys grow, so the ideal failure rate rises from 3.5e-7 at 32 keys to 3.54e-4 at 2,048 keys.

The fix

An estimate for n keys must now lie within n*low - slack ..= n*high + slack. Ranges below cover trials from 1 to 2,048 keys, and every measured extreme lies inside its band.

Sketch Low High Slack Measured estimate/keys Relative SD Trials
MinimaHll<u64, 8> 0.6 1.6 4 0.504–1.434 up to 6.2% 77M
ExaLogLog<u64, 8> 0.8 1.2 4 0.750–1.081 up to 1.5% 57M
SetSketch<u64, 64> 0.4 2.6 0 0.512–2.277 12.9% 196M
QSketch<u64, 64> 0.4 2.6 0 0.505–2.264 13.4% 196M
Ideal QSketch simulation 0.493–2.318 13.4% 420M

The QSketch band also has an analytic bound. With uniform hashes the register ranks are independent, with P(R=r) = exp(-n 2^(-r-1)) - exp(-n 2^(-r)). The estimate reaches c exactly when the likelihood score at c is non-negative, and that score is a sum of 64 independent terms z/expm1(z) - z with z = c 2^(-r-1). A Chernoff bound on the sum, taken at the worst n over one octave, gives these per-input rates:

Estimate/keys Bound
>= 2.0 7.8e-6
>= 2.4 1.7e-8
>= 2.6 8.8e-10
<= 0.5 2.1e-8
<= 0.4 3.8e-15

The bound sat about nine times above the measured rate at both points checked: 8.76e-5 against 9.4e-6 at ratio 1.842, and 3.18e-3 against 3.54e-4 at ratio 1.6. It covers QSketch only. The other three bands rest on measurement.

Planted faults

Each fault was a temporary SDK estimator edit, removed afterward. Together they replayed 574 real corpus inputs under 16 seeds, against both bounds. With no fault, neither bound failed in 9,184 runs. Rates are per input of the affected sketch.

Planted fault Inputs Old bound New band
QSketch rank threshold, estimate ×2 1,952 30.7% 3.6%
QSketch rank threshold, estimate ÷2 1,952 0% 3.8%
SetSketch scale, estimate ×2 1,856 27.5% 1.7%
SetSketch scale, estimate ÷2 1,856 0% 4.1%
HLL alpha, estimate ×2 1,040 40.4% 66.2%
HLL alpha, estimate ÷2 1,040 0% 40.1%
ExaLogLog rate, estimate ×1.3 4,336 0% 58.9%
ExaLogLog rate, estimate ÷1.3 4,336 0% 14.8%

The new bands catch all eight faults; the old bound caught three. The cost is weaker detection of doubled estimates in the 64-register sketches. For QSketch at 40 keys or more, the old bound caught 70.2% of inputs and the new band 2.5%, so a short smoke run may miss such a fault. An independent register oracle in the harness could restore that sensitivity; none was built. The SDK has its own seeded bias tests for these sketches, but they were not run against these faults.

Verification

  • The three inputs panic on the campaign binary and pass on the fixed harness.
  • python3 fuzz/run.py smoke minima_sketches --cases 3000 passed, including the new seeds.
  • python3 fuzz/run.py fuzz minima_sketches --seconds 300 --jobs 8 --seed 4702 ran 285,104 executions under AddressSanitizer on the campaign corpus with no failure. Edges rose from 8,437 to 8,454.
  • The other 30 targets were not rerun, because only this harness changed.

Per-target results

Edges and features are libFuzzer counts, not line coverage. The first value is from the first progress line, after the existing corpus loaded. The minima_sketches log stops at two crashes because the third came after its last progress line.

Target Executions Edges Features Corpus
ashroot_migration 3,266,628 5761→5764 17023→17055 286
ashroot_mutations 6,472,060 5220→5237 22996→26801 1132
ashroot_relations 13,948,381 2387→2932 10683→16228 1907
executor 20,022,785 1140→1151 7392→7758 515
graph_nyxus 26,948,217 1229→1304 7006→8022 1359
heap 7,742,036 590→592 3010→3513 528
hylix 9,014,132 1208→1208 6921→7126 671
hylix_api 4,509,351 2256→2363 11529→13003 931
hylix_codec 17,504,223 862→862 4659→4677 131
hylix_faults 4,901,833 775→776 3465→3765 385
hylix_handles 8,135,837 2518→2630 14958→16889 885
hylix_map 382,555 3126→3203 19098→19967 954
hylix_owners 2,840,896 2032→2035 12960→13172 765
hylix_tokens 8,418,159 970→970 5515→5990 622
hylix_transform 448,250 4083→4119 26704→28251 1314
minima 3,810,119 917→918 3403→3580 398
minima_collections 5,221,733 2739→2752 14480→15180 1387
minima_filters 7,365,438 3584→4392 17678→21019 2012
minima_graph 9,517,608 4527→4565 26322→28070 2064
minima_hylix 3,943,620 1431→1431 6726→6966 549
minima_sketches 5,150,836 7960→8437 35504→41703 3562
nyxus 25,031,935 685→689 3763→4011 791
nyxus_shared 28,123,006 1800→1928 9769→11772 1369
page_pool 669,239 546→547 2054→2125 248
store_frames 7,268,778 2016→2020 10937→12019 849
store_migration 6,057,467 3816→3834 18037→20249 1196
store_tree 8,398,177 1244→1249 6393→6776 752
tripwire 18,488,961 846→846 2567→2647 382
vec_memory 471,506 1024→1033 4508→4884 745
wire 151,260,133 838→840 2640→2677 462
wire_types 18,837,129 2776→2807 8538→9045 1198

Limits

  • Platform: this was native x86-64 only. It does not cover Wasm-only paths, 32-bit layouts, real upgrades or IC rollback.
  • Unreached APIs: timers need an SDK test hook. plain_frame, reset_context_after_rollback, Binary Fuse scratch and Store project are not driven by any target.
  • Coverage: there is no line-coverage percentage. Flat edge counts in hylix, hylix_codec, hylix_tokens, tripwire and minima_hylix do not show that their code is fully covered.
  • Uneven depth: hylix_map, hylix_transform, vec_memory and page_pool each ran under 700K executions, against 151M for wire. minima_filters, ashroot_relations and minima_sketches were still gaining the most edges.
  • Future band failures: the bands assume uniform hashes, and the SDK documents no adversarial bound. Fuzz inputs choose both keys and seeds, so a band failure is not automatically an SDK bug. Recompute the estimate independently first.

Retained evidence

Campaign logs, binaries, crash files and the scratch statistics and planted-fault programs were deleted after this summary. Their results are recorded above. The formulas and fault descriptions here are enough to rebuild the analysis, but nothing from it can be rerun as it stands.