CLAUDE.md — MacLustr Storage Node
Condensed from the owner's brief of 2026-12-01 (the brief itself is longer; this keeps its rules and adds what a session needs to work here).
Mission
One function only: turn an iPhone or iPad into an opportunistic storage node of the MacLustr cluster. The app provides capacity; it is not a cloud-storage client, a file manager, or anything else.
Non-negotiable
- 100 % native: Swift, SwiftUI. No third-party framework without a documented technical need (none so far).
- No jailbreak, no external cloud service, no subscription, no ads, no tracking.
- No access to the user's personal files. Exactly four sections: Dashboard, Storage Allocation, Activity, Settings.
- Encrypted communication; fragments encrypted on the cluster; the device holds no key to them.
- No fragment needed to rebuild an object may exist only on an iOS device.
- Respect iOS: never misuse audio, location or VoIP modes to stay alive; never claim permanent background execution.
- The server must never be able to run arbitrary commands on the device.
- No simulated data in production. Never invent a performance figure or hide an error or a limit.
- Preserve existing MacLustr services. Commit as you go. Never commit secrets.
Working here
- App: edit on the laptop (
MacLustrStorageNode/),xcodegen generate, run the unit tests. - Coordinator (
server/): the deployed copy is the clone onm4mn:~/apps/maclustr-storage; push, thengit pull && pm2 restart storage-coordinatoron the node. Runnode server/test/e2e.tsfirst. Changing MSP/1 means changingserver/src/msp.ts,MSPClient.swift/NodeEngine.swift,server/test/device.tsanddocs/MSP-1.mdtogether. - Dashboard: repository
maclustr-command-center, edited on M4M64c. - Every source file starts with the project header (project, file, description, author, contact).
- Keep docs/TEST-REPORT.md honest: a case is "tested" only with the evidence written next to it, and device tests are marked as such only when run on a physical device.
- Operations and recipes: docs/INTEGRATION.md.
Source header policy (SP Boucher)
When creating or modifying eligible first-party source files, follow the SP Boucher Source Header Policy. Preserve existing copyright and license notices, select the correct language-specific template, and avoid adding identifying information to anonymous academic submission artifacts.
- Repository policy:
.spb-source-governance.toml(project, contact, verified rights, license). - Add or refresh headers with
spb-header apply --repo .; verify withspb-header check --repo .. - Never hand-write a header, never add one to generated, vendored, third-party or data files.