Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
1c2c663
Companions: clean up appended-form temp files; Reorganize moves them …
Nishith Nov 29, 2026
5379edf
Dedupe review: panes show the decision the plan will make
Nishith Nov 29, 2026
ca58b4e
Unlock sheet: Return takes the free action; Shortcut uses the stored …
Nishith Nov 29, 2026
e998136
German: localize alert, safety-card and History text; locale decimals…
Nishith Nov 29, 2026
6977a5c
Dedupe: pair fan-out never reaches an unreviewed group; stale Undo is…
Nishith Nov 29, 2026
c3f3a8d
Companions: index owners per folder instead of scanning it for each s…
Nishith Nov 29, 2026
f69ba72
Run: Not Now on a refused copy brings the finished preview back
Nishith Nov 29, 2026
b8ed39a
Docs: record the 2.1 sweep decisions and the edit-preservation follow…
Nishith Nov 29, 2026
9ad795e
Docs: mark the three sweep decisions the owner approved
Nishith Nov 30, 2026
20a6dba
Tests: Shortcut configuration tests compile on Swift 6.0.3
Nishith Nov 30, 2026
625b5e7
Shortcut: Organize Folder uses the stored verify, parallel and worker…
Nishith Nov 30, 2026
ac29b36
Release: version 2.1 and draft 2.1 What's New in English and German
Nishith Nov 30, 2026
41496de
Photos import: staging a pending copy still reads from survives cleanup
Nishith Nov 30, 2026
a27dc51
Dedupe: a unique RAW partner is never trashed; faster free offer; rev…
Nishith Nov 30, 2026
511ec15
Docs: record the 2.1 second-batch decisions and known items
Nishith Nov 30, 2026
795ec0b
Docs: approve the 2.1 scope and build order; add the release tracker
Nishith Dec 1, 2026
2e3b59f
Docs: NAS copy limit comes from macOS SMB, not the NAS; reword H1
Nishith Dec 1, 2026
7c9979c
Merge remote-tracking branch 'origin/main' into fix/release-2.1-second
Nishith Dec 1, 2026
18f654e
Merge branch 'main' into fix/release-2.1-second
Nishith Dec 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Do not weaken these unless the user explicitly asks for a product change.
- **INV-11:** Failure thresholds intentionally stop bad runs: 5 consecutive failures or 20 total failures.
- **INV-12:** Deduplicate moves files to the macOS Trash only. Hard delete is not available in the production UI or executor commit path.
- **INV-13:** The dedupe audit receipt directory (`.organize_logs/`) is preflighted before any deletion. An unwritable destination aborts the commit with `ReceiptPreflightError` and zero files touched.
- **INV-14:** Pair-as-unit conflict resolution is **Keep-wins**: when either half of a RAW+JPEG or Live Photo HEIC+MOV pair has an effective Keep — explicit, automatic (the cluster's auto-suggested keeper), or implicit (default-Keep in an unreviewed low/medium-confidence cluster) — neither half is deleted. Pair-fanout deletes a partner only when that partner is itself marked Delete, auto-selected for Delete by a high-confidence cluster, or is a singleton outside any cluster. When a plan is built from reviewed groups only, a partner that belongs to a group not yet reviewed is never added by fan-out; its own group decides once it is reviewed. Metadata sidecars (`.xmp`, and `.aae` edit instructions, including the iPhone form where `IMG_<digits>.<ext>` owns `IMG_E<digits>.aae` in the same folder with exactly the same digits) extend this rule: a sidecar travels with its parent photo as a unit and is trashed only when **every** photo that references it is also being deleted (and no surviving pair partner shares its basename). A sidecar shared across a basename unit — `photo.xmp` applies to both `photo.raw` and `photo.jpg` — survives if any owner is kept.
- **INV-14:** Pair-as-unit conflict resolution is **Keep-wins**: when either half of a RAW+JPEG or Live Photo HEIC+MOV pair has an effective Keep — explicit, automatic (the cluster's auto-suggested keeper), or implicit (default-Keep in an unreviewed low/medium-confidence cluster) — neither half is deleted. Pair-fanout deletes a partner only when that partner is itself a duplicate: marked Delete, or auto-selected for Delete by a high-confidence cluster. A partner outside every cluster stays, because it is the only copy of that content; the one exception is a Live Photo video (never clustered), which goes with its still only when a copy the plan keeps has its own video. Among otherwise identical copies, the one that has a RAW or Live Photo video partner is the suggested keeper, so the lone copy is the one removed. When a plan is built from reviewed groups only, a partner that belongs to a group not yet reviewed is never added by fan-out; its own group decides once it is reviewed. Metadata sidecars (`.xmp`, and `.aae` edit instructions, including the iPhone form where `IMG_<digits>.<ext>` owns `IMG_E<digits>.aae` in the same folder with exactly the same digits) extend this rule: a sidecar travels with its parent photo as a unit and is trashed only when **every** photo that references it is also being deleted (and no surviving pair partner shares its basename). A sidecar shared across a basename unit — `photo.xmp` applies to both `photo.raw` and `photo.jpg` — survives if any owner is kept.
- **INV-15:** Organize and dedupe traversal must not follow symlinks or aliases by default. Skip symlink files/directories, app bundles, photo libraries, packages, hidden system-like containers, and any path that escapes the selected root.
- **INV-16:** Fast destination scans are validating scans: cached records are trusted only when the file still exists and size/mtime still match; stale cache rows are refreshed or removed.
- **INV-17:** Dedupe mutation plans are immutable content-verified snapshots. The planner never reads live filesystem identity; missing target hashes fail closed and exclude that path from deletion.
Expand Down
28 changes: 28 additions & 0 deletions DECISIONS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Decisions

## Release 2.1 scope and press lens (2026-11-30)

- Owner: 2.1 ships when ranks 1 to 11 of the next-half review and anything added since are done; there is no date. Press outreach follows 2.1.
- Owner, 2026-12-01: accepted the build order, the press scope additions and cards B12 (Shortcuts and Finder actions), B13 (reviewer sample library) and B14 (technical post and press page) in `docs/plan/next-half/README.md`, "Release 2.1 scope and press lens". NAS public is required for 2.1.
- Agent's judgment, not challenged by the owner: Guardian mirror and restore stay deferred and B9 (scrub-only) is the press headline; card ingest, a library timeline, metadata-complete Photos export and direct iPhone import are declined for 2.1.
- Owner, 2026-11-30: B12 gains a Finder Quick Action on folders that opens the Organize preview. Owner, 2026-12-01: B12 also gains a Quick Action on files that copies them into their dated place in the default destination. It completes from Finder only when every item has a certain date, no conflicting-date warning and no name collision; otherwise it opens the app's preview (full rules in the B12 card).
- Owner, 2026-12-01: B9 gains an explicit "start tracking this folder as it is today" baseline through `GuardianManifestUpdater.accept`, which INV-23 already permits.
- Owner, 2026-12-01: release state is tracked in `docs/plan/release-2.1/PROGRESS.md` (features, owner checks, release gates). Plan folders stay the source of truth; no GitHub Project or per-work-package issues.

## Release 2.1 bug sweep (2026-11-29)

- Pair fan-out and unreviewed groups (INV-14; decided by the agent during the sweep, approved by the owner 2026-11-29): the commit plan is built from reviewed groups only, so a RAW or Live Photo partner sitting in an unreviewed group had no decision and was added to the plan while its own group showed it as kept. The planner now takes `fanoutProtectedPaths`; the store passes the members of unreviewed groups for the reviewed plan, the free removal batch and the lane summaries. A held-back partner stays until its own group is reviewed, which can leave a RAW without its JPEG. Planning over all groups is unchanged.
Expand All @@ -11,6 +20,25 @@
- A count of 1 on the dedupe unlock button reads "Unlock to Remove 1 Duplicate" (implementer's wording; approved by the owner 2026-11-29).
- Not built, needs a design decision: skipping a companion whose owner failed verification (edit preservation B-2, item 3). Copy jobs carry no owner link and owner and companion can be prepared in the same concurrent batch.

## Release 2.1 second batch (2026-11-29)

Owner decisions, given as answers to a question list on 2026-11-29:

- Lone RAW (INV-14, approved): the copy that has a RAW or Live Photo video partner is the suggested keeper, and a partner is trashed only if it is itself a duplicate. Built as a keeper tie-break after RAW-first and before the path tie-break in `DuplicateClusterer`, and a guard in planner step 5: a partner outside every cluster stays.
- Fix before 2.1 (approved): the free-removal offer speed, Photos staging kept for an unfinished copy (D-PIR-130 in `docs/plan/photos-import-resume/DECISIONS.md`), the Shortcut using stored preferences, and saved-review loss.
- Version 2.1 and draft 2.1 store text in English and German (approved to draft; the text itself is not reviewed).

Decided by the agent while building these; the owner has not reviewed them:

- Live Photo videos are never hashed or clustered, so "outside every cluster" proves nothing for a MOV. A MOV outside every cluster goes with its still only when a copy the plan keeps has its own MOV; otherwise it stays as a standalone video. MOV content is not compared, as before.
- The free removal batch is found by searching over a prefix of the lane-ordered groups, starting from the prefix the full plan's per-group counts predict, instead of growing one group at a time. Every candidate is still a real planner result checked against the limit and the full plan. In rare pair cases the batch can differ from the old walk: it may take a later prefix that passes, and it does not probe one group past a passing first guess.
- A dedupe commit that moved 0 files keeps the saved review.
- Quick Review "Accept the Rest" accepts only the unreviewed groups from the current position on; groups skipped earlier stay unreviewed, and the button count is the same list.
- The Shortcut also takes the parallel-transfer preference, since worker count means nothing without it. It still does not take the event-suggestion preference.
- Photos staging is also kept by the post-run cleanup when a pending job reads from it, so a copy that stopped, failed or hit the free limit in the same session can be finished.

Known items left for a later release (owner did not pick them for 2.1): companion owner link (edit preservation B-2 item 3 and `_collision_N`); a stopped free copy that may be resumable only from the menu (unverified); Shortcut result text and Core error messages in English only; setup edge cases (late overlap check after relaunch, profile saved from one dropped file); two iPhone `.aae` name forms ending "Not copied"; the keeper-reason text does not mention the partner tie-break; `reviewedDeletionPlan()` and `freeBatchOffer` each compute the full reviewed plan.

## German translation import (2026-11-15)

- Merge only German translations for existing keys from `/Users/nishithnand/Downloads/Translation DE`; preserve current keys, English, other languages and extraction metadata. The supplied catalogs predate newer app copy, which continues to fall back to English. Omit the unused incoming `%d duplicates found` key.
Expand Down
39 changes: 27 additions & 12 deletions docs/APP_STORE_METADATA.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Copy-paste-ready source for Chronoframe's current Mac App Store listing. Charact
| Bundle ID | `com.nishith.chronoframe` |
| Primary category | Photo & Video |
| Secondary category | Utilities |
| Version | `2.0` |
| Version | `2.1` |
| Copyright | `2026 Nishith Nand` |
| Age rating | 4+ (no objectionable content) |

Expand Down Expand Up @@ -72,22 +72,33 @@ The owner confirmed there are no existing users (2026-10-16), so the earlier pai

> duplicate,dedupe,photos,organizer,EXIF,cleanup,media,folder,backup,video,sort,library,metadata

## What's New (release notes for version 2.0)
## What's New (release notes for version 2.1)

> Chronoframe 2.0 brings new ways to build and care for your photo library:
Version 2.0's text is kept in `marketing/release-2.0/metadata/whats_new.txt`.

> Chronoframe 2.1 makes the first run clearer and keeps your edits safe.
>
> • Import selected original photos and videos from Apple Photos without changing the Photos library.
> • Register watched source folders, see an estimate of new items, and review each import before copying.
> • Review similar videos with optional perceptual matching, alongside exact photo and video duplicates.
> • Preview your library with contact sheets and timelines, compare duplicates, and choose what moves to Trash.
> • Improved copy compatibility on external drives, visible duplicate names in Trash, interruption recovery, and clearer verification and history.
> • Refined layouts and accessibility throughout the organizing and duplicate-review workflows.
> • Chronoframe now speaks German and follows your Mac's language setting.
> • A short guided setup on first launch, and a preview that shows the free limit and how your library will be arranged before anything is copied.
> • Try it free: copy one month of new photos, or remove whole groups of duplicates, within the free allowance. The allowance and the one-time unlock are unchanged.
> • Edit files (.xmp and .aae) are copied with their photo, and Deduplicate never selects an edited version, such as IMG_0001-edited.jpg, on its own.
> • Undo This Copy on the completion screen, with a count showing that every file found is accounted for.
> • Fixes: conflicting capture dates are flagged in the preview, saved duplicate reviews survive a relaunch, a Photos import can be stopped and resumed, and the live Copied count counts only files that were copied.
>
> Dates near midnight now use the capture date’s recorded time zone. For a previously organized library, use Health → Reorganize to correct affected destination folders; originals are unchanged.
> No subscription. Your source files and Photos library remain untouched.

### Was ist neu (Deutsch, Version 2.1)

> Chronoframe 2.1 macht den ersten Start übersichtlicher und schützt deine Bearbeitungen.
>
> Now free to download: organize 500 files and move 100 duplicates to Trash before purchasing. These allowances are cumulative per Apple Account on each Mac. One $14.99 US lifetime unlock removes the limits, with Family Sharing. Scanning, preview, review, and history remain free; revert remains available without purchasing and returns the corresponding allowance.
> • Chronoframe gibt es jetzt auf Deutsch und folgt der Sprache deines Macs.
> • Eine kurze geführte Einrichtung beim ersten Start und eine Vorschau, die das kostenlose Limit und die Struktur deiner Mediathek zeigt, bevor etwas kopiert wird.
> • Kostenlos ausprobieren: Kopiere einen Monat neuer Fotos oder entferne ganze Duplikatgruppen im Rahmen des kostenlosen Kontingents. Kontingent und einmalige Freischaltung bleiben unverändert.
> • Bearbeitungsdateien (.xmp und .aae) werden zusammen mit ihrem Foto kopiert, und beim Bereinigen von Duplikaten wählt Chronoframe eine bearbeitete Version, etwa IMG_0001-edited.jpg, nie von selbst aus.
> • „Diesen Kopiervorgang rückgängig machen…“ auf dem Abschlussbildschirm, mit einer Zählung, die zeigt, dass alle gefundenen Dateien berücksichtigt sind.
> • Korrekturen: Widersprüchliche Aufnahmedaten werden in der Vorschau markiert, gespeicherte Duplikatprüfungen bleiben nach einem Neustart erhalten, ein Fotos-Import lässt sich anhalten und fortsetzen, und der laufende Zähler „Kopiert“ zählt nur tatsächlich kopierte Dateien.
>
> No subscription. Your organizing source files and Photos library remain untouched.
> Kein Abo. Deine Originaldateien und deine Fotos-Mediathek bleiben unverändert.

## Review Notes

Expand All @@ -103,6 +114,10 @@ The purchase path below leads the saved review notes; it requires a build with t
>
> LAUNCH: Version 2.0 launches directly as a free download with the $14.99 US lifetime unlock. There are no existing customers to migrate and no paid rollout or acquisition-date legacy unlock. New customers receive the allowance regardless of the app transaction's original purchase date. Submit the app and first non-consumable together.

### Version 2.1 addendum (draft)

No new in-app purchase, product, price or allowance cap. Version 2.1 adds a guided first-run setup, a free copy of one month of new files and a free removal of whole duplicate groups, both inside the existing 500-file and 100-duplicate allowance, German localization, and protection for edit files. The free month lists its files and waits for confirmation before copying. The purchase path in the notes above is unchanged. Update the saved App Review notes in App Store Connect with this paragraph when 2.1 is submitted.

## App Privacy (questionnaire answers)

These mirror `docs/PRIVACY_POLICY.md` and `ui/Resources/PrivacyInfo.xcprivacy`.
Expand Down
2 changes: 1 addition & 1 deletion docs/APP_STORE_RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Chronoframe is ready to submit only when all items below are complete:
- Internal TestFlight passes the manual matrix below, including the free trial and unlock rows, and the focused manual session in `remaining-work-plan.md`.
- App Store metadata, screenshots, privacy policy URL, support URL, and pricing are complete in App Store Connect.
- The in-app purchase exists in App Store Connect with Family Sharing ON, and is attached to this version for submission.
- `ChronoframeUnlock.defaultPolicy()` disables both live and cached legacy unlocks. A new customer receives the allowance regardless of acquisition date; the verified non-consumable unlock removes limits. `MARKETING_VERSION` is `2.0`.
- `ChronoframeUnlock.defaultPolicy()` disables both live and cached legacy unlocks. A new customer receives the allowance regardless of acquisition date; the verified non-consumable unlock removes limits. `MARKETING_VERSION` is `2.1`.

## App Store Connect Metadata

Expand Down
2 changes: 1 addition & 1 deletion docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ A: No, not for now. Deduplicate moves files to the macOS Trash, and Chronoframe

**Q: Can I organize into a folder on my NAS?**

A: Only when the share supports a rename that refuses to replace an existing file. Chronoframe checks this before it plans anything and stops if the share can't guarantee it. Nothing is copied, and your originals are untouched. Many SMB shares, including the Synology share tested, do not support it. Copying from a share to a folder on this Mac is not affected. See [Troubleshooting](./TROUBLESHOOTING.md#nas-and-network-folder-issues).
A: Not over SMB, which is how a Mac normally connects to a NAS. Chronoframe copies into a network folder only when it can use a rename that refuses to replace an existing file, and macOS does not offer that on SMB connections. This comes from macOS, not from your NAS brand or its settings, so there is no NAS option to change. Chronoframe checks before it plans anything and stops; nothing is copied, and your originals are untouched. Copying from a share to a folder on this Mac is not affected, so you can organize the photos on a NAS onto this Mac or an attached drive. See [Troubleshooting](./TROUBLESHOOTING.md#nas-and-network-folder-issues).

**Q: What if a file changes after a deduplicate scan?**

Expand Down
4 changes: 2 additions & 2 deletions docs/TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,12 @@ The NAS Library workspace isn't available in release builds yet. The copy rules,

**Message:** "This network folder can't guarantee that a copy never replaces an existing file, so Chronoframe won't organize into it. Choose a folder on this Mac or an attached drive. Nothing was copied, and your originals were untouched."

**Problem:** Before it plans a preview or a copy into a network folder, Chronoframe checks that the share supports a rename that refuses to replace an existing file. This share doesn't, so Chronoframe stops before scanning or copying instead of using a weaker method. Many SMB shares, including the Synology share tested, don't support it.
**Problem:** Before it plans a preview or a copy into a network folder, Chronoframe checks that the share supports a rename that refuses to replace an existing file. macOS does not offer that rename on SMB connections, so Chronoframe stops before scanning or copying instead of using a weaker method. This comes from macOS, not from your NAS brand or its settings; it was confirmed on a Synology share and applies to SMB shares in general.

**Solution:**
- Choose a destination folder on this Mac or an attached drive
- Copying from the share to a folder on this Mac is not affected
- Choosing the same network folder again will stop the same way; Chronoframe checks again each time, so a different share or server setup is picked up
- Changing settings on the NAS will not help. Chronoframe checks again each time, so if a future macOS version adds support, the same folder will start working without an update

### "The network folder ... disconnected or changed"

Expand Down
Loading
Loading