mirror of
https://github.com/ruvnet/RuView
synced 2026-06-09 10:13:17 +00:00
b5a23b03e5
Definitive root cause of the failing determinism gate: the SHA-256 of fixed-decimal-rounded features is bit-exact only WITHIN one CPU microarchitecture. Windows and a second Linux box (ruvultra, identical numpy 2.4.2/scipy 1.17.1) produce the same hash at every precision (ca58956c), but the GitHub Azure runner diverges at EVERY precision including 2 decimals (667eb054) — because pocketfft/BLAS reorders FP reductions per-microarch and the ~1e-6 *relative* drift lands on large-magnitude PSD bins as an absolute difference no fixed-decimal grid can absorb. So no quantization can fix it; the primitive was wrong. Fix: keep the bit-exact SHA-256 as the strong same-platform proof, and add a relative-tolerance fallback (np.allclose, rtol=1e-4/atol=1e-6) against a committed reference feature vector (expected_features_reference.npz, 36,800 float64 values). A run PASSES on either; tolerances sit ~100x over the observed microarch drift and ~10x under any signal-meaningful change, so real regressions still fail. Verified locally: bit-exact MATCH -> PASS, and a corrupted hash falls through to TOLERANCE MATCH -> PASS. CI (Azure, different hash) now passes via the tolerance path. Removes the temporary sweep diagnostic. Co-Authored-By: claude-flow <ruv@ruv.net>
WiFi-DensePose v1 (Python Implementation)
This directory contains the original Python implementation of WiFi-DensePose.
Structure
v1/
├── src/ # Python source code
│ ├── api/ # REST API endpoints
│ ├── config/ # Configuration management
│ ├── core/ # Core processing logic
│ ├── database/ # Database models and migrations
│ ├── hardware/ # Hardware interfaces
│ ├── middleware/ # API middleware
│ ├── models/ # Neural network models
│ ├── services/ # Business logic services
│ └── tasks/ # Background tasks
├── tests/ # Test suite
├── docs/ # Documentation
├── scripts/ # Utility scripts
├── data/ # Data files
├── setup.py # Package setup
├── test_application.py # Application tests
└── test_auth_rate_limit.py # Auth/rate limit tests
Requirements
- Python 3.10+
- PyTorch 2.0+
- FastAPI
- PostgreSQL/SQLite
Installation
cd v1
pip install -e .
Usage
# Start API server
python -m src.main
# Run tests
pytest tests/
Note
This is the legacy Python implementation. For the new Rust implementation with improved performance, see /v2/.