|
| 1 | +--- |
| 2 | +title: Logos Core Integration — Phase 2 |
| 3 | +tags: |
| 4 | + - messaging-milestone |
| 5 | +date: 2026-01-19 |
| 6 | +--- |
| 7 | + |
| 8 | +# Logos Core Integration — Phase 2 |
| 9 | + |
| 10 | +**Estimated date of completion**: Testnet v0.2 |
| 11 | + |
| 12 | +**Resources Required for 2026H1**: |
| 13 | +- 1 dev for 4 weeks from Chat Team |
| 14 | +- 1 dev for 2 weeks from Delivery Team |
| 15 | + |
| 16 | +In v0.1, the Chat module embeds Logos Delivery directly via Nimble. This milestone transitions to an architecture where the Chat module uses the locally available Delivery module through Logos Core's inter-module communication. |
| 17 | + |
| 18 | +As new capabilities land in Logos Chat and Logos Delivery (group chats, Reliable Channel API), they are exposed through the corresponding Logos Core modules. |
| 19 | + |
| 20 | +A unified Logos Core demo application is built in QML, supporting 1:1 chats, group chats, and identity. This replaces the v0.1 demo app (which used Qt widgets). |
| 21 | + |
| 22 | +Integration tests are defined by the Messaging team and implemented by IFT-TS. |
| 23 | + |
| 24 | +## FURPS |
| 25 | + |
| 26 | +- [Logos Chat](/messaging/furps/application/chat_sdk.md): S3 (library can be used via C-Bindings) |
| 27 | +- [Group Chat](/messaging/furps/application/group_chat.md): S1 (group conversations from C-bindings in Logos Core) |
| 28 | + |
| 29 | +## Risks |
| 30 | + |
| 31 | +| Risk | (Accept, Own, Mitigation) | |
| 32 | +| ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 33 | +| Inter-module communication | Logos Core inter-module communication mechanism may not be mature enough. Module should be implemented in the simplest way to serve testing and demo purposes, but be able to change integration later. | |
| 34 | +| Multiple async runtimes | If de-MLS (Rust/Tokio) runs alongside Logos Delivery (Nim/Chronos) in the same process, runtime conflicts may arise. Needs investigation. | |
| 35 | +| External access to Logos Core is not available | Integration tests require a way to access Logos Core modules from outside. Current agreement is to enable Logos Core exposing modules API to REST (and WebSockets for events). | |
| 36 | + |
| 37 | +## Deliverables |
| 38 | + |
| 39 | +### Integrate Chat and Delivery Logos Core modules |
| 40 | + |
| 41 | +**Owner**: Chat Team |
| 42 | + |
| 43 | +The Chat module communicates with the Delivery module through Logos Core rather than embedding Logos Delivery directly. This enables: |
| 44 | +- Remove direct integration of Logos Delivery into Logos Chat, lightening the Chat implementation. |
| 45 | +- Shared Delivery instance across all modules in Logos Core |
| 46 | +- Proper separation of concerns |
| 47 | + |
| 48 | +Chat should be prepared to use Messaging API first, and switch to Reliable Channel API when it's ready. |
| 49 | + |
| 50 | +### [Add Group Chats API to Logos Core Chat module](https://github.com/logos-messaging/pm/issues/375) |
| 51 | + |
| 52 | +**Owner**: Chat Team |
| 53 | + |
| 54 | +**Feature**: [Group Chat](/messaging/furps/application/group_chat.md) |
| 55 | + |
| 56 | +**FURPS**: |
| 57 | +- S1. Developers can create group conversations from C-bindings, in Logos Core framework. |
| 58 | + |
| 59 | +The Chat module API is extended to expose group chat functionality (create group, send group message, manage members) and identity (manage installations). |
| 60 | + |
| 61 | +### Add Reliable Channel API to Logos Core Delivery module |
| 62 | + |
| 63 | +**Owner**: Delivery Team |
| 64 | + |
| 65 | +When the [Reliable Channel API — Developer Preview](2025-package-sds-in-reliable-channel-api.md) is ready, the Delivery Logos Core module is updated to expose it alongside the Messaging API. Chat module switches to using Reliable Channel API for message delivery. |
| 66 | + |
| 67 | +### POC: Delivery module uses Discovery module for peer discovery |
| 68 | + |
| 69 | +**Owner**: Delivery Team |
| 70 | + |
| 71 | +Proof of concept: the Delivery module uses the Discovery Logos Core module (from AnonComms) as an additional source of peer discovery. In this stage, Discovery module is used alongside existing discovery (discv5) — the Delivery module queries the Discovery module for peers and merges them with peers from its own discovery. discv5 can be disabled once this integration is validated. |
| 72 | + |
| 73 | +This is a POC — required for v0.3, but only included in v0.2 if a clean architecture is achievable. If integration would require a hacky shim that gets thrown away, it is deferred to v0.3. |
| 74 | + |
| 75 | +### Build Logos Core demo app in QML |
| 76 | + |
| 77 | +**Owner**: Chat Team |
| 78 | + |
| 79 | +A single Logos Core application implemented in QML (replacing the v0.1 Qt widgets demo): |
| 80 | +- Supports 1:1 chats and group chats |
| 81 | +- Supports identity (user with multiple installations, add/remove devices) |
| 82 | +- Uses the Chat and Delivery Logos Core modules through their APIs |
| 83 | + |
| 84 | +### Define integration tests for Messaging modules |
| 85 | + |
| 86 | +**Owner**: Messaging Team (definition) + IFT-TS (implementation) |
| 87 | + |
| 88 | +The Messaging team defines test scenarios and expected behavior. IFT-TS implements and maintains the test suite. |
| 89 | + |
| 90 | +End-to-end tests that verify: |
| 91 | +- Chat module can send/receive messages through Delivery module via Logos Core |
| 92 | +- Group chat creation, messaging, and membership management |
| 93 | +- Module lifecycle (start, stop, restart) works correctly |
| 94 | +- Error propagation between modules |
0 commit comments