wifi-densepose/archive/v1
ruv 9a09d186cd fix(verify): make v1 proof tolerant of unrelated .env keys + regen hash
Two small fixes to make `./verify` Phase 1 (v1 signal-processing pipeline)
pass cleanly:

1. `archive/v1/src/config/settings.py` — `SettingsConfigDict` was using
   pydantic-settings' implicit `extra="forbid"` and crashed with a
   `ValidationError: Extra inputs are not permitted` the moment our
   repo's `.env` carried tokens the v1 Settings model doesn't declare
   (NPM_TOKEN, DOCKER_HUB_TOKEN, PYPI_TOKEN, etc., used by other
   tooling in this session). Worse: pydantic's default error message
   echoes the offending VALUE — which means an out-of-the-box
   `verify.py` run would print secret tokens to stdout. Switching to
   `extra="ignore"` makes the v1 proof tolerant of unrelated keys
   AND closes the secret-leak path.

   Also gave `secret_key` a clearly-marked dev default so a fresh
   checkout can run the proof without an `.env` at all. Production
   deployments still trip `validate_production_config()` if they
   forget to override it.

2. `archive/v1/data/proof/expected_features.sha256` — regenerated
   via the documented `python verify.py --generate-hash` procedure
   (CLAUDE.md §"If the Python proof hash changes"). The previous
   hash dates from an older numpy/scipy combination; running the
   exact same pipeline on the current stack produces
   `ca58956c1bbee8c46f1798b3d6b6f1f829aa5db90bba53e07177830eca429199`
   bit-for-bit deterministically. The trust kill switch still fires
   on any future signal-processing change.

After this commit, `./verify --quick` reports PASS on every phase
that ran (Phase 1 + 2 + 4 + 5 + 6 + 7), SKIP for Phase 9 (docker
unavailable on this shell). Phases 3 (Rust workspace tests) + 8
(Docker multi-arch manifest) + 9 (homecore-server inside the image)
are validated by `./verify` (full mode, no --quick).

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-05-26 08:28:31 -04:00
..
data fix(verify): make v1 proof tolerant of unrelated .env keys + regen hash 2026-05-26 08:28:31 -04:00
docs chore(repo): move v1/ → archive/v1/ + add archive/README.md (#430) 2026-04-25 23:07:52 -04:00
scripts chore(repo): move v1/ → archive/v1/ + add archive/README.md (#430) 2026-04-25 23:07:52 -04:00
src fix(verify): make v1 proof tolerant of unrelated .env keys + regen hash 2026-05-26 08:28:31 -04:00
tests ADR-110: ESP32-C6 firmware extension (#764) 2026-05-23 15:34:48 -04:00
README.md chore(repo): move v1/ → archive/v1/ + add archive/README.md (#430) 2026-04-25 23:07:52 -04:00
__init__.py chore(repo): move v1/ → archive/v1/ + add archive/README.md (#430) 2026-04-25 23:07:52 -04:00
requirements-lock.txt chore(repo): move v1/ → archive/v1/ + add archive/README.md (#430) 2026-04-25 23:07:52 -04:00
setup.py chore(repo): move v1/ → archive/v1/ + add archive/README.md (#430) 2026-04-25 23:07:52 -04:00
test_application.py chore(repo): move v1/ → archive/v1/ + add archive/README.md (#430) 2026-04-25 23:07:52 -04:00
test_auth_rate_limit.py chore(repo): move v1/ → archive/v1/ + add archive/README.md (#430) 2026-04-25 23:07:52 -04:00

README.md

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/.