Ruview/rust-port/wifi-densepose-rs/crates/wifi-densepose-wasm-edge/src
rUv 2b8a7cc458
feat: happiness scoring pipeline + ESP32 swarm with Cognitum Seed (#285)
* feat: happiness scoring pipeline with ESP32 swarm + Cognitum Seed coordinator

ADR-065: Hotel guest happiness scoring from WiFi CSI physiological proxies.
ADR-066: ESP32 swarm with Cognitum Seed as coordinator for multi-zone analytics.

Firmware:
- swarm_bridge.c/h: FreeRTOS task on Core 0, HTTP client with Bearer auth,
  registers with Seed, sends heartbeats (30s) and happiness vectors (5s)
- nvs_config: seed_url, seed_token, zone_name, swarm intervals
- provision.py: --seed-url, --seed-token, --zone CLI args
- esp32-hello-world: capability discovery firmware for 4MB ESP32-S3 variant

WASM edge modules:
- exo_happiness_score.rs: 8-dim happiness vector from gait speed, stride
  regularity, movement fluidity, breathing calm, posture, dwell time
  (events 690-694, 11 tests, ESP32-optimized buffers + event decimation)
- ghost_hunter.rs standalone binary: 5.7 KB WASM, feature-gated default pipeline

RuView Live:
- --mode happiness dashboard with bar visualization
- --seed flag for Cognitum Seed bridge (urllib, background POST)
- HappinessScorer + SeedBridge classes (stdlib only, no deps)

Examples:
- seed_query.py: CLI tool (status, search, witness, monitor, report)
- provision_swarm.sh: batch provisioning for multi-node deployment
- happiness_vector_schema.json: 8-dim vector format documentation

Verified live: ESP32 on COM5 (4MB flash) registered with Seed at 10.1.10.236,
vectors flowing, witness chain growing (epoch 455, chain 1108).

Co-Authored-By: claude-flow <ruv@ruv.net>

* ci: raise firmware binary size gate to 1100 KB for HTTP client stack

The swarm bridge (ADR-066) adds esp_http_client for Seed communication,
which pulls in the HTTP/TLS stack (~150 KB). Binary grew from ~978 KB to
~1077 KB. Raise the gate from 950 KB to 1100 KB. Still fits comfortably
in both 4MB (1856 KB OTA slot, 43% free) and 8MB flash variants.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-20 18:46:34 -04:00
..
bin feat: happiness scoring pipeline + ESP32 swarm with Cognitum Seed (#285) 2026-03-20 18:46:34 -04:00
adversarial.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
ais_behavioral_profiler.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
ais_prompt_shield.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
aut_psycho_symbolic.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
aut_self_healing_mesh.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
bld_elevator_count.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
bld_energy_audit.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
bld_hvac_presence.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
bld_lighting_zones.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
bld_meeting_room.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
coherence.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
exo_breathing_sync.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
exo_dream_stage.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
exo_emotion_detect.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
exo_gesture_language.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
exo_ghost_hunter.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
exo_happiness_score.rs feat: happiness scoring pipeline + ESP32 swarm with Cognitum Seed (#285) 2026-03-20 18:46:34 -04:00
exo_hyperbolic_space.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
exo_music_conductor.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
exo_plant_growth.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
exo_rain_detect.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
exo_time_crystal.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
gesture.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
ind_clean_room.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
ind_confined_space.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
ind_forklift_proximity.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
ind_livestock_monitor.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
ind_structural_vibration.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
intrusion.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
lib.rs feat: happiness scoring pipeline + ESP32 swarm with Cognitum Seed (#285) 2026-03-20 18:46:34 -04:00
lrn_anomaly_attractor.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
lrn_dtw_gesture_learn.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
lrn_ewc_lifelong.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
lrn_meta_adapt.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
med_cardiac_arrhythmia.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
med_gait_analysis.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
med_respiratory_distress.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
med_seizure_detect.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
med_sleep_apnea.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
occupancy.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
qnt_interference_search.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
qnt_quantum_coherence.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
ret_customer_flow.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
ret_dwell_heatmap.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
ret_queue_length.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
ret_shelf_engagement.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
ret_table_turnover.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
rvf.rs feat: complete vendor repos, add edge intelligence and WASM modules 2026-03-02 23:53:25 -05:00
sec_loitering.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
sec_panic_motion.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
sec_perimeter_breach.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
sec_tailgating.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
sec_weapon_detect.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
sig_coherence_gate.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
sig_flash_attention.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
sig_mincut_person_match.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
sig_optimal_transport.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
sig_sparse_recovery.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
sig_temporal_compress.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
spt_micro_hnsw.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
spt_pagerank_influence.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
spt_spiking_tracker.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
tmp_goap_autonomy.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
tmp_pattern_sequence.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
tmp_temporal_logic_guard.rs feat: add ADR-042 CHCI protocol, 24 new edge modules, README restructure 2026-03-03 11:35:57 -05:00
vendor_common.rs feat: implement 24 vendor-integrated WASM edge modules (ADR-041) 2026-03-03 00:29:36 -05:00
vital_trend.rs feat: complete vendor repos, add edge intelligence and WASM modules 2026-03-02 23:53:25 -05:00