Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 5.29 KB

File metadata and controls

54 lines (44 loc) · 5.29 KB
slug /protocol-analysis/session-index
title Session Index

Session 50 - 2026-03-22 to 2026-03-26

Type: Queue Rotation Multi-Fix (5 days) File: 49_PART47_SESSION_50.md Summary: Unlimited consecutive Queue Rotations working. 6 fixes: s_complete_logged reset, conditional auth/DH backup (first rotation only), rq->snd_id semantics (Main Queue not RQ), CQ E2E cache invalidation, Phase 1b key pipeline, cache timing root cause (invalidate AFTER final key write, not just at start). 1 day lost on Mausi error (wrong bug classification). 4 consecutive rotations verified with PQ crypto. GoChat support. 7 files, 7 lessons (#271-#277).

Session 49 - 2026-03-18 to 2026-03-21

Type: Protocol Implementation (4 days, longest session) File: 48_PART46_SESSION_49.md Summary: Queue Rotation from zero to working. QADD/QKEY/QUSE/QTEST with live server switch, no reboot. 7 QADD format iterations over 2 days uncovered 3 critical undocumented protocol rules (client versions v1-v4, replacedSndQueue=Nothing forbidden, per-contact snd_id). Multi-server: 21 presets, radio-button UI, SEC-07 fingerprint at 4 TLS points. Bug #32 closed. 16 files, 13 lessons (#258-#270).

Session 48 - 2026-03-16 to 2026-03-17

Type: Performance + UX + Infrastructure (16 hours) File: 47_PART45_SESSION_48.md Summary: Most extensive session. Bug #30 closed (subscribe O(NxM) to O(1), QR 8.6x). Bug #31 closed (auto-reconnect). Shared statusbar, splash, Matrix screensaver, lock timer, timezone. 23 files, 4 new modules, 7 lessons (#258-#264).

Session 47 - 2026-03-15 to 2026-03-16

Type: UX Overhaul + Security Fixes File: 46_PART44_SESSION_47.md Summary: Most extensive UX session. 7 bugs closed (#22 standby freeze root cause, #23 LVGL stack overflow, #24 chat restore, #26 PQ NVS ghost cleanup, #29 Unicode). NVS partition 128 KB to 1 MB (128 PQ contacts). QR connection flow redesigned with 16 live status stages and auto-navigation. PQ display in chat header (3 states). Global PQ toggle in Settings. Per-contact PQ toggle attempted and abandoned -- state machine cannot be unilaterally disabled. Future: Queue Rotation. BACKLOG.md introduced. 25 files changed.

Session 46 - 2026-03-11 to 2026-03-12 (Codename MEGABLAST)

Type: Post-Quantum Implementation Session File: 45_PART43_SESSION_46.md Summary: SEC-06 CLOSED. sntrup761 Post-Quantum Key Encapsulation integrated into SimpleX Double Ratchet. First quantum-resistant message received 2026-03-12 at 09:16 CET. SimpleX App confirmed "Quantum Resistant". First known post-quantum double ratchet on dedicated embedded hardware. 6/6 security findings CLOSED. Five encryption layers per message. PQClean sntrup761 as ESP-IDF component, background keygen (1.85s), PSRAM crypto task, PQ state machine with 3 receive cases, wire format byte-identical to Haskell. 6 bugs fixed (2 CRITICAL). Bug #22 discovered (standby freeze). 8 lessons (#243-#250).

Session 45 - 2026-03-10

Type: Security Implementation Session File: 44_PART42_SESSION_45.md Summary: Four Security Findings closed (SEC-01, SEC-02, SEC-04, SEC-05), two CRITICAL. Runtime memory protection: sodium_memzero on 123KB PSRAM cache at 4 call sites, auto-lock screen with 60s timeout. HMAC NVS vault: eFuse BLOCK_KEY1 provisioned automatically on first boot, NVS encrypted. Device-bound HKDF with chip MAC. 5/6 security findings now closed. Only SEC-06 (post-quantum) deferred.

Session 44 - 2026-03-08

Type: Security Architecture Session File: 43_PART41_SESSION_44.md Summary: Complete Hardware Class 1 security architecture designed and documented. 15 files, 3,243 lines, 191 KB. Four progressive security modes (Open/Vault/Fortress/Bunker). HMAC-based NVS encryption chosen. Post-quantum: sntrup761 required (not Kyber). 8 ESP32 vulnerabilities cataloged. Bug #20 demoted to KNOWN. Bug #21 (SD phantom counter) discovered. ESP32-P4 evolution path documented. No firmware changes.

Session 43 - 2026-03-05 to 2026-03-08

Type: Documentation, Security, and UX Session File: 42_PART40_SESSION_43.md Summary: Wiki live at wiki.simplego.dev (Docusaurus 3, full content migration, smp-in-c/ guide). Security log cleanup: all cryptographic material removed from serial output (smp_parser.c, smp_tasks.c, smp_contacts.c). Display name feature: NVS-backed user name replaces hardcoded "ESP32", first-boot prompt, settings editor. Bug #20 discovered: SEND fails after 6+ hours idle (SHOWSTOPPER). Performance: QR 60% faster, handshake 40% faster, boot 30% faster. SimpleX Network Architecture document received from Evgeny Poberezkin, SimpleGo cited as official example.

Session 42 - 2026-03-04 to 2026-03-05

Type: Code Quality Session File: 41_PART39_SESSION_42.md Summary: Pure consolidation. smp_handshake.c debug cleanup (74 lines removed). smp_globals.c dissolved (7 symbols to owning modules). smp_app_run() refactored (530 to 118 lines). License headers standardized (47 files AGPL-3.0). Zero printf in production. No functional changes.

Session 41 - 2026-03-04

Type: Cleanup and Stabilization Session File: 40_PART38_SESSION_41.md Summary: Pre-GitHub cleanup. Security cleanup (debug crypto removed, CWE-14). Hardware AES fix (software fallback). Screen lifecycle fix (ephemeral pattern). Dangling pointer protection. Comment cleanup (9 files). GitHub security features enabled.