Code review: 1.1.0 work

The review is about risk and maintenance, not a count of classes or lines. Status below distinguishes committed fixes from work still being verified.

Findings

High: Android release still needs device and distribution checks

The original libmp3lame.so wheels had 4 KB ELF load-segment alignment. LAME is now rebuilt with 16 KB alignment, and the debug APK, release bundle and a bundle-generated APK pass alignment checks for both ABIs. The release bundle is unsigned and has not been exercised on a 16 KB device. Signing, licensing compliance and device testing remain before calling the Play release ready.

High: mobile score ownership and cache invalidation

Opening new text could retain the previous library score's save target and layout. That is a data-integrity issue, not just untidy state. The working mobile refactor clears these on a new score and retains the target for edits to an owned score; the mobile regression tests pass. The refactor still needs final review and commit.

Centralizing the data in MobileState does not make it independent per session: the facade still binds one process-wide state. Its lifetime and concurrency must be explicit if multiple sessions or overlapping operations are ever supported. Android currently serializes facade calls on one thread. The extracted state boundary has been typed, but the refactor is not yet committed.

High: Android large-score responsiveness is unproven

Caching and lookup work improve repeated views, but desktop-host timing is not a phone measurement. Cold opening and page, scroll and follow transitions need timed tests on an emulator or device, including a player workflow and copyright footers. Keep the roadmap item open until the actual views meet its few-seconds goal.

Medium: Android's state object owns too much

android/app/src/main/java/io/github/dutrairs/euterpes/AppState.kt owns score editing, navigation, library operations, playback, export and tuner state. This mixes independent reasons to change and makes cancellation and lifecycle behavior harder to test. Split by responsibility incrementally, keeping the public UI behavior and ownership of coroutine jobs explicit; a wholesale rewrite would introduce more risk than it removes.

Medium: engraving changes need visual and behavioral validation

The working layout changes address nested group-sign collisions and slur/word overlaps, but geometry tests alone do not prove a readable score. In particular, the slur clearance pass also handles ties and needs checking around accidentals and ornaments; golden images or display lists must not be updated merely to make the test pass. Validate Beethoven's group signs and page density and the Debussy examples before treating engraving as finished.

Work completed

  • CI now runs strict mypy on the configured core, services and mobile facade, including the LilyPond parser, and runs Ruff and tests.
  • Document-level event and start-position indexes are reused for note-edit repair. The measured Beethoven concerto pitch edit improved from 1.37 s to 1.30 s median on the desktop, including parse and repair but excluding drawing.
  • Score-view coordinate and annotation handling have been extracted from the main widget. A regression test preserves annotation double-click handling outside a sheet. The wider mobile domain split is still under review.

Follow-up priorities

  1. Complete Android release signing, licensing compliance and testing on a 16 KB device.
  2. Verify and commit mobile ownership and domain boundaries.
  3. Measure cold and warm Android views, then fix the largest measured bottleneck.
  4. Validate engraving against actual scores before updating goldens.
  5. Extract Android state responsibilities in small, tested steps.