Knowledge
Search knowledge... ⌘K
Knowledge · Guidelines · swift
Local First Privacy
Privacy invariants for local-first Swift apps — no-network, no-content-in-logs, filename opacity
Metadata
swift swift
Procedures
Showing 3 of 6
- 1 Declare the local-first commitment in the README and project manifest
State explicitly: 'This app is local-only. No audio, transcript, or user data leaves your Mac.'
- 2 Remove all URLSession/URLRequest imports from the codebase
If any exist, they must be replaced or the file must move under Sources/*/Network/ with a file-level SwiftLint disable and a justification comment.
- 3 Audit all log statements
Grep for `log(Info|Debug|Warn|Error)(.*\\(.*text` and verify every match logs only metadata (count, id, duration). Replace content interpolations with `text.count`.
Rules
- PRIV-001 —
- PRIV-002 —
- PRIV-003 —
- PRIV-004 —
- PRIV-005 —