Quality Gates

These gates are the evidence checklist for AI-assisted Android work. Passing them matters more than a polished explanation.

Required Gates

GateRequired Evidence
BuildassembleDebug passes and release artifact task is attempted
Unit testsViewModel, repository, parser, and policy logic tests pass
Compose UIAt least one screen-level UI test or documented physical-device smoke path
RoomSchema export is enabled and migration tests cover version bumps
WorkManagerWorker unit/integration test and one enqueue observation path
PermissionsGranted, denied, and permanent denial states are tested
Play policyRestricted permissions have a policy source, declaration plan, and fallback
Budget deviceSmoke test on 2-4GB RAM physical device or constrained emulator
ReleaseSigned or signable AAB/APK built; debug testOnly install is not accepted as release evidence
SecretsNo keystore, key password, upload key, API secret, or Play credential is committed

Definition Of Done Note

Every Android implementation handoff should include:

Build: <command and result>
Tests: <commands and result>
Release artifact: <path or blocker>
Device smoke: <device, Android version, result>
Permissions: <grant/deny/permanent-deny result>
Policy: <restricted permissions and declaration status>
Known gaps: <what was not tested>

Budget-Device Minimum

For the first app in this stack, test at least:

ScenarioWhy
Cold start after force stopStartup and database initialization issues
Scroll a long listCompose list keys, recomposition, memory pressure, jank
Low or no networkOffline-first correctness and fallback copy
Low storageRoom writes, exports, and backup failure handling
Battery saverWorkManager and background expectations
Permission denialPrivacy trust and Play review behavior

What Does Not Count

  • A screenshot with no command output.
  • A debug run from Android Studio as release proof.
  • A unit test that mocks away the code path being changed.
  • A policy claim without the current Play policy URL.
  • A Room version bump without migration proof.
  • A WorkManager job that was enqueued but never observed.