export const MEMIND_HEALTH_ENV = 'MEMIND_HEALTH_ENABLED'; export const HEALTH_ASSISTANT_SKILL_NAME = 'health-assistant'; export const HEALTH_CATEGORY_CODE = 'health'; export const HEALTH_PUBLISH_POLICY = 'password_required'; /** Architecture phases P0–P4 (see docs/memind-health-architecture.md §13). No P5 in spec. */ export const HEALTH_IMPLEMENTATION_PHASES = Object.freeze({ P0: 'entry_capture_timeline', P1: 'baseline_event_engine', P2: 'devices_notifications', P3: 'medical_depth', P4: 'authorized_sharing', }); export function isMemindHealthEnabled(env = process.env) { return /^(1|true|yes)$/i.test(String(env?.[MEMIND_HEALTH_ENV] ?? '').trim()); }