Skip to content

Personal P1-C — Android Health Connect read-only native companion & private fitness sync - #48

Merged
baba-dev merged 8 commits into
mainfrom
feat/personal-p1c-android-health-connect
Nov 19, 2026
Merged

baba-dev merged 8 commits into
mainfrom
feat/personal-p1c-android-health-connect

Conversation

@baba-dev

@baba-dev baba-dev commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Personal P1-C — eight-commit Android Health Connect implementation

Builds a native Android companion and a separate, fail-closed Personal-only sync boundary while preserving existing Business and P1-A/B capabilities.

Eight commits

  1. Add additive PostgreSQL 17 pairing/connection/batch/source schema; independent default-off flag.
  2. Scaffold Android companion, official read permissions, privacy rationale and Play-facing manifest.
  3. 256-bit one-time pairing, 30-day revocable device capability, Android Keystore AES-GCM and authenticated native endpoint.
  4. Granular Health Connect permission controls with separate optional hydration.
  5. Step-aggregate and paginated fitness import, strict server-side validation, idempotent source-aware ingestion.
  6. Changes API with encrypted local checkpoints, typed deletion mapping, retry/backoff and bounded resnapshot.
  7. Personal Connected Sources UI, revocation/purge, provenance-separated analytics, export/erase.
  8. CI for native Android, x64/ARM64 and PG17 integration; release-policy/device acceptance runbook.

Hard privacy boundaries

  • No health data is sent to clubs, insurers, public profiles, ads or AI.
  • No medical records, heart rate, glucose, prescriptions, Health Connect write permissions, extended history, or background read.
  • Web pairing requires a verified adult Personal account; device APIs require an unexpired scoped capability. Network responses are private/no-store.
  • Imported data does not silently overwrite manual entries or inflate manual goals.
  • Both PERSONAL_WELLNESS_ENABLED and PERSONAL_HEALTH_CONNECT_ENABLED required; connector flag is false by default. No production flags, VPS secrets, signing or Play release changed.

Acceptance / known gates

  • Native Android Gradle build/test green.
  • x64 lint/format/typecheck/unit/build green.
  • ARM64 standalone/lean build green.
  • PostgreSQL 17 migration drift, cross-user, pairing replay, tombstone and export/erase green.
  • Real Android physical-device permission/revocation, source reconciliation and Play policy review.
  • Personal P1-B.1 adult/privacy release readiness before activation.

See docs/P1C_HEALTH_CONNECT.md for operational and deferred scope. CI green on rebased eight-commit PR. Native connector remains off by default; do not enable until device and Play policy acceptance.

Final CI after rebase

@baba-dev
baba-dev force-pushed the feat/personal-p1c-android-health-connect branch from 45e6387 to a094d8f Compare November 19, 2026 07:53
@baba-dev
baba-dev force-pushed the feat/personal-p1c-android-health-connect branch from a094d8f to fef3b67 Compare November 19, 2026 07:58
@baba-dev
baba-dev marked this pull request as ready for review November 19, 2026 08:01
@baba-dev
baba-dev merged commit 1d5b622 into main Nov 19, 2026
4 checks passed
@baba-dev
baba-dev deleted the feat/personal-p1c-android-health-connect branch November 19, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant