Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31a3c50

Browse files
authored
Merge pull request ruvnet#31 from ruvnet/claude/integrate-ruvector-rvf-mF1Hp
2 parents 16c50ab + 6449539 commit 31a3c50

107 files changed

Lines changed: 373325 additions & 841 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude-flow/daemon-state.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
{
22
"running": true,
3-
"startedAt": "2026-01-13T18:06:18.421Z",
3+
"startedAt": "2026-02-28T13:34:03.423Z",
44
"workers": {
55
"map": {
6-
"runCount": 8,
7-
"successCount": 8,
6+
"runCount": 45,
7+
"successCount": 45,
88
"failureCount": 0,
9-
"averageDurationMs": 1.25,
10-
"lastRun": "2026-01-13T18:21:18.435Z",
11-
"nextRun": "2026-01-13T18:21:18.428Z",
9+
"averageDurationMs": 1.1555555555555554,
10+
"lastRun": "2026-02-28T14:34:03.462Z",
11+
"nextRun": "2026-02-28T14:49:03.462Z",
1212
"isRunning": false
1313
},
1414
"audit": {
15-
"runCount": 5,
15+
"runCount": 40,
1616
"successCount": 0,
17-
"failureCount": 5,
17+
"failureCount": 40,
1818
"averageDurationMs": 0,
19-
"lastRun": "2026-01-13T18:13:18.424Z",
20-
"nextRun": "2026-01-13T18:23:18.425Z",
19+
"lastRun": "2026-02-28T14:41:03.451Z",
20+
"nextRun": "2026-02-28T14:51:03.452Z",
2121
"isRunning": false
2222
},
2323
"optimize": {
24-
"runCount": 4,
24+
"runCount": 31,
2525
"successCount": 0,
26-
"failureCount": 4,
26+
"failureCount": 31,
2727
"averageDurationMs": 0,
28-
"lastRun": "2026-01-13T18:15:18.424Z",
29-
"nextRun": "2026-01-13T18:30:18.424Z",
28+
"lastRun": "2026-02-28T14:43:03.464Z",
29+
"nextRun": "2026-02-28T14:38:03.457Z",
3030
"isRunning": false
3131
},
3232
"consolidate": {
33-
"runCount": 3,
34-
"successCount": 3,
33+
"runCount": 21,
34+
"successCount": 21,
3535
"failureCount": 0,
36-
"averageDurationMs": 0.6666666666666666,
37-
"lastRun": "2026-01-13T18:13:18.428Z",
38-
"nextRun": "2026-01-13T18:42:18.422Z",
36+
"averageDurationMs": 0.6190476190476191,
37+
"lastRun": "2026-02-28T14:41:03.452Z",
38+
"nextRun": "2026-02-28T15:10:03.429Z",
3939
"isRunning": false
4040
},
4141
"testgaps": {
42-
"runCount": 3,
42+
"runCount": 25,
4343
"successCount": 0,
44-
"failureCount": 3,
44+
"failureCount": 25,
4545
"averageDurationMs": 0,
46-
"lastRun": "2026-01-13T18:19:18.457Z",
47-
"nextRun": "2026-01-13T18:39:18.457Z",
46+
"lastRun": "2026-02-28T14:37:03.441Z",
47+
"nextRun": "2026-02-28T14:57:03.442Z",
4848
"isRunning": false
4949
},
5050
"predict": {
@@ -131,5 +131,5 @@
131131
}
132132
]
133133
},
134-
"savedAt": "2026-01-13T18:21:18.435Z"
134+
"savedAt": "2026-02-28T14:43:03.464Z"
135135
}

.claude-flow/daemon.pid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
589
1+
166
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"timestamp": "2026-01-13T18:21:18.434Z",
2+
"timestamp": "2026-02-28T14:34:03.461Z",
33
"projectRoot": "/home/user/wifi-densepose",
44
"structure": {
55
"hasPackageJson": false,
66
"hasTsConfig": false,
77
"hasClaudeConfig": true,
88
"hasClaudeFlow": true
99
},
10-
"scannedAt": 1768328478434
10+
"scannedAt": 1772289243462
1111
}

.claude-flow/metrics/consolidation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"timestamp": "2026-01-13T18:13:18.428Z",
2+
"timestamp": "2026-02-28T14:41:03.452Z",
33
"patternsConsolidated": 0,
44
"memoryCleaned": 0,
55
"duplicatesRemoved": 0
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
name: Verify Pipeline Determinism
2+
3+
on:
4+
push:
5+
branches: [ main, master, 'claude/**' ]
6+
paths:
7+
- 'v1/src/core/**'
8+
- 'v1/src/hardware/**'
9+
- 'v1/data/proof/**'
10+
- '.github/workflows/verify-pipeline.yml'
11+
pull_request:
12+
branches: [ main, master ]
13+
paths:
14+
- 'v1/src/core/**'
15+
- 'v1/src/hardware/**'
16+
- 'v1/data/proof/**'
17+
- '.github/workflows/verify-pipeline.yml'
18+
workflow_dispatch:
19+
20+
jobs:
21+
verify-determinism:
22+
name: Verify Pipeline Determinism
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
python-version: ['3.11']
27+
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v4
31+
32+
- name: Set up Python ${{ matrix.python-version }}
33+
uses: actions/setup-python@v5
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
37+
- name: Install pinned dependencies
38+
run: |
39+
python -m pip install --upgrade pip
40+
pip install -r v1/requirements-lock.txt
41+
42+
- name: Verify reference signal is reproducible
43+
run: |
44+
echo "=== Regenerating reference signal ==="
45+
python v1/data/proof/generate_reference_signal.py
46+
echo ""
47+
echo "=== Checking data file matches committed version ==="
48+
# The regenerated file should be identical to the committed one
49+
# (We compare the metadata file since data file is large)
50+
python -c "
51+
import json, hashlib
52+
with open('v1/data/proof/sample_csi_meta.json') as f:
53+
meta = json.load(f)
54+
assert meta['is_synthetic'] == True, 'Metadata must mark signal as synthetic'
55+
assert meta['numpy_seed'] == 42, 'Seed must be 42'
56+
print('Reference signal metadata validated.')
57+
"
58+
59+
- name: Run pipeline verification
60+
working-directory: v1
61+
run: |
62+
echo "=== Running pipeline verification ==="
63+
python data/proof/verify.py
64+
echo ""
65+
echo "Pipeline verification PASSED."
66+
67+
- name: Run verification twice to confirm determinism
68+
working-directory: v1
69+
run: |
70+
echo "=== Second run for determinism confirmation ==="
71+
python data/proof/verify.py
72+
echo "Determinism confirmed across multiple runs."
73+
74+
- name: Check for unseeded np.random in production code
75+
run: |
76+
echo "=== Scanning for unseeded np.random usage in production code ==="
77+
# Search for np.random calls without a seed in production code
78+
# Exclude test files, proof data generators, and known parser placeholders
79+
VIOLATIONS=$(grep -rn "np\.random\." v1/src/ \
80+
--include="*.py" \
81+
--exclude-dir="__pycache__" \
82+
| grep -v "np\.random\.RandomState" \
83+
| grep -v "np\.random\.seed" \
84+
| grep -v "np\.random\.default_rng" \
85+
| grep -v "# placeholder" \
86+
| grep -v "# mock" \
87+
| grep -v "# test" \
88+
|| true)
89+
90+
if [ -n "$VIOLATIONS" ]; then
91+
echo ""
92+
echo "WARNING: Found potential unseeded np.random usage in production code:"
93+
echo "$VIOLATIONS"
94+
echo ""
95+
echo "Each np.random call should either:"
96+
echo " 1. Use np.random.RandomState(seed) or np.random.default_rng(seed)"
97+
echo " 2. Be in a test/mock context (add '# placeholder' comment)"
98+
echo ""
99+
# Note: This is a warning, not a failure, because some existing
100+
# placeholder code in parsers uses np.random for mock data.
101+
# Once hardware integration is complete, these should be removed.
102+
echo "WARNING: Review the above usages. Existing parser placeholders are expected."
103+
else
104+
echo "No unseeded np.random usage found in production code."
105+
fi

Makefile

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# WiFi-DensePose Makefile
2+
# ============================================================
3+
4+
.PHONY: verify verify-verbose verify-audit install install-verify install-python \
5+
install-rust install-browser install-docker install-field install-full \
6+
check build-rust build-wasm test-rust bench run-api run-viz clean help
7+
8+
# ─── Installation ────────────────────────────────────────────
9+
# Guided interactive installer
10+
install:
11+
@./install.sh
12+
13+
# Profile-specific installs (non-interactive)
14+
install-verify:
15+
@./install.sh --profile verify --yes
16+
17+
install-python:
18+
@./install.sh --profile python --yes
19+
20+
install-rust:
21+
@./install.sh --profile rust --yes
22+
23+
install-browser:
24+
@./install.sh --profile browser --yes
25+
26+
install-docker:
27+
@./install.sh --profile docker --yes
28+
29+
install-field:
30+
@./install.sh --profile field --yes
31+
32+
install-full:
33+
@./install.sh --profile full --yes
34+
35+
# Hardware and environment check only (no install)
36+
check:
37+
@./install.sh --check-only
38+
39+
# ─── Verification ────────────────────────────────────────────
40+
# Trust Kill Switch -- one-command proof replay
41+
verify:
42+
@./verify
43+
44+
# Verbose mode -- show detailed feature statistics and Doppler spectrum
45+
verify-verbose:
46+
@./verify --verbose
47+
48+
# Full audit -- verify pipeline + scan codebase for mock/random patterns
49+
verify-audit:
50+
@./verify --verbose --audit
51+
52+
# ─── Rust Builds ─────────────────────────────────────────────
53+
build-rust:
54+
cd rust-port/wifi-densepose-rs && cargo build --release
55+
56+
build-wasm:
57+
cd rust-port/wifi-densepose-rs && wasm-pack build crates/wifi-densepose-wasm --target web --release
58+
59+
build-wasm-mat:
60+
cd rust-port/wifi-densepose-rs && wasm-pack build crates/wifi-densepose-wasm --target web --release -- --features mat
61+
62+
test-rust:
63+
cd rust-port/wifi-densepose-rs && cargo test --workspace
64+
65+
bench:
66+
cd rust-port/wifi-densepose-rs && cargo bench --package wifi-densepose-signal
67+
68+
# ─── Run ─────────────────────────────────────────────────────
69+
run-api:
70+
uvicorn v1.src.api.main:app --host 0.0.0.0 --port 8000
71+
72+
run-api-dev:
73+
uvicorn v1.src.api.main:app --host 0.0.0.0 --port 8000 --reload
74+
75+
run-viz:
76+
python3 -m http.server 3000 --directory ui
77+
78+
run-docker:
79+
docker compose up
80+
81+
# ─── Clean ───────────────────────────────────────────────────
82+
clean:
83+
rm -f .install.log
84+
cd rust-port/wifi-densepose-rs && cargo clean 2>/dev/null || true
85+
86+
# ─── Help ────────────────────────────────────────────────────
87+
help:
88+
@echo "WiFi-DensePose Build Targets"
89+
@echo "============================================================"
90+
@echo ""
91+
@echo " Installation:"
92+
@echo " make install Interactive guided installer"
93+
@echo " make install-verify Verification only (~5 MB)"
94+
@echo " make install-python Full Python pipeline (~500 MB)"
95+
@echo " make install-rust Rust pipeline with ~810x speedup"
96+
@echo " make install-browser WASM for browser (~10 MB)"
97+
@echo " make install-docker Docker-based deployment"
98+
@echo " make install-field WiFi-Mat disaster kit (~62 MB)"
99+
@echo " make install-full Everything available"
100+
@echo " make check Hardware/environment check only"
101+
@echo ""
102+
@echo " Verification:"
103+
@echo " make verify Run the trust kill switch"
104+
@echo " make verify-verbose Verbose with feature details"
105+
@echo " make verify-audit Full verification + codebase audit"
106+
@echo ""
107+
@echo " Build:"
108+
@echo " make build-rust Build Rust workspace (release)"
109+
@echo " make build-wasm Build WASM package (browser)"
110+
@echo " make build-wasm-mat Build WASM with WiFi-Mat (field)"
111+
@echo " make test-rust Run all Rust tests"
112+
@echo " make bench Run signal processing benchmarks"
113+
@echo ""
114+
@echo " Run:"
115+
@echo " make run-api Start Python API server"
116+
@echo " make run-api-dev Start API with hot-reload"
117+
@echo " make run-viz Serve 3D visualization (port 3000)"
118+
@echo " make run-docker Start Docker dev stack"
119+
@echo ""
120+
@echo " Utility:"
121+
@echo " make clean Remove build artifacts"
122+
@echo " make help Show this help"
123+
@echo ""

0 commit comments

Comments
 (0)