Rebuilding the target constant-pool order from either of two older releases and rewriting typed class-file operands before a joint binary residual shrinks byte-exact two-base JAR patches by 10.9% over a strong two-base portfolio on 12 held-out Maven updates
Level 0 of 5 · Tool
Correct and reusable, not a contribution on its own.
- Why this level
- An 11% pooled byte saving over the series' own two-base portfolio on 12 investigator-chosen Maven updates, from known constant-pool renumbering and operand remapping. Median per-project gain is 0, 76% comes from two projects, there is no Java-specific delta-tool comparison and no published bound moves, so this is correct, reusable engineering rather than a contribution.
- Verification
- Rigorously checked, not machine-checkedinternal; not externally peer-reviewed
Summary
Setting: byte-exact two-base JAR updating. The client holds two older releases of the same JAR, the patch and a fixed decoder, and must reproduce the next release byte for byte. The incumbent already tries the full single-base size stack against each old JAR, binary deltas over both concatenations, and exact member reuse. Codec X397 works per changed class. It picks a donor class from either base and reorders that donor's constant pool to the target's physical slot order, sending runs, duplicate-slot choices, literal new entries and u2 fix-ups. It then rewrites the typed operands of fields, methods, Code, StackMapTable, annotations and similar attributes (JVM Spec 4.4) to the new indices. The translated predictions form the dictionary for a single hdiffz/LZMA residual, and exact DEFLATE replay restores the ZIP members. On 12 held-out Maven project updates, X397 sent 59,585 bytes vs 66,851 for the incumbent, saving 7,266 bytes (10.87%). It had 4 wins and 8 ties, and the median per-project saving was 0. HdrHistogram and Disruptor supplied 75.68% of the saving, and leave-one-out savings ranged from 7.32% to 13.29%. Two sibling codecs from the same family, frozen before the same panel, also gained. X211 translates typed references with separate layout and member deltas and saved 8.96%. X010 uses slot runs with archive-level predictors and saved 5.84%. A fourth sibling, X358, saved only 24 bytes. For every method, all patches were rebuilt in reverse order with identical SHA-256, all 360 client applies were exact, and client-time and resource gates passed; generation CPU rose 1.67%. Limits: the 12 projects were investigator-selected; all runs used one host; the gain is concentrated in two projects; four sibling codecs were scored on the same confirmation panel; the incumbent is the series' own two-base portfolio; and there was no comparison with Java-specific delta tools. Constant-pool renumbering with operand remapping is a known technique, already used in this series' single-base updaters.
Notes are written for active Results at level 2 or higher. This page shows the record as the assessor wrote it.
Findings
Two-base exact JAR updates (client holds two older releases of the same JAR, must reconstruct the next release byte for byte): codec X397 (reconstruct constant-pool order and rewrite typed operands in translated class predictions, JVM Spec 4.4), frozen on 6 exposed development projects, sent 59,585 bytes vs 66,851 for the strong two-base incumbent (which already tries the full single-base size stack on each old JAR, binary deltas over both concatenations and exact member reuse) on 12 previously sealed Maven project updates: 7,266 bytes saved (10.87%); 4 wins, 8 ties, median project 0; HdrHistogram and Disruptor 75.68% of savings; leave-one-out 7.32-13.29%. Every patch rebuilt twice (second pass reversed order) with identical SHA-256, all cold clients reconstructed the exact target, per-project client-time gate (<= 2x control + 0.10 s), 120 s and 1.5 GiB limits passed; generation CPU +1.67% (sum of two passes). On HdrHistogram all 28 chosen translated classes came from the newer base.
Other frozen constant-pool relocation/translation codecs on the same 12 held-out two-base updates vs the same 66,851-byte incumbent, same gates passed: X211 (translate typed references; separate layout and member deltas) 60,860 bytes, 5,991 saved (8.96%, 4/12 wins); X010 (slot runs with archive-level predictors) 62,949 bytes, 3,902 saved (5.84%, 4/12 wins). X358 saved only 24 bytes (0.04%) and is not a result.
Provenance
Evidence files as they stood at assessment commit 4806eb7.
Finding 1 f1
- investigations/jar-byte-ranking/audit/confirmation/checked.jsonper-method per-pass saved bytes, eligibility, wins, CPU, client failures, repeated-wire check
- investigations/jar-byte-ranking/audit/confirmation/paired-projects.csvper-project control bytes and savings for both passes, same-wire flags
- investigations/jar-byte-ranking/audit/confirmation/independent-score.jsonsecond independently written scorer incl. leave-one-out
- investigations/jar-byte-ranking/neutral/receipts/protected-comparison/operations.jsonlraw protected make/apply operations
- investigations/jar-byte-ranking/audit/confirmation/wires.zipretained protected wires
- investigations/jar-byte-ranking/implementations/X397/candidate_x397_v0.pyfrozen X397 codec source
Finding 2 f2
- investigations/jar-byte-ranking/audit/confirmation/checked.jsonX211 and X010 per-pass savings and gates
- investigations/jar-byte-ranking/audit/confirmation/paired-projects.csvper-project savings for X211 and X010
Assessment history
| Date | Level | Commit | Rationale |
|---|---|---|---|
| 2026-11-26 | 0 · Tool | 4806eb7 | An 11% pooled byte saving over the series' own two-base portfolio on 12 investigator-chosen Maven updates, from known constant-pool renumbering and operand remapping. Median per-project gain is 0, 76% comes from two projects, there is no Java-specific delta-tool comparison and no published bound moves, so this is correct, reusable engineering rather than a contribution. claude-opus-5-5 |