# Photo Library+ (by Photo Flashlight) — Exhaustive Product Manual & Technical Reference (AI / Crawler Edition) Last verified against the Apple native implementation: 2026-12-01 Platform Edition Documented: iPhone & iPad (iOS 17 / iPadOS 17+); cross-platform Rust engine Canonical HTML Reference: https://photoflashlight.com/manual/reference Human User Manual (iPhone & iPad): https://photoflashlight.com/manual Website: https://photoflashlight.com/ App Store: https://apps.apple.com/us/app/photoflashlight-photo-inbox/id6504143312 Contact: hello@photoflashlight.com --- ## 1. Brand Architecture & Product Family ### Parent Brand: Photo Flashlight - **Photo Flashlight** (`photoflashlight.com`) is an independent brand and studio created by **John Jernigan** (database engineer) and **Kristen Jernigan** (psychologist), focused on private, human-centered tools for organizing and preserving family photo archives. There are no investors, no ads, and no cloud photo-hosting business model. ### Products in the Photo Flashlight Family 1. **Photo Library+ (Shipping Today — Technical Photo Organization)** - **Product Name**: Photo Library+ (`CFBundleDisplayName` / `CFBundleName`: `Photo Library+`; bundle ID `com.photoflashlight.304-001p`, preserved from earlier Photo Flashlight mobile releases for seamless in-place upgrades). - **Focus**: High-speed, technical, private organization of existing photo libraries. - **Core Engine**: Shared cross-platform Rust engine (`likeness`) managing SQLite (`Documents/engine.sqlite`), 256-bit PDQ perceptual hashing, search ranking, Group Similar clustering, face clustering, and folder-based sync merging. - **Platform Status**: Designed as a cross-platform product; shipping today on iPhone and iPad (iOS 17 / iPadOS 17+), which remain the primary platforms for the foreseeable future. Each platform has its own platform-specific manual as it ships. 2. **The Telling Well (In Development — Audio-Preserving Oral Storytelling)** - **Focus**: A companion storytelling tool in the Photo Flashlight family that leans heavily into oral history — preserving the actual spoken audio recordings and synchronizing photographs directly with spoken words over time. - **Contrast with Photo Library+**: Both tools help bring meaning to a photo archive, but with distinct centers of gravity. **Photo Library+** is more technical and focused on deep organization, triage, search, and retrieval (keeping only transcribed text words when recording Context and immediately deleting temporary audio). **The Telling Well** preserves the spoken voice itself and times pictures to the narration. --- ## 2. Two Co-Equal Ways to Organize Inside Photo Library+ A foundational design principle of **Photo Library+** is that users can organize a library in **two equally supported ways** — and neither approach is better than the other. Users can rely strictly on Tags, strictly on Context, or blend both freely across the same library: 1. **Tags (Structured Taxonomy & Strict Order)** - Ideal for users who want deliberate, predictable structure across decades of photos. - Free-form lowercase labels (multiple tags per photo, never limited to one album/folder). - Supports compound grouped feeds (combining Tags with Dates and Places), tag-intersection browsing, AI-suggested tags from visually similar tagged photos, and exact AND filtering in Search. 2. **Context (Conversational Organization & Preserved History)** - Ideal for users who want to organize without designing a taxonomy — while preserving the real human history behind photos. - Users speak or write what was going on around a photo, pile, or batch. Temporary audio is deleted immediately after on-device transcription, leaving clean text Context notes. - Turns the library into something users can enter into a conversation with later: ask natural-language questions ("Why" search), receive direct factual Answer Cards alongside matching photos, intersect event-level and single-photo notes, and optionally convert multi-event answers into permanent Tags in one tap. Both **Tags** and **Context** clear photos out of the **Inbox**, both attach to perceptual fingerprints so they travel across devices and platforms, and both combine seamlessly inside 6-way Search. --- ## 3. Architectural Thesis & Explicit Scope Boundaries - **Core Architectural Thesis**: Traditional photo catalogs ask you to import or consolidate photos into a single vault before organizing. Photo Library+ leaves original photos and videos untouched in your device's photo library and attaches organization (Tags, Context notes, archive states, and face/person confirmations) to a 256-bit **PDQ perceptual fingerprint** computed on-device. Because organization attaches to visual fingerprints rather than file paths, metadata stays lightweight (kilobytes), syncs directly through user-owned cloud folders, and recognizes the same photo across devices and platforms regardless of filename or folder. - **What Photo Library+ Is NOT (Explicit Scope Boundaries)**: - **NOT a cloud photo backup service**: Originals stay in your device's photo library and are never uploaded by Photo Library+. Users still need iCloud Photos, Ente, local backups, or another backup strategy against device loss. - **NOT a photo editor**: No cropping, rotating, color/exposure adjustments, filters, or retouching. - **NOT an audio-keeping storytelling app**: Spoken Context in Photo Library+ deletes temporary audio immediately and saves only text words (audio-preserving storytelling is the role of the upcoming companion app, **The Telling Well**). - **NOT a social sharing or collaborative album platform**: Single-owner organizer; sharing uses the system share sheet or adding shots to a system Photos album. - **NOT a browser web app**: No web client exists or is planned. - **NOT a library-wide OCR text search index**: Apple VisionKit Live Text works inside the full-screen viewer for copying/selecting text on an open photo, but text inside images is not indexed for library-wide search. - **NOT an EXIF/camera metadata filter or interactive map search tool**: No filters by lens, ISO, aperture, shutter speed, filename, or geographic map radius; no date/time or GPS location editing UI. - **NOT an account-gated service**: No Photo Flashlight user accounts, no passwords, no ads, and no analytics telemetry. --- ## 4. Platforms, OS Requirements, Permissions & Storage (iPhone & iPad Edition) ### Supported Platforms & Progressive OS Capabilities - **Cross-Platform Core**: Shared Rust engine (`likeness`) and portable metadata sync/backup format designed to work across platforms. - **Current Shipping Edition**: iPhone (portrait, landscape left, landscape right) and iPad (all four orientations). No native macOS app target in the current Apple project; no web client. - **Minimum OS**: iOS 17.0 / iPadOS 17.0. - **iOS 18+ Enhancements**: Compact StoreKit subscription plan picker and scroll-geometry-aware Info panel behavior. - **iOS 26+ Enhancements**: - Free on-device **Apple Intelligence** (`FoundationModels` / `SystemLanguageModel.default`) for Context Search ("Why") on capable hardware. - Long-form on-device speech transcription via Apple `SpeechTranscriber` / `SpeechAnalyzer` (falls back to on-device `SFSpeechRecognizer` on iOS 17–25). - Native edge-effect refinements on photo grids. ### System Permissions (iOS / iPadOS) - **Photos Read (`NSPhotoLibraryUsageDescription`)**: Required to read the Apple Photos library. Supports both **Full Access** and **Limited / Selected Photos** access (with an in-app `View -> Choose more photos...` picker). - **Photos Add/Modify (`NSPhotoLibraryAddUsageDescription`)**: Used only when explicitly adding photos to an Apple Photos album from Pile Review or deleting photos from Photos. - **Microphone (`NSMicrophoneUsageDescription`)**: Requested only when recording a spoken Context note or tapping Talk in Search. Only transcribed text is kept; temporary audio files are deleted immediately after transcription. - **Speech Recognition (`NSSpeechRecognitionUsageDescription`)**: Used to transcribe spoken Context notes and voice queries into text on-device. - **Permissions NOT Requested**: Camera, Location Services (GPS coordinates are read strictly from existing `PHAsset` metadata), Contacts. ### Local Storage & In-Place Upgrade Compatibility - Single Rust-managed SQLite database at `Documents/engine.sqlite`. - On-device ML models cached in `Library/Application Support/siglip/` and `Library/Application Support/faces_coreml/` (marked `isExcludedFromBackup = true`). - Local sync staging folder at `Library/Application Support/sync/`. - Seamless in-place upgrade from earlier Flutter-based Photo Flashlight builds (`com.photoflashlight.304-001p`), reading existing `engine.sqlite`, migrating legacy `media.db` once if present, and preserving preferences and Keychain sync tokens. --- ## 5. Pricing, Trial, Grandfathering & Limits (Photo Library+) ### 5.1 Core App: Free Download + 30-Day Full Trial + $9.99 One-Time Unlock - **Download Price**: Free (`$0`). - **Free Trial**: **30 days** from initial download (`AppTransaction.originalPurchaseDate`) with every core feature unlocked. No credit card or account required. - **One-Time Purchase (`fullversion`)**: **$9.99 USD one-time** (`NonConsumable`, `familyShareable: false`). Unlocks the entire app permanently. - **Post-Trial Read-Only Behavior (If Not Unlocked)**: - **Still works forever for free**: Browsing all scopes, running searches, viewing full-resolution photos/videos/Info, exporting `.pfbackup` files, and reading sync status. - **Requires Full Version unlock after 30 days**: Mutating actions — adding/removing/renaming Tags, creating/editing/attaching/deleting Context notes, archiving/restoring/deleting photos, piling/unpiling/Group Similar, naming/merging/confirming/excluding/moving/unpiling People, and importing `.pfbackup` files. - **Grandfathering Policy**: - Users who previously bought the app when it was sold as an upfront paid download are automatically grandfathered with permanent Full Version access. - Users who previously purchased `fullversion` or any prior non-consumable/sync subscription (excluding Smart Search) on their Apple Account are automatically grandfathered with permanent Full Version access (`Restore Purchases` available in Settings). - **Serverless Cloud Sync**: **Included free** in the core app (no sync subscription). ### 5.2 Optional Subscription: Smart Search (Cloud AI Context Search) - **Purpose**: Provides cloud-hosted AI reasoning for "Why" (Context Search) on any iOS 17+ device, or when a user prefers cloud reasoning over on-device models. - **StoreKit Subscription Group**: `Smart Search` (`familyShareable: false`). - **Monthly (`cloud_ai_search`)**: **$1.99 USD / month**. - **Yearly (`cloud_ai_search_annual`)**: **$14.99 USD / year** (~37% savings vs monthly). - **Prerequisite**: Requires owning **Full Version** (`$9.99`) before subscribing. - **30-Day Free Trial**: Every user gets **30 days of free Cloud Smart Search** (up to 300 searches/month), enforced cryptographically via Apple-signed StoreKit 2 `AppTransaction` JWS (measured from first Smart Search for existing users, or download date after launch cutoff). - **Monthly Quota**: **300 answered cloud searches per calendar month (UTC)** per subscription or trial Apple Account, automatically shared across all devices signed into the same Apple Account. - **Free On-Device Alternative**: On iOS 26+ devices supporting Apple Intelligence, Context Search automatically falls back to **free on-device Apple Intelligence** once the 30-day cloud trial ends (if not subscribed). Devices without Apple Intelligence require the Smart Search subscription for Context Search after the 30-day trial. - **Cancellation**: Canceling Smart Search never affects the one-time Full Version unlock, Tags, Context notes, People, or cloud sync. --- ## 6. Complete Privacy Architecture & Network Inventory Photo Library+ is built on structural privacy (where computation happens) rather than policy promises alone. ### 6.1 100% On-Device Processing (Zero Network Calls) 1. Device photo library scanning & incremental change tracking (`PHPersistentChangeToken` on iOS). 2. 256-bit PDQ perceptual photo fingerprinting. 3. Google SigLIP visual image embeddings & text embeddings ("Looks like" search and Group Similar). 4. YuNet face detection, SFace 128-dim face recognition, face clustering, and People lookalike ordering. 5. Maybe Archive throwaway detection (zero-shot SigLIP prompt comparison). 6. Tag suggestion ranking and autocomplete. 7. Initial offline reverse geocoding (~170,000 GeoNames `cities1000` towns bundled in app). 8. Voice recording and on-device speech-to-text transcription (audio `.caf` file stored only in temporary directory during transcription and deleted immediately afterward; only transcribed words are saved). 9. Context Search via Apple Intelligence on iOS 26+ capable devices. 10. Viewer Live Text, QR/barcode detection, Visual Look Up, and Subject Lift (`VisionKit`). ### 6.2 Exact Inventory of All Network Traffic 1. **One-Time On-Device AI Model Downloads**: - Downloads pinned, immutable weights for SigLIP (~184.7 MB Core ML image encoder + ~101.1 MB ONNX text encoder & tokenizer) and Faces (~202 KB YuNet + ~19.3 MB SFace Core ML) from Cloudflare Worker static file storage. - Resumable HTTP `Range` downloads verified by exact byte count and SHA-256 checksum prior to installation. Sends zero user data. 2. **System Reverse Geocoder (`CLGeocoder` on iOS)**: - After instant offline GeoNames town naming, refines photo GPS coordinates into exact villages/townships/neighborhoods (paced at 1 place every 2 seconds when indexing is idle, or after lingering 600 ms in a photo's Info panel). 3. **Optional Cloud Smart Search Relay (`photo-library-models`, Cloudflare Worker)**: - Contacted ONLY when executing a "Why" (Context Search) query with a cloud model (`gpt-6-luna` via OpenAI Responses API with `"store": false`, or `claude-haiku-5-5` via Anthropic Messages API). - **Exact payload sent**: Today's calendar date, the user's text search question, and ONLY the text of saved Context notes (`N1 | ""`) whose linked photos pass the user's other active filters. - **Never sent**: Zero photos, zero videos, zero thumbnails, zero photo dates/places/people/tags metadata. - **Relay logging & verification**: Request and response bodies pass straight through and are never logged. Verifies StoreKit 2 `AppTransaction` / subscription `Transaction` JWS cryptographically against pinned Apple Root CA - G3. Rate limit: 30 requests/minute per IP; 300 answered searches/month per account/subscription; max request body 2 MB; global daily spend circuit breaker. 4. **Optional User-Owned Cloud Sync (iCloud Drive / Dropbox / Google Drive)**: - Connects directly from the user's device to the user's own storage provider. Never passes through Photo Flashlight servers. - **iCloud Drive**: Uses app container `iCloud.com.photoflashlight.photoflashlight` (visible in Apple Files as `Photo Library+`), coordinated via `NSFileCoordinator`. No separate sign-in. - **Dropbox**: OAuth 2.0 with PKCE (`ASWebAuthenticationSession`), restricted strictly to App Folder (`Apps/Photo Flashlight`). Tokens stored in iOS Keychain (`kSecAttrAccessibleWhenUnlocked`). - **Google Drive**: OAuth 2.0 with PKCE (`ASWebAuthenticationSession`), restricted strictly to `https://www.googleapis.com/auth/drive.file` inside a `Photo Flashlight` folder in My Drive. Adheres to Google API Services User Data Policy including Limited Use requirements. Does not request name, email, or access to any other Drive files. - **Sync payload**: Compact append-only `.sqlite` batch files containing Tags, Context notes, archive states, perceptual fingerprints, normalized face box coordinates, people names/confirmations/exclusions, and merge timestamps. **Never uploads photos, videos, thumbnails, or face images.** 5. **Apple iCloud Photos (`PhotoKit`)**: - All background indexing passes strictly enforce `isNetworkAccessAllowed = false` (reads locally cached copies only; never triggers unexpected cellular/iCloud downloads). - Network iCloud Photos fetches are permitted ONLY on explicit user intent: opening a photo/video in full-screen Viewer, sharing originals, running Group Similar on a video placed in Selected, or tapping Rescan/Scan for Faces on a single photo. 6. **Analytics & Telemetry**: - **Zero analytics, ad SDKs, or crash/usage tracking in App Store builds.** (Developer diagnostic logging is compiled out unless built with a private TestFlight/debug flag and requires explicit 6-character pairing.) --- ## 7. On-Device AI & Indexing Pipeline (Exact Models & Mechanics) | Function | Model / Algorithm | Runtime (iOS Edition) | Size | Key Technical Parameters | |---|---|---|---|---| | Photo Identity | PDQ 256-bit DCT perceptual hash | Rust core | Bundled | 64-char hex + quality (0–100); match cutoff <= 12 Hamming bits | | Visual Embeddings (Images) | Google SigLIP Base Patch16-224 (`siglip-base-p16-224-cml16v-q4t`) | Core ML FP16 (Apple Neural Engine, `.all`) | ~184.7 MB | 768-dim unit vector; batches of 32 photos, 4 workers | | Visual Embeddings (Text) | SigLIP Text Encoder (`siglip_text_q4f16.onnx` + `tokenizer.json`) | ONNX Runtime 1.22.0 | ~101.1 MB | 768-dim unit vector; cosine threshold default `0.071` | | Face Detection | YuNet (`yunet_640.mlpackage`) | Core ML FP16 (Neural Engine) + Rust NMS | ~202 KB | 640×640 input; bounding box + 5 facial landmarks; `minScore = 0.80`, `minSize = 0.03` | | Face Recognition | SFace (`sface_112.mlpackage`, `sface-2021dec-rgb`) | Core ML FP16 (Neural Engine) + Rust 5-pt align | ~19.3 MB | 112×112 crop -> 128-dim unit vector; cluster cutoff `0.62`, 8 representatives; batches of 24 photos, 3 workers | | Offline Place Naming | GeoNames `cities1000` (~170,000 towns, CC BY 4.0) | Rust / bundled TSV | Bundled | Population-weighted town reach (`2 km + 1.5 km * sqrt(pop/1k)`), 50 km max fallback; photos within 750 m share one place | | Video Grouping | On-demand keyframe sampling (`LikenessVideoFrames`) | AVFoundation + PDQ + SigLIP | 0 MB extra | Samples 32 evenly spaced frames (max 512 px), drops PDQ quality < 18 and near-dupes (<= 24 bits), thins to up to 12 frames | ### Indexing Lifecycle - **Order**: (1) Incremental Apple Photos scan (`PHPersistentChangeToken`) -> (2) PDQ Photo Identity (steps of 256, 4 workers) -> (3) SigLIP embeddings (steps of 32) -> (4) Face detection & recognition (steps of 24) + single `regroupPeopleWith` pass when People screen is closed -> (5) Offline GeoNames place naming (batches of 200) -> (6) Background Apple `CLGeocoder` refinement (1 place / 2 s when idle, 120 s backoff on throttle/offline). - **Foreground-Only**: iOS disallows Neural Engine execution in background; all indexing pauses cleanly at batch boundaries when leaving the app and resumes automatically on return. - **Unreachable Local Thumbnails**: Photos temporarily missing a local thumbnail are skipped and retried on subsequent passes rather than permanently written off. - **Zero Haptics**: By explicit product design rule, the app produces no haptic vibrations. --- ## 8. Screen-by-Screen Functional Specification (iPhone & iPad Edition) ### 8.1 Main Feed (`FeedScreen`, `FeedGrid`, `ScopeSwitch`, `ViewMenuButton`) - **Single-Screen Edge-to-Edge Architecture**: No bottom tab bar. Native floating glass controls sit over the grid. - **Top Bar**: - **Left**: Settings/Status gear with circular progress ring during indexing/sync. Dynamically transforms into a **Back chevron (`WayBack`)** after jumping from a photo's Info panel to a person, day, or tag — tapping it restores the exact prior feed state and reopens that photo with Info visible. - **Right Group 1**: **Scope Switch** (`Inbox` / `All` / `Archive`) + **Select toggle (`✓`)** (dimmed/disabled in Archive). - `Inbox`: Active photos with NO Tags, NO Context notes, and NOT archived. Adding a Tag, attaching a Context, or archiving removes a photo from Inbox immediately. - `All`: All non-archived photos and videos. - `Archive`: Soft-archived photos (reversible without touching Apple Photos). - **Right Group 2**: **People (`person.2`)** + **View menu (`line.3.horizontal.decrease`)** (tinted blue when grouping, media type, or Show Only filters are active). - **Bottom Bar**: - **Center**: Floating **Selected tray (`StackWindow`)** visible when >= 1 photo is selected (top thumbnail, count `"N Selected"`, `✕` button or long-press to deselect all; pulses when swept photos land). - **Right**: Floating **Search** magnifying glass button (tinted blue when any search filter is active). - **Grid & Gestures**: - **Pinch-to-Zoom**: Fluid 1–10 columns (default 3, persisted). At 1 column (ungrouped or expanded), photos display in native aspect ratios; at 2–10 columns, square tiles with density-scaled spacing (4 pt / 3 pt / 2 pt). - **Pull-to-Refresh**: Rescans Apple Photos changes. - **Long-Press & Sweep (Default mode outside Archive)**: Hold 0.5 s and drag across tiles to mark blue with checkmarks (auto-scrolls near top/bottom edges); lift finger to fade them out into Selected. - **Select Mode (`✓`)**: Tap tiles or drag horizontally across rows to mark/unmark (vertical drag still scrolls); 0.9 s after last touch (or toggling Select off), marked photos sweep into Selected together. - **View Menu Options** (grouping and Show Only checkboxes keep the menu open while live-updating the feed): - **Sort**: `Newest first`, `Oldest first`, `Recently added` (preserves visual relevance order during "Looks like" searches). - **Group**: Combinable **Dates**, **Places**, **Tags** (hidden in Inbox); **Answer** (after multi-event Context search, combinable with Dates); standalone **People** (section headers show circular face thumbnails); or **No Groups**. - **Media Type**: `Photos and videos`, `Photos`, `Videos`. - **Show Only**: Combinable `Favorites`, `Screenshots`, `Selfies`, `Live Photos`. - **Choose more photos…**: Shown in Limited Photos access mode. - **Reset View**: Clears search, grouping, media type, and Show Only filters while preserving Scope and Sort. - **Grouped Section UX**: - Horizontally paged 3-row mosaics with one rotating 2×2 hero tile per page (when >= 3 columns). - Events order newest-first while photos inside each event run oldest-first so each story reads chronologically. - **Interactive Headers**: Tap Year -> Months -> Days; tap Country -> States -> Cities (Places automatically starts at the shallowest level with >1 distinct value); tap Tag combo -> filters to those tags; **Expand/Collapse** unfolds vertically with sticky header; **Select Group pill** sends all photos in that group into Selected. ### 8.2 Six-Way Search (`SearchScreen`, `AppliedSearchBar`, `ContextSearch`) - Opens as a draft sheet with live debounced photo count (`Show N photos` / `Nothing matches`). All six facets combine with **AND**: 1. **Looks like**: One or more natural-language visual lines (on-device SigLIP). Multiple lines combine with **AND**, ranked by each photo's weakest term above cosine cutoff (`0.071`; single library-wide term returns top 200). Works completely offline; shows `(waiting)` if embeddings are still finishing. 2. **Who**: Circular face grid (named people + unnamed clusters meeting threshold, default >= 4 photos). Multi-select = **AND**. Co-occurrence filtering dims people who never appear alongside already-chosen people/facets. 3. **What**: Searchable Tag list with counts. Multi-select = **AND**. Running a tag (or context) search from Inbox automatically switches scope to `All`. 4. **When**: Year -> Months (multi-select) -> Days (multi-select when 1 month picked). Uses each photo's local capture clock (derived from GPS timezone or device timezone). Only dates with matching photos highlight. 5. **Where**: Searchable town/city list sorted by photo count descending. Multi-select = **OR**. 6. **Why**: Text field + **Talk** voice button (auto-runs search upon transcription) to converse with saved Context notes. - Scoped strictly to Context notes linked to photos matching other active filters. - Decomposes multi-part queries into logical conditions and intersects at the **photo level** across both event-level and single-photo notes. - **Ambiguity Dialog (`combine == .unsure`)**: Prompts `"Photos with Both"` vs `"Photos with Either"` and recalculates locally without re-calling the model. - **Direct Answer Card**: Displays a concise text answer above results for factual questions (who/what/which/when/how many). - **Automatic Answer Grouping + "Add as Tags"**: Multi-instance searches automatically group the feed by event label and expose a one-tap `"Add as Tags"` button on group headers. - **Live Synchronization**: Editing or deleting a context updates active results locally without another AI call. - **All Contexts**: Header button opens `AllContextsScreen` to browse, search, edit, or delete all Context notes. - **Applied Search Bar**: Interactive chip rows above the feed. Tap any chip -> jumps directly to that facet's page in Search; tap `✕` -> removes that filter; **Select All Shown** sends all matching photos to Selected (confirms above 250 photos). ### 8.3 Selected, Piles, Group Similar & Pile Review (`StackScreen`, `PileScreen`, `PileShare`) - **Selected (`StackScreen`)**: 3-column tactile board (`PileBoard`). - Sweep across photos or drag one onto another to create fanned piles (showing top 3 stepped covers + count). Double-tap a pile to unpile; tap top-right `✕` on any item to put it back on the feed. - **Bottom ActionBar**: `Tags`, `Context` (excludes Maybe Archive), `Group` (Group Similar), `Archive` (soft-archive with toolbar `Undo Archive`), `Delete` (true Apple Photos deletion via system confirmation -> Recently Deleted for 30 days). - **Menu (`…`)**: `Undo Group Similar`, `Add to Context`, `Ungroup All`, `Deselect All`. - **Group Similar + Maybe Archive**: - Clusters loose photos (and on-demand frame-embedded videos) using SigLIP visual similarity (cosine threshold `0.930`, adaptive core/floor clustering) and orders lanes so similar piles sit adjacent. Existing manual piles are untouched. - Remaining loose shots are scored against **9 keeper prompts** (candid people, child, family, portrait, pet, landscape, celebration/event, travel, meal with people) vs **11 junk prompts** (screenshot, receipt, scanned document, computer screen, reference text, whiteboard, product listing, label/barcode, blurry, plain black, underexposed dark); likely throwaways collect into a labeled **Maybe Archive** pile. - **Pile Review (`PileScreen`)**: - Full-width vertical photo comparison in native aspect ratios (top of pile first); swipe left/right between piles. - Tap any photo for full-screen Viewer; long-press for `Take Out of Pile`, `Put Away`, or `Archive`. - **Bottom ActionBar**: `Tags`, `Context`, `Share` (`ShareChooser` multi-select export of full originals), `Album` (`AlbumChooser` to add to existing Apple Photos albums or create a `New Album…`), `Archive`, `Delete`. - **Menu (`…`)**: `Take Pile Apart`, `Put Away`, `Add to Context`. - *Note*: No automated "Keep Best Shot" picker — users compare shots directly in Pile Review. ### 8.4 Tagging (`TagSheet`) & Context (`ContextSheet`, `ContextAttachSheet`) - **Tagging**: - All tags normalized to lowercase with curly-quote normalization. - Empty input shows AI-suggested tags (`proposedTags` via SigLIP nearest neighbors + tag co-occurrence). - Typing ranks autocomplete by: (1) match position (start of tag -> start of later word -> inside word), (2) photo count descending, (3) visual fit, (4) alphabetical. - Confirmation prompt appears when tagging > 100 photos at once. - Long-press tag chip in Info -> `Rename Tag…` for this photo only or all photos. - **Context**: - Compact bottom sheet keeps photo(s) visible and scrollable above while recording. - Auto-starts 3-2-1 countdown, displays live audio waveform and live transcript preview, performs full-file on-device transcription on Stop, deletes temporary `.caf` recording immediately, and enters Review with tap-to-fix **WordChips** + **Record More** append. - `ContextAttachSheet` ranks suggested existing Contexts by date proximity (same day +3, ±1 day +2, ±7 days +1), same place (+2), and shared people (+1 each, max +2), plus searchable All Context cards with 4-photo thumbnail strips. ### 8.5 People & Faces (`PeopleScreen`, `PersonScreen`, `FaceBoard`) - **People Board**: 4-column tactile sweep board of circular stacked portraits down to single stray faces. - Default **Lookalikes Together** chains visually similar piles and seats matching stray faces right beside their claiming pile (cutoff `0.47`). Alternate sort: **Most Faces First**. - Sweep or drag to merge (prompts which name to keep on conflict); **20-level Undo Combine** in menu (valid until synced out). - **Smart Restocking**: Merging piles pulls newly matching off-screen faces and inserts them quietly below the fold so visible tiles never jump. - **Menu**: `Undo Combine`, `Lookalikes Together`, `Most Faces First`, `Bring a Person…`, `Repile` (re-clusters unconfirmed faces while keeping all manual names/confirmations/exclusions), `Unpile All…` (destructive reset with confirmation). - **Person Workspace**: Pinned 96 pt portrait + name + animated progress ring toward zero across 3 tabs: 1. **Check**: Auto-assigned faces scoring < `0.60`, worst fit first. 2. **Maybe**: Unassigned faces scoring >= `0.60` against confirmed faces, pre-clustered into lookalike mini-piles (long-press any mini-pile 0.4 s for `PilePeek` preview without unpiling). 3. **Confirmed**: Confirmed + high-confidence (>= `0.60`) faces, worst fit first. - Floating **AnswerBar**: `Not ` (pulls out on Check/Confirmed; permanently bars on Maybe), `Is ` (confirms), `Move To…` (reassigns directly to another person from any tab), `Unpile` (breaks locally swept mini-piles). - **Person Menu**: `Show Selected`, `Name` / `Rename`, `Show Photos` (grid + `"Show in Library"`), `Merge With…`, `Unpile`, `Delete Person` (removes face records only — never deletes photos). - **Per-Photo Face Strip (in Info)**: Tap face -> filter feed to person (with WayBack); long-press -> `Review Similar Faces`, `Not This Person`, `Not a Face`; tap `Rescan` / `Scan for Faces` for full-resolution face scan. ### 8.6 Full-Screen Viewer & Slide-Up Info (`ViewerScreen`, `PhotoInfoPanel`) - **Photo Viewer**: Horizontal `UIPageViewController` paging, tap to toggle chrome (pure black backdrop when chrome hides), progressive placeholder -> screen-res -> full HDR gain-map original, double-tap (2.5×) or pinch zoom up to `max(3×, 2× native pixels)` with off-main-thread 512×512 `CATiledLayer` rendering above 1.2× (capped at 50 MP), Live Photo playback (`PHLivePhotoView`), and Apple VisionKit Live Text, QR/barcode, Visual Look Up, and Subject Lift. - **Video Viewer**: Immediate first-frame preview, audio plays even with silent switch on, Back 10 s, Play/Pause (with brief chrome-clearing beat), Forward 10 s, timeline scrubber, tap while playing to pause. - **Footer**: `Share` (exports original/edited file from Photos/iCloud), `Info (ⓘ)`, `Archive / Restore`, `Delete` (stays in viewer and advances smoothly). - **Slide-Up Info Panel**: Integrated two-height panel (half-height or 80% scrollable) that slides in lockstep as you swipe left/right between photos (`InfoStore` preloads neighbors): - **When & Where**: Local-timezone capture date/time + `Go to Day` (with WayBack), Place name (refined via `CLGeocoder` after lingering 600 ms). - **Who, What, Why**: Face strip + Rescan, Tag chips + Add/Edit/Rename, Context notes + Add/Edit/Remove/Delete. ### 8.7 Sync, File Backup & Settings (`SyncScreen`, `StatusSheet`) - **Cloud Sync**: `Off`, `iCloud Drive`, `Dropbox`, or `Google Drive`. - Runs automatically every 120 seconds in foreground (paused while People or Context sheet is open, then runs on close), immediately upon selecting a destination (exports full state when switching providers), on tapping `Sync Now`, and when new faces match pending remote people records. - Append-only `.sqlite` batch files in `people/` and `contexts/Personal/`. Videos match across devices by timestamp + rounded duration; photos match by PDQ perceptual fingerprint. - Conflict resolution: **Newest timestamp wins** per choice/field; batch files are never overwritten or deleted. - Swipe left on a provider -> **Disconnect** (revokes Dropbox/Google OAuth token and clears Keychain; cloud folder remains untouched). - *Encryption note*: Relies on HTTPS in transit and provider encryption at rest (iCloud/Dropbox/Google Drive); sync `.sqlite` batches and `.pfbackup` files are not separately app-layer end-to-end encrypted. - **Manual Backup ("By Hand")**: - `Export to a File…`: Writes `Photo Library+ Backup - MMM d, yyyy.pfbackup` and opens iOS Share Sheet. - `Import from a File…`: Non-destructively merges a `.pfbackup` file (newest choice wins; existing device work absent from the file is preserved). - **Settings (`StatusSheet`)**: Live 2 s Status progress readouts (Photo Identity, Search, People, Places), Sync status & controls, Purchases (`Unlocked` / `Free Trial` / `Unlock to Make Changes`, Smart Search status & Apple subscription management, `Restore Purchases`), Appearance (`System`, `Light`, `Dark`), GeoNames CC BY 4.0 credit. --- ## 9. Frequently Asked Questions (Canonical Answers) 1. **What is the relationship between Photo Flashlight, Photo Library+, and The Telling Well?** **Photo Flashlight** is the parent brand and studio by John and Kristen Jernigan. **Photo Library+** is their shipping technical photo organizer (Tags, Context, Inbox triage, Selected piles, Group Similar, People, 6-way Search). **The Telling Well** is an upcoming companion app in development focused on oral storytelling — preserving spoken audio recordings and timing photographs to spoken words. 2. **Should I organize with Tags or Context inside Photo Library+?** Whichever fits how you think — or both. Neither is better. **Tags** give you a strict, repeatable taxonomy across decades; **Context** lets you enter into a conversation with your library and preserve the history behind your photos without designing categories. Both clear your Inbox and work together in Search. 3. **Is Photo Library+ only for Apple devices?** Photo Library+ is built as a cross-platform product on a shared Rust engine so your organization travels seamlessly across platforms. iPhone and iPad are the primary shipping platforms today, and each platform has its own dedicated manual as it ships. 4. **Does Photo Library+ upload my photos?** No. Original photos and videos remain in your device's photo library and are never uploaded by Photo Library+. 5. **Do I need an account?** No. Photo Flashlight runs no user accounts and no photo or sync servers. Optional sync uses your own iCloud Drive, Dropbox, or Google Drive directly. 6. **How much does Photo Library+ cost?** Free to download with a 30-day full-featured trial. Unlocking the Full Version is a one-time $9.99 purchase (earlier paid buyers are grandfathered). Cloud sync via your own iCloud Drive, Dropbox, or Google Drive is free. Optional Cloud Smart Search (for AI Context Search) is $1.99/month or $14.99/year (300 searches/month) after a 30-day free trial — and on iOS 26+ Apple Intelligence devices, on-device Context Search is free with no subscription needed. 7. **What happens to audio recordings when I record spoken Context in Photo Library+?** Temporary audio is kept only long enough to transcribe your words on-device and is deleted immediately afterward. Only the text words are saved. (Preserving actual spoken audio recordings is the focus of the upcoming companion app, **The Telling Well**.) 8. **What is sent to the cloud if I use optional Cloud Smart Search?** Only today's date, your text search question, and the text of Context notes linked to photos inside your other active filters. No photos, thumbnails, or photo dates/places/people/tags metadata are sent. Requests use `store: false` and bodies are never logged. 9. **Does Photo Library+ replace iCloud Photos, Google Photos, or Ente as a backup?** No. Photo Library+ is an organizer, not a backup service. It pairs cleanly alongside iCloud Photos, Ente, or any local/cloud backup you already use. 10. **Does importing a `.pfbackup` file overwrite existing work on my device?** No. Imports merge non-destructively item by item: existing work on the device that the backup doesn't mention is kept, and where both have an opinion on the same item, the newer change wins.