wifi-densepose/v2
ruv 41f28ae85e feat(adr-110): surface NodeSyncSnapshot in WebSocket sensing_update JSON
Iter 23 — converts the iter 1-21 firmware-side mesh substrate from
"works internally" to "visible to UI clients". WebSocket sensing_update
broadcasts now carry a per-node optional `sync` object exposing the
mesh state the iter 15-22 wire and storage capture:

  {
    "type": "sensing_update",
    ...
    "nodes": [
      {
        "node_id": 9,
        ...
        "sync": {
          "offset_us":      1163565,    // §A0.10's measured 1.16 s
          "is_leader":      false,
          "is_valid":       true,
          "smoothed":       true,       // EMA seeded
          "sequence":       20,         // §A0.12 pairing key
          "csi_fps_ema":    10.0,       // iter 18 measured rate
          "csi_fps_samples": 47         // ≥5 means trust csi_fps_ema
        }
      }
    ],
    ...
  }

`sync` is `Option<NodeSyncSnapshot>` with `#[serde(skip_serializing_if =
"Option::is_none")]` so non-mesh paths (multi-BSSID scan / synthetic RSSI
/ simulation) emit no `sync` key — preserves backwards compatibility
with existing UI clients.

Plumbed into all four NodeInfo construction sites:
  1. multi-BSSID scan path                     → sync: None
  2. synthetic-RSSI fallback                   → sync: None
  3. simulated frame path                      → sync: None
  4. real ESP32 CSI path (line 4528)           → sync: snapshot from NodeState
  5. ADR-039 vitals-only path (line 4207)      → sync: snapshot from NodeState

cargo check -p wifi-densepose-sensing-server --no-default-features → green.

UI clients (viz.html, future Tauri desktop, downstream automation) can
now render leader/follower badges, jitter histograms, and the §A0.10
clock-skew trajectory without any further firmware or aggregator work.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-05-23 14:03:22 -04:00
..
.claude-flow chore(repo): rename rust-port/wifi-densepose-rs → v2/ (flatten to one level) (#427) 2026-04-25 21:28:13 -04:00
crates feat(adr-110): surface NodeSyncSnapshot in WebSocket sensing_update JSON 2026-05-23 14:03:22 -04:00
data chore(repo): rename rust-port/wifi-densepose-rs → v2/ (flatten to one level) (#427) 2026-04-25 21:28:13 -04:00
docs chore(repo): rename rust-port/wifi-densepose-rs → v2/ (flatten to one level) (#427) 2026-04-25 21:28:13 -04:00
examples chore(repo): rename rust-port/wifi-densepose-rs → v2/ (flatten to one level) (#427) 2026-04-25 21:28:13 -04:00
patches/ruvector-crv chore(repo): rename rust-port/wifi-densepose-rs → v2/ (flatten to one level) (#427) 2026-04-25 21:28:13 -04:00
Cargo.lock fix(branch-coord): revert ADR-115 Cargo.toml/cli.rs that slipped into iter 18 2026-05-23 13:31:58 -04:00
Cargo.toml feat(cog-person-count): v0.0.1 scaffold + tests + fusion math + bench (ADR-103) (#694) 2026-05-21 18:46:57 -04:00
rust-toolchain.toml v2: pin Rust 1.89 and fix sensing-server UI path when run from v2 (#523) 2026-05-17 18:00:36 -04:00