mirror of
https://github.com/ruvnet/RuView
synced 2026-08-11 20:41:44 +00:00
feat(privshield): add veil custom terminal harness + TUI (ADR-288 §harness)
A dependency-free native binary (`src/bin/veil.rs`) — the in-repo counterpart to the npm metaharness — that drives the same crate API the tests use: - Interactive ANSI dashboard (TUI): live status, re-ID off/on vs chance, throughput, compliance (energy 1.000× / not jamming), a block-sparkline collapse curve, config, and PASS/OUT-OF-SPEC verdict. Command-driven redraw loop (std-only, no crossterm/ratatui): on/off, passes/bits/n/snr, metric euclid|cosine, preset scif|board|ward|hotel, optimize, proof. - Scriptable subcommands: report, sweep, optimize, adaptive <N>, proof, doctor (exit 0 = healthy). Auto-picks TUI on a terminal, one-shot report when piped; honors NO_COLOR. Std-only, so it builds with no extra deps and runs in any pipe/CI. The wasm leaf story is unchanged (validated with `--lib`; the bin is native-only). All readouts are SYNTHETIC/L0 and never relabeled. Validated: 38 tests + doctest pass, clippy --all-targets -D warnings clean, rustfmt clean, wasm --lib builds; all subcommands + a scripted TUI session exercised. Documented in the crate README and ADR-288. Co-Authored-By: claude-flow <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01WEXNqzs7UsfNFBcP5yW21p
This commit is contained in:
@@ -139,6 +139,17 @@ better on **both** privacy (re-ID 0.047 vs 0.078) and throughput (0.976 vs 0.974
|
||||
and is now verified rather than assumed. See
|
||||
`docs/research/privacy-shield/08-optimization.md`.
|
||||
|
||||
### harness. Native terminal harness + TUI (`src/bin/veil.rs`)
|
||||
|
||||
A custom, dependency-free binary (`veil`) ships with the crate — the in-repo,
|
||||
native counterpart to the npm metaharness (ADR-289). It drives the same public
|
||||
API the tests use, as an interactive ANSI dashboard plus scriptable subcommands
|
||||
(`report`, `sweep`, `optimize`, `adaptive <N>`, `proof`, `doctor`, `tui`).
|
||||
Std-only (no `crossterm`/`ratatui`): the TUI is a command-driven redraw loop, so
|
||||
it runs in any terminal, pipe, or CI and keeps the crate a pure leaf. It reports
|
||||
only SYNTHETIC/L0 numbers and never relabels them. The wasm leaf story is
|
||||
unchanged (validated with `--lib`; the bin is native-only).
|
||||
|
||||
## 3. What this explicitly is NOT
|
||||
|
||||
- **Not a radio driver.** No RF frontend, no transmit path, no
|
||||
|
||||
Reference in New Issue
Block a user