Skip to content

feat: add BLE CSI fusion evidence simulation - #3

Open
ruvnet wants to merge 1 commit into
mainfrom
feat/ble-csi-simulation
Open

feat: add BLE CSI fusion evidence simulation#3
ruvnet wants to merge 1 commit into
mainfrom
feat/ble-csi-simulation

Conversation

@ruvnet

@ruvnet ruvnet commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Summary

Extends rvCSI with typed BLE and Channel Sounding evidence while preserving CSI as the existing semantic event boundary.

  1. Adds source capability, evidence, association, expiry, quality, and abstention types to CsiEvent.
  2. Adds strict BLE telemetry and Channel Sounding contracts with bounded procedure validation.
  3. Adds deterministic pseudonym rotation, replay rejection, geometry based association, crossing ambiguity, motion abstention, and privacy export gating.
  4. Adds a simulate-fusion CLI command plus Node bindings and TypeScript definitions.
  5. Adds ADR 097 and updates the domain model.

Deterministic acceptance result

schema version           : 3
steps                    : 13
events                   : 26
token associations       : 22
association swaps        : 0
crossing associations    : 0
explicit abstentions     : 8
motion abstentions       : 6
expired token rejections : 1
spoof rejections         : 1
respiratory candidates   : 18
channel sounding         : simulated future radio

Capability and privacy boundaries

  1. Advertisement RSSI is neither phase nor coordinates.
  2. Channel Sounding is attributed to a separate capable radio, never to ESP32 S3.
  3. Exact respiratory samples and phase or RTT primitives remain P0 edge only.
  4. Default JSON export omits P0 content.
  5. Full synthetic P0 export requires an explicit edge only assertion.
  6. Every simulator output is marked synthetic and does not establish medical accuracy.

Validation

cargo fmt --all -- --check
cargo test --workspace --all-targets
cargo clippy --workspace --all-targets -- -D warnings
cargo run -p rvcsi-cli -- simulate-fusion --channel-sounding

Related work

  1. RuField PR: feat: add authenticated BLE and Channel Sounding evidence rufield#5
  2. RuView PR: feat: add authenticated ESP32 BLE fusion path RuView#1696

Hardware status

The simulation and contract are validated. Physical acceptance still requires at least two spatial receivers or another localizer, 100 repeated two person crossings with zero swaps, real ESP32 coexistence measurements, and comparison with reference respiration instrumentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant