fix(copies): close the fourth verification round of owner review 6

The fourth verification round of the matches work found 18 defects in
the merge, Integrate and Matches surfaces. This commit fixes them:

- An Integrate job now carries the planning account's id, so its re-plan
  decides ownership the way the dialog did.
- A merge skips only a project the kept sequence holds a real copy of
  (name, offset head and history content) and re-points its renders to
  that copy.
- A merge runs its trash checks before the Links stage and records an
  undo, so an abandoned merge gives the other sequence back its link,
  session keys and pairs.
- The metered hold adopts automatic transfers that were paused before a
  restart.
- Apply in the Compare dialog re-plans when the plan is pending or stale.
- The Library's Two versions... lists the second versions a Union merge
  leaves, each with Drop... (dry run, confirmation, verified partner).
  A merge job's Open shows that list.
- The merge's typed confirmation is the invariant count, and the prompt
  names it in all 38 languages.
- Italian text uses Principale and Gemello. The Main project is named
  through WorkspaceText in the Projects part and in the twin tooltip.
- The session keys tooltip is split into two keys, and To trash... and
  Delete on server... say why they are disabled.
- The capture restores the editor account before the Matches scenes.
- Upload again follows SyncHost.CanSendSync (Upload with Edit).
- Matches rows trim archive names in the middle on a rebalanced grid;
  the Projects part rows trim, with the full text in the tooltip.
- The sample project targets use ProjectTransplant.FreeName.

DECISIONS, CHANGELOG, STATUS 8.7, the request doc and the 16 changed
capture baselines are updated.

Refs #73

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-17 19:20:30 +01:00
1 parent 3c99badcfe
commit 2c06e7ac2b
171 files changed
+1591 -218

No files matched your search

+20 -2
View File
@@ -92,8 +92,9 @@ match. A 1.1 server works as before, without Integrate; a 1.2 server adds the ph
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 stay
discoverable in the kept sequence after the pair is gone.
- 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.
@@ -146,6 +147,23 @@ match. A 1.1 server works as before, without Integrate; a 1.2 server adds the ph
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.
## [1.1.1] — 2026-11-16
+9 -2
View File
@@ -960,7 +960,7 @@ One line per decision: date · decision · alternative · reason.
| 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/Edit list with Drop… is a follow-up |
| 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 |
@@ -969,8 +969,15 @@ One line per decision: date · decision · alternative · reason.
| 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) whose head 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 the other's projects whose head the kept sequence already holds (#73) | 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 | 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 adopts at each pass the automatic transfers it finds paused (a restart forgets what it paused), and resumes them once the connection is not metered; a paused manual transfer stays paused (#73) | Remember the paused ids in settings | A restart while metered left the integrated pairs' new photos paused for good |
| 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 |
+1 -1
View File
@@ -20,7 +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 | In progress (request, answers and plan: `docs/requests/2026-11-16-owner-review-6.md`; #73, milestone v1.2.0), implemented on `or6-duplicates`, not released: 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 two verification rounds. Still to do: the 36 other languages, the PostgreSQL tests in CI, the Windows capture of the new screens against the design, the release. Follow-ups: a field-level merge of an integrated pair's settings (to ask the owner), the Import › Folder… warning, a list of second versions with Drop… in the Library and Edit. |
| 8.7 Owner review 6 | In progress (request, answers and plan: `docs/requests/2026-11-16-owner-review-6.md`; #73, milestone v1.2.0), implemented on `or6-duplicates`, not released: 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 four verification rounds; the strings in all 38 languages. Still to do: the PostgreSQL tests in CI, the Windows capture of the new screens against the design, the release. 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 list in Edit. |
| 9 Monetization | Not started: requires explicit approval (§22); the proposal is recorded in issue #24 (owner review 4, R5). |
## Verification (2026-10-12)
+2 -2
View File
@@ -67,10 +67,10 @@ local folders and *Upload all local*). The owner answered in Italian; quoted wor
| 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 two verification rounds. 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 and 2026-11-17 citing #73 | in progress: implemented on `or6-duplicates`, not released; strings in en and it, the other 36 languages at the release step; the PostgreSQL tests and the Windows capture still to run | `283d04d9` … `9657c171` |
| 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 four verification rounds. 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 and 2026-11-17 citing #73 | in progress: implemented on `or6-duplicates`, not released; strings in all 38 languages; the PostgreSQL tests and the Windows capture still to run | `283d04d9` … `3c99badc`, then the commit closing the fourth verification round |
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, a Library/Edit list of second versions with *Drop…*.
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 **in progress**.