docs: record the phase 5b final check
DECISIONS: IndexSettingsMayLead (Main's birth and meeting on a server keep the index's settings), the name follow that never fails a pull, the capture's sample paths and the Server actions column; the rows on the Main meeting, the settings PATCH and the name follow point to them. CHANGELOG: the fix wording is now true for servers upgraded from an earlier release, with an upgrade note; BRIEF's Main mirror rule and STATUS follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bc4d8e0768
commit
2068656f44
4 files changed
+26
-9
No files matched your search
+7
-3
@@ -575,7 +575,7 @@ One line per decision: date · decision · alternative · reason.
|
||||
| 2026-11-03 | Size limits: `ProjectBundle.MaxBytes` and `ProjectSidecars.MaxVersionBytes` are both 64 MiB, one limit for writing and reading, refused before anything is written (`ProjectTooLargeException`, `Errors.Project.TooLarge`; `ProjectVersionTooLargeException`; `PushOutcome.TooLarge`, appended last, shown as `Errors.Workspace.VersionTooLarge`). A 100,000-frame sequence with every frame parked takes about 26 MB. (Owner review 2, R8, fix rounds 1–2.) | 4 MiB for project files and 8 MiB for versions (the first version) | Large projects could not be checked out, and a version written that no read takes back was lost silently. |
|
||||
| 2026-11-03 | (Partly superseded by the 2026-10-26 `ProjectCatchUp` row: on a server, settings written outside the projects become Main's version soon after, for sequences that have a Main.) Main mirroring: Main is made lazily (`MainAsync`) from the sequence's settings (`project.json` first) as version 1, Imported; its head is mirrored into `project.json` and the index's settings with the settings version check; the record's `mirrored` names the version `project.json` was last known to hold. Settings any other path writes (an older Chronos, the editor's old path, an analysis, the API, sync) become an External version of Main at the next project call; a mirror a crash cut short is completed. (Owner review 2, R8.) | Migrate every sequence; an API version bump | Older clients and the server's settings sync keep working unchanged, and no migration pass runs over large archives. |
|
||||
| 2026-11-03 | Main catch-up merge: a push whose mirror a crash or a race cut short, met by settings written meanwhile by another path, becomes ONE Merge version on the head, in which the settings written meanwhile win where both changed; the push's values stay in its own version. A merge that holds nothing the head lacks makes no version and the head is mirrored, so a merge cut before its mirror is finished next time by the same index or a rebuilt one. (Owner review 2, R8, fix round 3; supersedes rounds 1–2's External and Merge pair.) | An External version, then a Merge, resumed by their shape; the push wins | The settings written meanwhile are the newer write, in force, and what older clients wrote and read; the pair's resume misfired on ordinary histories and reverted the latest edit. |
|
||||
| 2026-11-03 | An index meeting Main with no mirror known decides from `project.json`, never from its own settings column: the record's `mirrored` is a lower bound, `project.json` matching any version from the head down to it completes the mirror, a record naming the head or no version gives an External, and one naming an older mirror that `project.json` matches nowhere merges (`project.json` wins where both changed). When the catch-up records a version as mirrored and `project.json` holds it, the record names it too. (Owner review 2, R8, fix rounds 1–3.) | Compare with the index's settings column | That column can be stale on a second PC or after a backup, and taking it as an outside change reverted pushed heads. |
|
||||
| 2026-11-03 | (On a server, completed by the 2026-11-04 `IndexSettingsMayLead` row: its own settings column is kept as a version too.) An index meeting Main with no mirror known decides from `project.json`, never from its own settings column: the record's `mirrored` is a lower bound, `project.json` matching any version from the head down to it completes the mirror, a record naming the head or no version gives an External, and one naming an older mirror that `project.json` matches nowhere merges (`project.json` wins where both changed). When the catch-up records a version as mirrored and `project.json` holds it, the record names it too. (Owner review 2, R8, fix rounds 1–3.) | Compare with the index's settings column | That column can be stale on a second PC or after a backup, and taking it as an outside change reverted pushed heads. |
|
||||
| 2026-11-03 | A mirror never writes `project.json` over settings written there since this index last knew what it held (the version mirrored, the settings just taken in, the index's or the record's mirrored version): it takes them in first (External, or a merge where they win), then mirrors; if `project.json` moves again meanwhile, nothing is written and the next call catches up. A `project.json` that cannot be read is written over as before. (Owner review 2, R8, fix round 4.) | Write the mirror unconditionally | An edit another PC or an older client made only in `project.json` would be lost, its values in no version. |
|
||||
| 2026-11-03 | Catch-up: every `ProjectService` call first catches up under the sequence's lease (sidecars into the index, Main made, outside settings appended, write-back and heal); reads wait at most 3 s for the lease, then answer from the index. Unique and foreign-key errors are contained per project, other database errors per sequence in the scan and in reads. A read-only archive is read without writing: a sequence with no Main gets an index-only Main, whose sidecars are written once the archive takes writes (ours becomes `Main (2)` if another index's Main appeared meanwhile). (Owner review 2, R8, fix rounds 1–2.) | Catch up at scans only | One place keeps the index, the sidecars and Main's mirror in step; a busy sequence never blocks a screen; one damaged project never stops a scan of the archive. |
|
||||
| 2026-11-03 | Project deletion: only a record that says deleted, or a folder in `projects/.trash`, deletes; a missing folder or a record that cannot be read never does. The trash is read before the live folders, so a reconcile never undoes a deletion. A record that cannot be read holds its project back (listed as the index has it, nothing written, writes refused with `ProjectsUnreadableException`, a `HomeUnavailableException` to workspaces). Delete refuses Main, moves the folder into the projects' trash first, then writes the deleted record there. (Owner review 2, R8, fix rounds 1 and 4.) | Mark deleted when the folder is missing; write the record first | One failed read deleted every project of a sequence and made a second Main; a half-synced deletion was undone by an index that still had the project. |
|
||||
@@ -656,13 +656,17 @@ One line per decision: date · decision · alternative · reason.
|
||||
| 2026-10-26 | An older server's rows offer *Open in workspace* disabled, with a tooltip giving the reason; *Open with proxies* stays. | Hide the action | It says why the workspace is not there. |
|
||||
| 2026-10-26 | `ServerProjectHome` reads the frames stamp from `GET …/projects/frames/stamp` (`ArchiveProjectHome.StampOfAsync` on the server), so a status downloads the server's frames only when the stamp moved. | Read the frames each time | Review 5b: every status of every server project downloaded the whole frame list. |
|
||||
| 2026-10-26 | A sequence without a folder (a server's sequence made before its first photo) keeps no projects: it lists none, `CreateAsync` and every other change refuse with `ProjectError.SequenceEmpty` (409 `sequence_empty`) before any lease or file, and the stored-version check answers false. The desktop says *This sequence has no photos yet.* | Make Main in the index only | Its folder is empty, so the sidecars and leases landed at the archive's root. |
|
||||
| 2026-10-26 | A settings PATCH on the server writes the sequence's `project.json` under the sequence lease first (`ArchiveService.EditSettingsAsync`, 20 s wait), then the index; the file is put back when the index does not take the edit. Busy, offline and moved answer 503 (`sequence_busy`, `archive_offline`, `folder_moved`), a file in use 409 `folder_in_use`. A PATCH of title or tags alone stays index-only. | Make Main's birth prefer the index | 5a's Data tests make `project.json` win on the desktop; the PATCH was the one writer that left it behind. |
|
||||
| 2026-10-26 | (For sequences an earlier release PATCHed, see the 2026-11-04 `IndexSettingsMayLead` row.) A settings PATCH on the server writes the sequence's `project.json` under the sequence lease first (`ArchiveService.EditSettingsAsync`, 20 s wait), then the index; the file is put back when the index does not take the edit. Busy, offline and moved answer 503 (`sequence_busy`, `archive_offline`, `folder_moved`), a file in use 409 `folder_in_use`. A PATCH of title or tags alone stays index-only. | Make Main's birth prefer the index | 5a's Data tests make `project.json` win on the desktop; the PATCH was the one writer that left it behind. |
|
||||
| 2026-10-26 | The push body limit is the version limit (64 MiB) plus 1 MiB; the client reads a 413 as `ProjectPushOutcomes.TooLarge` / `too_large`. Version pages stop once their settings add up to 4 Mi characters (always one version at least) and say `more`; `ServerProjectHome` pages on until it has what was asked. `summary=true` leaves the settings out (the admin panel). | One fixed page size | A page of 200 large versions was hundreds of MB. |
|
||||
| 2026-10-26 | Deleting a project as its maker needs the same account: same username, and an account made no later than the project. | Store the maker's id | No schema change; a name reused by a newer account no longer inherits the rights. |
|
||||
| 2026-10-26 | `projectChanged` is also told for a full rescan's reconcile and the read-only catch-up (compared around them, told after the lease), and a Main flip reads as `renamed`. | Tell only the API's own calls | Another PC's changes reached the workspaces only at their next read. |
|
||||
| 2026-10-26 | `SyncAgent` tells "changes may have been missed" only once the event stream is open again (`ISyncRemote.EventsAsync(connected, ct)`) and the refresh after it ran. | Tell at the loss | Told before the stream was back, a workspace re-read too early and missed changes made in between. |
|
||||
| 2026-10-26 | A server-side rename reaches the workspace copy: every pull and the `renamed` event write the home's name (and Main) into the bundle (`WorkspaceSync.FollowNameAsync`), errors ignored. | A new `IProjectHome.ProjectAsync` | `ListAsync` already answers; one call fewer to add to both homes. |
|
||||
| 2026-10-26 | A server-side rename reaches the workspace copy: every pull and the `renamed` event write the home's name (and Main) into the bundle (`WorkspaceSync.FollowNameAsync`), errors ignored (after a pull, every error but a cancellation, logged: 2026-11-04). | A new `IProjectHome.ProjectAsync` | `ListAsync` already answers; one call fewer to add to both homes. |
|
||||
| 2026-10-26 | `ServerProjectHome.HoldsAsync` reads the version file back (`GET …/versions/{id}?stored=true`, `ProjectService.StoredAsync`), false when the file is missing or damaged, or the project deleted. | Trust the index row | Pruning a local version needs proof the server's file holds it. |
|
||||
| 2026-10-26 | A copy from a server writes an empty `<file>.thumb` marker before a thumbnail taken for a missing proxy is moved into place; a resumed run reads it (and downloads the proxy when the server has it now); the commit removes the markers. | Download again every file of unknown kind | A resume would fetch every frame again. |
|
||||
| 2026-10-26 | An account without Edit is offered *Open with proxies* (read-only) on a server that keeps projects, never *Open in workspace*, and Edit checks nothing out for it; a copy the workspace already holds still opens, its pushes refused (403) as a refusal, not as Offline. | Check out read-only | A viewer's workspace copy could never be pushed. |
|
||||
| 2026-10-26 | The editor of a server's workspace project connects with the sign-in in use at each use (`WorkspaceServerHome(connect, session)`): a sign-in, sign-out or new sign-in drops the old connection and its jobs. `SyncHost` tells each session start and stop as `ProjectChanged(server, null)`. | Rebuild the editor | A project opened signed out could not render after signing in. |
|
||||
| 2026-11-04 | `ArchiveServiceOptions.IndexSettingsMayLead`, set by the server: when Main is made and the index's settings differ from `project.json`, Main gets `project.json`'s as version 1 (Imported) and the index's as version 2 (External), in force and mirrored. When Main is met with no mirror known and the index's settings are none of its versions (the head, or the last 100), they become an External version on the head and the settings the meeting gives from `project.json` (the head again as a Restore, a merge, or `project.json`'s as External) go on top, mirrored. The desktop is unchanged (`project.json` alone). (Owner review 2, R8, phase 5b final check.) | Bring every `project.json` up to the index at start; prefer the index everywhere | Before 5b the server's `PATCH` wrote the index alone, so an upgraded server's first list reverted those settings to an older `project.json` and `sequenceChanged` carried the loss to the desktops. A server without Main anywhere cannot have had a newer `project.json` from its own writers, so the index wins there; where another program made Main, or the index came back from a backup, which is newer cannot be told, so both are kept and the file's rule stays in force. A migration pass would write every sequence folder of large archives. |
|
||||
| 2026-11-04 | The name follow after a pull (`WorkspaceSync.FollowNameLockedAsync`) never fails the pull: an unreachable home or a project refusal returns false as before; any other error (a 403 passed through, a bundle in use) is logged as a Warning and the name is followed at the next pull; only a cancellation passes. | Catch only the home's own exceptions | A pull that had pulled and replayed reported a failure for a list it only used to follow a rename. |
|
||||
| 2026-11-04 | A capture shows its data folder as `C:\Users\Studio\AppData\Local\Chronos` and its sample archive as `D:\ChronosArchive` (`AppEnvironment.Shown`: Settings › Storage, Workspace and Advanced, the Rebuild index dialog and the cache's Clear confirmation); a path typed over a shown one is mapped back (`AppEnvironment.Actual`) before it is checked or saved. Outside a capture every path is shown as it is. | Fixed sample paths in the view models while `AppClock.IsFrozen`; a capture folder at a fixed path | The baselines showed `%TEMP%` and the user name, so they differed on any other machine or `TEMP`. One mapping in one place, and the capture still writes only to its temporary folder. |
|
||||
| 2026-11-04 | Server screen: the row actions column is at least 400 px wide (`MinWidth`, header and rows alike; the Sequence column gives way), so a remote row's three actions (*Open with proxies*, *Download originals* and an older server's disabled *Open in workspace*) stay on one 40 px line at 1440 px, as Server.html's rows do. The panel still wraps for longer labels. | Drop the disabled action for a tooltip; a horizontal panel that clips | BRIEF §12.7 shows the disabled action after the others, with its reason in the tooltip; a wrapped row was twice as tall as the others. |
|
||||
Reference in new issue
Block a user