Repository navigation
Description
Summary
Follow-up from #105. The opt-in --wait-ready wait is in the product; this issue is the remaining provisioning change: give new pickforge-avd instances enough RAM that the 2 GB Play-image watermark storm does not start, and save the first quickboot snapshot only after lowmemorykiller has been quiet.
picklab-avd (the user's designated lab AVD) stays untouched.
Why it did not land with #105
- Host MemAvailable was ~40 GB on the machine that ran Android: first launch of a fresh sideload after a quickboot restore is killed by lowmemorykiller on the 2 GB Play-image AVD #105, so 4 GB would fit there, but that is not a portable default.
createAvddoes not editconfig.ini. Changinghw.ramSizeon an existing AVD invalidates snapshots.- There is no measured trial that 3–4 GB actually stops the Play-image storm. fix(android): diagnose emulator starts distinctly and prove a real Flutter APK #101 trial 4 on 2 GB thrashed for eight minutes; guessing a larger RAM would fix it is not deterministic.
- Boot-until-quiet during
setup android --create-avdis long and can fail. Not a non-destructive default.
Proposed work
- Measure, on a disposable reflink clone, whether
hw.ramSize=3Gor4Gstops the first-launch kill of a fresh sideload after quickboot restore. If it does not, stop here and keep--wait-ready. - Only if (1) is deterministic:
pickforge-lab setup android --create-avdwriteshw.ramSizefor newpickforge-avdinstances, and saves the first snapshot after 30 s of lowmemorykiller quiet. Do not resize existing AVDs. - Document the host RAM floor.
Investigation disposition, 2026-09-05
Stop the automatic RAM and first-snapshot proposal under step 1's conditional gate. Keep the existing opt-in --wait-ready. This closes the proposal as not planned on current evidence; it does not claim that automatic provisioning was implemented or that larger RAM cannot help.
Valid 3072 MiB and 4096 MiB warm-restore trials each passed three fresh sideload observations on the large host. A separate fresh-AVD comparison under an 8 GiB workload cgroup found that both the 2048 MiB control and 3072 MiB trial retained the target app PID. Post-install lowmemorykiller kills were 28 versus 0, but neither killed the target app. This is promising pressure reduction, not proof that larger RAM prevented the reported failure. The 3072 MiB trial still had 154 captured cold kills and recorded 9306 cgroup memory-limit events. No portable host RAM floor is established.
The first fresh 3 GiB attempt failed during preflight because the script requested an uninstalled image ID. It is preserved separately and is not a memory failure. No experiments were rerun during the final audit. No existing AVD was resized, no product setup behavior changed, and no new version was published.
- Measure valid integer-MiB RAM and preserve failed attempts.
- Compare fresh-AVD control and candidate RAM, first launch, PID survival, LMK activity, snapshot restore, quiet polls, and workload memory limits.
- Independently verify all 93 packet checksums, including 81 original files, and inspect raw evidence assertions.
- Confirm no owned emulator, Java, Dart, or ADB runtime remains.
- Apply the conditional stop; retain
--wait-readywithout inventing a portable default or host floor.
Evidence: ~/Projects/Boards/pickforge/0.4-release/published-alpha2/android-provisioning-106/resume-review/REPORT.md and published-alpha2/android-provisioning-parent-verification.json. The stronger read-only-home isolation proof belongs to the main Android pass; these provisioning trials used private clones/homes and do not inherit that claim.
Reconsider only with repeated fresh-AVD controls reproducing and eliminating the target failure, representative host headroom, and bounded setup cleanup evidence. The conditional implementation was not performed and its tests are not claimed as passed.
Activity
feat(android): add opt-in bounded guest readiness