docs: owner review 6 request, brief amendments and decisions for matches (v1.2.0)
Owner review 6 asks Chronos to recognise the same time-lapse on a server and on this PC, show the differences and let the user keep the two apart or integrate and sync them. The request file keeps the owner's words, the reading R1-R8, the eight answers and the delivery plan; the brief now describes matches, the Compare dialog, Integrate, the merge of two local sequences, the automatic photos of integrated pairs, the photo lookup and uploads into a target, and amends 14.5 so other projects cross only through Integrate or a merge. DECISIONS records the design choices and those taken while building it; the changelog, status, architecture and design notes follow, and the version moves to 1.2.0. Refs #73 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9657c1711d
commit
59235e7c25
8 files changed
+443
-18
No files matched your search
@@ -901,6 +901,54 @@ 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 | 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 |
|
||||
|
||||
Reference in new issue
Block a user