Testing & Alpha Status
1. Automated Test Suite Inventory (v0.1.0)
Section titled “1. Automated Test Suite Inventory (v0.1.0)”Verified counts from docs/TESTING.md (synced to upstream commit c6116b3):
- Rust library unit tests (
src/lib.rs):423passed,0failed,0ignored - Rust binary unit tests (
src/main.rs):4passed,0failed,0ignored - Rust integration suites (
tests/*.rs):34passed across7integration binaries (0failed,0ignored) - Rust doc-tests (
src/):3passed,0failed,0ignored - Total Rust tests:
464passed,0failed,0ignored - Vendored
libp2p-streamtests (vendor/libp2p-stream):4unit +2doc-tests passed,0failed,0ignored - Frontend unit tests (
web/test/*.test.cjs):44passed,0failed - Isolated binary HTTP & Embedded SPA smoke test (
scripts/web-smoke.mjs): Verifies single-binary startup, security headers,#code=launch exchange,401JSON fail-closed/api/v1/status,/healthz,/api/v1/fs/list,/metrics/prometheus,upload-local/download-localprotected-root403guards, graceful shutdown, and--no-web-ui.
2. Proven Locally vs. Still Unproven
Section titled “2. Proven Locally vs. Still Unproven”| Area | Proven Locally (Verified in Repo) | Still Unproven / Open Ahead |
|---|---|---|
Core Crypto, RS 8+6, Packing & Bounds |
464 Rust tests plus 4 unit + 2 doc-tests in vendored libp2p-stream, covering AEAD, RFC 9180 HPKE host sealing, 64 MiB RS 8+6, SYMPACK2, inbound /24//48 & /p2p-circuit starter/capsule/connection/Kademlia caps, 256-object dust floors, PeerRpcRateLimiter, and postcard pre-decode size caps (tests/protocol_fuzzing_test.rs). |
Independent third-party cryptographic and code security audit; multi-subnet / ASN Sybil testing. |
| Sentinel Audits, Repair & GC | Automated tests verifying PlacementStreams 64 KiB Merkle block audits, 24h Healthy / 5m Urgent / 60s Critical repair grace, Local-Source zero-WAN repair + P2P fallback, 85% -> 70% (>= 30d) bootstrap reclaim, and 90% -> 80% (>= 60d) stale-partner GC. |
Long-duration live repair throughput and churn benchmarks on residential WANs. |
| Two-Tier Cold Recovery | tests/disaster_recovery_drill_test.rs (3 tests: capsule export/hydration & crash journal reconciliation), tests/recovery_capsule_test.rs (stale/offline replica resolution), plus 200-peer fanout and 5 TiB delta compaction tests in src/recovery/engine/tests/. |
Multi-month live clean-machine restores across real WAN NAT peers. |
| Bilateral Accounting & Scale | tests/economics_simulation_test.rs (7 tests: GiB-hour symmetry, 512 MiB / 5% pool clamping, 30d spend/bank horizons, owner-delete severance), tests/resource_scheduling_test.rs (10 tests), and tests/scale_simulation_test.rs (6 tests: synthetic 5 TiB metadata scaling). |
Real multi-TB payload end-to-end backup and restore over WAN; multi-node 14+ residential ISP / CGNAT soak testing. |
| Web UI & Local API | 44 frontend unit tests plus scripts/web-smoke.mjs against the compiled binary (~39 MiB release executable). |
Cross-browser UI stress testing on large > 100 GiB transfers. |
3. Running Verification Locally
Section titled “3. Running Verification Locally”# 1. Frontend unit tests, TypeScript check, Vite build & auditcd web && npm ci && npm test && npm run build && npm audit --audit-level=high && cd ..
# 2. Rust formatting, strict Clippy lints, license/advisory & unused-dep gatescargo fmt --all -- --checkcargo clippy --locked --all-targets --all-features -- -D warningscargo deny checkcargo machete
# 3. Full Rust test suite (464 tests) + vendored libp2p-stream (4 unit + 2 doc-tests)cargo test --manifest-path vendor/libp2p-stream/Cargo.tomlcargo test --locked -- --test-threads=4
# 4. Release binary + isolated embedded Web UI smoke testcargo build --release --lockednode scripts/web-smoke.mjs ./target/release/backdit