feat(copies): matches between this PC and the server, Integrate and merge (owner review 6, v1.2.0) (#74)
CI / Build and test (push) Successful in 13m44s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 16s
Release / Build, test and publish (push) Successful in 26m34s
CI / PostgreSQL 16 integration (push) Failing after 17m36s
CI / PostgreSQL 17 integration (push) Failing after 15m36s
CI / Docker image (push) Successful in 1m12s
Release / Server image (push) Failing after 15s

The same time-lapse on a server and on this PC under different ids, or twice on this PC, is recognised,
compared and settled as the owner asked in owner review 6.

Matches are found after each sync refresh, through the server's new photo lookup, and after the jobs that
change photos. The default is to ask every time. Server › Matches offers:
- Keep apart, which is remembered;
- Link only and Unlink;
- the Compare dialog: photos, details line by line, projects and the plan.

Integrate completes both sides. Photos default to Union, projects are copied across, and a losing version
goes to the trash only after a hash check. Afterwards new photos move by themselves, and deletions wait for
the user.

A merge of two local sequences verifies every photo before the other sequence goes to its archive's trash.
Upload all local skips suspected matches and flags them.

Migration 0012 adds the found_copies and copy_probes tables. Jobs 25 (Integrate) and 26 (MergeSequences) are
new, and so are the server capabilities photo-lookup and upload-into.

Refs #73

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #74.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-11-18 15:20:29 +01:00
1 parent 43719bb5c5
commit f33bcac32e
586 files changed
+41546 -280

No files matched your search

+12 -9
View File
@@ -59,15 +59,16 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S
| `Sqlite`, `Postgres` | SQLite P/Invoke binding (winsqlite3 / libsqlite3), in-house PostgreSQL wire protocol v3 client with pool and LISTEN |
| `Migrations/{sqlite,postgres}/NNNN_name.sql` | Embedded, applied in one transaction at open (`MigrationRunner`) |
| `Repositories` | `ChronosDatabase` facade: archives, sequences, frames, tags, renders, jobs, cards, users, tokens, uploads, render nodes, settings, audit, schedules (`ScheduleRepository`: system rows seeded without overwriting edits and never deleted, the compare-and-set claim of a run), tombstones of removed photos (`FrameRemovalRepository`, `frame_removals`, written from the sidecar's `removed` list), `SequenceRepository.GetStampAsync` (a digest of what a Reorganize plans from in the index) and `GetConvertStampAsync` (with what a conversion plans from: its photos' count, sizes, formats, pixel sizes and the flags that decide), `JobRepository.ListPendingTargetsAsync` (the targets of pending jobs of a kind, also of those created before a time), `RenderRepository.RebaseFolderAsync` (the export paths that follow a moved folder), `ListPageAsync` (the videos library's keyset pages, filters and orders; a kindless still recognised in SQL by its image codec, fps 0 and duration 0) and `SetSha256Async` (a lazy hash); `RenderCopyRepository` (`render_copies`, migration 0010: the verified copies in a videos folder, no foreign key to `renders`); projects and their versions (`ProjectRepository`, `projects`, `project_versions`: rows derived from the projects' sidecars, a head advanced by compare-and-set, Main's last mirror); `JobRepository.ListPendingAsync` (the queued, running and paused jobs of a kind and target, full rows); `FrameRepository.CountNamedAsync` (hashed frames and a checksum of their hashes, for a home's frames stamp); `DatabaseBackups` (`VACUUM INTO` copies of an SQLite index into `backups` next to it, every copy keeping as many as the backup schedules keep (`KeptAsync`), the newest copy that seeds the `index-backup` schedule (`Newest`, `SystemSchedule.LastDone`), restore staged for the next start and carried out before the index opens, so it also recovers one that no longer opens) |
| `Jobs` | `JobEngine` (one job at a time; reviews the priority queue and makes a lower running job yield, requeued with its checkpoint; no history purge, the housekeeping schedule's clean-up does it), `JobPriorityQueue` (a level per job kind, the claim order, settings round trip), `IJobHandler`, `IJobHandlerProvider`, `JobContext` (progress, checkpoints, follow-up jobs that never interrupt their parent), `JobThroughput`/`JobEta` (rate and bounded time left), `ICancelledJobHandler` (a handler's clean-up after a cancel: `JobEngine.CancelAsync` calls it for a paused or failed job no handler runs, and waits first for a paused job's run that has not ended). Owner review 5, #65: `JobContext.ReportAsync(done, total, JobDetail)`, `CheckpointAsync(…, detail)` and `ReportItemAsync` (item counts of the current detail with no allocation); publishing throttled to one report per `JobEngineOptions.ProgressInterval` (500 ms) per job with bypass for the first report, a step change and a completed count; `JobWire` maps the detail (`DetailJson`, `ParseDetailJson` never throws); `jobs.progress_detail` (migration 0011) |
| `Jobs` | `JobEngine` (one job at a time; reviews the priority queue and makes a lower running job yield, requeued with its checkpoint; no history purge, the housekeeping schedule's clean-up does it), `JobPriorityQueue` (a level per job kind, the claim order, settings round trip), `IJobHandler`, `IJobHandlerProvider`, `JobContext` (progress, checkpoints, follow-up jobs that never interrupt their parent), `JobThroughput`/`JobEta` (rate and bounded time left), `ICancelledJobHandler` (a handler's clean-up after a cancel: `JobEngine.CancelAsync` calls it for a paused or failed job no handler runs, and waits first for a paused job's run that has not ended). Owner review 5, #65: `JobContext.ReportAsync(done, total, JobDetail)`, `CheckpointAsync(…, detail)` and `ReportItemAsync` (item counts of the current detail with no allocation); publishing throttled to one report per `JobEngineOptions.ProgressInterval` (500 ms) per job with bypass for the first report, a step change and a completed count; `JobWire` maps the detail (`DetailJson`, `ParseDetailJson` never throws); `jobs.progress_detail` (migration 0011). Owner review 6, #73: a `JobPriority.Background` job never makes a running job yield; kinds `Integrate` (25) and `MergeSequences` (26), high by default; steps `Details`, `Projects` and `Trash` |
| `Scheduling` | `Scheduler` (one per host: seeds the host's system schedules, claims due runs by compare-and-set, catch-up, clock changes, create/edit/reset/delete/run now as API v1 DTOs), `ScheduleRecurrence` (the in-house `every:`/`daily:`/`weekly:`/`monthly:` form, wall-clock times across DST), `ScheduleActions` (action names, parameters, availability, the archive jobs a run queues), `IScheduleHost` and `SystemSchedule` (what the server and the desktop supply), `ScheduleOutcome`, `ScheduleMapping` (model ↔ DTO) |
| `Housekeeping` | `BackupJobHandler`, `CleanupJobHandler`, `ICleanupStep` with the shared steps (`CleanupSteps`: job history, audit log, trash report that never deletes); hosts add their own steps through `ArchiveServiceOptions.CleanupSteps` |
| `Archiving` | `ArchiveService` (create/adopt/open, archive settings written to `archive.json` then the index, `ArchiveSettings.CheckTemplates` and `TemplateRuleException` holding a template given anew to the template rules; `UnderLeaseAsync`: a write under a sequence's lease with its row read under it; `EditSettingsAsync`: settings an index edit writes, written to `project.json` under the lease first and put back when the index does not take them), `ArchiveIndexer` (scan, rebuild; a sequence found in another folder takes its exports' paths along; a full scan or a rebuild takes the projects' sidecars back too), `ArchiveIngest` (uploads and imports, named through `FrameNaming`; content a conversion replaced is a duplicate of the frame holding its conversion; a restore or a replacement not settled yet refuses the batch), `ImportService`, `ArchiveVerifier`, `ArchiveImages` (thumbnail and proxy passes, several photos at once through `OrderedWork`, which hands results back in frame order), `FrameTiers` (decode tier, `PreviewOnly`/`Undecodable` flags and preview size of frames, written to sidecar and index by the light analysis, deep analysis, renders and image passes), `GprCompanions` (the JPEG of each GoPro GPR, found in the index when an import kept it in another sequence), `ArchiveMaintenance` (also a conversion job's staging and journals, by the job's state; those of a job this index does not know go together, by age), `MassRenamer` (mass rename and Reorganize: the dry run reads each sidecar for a file template; each step checked under its leases before anything of it moves (where its sequences are, what is inside and at its new folder, a sidecar of a newer format, the title it was planned from when it changes it or names the folder or files after it), then the folder, with the sequences of the plan an earlier step left as they were inside it (taken along, their title and file names kept), every index row (the frame paths and render paths of the exports inside it, a file or an image-sequence folder, its own unless the export is still at the old place and another sequence's when it moved with it, follow it in one transaction; a sidecar that cannot be read or written then still has its row follow, and fails the step), then the files under the plan's journal in `journal/` (a sequence whose photos changed since, such as one still receiving them, or whose files are found changed or in use or have their new names taken keeps its file names, the renames being pinned by digest, and the step and the plan go on); the journal keeps the tally of the whole plan, and a plan its job held (paused, cancelled or failed) is left to that job, only its half-done file renames completed at an archive open, which completes any other plan an interruption left and tells each sequence changed; the file renames of a step: sidecar, a sequence whose sidecar cannot be read staying as it is with every folder around it, index (`FrameRepository.RenameFilesAsync`) and the sequence's journal), `SequenceFolders` (`Holds`: the folder the index has for a sequence is there and its sidecar names no other sequence; every writer into a sequence's folder asks it), `SequenceTrash` (delete into the archive's hidden trash with a dry run, restore; the folder moves back when the index step fails; lists sequence and photo entries; `SequenceTrash.Empty`: the emptying's dry run, fingerprint and erase, each entry checked against its fingerprint again under its lease, `TrashKept` with its `TrashKeptReason` for each entry kept; `SequenceTrash.Replaced`: where a replaced entry's conversions are, read from the archive's sidecars (in the index's or the entry's folder, in the trash, else by one `SidecarWalk` of the archive per dry run or emptying) through their replaced tombstones, a conversion deleted only on the archive's word (a tombstone, the trash, or an `ErasureRecord` in `trash/.erased/`, written when an emptying erases a deleted sequence a replaced entry still needs), `TrashEntry.ConversionDeleted` in the dry run and its fingerprint, the erase weighed under the entry's and the sequence's leases once the sequence is settled; `BusyAsync`: what running and paused jobs hold, but the job asking, from `JobRepository.ListHoldsAsync`), `FrameTrash` (photos of a sequence into `trash/photos` with a dry run, a journal that undoes an interrupted deletion whose entry stays unlisted until its sidecar is written, tombstones (a photo never hashed is hashed as it goes; one whose original is missing goes without a file or tombstone; a frame that stays and may be a twin is hashed, its hash kept), positions parked and placed back, proxies and thumbnails moved to follow their frames; `FrameTrash.Restore`: restore re-hashes each file and says why each kept photo stayed (`KeptReason`), under a journal of its own into the sequence that another writer settles only under the entry's lease, into a new sequence through the ingest when theirs is gone, each original staged inside its oLine truncated
| `Archiving` | `ArchiveService` (create/adopt/open, archive settings written to `archive.json` then the index, `ArchiveSettings.CheckTemplates` and `TemplateRuleException` holding a template given anew to the template rules; `UnderLeaseAsync`: a write under a sequence's lease with its row read under it; `EditSettingsAsync`: settings an index edit writes, written to `project.json` under the lease first and put back when the index does not take them), `ArchiveIndexer` (scan, rebuild; a sequence found in another folder takes its exports' paths along; a full scan or a rebuild takes the projects' sidecars back too), `ArchiveIngest` (uploads and imports, named through `FrameNaming`; content a conversion replaced is a duplicate of the frame holding its conversion; a restore or a replacement not settled yet refuses the batch), `ImportService`, `ArchiveVerifier`, `ArchiveImages` (thumbnail and proxy passes, several photos at once through `OrderedWork`, which hands results back in frame order), `FrameTiers` (decode tier, `PreviewOnly`/`Undecodable` flags and preview size of frames, written to sidecar and index by the light analysis, deep analysis, renders and image passes), `GprCompanions` (the JPEG of each GoPro GPR, found in the index when an import kept it in another sequence), `ArchiveMaintenance` (also a conversion job's staging and journals, by the job's state; those of a job this index does not know go together, by age), `MassRenamer` (mass rename and Reorganize: the dry run reads each sidecar for a file template; each step checked under its leases before anything of it moves (where its sequences are, what is inside and at its new folder, a sidecar of a newer format, the title it was planned from when it changes it or names the folder or files after it), then the folder, with the sequences of the plan an earlier step left as they were inside it (taken along, their title and file names kept), every index row (the frame paths and render paths of the exports inside it, a file or an image-sequence folder, its own unless the export is still at the old place and another sequence's when it moved with it, follow it in one transaction; a sidecar that cannot be read or written then still has its row follow, and fails the step), then the files under the plan's journal in `journal/` (a sequence whose photos changed since, such as one still receiving them, or whose files are found changed or in use or have their new names taken keeps its file names, the renames being pinned by digest, and the step and the plan go on); the journal keeps the tally of the whole plan, and a plan its job held (paused, cancelled or failed) is left to that job, only its half-done file renames completed at an archive open, which completes any other plan an interruption left and tells each sequence changed; the file renames of a step: sidecar, a sequence whose sidecar cannot be read staying as it is with every folder around it, index (`FrameRepository.RenameFilesAsync`) and the sequence's journal), `SequenceFolders` (`Holds`: the folder the index has for a sequence is there and its sidecar names no other sequence; every writer into a sequence's folder asks it), `SequenceTrash` (delete into the archive's hidden trash with a dry run, restore; the folder moves back when the index step fails; lists sequence and photo entries; `SequenceTrash.Empty`: the emptying's dry run, fingerprint and erase, each entry checked against its fingerprint again under its lease, `TrashKept` with its `TrashKeptReason` for each entry kept; `SequenceTrash.Replaced`: where a replaced entry's conversions are, read from the archive's sidecars (in the index's or the entry's folder, in the trash, else by one `SidecarWalk` of the archive per dry run or emptying) through their replaced tombstones, a conversion deleted only on the archive's word (a tombstone, the trash, or an `ErasureRecord` in `trash/.erased/`, written when an emptying erases a deleted sequence a replaced entry still needs), `TrashEntry.ConversionDeleted` in the dry run and its fingerprint, the erase weighed under the entry's and the sequence's leases once the sequence is settled; `BusyAsync`: what running and paused jobs hold, but the job asking, from `JobRepository.ListHoldsAsync`), `FrameTrash` (photos of a sequence into `trash/photos` with a dry run, a journal that undoes an interrupted deletion whose entry stays unlisted until its sidecar is written, tombstones (a photo never hashed is hashed as it goes; one whose original is missing goes without a file or tombstone; a frame that stays and may be a twin is hashed, its hash kept), positions parked and placed back, proxies and thumbnails moved to follow their frames; `FrameTrash.Restore`: restore re-hashes each file and says why each kept photo stayed (`KeptReason`), under a journal of its own into the sequence that another writer settles only under the entry's lease, into a new sequence through the ingest when theirs is gone, each original staged inside its oLine truncated
| `Processing` | `ProcessingService`, `SequenceAnalyser`, `DeepReports` (a saved deep report while it still describes the frames), `SequenceRender`, `ProjectStore` (a newer format refused as `Errors.Render.NewerSettings`), `ProjectBundles` (a `.chronos` file for a sequence, and the sequence a file names), `ProcessingJobs` (`Routed`: a render job sized from its resolved preset box through `RenderSize` and given its `RequiredSettingsFormat`, read from the job's own export and never below the stored settings' format; `RequiredFormat` over a batch's presets, used by the desktop's gates; `BatchExport` carrying the playback; `Still`: a still job, `StillFrame` and `StillPhoto`, format 3), `RenderNodeClient` (registers the node's settings format), job handlers (`RenderJobHandler` hashes each single-file output and records its kind, stills included) |
| `Videos` | Owner review 1, R9: `IVideoLibrary` (`ArchiveService.Videos`; the server's and the desktop's one library: list and get as `VideoItem` with state and copies, `PlanDeleteAsync` and `DeleteAsync` by fingerprint, `RestoreAsync` by trash entry, `CopiesAsync`, `CopyJob`, `FolderProblem`; `VideoQuery`, `VideoErrors` and `VideoLibraryException`, `VideoTrashNames`), `VideoLibrary` (`ProtectedFolders`: the host's folders a videos folder may not be in, the workspace on the desktop, the data folder on the server; `RecoverAsync` at open), `VideoTrash` (`.chronos/trash/videos/`: delete under the sequence's lease with a `.pending` record journal, a rename or a verified cross-volume copy, the row removed and `rendered_count` recounted, `.leftover` markers for a source a copy could not remove; restore after a re-hash under a free name, same render id; entries listed through `SequenceTrash` as `TrashKind.Videos`, titled by their sequence), `VideoCopyJobHandler` (`video-copy`, 24: free space for every render first, `.incoming-<id>.part`, hash, rename without overwrite, `render_copies`; a server's render downloaded on the desktop; checkpoint `done:<n>`), `VideosFolder` (validation, free space, " (2)" collision names, part-file names) |
| `Projects` | `ProjectService` (`ArchiveService.Projects`: the projects of this PC's sequences as a home, under the sequence's lease and only in a folder that holds the sequence (`SequenceFolders.Holds`; otherwise `SequenceFolderMovedException`: reads answer from the index, writes are refused); reads wait 3 s for the lease, then answer from the index; a read-only archive is read without writing (an index-only Main written back once it takes writes): list, create, rename, delete (the folder into `projects/.trash` first, then the deleted record; never Main), history, head (NotFound once deleted), `StoredAsync` (a version file read back and checked), push with fast-forward / idempotent repeat / divergence / hash, portability, strict format and 64 MiB checks; each call first catches up: the sidecars into the index, Main made from the sequence's settings, settings another path wrote appended to Main as an `external` version or, with a push whose mirror was cut short, merged into one `merge` version where they win, a mirror never written over `project.json` settings it has not taken in (`MovedSharedAsync`), records behind the index healed (`HealAsync`, `UpdatedAfter`), projects the archive lost written back (`WriteBackAsync`); a push to Main mirrored into `project.json` and the settings with the settings version check), `ProjectIndexer` (the reconcile, also run by full scans and rebuilds: the projects' trash read before the live folders, so a deletion wins and the live folder's late version files move beside it; a record that cannot be read held back, never taken for a deletion; a lost record written again from the index only once its folder settled (`RecordSettle`, 2 minutes) and no trash folder holds it back (`TrashRecordGrace`, 1 day); a creation cut before its record left as it is; a version file a push left past its record adopted, a stray one moved to `versions/.stray`; `BehindAsync`, one rule for a record behind the index; `SettleMainAsync` and `SwapMainAsync`, one Main from the records, passed in one transaction), `ProjectSidecars` (record and immutable version files, the settings as a JSON string checked against their hash, `MaxVersionBytes` 64 MiB refused before writing), `ProjectMerge` (three-way merge member by member, pending frames merged photo by photo, conflicts, `Replay` of local commits on a moved head; `NewerSettingsException` rather than merge a newer format; `OneFraming`: a turn or mirror on one side and a framing edit on the other are one conflict at the orientation member), `IProjectHome` and `ArchiveProjectHome` (the home a workspace pushes to and pulls from: `HoldsAsync` reads a version back, `FramesStampAsync` says when the frames changed, an offline archive or busy lease is `HomeUnavailableException`), `ServerProjectHome` (phase 5b: a server sequence's `/projects` over `ChronosClient`; a server out of reach, an expired sign-in, a 503 lease, offline archive or `projects_unreadable`, a 409 `folder_in_use` and a server without the projects are `HomeUnavailableException`, a 404 `sequence`/`project`/`version` and a refused name `ProjectException` (a deleted project's head is 404 `project`), a 422 `too_large` the `TooLarge` outcome, other refusals keep their `ChronosApiException`; `HoldsAsync` reads the version back (`?stored=true`), `FramesStampAsync` from `…/frames/stamp`, version pages read on past a page the server ended early, a 413 the `TooLarge` outcome; its sequences name an archive id made from the server's key), `HomePhotos` (a sequence's photos as positions name them, with the encodings its Replaced tombstones join; the server's frames endpoint and render nodes build the same), what each call changed (`ProjectChangeSet` to `ArchiveServiceOptions.ProjectsChanged`, once the lease is let go: projects made, renamed, deleted or with a new head, compared before and after under the lease, and whether Main's head was written into the sequence's settings), `CatchUpAsync` (the catch-up alone, saying why it cannot run), `ProjectWire` (projects, versions, push outcomes and a home's frames to and from API v1 DTOs, for the server and a client of it) |
| `Projects` | `ProjectService` (`ArchiveService.Projects`: the projects of this PC's sequences as a home, under the sequence's lease and only in a folder that holds the sequence (`SequenceFolders.Holds`; otherwise `SequenceFolderMovedException`: reads answer from the index, writes are refused); reads wait 3 s for the lease, then answer from the index; a read-only archive is read without writing (an index-only Main written back once it takes writes): list, create, rename, delete (the folder into `projects/.trash` first, then the deleted record; never Main), history, head (NotFound once deleted), `StoredAsync` (a version file read back and checked), push with fast-forward / idempotent repeat / divergence / hash, portability, strict format and 64 MiB checks; each call first catches up: the sidecars into the index, Main made from the sequence's settings, settings another path wrote appended to Main as an `external` version or, with a push whose mirror was cut short, merged into one `merge` version where they win, a mirror never written over `project.json` settings it has not taken in (`MovedSharedAsync`), records behind the index healed (`HealAsync`, `UpdatedAfter`), projects the archive lost written back (`WriteBackAsync`); a push to Main mirrored into `project.json` and the settings with the settings version check), `ProjectIndexer` (the reconcile, also run by full scans and rebuilds: the projects' trash read before the live folders, so a deletion wins and the live folder's late version files move beside it; a record that cannot be read held back, never taken for a deletion; a lost record written again from the index only once its folder settled (`RecordSettle`, 2 minutes) and no trash folder holds it back (`TrashRecordGrace`, 1 day); a creation cut before its record left as it is; a version file a push left past its record adopted, a stray one moved to `versions/.stray`; `BehindAsync`, one rule for a record behind the index; `SettleMainAsync` and `SwapMainAsync`, one Main from the records, passed in one transaction), `ProjectSidecars` (record and immutable version files, the settings as a JSON string checked against their hash, `MaxVersionBytes` 64 MiB refused before writing), `ProjectMerge` (three-way merge member by member, pending frames merged photo by photo, conflicts, `Replay` of local commits on a moved head; `NewerSettingsException` rather than merge a newer format; `OneFraming`: a turn or mirror on one side and a framing edit on the other are one conflict at the orientation member), `IProjectHome` and `ArchiveProjectHome` (the home a workspace pushes to and pulls from: `HoldsAsync` reads a version back, `FramesStampAsync` says when the frames changed, an offline archive or busy lease is `HomeUnavailableException`), `ServerProjectHome` (phase 5b: a server sequence's `/projects` over `ChronosClient`; a server out of reach, an expired sign-in, a 503 lease, offline archive or `projects_unreadable`, a 409 `folder_in_use` and a server without the projects are `HomeUnavailableException`, a 404 `sequence`/`project`/`version` and a refused name `ProjectException` (a deleted project's head is 404 `project`), a 422 `too_large` the `TooLarge` outcome, other refusals keep their `ChronosApiException`; `HoldsAsync` reads the version back (`?stored=true`), `FramesStampAsync` from `…/frames/stamp`, version pages read on past a page the server ended early, a 413 the `TooLarge` outcome; its sequences name an archive id made from the server's key), `HomePhotos` (a sequence's photos as positions name them, with the encodings its Replaced tombstones join; the server's frames endpoint and render nodes build the same), what each call changed (`ProjectChangeSet` to `ArchiveServiceOptions.ProjectsChanged`, once the lease is let go: projects made, renamed, deleted or with a new head, compared before and after under the lease, and whether Main's head was written into the sequence's settings), `CatchUpAsync` (the catch-up alone, saying why it cannot run), `ProjectWire` (projects, versions, push outcomes and a home's frames to and from API v1 DTOs, for the server and a client of it). Owner review 6, #73: `ProjectTransplant` (`IProjectCopier`: a project and its history copied to another home for an Integrate or a merge, an intent journaled before the copy is made, each pushed version verified against its content hash, a copy someone else changed left alone; `FreeName` "name (PC)", "(2)"… within the name limit; `TransplantFormatException` for a newer settings format) |
| `Workspaces` | `WorkspaceStore` (a folder outside the library: `workspace.json` written atomically, one folder per project, no index; a leftover folder holding only stale lease files removed on listing), `WorkspaceProject` (`project.chronos` working state, `media/` with `media.json`, `proxies/<frame id>.jpg` (and `<frame id>-<sha16>.jpg` while a copy replaces one) and `analysis.json`, `versions/` with `.replaced` (versions set aside, pruned by age and count) and `.replaced.since`, `sync.json` for a conflict, a restore or the journal of a replay or a Save both, `exports/`, the lease `.lock.lease`; `UnreadableVersions`), `WorkspaceMedia` (`NamedAsAt`: the media learn the home's hashes and aliases), `WorkspaceSync` (checkout, open under the lease, save, commit, push, pull with replay and merge, the base in `project.chronos` as every write's commit point, `SettleAsync` finishing or undoing a cut push, replay or Save both, conflicts settled by keep mine, take server or save both only as shown, restore, status with Gone, Damaged and `MediaOutdated`, the home's frames read again only when their stamp moved; `FollowNameAsync`: the home's name and Main written into the copy at every pull and at a server's `renamed`), `WorkspaceCopyJobHandler` (`WorkspaceJobs.Copy` and `CopyFactsAsync`, registered by the desktop only: the archive only read, from a folder that holds the sequence; a workspace inside a library refused; the archive's current proxies copied, the others made in the workspace, each hash-verified, resumable from a checkpoint of its frames version and folder, free space checked against its estimate plus 512 MiB; the encodings conversions joined kept in `media.json`; the working state's positions moved by frame where frames stay, by photo where they came or went; a cancelled first copy's media cleared under the project's lease only when no other copy of the project waits or runs, through `ICancelledJobHandler` too; a project whose home is a server, `WorkspaceJobs.CopyFromServer`, phase 5b: downloaded through the desktop's session (`ISyncConnector`), never through this PC's archive, the frames of one frames version with the aliases of the server's conversions, each proxy (else the thumbnail standing in, `WorkspaceFrame.FileKind`) hashed as it arrives and checked on the disk, four at a time, the editor's current file never overwritten, resumable from the same checkpoint, a `<file>.thumb` marker beside a thumbnail standing in until the commit, free space checked against the server's proxy sizes); phase 5c: `WorkspaceProject` gains `media/originals/<frame id>-<sha8><ext>` (`OriginalName`), the ledger `exports/renders.json` (`WorkspaceRenders`, `WorkspaceRenderEntry`; `ContainedExportFile` keeps every ledger path inside `exports/`), `media.json` format 2 while it holds originals or was cleaned (`WorkspaceMedia.Cleaned`) and the project file format 3 while its media are Originals; `WorkspaceOriginals` (Proxies only's plan and apply, and `ClearOriginals`: every file of `media/originals` hashed and deleted only when the home's frames hold its SHA-256, the rest moved to the trash), `WorkspaceTrash` and `WorkspaceTrashBuilder` (`<workspace>/.trash`: entries `<project id>-<ticks>` filled under `.incoming-<id>-<ticks>` and renamed when whole, listed with a fingerprint of every file's path, size and time, emptied only by a plan that still matches), `WorkspaceCleaner` (the clean-up of media of projects in step with their home: Clean after, Size limit, the reasons a project is kept in `WorkspaceKeep`, `UnsentRenders`), `WorkspaceMover` (survey, plan fingerprint, the journal `<from>/.move.json` with stages Moving and Switched, rename on one volume or copy and hash-verify across volumes, resume, abandon, clear after the switch), `WorkspaceJobRoots` (internal, in `WorkspaceJobs.cs`: the folder a copy, render or send works in, the one that holds its project now, refused while a move has not switched) and the job parameters `WorkspaceRenderParameters`, `WorkspaceSendParameters`, `WorkspaceMoveParameters` in `WorkspaceJson`. Owner review 5, #66: `WorkspaceHomes` (the parent `workspace.json` format 2, layout "homes": `local` and `servers/<folder>`, each an ordinary store with `server.json`, `ServerHomeRecord`; `StoreFor(home)`, `All()`), `WorkspaceStore` refusing the homes layout and a read-only legacy view, `WorkspaceJobRoots` searching every home, `WorkspaceJobOptions.SameServer`/`IsSameServer` (aliases, used by the copy and send handlers' home checks), `WorkspaceMover` and `WorkspaceCleaner` over every home |
| `Sync` | `SyncService` (sync table of one server: compare, link by content through the aliases, settle conflicts, enqueue transfers), `SyncRules` (status, settings merge and differences, the proxies this PC can send, aliases followed; no I/O), `SyncTombstones` (photos either side removed are not offered back; the replaced tombstones of both sides join the encodings of one photo, union-find, each compared as the smallest SHA-256 among them, a deletion covering them all; immutable once made), `SyncPositions` (the settings' frame positions translated by photo to the frames of the copy they go to), `SyncLinkStore` (`sync_links`, `sync_state`), `SyncTransfers` and `SyncJobHandler` (resumable, hash-verified uploads and downloads as jobs; downloads commit through the archive ingest, and a frame missing here whose photo the server holds in another encoding takes that file through `FrameTrash.ReplaceMissingAsync`; job log lines from the catalog), `SyncAgent` (background comparison, server events, backoff, offline proxies; a server's `projectChanged` passed on as `ProjectChanged`, and null after a lost event stream once the stream is open again and a comparison made after that reached the server: `ISyncRemote.EventsAsync(connected, ct)`), `ProxyCache` and `RemoteSequence` (server sequences opened with proxies), `ISyncRemote` (the server calls; `ChronosSyncRemote` over `ChronosClient`). Owner review 5, #66: `ServerIdentity` (`KnownServerKey`; `Key`, `Canonical`, `Same`, `KeysOf`, `FolderName`, `With`), `SyncOptions.ServersDirectory` and `Identity`, `ProxyCache` per server with alias and 1.0 fallback reads, `SyncService.RekeyAsync`/`SyncLinkStore.RekeyAsync` |
| `Sync` | `SyncService` (sync table of one server: compare, link by content through the aliases, settle conflicts, enqueue transfers), `SyncRules` (status, settings merge and differences, the proxies this PC can send, aliases followed; no I/O), `SyncTombstones` (photos either side removed are not offered back; the replaced tombstones of both sides join the encodings of one photo, union-find, each compared as the smallest SHA-256 among them, a deletion covering them all; immutable once made), `SyncPositions` (the settings' frame positions translated by photo to the frames of the copy they go to), `SyncLinkStore` (`sync_links`, `sync_state`), `SyncTransfers` and `SyncJobHandler` (resumable, hash-verified uploads and downloads as jobs; downloads commit through the archive ingest, and a frame missing here whose photo the server holds in another encoding takes that file through `FrameTrash.ReplaceMissingAsync`; job log lines from the catalog), `SyncAgent` (background comparison, server events, backoff, offline proxies; a server's `projectChanged` passed on as `ProjectChanged`, and null after a lost event stream once the stream is open again and a comparison made after that reached the server: `ISyncRemote.EventsAsync(connected, ct)`), `ProxyCache` and `RemoteSequence` (server sequences opened with proxies), `ISyncRemote` (the server calls; `ChronosSyncRemote` over `ChronosClient`). Owner review 5, #66: `ServerIdentity` (`KnownServerKey`; `Key`, `Canonical`, `Same`, `KeysOf`, `FolderName`, `With`), `SyncOptions.ServersDirectory` and `Identity`, `ProxyCache` per server with alias and 1.0 fallback reads, `SyncService.RekeyAsync`/`SyncLinkStore.RekeyAsync`. Owner review 6, #73: `CopyComparer` (`CopyComparison.cs`, pure, O(n log n): every photo of two copies classed Same, Converted, SameUnhashed, DeletedHere/There, Differs, Versions, OnlyHere/There, and the score; records in `CopyComparisonModel.cs`); `SyncService` no longer links by content (`MatchByContentAsync` removed): `RefreshAsync` runs `Finder.FindServerAsync` after releasing its gate and raises `CopiesFound`; `UnlinkAsync`, the 404 marks, `ApplyAgreedAsync` (agreed details, server first), `EnqueueUploadAsync` with a priority; `SyncTransfers.SendPhotosAsync`/`FetchPhotosAsync` (only the photos asked for, never creating or retargeting a server sequence, `RemoteGoneException`) and linked uploads with `intoTarget`; `SyncAgent` queues an integrated pair's automatic photos (Background) and counts `PhotoFailures`, `PhotosNotSent` after `NotSentAfter` (3); `ISyncRemote` gains `LookupPhotosAsync`, `UploadFileIntoAsync`, `DeleteFramesAsync` and a capabilities read cached per remote |
| `Copies` | Owner review 6, #73 (namespace `Chronos.Data.Copies`; matches: the same time-lapse on a server and on this PC, or twice on this PC). Contracts: `CopyModel` (`FoundCopy`, `CopyKind`, `CopyState`, `CopyEvidence`, `CopyScore`, `CopyLinking`, `CopyPhotoPolicy`, `CopyProjects`), `CopyReviewModel` (what the Compare dialog shows), `CopyPlans` (`IntegratePlan` with `ServerUsesOurs` and `StaysForDelete`, `MergePlan`, `CopyBlock`, `CopyPlanContext`: `OwnsOrAdmin` is the admin role only, ownership is per server sequence by `UserId` against its `OwnerUserId`; the trash plans, `DropVersionPlan`), `CopyJobParameters`, `ICopyEngine` (the App's one entry). `FoundCopyStore` (`found_copies` and `copy_probes`, migration 0012: upserts that never touch the answer, state by compare-and-set, an Integrating row whose job failed or is gone read as its previous state, `EnsureLinkedAsync`, the 404 marks, `ReleaseAsync`, the merge's links stage `MoveToKeptAsync` with its undo (`UndoOfMoveAsync`, `MoveBackAsync`, `MoveUndo`), `DeleteCandidateAsync` (detection removes only an unanswered pair), the local overlap queries, the probes; re-keyed with the links by `SyncLinkStore.RekeyAsync`). `CopyRules` (pure: `IsCopy`, `Decide` by the *Link matches* setting, `SameOriginals` (1.1's rule), `AsksAgain`, fingerprints, hints, the probe sample). `CopyPayload` (pure: details as portable lines, `Merge` of the chosen sides into one payload, `ExcludeVersions`, `ExcludedKeys`, `KeepVersion`: Main takes the version that stays when the one it used is dropped). `CopySides` (both sides from the index and a server; `HeldElsewhereAsync`, the last-copy check across every archive; `VersionsAsync`, second versions). `CopyFinder` (`FindServerAsync` after each refresh: probes, `POST /photos/lookup` in batches, manifest comparison, at most 50 a refresh (20 on an older server), `Decide`; `FindLocalAsync`; `ResetProbesAsync`). `CopyReviewBuilder` (facts, full comparison, detail lines, projects, renders, capabilities with their blocks). `IntegratePlanner` (the Integrate dry run and fingerprint), `IntegrateJobHandler` and `IntegrateJournal` (`integrate`, 25: journal `.chronos/journal/integrate-<job>.json`; link, photos both ways, trash after the winner's hash, details through `SyncService.ApplyAgreedAsync`, projects through `ProjectTransplant`), `CopyJobs` (handler and queuing, pair to Integrating by compare-and-set; `IntegrateJobContext.UserId`, the planning account). `CopyLog` (why a losing version was kept, in the UI language, for the Integrate and merge logs). `CopyEngine` (`ICopyEngine` composed: list, find, compare, plan and queue Integrate and merges, keep apart, ask again, link, unlink, keep here, trash here (from the sequence named, a merge's kept one) and there with a re-read of the other side and of the last copies, `VersionsAsync` and the drop of one of two versions, unlink by the local side, twins only with a sibling at the other home; optional dependencies keep App types out). `UploadAllRule` (pure: what *Upload all local* skips and why). Owned by the copies code; `Sync`, `Archiving` and `Projects` call into it only through `FoundCopyStore` and `CopyFinder` |
| `Homes` | Owner review 5, #66: `HomeLayoutMigration` (`PlanAsync`, `ApplyAsync`: the 1.0 workspace and cache sorted into homes by same-folder renames checked by inventory, deferrals for leased projects, an offline workspace and an unfinished move; `RekeyAsync`: an address home renamed to the server id at sign-in), `HomeLayoutJournal` (the journal in the data folder that resumes after a crash) |
### 2.3 Chronos.App areas
@@ -76,16 +77,16 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S
|---|---|
| `Shell` | `MainWindow` (rail and its shortcuts, taskbar progress), `ShellViewModel` (rail, sections, first run), `OsNotifications` (toasts as Windows notifications while the window is minimised or in the background), dialogs, `ErrorText` (the sentence of an error toast), `ScreenCapture` (`--capture` scenes), `SectionTemplates.xaml` (view model → view) |
| `Sections` | One `XxxView.xaml` + `XxxViewModel` per screen: Welcome, Library, Sequence (the Edit section: the editor, `SequencePickerView` choosing in place a project of the workspace or a sequence of the library, the in-window dialogs of the workspace, and the opening of this PC's sequences as workspace projects: the project opened last, else "Open in workspace", the checkout and the copy job followed until it opens), Import, Videos (owner review 1, R9: `VideosView` and `VideosViewModel`, the rail section on Ctrl+4 that implements `IVideosSection`: filters, order, cards or list, the selection's actions with their reasons, Delete… dry runs per home, the player pane), Archive, Jobs (two tabs, Queue and Scheduled: `SchedulesView` shows `Jobs/SchedulesViewModel`), Server, Settings (its last page is About; Archive's *Videos folder* row) |
| `Library` | Filter, facets, pager, timeline, saved views, quick and mass actions (`MassActions`: Reorganize and Convert for the sequences of one archive), remote cards and thumbnails, thumbnail cache, list export |
| `Library` | Filter, facets, pager, timeline, saved views, quick and mass actions (`MassActions`: Reorganize and Convert for the sequences of one archive), remote cards and thumbnails, thumbnail cache, list export. Owner review 6, #73: `VersionsDialogViewModel` (*Two versions…*: a local sequence's photos kept in two versions, each with *Drop…*; `Menu.Card`, `Menu.CardMatch`, `Menu.CardMatchRemote`) |
| `Editor` | `EditorSession` (project, undo/redo, saving, merges through `Data/Projects/ProjectMerge`), `ISequenceSource` (`LocalSequenceSource`, `RemoteSequenceSource`, `WorkspaceSequenceSource`: a workspace project over its media, the working state saved in `project.chronos` under the project's lease and merged photo by photo in the portable form (`Merge`, a setting both sides changed asked through `ProjectConflictException`), `ReadOnlyChanged` for a project of a newer Chronos, an unstored edit kept aside in `versions/.replaced` (`SetAsideAsync`), renders at the home with the portable settings through `IProjectRenders`, naming a version only while none waits to be sent; a server home's analyses and renders are the server's jobs over `WorkspaceServerHome(connect, session)`, which connects again when the sign-in changes, a render naming the version the server holds when the project is in step with it), `ServerJobs` (a server sequence's analyses and renders followed through its events, shared by `RemoteSequenceSource` and a server home's `WorkspaceSequenceSource`), the steps of the Edit path (`EditPath`: their order, each step's state, the step of each finding, the memory of the step shown; tabs Analysis, Frames, Exposure, Motion, Camera, Time, Stack, Export), the step rows (`CameraTab`: Aspect, Rotation, Mirror, Flip, Straighten, Crop size/X/Y and Reset framing through `EditorSession.Orient` and `ResetFraming`, the crop kept locked by `EditorSession.KeepCropLocked`; `ExposureTab`'s Look group; `ExportTab`'s Output size, Resolution, the Encoding and Playback rows and the footer (owner review 1, R3/R8); `ExportGroups` (`SettingGroup`: a collapsible group with its summary, open state in `EditorSettings.Groups`, which `AppSettings.EditorGroups` keeps; `ExportRules`: what rate control, keyframes, B-frames and profile offer per codec and depth, keyframes in seconds, the standard resolutions); `PresetTable` (the preset rows and their groups); `RenderMenu` (the header's Render ▾ entries, built on each opening: recommended, batch, recent, Other presets by group, Render batch, Add to queue, Save frame, Videos); `VideosLink` (the editor's way to the Videos section on a sequence); `EditorSession.StillRequests` (Save frame through the source's routing, `IProjectStills` for workspace projects); `SettingRows`: `SwitchRow`, `IconActionsRow`, `GroupRow`; `SliderActivity`, the Straighten slider showing the grid), `CropCommit` (a finished crop drag on the preview to `EditorViewModel.CommitCropCommand`, one undo step), `PreviewRenderer` (Source framing in the view frame through `RenderGeometry.ViewFor`, the mask from `EditableCrop` or `FootprintInView`, `FrameFinish` on the corrected picture only, motion vectors without it), `ExportPlanner`, `ExportSync`, `SavedCopies`, `SequenceJobs`, `ProjectFiles` (save and open `.chronos` project files: format 2 opens its workspace project, format 1 gives its settings to Main) |
| `Videos` | Owner review 1, R9: `VideoSources` (WPF-free: `VideoEntry` rows of this PC's library, the signed-in server's `/videos` and the workspace's unsent renders merged by render id, `VideoFilter` and its order, `VideoServerState` for a server not signed in, without `videos` or out of reach, `WithLocalCopies` for server renders downloaded here; `VideosFolders`: the default `Videos\Chronos` and the folder's refusals), `VideoRows` (cards and list rows with their chips), `VideoPlayerPane` and `VideoPlayerViewModel` (in-process playback: `MediaElement` for videos, an image for stills and a GIF's or APNG's first frame, *Cannot play here*); the trash dialog restores video entries through `IVideoLibrary` |
| `Workspace` | Owner review 2, R8: `WorkspaceHost` (the desktop's `WorkspaceStore` and `WorkspaceSync` over Settings › Workspace's folder, this PC's archive or, through `SyncHost.ProjectHome`, the signed-in server as the home (a server it is not signed in to reads as offline; `HomeChanged` from the server's `projectChanged`, texts worded for it by `WorkspaceText.ForHome`); checkout and copy with its size and free space, status, Save version with the sync after it, sync, resolve, restore, history, open, new, rename, delete, the plan and removal of a local copy whose files but the media go to `<workspace>/.trash` (put back whole when a move fails), pruning past Kept versions after `HoldsAsync`, copies a newer Chronos wrote or that cannot be read listed as such and never changed, a folder inside a library refused, `PlanFolderAsync` and `UseFolderAsync`; phase 5c partials: `WorkspaceHost.Media` (Copy originals, Proxies only), `.Render` (local renders, Send again), `.Cleanup` (usage, the clean-up after each copy and by schedule, the trash's plan and Empty, the removal's unsent renders and originals) and `.Move` (move plan and job, `IsMoving` gate, `MoveEnded`, the unfinished move)), `WorkspaceFolderChange` (Settings › Workspace › Change…, Move… and Resume, and the refused folder's Choose folder), `ProjectMenuViewModel` (the title's ▾: state chip read again after edits, the menu, Update media; `IWorkspaceUi` is what it asks of the section, `ShowDialogWhenFree` holding a background conflict until the open dialog closes), `WorkspaceDialogs` (Open in workspace with unreadable projects listed disabled, project name, Save version, History, conflict, a format conflict offering only Save both, Remove local copy with its typed confirmations; `WorkspaceDialogs.xaml`), `WorkspaceProjectItem` (a picker row), `WorkspaceText` (states, versions, authors, failures). Owner review 5, #66: `WorkspaceHost.Homes`, `Find`, `SyncOf`/`SyncFor` (one sync per store), `SameServer`, `Identity`, `Reopen` (the `Store` and `Sync` properties are gone) |
| `Import` | `CardPool` (inserted cards, remembered cards, folders), camera profiles, plans and choices, destinations (archive, folder, server through `ServerImportSink`), card actions (verified delete, format, eject) |
| `Archive` | `CurrentArchive`, `ArchiveTree`, figures for the charts, maintenance reports, Reorganize (`ReorganizeDialogViewModel`: folder, file and title templates each with its switch, the dry run, Apply queues the `move` job of that plan; `ReorganizePlans`: each template's check, the plan as rows and a summary; `ReorganizeOffer`: per archive, the templates Settings › Archive's toast offers, joined while that archive's toast is up), Convert (`ConvertDialogViewModel`: format, JPEG quality and a mode chosen at every run, the dry run made once per format and quality, Apply behind the mode's confirmation queues the `convert` job of that plan through `MassConverter.QueueAsync`; `ConvertPlans`: the plan as rows in the mode's words, a summary, the space line, the Replace confirmation that types the number of photos and the New sequence one that counts the photos not copied; `ConvertUndo`: the Undo the Jobs screen's toast offers when Replace conversions end, which restores the `Replaced` trash entries their jobs made, by the job's id), retag, delete and trash dialogs (`SequenceDeletion`, `DeletePlans`, `TrashEmptyPlans`: Empty… behind a dry run and a typed confirmation, every entry whose conversion was deleted named first), `ArchiveFailures` |
| `Server` | `ServerSession`, `ConnectFlow` (trust on first use), `SyncHost` (sync engine, agent, metered hold (`UploadHold`: uploads, downloads and the workspace's server copies and sends), editor connections, Export Sync; `HasProjects`, `ProjectHome` and `ProjectChanged`, also told with null at each session start and stop: the server as a project home), sync table, `RemoteSequenceApi`. Owner review 5: `SyncHost.Identity`, `KeyOf`, `LastServer`, `KnownServersChanged`, `IdentityClash`, `OriginalsArchiveAsync`/`OriginalsForDownloadAsync`/`OriginalsArchivesAsync` and the re-key in `SwitchAsync` (#66); `ServerJobsApi` (`IServerJobsApi`) and `ServerJobsViewModel`/`ServerJobsView`, the connected server's running and paused jobs (#65); `LibraryShare` (`ShareState`, `ShareClient`, `ShareUploadsStep`: this PC's library shared on the LAN through `Chronos.Server`'s `HostedServer`, #67) and `ConnectFlow` refusing the own share (`ConnectError.OwnLibrary`) |
| `Jobs`, `Settings`, `About` | Job list and buffering, `JobNotices` (which job endings raise a toast, conversions among them; `JobEndings` lets a batch speak once); the schedules of Jobs › Scheduled (`DesktopScheduleHost`: the desktop's `IScheduleHost` and its system schedules `archive-scan`, `index-backup`, `housekeeping`, `workspace-cleanup`; `CacheTrimStep`, `WorkspaceCleanStep` and `WorkspaceTrashStep`, the host's clean-up steps; `SchedulesViewModel`, `ScheduleRowViewModel`, `ScheduleEditorViewModel` and `ScheduleDialogs.xaml`, the in-window editor; `ScheduleText`); settings rows (`LogSettingsRows`: Advanced's log rows; `WorkspaceSettingsRows`: Settings › Workspace), encoder and format inventories, `ProcessingTuning` (Settings › Rendering and Analysis applied to each job: parallelism, memory budget, quality), `InterfacePriority`, language catalog, naming preview; `AboutViewModel` (owned by the shell, not a section: Settings › About, the update notice of Settings › Updates and the update check on start), update check and download. Owner review 5: `JobText.Status`/`RowStatus`/`RowStatusToolTip` (the status line of a job's detail, `BarStatusLength` 60) and `JobEntry.Detail` (#65); `Settings/HomeRows` (`HomeFolderRow`, `KnownServerRow`, #66) and `Settings/ShareSettingsRows` (#67) |
| `Server` | `ServerSession`, `ConnectFlow` (trust on first use), `SyncHost` (sync engine, agent, metered hold (`UploadHold`: uploads, downloads and the workspace's server copies and sends), editor connections, Export Sync; `HasProjects`, `ProjectHome` and `ProjectChanged`, also told with null at each session start and stop: the server as a project home), sync table, `RemoteSequenceApi`. Owner review 5: `SyncHost.Identity`, `KeyOf`, `LastServer`, `KnownServersChanged`, `IdentityClash`, `OriginalsArchiveAsync`/`OriginalsForDownloadAsync`/`OriginalsArchivesAsync` and the re-key in `SwitchAsync` (#66); `ServerJobsApi` (`IServerJobsApi`) and `ServerJobsViewModel`/`ServerJobsView`, the connected server's running and paused jobs (#65); `LibraryShare` (`ShareState`, `ShareClient`, `ShareUploadsStep`: this PC's library shared on the LAN through `Chronos.Server`'s `HostedServer`, #67) and `ConnectFlow` refusing the own share (`ConnectError.OwnLibrary`). Owner review 6, #73: `Server/Copies` (`CopyListViewModel` and `CopyRow`: Server › Matches, its chip, actions, toasts and the Library statuses; `CopyText`: the pure words, glyphs and actions of a pair, three row buttons at most, `MiddleTrim` for long names, the merge's classes by role; `CopyDialogViewModel` with `CopyPhotoRow`, `CopyDetailRow`, `CopyProjectRow`, `CopyPlanLine` and `CopyDialogs.xaml`: the in-window Compare/Integrate and merge dialog hosted by `ServerView`; `CopyScenes`: the capture and test scenes), `CopyWatch` (local detection after the index opens and after jobs that change photos), `WorkspaceCopyGuard` (`IWorkspaceGuard` over `WorkspaceHost.HasUnsentWorkAsync`), `SyncHost.Copies` (the `CopyEngine`), `UploadHold` holding `Integrate` and resuming only the jobs it paused (their ids in the app setting `sync.meteredHeld`; `Forget` from Jobs, the sync table and Matches), `SyncTableViewModel` applying `UploadAllRule` |
| `Jobs`, `Settings`, `About` | Job list and buffering, `JobNotices` (which job endings raise a toast, conversions among them; `JobEndings` lets a batch speak once); the schedules of Jobs › Scheduled (`DesktopScheduleHost`: the desktop's `IScheduleHost` and its system schedules `archive-scan`, `index-backup`, `housekeeping`, `workspace-cleanup`; `CacheTrimStep`, `WorkspaceCleanStep` and `WorkspaceTrashStep`, the host's clean-up steps; `SchedulesViewModel`, `ScheduleRowViewModel`, `ScheduleEditorViewModel` and `ScheduleDialogs.xaml`, the in-window editor; `ScheduleText`); settings rows (`LogSettingsRows`: Advanced's log rows; `WorkspaceSettingsRows`: Settings › Workspace), encoder and format inventories, `ProcessingTuning` (Settings › Rendering and Analysis applied to each job: parallelism, memory budget, quality), `InterfacePriority`, language catalog, naming preview; `AboutViewModel` (owned by the shell, not a section: Settings › About, the update notice of Settings › Updates and the update check on start), update check and download. Owner review 5: `JobText.Status`/`RowStatus`/`RowStatusToolTip` (the status line of a job's detail, `BarStatusLength` 60) and `JobEntry.Detail` (#65); `Settings/HomeRows` (`HomeFolderRow`, `KnownServerRow`, #66) and `Settings/ShareSettingsRows` (#67). Owner review 6, #73: `Settings/CopySettingsRows` (Link matches, Integrate photos, Integrate projects; `SettingsOption.ToolTip` per option); Jobs opens Server › Matches for an Integrate and the kept sequence for a merge |
| `Infrastructure` | `AppServices` (composition root; `SequenceReorganized`, raised after each Reorganize step and each sequence a conversion replaced or made, reloads an editor open on that sequence; the archive engine's free space from `VolumeInfo.FreeBytesAt`), `AppSettings`, `AppLogging` (Settings › Advanced › Logs applied to the log files from their first line, a launch that only hands over included, and at every save), `AppEnvironment` (installed or portable), `AppClock` (today's date, frozen by `--capture`), `StartWithWindows` (this copy's sign-in entry), `UiLanguage`, `LiveRegion`, `RenderNodeHost`, `DiagnosticsBundle`, `ShellActions` (BRIEF §8.6), `SingleInstance` (one Chronos per data folder; a later launch hands its file over a named pipe, or waits for a closing one to exit and starts in its place), device monitor. Owner review 5: `AppSettings.KnownServers` and `Share`, `AppServices.SortHomesAsync` with `HomeLayout`/`HomeLayoutError`, `CacheStore.ServersFolder`/`ServerFolder`, `AppServices.Share` |
| `DesignTime` | `SampleData`: the archive, jobs and server the screenshots and smoke tests run on, dated from the fixed `SampleData.Now`; `SampleJobDetails.Apply` (the sample jobs' details), `SampleServerJobs` (the server jobs capture) |
| `DesignTime` | `SampleData`: the archive, jobs and server the screenshots and smoke tests run on, dated from the fixed `SampleData.Now`; `SampleJobDetails.Apply` (the sample jobs' details), `SampleServerJobs` (the server jobs capture); `SampleCopies` (`SampleCopyEngine`, the sample matches in every state; owner review 6, #73) |
### 2.4 Chronos.Ui and Chronos.Server
@@ -98,7 +99,7 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S
| `Ui/Visuals` | `DrawingElement` (hover readout, item keyboard and activation) and its charts (`BarChart`, `SeriesChart`, `StackedBar`, `HeatmapStrip`, `TimelineBands`), `Filmstrip`, `PreviewViewport` (with `PreviewSurface` and `ViewportMath`: the crop box's handles, hit-test order, drag, keyboard nudges once selected, the straighten grid and the automation value; the math in Core `CropFrame`), `CurveEditor`, `SequenceCard`, `VirtualizingWrapPanel`, `SegmentedControl`, `SplitButton` (owner review 1, R3: hierarchical, two-line menu entries, `RenderMenuItem` of kind preset, header, separator, command or submenu, styled in `Themes/Visuals.xaml`) |
| `Server/Api`, `Server/Events` | Endpoint groups (`XxxEndpoints.Map`; `ScheduleEndpoints`: `/api/v1/schedules`; `LibraryEndpoints`: the Library filters' facets, sequence thumbnail, photo delete, bulk delete/retag/jobs; `TrashEndpoints`: list, restore, empty (`conversionDeleted` in its dry run; `videos-<id>-<ticks>` entries restored through the videos library); `VideoEndpoints` (owner review 1, R9): `/api/v1/videos` list and get (Read), delete with a dry run and fingerprint (Delete, audited `videos_deleted`, `sequenceChanged` `renders`), copy as a `video-copy` job into `ServerOptions.VideosPath` (Edit, audited `videos_copied`), library refusals mapped to 409, 422 and 507; `SystemEndpoints` announcing the `videos` capability; `ProjectEndpoints`: `/api/v1/sequences/{sid}/projects` through the archive's `ProjectService` (list with Main first, create, rename, delete, head, versions a page at a time, one version, push with its outcome as `ProjectPushResultDto` under a 65 MiB body limit, the frames and photo aliases a workspace places positions on and their stamp; pages capped at 4 Mi settings characters, `summary` and `stored` reads, 409 `sequence_empty` for a sequence without photos, deletion by the owner, an admin or the maker's own account); `SequenceEndpoints`' settings `PATCH` through `ArchiveService.EditSettingsAsync`; `ArchiveEndpoints`: settings, statistics, scan jobs, Reorganize's dry run and `move` job, Convert's dry run and `convert` job, both through `PlanCache`: a dry run's plan, made apart from its request, a few at once across both kinds, kept a few minutes while what it reads from the index stays (typed keys `PlanKey<TPlan>`: `ReorganizePlanKey`, `ConvertPlanKey` from `GetConvertStampAsync`, the selection and the target with the quality that counts, not the mode), for the same dry run and its confirmation; a conversion's confirmation takes only a kept plan (`Kept`), its busy sequences and free space taken again), API errors, the WebSocket `EventHub` |
| `Server/Security` | Accounts, password hashing, tokens, session cookies, login guard, access rules, audit log |
| `Server/Storage`, `Server/Jobs` | Archive and processing modules (the archive module's `SequenceChanged` publishes `sequenceChanged` `reorganized`, `converted` and `created`; its `FreeSpace` is `VolumeSpace.WritableFree`, the tighter of the space path's volume and the folder's own), uploads (`UploadMaintenance`: recovery at start, and the sweep that is the `uploads` clean-up step; `UploadService.ReceiveAgainAsync`: a verified upload whose filing was refused for now goes back to receiving, 503), render store (files a render under the sequence's lease, where the index has the folder then, with the project and version a node's job rendered; `FolderMovedException`, 503 `folder_moved`, when the sequence is not in it; a sent render or a node's result recorded with its verified SHA-256 and kind); `FileResponses` (Range requests, the media types of `.webm`, `.m4v` and `.apng`); the archive module sets `Videos.ProtectedFolders` to the data folder; `ProjectCatchUp` (Main takes settings written outside the projects soon after a `PATCH`, an analysis or a conversion, for sequences with a Main: `projectChanged` without waiting for the next project call); the archive module's `ProjectsChanged`, published as `projectChanged` (and `sequenceChanged` `settings` when Main was mirrored); `JobEngineHost`, `SchedulerHost` (the `Scheduler` on the engine, started after it; archive.json read every 10 minutes whatever the scan schedule does; every schedule change and run published as a `scheduleChanged` event) and `ServerScheduleHost` (time zone, archive refreshed from archive.json, system schedules), render node service (a job of a project version claimed with that version's settings placed on the frames it lists; `RoutedAsync` routes a job again from the sequence's settings of the moment, and a node that reads an older settings format, or cannot encode the adapted size, never claims it), monitor and availability (`RenderNodeAvailability` waits for a node only while one would take the routed job). Owner review 5: `Jobs/ProgressGate` (500 ms per job, 50 ms slack, shared by `JobEngineHost` and `RenderNodeService`, #65); `JobEngineHost` relays an external engine in hosted mode and `Exposes` only server kinds; `Storage/ServerEventBridge` (#67) |
| `Server/Storage`, `Server/Jobs` | Archive and processing modules (the archive module's `SequenceChanged` publishes `sequenceChanged` `reorganized`, `converted` and `created`; its `FreeSpace` is `VolumeSpace.WritableFree`, the tighter of the space path's volume and the folder's own), uploads (`UploadMaintenance`: recovery at start, and the sweep that is the `uploads` clean-up step; `UploadService.ReceiveAgainAsync`: a verified upload whose filing was refused for now goes back to receiving, 503), render store (files a render under the sequence's lease, where the index has the folder then, with the project and version a node's job rendered; `FolderMovedException`, 503 `folder_moved`, when the sequence is not in it; a sent render or a node's result recorded with its verified SHA-256 and kind); `FileResponses` (Range requests, the media types of `.webm`, `.m4v` and `.apng`); the archive module sets `Videos.ProtectedFolders` to the data folder; `ProjectCatchUp` (Main takes settings written outside the projects soon after a `PATCH`, an analysis or a conversion, for sequences with a Main: `projectChanged` without waiting for the next project call); the archive module's `ProjectsChanged`, published as `projectChanged` (and `sequenceChanged` `settings` when Main was mirrored); `JobEngineHost`, `SchedulerHost` (the `Scheduler` on the engine, started after it; archive.json read every 10 minutes whatever the scan schedule does; every schedule change and run published as a `scheduleChanged` event) and `ServerScheduleHost` (time zone, archive refreshed from archive.json, system schedules), render node service (a job of a project version claimed with that version's settings placed on the frames it lists; `RoutedAsync` routes a job again from the sequence's settings of the moment, and a node that reads an older settings format, or cannot encode the adapted size, never claims it), monitor and availability (`RenderNodeAvailability` waits for a node only while one would take the routed job). Owner review 5: `Jobs/ProgressGate` (500 ms per job, 50 ms slack, shared by `JobEngineHost` and `RenderNodeService`, #65); `JobEngineHost` relays an external engine in hosted mode and `Exposes` only server kinds; `Storage/ServerEventBridge` (#67). Owner review 6, #73: `Storage/PhotoLookup` (raw SQL in batches of 500, scoped to the served archive: frames by SHA-256, tombstones, unhashed photos by size and capture millisecond, session keys; ids and counts only) behind `Api/PhotoLookupEndpoints` (`POST /api/v1/photos/lookup`, Read, 413 `too_many`, a 4 MB body limit); `UploadService` with `IntoTarget` (target checks, `UploadRules.StandIn` with the target only, `UploadRules.CopySource`, a verified server-side copy into the target, `copied`); `SystemEndpoints` announcing `photo-lookup` and `upload-into` (the desktop's share too). The server runs neither `Integrate` nor `MergeSequences` |
| `Server/Hosting`, `Server/Admin/web` | `ServerHost`, `ServerLogging` (console and file levels the logging filters read at every line, the file sink's limits, the engine's level; applied again when Settings › Logs is saved), certificates, discovery beacon, embedded static files (`EmbeddedStaticFiles`: `no-cache` and a content ETag, so an upgrade never mixes old and new modules), Windows service (start and stop failures in the Application event log); the admin panel (ES modules, one per page; `schedules.js` is the Jobs page's Scheduled tab; the Library's views in `pages/library/`: `sequence.js` a sequence and its photo viewer, `projects.js` its Projects section (Main marked, head and last change, versions on demand, Rename and Delete of the others, live on `projectChanged`; nothing that edits settings), `trash.js` the archive's trash, `shared.js` cards, selection, grid keyboard and the retry of thumbnails a finished job may have built; `upload.js` the upload dialog the Library opens on demand, hashing in the module worker `hash-worker.js` with the in-house incremental SHA-256 of `sha256.js`, self-tested before its first use, and sending the capture time `capture-time.js` reads: the Exif DateTimeOriginal of a JPEG or TIFF-based file, else the file's time; `reorganize.js` the Reorganize dialog of the Library's selection and of the Archive page's save toast: template switches and fields, a live dry run of `POST /archive/reorganize` one request at a time, Apply that sends the shown plan's fingerprint back; `convert.js` the Convert dialog of the Library's selection (`planTarget` in `library.js`, shared with Reorganize: the ids, at most 1,000, or `all`): format, JPEG quality and a mode chosen at every run (Replace or New sequence, never preselected), a debounced dry run of `POST /archive/convert` one request at a time, asked in Replace's words until a mode is chosen and again while the server is still making it (a proxy's cut-off, `plan_dropped`), per sequence photos converted, left as they are or not copied and why, blocked, size before and after, the space line; Apply that confirms Replace by a typed word and New sequence with the photos not copied, asks the dry run again and sends the shown plan's fingerprint back, never twice after no answer; `pages/library/trash.js` gives replaced entries their own Restore and lists those whose conversion was deleted first, and names `videos` entries with their own Restore message; `audit.js` reads `archive_converted` as a sentence; `videos.js` the Videos page (owner review 1, R9: cards or list, filters in the address, `#/videos?sequence=<id>`, selection, Play in a `<video>` or `<img>` dialog, Download, Copy to folder and Delete… with its dry run; it calls only the videos endpoints and the render file, never a project or render route), its `videoKind`, `kindText` and `shortHash` shared with `sequence.js`'s renders; `settings.js`' *Videos folder*, locked by `CHRONOS_VIDEOS_PATH`). Owner review 5, #67: `HostedServer` (`HostedEngine`, `DesktopHostLifetime`), `ServerHost.BuildHosted`, `ServerOptions.ForHosted`/`ApplyDesktop`; `Api/ServedItems` (by-id routes scoped to the served archive); `Security/ClientActivity`; the server id (`ServerHost.ServerIdAsync`, app setting `server.id`, #66); the Windows service host is gone |
### 2.5 Hosts
@@ -133,6 +134,8 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S
| `WorkspaceSend` (22) | `Workspaces/WorkspaceSendJobHandler` (phase 5c, `WorkspaceJobs.Send`: the ledger's unsent renders filed in this PC's archive or uploaded to the server with their project and version, the version pushed first when the home lacks it, idempotent by render id; normal by default; a server send waits while `HoldTransfers` is true) | yes | no |
| `WorkspaceMove` (23) | `Workspaces/WorkspaceMoveJobHandler` over `WorkspaceMover` (phase 5c, `WorkspaceJobs.Move`: the workspace folder moved with its projects after a confirmed plan, journaled, resumable, undone on failure or cancel before its switch; an `ICancelledJobHandler`; high by default) | yes | no |
| `VideoCopy` (24) | `Videos/VideoCopyJobHandler` (owner review 1, R9, via `ArchiveService.CreateJobHandlers`: renders copied hash-verified into a videos folder, `VideoCopyParameters`; on the desktop a server's renders downloaded through the sync remote) | yes | yes |
| `Integrate` (25) | `Copies/IntegrateJobHandler` (owner review 6, #73, via `CopyJobs.CreateHandler`, registered by `AppServices`: a local sequence and its server match completed both ways by a confirmed `IntegratePlan`, `IntegrateJobParameters` with the plan's fingerprint and context; planned again on the first run, then driven by its journal; high by default; held on a metered connection) | yes | no |
| `MergeSequences` (26) | `Archiving/Jobs/MergeJobHandler` (owner review 6, #73, via `SequenceMerger.CreateHandler` with `ProjectTransplant` and the workspace guard: two local sequences merged into the kept one, `MergeJobParameters`; the other to its archive's trash after every photo is verified; high by default) | yes | no |
| `Adopt` | none: done synchronously (`ArchiveService` actions) | — | — |
A job engine claims only kinds it has handlers for. Light analysis is queued by the engine (`JobContext` follow-up)
+264 -9
View File
@@ -394,7 +394,11 @@ Primary entities (identical concepts in SQLite and PostgreSQL; ids are UUIDv7 st
sent home with their project and version; workspace-move, stored as 23, the workspace
folder moved with its projects; all three run by the desktop only: amended 2026-10-26, R8;
video-copy, stored as 24, renders copied hash-verified into a videos folder, desktop and
server: amended 2026-11-05, owner review 1 R3/R8/R9), target ids, state (queued, running, paused, done, failed, cancelled),
server: amended 2026-11-05, owner review 1 R3/R8/R9; integrate, stored as 25, a local
sequence and its server match completed both ways by a confirmed plan, then linked;
merge-sequences, stored as 26, two sequences of this PC merged into the kept one, the other
into its archive's trash once every photo is verified; both run by the desktop only:
amended 2026-11-16, owner review 6 R3), target ids, state (queued, running, paused, done, failed, cancelled),
progress (done/total, fps, eta; and a detail: step, current item, item x of y, part n of m
with its unit, stored as `jobs.progress_detail`, migration 0011, so a paused or failed job
keeps where it stopped: amended 2026-11-15, owner review 5 R2), log tail, created by, node
@@ -413,6 +417,16 @@ Primary entities (identical concepts in SQLite and PostgreSQL; ids are UUIDv7 st
R7), reason (deleted, replaced), removed at. Written from the sidecar's `removed` list (§7)
at every index sync, so a rebuild keeps it, leaving out content a frame of the sequence
holds again; it goes with its sequence row and outlives the trash entry.
- **FoundCopy** (client; amended 2026-11-16, owner review 6 R1) — a *match*: two sequences
Chronos believes hold one time-lapse, a local sequence and a sequence of one server, or two
sequences of this index; kind, evidence (link, session key, hashes, size and time), scores
(shared, only here, only there, deleted here, deleted there, containment, overlap, hints),
state (candidate, kept apart, linked, integrating, integrated), the fingerprint of what was
answered, the integrating job, the photo policy, whether new photos move by themselves, and
the 404 record of the server sequence. **CopyProbe** — what detection last compared for a
local sequence and a server (frames version, hashed count, the server's newest update time
it saw), per sequence and scope (a server, or this PC). Both go with their sequence rows;
detection finds a pair again.
- **MediaCard** (client) — id, volume serial, filesystem label, capacity, nickname, camera
identity (Make/Model/BodySerial from first file), profile JSON, first/last seen, import
history (job ids).
@@ -436,7 +450,10 @@ Main, both on live rows only, `project_versions(project_id, number)` (migration
`renders.project_id` and `renders.project_version_id`; amended 2026-10-26, R8),
`renders(created)` and `render_copies(render_id)` (migration 0010, with `renders.sha256`,
`renders.kind` and the table `render_copies`, no backfill; amended 2026-11-05, owner review 1
R3/R8/R9).
R3/R8/R9), `found_copies(local_id, server, remote_id)` and `found_copies(local_id, other_id)`
(unique per kind), `found_copies(server, remote_id)`, `(other_id)` and `(state)`, and
`copy_probes(sequence_id, scope)` (the key; migration 0012; amended 2026-11-16, owner review 6
R1).
Paging everywhere (keyset pagination on `(first_capture, id)`).
---
@@ -484,6 +501,12 @@ cache part runs. Nothing is deleted. A toast reports *Folders sorted* (with *Ope
(a Guid v7 made at first start) in its database, so a restore keeps it and a fresh database
makes a new one.
Matches (amended 2026-11-16, owner review 6 R1): migration 0012 (SQLite and PostgreSQL) adds
`found_copies` and `copy_probes` (§5) and turns every existing link that has a local sequence
into a linked pair, so a later server deletion and the pair's photo policy have a row. A
re-key of a server's links (owner review 5 R3) moves its pairs and probes in the same
transaction.
- Binding: `Chronos.Core.Windows/Sqlite/WinSqlite3.cs` P/Invoke to `winsqlite3.dll`
(`sqlite3_open_v2`, `prepare_v2`, `step`, `reset`, `finalize`, `bind_*`, `column_*`,
`exec`, `errmsg`, `last_insert_rowid`, `changes`, `busy_timeout`, `libversion`,
@@ -1300,6 +1323,21 @@ player smoke test on Windows CI.
sequence opened last on this PC, else *Open in workspace* asks which. A server-only
sequence opens the same way, as a project whose home is the server, when the server keeps
projects and the account may edit; otherwise it opens with proxies (§14.5).
- Matches (amended 2026-11-16, owner review 6 R1/R6): a local sequence in a match that needs
attention carries a Warning status, *Also elsewhere* (its tooltip names the server and the
share of photos shared, or the other archive) or *Deleted there* (the match deleted photos
this one still holds), on its card and in the list. *Compare…* in the card's context menu and
the list row opens Server › Matches searched by the sequence's title. The statuses survive a
refresh of the Library. Amended 2026-11-17 (owner Q3 "default unione": a differing photo
kept in both versions stays listed so the user can drop one): a local sequence's card and
row menu offer *Two versions…*, the photos it keeps in two versions (two usable hashed
frames of one capture instant with different SHA-256, e.g. left by a Union merge whose pair
is gone; an empty list says so), each version with *Drop…*: a dry run that says why it
cannot go (archive offline or read-only, a job on the sequence, the frames changed) instead
of asking, a confirmation naming the version that goes and the one that stays, then the
archive trash, only while the other version is still there, usable and verified by
content. A merge job's *Open* shows the list when the kept sequence has any. A server
sequence's card in a match offers *Compare…* alone.
### 12.3 Edit (amended 2026-10-16, R7; formerly "Sequence editor"; amended 2026-10-26, R8; amended 2026-11-04, owner review 1 R5/R6)
@@ -1331,7 +1369,12 @@ player smoke test on Windows CI.
state chip read from its home after the list shows) above *Library*; the search filters
both, and Enter opens a library match, a project only when no sequence matches. A
Workspace row's context menu and the Delete key offer *Remove local copy*, also for a copy
that cannot open.
that cannot open. Amended 2026-11-16, owner review 6 R5: a Workspace row whose time-lapse
(a linked or integrated match) also has a workspace project at the other home shows a muted
*Twin* chip right after the project name, its tooltip naming the other home (the server by
name, its Main in the UI language) and project. Only a sibling makes a twin (amended
2026-11-17): the other home holds a project of the same name, or of the name *Copy across*
gave it (`<name> (<PC>)`, `<name> (<server>)`), either way round, ignoring case.
- The steps form a guided path, freely navigable: **Analysis** (every finding of the
analyses with the step that deals with it; light, flicker, exposure steps received,
shake and flagged frames; Analyse), **Frames** (virtualized table: index, time,
@@ -1688,6 +1731,39 @@ is a Job (resumable, cancellable, logged). Recurring scans, integrity checks, th
proxies, analyses, maintenance, backups, clean-ups and reports are schedules in Jobs ›
Scheduled (§12.6, §14.6); the buttons here run them once (amended 2026-10-26, R10).
Merge sequences (amended 2026-11-16, owner review 6 R3/R4). Merging is built as the merge of
a local match (§12.7 Matches): two sequences of this index that hold one time-lapse, in this
PC's archive, an adopted folder or a server's originals archive. Split is not built. The
merge dialog is the Compare dialog with *Kept* and *Other* in place of this PC and the server:
the user chooses the kept sequence (preselected only when exactly one of the two is linked
and lies in a server's originals archive), the photo policy for differing photos (*Kept one
wins* or *Other one wins* besides Union and Choose each; photos only in the other always
come), each differing detail, and sees the plan: photos into the kept one, versions kept or
replaced, last copies first, renders moved, projects copied across (always, under free
names), session keys and links moved, the other to the trash. Under *Choose each* a differing
photo is *Keep both*, *Kept* or *Other*, each chosen (no *Leave*: the other goes to the trash;
amended 2026-11-17). The plan is blocked while
either sequence is busy, offline, moved, linked to the same server as the other, holds
workspace work not sent home, has a detail or a differing photo not chosen, holds a damaged
photo nothing else holds, holds photos in the other's folder the index has not read (copied
in by hand, or filed by another index; checked again before the links move and at the trash),
or the space is short (512 MiB kept free). *Merge* asks to type the other's photo
count (digits without separators, the prompt naming the number), then the `merge-sequences`
job copies and files the other's photos (hash-checked, tombstones honoured), moves the
renders, re-hashes every original of the other against the kept one, sends the losing
versions to the photo trash, writes the details, copies the projects (one the kept sequence
already holds a copy of, by name and history content, is not copied again and its renders
name that copy), runs its trash checks, moves keys and links, and moves the other into its
archive's trash only at the frames version it verified. Its journal resumes each stage after
a crash; a retry whose pair was answered meanwhile, or whose other sequence changed (work
sent to it since the plan, photos a third sequence no longer holds), drops the journal and
plans again instead; a resumed merge verifies a photo flagged damaged since its first verify
before anything goes to the trash. A merge abandoned after the
links moved gives the other sequence back its links, session keys and pairs (amended
2026-11-17). The dialog's photos read *Kept* and *Other* from its first plan; once a
sequence is kept, its one-sided classes are named by role (*Only in kept*, *Deleted in
other*), and *To trash…* on *Deleted in other* trashes from the kept sequence.
Maintenance › *Trash…* (amended 2026-10-26, R6) lists the archive's trash (§7), newest
first: deleted sequences and photos deleted from sequences, each with its kind, photos,
size, folder and when it went, and *Restore*. A sequence goes back as its folder is (into
@@ -1913,7 +1989,9 @@ disabled after the other actions, and its tooltip says the server needs an updat
while Windows reports the connection as metered, every transfer with a server pauses after
its current chunk or file and resumes by itself afterwards: uploads, the sync's downloads,
the workspace's copies from a server and its renders sent to one. Copies from and sends to
this PC's archive never wait.
this PC's archive never wait. Only the transfers it paused resume, after a restart too (it
keeps their ids in the index); a transfer the user pauses or resumes meanwhile is the user's
(amended 2026-11-17, owner review 6).
Server jobs (amended 2026-11-15, owner review 5 R2): while connected, a panel between the
connection panel and the sync table lists the server's running and paused jobs (not the
@@ -1950,6 +2028,105 @@ keeps sending originals to this PC's archive; a sequence with a local copy keeps
originals into that copy's archive; copies already downloaded stay where they are. The
originals archives are scanned after each finished scheduled scan of this PC's archive.
Matches (amended 2026-11-16, owner review 6 R1–R4, R6, R7). One time-lapse may be on a server
and on this PC under different ids, or twice on this PC. Chronos finds these *matches* and
lets the user choose what to do with each:
- Detection. Server matches are looked for after each sync refresh, outside the sync's
gate: this PC's unlinked sequences whose photos changed since they were last probed, or
that a newer server sequence may match, send up to 64 sampled photos each (by SHA-256,
conversions followed, and by size and capture time) to `POST /api/v1/photos/lookup`; hits
are compared exactly by manifest (the frames list too when a side has unhashed photos), at
most 50 per refresh. An older server without `photo-lookup` is compared by 1.1's rule, the
hints (capture range, camera, interval, title words) and session keys, at most 20 per
refresh, and offers no Integrate. Local matches (two sequences of this index sharing
photos, a session key, or a link to the same server sequence) are looked for 30 s after the
index opens and 10 s after a Scan, Rebuild, Verify, Import, Download, Convert, merge,
Integrate or Empty trash ends. A folder of sequences kept elsewhere is added with *Adopt
folder…* and compared like any archive; there are no watched folders. *Find matches*
probes everything again. Detection removes only unanswered pairs: an answer given while it
runs stays.
- *Link matches* (Settings › Server, §12.8) decides what a server match becomes: *Ask
always* (default) lists it; *When identical* links it when both sides hold exactly the same
photos by SHA-256; *Half shared* keeps 1.1's rule (the same first second and camera, half
the photos shared). A local match is always asked. New matches raise a toast "{n} matches
found" · *Review*; links made by themselves "{n} sequences linked" · *Show*.
- Server › *Matches* (a chip after Conflicts, shown while signed in or while the index has
more than one archive) lists the pairs, attention first: Sequence, This side, Other side,
State (*match found*, *kept apart*, *linked*, *integrating · x of y*, *merging*,
*integrated*, *deleted there · n*, *deleted on server*, *kept here*) and the actions of the
state: *Compare…*, *Integrate…* (*Merge…* for a local pair), *Keep apart*, *Ask again*,
*Unlink*, *Review*, *Keep here*, *Upload again*, *To trash…*. A disabled action says why.
A row shows three buttons at most (a linked pair with photos deleted there: *Compare…*,
*Unlink*, *Review*); a long archive or server name is cut in its middle, whole in the
tooltip (amended 2026-11-17). *Unlink* and *Keep apart* act on the local sequence the row
names and leave alone a link that joins another sequence since; *Link only* waits while an
integration of either side runs, and an integration never undoes a link given to another
sequence since. *Keep apart* and *Unlink* toast with *Undo*; *Keep apart* is remembered and asked again
only when the match becomes identical or its shared photos grow by the larger of 10 and a
quarter of those shared when it was answered. The rail badge counts conflicts and matches that need attention. In the sync table
a sequence in an unanswered match reads *match found* with *Compare…* first, and a linked
one offers *Compare…* last.
- The Compare dialog (in the section, Esc closes it) has four parts. *Photos*: the photo
choice for this run and a class table (same, same unverified, only here, only there,
different, converted, deleted here, deleted there, two versions) with counts and sizes per
side; a class lists its photos, with *Bring* for photos on one side under *Choose each*
(nothing preselected), *Keep both / This PC's / Server's / Leave* for different ones
(a merge: *Keep both / Kept / Other*, its one-sided classes named by role, *Only in kept*),
*Drop…* for two versions (the version Main uses reads *In Main*; dropping it lets Main use
the one that stays, with its hero and keyframes; amended 2026-11-17), *To trash…* for photos deleted there and *Delete on server…* for
photos deleted here (the owner of the server sequence or an admin, with Delete). *Details*:
one row per title, tags, rating, notes and setting, each side's value and a choice *This
PC | Server* with nothing preselected (each segment's tooltip says which value it takes),
*All this PC* / *All server* above. *Projects*:
*Copy across | Leave them* and each side's projects with where each goes. *Plan*: what each
side receives, sends, keeps in two versions, sends to the trash (last copies first), the
details changed, projects copied, free space and quota left, whether new photos will move
by themselves, and each block with its reason and, where one exists, the action that
clears it; *Link only* (a server match not linked yet) links without moving anything.
*Apply* plans again first when the shown plan is pending or was made for other choices.
- *Integrate* (local and server; R3, owner Q2 "Completa entrambe") is blocked while a detail
has no choice (the dialog then opens on Details), either side is busy or gone, the server
lacks `upload-into` or the account may not add photos to its sequence (it neither owns it
nor may edit), or space is short. A plan that replaces photos asks first (*Replace
photos?*, the losing versions listed under the side that loses them). The `integrate` job
links the two, moves the photos each side lacks both ways (never creating or retargeting a
server sequence), sends a losing version to the trash only after the winner is confirmed by
hash on that side (on the server through a dry run, then at the frames version it read),
writes the agreed details to both sides as one change, and copies the projects (§14.5). Its
journal resumes each stage; a retry after the user answered the pair otherwise refuses.
Amended 2026-11-17: who may trash a server sequence's photos is decided per sequence, as
the server's `frames/delete` allows it: the account that owns that sequence or an admin,
each with Delete (the job carries the planning account, so it plans as the dialog did).
For anyone else the server's losing version stays and is kept out of the server's Main,
which uses this PC's version; the plan lists it as needing the Delete right instead of
blocking. A server title, tags, rating or notes change made while the job runs stops its
Details stage on a line where the user kept this PC's value (nothing is overwritten on
either side); a change on a line the plan did not have, or where the user took the
server's value, is taken in. The job checks at its Link, Trash and Details stages that the
link still joins its two sides.
- After an Integrate that left nothing out, the pair is *integrated*: its new photos move by
themselves both ways (§14.5); three failures in a row raise "{title}: photos not sent" ·
*Show* and the row reads *not sent* with the reason. An Integrate that left photos out
keeps manual transfers and says so.
- Deleted there: photos the other side deleted that this side still holds read *deleted
there · n* with *Review* (the dialog on that class) and go to this PC's trash only through
*To trash…*, after a dry run and a confirmation naming last copies, and only while the other
side still has them deleted; a photo that became a last copy since the plan stops it as
stale (amended 2026-11-17).
- Deleted on server: a linked server sequence that answers 404 is marked once per refresh
(only on a server known by its id, at most once every 10 minutes, never in a sweep where 5
or more links answer 404 and none answers); a second 404 at least 10 minutes later makes
the row read *deleted on server*, with *Keep here* (then *kept here*, *Upload again*
only), *Upload again* (a new server sequence) and *To trash…* (the Library's delete, last
copies named). A sequence that comes back is linked or asked again. The sync table's row
of that sequence offers the same three actions; a single pair's 404 is confirmed with the
server, a sweep of many is not asked again pair by pair (amended 2026-11-17).
- *Upload all local* (R7, owner Q8 "Saltale e segnalale") skips sequences in an unanswered or
kept-apart match, in an integrating pair or a job's hands, whose server copy was deleted,
or in any server's originals archive; each skipped row reads *skipped* with the reason
(where the suspected match lies), and the toast "Queued: {0} · skipped: {1}" · *Show*
lists them first.
### 12.8 Settings
Sections (list on the left, controls on the right, no descriptions — tooltips only):
@@ -1968,7 +2145,8 @@ profile, memory budget, spill folder, parallelism = photos the running job proce
with a level per job kind, encoders detected, hardware preference; amended 2026-10-16, R2;
Workspace copy listed, high by default, as Download, and Local render high, Send render
normal and Move workspace high: amended 2026-10-26, R8; Copy videos high: amended
2026-11-05, owner review 1 R3/R8/R9),
2026-11-05, owner review 1 R3/R8/R9; Integrate and Merge sequences high: amended 2026-11-16,
owner review 6 R3),
Formats (per
format tier on this PC, codec install links), Storage, Workspace (amended 2026-10-26, R8:
*Folder*, the path read-only with *Open* and *Change…*, which shows a plan (projects left,
@@ -2007,6 +2185,15 @@ short server id (the full id in the tooltip), *Signed in* or *Offline*, the orig
and the server's cache share, each with *Open*. The settings Chronos Desktop owns are shown
in the shared library's admin panel as "Set in Chronos Desktop".
Owner review 6 (amended 2026-11-16, R1/R4/R5): Server gains three rows after *Default
server* and before *Render node*, found by searching "Matches": *Link matches* (*Ask
always*, default; *When identical*; *Half shared*: owner Q1 "Mettere la scelta come
parametro, default chiedere sempre"), *Integrate photos* (*Union*, default; *Choose each*;
*This PC wins*; *Server wins*: owner Q3 "default unione") and *Integrate projects* (*Copy
across*, default; *Leave them*: owner Q5 "default copiali dall'altra parte"). Each option has
its own tooltip. The Compare dialog starts from them and can change them for one run. Reset
restores the defaults; Export and Import carry them.
### 12.9 About
The last page of Settings (§12.8), no longer an entry of the rail (amended 2026-10-26, R5):
@@ -2172,7 +2359,8 @@ GET/PATCH {name}/DELETE /sequences/{sid}/projects/{pid} · GET …/{pid}/head ·
POST /api/v1/sequences/{sid}/projects/{pid}/versions push → 201 stored | 200 already_stored | 409 project_diverged | 422 hash_mismatch, newer_format, invalid_version, too_large
GET /api/v1/sequences/{sid}/projects/frames every frame and the photo aliases of replaced tombstones, of one frames version · GET …/frames/stamp
POST /api/v1/uploads {sequenceId|null, fileName, size, sha256, capturedAt?, sessionKey?, restore?} → {uploadId, chunkSize, received[]} | 200 {alreadyExists, frameId?}
POST /api/v1/uploads {sequenceId|null, fileName, size, sha256, capturedAt?, sessionKey?, restore?, intoTarget?} → {uploadId, chunkSize, received[]} | 200 {alreadyExists, frameId?, copied}
POST /api/v1/photos/lookup {probes: [{key, sha256[], unhashed?[], sessionKey?}]} → {results: [{key, hits: [{sequenceId, hashes, removed, unhashed, sessionKey}]}]} (Read; owner review 6)
PUT /api/v1/uploads/{id}/chunks/{n} body bytes (idempotent) → {received}
POST /api/v1/uploads/{id}/complete[?restore=true] → frame id (server verifies sha256, commits into layout, updates manifest)
GET /api/v1/uploads/{id} resume state
@@ -2475,6 +2663,24 @@ projects as this PC's archive does (§7), and `server/info` lists the capability
carries the render's `projectId` and `projectVersionId`, null when none. An older server
ignores both fields; the desktop notes it in the job's log.
Matches (amended 2026-11-16, owner review 6 R1/R3). `server/info` announces the capabilities
`photo-lookup` and `upload-into`; a client reads them once per server and treats an older
server as having neither.
- `POST /api/v1/photos/lookup` (Read) answers, for each probe (a local sequence's sample of
SHA-256, unhashed photos by size and capture time to the millisecond, and its session key),
the sequences of the served archive that hold those hashes in a frame, tombstoned them
(deleted or replaced by a conversion), match the unhashed photos, or are filed under the
session key: ids and counts only, never another archive of the index. At most 200 probes
and 20,000 items per request (413 `too_many`), a 4 MB body limit.
- `intoTarget: true` on `POST /api/v1/uploads` files the photo into `sequenceId`, which must
be given (400), belong to the served archive (404) and be the caller's own, or the caller an
admin or an editor (403 `forbidden`); it never goes with `restore` (400). Only a copy in
the target stands in for the photo, and a photo the target deleted answers `alreadyExists`
with no frame. When another sequence of the served archive holds the photo intact, the
server files a verified copy of that file into the target without the bytes crossing the
wire and answers `copied: true` with the new frame (§14.4). Without `intoTarget` nothing
changes.
### 14.4 Upload and ingest
Client computes SHA-256 while reading; `POST /uploads` short-circuits if the hash exists;
@@ -2490,6 +2696,17 @@ answers 507 with the upload still receiving, so the client completes it again on
room; render uploads and render-node results are checked the same way at completion, and a
volume that cannot be measured refuses nothing (amended 2026-10-26, R2).
Uploads into a target (amended 2026-11-16, owner review 6 R3): with `intoTarget` (§14.3) an
upload whose photo the target lacks, but another sequence of the served archive holds, is
copied on the server: the quota (403 `quota_exceeded`) and the archive's room (507) are
checked, the file is copied into staging and its SHA-256 compared (a mismatch or an IO error
falls back to an ordinary upload), then it is committed into the target refusing removed
photos, charged to the quota only when it makes a new frame, and announced with the frames
change event. A busy, offline or moved target answers 503. The desktop uploads a linked
sequence this way whenever the server has `upload-into`, so a linked pair whose photos the
server held elsewhere now reaches *in sync*; if the server refuses (403) it goes on with
ordinary uploads, which the server files by SHA-256.
Deleted photos (amended 2026-10-26, R6): a photo deleted from a sequence is not filed into it
again by an upload. `POST /uploads` answers a SHA-256 the target sequence tombstoned, and none
of its frames still holds, with `alreadyExists` and no frame id, so an old client syncing a
@@ -2570,6 +2787,20 @@ missing here and *Download* fetches and drops it each time; a photo never hashed
original was already missing when it was deleted leaves no tombstone, so a copy elsewhere
(another PC, a card) is not known to be deleted and can come back.
Matches and integrated pairs (amended 2026-11-16, owner review 6 R1/R6). A refresh no longer
links a local sequence to a server one by content by itself: the *Link matches* setting
decides (§12.7), *Ask always* by default, and every link has its pair. For an *integrated*
pair whose Integrate left nothing out, the sync agent queues after each refresh, at
background priority, an upload of the photos the server lacks and a download of the
originals this PC lacks into the local sequence's own archive (owner Q6 "Foto nuove in
auto"); such a transfer never creates or retargets a sequence, never runs for a pair whose
server sequence answered 404, is held on a metered connection whatever *Pause metered
transfers* says, never interrupts a running job, and backs off after a failure. Settings of
an integrated pair sync exactly as for any link. A photo deleted on one side of a linked or
integrated pair is never deleted on the other by sync: it is counted as *deleted there* and
goes to the trash of the other side only when the user confirms it (*To trash…*, or *Delete
on server…* for the server).
Converted photos (amended 2026-10-26, R7). Every replaced tombstone of either side links two
encodings of one photo, and the encodings these links join (a conversion, a conversion of it,
its undo, each side converting its own copy) compare, transfer and translate as one photo,
@@ -2611,7 +2842,15 @@ only settings both sides changed are a conflict. Versions are compared and place
(the portable form), so photos added, a copy's other frame order, a Verify that hashed a
photo or a conversion that replaced one never move a position. Only Main's head is
mirrored into the sequence's settings, so only Main crosses to a linked server copy,
through the settings sync above; other projects never leave their home. A home that is
through the settings sync above; other projects never leave their home by themselves
(amended 2026-11-16, owner review 6 R5): an Integrate of two matches with *Copy across*
(the default, owner Q5 "Scelta, default copiali dall'altra parte") copies each side's other
projects, with their histories, to the other home, named `<name> (<PC>)` (or `<name>
(<server>)`) on a clash; a merge of two local sequences always copies the other's projects
into the kept one; with *Leave them* they stay, and the two workspace copies are marked as
twins in Edit (§12.3). A copied version is verified against its content hash at the other
home, a copy someone else changed meanwhile is left alone and a new name taken, and a
project of a newer settings format is not copied. A home that is
read-only or out of reach leaves the versions waiting in the workspace. The home is this
PC's archive or a server (§14.3).
@@ -2686,7 +2925,12 @@ holds its project now, and fails, to be retried, while a move is under way. *Cop
and the server, high by default as a download is: it copies the renders its parameters
name into the host's videos folder, checking that folder again when it runs (never the
archive, the data folder or the workspace), each file verified by hash before it takes its
name (§12.10), and resumes after the copies it finished. A
name (§12.10), and resumes after the copies it finished. *Integrate* (`integrate`, stored as
25) and *Merge sequences* (`merge-sequences`, 26; amended 2026-11-16, owner review 6 R3) run
on the desktop only, high by default; each plans again on its first run and refuses a plan
whose fingerprint moved, then follows its journal in `.chronos/journal/` stage by stage, and
releases its pair on a cancel. A job of background priority (an integrated pair's automatic
transfers) never makes a running job yield, whatever its level. A
handler may clean up after a cancel: cancelling a paused or failed job no handler runs calls
it, and cancelling a paused job whose run has not ended waits for that run to end first
(amended 2026-10-26, R8).
@@ -3609,6 +3853,14 @@ questions asked and the answers; DECISIONS rows give the reasons.
| 2026-11-15 | Owner review 5, R2 (mass-pass progress, #65) | §5, §12.5, §12.6, §12.7, §14.3, §14.6, §14.8 | Jobs report a detail (step, item, item x of y, part n of m; `jobs.progress_detail`, migration 0011; `detail` on `JobDto`, `jobProgress` and `NodeProgress`), published at most twice a second per job (engine and server gate 500 ms); the Jobs rows, the job bar (60 characters), Archive › Recent maintenance, the editor's server job line and the admin panel's Jobs and dashboard show it; the desktop's Server section lists the connected server's running and paused jobs live, with Pause, Resume and Cancel only for ManageArchive. |
| 2026-11-15 | Owner review 5, R3 (separate homes, #66) | §4.4, §6.2, §12.7, §12.8, §14.3 | Each server has a stable id (`server.id`, `serverId` in `server/info`); the desktop keys servers by it with addresses as aliases; the workspace and the cache are split into `local\` and `servers\<id>\` homes (parent manifest format 2), sorted from the 1.0 layout at the first start by journaled, inventory-checked renames; a server's homes are re-keyed at sign-in; *Download originals* goes to the server's own archive beside this PC's; Settings gain Home folders and Known servers. |
| 2026-11-15 | Owner review 5, R4 (desktop as LAN server, #67) | §4.4, §6.2, §12.7, §12.8, §14.3, §14.8, §14.9, §18, §19.3 | The separate Windows server program and its Windows service leave the product: `Chronos.Server` is a library, `Chronos.Server.Host` the Docker and development program; Chronos Desktop shares this PC's library on the LAN (Settings › Server › *Share this library*, Server › This library), hosting the same engine in-process over its own index and archive; by-id endpoints are scoped to the served archive; the desktop refuses its own share. |
| 2026-11-16 | Owner review 6, R1/R7 (matches, #73) | §5, §6.2, §12.2, §12.7, §12.8, §14.3, §14.5 | Chronos finds *matches*, the same time-lapse on a server and on this PC under other ids or twice on this PC (this PC's archive, adopted folders, servers' originals archives): `found_copies` and `copy_probes` (migration 0012), every existing link a linked pair; server detection after each refresh through `POST /api/v1/photos/lookup` (capability `photo-lookup`; 1.1's rule and hints on an older server), local detection after the index opens and after jobs that change photos; *Link matches* (*Ask always* by default, *When identical*, *Half shared*) replaces 1.1's silent link; Server › *Matches* with its states and actions, *Keep apart* remembered, the Library's *Also elsewhere*; a folder of sequences is adopted as an archive; *Upload all local* skips and marks suspected matches. |
| 2026-11-16 | Owner review 6, R2/R3/R4 (compare, integrate, merge, #73) | §5, §12.5, §12.7, §12.8, §14.3, §14.4, §14.6 | The Compare dialog (Photos, Details line by line, Projects, Plan); *Link only* and *Unlink*; *Integrate* (`integrate`, 25) completes a local sequence and its server match both ways under the *Integrate photos* policy (*Union* by default, *Choose each*, one side wins for differing photos), losing versions to the trash only after the winner is hash-confirmed, the details applied as one change; the merge of two local sequences (`merge-sequences`, 26) into the kept one, the other into its archive's trash after every photo is verified, typed by photo count; both journaled and resumable; uploads into a target (`intoTarget`, capability `upload-into`) copied on the server; a background job never interrupts a running one. |
| 2026-11-16 | Owner review 6, R5 (projects across, #73) | §12.3, §12.8, §14.5 | Other projects leave their home only through an Integrate with *Copy across* (the default of *Integrate projects*) or a merge, with their histories, `<name> (<PC>)` on a clash; with *Leave them* the two workspace copies are twins in the Edit picker. |
| 2026-11-16 | Owner review 6, R6 (sync after integrating, #73) | §12.2, §12.7, §14.5 | New photos of an integrated pair move by themselves both ways at background priority, held on metered connections, told as *not sent* after three failures; settings sync as for any link; *deleted there* goes to the trash only on confirmation; a server sequence that answers 404 twice reads *deleted on server* with *Keep here*, *Upload again* and *To trash…*. |
| 2026-11-17 | Owner review 6, verification round 3 (#73) | §12.7 | Integrate trashes a server photo only for the server sequence's owner or an admin, with Delete (decided per sequence, as `frames/delete` allows); for anyone else the server's losing version stays, out of the server's Main, listed as needing the Delete right; a server detail change made while the job runs stops its Details stage where the user kept this PC's value; detection keeps pairs answered while it ran; a sync row whose match the server deleted offers *Keep here*, *Upload again* and *To trash…*. |
| 2026-11-17 | Owner review 6, verification round 4 (#73) | §12.2, §12.5, §12.7 | *Two versions…* on a local sequence's Library menu lists the photos it keeps in two versions, each with *Drop…* (owner Q3), and a merge job's *Open* shows it; a merge skips only a project the kept sequence holds a real copy of, runs its trash checks before the links move and gives the other back its links if abandoned; the merge confirmation types the count without separators; *Apply* plans again when the plan is stale; Matches rows cut long names in their middle. |
| 2026-11-17 | Owner review 6, verification round 5 (#73) | §12.2, §12.5, §12.7 | *Pause metered transfers* resumes only what it paused, a restart included; a merge's *Choose each* has no *Leave* and blocks until each differing photo is chosen; a merge is blocked while the other's folder holds photos the index has not read; *Drop…* says why it cannot go before asking, and *Drop…* of the version Main uses lets Main use the one that stays (*In Main* marks it); a server card in a match offers *Compare…* alone. |
| 2026-11-17 | Owner review 6, verification round 6 (#73) | §12.3, §12.5, §12.7 | A merge that finds the other changed drops its journal and plans again; *Unlink* and *Keep apart* act on the local side they name; *Link only* waits while either side integrates, and an integration keeps a link given to another sequence since; a sweep of 404s is not confirmed pair by pair; *To trash…* trashes from the kept sequence of a merge and stops when a photo became a last copy since the plan; a row shows three buttons at most; a Details segment says which value it takes; a twin needs its sibling at the other home. |
## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated)
@@ -3653,4 +3905,7 @@ recommendations with reasons) · Tier (how a frame's pixels are obtained) · Pro
stand-in) · Sidecar (`sequence.json` manifest) · Render (an exported video) · Preset
(bundle of export values) · Sequence preset (project settings + export preset produced by
the advisor) · Render node (client lending its GPU to the server) · Job (any long
operation, resumable) · Card profile (import rules for a memory card).
operation, resumable) · Card profile (import rules for a memory card) · Match (two
sequences that hold one time-lapse, never a duplicate photo; owner review 6) · Integrate
(complete a match both ways, then keep it in sync) · Merge sequences (two matches of this PC
into one) · Twin (a workspace project with a sibling at the other home).
+250
View File
@@ -5,6 +5,256 @@ commits follow Conventional Commits (release notes are generated from them by `C
## [Unreleased]
## [1.2.0] — 2026-11-18
Owner review 6 for v1.2.0 (`docs/requests/2026-11-16-owner-review-6.md`; issue #73). Upgrading from 1.1 keeps the
archive, the database and the settings: migration 0012 runs at start and turns every existing link into a linked
match. A 1.1 server works as before, without Integrate; a 1.2 server adds the photo lookup and uploads into a target.
### Added
- **Matches** (R1, R7):
- Chronos finds the same time-lapse on a server and on this PC under different ids, or twice on this PC (this PC's
archive, an adopted folder, a server's originals archive), by shared photos, unhashed photos of the same size and
capture time, session keys and links. Server matches are looked for after each sync refresh; matches on this PC 30 s
after start and 10 s after a scan, verify, import, download, conversion, merge, integration or emptied trash.
- Server › *Matches* lists them, attention first, with their state (*match found*, *kept apart*, *linked*,
*integrating · x of y*, *merging*, *integrated*, *deleted there · n*, *deleted on server*, *kept here*) and the
actions of each state; *Find matches* looks again. Toasts tell new matches ("{n} matches found" · *Review*) and
matches linked by themselves. The Server rail badge counts matches that need attention.
- *Keep apart* is remembered (asked again only when the match becomes identical or grows a lot); *Link only* links
without moving anything; *Unlink* keeps the two apart. Both toast with *Undo*.
- Library cards and list rows show *Also elsewhere* or *Deleted there*, with *Compare…*.
- A folder of sequences kept elsewhere is added with *Adopt folder…* and compared like any archive.
- **Compare** (R2): an in-window dialog with four parts. *Photos* classes every photo (same, same unverified, only
here, only there, different, converted, deleted here, deleted there, two versions) with counts and sizes per side and
lists each class; *Details* puts each differing title, tag, rating, note and setting side by side to choose line by
line; *Projects* shows each side's projects and where they go; *Plan* is the dry run, with every block and its
reason.
- **Integrate** (R3, R4): a local sequence and its server match each receive the photos they lack (*Union* by default:
a differing photo is kept in both versions; *Choose each*; *This PC wins*; *Server wins*), the chosen details are
written to both as one change, the other projects are copied across, then the two stay linked. Losing versions go to
the trash only after the winner is confirmed by hash, and a plan that replaces photos asks first. The *Integrate* job
resumes after a crash at each stage. *Drop…* trashes one of two versions on both sides.
- **Merge sequences** (R3): two matches on this PC are merged into the kept one; the other goes to its archive's trash
only after every one of its photos is verified in the kept one. The confirmation asks to type its photo count; the
*Merge sequences* job resumes after a crash at each stage and moves renders, projects, session keys and links.
- **Two versions…** (owner Q3): a local sequence's Library menu lists the photos it keeps in two versions (a Union
merge leaves them), each version with *Drop…*: a dry run, a confirmation naming the version that stays, then the
archive trash; a merge job's *Open* shows the list.
- Integrate trashes a server photo only for the server sequence's owner or an admin, with Delete; for anyone else the
server's losing version stays, out of the server's Main.
- **Projects across** (R5): an Integrate with *Copy across* (the default) copies each side's projects, with their
histories, to the other home, named "name (PC)" on a clash; with *Leave them* the Edit picker marks the two workspace
copies *Twin*.
- **After integrating** (R6): new photos of an integrated pair move by themselves both ways, paused on metered
connections and never interrupting a running job; three failures in a row read *not sent* and raise a toast. Photos
the other side deleted read *deleted there · n* and go to the trash only through *Review* › *To trash…*. A server
sequence that answers 404 twice reads *deleted on server*, with *Keep here*, *Upload again* and *To trash…*.
- **Settings › Server**: *Link matches* (*Ask always*, *When identical*, *Half shared*), *Integrate photos* and
*Integrate projects*, each option with its tooltip.
- **Server**: `POST /api/v1/photos/lookup` (Read; 200 probes and 20,000 items at most) and `intoTarget` on
`POST /api/v1/uploads`, which files a photo into the target by copying, on the server, a file another sequence of the
served archive holds (`copied` in the answer); `server/info` announces `photo-lookup` and `upload-into`.
- Jobs: *Integrate* (stored as 25) and *Merge sequences* (26), high in the priority queue, with their own detail steps.
### Changed
- A sync refresh no longer links a local sequence to a server one by content by itself: *Link matches* decides, and
*Ask always* is the default (1.1's rule is *Half shared*).
- *Upload all local* skips suspected and kept-apart matches, sequences being integrated or merged, sequences whose
server copy was deleted and sequences of a server's originals archive; each skipped row reads *skipped* with the
reason, and the toast "Queued: {0} · skipped: {1}" · *Show* lists them.
- A linked sequence's photos are uploaded into its server sequence even when the server holds them in another sequence,
so such a pair now reaches *in sync*.
- A job of background priority (automatic transfers) never makes a running job yield.
- Sync rows of a sequence in an unanswered match read *match found* with *Compare…* first; every linked row offers
*Compare…*.
### Fixed
- Found copies, review of owner review 6 (#73):
- A server sequence forgotten on a server known only by its address is found again when it is back.
- A Linked or Integrated pair whose link is gone is asked about again.
- A 404 counts against a pair only on a server known by its id, and at most once every ten minutes.
- Detection compares the server's update times only with the server's own, so a server whose clock is behind still
has its new sequences looked for.
- A server copy not hashed yet is found by the size and capture time of hashed photos.
- The older-server gate no longer compares the same manifests again at every refresh.
- An Integrate that failed resumes only while nobody answered the pair otherwise; a cancel or a stale plan frees the
pair from its job.
- Automatic photos never create or retarget a sequence: the pair must still be Integrated with both sides present.
- A first upload whose first photo the server holds elsewhere files that photo into the new sequence too.
- Unlink keeps the two apart against what they hold now.
- Trash here names only true last copies.
- Drop… on Two versions trashes one version on both sides, after re-checking the other one.
- A merge that keeps the pair's other sequence shows it in the first column and applies the choices to it.
- Upload all reads every pair, not only the ones listed.
- New photos of an integrated pair that failed to move three times in a row are told ("photos not sent" · Show) and
their row reads "not sent" with the reason.
- The "matches found" and "sequences linked" toasts of a detection that ran by itself open the matches from their
Windows notification too.
- The maintenance pass clears the journal of a merge or an integration that ended without deleting it, or whose job
was deleted without a cancel and nothing wrote for as long as the job history keeps jobs.
- A merge retried after the pair was kept apart, or merged again by another job, refuses and trashes nothing.
- A merge verifies the other sequence only while its archive is online and its folder is where the index says; an
unreadable photo stops the job, every photo of the other sequence must be verified before it goes to the trash, and
an unhashed photo that turns out different is kept as a second version instead of going to the trash.
- Before comparing, a merge hashes the other sequence's unhashed photos that match nothing, so different photos with
the same size and time are no longer taken for copies.
- A merge plan lists "Deleted in the other · n" and names the servers it relinks; a merge's second versions are
listed from the Library (*Two versions…* on a card's menu, and a merge job's Open), each with *Drop…*: a dry run,
a confirmation naming the version that stays, then the archive trash while the other version is still verified.
- The Merge and Integrate plans' block lines name the right sequence, archive, server and space; "already linked"
names the server.
- An Integrate retried after a failure before its first stage runs again instead of refusing.
- A sequence back on the server after a 404 stays Linked when its link still holds.
- A local cull (photos deleted on this PC) no longer flags a pair for attention.
- The Library keeps its "Also elsewhere" and "Deleted on server" statuses across a refresh.
- Compare dialog: one Details row per setting (an Auto parameter's members, the frame positions), values worded as the
sync words them; Projects lists each column's owner; Choose on "choose the sequence to keep" moves the keyboard to
the choice; the photo selection holds the photos outside the visible rows; the Replace confirmation lists the losing
versions under the side that loses them; plan lines read as queued; the Italian version choice fits.
- Matches: counts first in the This side and Other side cells, the integrating progress as a share ("x of y" in the
tooltip), counts grouped by thousands, and a match between this PC's archives names the other archive.
- Upload again after the server deleted its sequence removes the old "deleted on server" or "kept here" pair once
the new sequence is linked.
- A linked upload the server refuses into its sequence (an account without the Edit right that does not own it) goes
on as new photos, which the server files by their hash; an Integrate that would add photos to such a sequence is
blocked in its plan instead.
- Automatic photo transfers pause on a metered connection even when the metered option is off; manual transfers
follow the option as before.
- Integrate trashes a server photo only while the server sequence is still the version the winner check read.
- A merge whose other sequence holds a photo Verify found changed or damaged, which nothing else holds, is blocked
in its plan.
- The Plan counts as second versions only those kept beside their pair, a merge plan and its confirmation list the
kept sequence's photos a winning version replaces, and plan lines are drawn in the text colour.
- An integrated pair whose Integrate left photos out says new photos move on Upload and Download; a merging pair reads
"merging" and follows the merge's progress.
- Compare dialog: All server / All other say what they take; the class table shows the size of photos held only on
the other side (both sides in the tooltip), has column headings and tooltips that follow the chosen policy and the
merge; Choose each keeps file names readable; the Details part has column headings that follow the kept sequence.
- Sync table: skipped rows carry the warning glyph and Upload all says how many are left out; a linked or integrated
pair whose match deleted photos reads "deleted there · n" with Review.
- The Edit picker's twin tooltip names the server, not its key; the Library card shows the match status second; a
match whose server sequence was deleted names the server instead of "0 photos"; the match tooltips no longer call a
sequence a "copy".
- Integrate trashes a server photo only for the server sequence's owner or an admin; for anyone else the server's
losing version stays, out of the server's Main, and the plan says it needs the Delete right. Compare offers Delete on
server on the same terms.
- A server title, tags, rating or notes change made while an Integrate runs stops its Details stage where the user kept
this PC's value, instead of being overwritten.
- A merge retried after a stop plans again when work reached the other sequence since (settings, a project, a render)
or when a third sequence no longer holds a photo it was counted on for; a photo flagged missing whose file is back
blocks the merge plan.
- Detection no longer removes a pair answered while it ran.
- The Integrate and merge logs say in the UI language why a losing version was kept, and name the files and projects
they replaced or copied; an unreachable server's projects are named by the server's name.
- Upload all local names where a suspected match lies (another server, or another archive of this PC); a skipped
busy sequence says a job is integrating or merging it.
- A sync row whose match the server deleted offers Keep here, Upload again and To trash….
- Compare dialog: the parts' tooltips say what each shows; the photo list has column headings; the Projects headings
name the lists they head; a merge reads Kept and Other from the start; the Projects part shows where each project
goes as soon as it opens. Matches: the This side and Other side columns take the room the actions leave.
- The Edit picker's Twin chip sits right after the project name.
- An Integrate started by a sequence's owner who is not an admin runs the plan the dialog showed instead of refusing
it as changed.
- A merge copies a project of the other sequence that only shares its head with a kept project, renders included;
one already copied is skipped and its renders name the copy.
- A merge abandoned at its trash checks (work since the plan, unsent work, a stop) leaves the other sequence its link,
session keys and pairs.
- New photos of an integrated pair paused on a metered connection resume after a restart once it is not metered.
- Apply in the Compare dialog plans again when the choices changed in the last moment, so it never confirms the
previous plan.
- The merge confirmation asks for the photo count without separators and says it in the prompt.
- The session keys line's tooltip no longer shows "{0}"; To trash… and Delete on server… say to select photos first.
- Italian: the Main project reads *Principale* in the match tooltips and the Projects part, the twin chip *Gemello*;
the Edit picker's twin tooltip names the other home's Main in the UI language.
- Matches: long archive names are cut in their middle with the whole name in the tooltip; the Projects part trims long
names and shows the whole row in its tooltip.
- Upload again on a match is enabled only for an account that may send sequences (Upload and Edit), as in the sync
table.
- *Pause metered transfers* resumes only the transfers it paused, after a restart too; a transfer the user paused
stays paused.
- Drop… says why it cannot go (archive offline, a job on the sequence) instead of asking first. Dropping the version
Main uses lets Main use the one that stays, with its hero and keyframes; the version Main uses reads *In Main*.
- A merge plan no longer reads the other's photos again on each choice; a resumed merge checks the photos flagged
damaged while it waited; a merge is blocked while the other's folder holds photos the index has not read.
- A merge's *Choose each* asks for *Keep both*, *Kept* or *Other* for each differing photo (no *Leave*) and waits
until each is chosen; its classes read *Only in kept*, *Only in other* and so on; the last column reads *Version*
while a choice is offered, and a screen reader hears *Not chosen* for a choice not made.
- Compare dialog: the photo and Details headings stay over their columns when the scroll bar shows; the Projects part
scrolls when the projects do not fit; each line of a trash or replace confirmation has its own prefix.
- A server sequence's Library card in a match offers Compare… alone.
- Italian: *attività* for job and *spazio di lavoro* for workspace in the match strings; *Quella tenuta*; Settings ›
Server reads *Integrazione foto* and *Integrazione progetti*.
- A merge stopped after the other changed plans again on the next retry instead of failing on the same journal.
- *Unlink* or *Keep apart* of a pair that no longer holds the link leaves the other pair's link and integration
alone; *Link only* waits while an integration of either side runs, and an integration never undoes a link given
to another sequence since.
- A sweep of server sequences no longer found asks the server once, not once per pair.
- *To trash…* on *Deleted in other* of a merge trashes from the kept sequence, after a swap too, and on any trash
stops when a photo became a last copy since the plan; the version Main uses is marked from the kept sequence.
- A linked match whose server deleted photos shows three row buttons (*Compare…*, *Unlink*, *Review*).
- The policy and version choices, and Settings › Server's three match rows, fit in every language; the side of a
version reads whole and Drop… keeps its gap; each choice of a Details line says which value it takes, naming the
server; a long raw value wraps in its tooltip; the Projects headings stay over their lists.
- The Edit picker marks a project as a twin only when the other home holds its sibling (the same name, or the name
Copy across gave it).
- Italian: *Solo in quella tenuta*, *Eliminate in quella tenuta*; the replace tooltips name the kept sequence.
- Hindi: merging sequences reads मर्ज, no longer close to मिलान (match); Croatian: the matching sequence reads
*podudarna sekvenca* in the Compare and skip tooltips; Finnish: the replaced-photos line of a merge confirmation
no longer reads as a count of items.
- The translation glossaries list the match terms (Match, Integrate, Merge sequences, Keep apart, Twin, Link only
and Unlink, Union, Kept and Other) for every language.
- A merge whose kept sequence is not hashed yet hashes its photos that match the other's by size and time: the same
photo is no longer listed as a last copy, and a different one is copied in as a second version instead of going to
the trash with the other.
- A merge trashes a losing version of the kept sequence only while another sequence still holds it, or the plan
listed it as a last copy; otherwise it stops and plans again.
- A merge or an Integrate whose details changed on one side while it ran plans again on the next retry instead of
failing the same way each time.
- A server out of reach while an Integrate copies projects fails the job, and its retry finishes the same copy
instead of leaving a half copy on each side and copying it again under another name.
- A sequence read as deleted on the server is no longer so once the server lists it again or it is linked to it
again: Integrate is offered and new photos move again.
- Upload of a sequence kept apart from (or unlinked from) a server sequence makes a new server sequence instead of
adding the photos to the one kept apart and linking it again.
- A merge resumed after a failed copy of a render no longer replaces a render of the kept sequence made meanwhile
under the same name: the other's render is copied beside it under a free name.
- A photo a merge keeps in two versions because the two only matched by size and time is listed under Two versions,
also at a whole second, and Main renders only the kept version.
- An Integrate no longer trashes a losing version that became the only copy while it ran: it stops and plans again.
- Download originals of a server sequence unlinked or kept apart from its earlier download makes a new local
sequence instead of filling the old one again, re-linking it and overwriting its details.
- An upload retried after its pair was kept apart makes a new server sequence instead of linking the old one again.
- A second version a Union merge copies in is left out of Main at once, so a merge that stops before its details
(an edit meanwhile, a cancel) no longer leaves both versions in Main for good.
- A merge whose other sequence is not hashed lists as a last copy a photo matched by size and time whose content the
kept sequence deleted, instead of failing its verify on every retry.
- Download originals of a server sequence whose link a 404 forgot fills and links its own local copy again instead
of duplicating every photo into a new local sequence.
- A match whose server sequence was deleted, with no local copy linked to it, goes: *Upload all local* sends the
local sequence again and the Library stops reading it as a copy found.
- A merge whose photo held by a third sequence is held nowhere by the time of its verify asks for a new comparison,
which lists it as a last copy, instead of failing with "did not match after copying" on every retry.
- A background sync no longer pushes or pulls the details of a pair being integrated, and the Integrate stops
instead of taking this PC's own value over a line the user decided as the server's.
- A *Keep apart* answer survives a server sequence answering 404 for a moment: it is counted as a linked pair's 404
is, so the pair is neither asked again nor linked by itself; only a confirmed deletion lets *Upload all local*
send the local sequence.
- Download originals into the local copy of a pair asked about again keeps the photos deleted there deleted and
compares its details instead of overwriting them with the server's.
- An upload of a sequence asked about again makes a new server sequence instead of joining, re-linking and
overwriting the one an earlier upload made; one that joins a server sequence this PC already knows compares its
details instead of overwriting them.
- A second version a merge's verify files is left out of Main also when the run stopped right after filing it (a
drive dropping out, project.json held, the app closing): the resumed merge leaves it out then.
- A merge whose verify stopped before filing a second version, and whose photo changed before the retry, files the
photo as it is now instead of failing on every retry; one that had filed it leaves it out of Main and asks for a
new comparison.
- *Upload all local* leaves out again a sequence answered *Keep here* after its server copy was deleted, and the
answer stays; only a *Keep apart* given before the deletion lets it send the sequence.
- An upload that joined a server sequence this PC already knew still compares its details when it is resumed or
retried, instead of overwriting the server's title, tags, rating, notes and settings.
## [1.1.1] — 2026-11-16
The Windows hands-on test of 1.1.0 (#70): import, Reorganize, sharing the library, a client, the tray and Exit were
+131
View File
@@ -901,3 +901,134 @@ One line per decision: date · decision · alternative · reason.
| 2026-11-16 | `installer-test.ps1` is not run on a PC that has Chronos installed for all users: the setup finds the all-users install when no per-user one exists and asks for elevation to upgrade or remove it. It runs on a clean Windows (the CI windows job, a VM) | Point the script at another product name | The upgrade and legacy paths it checks only exist for the product `Chronos` |
| 2026-11-16 | The job log keeps storing each line's time in UTC (`HH:mm:ss`); the desktop shows it in local time, dating the lines backwards from the job's end (or now): each line is the latest instant at or before the next one. A pause of a day or more between two lines cannot be seen and those lines take the later day, so across a clock change they may be an hour off (#70) | Write local time into the log; store full UTC timestamps | A server's jobs are read from desktops in any time zone, logs already stored stay readable, and the stored format (shown as is by the admin panel) does not change |
| 2026-11-16 | The Type column of Jobs and Server › Jobs is a 1* share (was 0.7*), 90–170 px, so the Italian "Analisi approfondita" fits in a 1440 px window (#70) | `Auto` shared across the rows | `Auto` keeps its width at the minimum window, where the star columns are already at their minimums, and pushed the row actions out (Dutch, 12 px) |
| 2026-11-16 | Owner review 6 (#73): matches are a table `found_copies` beside `sync_links` (migration 0012, with `copy_probes`), not a state of the links | A group id over sequences | A copy may be in several pairs and two local sequences can be a pair; links stay one per side and server |
| 2026-11-16 | Every existing link with a local sequence is migrated as a linked pair (random v4 ids) and every new link gets its pair (`FoundCopyStore.EnsureLinkedAsync`) (#73) | Rows only for what detection finds | The 404 mark and the pair's photo policy need a row for every link |
| 2026-11-16 | *Link matches* defaults to *Ask always*, replacing 1.1's silent link at half shared; *Half shared* keeps 1.1's rule exactly, its same-second and camera gates included; *When identical* links only when both sides hold the same photos by SHA-256 and nothing is deleted on one side only (#73) | Keep the silent link; drop 1.1's gates; size and time as identity | Owner Q1 "Mettere la scelta come parametro, default chiedere sempre" and "today's rule"; adopted, unverified photos prove nothing |
| 2026-11-16 | Detection compares every archive of the index (this PC's, adopted folders, servers' originals archives) with the server and with each other; no workspace scan, no watched folders (#73) | Scan the workspace's media; watch folders | Owner Q7 "Come archivio"; workspace copies follow their homes |
| 2026-11-16 | The photo lookup sends at most 64 sampled hashes per sequence and candidates are compared by manifest, at most 50 per refresh; detection counts no Differs or Versions (#73) | Send every hash; fetch the frames of every candidate | 500,000 photos would send 32 MB per refresh; the Compare dialog counts Differs |
| 2026-11-16 | An older server (no `photo-lookup`) gets candidates by 1.1's gate, the hints (40 or more) and session keys, at most 20 manifest comparisons per refresh, and no Integrate (#73) | Integrate without `upload-into` | Such a server would not file into the target photos it holds in another sequence |
| 2026-11-16 | Uploads of a linked sequence use `intoTarget` on a server with `upload-into`; a server-side copy that files a new frame is charged to the quota (#73) | Use it only in Integrate; copy for free | A linked pair whose photos the server held elsewhere never reached in sync; the archive grows by those bytes |
| 2026-11-16 | A Union keep-both files the other version as a second frame and excludes it from Main; this PC's (the kept one's) version stays included on both sides, so the server's Main and renders use this PC's version (#73) | Each side keeps its own version | One payload on both sides; the next one-sided push would switch it anyway |
| 2026-11-16 | *This PC wins* / *Server wins* decide the differing photos only; photos on one side only always reach the other, and only replaced versions go to the trash (#73) | The losing side's only-there photos stay or go | Owner Q3 (one side wins "for differing photos") and Q2 "Completa entrambe" (each gets what it lacks) |
| 2026-11-16 | Details with no choice block Integrate and nothing is preselected; Integrate… then opens on Details (#73) | Preselect this PC | Owner Q4 "Riga per riga": the user chooses each line |
| 2026-11-16 | Integrate of a local pair is a merge; the kept sequence is preselected only when it is the linked one in a server's originals archive, else the user chooses (`CopyBlock.KeptUnchosen`) (#73) | This PC's archive | Adopt folder… moves the last archive to the adopted folder, so "this PC's archive" names no fixed sequence |
| 2026-11-16 | A merge moves the other's session keys (those the kept archive does not already map), links (their agreement reset), pairs and renders (row moved, id kept) to the kept sequence (#73) | Leave them on the other | Later imports and downloads join one sequence; a moved link must not push a payload chosen against the other |
| 2026-11-16 | A merge is blocked while the other has workspace work not sent home, checked again before its trash stage; an unreadable workspace state counts as unsent (#73) | Carry the workspace projects across | Re-homing a workspace project is not built; nothing unsent may go to the trash |
| 2026-11-16 | A local sequence linked to a sequence of a server is not matched with another sequence of that server; the two local copies of one server sequence form a local pair instead (#73) | Merge server sequences | Out of scope for 1.2 |
| 2026-11-16 | Projects cross through a new `ProjectTransplant` (journaled intent, versions verified against their hash, `FreeName` "name (PC)", "(2)"…) beside WorkspaceSync's Save both (#73) | Refactor Save both | No risk to the workspace engine |
| 2026-11-16 | Settings of integrated pairs sync exactly as for any link: no stored base payload and no field-level three-way merge in 1.2; a follow-up issue asks the owner (#73) | A member-by-member merge against a stored base | Owner Q6 "settings as today" |
| 2026-11-16 | New photos move by themselves only for integrated pairs whose plan left nothing out (`AutoPhotos`); Link only and older links keep manual transfers (#73) | A per-photo exclusion list the agent honours | Owner Q6 scopes it to integrating; the agent must never undo a per-photo choice |
| 2026-11-16 | A 404 marks the pair; it reads *deleted on server* only after a second 404 at a later refresh from the same server id; a sweep of 404s marks nothing (#73) | Forget silently; mark on the first 404 | Never invite trashing the only copy on a transient answer; owner Q6/Q8: ask instead |
| 2026-11-16 | *Upload all local* skips suspected and kept-apart matches, integrating and busy sequences, sequences whose server copy was deleted and every server's originals archive, the current server's too, and marks them *skipped* (#73) | Skip only other servers' archives; upload kept-apart ones as new sequences | Owner Q8 "Saltale e segnalale"; a copy in an originals archive came from a server; a new server sequence would hold only the photos the server lacks anywhere |
| 2026-11-16 | The Import › Folder… warning for photos already on a server or in another archive is not built in 1.2 (#73) | Build it | Local detection runs after the import's scan and the server's at the next refresh, so the match shows within minutes |
| 2026-11-16 | The Matches list shows local pairs while signed out; the chip shows while signed in or while the index has more than one archive (#73) | Only while signed in | Local pairs need no server |
| 2026-11-16 | The row action is *Integrate…* for a local and server pair and *Merge…* for a local pair (#73) | One word for both | The merge sends a folder to the trash; the row must say so |
| 2026-11-16 | Pairs and answers cascade with their sequence rows (trash, Rebuild, Orphans, Reidentify); detection finds them again (#73) | Key the answers by fingerprint | Simplest; a re-indexed sequence is asked about again at worst |
| 2026-11-16 | Every linked sync row offers *Compare…* (and so Integrate) as its last action (#73) | List every plain link under Matches | Every linked sequence can be integrated without crowding the list |
| 2026-11-16 | The UI noun is *match* / *corrispondenza* (Server › *Matches* · *Corrispondenze*), never *copy* / *copia*; code keeps `FoundCopy`, `found_copies`, `CopyEngine`; `i18n/GLOSSARY.md` gains Match, Integrate, Merge sequences, Keep apart and Twin (#73) | *Found copies* / *Copie trovate* | The photo-duplicates report owns "copie" (*Segna copie*); the 36 other cultures must keep the two apart |
| 2026-11-16 | Owner review 6 was built in parallel parcels (P0 foundation, P1a, P2 and P6, then P1b and P4, then P3 and P5) with per-file ownership in worktrees, merged with `--no-ff`; the en and it keys came with P0, the 36 other cultures at the release step (#73) | Sequential parcels | Eight parcels in one release; no merge had a conflict |
| 2026-11-17 | The once-per-refresh count of a server 404 is kept in memory per database (a `ConditionalWeakTable` keyed by `IDatabase`), not in the schema (#73) | A column of the refresh id | After a restart a new refresh id counts again anyway |
| 2026-11-17 | The trash hooks' new optional parameters (`exceptJob`: the job holding the sequence is not Busy; `expectedFramesVersions`, checked under the lease) come after the `CancellationToken` of `FrameTrash` and `SequenceTrash` (#73) | Before the token, as CA1068 prefers | Existing positional callers stay unchanged; CA1068 does not fire on optional trailing parameters |
| 2026-11-17 | `EnsureLinkedAsync` demotes the other Linked or Integrated rows of the same local sequence and server, not only those of the same remote; a merge's links stage re-points the session keys the other held in the kept archive and resets the moved pairs' frames versions (-1) so they are compared again (#73) | Demote by remote only; insert missing keys only | `sync_links` holds one link per side and server; a moved pair's counts no longer describe the kept sequence |
| 2026-11-17 | `UploadRules.CopySource` takes a sequence-to-archive map, so a server-side copy for `intoTarget` never takes a file of another archive of the index; the copy keeps the source's original file name (`OriginalFileName ?? FileName`) (#73) | The design's four parameters; the archive's file name | A frame does not carry its archive; the new frame must not record the archive's renamed file as its original name |
| 2026-11-17 | A photo lookup's *Removed* never counts a hash the same sequence still holds in a frame; the lookup route has its own 4 MB body limit (#73) | Count every tombstone; the 1 MB JSON limit | A stale tombstone would count one photo twice; a full 20,000-item request is about 1.4 MB |
| 2026-11-17 | `CopyRules.Decide` takes the pair's evidence (default hashes), so a session-key pair with no shared photo is still asked; a kept-apart pair asks again on becoming identical only if it was not identical when answered (read from the answered fingerprint) (#73) | The design's signature; ask whenever it is identical | A back-reference alone is a match; a pair kept apart while identical must not be asked over and over |
| 2026-11-17 | The last-copy check (`CopySides.HeldElsewhereAsync`) ignores frames flagged Missing or Corrupt; an unhashed photo without a capture time gets the key `u:<size>:<frame id>` and never matches (#73) | Count them as held; key them by size alone | A missing file is not a copy; photos without a time cannot be told apart |
| 2026-11-17 | `CopyFinder` keeps per process the server pairs already compared at the same frames versions and hashed count, cleared by Find matches for its scope; it replaces 1.1's `_unmatched` (#73) | Compare the same first candidates at each refresh | A sequence with more candidates than one refresh compares would never get past its first batch |
| 2026-11-17 | The exact comparison of detection reads the frames list too when either side has unhashed photos; lookup probes carry the other encodings conversions link to a sampled photo, 64 hashes at most (#73) | The manifest only; the sampled encoding only | A folder never verified still matches by size and time; a server holding either encoding is found |
| 2026-11-17 | A 404 seen during an upload forgets the link without marking the pair (marks come only from refresh comparisons); a sweep is 5 or more gone links with a local copy and no linked sequence listed or answering in the same refresh (#73) | Mark on every 404 | The once-per-refresh and sweep rules must apply to every mark; a shared desktop serving another archive answers 404 for all |
| 2026-11-17 | A reconcile that finds a linked or integrated pair with no score yet (a plain upload or download link) computes its full detection score once (#73) | Leave it at zero | Ask again after an Unlink must compare against real counts |
| 2026-11-17 | `SyncService.ApplyAgreedAsync` writes the server first, by content, absorbing one-sided server changes and retrying a 409 up to three times, then this PC under the strict version check; a side that already holds the final payload is not written again (#73) | This PC first; write both always | A server change made meanwhile must not be lost silently; a resumed job must not write twice |
| 2026-11-17 | The plan context (rights, names) travels with an Integrate job (`IntegrateJobParameters.Context`, a JSON copy without the id sets); a job queued without one plans with `IntegrateJobContext.Permissive` (#73) | Plan the job without the context | Rights and names change the fingerprint: the job must plan as the user's plan did |
| 2026-11-17 | (Superseded by the 2026-11-17 row deciding ownership per sequence, below.) Until a server tells ownership per sequence, the desktop's plan context reads `OwnsOrAdmin` as the Delete right or an admin right (ManageArchive, ManageUsers); the server still enforces ownership on `frames/delete` (#73) | Ask the server for each sequence's owner | The client does not know who owns each server sequence; a wrong guess fails at the dry run, before anything moves |
| 2026-11-17 | An Integrate's journal is kept after a failure (the job resumes) and deleted on a cancel and when the job finishes; a job that ends with steps or projects kept leaves the pair Linked, not Integrated, and fails with `Errors.Copies.Kept` or `ProjectsKept`; a server sequence gone during it raises `RemoteGoneException` (#73) | Keep the journal on cancel; call the pair integrated | A cancel drops the plan; a pair that kept something apart must not move photos by itself |
| 2026-11-17 | Busy, for both planners, is a running transfer of the pair plus the pending and running jobs on the local id, its archive and the remote id, the job itself excepted; the quota left is a warning in the Integrate plan, not a block; a merge keeps 512 MiB free (#73) | `ListHoldsAsync` and `ListPendingTargetsAsync`; block on quota | One query covers transfers and jobs; the server refuses an upload over quota itself |
| 2026-11-17 | A merge's fingerprint uses its own per-sequence frames stamp (count, bytes, hashed count, flag counts, tombstones) and a hash of each side's details, not the archive's convert stamp; Busy and Offline found by the trash dry run are reported as the merge's Busy and ArchiveOffline blocks (#73) | `GetConvertStampAsync`; list them as TrashBlocked | The convert stamp moves with any import in the archive and misses a title edit; one cause, one line |
| 2026-11-17 | A failed merge leaves its pair Integrating in the table, read as its previous state while the job is failed; after a project is copied, the renders moved to the kept sequence that named the source project are re-pointed to the copy and its versions (#73) | Reset the pair at failure; leave the renders | A retry must find its pair; renders must not name a project that went to the trash |
| 2026-11-17 | Automatic photos are queued after each refresh at Background priority for Integrated pairs with AutoPhotos and no 404 mark; a failure backs off as proxy downloads do; Integrate is held on a metered connection (`UploadHold`), a merge is not (#73) | A timer of their own; hold merges too | The refresh already knows what each side lacks; a merge works only on this PC |
| 2026-11-17 | `CopyWatch` runs local detection 30 s after the index opens and 10 s after a Scan, Rebuild, Verify, Import, Download, Convert, MergeSequences, Integrate or EmptyTrash job ends, one detection at a time, requests meanwhile giving exactly one more run; its delays are options, not a `TimeProvider` (#73) | Detect at once; a fake clock | Let the index and the job's follow-ups settle first; the test projects have no shared fake timer |
| 2026-11-17 | `CopyEngine` takes optional dependencies (workspace guard, a refresh delegate the App routes through the sync agent, server names, the follow-up job engine, a workspace-project lister) so `Chronos.Data` holds no App type; a trash step whose photo was restored or is no longer deleted there throws `StaleCopyPlanException` (`Errors.Copies.NotThere`) and moves nothing (#73) | Reference the App's services | Data builds on Linux; the App's catch of `InvalidOperationException` still applies |
| 2026-11-17 | The photo-trash confirmation reuses `Server.Copies.Plan.Trash` as its heading and `Archive.Delete.Action`/`Keep`; the Matches State header reuses the sync table's; the *deleted on server* and *kept here* sync tooltips reuse `Tooltips.Server.Copies.State.*`; the sample server announces `photo-lookup` and `upload-into` (#73) | New keys; a sample server without them | Same words in the same places; the screenshots show Integrate enabled |
| 2026-11-17 | Forgetting a link on a server known only by its address (no 404 mark) deletes that remote's Candidate rows and its Linked/Integrated pair row with this local copy, and resets the local copy's probe for that server (#73) | Keep the rows | A sequence back on the server must be detected again, not hidden by a row that no link backs |
| 2026-11-17 | A failed Integrate keeps its job id on the pair (state set back); a retry resumes only while the pair is still Integrating or carries that job; otherwise it deletes its journal and fails as a stale plan. A cancel or a stale plan clears the job id (#73) | Clear the job id on every failure | A retry must not touch a pair the user answered meanwhile, and a failed job must still be resumable |
| 2026-11-17 | Automatic photo transfers (`SyncJobParameters.Automatic`) never create or retarget a sequence: the link and an Integrated pair with automatic photos must still hold and the server sequence must exist; else the job fails (#73) | Fall back to the ordinary upload or download | The setting moves photos between the two sides of a pair, nothing more |
| 2026-11-17 | A local copy's probe stores the server's newest update time it saw (`copy_probes.server_newest`, in migration 0012); a server sequence is due only when the server shows a newer one (to the microsecond) | Compare with this PC's clock | A server whose clock is behind would hide its new sequences |
| 2026-11-17 | The photo lookup's sample also carries the hashed sample photos by size and capture time; the hit threshold counts each sampled photo once | Hashes only | A server that has not hashed its copy yet (adopted, not verified) lists no hash |
| 2026-11-17 | In a merge keeping the pair's other sequence the dialog swaps its columns; detail index 0 stays "kept" and Different photos are re-keyed to the kept one's version | Keep the pair's order | The merge reads ThisPc and TakeHere as the kept side |
| 2026-11-17 | The maintenance pass clears a merge's or an integration's journal (`merge-<job>.json`, `integrate-<job>.json`) once its job is done or cancelled, or once the index no longer knows the job and nothing wrote the file for the job history's days; a failed or paused job's journal stays for its retry (#73) | Clear it with the job's deletion only | A job deleted without a cancel (or another host's) never deletes its journal itself |
| 2026-11-17 | Automatic photos that failed `SyncAgent.NotSentAfter` (3) times in a row are told once with an error toast "{title}: photos not sent" · Show, which runs from its Windows notification too and shows the row; the row reads "not sent", the last reason in its tooltip, until a transfer succeeds (#73) | A toast at every failure; a badge only | Design §6.1/§7.3: retried quietly with backoff, told when it keeps failing; a toast that only navigates may run from the notification, as the jobs' Open does |
| 2026-11-17 | A Corrupt or Missing frame on this PC whose photo the server holds is repaired by an Integrate through the ordinary fetch: the plan lists it as a Fetch (the comparison leaves unusable frames out), and the ingest replaces the damaged holder in place, the old file moved aside as `.damaged-<time>` (#73) | A repair step of its own | Design §5c says unusable photos are fetched or sent as a repair; the ingest already repairs a damaged holder of the same SHA-256, so no new code was needed, only a test |
| 2026-11-17 | A merge's Verify stage hashes each frame of the other sequence; one already held is Verified, one tombstoned in the kept sequence is Absent, an unhashed one the kept sequence does not hold is filed as a second version; a photo that fails verification but is held elsewhere in this PC's index is Settled. Trash proceeds only when every usable frame of the other sequence is in one of these lists (#73) | Skip what cannot be read | Owner Q2: nothing goes to the trash unverified; Settled avoids a retry loop on a photo the other sequence deleted that this PC still holds elsewhere |
| 2026-11-17 | A local cull (Score.DeletedHere) no longer counts as needing attention; only the other side's deletions (DeletedThere) do (#73) | Give DeletedHere a state word and an action | Photos the user deleted on this PC are the user's own act; the Review action already covers the other side |
| 2026-11-17 | A merge's second versions are found again from the kept sequence's frames (`CopySides.VersionsAsync`: two usable hashed frames of one sub-second capture instant with different SHA-256), with no new table (#73) | A table of the filed pairs | The frames already carry what the pair needs; the Library lists them (Two versions…, below) |
| 2026-11-17 | Compare › Details groups the lines of one setting into one row (`SyncText.DetailSetting`) with one choice applied to every path; values unknown to the sync's wording read "changed", the raw JSON in the tooltip (#73) | One row per JSON path | An Auto parameter's members and the parked positions are one decision for the user |
| 2026-11-17 | The Compare photo list keeps each row's selection from the list's SelectionChanged (`ListSelection.SyncsRows`), not only from the realised rows' IsSelected binding (#73) | Turn virtualisation off | A long class list must stay virtualised; Ctrl+A must reach the hidden rows |
| 2026-11-17 | Automatic photo transfers (an integrated pair's new photos) are held on a metered connection whatever the "pause on metered" option says; manual transfers follow the option (#73) | Follow the option for every transfer | Owner Q6: new photos move by themselves "with a metered pause"; the option still governs what the user starts |
| 2026-11-17 | A linked upload whose IntoTarget the server refuses (403 forbidden) falls back for the rest of the job to ordinary uploads the server files by SHA-256; an Integrate that would send photos into a server sequence the account neither owns nor may edit is blocked in its plan (`CopyBlock.NoAddRight`) (#73) | Fail the upload; ask the server for a new right | A Read+Upload account keeps uploading as before 1.2; an Integrate cannot fall back without leaving its plan, so it stops before anything moves |
| 2026-11-17 | A merge is blocked (`CopyBlock.DamagedPhotos`) when the other sequence holds a Corrupt- or Missing-flagged photo (one whose file is back counts too: the merge would not copy it) whose current file content nothing in the kept sequence or elsewhere in this PC's index holds; one held elsewhere goes to the trash as before (#73) | List the damaged photos in the plan and trash them | The simplest safe option: nothing unverified goes to the trash, and Verify/repair already exist |
| 2026-11-17 | The Plan's "Server uses ours" line counts only the versions whose server version goes to its trash or out of its Main (`IntegratePlan.ServerUsesOurs`); a losing server version that stays for want of the right to delete it is listed as "stays: needs the Delete right" (`StaysForDelete`) and kept out of the server's Main by the payload (#73; replaces the earlier row that counted every version sent) | Count every version sent | A version sent but not used by the server's Main would be reported as used |
| 2026-11-17 | Who may trash photos of a server sequence is decided per sequence: the admin role (`CopyPlanContext.OwnsOrAdmin`, from the role or the ManageUsers permission only an admin holds) or the account that owns that sequence (its `OwnerUserId`), each with the Delete right; Integrate plans and Compare's Delete on server follow it (#73; replaces approximating ownership with the Delete right) | Approximate ownership with the Delete or Edit right | The server's DeleteFramesAsync allows the owner or an admin only: an Editor's plan would fail at the dry run with a 403 |
| 2026-11-17 | An Integrate's Details stage absorbs a server change made since the plan only on lines the plan did not have, or where the user took the server's value; a change to a title, tags, rating or notes line where the user kept this PC's value stops the stage (`Errors.Copies.DetailsChanged`) and overwrites neither side (#73) | Absorb every server change since the plan | Absorbing would silently overwrite the server's new value with this PC's on a line the user decided before that value existed |
| 2026-11-17 | A merge retried after a stop re-checks before the trash that nothing reached the other sequence since its plan: its settings version, a project not planned (or moved on to another head) that the kept sequence does not hold, a render not moved whose file the kept one does not hold, and the photos a third sequence held at the verify; any of these drops the journal and asks for a new plan (`Errors.Copies.Changed`); the plan skips only an other's project the kept sequence holds a copy of (`SequenceMerger.HeldAsync`: a kept non-Main project named after it, one version ahead, every version's content the same at the copy's offset), and that project's renders are re-pointed to the copy and its head; a kept project that merely has the same head is no copy (#73; tightened by the fourth verification round) | Trust the journal written before the stop | Work sent home into the other after the stop would go to the trash with it, never copied |
| 2026-11-17 | Detection removes a stale pair only while it is still an unanswered Candidate (`FoundCopyStore.DeleteCandidateAsync`): an answer given while detection ran stays (#73) | Delete by id | A Keep apart or a Link given during a detection pass was erased |
| 2026-11-17 | The merge dialog plans once on opening to learn the sequence kept by default, so its photos read Kept and Other from the start; with no default (both equal) they read the two archives' names until one is kept (#73) | Read Kept for the pair's first until a plan runs | The wrong sequence was called "Kept" until the Plan part was opened |
| 2026-11-17 | A sync row whose match the server deleted offers the Matches row's Keep here, Upload again and To trash… (Upload again only once kept here), as new `SyncAction` values appended to the enum (#73) | Offer them on the Matches list only | Design §6.3 puts them on the local row; the row read "deleted on server" with no action |
| 2026-11-17 | The capture's edit-picker-twins scene lists two sample workspace projects (the integrated pair's Main, a Vertical of a pair still to answer) through `SequencePickerViewModel.ShowSampleWorkspaceAsync`, since a capture has no workspace (`WorkspaceHost.IsEnabled`); the Twin chip is marked by the picker's own twin lookup (#73) | Enable the workspace in a capture | The capture's sample library has no engine to copy media; without it the scene showed no Workspace group and no chip |
| 2026-11-17 | A merge runs its trash checks (unsent work, work since the plan, the frames version, the other's archive readable, the verified held photos, the trash dry run) before its Links stage moves the other's session keys, links and pairs; the move records an undo (`MergeLinksUndo` in the journal) that a failure, a stop, a Forget or a stale resume applies before the journal goes, so an abandoned merge leaves the other sequence its links and keys (#73) | Run the checks at the Trash stage only | A merge abandoned at the trash left the surviving other sequence without its link and keys |
| 2026-11-17 | An Integrate job carries the planning account's id (`IntegrateJobContext.UserId`), so its re-plan decides ownership as the dialog did (#73) | Re-plan with admin rights only | A non-admin owner's job planned differently from the dialog and was refused as changed |
| 2026-11-17 | The metered hold keeps the ids of the jobs it paused in the index (app setting `sync.meteredHeld`), so a restart resumes them once the connection is not metered, and forgets a job as soon as the user pauses, resumes, retries or cancels it through the job queue (Jobs, the sync table, Matches); it never resumes a job it did not pause (#73; replaces adopting every paused automatic transfer, which resumed transfers the user had paused) | Adopt the automatic transfers found paused at each pass | A restart while metered left the integrated pairs' new photos paused for good, and adopting them undid the user's own pause |
| 2026-11-17 | The Compare dialog's Apply re-plans first while a plan is pending or when the shown plan was made for other choices (kept sequence, policy, per-photo, details, projects) (#73) | Disable Apply during the 300 ms debounce | A quick Apply confirmed the previous choices' plan |
| 2026-11-17 | Two versions… on the Library's card and row menu of a local sequence lists the photos it keeps in two versions (`ICopyEngine.VersionsAsync`), each version with Drop…: a dry run, a confirmation naming the version that goes and the one that stays, then the archive trash, applied only while the other version is still there, usable and verified by content; a merge job's Open shows it when the kept sequence has any. The item is in the menu of every local card (an empty list says so) (#73) | Show the item only when the count is above zero | Counting needs a frames read per card; owner Q3 wants the versions findable after the pair is gone |
| 2026-11-17 | A merge's typed confirmation is the other's photo count without separators (invariant), and the prompt names it ("Type {1}, the number of photos of {0}, to confirm") (#73) | The count in the UI culture | "1.204" in Italian could not be typed as "1204", and the prompt did not say what to type |
| 2026-11-17 | A Matches row trims a long archive or server name in its middle (24 characters, `CopyText.MiddleTrim`), the whole text in its tooltip; the columns are Sequence `*`, the sides `1.4*` (180 px at least), State 160, Actions `1.4*` (#73) | An end ellipsis | Archives named alike differ at their end |
| 2026-11-17 | Drop… (Two versions… and the Compare dialog) shows why its dry run cannot go (the archive offline or read-only, a job on the sequence, the frames changed) and asks nothing (#73) | Ask, then fail | The confirmation was asked for a drop that could not run |
| 2026-11-17 | Dropping the version Main uses lets Main use the one that stays: its pending entry is included and takes the hero and keyframes of the one that went (`CopyPayload.KeepVersion`), written at the settings version the plan read, on this PC's sides and, through the API with three tries on 409, on the server's; a Main changed meanwhile, or a server account without Edit, leaves Main as it is and says so after the version is in the trash (`Errors.Copies.MainChanged`, `Errors.Copies.MainNotEdited`). The version Main uses reads *In Main* (#73) | Leave Main as it is | A Union keep-both excludes the incoming version; dropping the other left the photo out of Main and its renders |
| 2026-11-17 | The merge planner keeps the SHA-256 it read of each photo by frame id, size and last write time (at most 200,000, then cleared), so a re-plan on each choice does not read the other's photos again (#73) | Hash on every plan | Every choice in the merge dialog re-read every unhashed photo of the other |
| 2026-11-17 | A merge records the flagged photos of the other it verified (`MergeJournal.FlaggedVerified`); a resumed merge verifies a photo flagged damaged since, as the first run would, before anything goes to the trash (#73) | Trust the verify of the first run | A photo flagged damaged while the job waited went to the trash unchecked |
| 2026-11-17 | A merge is blocked while the other's folder holds photos this index has not read (`CopyBlock.FolderChanged`): its photo directory's stamp is not the recorded one, or its sidecar's frames version is not the row's; checked at the plan, at the verify and before the links move, and under the sequence lease at the trash (`SequenceTrash` takes a check that throws `StaleDeletePlanException`). The sidecar's own stamp does not count: the merge rewrites it when it moves session keys (#73) | Trust the index | The trash moved photos copied in by hand, never verified in the kept sequence |
| 2026-11-17 | A merge's *Choose each* offers *Keep both*, *Kept* and *Other*, without *Leave* (the other goes to the trash, so leaving keeps the kept one's version, which *Kept* says), and the plan is blocked until each differing photo is chosen (`CopyBlock.PhotosUnchosen`, with Choose leading to Photos); its tooltip says so (`.ChooseMerge`); a choice not made reads *Not chosen* to a screen reader (#73) | Keep Leave as in an Integrate | Leave read as keeping both sides, and an unchosen photo merged silently |
| 2026-11-17 | Once a merge keeps a sequence, its one-sided classes are named by role from the kept one (*Only in kept*, *Only in other*, *Deleted in kept*, *Deleted in other*), following a swap; before, by place; the photo list's last column reads *Version* while the rows offer a choice (#73) | Only here / Only there | "Only here" named the archive, not the role, and read wrong after a swap |
| 2026-11-17 | The photo list and the Details list always show their vertical scroll bar and their headings keep its width, so the columns never shift; the Projects part scrolls both lists together (#73) | Auto scroll bars | The headings drifted from their columns when the bar appeared, and many projects pushed the footer out |
| 2026-11-17 | The trash and replace confirmations prefix every line: *Only copy:*, *Replaced:* (Replace), *Held elsewhere:* (To trash…, Delete on server…, Drop…) (#73) | A bare name under an *Only copy:* line | A bare name read as another only copy |
| 2026-11-17 | A server sequence's Library card in a match offers *Compare…* alone (`Menu.CardMatchRemote`): Two versions… lists a local sequence's own photos (#73) | The local card's menu | Two versions… on a server card listed nothing it could act on |
| 2026-11-17 | Italian: Job is *attività* and workspace *spazio di lavoro* in every new string (`i18n/GLOSSARY.md`); Kept reads *Quella tenuta*; the Settings rows read *Integrazione foto* and *Integrazione progetti* (#73) | Lavoro | The glossary fixes both terms; "lavoro" read as work, not a job |
| 2026-11-17 | Finding 9 of the fifth verification round (a pair of this PC's sequences dropping a version listed "0 photos") is not reproduced: `DropVersionPlan.Photos` counts each local side's version, 2 for two local sequences; a test keeps it so (#73) | Change the count | The count was right; the test proves it |
| 2026-11-17 | A merge that finds the other changed since its journal (frames version, a frame not verified, the trash re-check) deletes the journal before it fails, so the retry plans again (#73) | Keep the journal | Every retry failed on the same stale journal |
| 2026-11-17 | Unlink names the local side it unlinks (`SyncService.UnlinkAsync(server, remote, local)`): a link that now joins another local is left alone; an integrating pair is refused (*Busy*); the state moves by compare-and-set. Link only is refused while a pair of either side integrates, and the Integrate job checks at Link, Trash and Details that the link still joins its two sides (#73) | Unlink by the remote alone | Unlinking a stale pair cut the link and the integration of the pair that held it |
| 2026-11-17 | A sweep of 404s (`MarkGoneAsync` over many pairs) does not ask the server for each pair again; only a single pair's 404 is confirmed (#73) | Confirm each | A sweep asked the server once per pair, the sweep's own question |
| 2026-11-17 | To trash… names the sequence it trashes from (`PlanTrashHereAsync(copy, fromSequence, …)`): a merge's *Deleted in other* trashes from the kept sequence, after a swap too; every trash or drop re-checks for photos that became a last copy since the plan and fails as stale (#73) | Always the pair's first | After a swap the trash came from the sequence that goes to the trash anyway |
| 2026-11-17 | A row shows three buttons at most: a linked pair with photos deleted there drops *Integrate…* (Compare… and Review both reach it); a test holds every state to three. No new sample pair for it, to keep the captures (#73) | Four buttons | The fourth button overflowed the actions column |
| 2026-11-17 | The policy boxes (dialog and Settings › Server) are 240 px and the version box 185 px, sized by a test that measures every label in every shipped language (Greek is the longest); the label trims with an ellipsis if a future one is longer (#73) | Fixed narrower widths | Long translations were cut without a sign |
| 2026-11-17 | A Details segment's tooltip says which value it takes (*Take the value of Studio NAS: 33*; a merge: the kept or the other sequence's); a raw value tooltip wraps at 480 px (#73) | One tooltip for the row | The two segments did not say which side was which |
| 2026-11-17 | A workspace project is a twin only when the other home holds its sibling: the same name, or the name Copy across gave it ("name (PC)", "name (server)"), either way round, ignoring case (#73) | Any project of a linked sequence | Every project read as a twin, one with no counterpart too |
| 2026-11-17 | Italian: *Solo in quella tenuta* and *Eliminate in quella tenuta* (four words, over the three-word label rule, as the finding proposed: *quella* says it is a sequence, not a place) (#73) | Solo nella tenuta | "Nella tenuta" read as a place |
| 2026-11-17 | The Integrate and merge logs give the reason a losing version was kept in the UI language (`CopyLog`: one `Archive.Log.KeptReason.*` phrase per dry-run block, the stale-plan and server-refusal phrases, else the system's message), and name the files and projects they replaced or copied; an unreachable server's projects are named by the server's name (#73) | Log the block enum names | The job log is read by the user; an enum name says nothing |
| 2026-11-17 | *Upload again* on a Matches row and its sync row is enabled only for an account that may send sequences (`SyncHost.CanSendSync`: Upload and Edit), as the sync table's uploads are (#73) | Upload alone | A new server sequence takes the settings too, which needs Edit; the server would refuse it after the click |
| 2026-11-17 | The owner review 6 terms get a row in `i18n/GLOSSARY.md` and in each culture's `glossary.tsv` (Match/Matches, Integrate, Merge sequences, Keep apart, Twin, Link only/Unlink, Union, Kept/Other), each culture's term read from its own resx, so the glossary describes what ships (#73) | Write the glossary before the strings | The 36 cultures were translated at the release step; the glossary now fixes those choices for the next strings |
| 2026-11-17 | Hindi: merging two sequences reads मर्ज (*सीक्वेंस मर्ज करें*, *मर्ज जारी*), as project merges already did, instead of मिलाएँ/मिलाना; *मिलान* stays the match term; merging import sessions keeps मिलाएँ (#73) | Keep मिलाएँ for both merges | *मिलाना · 40 %* (merging) and *मिलान · 3* (matches) sat side by side in one State column and read as one word |
| 2026-11-17 | Croatian keeps *podudaranje* for a match (the Windows term of Find › Match), but the matching sequence itself is *podudarna sekvenca*: "s njoj podudarnom sekvencom", "odvojeno od podudarne sekvence" (#73) | *podudarnost*; *par* | "Njezino podudaranje" reads as "its matching", an act, where the tooltip means the other sequence |
| 2026-11-17 | Finnish keeps *kohteen {0}* for a name in a placeholder (the usual way to avoid inflecting it), but never right after a count: "{0:N0} kuvaa kohteesta {1}" instead of "{0:N0} kohteen {1} kuvaa" (#73) | Inflect the placeholder | After a number *kohteen* reads as "of n items" |
| 2026-11-17 | A merge plan hashes, in memory, each unhashed frame of the kept sequence that matches a hashed photo of the other by size and time only: the same content counts as held by the kept one (no last copy); another content is copied in as a second version (*FetchVersion*) whatever the policy, left out of the projects as a Union keep-both is, unless the kept one's tombstones refuse it (#73) | File it at the verify, as for an unhashed photo of the other | The plan listed it as a last copy, so the verify settled it before it could be filed and it went to the trash; the plan now shows the copy it makes |
| 2026-11-17 | The merge's Replace stage trashes a losing version of the kept sequence only while it is a last copy the plan listed (`MergeJournal.LastHere`), or another usable frame of the kept one or another sequence still holds it; otherwise the journal goes and the job fails as a stale plan (#73) | Keep the loser and report it | The plan made again lists the new last copy, so the user decides on it; nothing is trashed that was never shown |
| 2026-11-17 | A details conflict at the merge's or the Integrate's Details stage (a settings version or a payload that moved since the plan) drops the journal before the job fails: the retry plans again and names what the new plan needs (#73) | Keep the journal for a retry | The change never goes back, so every retry failed the same way until Cancel |
| 2026-11-17 | The Integrate's Projects stage counts a project as kept for good only for a refusal a retry would meet again (`TransplantFormatException`, `InvalidDataException`, `ProjectException`, a non-transient server refusal, no project home on either side); any other error (a home out of reach, a network error) fails the job with the journal and the copy's step kept, so a retry finishes that copy (#73) | Count every error as a kept project | One transient error deleted the journal, and the next Integrate copied the half-made copy back as a new project on each side |
| 2026-11-17 | A pair's "deleted on server" mark is cleared whenever the server lists that sequence again (whatever the hit count) and whenever a link to that very sequence is made (upload, download, Integrate, Link, auto-link) (#73) | Clear only a single hit | A pair at two hits stayed "deleted on server" for good, even linked again, and its new photos never moved |
| 2026-11-17 | An upload without a target of a local sequence kept apart from a sequence of that server goes under a session key of the job (`chronos-sync:<local:N>:<job:N>`, the same on a retry) instead of the sequence's own; a link made over a Kept apart pair moves it to Linked (#73) | Refuse the upload | The server files the sequence's own key into the sequence the user kept separate, and re-linked it without asking; the store and the link disagreed |
| 2026-11-18 | A merge's Renders stage never deletes or overwrites what sits at a journaled render target: a file it keeps only when it is the render itself (its recorded SHA-256, else the source's content), a folder only when every file in it is the source's file of that name; anything else, or a path another render of the kept sequence names, makes the copy take a new free name, journaled before the copy (#73) | Refuse while a render row names the path | After a failed run the name was free again, and a new render of the kept sequence (same date, title and preset) went for good, bypassing the trash; a free name keeps both |
| 2026-11-18 | A merge's Verify stage writes the hash it read for each kept frame the index had none for (sidecar and index, under the lease, only while the file keeps its stamp); the Details stage leaves the versions the verify filed out of Main as the plan leaves its own (on the plan's payload, else on the kept sequence's settings as they are then, at their version); Two versions also lists a whole-second instant holding two hashed frames of one size and other content (#73) | Hash the other's unhashed photos at plan time | The verify reads every file anyway; the plan stays a dry run that writes nothing; at a whole second the size is what the comparison matched them by |
| 2026-11-18 | The Integrate journal keeps the losers the plan listed as last copies (`LastHere`, `LastThere`); before each trash step a loser not listed must still be held by another usable copy (the local copy's other frames, another sequence of this index, the server sequence's fresh manifest; for a server loser its other frames or any sequence of this index), else the journal goes and the job fails as a stale plan (#73) | Keep the loser and end Linked | As the merge's Replace stage: nothing goes to a trash as a last copy without being shown |
| 2026-11-18 | Download originals of a server sequence without a local copy goes under a key of the job (`chronos-sync:<remote:N>:<job:N>`, the same on a retry) when the sequence holding the server sequence's own key has a pair or a link for that server (kept apart, unlinked, asked again, linked elsewhere): a new local sequence, and its details are taken only by it; a holder with neither (a run that stopped before linking) is joined as before (#73) | Refuse the download and ask for Link or Ask again | The download twin of the round-7 upload rule: the shared key filed the photos back into the sequence the user kept separate, re-linked it and overwrote its details |
| 2026-11-18 | An upload never links again from its checkpoint a server sequence whose pair with the local sequence is Kept apart (unlinked or kept apart since the attempt that made it): the upload goes on as one without a target, under the job's key (#73) | Make Unlink and Keep apart cancel a pending upload | The checkpoint branch never reached the session-key rule, and a retry or a restart moved the Kept apart pair back to Linked |
| 2026-11-18 | A merge leaves each second version out of Main as it files it (the Copy stage's keep-both and SameUnhashed versions, the Verify stage's), under the kept sequence's lease at the settings version read just before, not cancellable halfway; when that was the plan's version the journal's `KeepSettingsVersion` moves to the one written, so the Details stage still writes the plan's payload (#73) | Have the re-plan exclude a shared version the kept sequence already holds twice | Only the merge knows which version it brought; the re-plan cannot tell it from two versions the user chose to keep in Main |
| 2026-11-18 | A merge plan whose kept sequence has tombstones also hashes in memory the other's unhashed frames matched by size and time (every frame of that size and instant); a verify that finds unhashed content the kept sequence deleted, held nowhere and not listed, drops the journal and fails as a stale plan (#73) | Hash them always | Only a tombstone makes such a frame a last copy nothing lists; the rest the verify files as a second version, and an adopted folder is not hashed twice for nothing |
| 2026-11-18 | Supersedes the 2026-11-18 download-key row: Download originals goes under a key of the job only when the holder of the server sequence's own key is Kept apart from that server sequence (kept apart or unlinked) or linked to another sequence of that server; a Candidate, Linked or Integrated pair, a pair with another server sequence, or a link a 404 forgot keeps the own key, so the download refills and links its own local copy (#73) | Any pair or link for that server | A link a 404 forgot left a Candidate pair, and the download duplicated every photo into a new local sequence |
| 2026-11-18 | A 404 for a server sequence no local copy is linked to (an observation-only link) deletes the Candidate and Kept apart pairs naming it (`FoundCopyStore.SettleUnlinkedGoneAsync`); Linked, Integrated and Integrating pairs are left to their link's 404 (#73) | Count the hit on those pairs (read as deleted on the server) | Neither is a copy of anything the server still has: Upload all local must send the local sequence, and a server sequence listed again is found anew |
| 2026-11-18 | A merge verify that finds a hashed photo of the other the plan did not copy (held by a third sequence when planned) held by nothing now drops the journal and fails as a stale plan; "did not match after copying" stays, with the journal kept, for a photo the plan copied that the kept sequence does not hold (#73) | Keep the journal and let a retry ask the third sequence again | A third copy gone never comes back: every retry failed the same way, and the new plan lists the photo as a last copy |
| 2026-11-18 | A comparison settles no details (push, pull or conflict) of a pair whose found-copy row reads Integrating; the Integrate's Details stage also refuses (details changed, photos kept) a line the user decided as the server's whose server value is now this PC's planned one, instead of absorbing it (#73) | Count the Integrate's ids in the transfers an event refresh skips | The planner's own Busy check reads that set, and the photos must still be compared; only the settling reversed the user's line-by-line choice (owner Q4) |
| 2026-11-18 | Supersedes the 2026-11-18 unlinked-404 row: a 404 for a server sequence no local copy is linked to deletes only its Candidate pairs; each Kept apart pair naming it counts the hit as a linked pair does (once per refresh, a second only after `GoneRecheck`), a listing clears the count, and Upload all local sends the local sequence only once the pair reads deleted on the server (two hits) (#73) | Count observation links in the sweep test | A single 404 (trash and restore, access withdrawn for a moment) erased the Keep apart answer, and the pair was asked again or linked by itself (owner Q1) |
| 2026-11-18 | Download originals whose server-sequence key names a local copy paired with that server sequence (Candidate, Linked or Integrated, no link) links that copy first and fills it as a linked copy (its tombstones honoured), then compares it as a new link instead of taking the server's details; a holder with no pair (a run that stopped before linking) is joined as before (#73) | Use a key of the job for a Candidate holder too | The round-9 rule refills the local copy a 404 or Ask again left without a link; treated as new it got photos deleted here back and lost its details (owner Q3, Q4, Q6) |
| 2026-11-18 | An upload without a target goes under a key of the job when its local sequence has a Candidate or Kept apart pair with that server, and one whose first original joins a server sequence this PC already knows (listed, linked or paired) compares it as a new link instead of sending all its details (#73) | Keep the own key for a Candidate pair | The own key filed the photos into the sequence an earlier upload made, linked it unasked and overwrote edits made there (owner Q1, Q4) |
| 2026-11-18 | A merge's Verify stage journals a second version (`SecondVersions`, and in `VersionShas` the SHA-256 it is filed as) before it files it; a resumed verify that finds such a frame in the kept sequence leaves it out of Main again (a no-op when it already is), and one that reads other bytes for it stops with "changed" (#73) | Save the journal right after filing | The ingest commits the frame before any save can follow: a failed exclusion or a crash in between left the version in Main for good, since a resumed verify read it as the kept sequence's own |
| 2026-11-18 | Supersedes the 2026-11-18 unlinked-404 rows on Upload all local: a Kept apart pair whose server sequence reads deleted on the server holds nothing back only when it was answered before the first 404 (`AnsweredAt < RemoteGoneAt`); a Keep here (answered after the deletion was shown) still skips the local sequence (#73) | A separate Keep here state or marker | Both answers are stored as Kept apart with the gone mark; the answer time already tells them apart, and Keep here's tooltip and design §6.3 promise Upload all local leaves it out |
| 2026-11-18 | An upload's checkpoint names the server sequence its first original reached with `:joined` appended when that was one this PC already knew; a resumed or retried upload sends all its details only when the checkpoint names the target without that mark (a plain id from an older run still means made by this job) (#73) | Look the sequence up again in the known remotes on resume | After the first attempt the link to it exists, so a resume cannot tell a sequence it made from one it joined; only the attempt that sent the first original knows |
| 2026-11-18 | Supersedes the 2026-11-18 `VersionShas` row where a resumed verify reads other bytes for a journalled second version: when the kept sequence does not hold the journalled SHA-256 (nothing was filed) the frame leaves `SecondVersions` and `VersionShas` and is verified as on a first visit, which files the bytes it reads now; when it holds them, they are left out of Main and the merge stops with "changed" and drops its journal, so the next run plans again (#73) | Treat the new bytes as another second version in the same run | A stop that kept the journal failed the same way on every retry once the file changed (an editor saving, a sync tool, an edit before a retry after a failed copy), and a cancel then left a filed version in Main; filing a third version unplanned goes further than the plan the user confirmed, while a new plan compares the new bytes and shows them |
+11
View File
@@ -20,6 +20,7 @@ by its `windows` job once a Windows runner is registered (`WINDOWS_RUNNER`), and
| 8.4 Owner review 4 | Done (request and plan: `docs/requests/2026-11-06-owner-review-4.md`): released as `v0.1.0-rc.14` with owner review 1 phase 6 (the deploy guide `docs/deploy/`), then as `v1.0.0` (#23), the first stable release: R1 work board of every video made or published, the published apart from workspace work (#29); R2 the anonymous usage counts removed, nothing sent by itself (#30); R3 the archive's whole folder structure created inside the chosen archive path, desktop and server (#31); R4 the repository on Gitea in order (earlier work as closed issues #32–#54 in their milestones, the original documentation in `docs/reference/original`, `fe50b877`); R5 licensing set aside and recorded in #24. |
| 8.5 Owner review 5 | Done (request, answers and plan: `docs/requests/2026-11-15-owner-review-5.md`; issues #64–#67, milestone v1.1.0), released as `v1.1.0`: one setup for Chronos Desktop and Chronos Uploader with the Uploader's update check (#64); the detail of mass passes (step, photo x of y, sequence n of m, rate, time left) on the desktop, the admin panel and, for the connected server's jobs, the desktop's Server section (#65); separate homes per server keyed by a stable server id, with the 1.0 workspace and cache sorted at the first start and a separate originals archive per server (#66); Chronos Desktop sharing its library on the LAN in place of Chronos Server for Windows, running on in the tray while it shares (#67). One review round, 15 findings fixed; strings in all 38 languages. Not run on the PC: the Windows-only smoke tests, `installer-test.ps1` and the release dry run (CI runs them). Follow-ups: a firewall status row, Change…/Forget on known servers, the LAN beacon announcing the server id, docs/ui DESIGN and mockups for the new screens. |
| 8.6 Windows test of 1.1.0 | Done (#70, milestone v1.1.1), released as `v1.1.1`: the App and Core.Windows suites run whole on the development PC (5 stale screen tests brought up to date); a hands-on test of a portable 1.1.0 (import, Reorganize, sharing, a client, tray, Exit with clients); fixes: job log times in local time, the Jobs Type column, Forget in Bulgarian, the Reorganize capture. Still to do by the owner: the real 1.0 → 1.1 upgrade on this PC (UAC). |
| 8.7 Owner review 6 | Done (request, answers and plan: `docs/requests/2026-11-16-owner-review-6.md`; #73, milestone v1.2.0), released as `v1.2.0`: matches, the same time-lapse on a server and on this PC under different ids or twice on this PC, found after each sync refresh (the server's new photo lookup) and after jobs that change photos (migration 0012, `Chronos.Data.Copies`); Server › Matches with Keep apart, Link only, Unlink and the Compare dialog (Photos, Details line by line, Projects, Plan); Integrate of a local and a server sequence (job 25: photos both ways under Union by default, details as one change, projects copied across, losers to the trash only after a hash check) and the merge of two local sequences (job 26: the other to its archive's trash once every photo is verified); new photos of integrated pairs moved by themselves, *deleted there* and *deleted on server* reviewed by the user; Settings › Server › Link matches (Ask always), Integrate photos (Union), Integrate projects (Copy across); Upload all local skips suspected matches. Eight parcels, one review round (correctness, safety, conformance) with every verified finding fixed, a gap round and twelve verification rounds (the last seven on the data engines only, with three-vote confirmation, until one found nothing); the strings in all 38 languages, the match terms in every language's glossary; the Windows captures of the new screens are committed as screenshot baselines (`server-copies-*`, `library-copies-*`, `server-sync-copyfound-*`, `edit-picker-twins-*`); the photos a sequence keeps in two versions are listed with Drop… from the Library (Two versions…) and a merge job's Open. Follow-ups: a field-level merge of an integrated pair's settings (to ask the owner), the Import › Folder… warning, the same two-versions list in Edit, a capture scene of the Two versions… dialog. |
| 9 Monetization | Not started: requires explicit approval (§22); the proposal is recorded in issue #24 (owner review 4, R5). |
## Verification (2026-10-12)
@@ -68,6 +69,16 @@ src/Chronos.App/bin/Release/net10.0-windows/Chronos.exe --capture out/screenshot
- Job log time (1.1.1): Jobs › expand a job: the log times match the row times (local).
- Share this library: Settings › Server › *Share this library*, then Server › This library; connect the Uploader or
another PC to the address shown.
- Owner review 6 (v1.2.0): send a folder of photos to a 1.2 server with Chronos Uploader; on the desktop
import the same folder plus a few more photos (Import › *Folder…*), give it another title and sign in. After the
refresh Server › *Matches* lists it as *match found*; *Compare…* shows the photos only here and the differing title;
*Integrate…* opens on Details: *All this PC*, then *Integrate*. The row reads *integrating · x of y*, then
*integrated*, and the server holds the new photos. Add a photo on either side: it moves by itself after the next
refresh. *Adopt folder…* a plain folder holding copies of an archived sequence's photos (no `sequence.json`):
*Matches* lists the two as a match on this PC with
*Merge…*; type the photo count, and the other goes to Archive › Maintenance › *Trash…*. Settings › Server › *Link
matches* *When identical* links an identical copy by itself; *Keep apart* is not asked again. `Chronos.exe --capture`
shows every state with sample data (`server-copies-*`, `library-copies`).
- Import: Import › *Folder…* (any folder of photos stands in for a card) › *Import*; the sequence opens from the
Library. Delete a sequence with *Delete…* (dry run first) and bring it back from Archive › *Trash…*.
- Whole folder: Import › *Folder…* › Group › *Whole folder*: one plan row per file format (RAW+JPEG gives two), titled
@@ -0,0 +1,76 @@
# Owner review 6 (2026-11-16)
## Owner's text (verbatim, Italian)
> Potrei avere la stessa sequenza prima caricata sul server e poi ancora presente sul computer se indico una cartella di
> lavoro o una cartella per delle sequenze locali. In questo caso il software deve riconoscere i doppioni ed eventuali
> differenze e farti scegliere cosa fare. Deve essere una gestione avanzata che riconosce differenze, chiede se mantenere
> le due cartelle o integrarle e poi sincronizzarle, ecc ecc.
## Interpretation
One time-lapse can live on a Chronos Server (uploaded earlier, by this desktop or by the Uploader) and on this PC at the
same time: in this PC's archive, in a server's originals archive (`<archive> - <server>`), in an adopted folder, or in
the workspace. Their ids differ, so Chronos 1.1 sees two sequences. The desktop must find these copies, show how they
differ, and let the user keep them apart or integrate them and then keep them in sync.
| Id | Request | Working interpretation |
|---|---|---|
| R1 | Recognise the same sequence (matches) | Chronos finds a *match*: two sequences that hold the same time-lapse, one on this PC and one on a server, or two in this PC's archives (this PC's archive, adopted folders, servers' originals archives). Evidence: shared photos by SHA-256 (conversions followed), by size and capture time while a side is unhashed, session keys, and an existing link. Server detection runs after each sync refresh through the server's new photo lookup (`POST /api/v1/photos/lookup`), with 1.1's rule and hints on an older server; local detection runs after the index opens and after jobs that change photos. Matches are listed under Server › *Matches*. The *Link matches* setting (default *Ask always*) decides whether Chronos links a match by itself. |
| R2 | Show the differences | The Compare dialog shows two sequences side by side in four parts: *Photos* (each photo classed as same, same unverified, only here, only there, different, converted, deleted here, deleted there or two versions), *Details* (title, tags, rating, notes and each setting, line by line), *Projects* (each side's projects and where they go) and *Plan* (the dry run of what an Integrate or a merge will do, with its blocks). |
| R3 | Let the user choose: keep apart, or integrate and sync | *Keep apart* is remembered (asked again only when the match grows a lot or becomes identical); *Link only* links without moving anything; *Unlink* undoes a link. *Integrate* of a local and a server sequence completes both: each side receives the photos it lacks, details are settled once, projects follow the projects choice, then the two stay linked. Two sequences on this PC are *merged* into the kept one; the other goes to its archive's trash only after every one of its photos is hash-verified in the kept one. |
| R4 | Photos only on one side or different | The *Integrate photos* setting (default *Union*) and the dialog's photo choice: *Union* sends every photo to both sides and keeps a differing photo in both versions, listed so the user can drop one to the trash; *Choose each* preselects nothing; *This PC wins* / *Server wins* decide the differing photos for the whole sequence. Photos deleted on one side stay deleted. |
| R5 | Projects other than Main | The *Integrate projects* setting (default *Copy across*) and the dialog's choice: each side's projects are copied to the other home with their histories, named `<name> (<PC>)` (or the server's name) on a clash. *Leave them* keeps them where they are and marks the two workspace copies as twins in Edit. A merge always copies across. Amends BRIEF §14.5. |
| R6 | Keep them in sync afterwards | After an Integrate that left nothing out, new photos move by themselves both ways (paused on metered connections, never interrupting the user's jobs). Settings sync as today. A photo deleted on one side shows as *deleted there* and goes to the trash here only on confirmation. A server sequence that answers 404 twice reads *deleted on server*, with *Keep here*, *Upload again* and *To trash…*. |
| R7 | A folder of local sequences; Upload all local | Such a folder is added with *Adopt folder…* (as an archive) and compared with the server and the other archives; no watched folders. *Upload all local* skips suspected matches, kept-apart sequences, sequences of a server's originals archive, sequences whose server copy was deleted and busy sequences, marks them *skipped* with the reason and leaves the matches under Matches. |
| R8 | Track the work | Issue #73 in milestone `v1.2.0`, a board card, every commit ending with `Refs #73`. |
## Questions and answers
The questions were asked in two rounds on 2026-11-16 (the first with options and a recommendation, the second for the
local folders and *Upload all local*). The owner answered in Italian; quoted words are his.
| Id | Question | Owner's answer |
|---|---|---|
| Q1 (R1) | When Chronos finds two copies of one sequence, does it link them by itself or ask? | "Mettere la scelta come parametro, default chiedere sempre". A setting, default *Ask always*; options *Ask always*, *When identical* (exactly the same photos) and *Half shared* (1.1's rule, its gates kept). *Keep apart* is remembered. |
| Q2 (R3) | What does "integrate" do with the two folders? | "Completa entrambe". Two folders stay, one here and one on the server: each gets the photos it lacks, the differences are settled once, then they stay linked and in sync. Two copies on this PC are merged into one sequence; the other folder goes to the archive trash after every photo is hash-verified in the kept one. |
| Q3 (R4) | Photos only on one side, or that differ: what is the default? | "Anche qui mettere un parametro, default unione". A setting, default *Union*; options *Union* (a differing photo kept in both versions and listed so one can go to the trash; deleted photos stay deleted), *Choose each* (nothing preselected), *One side wins* (this PC or the server, for the whole sequence). |
| Q4 (R2) | Title, tags, rating, notes and settings that differ | "Riga per riga". In the comparison the user picks this PC's or the server's value for each difference; it is applied as one change on both sides. |
| Q5 (R5) | Projects other than Main | "Scelta, default copiali dall'altra parte". A choice in the dialog and a default in Settings, default *Copy across*, renamed `<name> (<PC>)` on a clash; alternative *Leave them*, with the two workspace copies marked as twins in Edit. |
| Q6 (R6) | After integrating, what stays in sync by itself? | "Foto nuove in auto". New photos move automatically both ways, paused on metered connections. Settings sync as today. A photo deleted on one side shows as "deleted there" and goes to the trash here only on confirmation. |
| Q7 (R7) | What is "a folder of local sequences"? | "Come archivio". It is added with *Adopt folder…*, which exists, and compared with the server and the other archives. No watched folders. |
| Q8 (R7) | *Upload all local* and suspected duplicates | "Saltale e segnalale". Skip suspected duplicates and sequences in other servers' originals archives, and leave them among the matches. |
## Design summary
- Data: migration 0012 adds `found_copies` (a pair: local↔server or local↔local, its evidence, scores, the user's
answer, the photo policy and the 404 record) and `copy_probes` (what detection last compared, so nothing is compared
twice while neither side moves). Every existing link with a local sequence becomes a linked pair. Code lives in
`Chronos.Data.Copies`.
- Server: `POST /api/v1/photos/lookup` (Read; at most 200 probes and 20,000 items) and `intoTarget` on
`POST /api/v1/uploads`, which files a photo into the target even when another sequence of the served archive holds
it, copied on the server (`copied` in the answer). `server/info` announces `photo-lookup` and `upload-into`. An older
server gets detection by 1.1's rule and hints, and no Integrate.
- Jobs: `Integrate` (stored as 25) and `MergeSequences` (26), high in the priority queue, desktop only, each with an
atomic journal (`.chronos/journal/integrate-<job>.json`, `merge-<job>.json`) that resumes at every stage, and a plan
fingerprint the job checks before it moves anything. A background job (an automatic transfer) never interrupts a
running one.
- UI: Server › *Matches* (chip, list, *Find matches*), the in-window Compare dialog (Photos, Details, Projects, Plan),
the Replace and Merge confirmations (the merge typed by photo count), sync rows that read *match found*, *deleted on
server*, *kept here*, *skipped*, *not sent* or *deleted there · n*, Library cards *Also elsewhere* / *Deleted there*
with *Compare…*, the Edit picker's *Twin* chip, and three rows in Settings › Server: *Link matches*, *Integrate
photos*, *Integrate projects*.
- Words: the UI noun is *match* / *corrispondenza*, never *copy* / *copia*, which the photo-duplicates report owns
(`i18n/GLOSSARY.md`: Match, Integrate, Merge sequences, Keep apart, Twin).
## Delivery plan
| Phase | Content | State | Commit |
|---|---|---|---|
| 1 | `v1.2.0`: R1–R7 (#73); R8 tracking. Parcels: P0 foundation (contracts, migration 0012, store, wire, trash and job hooks, keys), P1a pure comparison and rules, P1b detection and sync integration, P2 server photo lookup and uploads into a target, P3 Integrate, P4 merge of two local sequences, P5 engine composition and automatic photos, P6 the desktop surfaces; then one review round (correctness, safety, conformance) with every verified finding fixed, a gap round and twelve verification rounds (the last seven on the data engines only, each finding confirmed by two of three independent checks, the last three on the latest fixes only, until one found nothing). BRIEF §5, §6.2, §12.2, §12.3, §12.5, §12.7, §12.8, §14.3, §14.4, §14.5, §14.6, §24 and Appendix C amended; DESIGN §4 *Matches*; DECISIONS rows dated 2026-11-16 to 2026-11-18 citing #73 | done: released as `v1.2.0` on 2026-11-18; strings in all 38 languages and their glossaries; the Windows captures committed as baselines; CI green with PostgreSQL 16 and 17 | `283d04d9` … `65b7cdf9` on `or6-duplicates`, squash-merged into `main` |
Follow-ups kept out of 1.2.0: a field-level three-way merge of an integrated pair's settings (settings sync as today,
owner Q6; to be asked of the owner), the Import › Folder… warning for photos already on a server, merging two
sequences of one server, the list of second versions with *Drop…* in Edit (the Library has it: *Two versions…*).
Tracking: issue #73, milestone `v1.2.0`, board card; status **done**.
+46 -2
View File
@@ -91,6 +91,50 @@ Label column left of controls: 116 px in panels, 180 px in Settings.
Format, Length, Size, Date, State; Preset, Format and Date drop while the player is open). The player is a 420 px
pane at the end side: Preview background, the picture or video fitted (a left-to-right island), its title and
facts, *Show in folder* and ✕; *Cannot play here* is an EmptyState inside it.
- **Matches** (owner review 6, #73; brief §12.7): no new colours or controls, only the kit above.
- *Matches list*: a `Matches · n` chip after Conflicts in the Server section (warning colours while a match needs
attention); while selected it replaces the sync table with the same row style: Sequence, This side, Other side
(counts first, "{archive} · {n} photos"), State as glyph and word (*match found* ▲ Warning, *kept apart* ○ faint,
*linked* ● Accent, *integrating · x of y* and *merging* ● Accent with the job's share, *integrated* ● green,
*deleted there · n*, *deleted on server* ▲, *kept here* ○), then the state's 26 px row actions, three at most
(a linked pair with photos deleted there: *Compare…*, *Unlink*, *Review*). Columns: Sequence `*`, the two sides
`1.4*` (180 px at least), State 160 px, Actions `1.4*` (280 px at least); an archive or server name longer than 24 characters is cut
in its middle ("ChronosArch…Studio NAS"), the whole text in the tooltip. Attention first.
Toolbar *Find matches*; empty state "No matches found." with *Find matches*.
- *Compare dialog*: an in-window dialog over the section's scrim, 920 px wide, at most 600 px high, its parts
scrolling inside. Header: each side's place, photos, size and time span; a SegmentedControl *Photos · Details ·
Projects · Plan*. Photos: the policy ComboBox, a class table of 28 px rows (glyph and class, count here, count
there, size, a tooltip per class that follows the policy) and the selected class's virtualised photo list with
column headings (*Bring* check box, the *Keep both / This PC's / Server's / Leave* ComboBox, *Drop…*, *To trash…*);
the last column's heading reads *Version* while the rows offer a choice, the version Main uses reads *In Main* in
Text.Secondary, and a choice not made is read *Not chosen* by a screen reader. The policy ComboBox (here and in
Settings › Server) is 240 px and the version ComboBox 185 px, sized by a test over every shipped language; a longer
label trims with an ellipsis. The photo and Details lists always show their vertical scroll bar and their headings
keep its width, so the headings stay over their columns.
Details: one row per setting, both values ellipsed (full in the tooltip, wrapping at 480 px) and a *This PC |
Server* SegmentedControl, nothing preselected, each segment's tooltip naming the value it takes ("Take the value of
Studio NAS: 33"); *All this PC* / *All server* links above. Projects: *Copy across | Leave them* and two lists with
the target name ("→ Vertical (STUDIO-PC)"), rows trimmed with the whole row in the tooltip, the headings over their
lists, both lists scrolling together when they do not fit. Plan: two columns of lines in Text, last copies first
with the Warning glyph, *Link only* as a secondary row button, each block as a `Status.DialogError` line with at
most one action. Two buttons: *Cancel* (safe, Esc) and *Integrate* (primary).
- *Merge dialog*: the same dialog titled *Merge sequences*, *Kept* and *Other* in place of this PC and the server
(from the first plan, made on opening), the kept-sequence radio rows first in the Plan, the projects choice fixed
to *Copy across* (disabled, with its tooltip), primary *Merge*. Its one-sided classes are named by role (*Only in
kept*, *Deleted in other*); under *Choose each* a differing photo offers *Keep both / Kept / Other* (no *Leave*).
- *Confirmations*: *Replace photos?* (the losing versions under the side that loses them, last copies first) and
*Merge sequences?* (the photo count typed without separators; the prompt names the number) as destructive
`ConfirmDialog`s; every line of a trash or replace confirmation carries its prefix (*Only copy:*, *Replaced:*,
*Held elsewhere:*). Unlink and Keep apart use a toast with *Undo* instead.
- *Library card status*: *Also elsewhere* or *Deleted there* as a Warning status glyph with its word, second on the
card, in the list too; *Compare…* in the context menu and the row actions. A server card in a match offers
*Compare…* alone.
- *Two versions…* (a local card's and row's context menu; a merge job's *Open*): an in-window dialog 640 px wide, at
most 520 px high, titled with the sequence; a list of 48 px rows, one per version (file name in SemiBold, its
detail in Text.Secondary with tabular figures, *In Main* where Main uses it, *Drop…* as the row button); an empty
list reads a muted line; *Close* (default and Esc) with the dialog's `Status.DialogError` line beside it.
- *Edit picker twin*: a muted *Twin* chip right after the project name of a Workspace row; its tooltip names the
other home and project. Only a project whose sibling is at the other home carries it.
- **Crop overlay** (preview, Camera step; owner review 1, R5): the box is drawn over the whole view frame (oriented,
straightened) and is always locked to the output aspect. States (tiles under the Camera screen in `Editor.html`):
- *Shown*: Crop mask on, any step: Scrim (#99000000 dark, #66000000 light) outside, 1 px TextMuted outline.
@@ -175,7 +219,7 @@ from the SVG geometry (no raster assets checked in as sources). Badges only at
| Mockup | Brief | Notes |
|---|---|---|
| `Main.html` | §12.2 Library | grid/list, year·camera·status filters, selection panel |
| `Main.html` | §12.2 Library | grid/list, year·camera·status filters, selection panel; the match statuses and *Two versions…* (owner review 6) have no mockup: built from §4 *Matches*; the statuses are checked against the `library-copies-*` captures, the *Two versions…* dialog has no capture scene yet |
| `Editor.html` | §12.3 Edit | three parts, one below the other. Exposure step: step bar, title ▾ (Change sequence), wipe compare (the corrected side carries the look), curves, advisor Auto pills, the Look group (Filter, Strength) at the end of the panel, Previous · n / m · Next. Camera step (`#camera`): the whole view frame with a 9:16 crop being edited (handles), the zoom-keyframe curve under the filmstrip, rows Aspect · Rotation (Rotate left/right and the value) · Mirror · Flip · Straighten · Crop size · Crop X · Crop Y, the keyframes line, then Reset framing on its own line (three buttons do not fit the 292 px panel) above Optimise section · Reset (Reset framing disabled, with `ResetFramingNone`, when nothing is set). Crop overlay states: Shown, Editable, Dragging, Straightening, Locked |
| `Export.html` | §12.3 / §11.4 | the Export step (owner review 1, R3, phase 5): step bar with Export current, the header's fixed-width *Render ▾*, the grouped preset table (28 px rows, Recommended chip, batch ticks, a folded group), the Output panel's four collapsible groups (Output open, Encoding and Playback folded with their summaries, File open) and its fixed footer (result line, Render now, Add to queue · Batch (2), Videos (3) · Reveal), Previous · 8 / 8 · Next sequence; under it the Render menu open with *Other presets ›* expanded. Resolution offers the standard boxes and Custom shows the preset's box; the **Output size** row under it shows what is rendered: the chosen proportions fitted in the box (4K at 9:16 = 2160 × 3840; "source" keeps the preset), the preset name unchanged; when the encoder caps it, the value reads "1296 × 2304 (capped)" with `Tooltips.Editor.Export.OutputCapped`. The preview mask is the output's footprint in the view frame |
| `Videos.html` | §12.10 | the Videos section (owner review 1, R9): toolbar (search, Kind, Codec, Year, Source, Order, cards/list, Refresh), the sequence chip, the selection bar (Play, Show in folder, Copy to folder, Copy on server, Open in Edit, Delete…), cards with state chips, the player pane open on the right; under it the list view and the Delete… confirmation |
@@ -183,7 +227,7 @@ from the SVG geometry (no raster assets checked in as sources). Badges only at
| `Import.html` | §12.4 / §13 | card profile, sessions, plan, verification, after-import actions |
| `Archive.html` | §12.5 | tree, mass operations, stats, verify/rebuild, maintenance |
| `Jobs.html` | §12.6 | filters, queue order, expandable log, retry/open/folder; a `Queue · Scheduled` segmented control first in the toolbar (owner review 2, R10): Scheduled is a table (on switch, name, action, when, next run, last result, Run now · Edit · Reset or Delete), the selected schedule's last runs under it (Show in queue), New schedule at the toolbar's end and the editor as an in-window dialog; jobs a schedule queued carry an Accent `Scheduled` pill after their target |
| `Server.html` | §12.7 / §14 | connection with TOFU fingerprint, account and quota, render node, sync table, conflicts |
| `Server.html` | §12.7 / §14 | connection with TOFU fingerprint, account and quota, render node, sync table, conflicts; the Matches list and the Compare/merge dialog (owner review 6) have no mockup: built from §4 *Matches* and checked against the `server-copies-*` captures |
| `Settings.html` | §12.8 | section list (About last, §12.9), Rendering section, encoder table, self-test |
| `Welcome.html` | §12.1 | first run: local archive / adopt folder / connect; Continue; card toast |
| `Admin.html` | §14.7 | dashboard; sidebar: pages from the top, Settings docked at its foot above the account, no About (the last group of Settings) |