Skip to content

Personal P1-B: HM2 Wellness Engine — goals, workouts, sleep, nutrition, recovery and insights - #46

Merged
baba-dev merged 8 commits into
mainfrom
feat/personal-p1b-wellness-engine
Nov 19, 2026
Merged

baba-dev merged 8 commits into
mainfrom
feat/personal-p1b-wellness-engine

Conversation

@baba-dev

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

Copy link
Copy Markdown
Owner

P1-B — eight-commit Wellness Engine

Stacked on Personal P1-A #44, which remains draft. Deliberately not merged or deployed. This PR should be rebased onto main after P1-A merges and before changing production flags.

Eight commits

  1. Add private, additive adult wellness schema + rollout policy.
  2. Shared verified API wrappers, strict schemas and metrics primitives.
  3. Goal lifecycle (weekly and total), owner-only APIs, HM2 UI.
  4. Completed workout log, exercise/sets, replay-safe per-user submissions.
  5. Manual sleep journal, elapsed duration and private history.
  6. Meals, optional user-entered nutrients, hydration and retry-safe writes.
  7. Recovery check-in and explainable chart/goal aggregates (no medical scoring).
  8. HM2 Today + Progress integration, Personal export/erase, PG17 tests, documentation.

Security / product gates

  • PERSONAL_WELLNESS_ENABLED=false by default. All new wellness routes require verified Better Auth session, user ownership and conservative adult policy. POST uses existing Personal origin verification and fail-closed rate limiter.
  • All rows belong only to global User, never Club; no member health information flows to staff.
  • Free essential fitness logging. No paid entitlement circumvention, no medical records, no HealthKit/Health Connect/native permissions, no medical or clinical AI.
  • No provider credentials, VPS environment changes or billing changes.
  • Export and erase extend P1-A, leaving club records and sign-in intact.

Verification

  • PASS: GitHub Actions run #44372643296: x64 lint/format/typecheck, unit and native service smoke, ARM64 standalone/lean release packaging, PostgreSQL 17 migrations and P1-B privacy/idempotency/export/erase integration.\n- NOT YET VERIFIED: real-device/browser HM2 light/dark QA, age/jurisdiction legal signoff, protected production environment and deployed acceptance.\n\n### Acceptance
    Run x64/ARM64 CI, PG17 schema drift/replay/cross-user/erase checks and real browser HM2 light/dark/multi-device QA. The stacked PR needs a post-P1-A rebase; staged rollout and privacy/age acceptance precede activation.

Known limitations (not represented as shipped)

Completed-session logging only (no offline running timer); simplified strength entry; no full food catalogue; advanced paid analytics and native device synchronization deferred to separate PRs.

See docs/P1B_WELLNESS_ENGINE.md.

@baba-dev
baba-dev force-pushed the feat/personal-p1b-wellness-engine branch from 84f6e3e to bb90cdc Compare November 18, 2026 18:42
Base automatically changed from claude/magical-gauss-tayovm to main November 19, 2026 04:26
@baba-dev
baba-dev force-pushed the feat/personal-p1b-wellness-engine branch from bb90cdc to 5ad1af7 Compare November 19, 2026 04:29
@baba-dev
baba-dev marked this pull request as ready for review November 19, 2026 04:29
@baba-dev
baba-dev merged commit 5780301 into main Nov 19, 2026
3 checks passed
@baba-dev
baba-dev deleted the feat/personal-p1b-wellness-engine branch November 19, 2026 04:31
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