include/reactor/
├── common/ # Core utilities (handles, versions, time, cacheline)
├── graph/ # Dependency graph (CSR format)
├── lockfree/ # Lock-free data structures (rings, MPMC queue)
├── memory/ # Allocators (arena, frame, pool)
├── proto/ # Wire protocol (framing, varint encoding)
├── reactive/ # Runtime system (signals, effects, selectors)
├── trace/ # Instrumentation and binary trace format
├── format/ # Trace archive format (header, chunks, CRC, footer)
├── replay/ # Replay engine (deterministic reconstruction)
├── query/ # Query engine (search, reverse lookup, aggregation)
└── ui/ # Desktop UI (Windows-only, Win32 GUI)
src/
├── runtime.cpp # Reactive runtime implementation
├── test_framework.cpp # Test runner implementation
├── trace_archive.cpp # Trace archive serialization
└── ui/ui_main.cpp # Desktop UI application
tests/unit/ # Unit tests organized by chapter
bench/ # Microbenchmarks
docs/ # Design documents and spec mapping