SPB Git

Repository Public

CLAUDE.md 2.8 KB 52 lines markdown

1<!--2MacLustr Storage Node3File: CLAUDE.md4Author: Simon-Pierre Boucher5Contact: contact@spboucher.ai6-->7# CLAUDE.md — MacLustr Storage Node89Condensed from the owner's brief of 2026-12-01 (the brief itself is longer; this keeps its rules and adds what a session10needs to work here).1112## Mission1314One function only: turn an iPhone or iPad into an opportunistic storage node of the MacLustr cluster. The app provides15capacity; it is not a cloud-storage client, a file manager, or anything else.1617## Non-negotiable1819- 100 % native: Swift, SwiftUI. No third-party framework without a documented technical need (none so far).20- No jailbreak, no external cloud service, no subscription, no ads, no tracking.21- No access to the user's personal files. Exactly four sections: Dashboard, Storage Allocation, Activity, Settings.22- Encrypted communication; fragments encrypted on the cluster; the device holds no key to them.23- **No fragment needed to rebuild an object may exist only on an iOS device.**24- Respect iOS: never misuse audio, location or VoIP modes to stay alive; never claim permanent background execution.25- The server must never be able to run arbitrary commands on the device.26- No simulated data in production. Never invent a performance figure or hide an error or a limit.27- Preserve existing MacLustr services. Commit as you go. Never commit secrets.2829## Working here3031- App: edit on the laptop (`MacLustrStorageNode/`), `xcodegen generate`, run the unit tests.32- Coordinator (`server/`): the deployed copy is the clone on `m4mn:~/apps/maclustr-storage`; push, then `git pull &&33  pm2 restart storage-coordinator` on the node. Run `node server/test/e2e.ts` first. Changing MSP/1 means changing34  `server/src/msp.ts`, `MSPClient.swift` / `NodeEngine.swift`, `server/test/device.ts` and `docs/MSP-1.md` together.35- Dashboard: repository `maclustr-command-center`, edited on M4M64c.36- Every source file starts with the project header (project, file, description, author, contact).37- Keep docs/TEST-REPORT.md honest: a case is "tested" only with the evidence written next to it, and device tests are38  marked as such only when run on a physical device.39- Operations and recipes: docs/INTEGRATION.md.4041<!-- spb-source-governance:start -->42## Source header policy (SP Boucher)4344When creating or modifying eligible first-party source files, follow the SP Boucher Source Header45Policy. Preserve existing copyright and license notices, select the correct language-specific46template, and avoid adding identifying information to anonymous academic submission artifacts.4748- Repository policy: `.spb-source-governance.toml` (project, contact, verified rights, license).49- Add or refresh headers with `spb-header apply --repo .`; verify with `spb-header check --repo .`.50- Never hand-write a header, never add one to generated, vendored, third-party or data files.51<!-- spb-source-governance:end -->52
Files main
Menu

Theme