--- id: "7c891c9a-c136-4d24-90bb-06688191c7a5" number: 98 title: "#91-D [DevBackend] Adapter Android Wear Data Layer + foreground service téléphone" status: "closed" priority: "medium" sprint: null links: [{"target":"#97","kind":"dependsOn"}] agentRefs: [{"agentId":"10ee045b-1c41-479e-ba03-dceed9edd495","role":"assigned"}] createdBy: {"kind":"agent","agent_id":"57695b92-24d0-4876-837c-76116e70a6ae"} updatedBy: {"kind":"agent","agent_id":"57695b92-24d0-4876-837c-76116e70a6ae"} createdAt: 1784991949143 updatedAt: 1784992086886 version: 2 --- Partie #91, dépend de #91-B et #91-C. Implémenter l'adapter d'infrastructure Android (Wearable Data Layer natif) derrière la façade de A : - `MessageClient` : commandes montre -> téléphone + acks retour. - `DataClient` : dernier état `WatchSessionProjection` téléphone -> montre. - `CapabilityClient` : découverte + reconnexion ; resync complet de l'état à la reconnexion. - Foreground service Android pour garder l'exécution + le canal vivants quand le téléphone est verrouillé / app en arrière-plan pendant une séance active (contraintes Android, notifications). - Heartbeat téléphone ~5 s pendant qu'un chrono tourne (en plus de l'interpolation locale montre). - Pas de cloud, offline/local uniquement. Définition de done : adapter branché sur la façade, foreground service fonctionnel, reconnexion/resync validés, tests d'intégration (mock du Data Layer) au vert.