SIAR: Master Specification Execution Order & Dependency Matrix
Document Purpose: Authoritative, dependency-ordered execution roadmap for all 60 SIAR system specifications (33 Core Architecture Specifications + 27 UI/UX Specifications, totaling 12,893 numbered sections).
Source Directory:sys-arch/
Complements:ROADMAP.md(priority tracker) andSYS_ARCH_IMPLEMENTATION_STATUS_AND_REMAINING_SECTIONS.md.
1. Executive Summary & Ordering Principles
SIAR cannot be written in strictly numerical order (01 → 33 followed by ui-ux-01 → 27). Doing so breaks fundamental architectural dependencies:
- Inverted Security Dependency: Spec 28 (E2EE Key Management & Privacy) encrypts data carried by transports and storage; writing strictly
01 → 33would delay cryptographic security until after building FFI (19), embedded Linux (20), and plugin sandboxes (22,24). - Inverted UI Dependency: Spec
ui-ux-22(Design System Tokens & Typography) defines the styling tokens that every view depends on; writingui-ux-01 → 27sequentially would build complex views like the timeline (05) and calls (07) before styling tokens even exist. - Joint Vertical Slices: Complex subsystems (e.g., QR pairing, notifications, search, backup, calls) require that the backend core spec and frontend UI spec be implemented together to ensure end-to-end functionality.
The 7-Milestone Flowchart
┌──────────────────────────────────────────────────────────────────────────────────┐
│ MILESTONE 1: TIER 0 — HEADLESS CORE ENGINE (Specs 01 ➔ 09) │
│ Sequential: Envelopes ➔ Identity ➔ Routing ➔ Outbox ➔ Blobs ➔ DTN ➔ Recovery │
│ Status: Spec 01 Done (100%), Spec 02 Active (88% §170–§179 done), Specs 03–09 Next│
└──────────────────────────────────────┬───────────────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────────────────────────────┐
│ MILESTONE 2: TIER 1 — SECURITY & KEY MANAGEMENT BACKBONE (Spec 28) │
│ Double Ratchet, forward secrecy, MLS group crypto, key revocation envelopes │
└──────────────────────────────────────┬───────────────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────────────────────────────┐
│ MILESTONE 3: TIER 2 — UI DESIGN FOUNDATION & APP SHELLS │
│ Written Together: Tokens (ui-ux-22) + Responsive Layout (23) + App Shells (02/03)│
│ + First-Run Wizard (25) + Security Center (ui-ux-15 finish §195–§221) │
└──────────────────────────────────────┬───────────────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────────────────────────────┐
│ MILESTONE 4: TIER 2 — CORE CHAT & SOCIAL GRAPH UI │
│ Written Together: Inbox (04) + Timeline (05) + Composer (06) + Contacts (08) │
│ + Groups (09) + File Transfers (10) + Degraded States (24) + Virtualization (26) │
└──────────────────────────────────────┬───────────────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────────────────────────────┐
│ MILESTONE 5: TIER 2 — JOINT FEATURE SLICES (Core Backend + UI Together) │
│ • QR/NFC Pairing (15 + ui-ux-12) • Realtime Calls (29/25/26 + ui-ux-07) │
│ • Presence & Receipts (30 + ui-ux-14) • Local Search & FTS (32 + ui-ux-11) │
│ • Push Notifications (31 + ui-ux-13) • Backup & Migration (33 + ui-ux-16) │
│ • Emergency SOS (17 + ui-ux-17) • Network Diagnostics (18 + ui-ux-20) │
│ • Settings & Data Controls (ui-ux-18) │
└──────────────────────────────────────┬───────────────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────────────────────────────┐
│ MILESTONE 6: TIER 3 — TRANSPORTS, DAEMONS & PLATFORM INFRASTRUCTURE │
│ Relays (11) + Multipath (12) + Battery (13) + Proximity BLE/Wi-Fi Direct (14) │
│ + Headless Daemon (16) + Embedded Linux (20) + C-ABI (19) + Android Build (27) │
└──────────────────────────────────────┬───────────────────────────────────────────┘
▼
┌──────────────────────────────────────────────────────────────────────────────────┐
│ MILESTONE 7: TIER 4 — EXTENSIBILITY, ECOSYSTEM & QUALITY GATES (Final) │
│ Plugin Host (24 + ui-ux-19) + WASM (22) + Extensions (21) + Interoperability (23)│
│ + Accessibility (ui-ux-21) + Fuzzing Test Suite (10) + Release Quality Gates (27)│
└──────────────────────────────────────────────────────────────────────────────────┘
2. Milestone 1: Headless Core Engine (Tier 0 — Sequential 01 → 09)
Execution Strategy: Implemented strictly sequentially. These 9 foundational crates form the underlying communications and persistence engine. Each spec directly relies on the prior spec's types and contracts.
| Step | Spec Document | Sections | Coverage / Status | Primary Crates | Core Focus |
|---|---|---|---|---|---|
| 1.1 | 01-protocol-extension-system-architecture.md | 108 | 108/108 (100%) | siar-protocol-ext, siar-protocol | Envelope framing, version negotiation, capability headers |
| 1.2 | 02-multi-device-identity-architecture.md | 204 | 204/204 (100%) | siar-identity-multidevice, siar-crypto | Ed25519 root key, device certs, revocation, algorithm agility (§190–§204 complete) |
| 1.3 | 03-transport-routing-policy-engine-architecture.md | 200 | 200/200 (100%) | siar-routing-policy, siar-connectivity | SPEC COMPLETE: 19 rounds complete, 263/263 tests passing |
| 1.4 | 04-offline-event-log-architecture.md | 95 | 10/95 (11%) | siar-event-log, siar-storage | Crash-resilient transactional outbox, append-only log |
| 1.5 | 05-robust-file-blob-subsystem-architecture.md | 210 | 23/210 (11%) | siar-blob-manifest, siar-storage | BLAKE3 chunking, deduplication, resumable blob transfers |
| 1.6 | 06-dtn-store-carry-forward-architecture.md | 192 | 50/192 (26%) | siar-dtn-bundle, siar-dtn | Delay-tolerant bundle store, epidemic forwarding, anti-entropy |
| 1.7 | 07-capability-negotiation-architecture.md | 164 | 19/164 (12%) | siar-capability, siar-protocol | Dynamic link capability exchange, transport handoffs |
| 1.8 | 08-resource-limits-backpressure-architecture.md | 193 | 56/193 (29%) | siar-resource-limits | Token-bucket rate limiting, buffer caps, DoS defense |
| 1.9 | 09-crash-recovery-architecture.md | 186 | 15/186 (8%) | siar-crash-recovery, siar-storage | WAL verification, panic isolation, corrupted state repair |
3. Milestone 2: Security & Key Management Backbone (Tier 1)
Execution Strategy: Before expanding user interfaces or high-level network services, the End-to-End Encryption (E2EE) and key management invariants are closed. Transports and storage built in Milestone 1 operate in zero-knowledge mode over ciphertext payloads defined here.
| Spec Document | Sections | Coverage / Status | Primary Crates | Core Focus |
|---|---|---|---|---|
28-production-security-e2ee-key-management-privacy-architecture.md | 127 | 46/127 (36%) | siar-crypto, siar-crypto-mls | Double Ratchet session ratchets, MLS group key agreements, safety numbers, key storage abstractions, privacy boundaries |
4. Milestone 3: UI Design Foundation & App Shells (Written Together)
Execution Strategy: Frontend specifications cannot be built in numerical sequence (
ui-ux-01→27). This milestone establishes the visual foundation, cross-platform layouts, desktop/mobile app shells, and identity management UI together.
| Spec Document | Sections | Focus / Responsibility | Target Applications |
|---|---|---|---|
ui-ux-22-design-system-tokens-typography-icons-motion-architecture.md | 253 | Design tokens, color palette, typography scales, spacing, icon sets, transition physics | Shared CSS / Dioxus tokens |
ui-ux-01-product-foundation-cross-platform-interaction-architecture.md | 83 | Core interaction models, keyboard shortcuts, pointer/touch parity, accessibility foundations | Cross-platform |
ui-ux-23-responsive-adaptive-desktop-tablet-foldable-phone-layout-architecture.md | 223 | Breakpoint grid (compact, medium, expanded), adaptive sidebars, foldable hinge posture | Layout engines |
ui-ux-02-desktop-dioxus-app-shell-navigation-window-architecture.md | 227 | Desktop Dioxus application window, system tray, titlebar, multi-windowing, navigation rail | apps/desktop |
ui-ux-03-android-jetpack-compose-app-shell-navigation-lifecycle-architecture.md | 217 | Android Compose / Dioxus mobile shell, edge-to-edge system bars, predictive back navigation | apps/android |
ui-ux-25-onboarding-first-run-permission-education-architecture.md | 209 | First-run setup, cryptographic account generation wizard, emergency identity backup reminder | Client apps |
ui-ux-15-security-center-devices-keys-recovery-architecture.md | 221 | 184/221 (83%) Done — Complete remaining sections §195–§221: key recovery, device revocation UX | crates/siar-ui-state |
5. Milestone 4: Core Chat & Social Graph UI (Written Together)
Execution Strategy: Implemented as a coherent frontend package on top of the Milestone 1 engine and Milestone 3 shells. Bridges
siar-ui-statewith the user interface.
| Spec Document | Sections | Focus / Responsibility | Target Crates / Apps |
|---|---|---|---|
ui-ux-04-conversation-list-inbox-architecture.md | 213 | Conversation inbox, unread counts, pinned chats, search filter headers, swipe actions | siar-ui-state |
ui-ux-05-conversation-message-timeline-architecture.md | 254 | Bubble timeline, delivery status icons (sending, sent, delivered, read), reply threads | siar-ui-state |
ui-ux-06-message-composer-attachments-voice-notes-drafts-architecture.md | 309 | Text area, markdown formatting, voice note recording waveform, draft persistence | siar-ui-state |
ui-ux-08-contacts-requests-verification-identity-architecture.md | 227 | Contact directory, contact cards, Safety Number QR comparison, block/unblock lists | siar-ui-state |
ui-ux-09-groups-membership-roles-architecture.md | 224 | MLS group info, member list, permission roles (Admin, Member, Read-Only), join links | siar-ui-state |
ui-ux-10-files-media-gallery-transfer-architecture.md | 161 | In-chat media viewer, transfer progress bars, auto-download controls, media grid | siar-ui-state |
ui-ux-24-error-loading-empty-offline-degraded-state-architecture.md | 205 | Offline banners, store-and-forward queue badges, reconnect retry toasts, empty placeholders | Client apps |
ui-ux-26-performance-virtualization-large-data-ui-architecture.md | 276 | Virtual windowing for 100,000+ message timelines, image memory caching, 60fps scrolling | Client apps |
6. Milestone 5: Joint Feature Slices (Backend Core + UI Written Together)
Execution Strategy: Specialized features implemented end-to-end. Each row represents a vertical slice: the backend core spec and its UI counterpart are coded and verified in the same development cycle.
| Feature Area | Backend Architecture Spec | Frontend UI / UX Architecture Spec | Combined Scope & Description |
|---|---|---|---|
| 1. QR & NFC Device Linking | sys-arch/15 (176 §) | sys-arch/ui-ux-12 (237 §) | Out-of-band device pairing, ephemeral SAS handshake, animated QR codes, NFC tap exchange |
| 2. Ephemeral Presence & Typing | sys-arch/30 (269 §) | sys-arch/ui-ux-14 (197 §) | Typing indicators, ephemeral TTL status, read receipts, privacy visibility toggle |
| 3. Push & Background Lifecycle | sys-arch/31 (308 §) | sys-arch/ui-ux-13 (215 §) | UnifiedPush/FCM token manager, lockscreen banners, background wakeups, call heads-up UI |
| 4. Realtime Audio/Video Calling | sys-arch/29 (275 §)sys-arch/25 (213 §)sys-arch/26 (220 §) | sys-arch/ui-ux-07 (235 §) | Full media subsystem: SRTP/QUIC session protocol, Android MediaCodec zero-copy surface, pure-Rust audio DSP (AEC/AGC/Opus), and in-call controls UI |
| 5. Local Search & Retrieval | sys-arch/32 (242 §) | sys-arch/ui-ux-11 (148 §) | Privacy-preserving local full-text search (Tantivy/FTS), keyword highlighting, search filter UI |
| 6. Encrypted Backup & Migration | sys-arch/33 (280 §) | sys-arch/ui-ux-16 (223 §) | Argon2id KDF passphrase encryption, streaming tarball import/export, cloudless device transfer wizard |
| 7. Emergency SOS & Mesh Mode | sys-arch/17 (188 §) | sys-arch/ui-ux-17 (240 §) | Priority classes (P0 SOS preemption), broadcast beaconing, high-contrast disaster mode UI |
| 8. Diagnostics & Path Tracing | sys-arch/18 (206 §) | sys-arch/ui-ux-20 (225 §) | RTT latency tracking, hop-by-hop mesh graph visualization, developer log inspection panel |
| 9. App Settings & Privacy UI | (Covered by core crates) | sys-arch/ui-ux-18 (219 §) | Granular settings: data saver mode, auto-download rules, blocked contacts, notification priority |
7. Milestone 6: Transports, Daemons & Hardware Infrastructure (Tier 3)
Execution Strategy: Broadens connectivity beyond standard internet IP/QUIC into direct ad-hoc peer-to-peer radio protocols, headless relay infrastructure, and embedded system builds.
| Spec Document | Sections | Focus / Responsibility | Target Components |
|---|---|---|---|
11-relay-self-hosted-infrastructure-architecture.md | 194 | Self-hosted encrypted relay servers, NAT hole-punching fallback | apps/emergency-node |
12-multipath-networking-architecture(1).md | 178 | Concurrent packet striping across Wi-Fi and Cellular, seamless interface migration | siar-connectivity |
13-battery-aware-scheduling-architecture.md | 145 | Battery state monitoring, scan duty cycle throttling, low-power mesh maintenance | siar-connectivity |
14-proximity-abstraction-architecture.md | 131 | Proximity hardware abstraction: BLE GATT server/client, Wi-Fi Direct, Wi-Fi Aware | siar-transport-ble, siar-transport-wifi-direct |
16-daemon-headless-runtime-architecture.md | 211 | Headless Unix daemon, systemd socket activation, local Unix domain socket IPC | apps/emergency-node |
20-embedded-linux-node-architecture.md | 230 | Minimal footprint OpenWrt, Raspberry Pi, solar-powered field station builds | apps/emergency-node |
19-c-abi-ffi-architecture.md | 170 | Memory-safe C-ABI exports, UniFFI bridge generation for Android Kotlin / iOS Swift | crates/siar-ffi |
27-rust-driven-android-native-build-packaging-automation.md | 279 | Hermetic Android native compilation, automated jniLibs staging, cargo xtask build pipelines | apps/android |
8. Milestone 7: Extensibility, Ecosystem & Quality Gates (Tier 4 — Final)
Execution Strategy: Third-party developer extensions, WebAssembly sandboxing, external chat bridges, and automated release quality gates. Intentionally reserved for the final phase to keep the core codebase lean and focused.
| Component | Backend / Quality Spec | Frontend UI Spec | Scope / Description |
|---|---|---|---|
| Plugin Module Ecosystem | sys-arch/24 (305 §) | sys-arch/ui-ux-19 (266 §) | Wasmtime sandbox host, capability-based permission prompts, plugin marketplace UI |
| WASM Targets | sys-arch/22 (254 §) | — | Browser WASM build targets, WebCrypto integration, web worker concurrency |
| Third-Party Extensions | sys-arch/21 (248 §) | — | Publisher manifest signatures, sandboxed extension execution |
| External Interoperability | sys-arch/23 (255 §) | — | Conformance test suites for Matrix, Bifrost, and RFC protocol bridges |
| Accessibility (A11y) | — | sys-arch/ui-ux-21 (294 §) | Screen reader semantic labeling, high-contrast modes, dynamic text reflow |
| Protocol Fuzzing Suite | sys-arch/10 (207 §) | — | AFL / cargo-fuzz harness, property-based network partition simulation |
| UI Release Quality Gates | — | sys-arch/ui-ux-27 (274 §) | Automated screenshot regression diffs, cross-platform interaction testing gates |
9. Master Specification Inventory (All 60 Documents)
Core Architecture Specs (01–33) — 6,863 Sections
| Spec | Title | Sections | Status | Milestone |
|---|---|---|---|---|
| 01 | Protocol Extension System | 108 | 108/108 (100%) | Milestone 1 |
| 02 | Multi-Device Identity | 204 | 204/204 (100%) | Milestone 1 |
| 03 | Transport & Routing Policy | 200 | 200/200 (100%) | Milestone 1 |
| 04 | Offline Event Log | 95 | 10/95 (11%) | Milestone 1 |
| 05 | Robust File Blob Subsystem | 210 | 23/210 (11%) | Milestone 1 |
| 06 | DTN Store-Carry-Forward | 192 | 50/192 (26%) | Milestone 1 |
| 07 | Capability Negotiation | 164 | 19/164 (12%) | Milestone 1 |
| 08 | Resource Limits & Backpressure | 193 | 56/193 (29%) | Milestone 1 |
| 09 | Crash Recovery | 186 | 15/186 (8%) | Milestone 1 |
| 10 | Fuzzing Protocol Test Suite | 207 | 0/207 (0%) | Milestone 7 |
| 11 | Relay Self-Hosted Infrastructure | 194 | 0/194 (0%) | Milestone 6 |
| 12 | Multipath Networking | 178 | 0/178 (0%) | Milestone 6 |
| 13 | Battery-Aware Scheduling | 145 | 0/145 (0%) | Milestone 6 |
| 14 | Proximity Abstraction | 131 | 0/131 (0%) | Milestone 6 |
| 15 | QR/NFC Bootstrap Pairing | 176 | 0/176 (0%) | Milestone 5 |
| 16 | Daemon Headless Runtime | 211 | 0/211 (0%) | Milestone 6 |
| 17 | Emergency Priority Classes | 188 | 0/188 (0%) | Milestone 5 |
| 18 | Network Diagnostics | 206 | 0/206 (0%) | Milestone 5 |
| 19 | C-ABI FFI Architecture | 170 | 0/170 (0%) | Milestone 6 |
| 20 | Embedded Linux Node | 230 | 0/230 (0%) | Milestone 6 |
| 21 | Third-Party Protocol Extensions | 248 | 0/248 (0%) | Milestone 7 |
| 22 | WASM-Compatible Components | 254 | 0/254 (0%) | Milestone 7 |
| 23 | External Interoperability Suite | 255 | 0/255 (0%) | Milestone 7 |
| 24 | Plugin Module Ecosystem | 305 | 0/305 (0%) | Milestone 7 |
| 25 | Android Zero-Copy Media | 213 | 0/213 (0%) | Milestone 5 |
| 26 | Rust-First Audio DSP | 220 | 0/220 (0%) | Milestone 5 |
| 27 | Android Native Packaging | 279 | 0/279 (0%) | Milestone 6 |
| 28 | Production Security & E2EE | 127 | 46/127 (36%) | Milestone 2 |
| 29 | Realtime Calls Media Session | 275 | 0/275 (0%) | Milestone 5 |
| 30 | Presence, Typing & Receipts | 269 | 0/269 (0%) | Milestone 5 |
| 31 | Notifications & Push Lifecycle | 308 | 0/308 (0%) | Milestone 5 |
| 32 | Search Indexing & Privacy | 242 | 0/242 (0%) | Milestone 5 |
| 33 | Backup, Restore & Archival | 280 | 0/280 (0%) | Milestone 5 |
UI/UX Specs (ui-ux-01–27) — 6,030 Sections
| Spec | Title | Sections | Status | Milestone |
|---|---|---|---|---|
| 01 | Product Foundation Interaction | 83 | 0/83 (0%) | Milestone 3 |
| 02 | Desktop Dioxus App Shell | 227 | 0/227 (0%) | Milestone 3 |
| 03 | Android Compose App Shell | 217 | 0/217 (0%) | Milestone 3 |
| 04 | Conversation List & Inbox | 213 | 0/213 (0%) | Milestone 4 |
| 05 | Message Timeline | 254 | 0/254 (0%) | Milestone 4 |
| 06 | Message Composer & Drafts | 309 | 0/309 (0%) | Milestone 4 |
| 07 | Realtime Calls UI | 235 | 0/235 (0%) | Milestone 5 |
| 08 | Contacts & Verification | 227 | 0/227 (0%) | Milestone 4 |
| 09 | Groups & Membership Roles | 224 | 0/224 (0%) | Milestone 4 |
| 10 | Files & Media Gallery | 161 | 0/161 (0%) | Milestone 4 |
| 11 | Search & Knowledge Retrieval | 148 | 0/148 (0%) | Milestone 5 |
| 12 | Nearby QR/NFC Pairing | 237 | 0/237 (0%) | Milestone 5 |
| 13 | Background Notifications UI | 215 | 0/215 (0%) | Milestone 5 |
| 14 | Presence & Typing Indicators | 197 | 0/197 (0%) | Milestone 5 |
| 15 | Security Center UI | 221 | 184/221 (83%) | Milestone 3 |
| 16 | Backup, Restore & Migration UI | 223 | 0/223 (0%) | Milestone 5 |
| 17 | Emergency SOS Mode UI | 240 | 0/240 (0%) | Milestone 5 |
| 18 | Settings & Privacy Controls | 219 | 0/219 (0%) | Milestone 5 |
| 19 | Plugin Ecosystem UI | 266 | 0/266 (0%) | Milestone 7 |
| 20 | Diagnostics & Developer UI | 225 | 0/225 (0%) | Milestone 5 |
| 21 | Accessibility & Inclusion | 294 | 0/294 (0%) | Milestone 7 |
| 22 | Design System Tokens & Theme | 253 | 0/253 (0%) | Milestone 3 |
| 23 | Responsive Adaptive Layout | 223 | 0/223 (0%) | Milestone 3 |
| 24 | Error, Degraded & Empty States | 205 | 0/205 (0%) | Milestone 4 |
| 25 | Onboarding & Key Wizard | 209 | 0/209 (0%) | Milestone 3 |
| 26 | Virtualized Large Data UI | 276 | 0/276 (0%) | Milestone 4 |
| 27 | UI Testing & Quality Gates | 274 | 0/274 (0%) | Milestone 7 |
10. Current Position & Immediate Execution Steps
Current Milestone: MILESTONE 1 (Tier 0: Headless Core Engine)
Current Document : Spec 04 (04-offline-event-log-architecture.md)
Target Crate : crates/siar-event-log
Current Status : 10 / 95 Sections (11% Reconciled)
- Completed Batches:
- Spec 01: 108/108 (100%) — complete
- Spec 02: 204/204 (100%) — complete
- Spec 03: 200/200 (100%) — SPEC COMPLETE (19 rounds complete, 263/263 tests passing)
- Next Step: Proceed to Step 1.4: Spec 04 (
04-offline-event-log-architecture.md):- Append-only transactional outbox & log engine (§11+)