|
| 1 | +# ADR-0044 — Start the app 0.2.0 beta train at build 5 |
| 2 | + |
| 3 | +- Status: **Accepted** |
| 4 | +- Date: 2026-08-27 |
| 5 | +- Extends: [ADR-0040](0040-sha-pinned-connected-github-import.md) |
| 6 | +- Extends: [ADR-0042](0042-prefill-official-examples-and-discover-branches.md) |
| 7 | +- Extends: [ADR-0043](0043-session-bound-visible-file-multi-delete.md) |
| 8 | + |
| 9 | +## Context |
| 10 | + |
| 11 | +The installed app identity remains `0.1.0+4`, but build 4 is a retained |
| 12 | +TestFlight handoff bound to an earlier source commit. Since that handoff, the |
| 13 | +app source has gained a coherent set of compatible beta features: connected |
| 14 | +board identity, the numbered and adjustable rich editor, SHA-pinned GitHub |
| 15 | +import, the editable official examples-repository default with branch-only |
| 16 | +discovery, session-bound visible-file multi-delete, and a one-row responsive |
| 17 | +Files toolbar. |
| 18 | + |
| 19 | +Reinstalling a different source state under the same version and build works |
| 20 | +for local development, but it makes About, screenshots, HIL evidence, and |
| 21 | +tester reports unable to distinguish the artifacts. A future TestFlight upload |
| 22 | +also needs a unique build identity, and the shared Flutter build number becomes |
| 23 | +Android's monotonically increasing `versionCode`. |
| 24 | + |
| 25 | +The project reserves app `1.0.0` for its first production release and has not |
| 26 | +previously assigned a numbered milestone to the current Unreleased app work. |
| 27 | + |
| 28 | +## Decision |
| 29 | + |
| 30 | +1. **Start a new compatible beta milestone.** The current coherent Unreleased |
| 31 | + feature set becomes the **PyBLE app 0.2.0 beta train**. This changes neither |
| 32 | + the independently versioned firmware agent (`0.6.0`) nor PBLE/1. |
| 33 | + |
| 34 | +2. **Use build 5 for the first candidate.** The first local beta candidate is |
| 35 | + `0.2.0+5`, displayed as `0.2.0 (5)`. Later candidate artifacts increment the |
| 36 | + build number (`+6`, `+7`, …) even when the base version stays `0.2.0`. |
| 37 | + PyBLE does not reset the shared Flutter build sequence when the base version |
| 38 | + changes, preserving one simple iOS/Android ordering rule. |
| 39 | + |
| 40 | +3. **Keep `pubspec.yaml` authoritative.** `app/pubspec.yaml` owns the complete |
| 41 | + base-version/build-number pair. The base version is mirrored at compile time |
| 42 | + by `kAppVersion` for PBLE/1 HELLO because the wire layer must not depend on |
| 43 | + runtime package metadata. The public GitHub request User-Agent derives from |
| 44 | + the same `kAppName` and `kAppVersion` constants instead of carrying another |
| 45 | + independently authored version literal. |
| 46 | + |
| 47 | +4. **Make synchronization executable.** An automated test parses the package |
| 48 | + version, pins the declared 0.2.0 build-5 candidate, and proves its base |
| 49 | + version equals `kAppVersion`. GitHub-client tests require the exact |
| 50 | + `PyBLE/<kAppVersion>` User-Agent. A later version bump must update the |
| 51 | + candidate expectation and cannot silently drift package, HELLO, and HTTP |
| 52 | + identities. |
| 53 | + |
| 54 | +5. **Distinguish a candidate from a qualified release.** A local install or |
| 55 | + TestFlight build carrying `0.2.0 (5)` is a beta candidate, not evidence that |
| 56 | + the app has completed release qualification. Store-signable artifacts, |
| 57 | + platform parity, compatibility declarations, automated gates, and required |
| 58 | + physical validation remain governed by the existing release requirements. |
| 59 | + |
| 60 | +6. **Bind every external handoff to source and evidence.** If build 5 advances |
| 61 | + from local testing to TestFlight or another external handoff, its test plan |
| 62 | + records the exact accepted source commit, qualified agent release, PBLE/1 |
| 63 | + baseline, focused test scope, and known boundaries. About must report the |
| 64 | + installed package identity, and physical evidence must name both app |
| 65 | + version/build and board firmware identity. |
| 66 | + |
| 67 | +7. **Preserve historical identities.** The retained `0.1.0 (4)` TestFlight |
| 68 | + plan, prior changelog entries, and the `source-2026.08.23` citation snapshot |
| 69 | + remain unchanged. They describe immutable earlier artifacts rather than the |
| 70 | + moving branch tip. |
| 71 | + |
| 72 | +8. **Keep delivery test-first and local until accepted.** The synchronization |
| 73 | + test lands red before the version implementation. The exact release build is |
| 74 | + installed and physically reviewed on iPad before any pull request or push |
| 75 | + for this combined feature branch. |
| 76 | + |
| 77 | +## Consequences |
| 78 | + |
| 79 | +- Testers can distinguish the new feature set from retained build 4 in About, |
| 80 | + screenshots, diagnostics, and any later TestFlight feedback. |
| 81 | +- PBLE/1 sees app version `0.2.0` while remaining protocol-compatible with the |
| 82 | + qualified `0.6.0` agents. |
| 83 | +- The official examples repository remains independently versioned and |
| 84 | + untrusted at the importer boundary. |
| 85 | +- Future candidate builds pay the small cost of updating one explicit build |
| 86 | + expectation in exchange for deterministic cross-platform traceability. |
| 87 | +- `1.0.0` remains unavailable until the production acceptance gates pass. |
| 88 | + |
| 89 | +## Alternatives considered |
| 90 | + |
| 91 | +- **Use `0.1.0+5`.** Valid for another iteration of the same beta milestone, |
| 92 | + but rejected because the accumulated compatible feature set now warrants an |
| 93 | + explicit minor beta milestone. |
| 94 | +- **Reset to `0.2.0+1`.** Accepted by iOS for a new base version, but rejected |
| 95 | + because Android requires a greater `versionCode` and PyBLE ships one Flutter |
| 96 | + identity at platform parity. |
| 97 | +- **Override only the build command.** Rejected because About could report an |
| 98 | + overridden package version while PBLE/1 HELLO and the GitHub User-Agent still |
| 99 | + advertise stale compile-time values. |
| 100 | +- **Jump to `1.0.0`.** Rejected because version 1.0 is the first fully qualified |
| 101 | + production release, not a development or TestFlight milestone. |
| 102 | + |
| 103 | +## Related |
| 104 | + |
| 105 | +- [App build and version requirements](../specifications/App/specs.md#9-build-versioning--distribution--bld) |
| 106 | +- [PRD release and versioning](../specifications/prd.md#18-release--versioning) |
| 107 | +- [PyBLE 0.1.0 (4) retained TestFlight handoff](../testing/testflight/0.1.0-build-4.md) |
| 108 | + |
| 109 | +<!-- SPDX-License-Identifier: MIT --> |
0 commit comments