diff --git a/AGENTS.md b/AGENTS.md index bf6859e..3375a54 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -27,8 +27,9 @@ This repository expects agents to leave a clean, reviewable git history. ## Privacy & PII -- Never send a user's location history, coordinates, photo metadata, thumbnails, or other PII to any external server or network-backed service by default. -- Any exception requires the user's explicit permission for that specific transfer before the code path is introduced or used. +- Never send a user's location history, coordinates, imported timeline files, match results, or other non-photo PII to any external server or network-backed service by default. +- Photo previews may be fetched from the user's iCloud Photos library when needed to display assets. +- Any other exception requires the user's explicit permission for that specific transfer before the code path is introduced or used. - Prefer fully local processing and local-only platform APIs. If a platform integration can cause data to sync outside the app, disclose that caveat before making user-facing privacy guarantees. ## Verification diff --git a/App/PhotoLocSyncMac/Features/Privacy/PrivacyInfoView.swift b/App/PhotoLocSyncMac/Features/Privacy/PrivacyInfoView.swift index 732c2ef..ba7540f 100644 --- a/App/PhotoLocSyncMac/Features/Privacy/PrivacyInfoView.swift +++ b/App/PhotoLocSyncMac/Features/Privacy/PrivacyInfoView.swift @@ -6,10 +6,10 @@ struct PrivacySummaryBox: View { var body: some View { GroupBox("Privacy") { VStack(alignment: .leading, spacing: 12) { - Text("Photo Location Sync is local-only by default. The app does not send your timeline file, coordinates, thumbnails, or other personal data to any external server.") + Text("Photo Location Sync keeps your imported timeline data, coordinates, and match decisions on your Mac. The app does not send that location data to external servers.") .font(.headline) - Text("Matching, coordinate labeling, and the review plot all run on this Mac. If a photo is only available from iCloud, the app leaves its preview unavailable instead of fetching it over the network.") + Text("Matching, coordinate labeling, and the review plot all run on this Mac. If a photo is only available from iCloud Photos, Apple Photos may download it so the app can display a preview.") .foregroundStyle(.secondary) Text("When you click Apply, the app writes the approved metadata into Apple Photos locally. If you use iCloud Photos, Apple may sync those approved library changes outside this app.") @@ -34,7 +34,7 @@ struct PrivacyInfoView: View { Text("Privacy & Data Handling") .font(.largeTitle.bold()) - Text("Photo Location Sync is designed to keep your timeline data and photo metadata on your Mac. The app does not perform outbound API calls with your personal data.") + Text("Photo Location Sync is designed to keep your imported timeline data and location matching on your Mac. The app does not upload that location data to external APIs.") .font(.title3) .foregroundStyle(.secondary) } @@ -43,18 +43,26 @@ struct PrivacyInfoView: View { VStack(alignment: .leading, spacing: 10) { Text("- Your Google Maps Timeline import is parsed locally.") Text("- Timeline matching, coordinate formatting, and review plotting run locally.") - Text("- Photo previews use only locally available Photos assets.") Text("- The app does not use online geocoding, map tiles, analytics, crash reporting, or other telemetry services.") + Text("- Approved location writes happen in your local Photos library first.") } .frame(maxWidth: .infinity, alignment: .leading) .padding(.vertical, 4) } - GroupBox("When data can leave your Mac") { + GroupBox("When network access can happen") { VStack(alignment: .leading, spacing: 10) { - Text("Photo Location Sync itself does not upload your data.") - Text("If you press Apply, the app writes approved location metadata into Apple Photos on-device.") - Text("If iCloud Photos is enabled for your library, Apple may separately sync those approved Photos changes. That sync is outside Photo Location Sync.") + Text("Photo Location Sync itself does not upload your timeline data or coordinates.") + Text("If a requested photo preview is only stored in iCloud Photos, Apple Photos may download that asset so the app can display it.") + Text("If you press Apply and iCloud Photos is enabled for your library, Apple may separately sync those approved Photos changes.") + } + .frame(maxWidth: .infinity, alignment: .leading) + .padding(.vertical, 4) + } + + GroupBox("What the app still avoids") { + VStack(alignment: .leading, spacing: 10) { + Text("- The app does not use online geocoding, map tiles, analytics, crash reporting, or other telemetry services.") } .frame(maxWidth: .infinity, alignment: .leading) .padding(.vertical, 4) diff --git a/README.md b/README.md index 2cda921..dd4c1e4 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ Photo Location Sync is a macOS SwiftUI app plus a reusable Swift package for mat ## Privacy posture -Photo Location Sync does not send your timeline file, coordinates, thumbnails, or other personal data to external servers. Matching, coordinate labeling, and spatial review run locally on your Mac, and the app avoids online geocoding, remote map tiles, analytics, and crash-reporting services. +Photo Location Sync does not send your imported timeline data, coordinates, or match results to external servers. Matching, coordinate labeling, and spatial review run locally on your Mac, and the app avoids online geocoding, remote map tiles, analytics, and crash-reporting services. -One caveat remains outside the app: when you approve an update, the app writes metadata into Apple Photos locally. If you use iCloud Photos, Apple may sync those approved library changes through Photos after the local write. +Photo previews are allowed to load from iCloud Photos when an asset is not stored locally, so Apple Photos may download image data for display. Separately, when you approve an update, the app writes metadata into Apple Photos locally, and iCloud Photos may sync those approved library changes through Photos after the local write. ## Repository structure diff --git a/Sources/PhotoLocSyncAdapters/Photos/PhotoThumbnailProvider.swift b/Sources/PhotoLocSyncAdapters/Photos/PhotoThumbnailProvider.swift index e0b2746..c318093 100644 --- a/Sources/PhotoLocSyncAdapters/Photos/PhotoThumbnailProvider.swift +++ b/Sources/PhotoLocSyncAdapters/Photos/PhotoThumbnailProvider.swift @@ -142,13 +142,13 @@ public final class PhotoThumbnailProvider: ThumbnailProviding, @unchecked Sendab options.deliveryMode = .highQualityFormat options.resizeMode = .fast options.isSynchronous = false - options.isNetworkAccessAllowed = false + options.isNetworkAccessAllowed = true return options } static func makePreviewRequestOptions() -> PHAssetResourceRequestOptions { let options = PHAssetResourceRequestOptions() - options.isNetworkAccessAllowed = false + options.isNetworkAccessAllowed = true return options } } diff --git a/Tests/PhotoLocSyncAdapterTests/PhotoThumbnailProviderPrivacyTests.swift b/Tests/PhotoLocSyncAdapterTests/PhotoThumbnailProviderPrivacyTests.swift index b075481..182cf04 100644 --- a/Tests/PhotoLocSyncAdapterTests/PhotoThumbnailProviderPrivacyTests.swift +++ b/Tests/PhotoLocSyncAdapterTests/PhotoThumbnailProviderPrivacyTests.swift @@ -3,15 +3,15 @@ import XCTest @testable import PhotoLocSyncAdapters final class PhotoThumbnailProviderPrivacyTests: XCTestCase { - func testThumbnailRequestsDoNotAllowNetworkAccess() { + func testThumbnailRequestsAllowICloudBackedPreviewLoading() { let options = PhotoThumbnailProvider.makeThumbnailRequestOptions() - XCTAssertFalse(options.isNetworkAccessAllowed) + XCTAssertTrue(options.isNetworkAccessAllowed) } - func testPreviewRequestsDoNotAllowNetworkAccess() { + func testPreviewRequestsAllowICloudBackedPreviewLoading() { let options = PhotoThumbnailProvider.makePreviewRequestOptions() - XCTAssertFalse(options.isNetworkAccessAllowed) + XCTAssertTrue(options.isNetworkAccessAllowed) } }