daily backup 2026-11-19
This commit is contained in:
@@ -1,5 +1,23 @@
|
||||
# Tactility Bible Audio
|
||||
|
||||
## Listening-first implementation — approved and started
|
||||
|
||||
User liked the WhatsApp reference images and requested deliverables and implementation. Authoritative checklist: `/Users/adolforeyna/Projects/electronics/tactility/tactility_apps/Apps/BibleAudio/UX_DELIVERABLES.md`. Seven deliverables: D1 durable state/resume-first; D2 listening history; D3 persistent chapter-limit sessions; D4 native reference UI; D5 offline/interruption handling; D6 simulator/regression QA; D7 ESP32 package and separately authorized hardware pilot.
|
||||
|
||||
D1 is parent-verified complete:28 actual-C/real-MP3 tests, zero skips; live320x240 and480x320 checks of latest-of-multiple chapters, no audio/download on paused startup, exact fractional-sample Resume, durable Pause, repeated preview-close preservation, and first-use closing without fake history. Worker repairs `deleg_18ce6e7c` plus parent fixes restored sample rate, atomic dirty generations/deferred capture, shutdown writer ordering and backward-seek checkpoint cadence. Acceptance: `/Users/adolforeyna/output/bible-audio-ux-implementation/d1-acceptance.md`; tests/build/runtime logs and screenshots in that directory. Simulator package equals installed simulator binary. During D1 QA, the480x320 simulator was paused at Genesis2 0:04/3:06 with no audio; the live process has since been replaced for D2 QA below. This is not the final visual redesign or chapter-limit implementation.
|
||||
|
||||
D2 is parent-verified complete:51 actual-C/real-MP3 tests, zero skips, and live320x240/480x320 checks. Repaired contiguous coverage, full-catalog part metadata, mute gating, heap snapshots and bounded persistence; parent additionally fixed per-play recency, short-stop flush, accepted-byte fatal-write position, pending/nonblocking Recent preview, last-played preservation when preview closes unplayed, readable two-row Recent pages and explicit offline/listening labels. Full real-MP3 worker tests now prove Finished on continuous output and no false Finished from mute or skipping. Native tests persisted Started for Genesis1/2, reopened without sound, previewed an older chapter without changing last played, and moved Genesis2 to first only after explicit Resume; merged exact persisted span202752-395136 samples. Evidence: `/Users/adolforeyna/output/bible-audio-ux-implementation/d2-parent-live-qa.md`; current source/package/hash snapshot and tests logs are alongside it. During D2 acceptance the480x320 simulator was in Recent with audio stopped; current D3 runtime is recorded below. Focused worker `deleg_89c6201e` repaired original padded-v1 migration, negative-position rejection and exact persistence validation; parent reviewed it, reran the51-test suite and verified final C source hashes match the simulator-tested package. Final acceptance: `/Users/adolforeyna/output/bible-audio-ux-implementation/d2-acceptance.md`. Package SHA-256 `e8f115a70673690eafd2cb453adc8889c0885727e927ba7a3d0c48b416bb5c77`; preserved as `d2-verified.sim.app` with `d2-verified-source.tar.gz`. Temporary cache-absence test preserved Started/history while showing Needs download; cache restored. D2 has been simulator-deployed only; kitchen untouched. Worker owns BibleAudio source/tests only and may build/test, not operate the live simulator, modify checklist/manifest, write hardware or commit. D3 remains in progress, not accepted. Repairs `deleg_08d14167` delivered serialized background persistence/controller changes and limit/stop UI. Parent fixed live overlay flex clipping, missing root deletion, compact overlap, true Close, and startup-ready rendering; full62tests and simbuild pass. Native480 five real natural endings Genesis2..6 decremented5->0 and persistedGenesis7ready0:00, with no7audio/cache; receipt `d3-five-chapter-live-receipt.json`. At320 coldrestart restoredexhaustedgentlestop; actualAnother5 downloaded/started7once, paused27648@44100; selectingNoLimitCancel preserved state andexplicitUse1savedlimit1/rem1. Repeated appreopen intermittently fails catalog despite backend200; failedinstance6 hasnoCatalogHTTP/resultlogs, likelytaskcreate failure butrootcauseunproven. Filepreservation isNOTsuccessful UIresume proof. Latestreview `/Users/adolforeyna/output/bible-audio-ux-implementation/d3-parent-native-qa.md`. Currentruntime320x240PID45772, failedcatalogUI, audiooff; statev2limit1/rem1chapter7samples27648ready0. Read-onlydiagnosis `deleg_00d4d7a5` completed: task-allocation failure is workinghypothesis, not runtime-proven. Parent `nm -m` verified TrackInfo calloc resolveslibSystem, separate from simulatorFreeRTOSheap; do not addthatallocation toRTOSbudget or extrapolate POSIXstackwordunits toESP-IDF. Correctednote `d3-reopen-diagnosis.md` and findingsrelayedtoresidualcontrollerworker; require actualcreationreturn/heap diagnostics beforefixclaim. Residualcontroller/book-enddurability/exhaustednavigation/actualworkerintegrationtests ownedby `deleg_5a778ee5`/`sa-0-33e6d30b`; samebatch `sa-1-ca2710b8` owns ONLY new `test_limit_view_runtime.py` actual-C event/lifetime tests. ParentownsUI module/header andallnativeoperations. Workersmaybuild/test, never simulator/hardware/manifest/checklist operations. D4-D7 remain pending. Parent owns acceptance and live QA. Baseline archive/hashes and evidence: `/Users/adolforeyna/output/bible-audio-ux-implementation/`. Kitchen remains installed0.3.0 and unchanged; no new hardware installation/launch authorization inferred. No final ESP32 build/ABI/runtime verification for the new UX has occurred yet.
|
||||
|
||||
## Latest D3 blocker and current runtime
|
||||
|
||||
D3 remains unaccepted. All workers completed; parent full suite67tests/zero skips and simulatorbuild succeed, including actual-C ASAN/UBSAN UI events, realMP3five-ending gate, and statev3 with v1/v2migration/book-end marker. Parent verified nativefiveendings Genesis2..6 stopbefore7, andAnother5explicitlystarts7. Stackunits correctedapp-only: POSIXworddepthconvertedfrombytes withhostminimum16384; ESPargumentsunchanged. This mitigates overallocation, NOT the underlyingcleanupbug.
|
||||
|
||||
Runtime taskallocationfailure is nowproven: return-1/freeheap25216. Correctedstackstressstillloses45824Bperreopen;15successes thenfailurecycle16. ActualuxTaskGetSystemStatetrace shows3additionalpending-deletedtasks eachcycle (1,4,7,10), withheap695040,649216,603392,557568. Simulator deferredcleanupnotreclaimingtask allocations; exactruntimeidle/reapermechanism stillneedsinvestigation. Evidence `/Users/adolforeyna/output/bible-audio-ux-implementation/d3-simulator-task-retention-blocker.md`. No simulator/firmwaresourcechangesmade. Scopeapproval request forlocalsimulator-onlyruntimefix timed out unanswered; do not change runtime until explicituserapproval. Allworkersfinished; appclosed/audiooff. Hardware unchanged. Current320x240PID48974, appclosed/audiooff. Statev3 limit1/rem1, chapter7 samples28800/rate44100, ready0/book_end_stopped0. Oldqa_d3_helpers.py assumesv2; updatebeforeparsing. RemainingD3nativebookend/manualconfirmation cases andD4-D7pending. Earlier inline D3 worker/runtime references above are historical, supersededbythissection.
|
||||
|
||||
## Original design-only UX proposal — implementation now approved
|
||||
|
||||
User requested no coding: rethink UI, open on latest played chapter, retain chapter-playback history, consider automatic stop after five chapters, and render references. Proposed resume-first paused home, stable player controls, independent offline/listening state, current-chapter-centered tiles, Recent listening, explicit five-chapter session settings and gentle stop with next chapter ready. The five includes the resumed current chapter; introductions/split parts do not count separately, and restart does not silently reset the allowance. These were initially design-only proposals; the subsequent user request approved implementation under the checklist above, but the new features are not yet verified implemented. Seven reference states rendered at320x240 and960x720 plus overview boards; all positions/statuses in images are illustrative, not device history. Files: `/Users/adolforeyna/output/bible-audio-ux-reference/00-experience-overview.png`, `00-main-flow.png`, and `design-proposal.md` in that directory. No app code, firmware or device changes were made for this design request; deployed0.3.0 remains the last installation recorded below.
|
||||
|
||||
## Current revision — player 0.3.0
|
||||
|
||||
User requested responsive UI while downloading, fullscreen player content, MP3 Player-style volume UI/status bar, and auto-play next chapter. Implemented full window-manager content area while retaining the firmware-owned system status bar; accurate elapsed/total and progress bar; persistent app-scoped volume slider above transport controls; background download progress, Cancel, paging/Back/cached playback while downloading; natural-EOF next-track playback within the same book, downloading the next track if needed. Back/Stop/errors/closing suppress auto-next. Both decoding and duration scanning use heap decoder state; scan is header-only. Download work yields one actual FreeRTOS tick per chunk to avoid UI starvation. Volume persistence happens outside LVGL callbacks.
|
||||
|
||||
Reference in New Issue
Block a user