Repository Public
1<!--2MacLustr Storage Node3File: docs/TEST-REPORT.md4Author: Simon-Pierre Boucher5Contact: contact@spboucher.ai6-->7# Test report — 2026-12-0189**No test has been run on a physical iPhone or iPad.** The build is on TestFlight but was not installed on a device when10this was written. Everything marked "live" below was run with the real app in the iOS simulator (iPhone 17 Pro and iPad11Pro 13", iOS 26.5) against the production coordinator through `https://storage.spboucher.ai`, with real random data. The12simulator is a Mac process: it proves the app's logic and the protocol, not iOS's behaviour on hardware.1314## Automated suites1516| Suite | Result | Command |17|---|---|---|18| Coordinator end to end (real process, real files, scripted MSP/1 devices) | 54 checks passed | `node server/test/e2e.ts` |19| iOS unit tests (storage engine, capacity rules, pairing parsing, request signature) | 10 tests passed | `xcodebuild … test` |2021## Matrix of the brief2223| Case | Status | Evidence |24|---|---|---|25| A device joins the cluster | live (simulator) | paired with a single-use code; `node.paired` in the journal |26| The cluster sees the allocated capacity | live | quota 2 GB / 5 GB reported; "registered 6.52 GiB" with two nodes |27| The cluster sends data, the device really keeps it | live | 3 objects (57, 286, 114 MiB); fragment files present in the app container; every possession proof passed |28| The cluster gets the data back; digests match | live | 3 fragments returned on request, SHA-256 checked by the coordinator |29| A lost stable copy is rebuilt from a device | live | one stable fragment deleted on m4mn → read answered 503 → fragment pulled from the device → object read back, digest equal |30| Fragments survive a relaunch | live (app killed and relaunched) | 8/8 fragments present, inventory clean. **Device reboot: not tested** |31| Corrupt fragment on the device | live | 16 bytes overwritten in a fragment file → detected at the next verification, discarded, clean copy received again |32| Corrupt / missing stable fragment | automated | scrub detects, repair from a mobile node (e2e) |33| Loss of a node | live | app terminated → node offline after 100 s, capacity counted as offline, objects read back intact |34| Coordinator restart | live, 3 times, once in the middle of 36 transfers | all fragments arrived; state intact |35| Interrupted transfer resumes | automated at protocol level (Range download, offset upload). In the live run the transfers interrupted by the restart completed, but no byte-range resume was recorded: **not observed on iOS** |36| Graceful drain | live | 44 fragments handed back and deleted, node `drained`, device empty, then rejoined |37| Emergency release | live | 59 fragments erased at once, coordinator dropped the placements, objects intact |38| Revocation | live | node revoked from the cluster → requests refused, app erased its fragments and returned to pairing |39| Background | live on the simulator only | app sent to the background during transfers: the 15 fragments of a 114 MiB object all arrived, heartbeat mode `background`. **Suspension by iOS on a device: not tested** |40| Not enough space / quota | automated | quota never exceeded, quota lowered, node refusing writes (e2e); reserve rules (unit) |41| Allocation of 10, 50, 100 GB; large transfers | **not tested** (largest run: 5 GB quota, 458 MiB stored) |42| Wi-Fi loss, Wi-Fi → cellular | **not tested** (needs a device) |43| Screen lock, low battery, overheating | **not tested** (needs a device); the policy code paths exist and are not exercised |44| Device reboot, app deletion | **not tested** |45| Local network path (Bonjour + pinned certificate) | **not tested**: the coordinator announces the service (seen with `dns-sd -B` on the node) but the test machine was not on the cluster's LAN |46| QR scan with the camera | **not tested** (no camera in the simulator); typed code tested |47| Dashboard section | deployed; verified by its own tests and against the real coordinator on a local stack; **no authenticated call in production** (needs the owner's passkey) |48| TestFlight | build 1.0.0 (1) `VALID`, internal group "Test", account holder invited; **installation on a device not done** |4950## Observations5152- Throughput and timings: see BENCHMARKS.md.53- During the first live run the integrity rate stayed at 100 % although a corruption had been found: a corruption reported54 by the device itself was not counted. Fixed the same day (it now counts as a failed check and is journaled).55- Fragments were sent again after the corruption test and after the drain; one `task.failed` was journaled during the corruption test.5657## First things to do with a real device58591. Install from TestFlight, pair by QR code from clustr.spboucher.ai → Mobile Storage Nodes → Add a device.602. Put a large object (`mlstore put`), watch Activity; check the local network line in Settings → Connection diagnostic.613. Lock the screen, switch to cellular, reboot, run a night on power: note what continued, in this file.624. Run Settings → Storage benchmark and copy the result into BENCHMARKS.md.63