← Lab /Software

Byte-for-byte rebuilds are rare, but daleq4py proves equivalence for up to 79% of cases

daleq4py can establish wheel equivalence for 60.2% of macaron and 78.9% of oss-rebuild source-equivalent rebuilds

Software arXiv 24 Jul 2026 Measurement Prototype evidence

Published as “No Snake Oil: Verifying Python Package Builds”

Why it matters

Daleq4py can dramatically reduce false alerts in supply-chain monitoring by automatically accepting many benignly different rebuilds, focusing analyst effort on truly suspicious differences.

Summary

Daleq4py raises the proportion of rebuilds that can be accepted as equivalent from about 15%/19% (bit-for-bit) to 60% for macaron and 79% for oss-rebuild, based on a study of 10,449 pure-Python PyPI releases. The evidence comes from a large real-world dataset and clear quantitative comparisons, though many rebuilds still remain non-equivalent.

What they found 4

  1. Only 15.4% of macaron and 19.1% of oss-rebuild rebuilds are byte-for-byte identical to the published wheel.

    “Although only 15.4% of macaron rebuilds and 19.1% of oss-rebuild rebuilds are byte-for-byte identical to the published PyPI wheels, daleq4py establishes wheel equivalence for 60.2% and 78.9% of source-equivalent rebuilds, respectively.”

  2. Daleq4py establishes equivalence for 60.2% of macaron and 78.9% of oss-rebuild source-equivalent rebuilds.

    “daleq4py establishes equivalence with the published PyPI wheel for 3,588 of 5,960 macaron releases (60.2%) and 4,374 of 5,541 oss-rebuild releases (78.9%).”

  3. Rebuild success rates are 68.0% for macaron and 56.5% for oss-rebuild on pure-Python releases.

    “macaron rebuilt 7,106 releases (68.0%), while oss-rebuild rebuilt 5,908 releases (56.5%).”

  4. The two tools agree on the selected repository and commit for 96.3% of commonly rebuilt releases.

    “the two tools agree on the selected repository and commit for 96.3% of commonly rebuilt releases.”

Caveats 6

  • Even with daleq4py, a large share of rebuilds remain non-equivalent (39.8% for macaron, 21.1% for oss-rebuild).
  • Bit-for-byte reproduction rates are very low (15.4% and 19.1%), indicating many builds differ substantially.
  • We filtered out releases with binary components; non-pure-Python packages were not evaluated.
  • The rule set is incomplete - there might be additional benign sources of build variability that our rules do not yet cover.
  • The recorded derivations do not capture negated premises and built-in predicates used in rule bodies, limiting explainability.
  • Soundness of the normalization rules is not machine-checked but was ensured by manual review.

What’s new here 3

  • Applies provenance-preserving datalog normalization to Python wheels (daleq4py).
  • Shows that explainable equivalence can recover three-to-four times more rebuilds than strict byte-for-byte comparison.
  • Provides a systematic failure analysis for two independent rebuild tools on a large PyPI sample.