Audiveris: corresponding source for three cumulative Java modifications

Pinned upstream revision:
  9e1e55cd2746037d059345881c53e6a6754bffbd
  https://github.com/Audiveris/audiveris/tree/9e1e55cd2746037d059345881c53e6a6754bffbd
This package describes the exact runtime source premise above, not a claim that
this runtime is the upstream5.11.0 release. Original source copyright, authorship
and license notices are retained. See LICENSE and NOTICE.txt.

Included modifications and preferred source forms
1. Export-wedge failure handling (already in the deployed prerequisite JAR):
   zero-axis/base-export-wedge/PartwiseBuilder.java
   zero-axis/base-export-wedge/export-wedge.patch
   zero-axis/base-export-wedge/upstream/PartwiseBuilder.java
   These exact files match repository omr-server/audiveris-export-patch.
2. RunTable null/zero-axis compatibility (private):
   zero-axis/source/RunTableZeroAxisCompatibility.java
   zero-axis/upstream/RunTable.java
   zero-axis/run-table-zero-axis.patch
   zero-axis/source-equivalent/RunTable.java
   zero-axis/tools/{transform,archive,classfile}.py
3. Source-bound Measure membership restoration (private):
   source/SourceMembershipReload.java -- exact compiled helper source
   upstream/Measure.java -- exact original upstream source
   membership-callsite.json -- complete original/replacement instruction contract
   tools/{transform,archive,classfile}.py -- complete byte-preserving modification

Every helper source is unchanged from the candidate that was reviewed. The
membership change is authored as a three-byte classfile callsite substitution;
its complete transform is source, not an opaque vendor binary. No misleading
compilable Java-equivalent Measure is supplied: the helper's checked-Throwable
and generic return signature differ from the original source callsite while its
JVM invocation has exactly the same operand-stack effect. Recompiling the whole
Measure would not preserve unrelated methods/frames/attributes. The transform
pins the full original class and retains everything except that call and added
constant-pool entries. Source-level behavior and limits are documented below.

Exact offline build of all three overlays
  python3 /path/to/package/build.py \
    --runtime-lib /existing/original-audiveris/lib \
    --javac /existing/jdk21/bin/javac \
    --output /new/private/build-directory

The original runtime library directory must contain all57 existing pinned JARs,
including original audiveris.jar SHA256:
  9b35257edea808ec80a8bcd48882d174b107152d9640b5ca33e1365593cff2a5
These are existing compilation prerequisites, not files downloaded by this recipe.
source-manifest.json lists every exact dependency hash. Disposable compile-only
API copies adjust class-version headers for JDK21 signature reading. They are
NEVER executed and MUST NEVER be shipped or substituted into the runtime.
Only the nine PartwiseBuilder classes are recompiled for the first overlay.

Shortcut from the exact already-export-wedge-patched JAR:
  python3 /path/to/package/build.py \
    --base-jar /existing/export-wedge-patched/audiveris.jar \
    --javac /existing/jdk21/bin/javac \
    --output /new/private/build-directory
Required shortcut input SHA256:
  602a6498725873e5ad6c780ab0911620cb2db55c3048ce7f63db9e843f23ebad

Both modes build the two standalone helpers and transform the exact original
RunTable/Measure classes; neither loads the Audiveris application. The output
must be new and outside source and input directories. Builds use existing JDK21,
Python3 and the standard library only: no network, dependency resolution, ASM,
new libraries, models, score fixtures or recognition. The original Java25 runtime
and all application dependencies remain unchanged. Compiler JVM heap is bounded
and annotation processing is disabled. Each compiler subprocess is bounded.

Expected cumulative JAR hashes (all are enforced, not merely reported):
  export-wedge: 602a6498725873e5ad6c780ab0911620cb2db55c3048ce7f63db9e843f23ebad
  plus zero-axis: 6a88738aaa8f2010b97a28e48566b364d43647197ea9d7305bb91fef71d8a12f
  plus membership: 67b9790fb8251546016cbdb8173ee40f5bf30f44e073246594f4c7298bdf2a2c
Final output: audiveris-three-overlays.jar, with reproduction.json containing
commands, toolchain hashes, dependencies, immutable-input checks and exact parity.
The recorded compiler is Ubuntu OpenJDK21.0.12.1+1-1-24.04.4-Ubuntu. The expected
JAR hash detects any compiler/Python/zlib difference rather than assuming
cross-toolchain reproducibility. New helper ZIP metadata comes from the qualified
candidate and is fixed, not derived from the build time or host permissions.

Behavior and retained boundaries
The first change prevents unresolved expression timing from dropping a measure;
it emits a source-bound review warning instead of inventing expression timing.
The second initializes a null RunSequence array only for a valid post-JAXB
zero-axis RunTable. Positive-axis missing runs retain their original failure.
It does not validate every malformed lexical XML representation; primitive
missing dimensions can default to zero. The third calls the original filter,
then on the exact early barline failure checks unique raw/source/native
memberships and restores only certified null chord.measure, chord.voice,
voice.measure and voice.chords references. Existing agreeing links are retained.
It does not repair a barline, change graph/timing/geometry, or call propagating
voice/rhythm/augmentation methods. The original boundary exception remains.

Membership warnings require boundaryResolved:false and reviewRequired:true.
Recovery-time source ZIP and sheet hashes are distinct from final saved ZIP
identity. The helper is not a universal initial-load digest check or synchronized
transaction: the current single-owner private import lifecycle supplies source
stability, and failed recovery/rollback must be rejected by the surrounding
wrapper. Any unhandled export visitor error must remain fatal. The Java overlays
alone are not the server/frontend metadata or publication policy implementation.

Status
This is private corresponding-source preparation, not deployment authorization,
legal sufficiency advice or a claim of generalized musical accuracy. The fixed
saved-project study retains its strict failed live weak-index equality assertions;
durable sheet/glyph/image preservation and improved export coverage are separate
observations. Further source-bound review metadata and actual API qualification
remain necessary. The unchanged historical zero-axis package is included intact;
its narrow component qualification language does not override this cumulative
status or authorize deployment.

The source files, patches and recipes describe these modified components and the
existing exporter modification. They are not a replacement for the original
application's complete upstream/dependency source and license distributions.
No source score, MusicXML, OMR, image, model, runtime library, compiled class or
JAR is distributed inside this source-only package. Build outputs remain outside.
