docs: document phase 5b, the server as a project home
Phase 5b had only module rows and the review's DECISIONS and CHANGELOG lines. The brief now describes the server home as the code does after the review fixes: the projects API, projectChanged, the capability, the settings PATCH under the lease, renders of a project version, the panel's Projects section, and the desktop's server projects (open, copy, sync, chip, renders, viewers). DECISIONS gains the phase's own rows; the 5b rows are dated 2026-10-26 like the other review-2 phases, and three 5a rows are marked partly superseded. CHANGELOG, STATUS, the request's 5b row and ARCHITECTURE follow the code (frames stamp, stored reads, the .thumb marker, followed renames, the editor's sign-in). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ae41c95682
commit
3ade4b8d6c
6 files changed
+258
-62
No files matched your search
+43
-24
@@ -573,7 +573,7 @@ One line per decision: date · decision · alternative · reason.
|
||||
| 2026-11-03 | Newer settings format: settings of a newer format open read-only (`FromJson(json, allowNewer: true)`, `IsNewerFormat`); a format 1 project file still refuses them. They are never merged with this format's (`NewerSettingsException` when both sides changed): a newer Main head is listed and pulled but never mirrored, merged or built on (`MirrorAsync` reads leniently and skips it), pushes must parse strictly, and the editor drops its undo steps rather than rebase them onto newer settings. (Owner review 2, R8, fix rounds 1–2.) | Refuse such settings everywhere; merge member by member | A workspace must show what a newer Chronos pushed without misreading or overwriting it, and undo must never bring this Chronos's values back over the newer ones. |
|
||||
| 2026-11-03 | Project file format 2: `ProjectBundle` is written as format 2 only with a `workspace` section (project id, name, Main, home, base version id, number and hash, media kind and frames version); a file without it is still written as format 1. `IsReadOnly` marks a project of a newer settings format. (Owner review 2, R8.) | Always format 2 | Earlier Chronos versions keep opening the project files users save. |
|
||||
| 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 | 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 | (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 | 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. |
|
||||
@@ -596,7 +596,7 @@ One line per decision: date · decision · alternative · reason.
|
||||
| 2026-11-03 | The frames stamp: a workspace status reads the home's frames again only when `IProjectHome.FramesStampAsync` changes (the archive's: frames version, hashed-frame count, a checksum of the hashes, removal count); a home without a stamp is read every time, and a sync's replay always reads them. (Owner review 2, R8, fix rounds 3–4.) | Read every frame at every status | The picker reads a state per project; a large sequence must not be loaded each time, yet a hash replaced in place must be seen. |
|
||||
| 2026-11-03 | Workspace states: In sync, Changed, Not sent, Library newer, Conflict, Offline, No media, Not in library (`Gone`: the home has no such project or sequence; push, pull and resolve return it without replaying anything, it is logged once, it carries no conflict, and the copy goes only by Discard) and Damaged (a version file after the base cannot be read or breaks the chain: commit, push, pull, resolve and Save both are blocked, the file is repaired from the home's verified copy when it has one, and it is reported only once a re-read under the lease confirms it). A read-only library is named so (`Errors.Workspace.ReadOnlyHome`), not offline. (Owner review 2, R8, fix rounds 1–4.) | Offline for every failure | The user sees why nothing is sent and what settles it. |
|
||||
| 2026-11-03 | Damaged and newer copies: a copy whose `project.chronos` a newer Chronos wrote (a format above 2) is listed as *Newer Chronos* and is never opened, checked out over or removed from here; one that cannot be read is *Damaged* and goes only by Discard. Both are named by what is still known (the file read loosely, else the index's project name or sequence title); discarding a damaged one asks for that name, else its number of files. Open in workspace with such a Main lists it disabled with its reason (`Tooltips.Editor.Workspace.State.NewerCopy` or `DamagedCopy`) and selects the first readable project; it refuses at once only when Main was asked for or the home has no other project, a damaged Main then offering Remove local copy. (Owner review 2, R8, fix rounds 2–5.) | Hide them; refuse the whole open | A newer format is never fatal for the rest of the workspace, nothing in such a copy is changed, and the other projects of the sequence still open. |
|
||||
| 2026-11-03 | Edit opens workspace projects: a sequence of this PC's archive opens in Edit only as a workspace project, the one opened last for it on this PC (`AppSettings.WorkspaceRecent`), else *Open in workspace* (Project: existing or new; Media: Proxies, Originals disabled until 5c; copy size and free space, warned below size + 0.5 GB). Edit waits for the Workspace copy job as for a server sequence's proxies. A capture keeps `LocalSequenceSource`; server sequences keep `RemoteSequenceSource` until 5b. (Owner review 2, R8.) | Ask at every open; edit the library | One project is worked on at a time; the library is never edited in place; a capture has no engine to copy media. |
|
||||
| 2026-11-03 | (Partly superseded by the 2026-10-26 Edit opens a server's sequence row: a sequence of a server that keeps projects opens as a workspace project; an older server's keeps `RemoteSequenceSource`.) Edit opens workspace projects: a sequence of this PC's archive opens in Edit only as a workspace project, the one opened last for it on this PC (`AppSettings.WorkspaceRecent`), else *Open in workspace* (Project: existing or new; Media: Proxies, Originals disabled until 5c; copy size and free space, warned below size + 0.5 GB). Edit waits for the Workspace copy job as for a server sequence's proxies. A capture keeps `LocalSequenceSource`; server sequences keep `RemoteSequenceSource` until 5b. (Owner review 2, R8.) | Ask at every open; edit the library | One project is worked on at a time; the library is never edited in place; a capture has no engine to copy media. |
|
||||
| 2026-11-03 | Workspace editor saves: the working state is saved atomically under the project's lease shortly after an edit, merged in the portable form, photo by photo, whenever positions conflict; a setting the editor and a sync both changed throws `ProjectConflictException` and is asked (keep mine, take the library's). A read-only project raises `ReadOnlyChanged`: a toast, disabled controls, no save. An edit not stored yet that meets a newer Chronos's settings is written to `versions/.replaced` (*Edit kept aside*) and the pending save dropped. The chip is read 600 ms after the last edit. (Owner review 2, R8, fix rounds 1–3.) | Positional merge, the editor winning | Exclusions, keyframes and values a sync just pulled are never dropped silently. |
|
||||
| 2026-11-03 | Sync: Sync is pull, then push, then prune. With *Sync automatically* (on by default) it also runs after Save version and after an analysis while the project is behind, so Main takes the analysis' Auto values. Ctrl+S opens Save version with the note focused; Enter saves. A home out of reach leaves the version waiting. (Owner review 2, R8.) | Push only; a silent Ctrl+S | The local home is always at hand, and the editor keeps showing analysis results as before the workspace. |
|
||||
| 2026-11-03 | Kept versions: pruning keeps the base and the newest N−1 other versions taken from the home, and deletes a version file only after `HoldsAsync` finds the home's copy with the same hash; versions not sent and `versions/.replaced` are never touched. It runs after each sync; N is Settings › Workspace › Kept versions (5–200, default 20). (Owner review 2, R8.) | Prune in 5c; prune without asking the home | The setting is part of 5a, and pruning without the read-back could lose a version. |
|
||||
@@ -604,7 +604,7 @@ One line per decision: date · decision · alternative · reason.
|
||||
| 2026-11-03 | Delete project commits and sends everything first, refuses while anything stays unsent or in conflict, then deletes at the home (the projects' trash) and removes the local copy; Main cannot be deleted; at Gone it says the project was deleted in the library. (Owner review 2, R8.) | Delete at once | Every version survives in the library's project trash. |
|
||||
| 2026-11-03 | Workspace copy: the job (desktop only, `WorkspaceJobs.CreateHandlers`) runs the archive's proxy pass, copies current proxies, makes the rest in the workspace at 1920 px when the archive makes none, and reads each file back. It writes `media.json` last and moves the working positions by photo under the project's lease for that step only; it starts again when the frames change (3 passes). Its checkpoint is `copy:<frame>:<frames version>:<folder>`; changed bytes go under `proxies/<id>-<sha16>.jpg` until the commit, and no file `media.json` names is deleted before it. Free space: an estimate per frame (0 when held, the archive proxy's size, else 1.5 MB × (edge/1920)²) plus 512 MiB, checked before each pass and every 5 s (`Errors.Workspace.DiskFull`). Default level High. Originals are refused until 5c. (Owner review 2, R8, fix rounds 1–4.) | Copy originals; hold the lease throughout; trust a resumed file | Fast editing on proxies while the editor keeps saving; a resume after a move or a conversion checks every file; the system drive never fills. |
|
||||
| 2026-11-03 | The copy job's cancel clean-up: a cancelled first copy clears `media/` only under the project's lease, taken without creating a folder, after checking again that the job is still Cancelled, that no other WorkspaceCopy of the same root (full path, case-insensitive) and project is Queued, Running or Paused (one whose parameters cannot be read counts), that `media.json` is absent and that no copy in this process is writing; otherwise the media stay, with an Info line. It runs from the handler once it has stopped writing, or through the new `ICancelledJobHandler` for a paused or failed job no handler runs; `JobEngine.CancelAsync` of a paused job whose run has not ended waits for that run first. Paused, yielded and shut-down copies keep their files. (Owner review 2, R8, fix rounds 2–5.) | The section's view model deletes the media when the job reads Cancelled | The view model raced the stopping copy and missed a copy nobody watched; a second copy of the same project must keep its files. |
|
||||
| 2026-11-03 | Workspace renders: a render from Edit of a workspace project runs on this PC's engine at the home, with the originals and the portable settings embedded (`RenderJobParameters.SettingsJson`, the handler placing pending frames first), one job per preset. The desktop names a version only while none waits to be sent; `RenderJobHandler.ProvenanceAsync` records the project only if it is one of the sequence, and the version only if the index holds it for that project with the embedded settings' content hash. (Owner review 2, R8, fix round 1.) | Commit before rendering; record any version id | A render never invents a version nor names one whose settings it did not use, or that a later replay renames. |
|
||||
| 2026-11-03 | (Partly superseded by the 2026-10-26 server render row: a project whose home is a server renders on the server, the version the server holds.) Workspace renders: a render from Edit of a workspace project runs on this PC's engine at the home, with the originals and the portable settings embedded (`RenderJobParameters.SettingsJson`, the handler placing pending frames first), one job per preset. The desktop names a version only while none waits to be sent; `RenderJobHandler.ProvenanceAsync` records the project only if it is one of the sequence, and the version only if the index holds it for that project with the embedded settings' content hash. (Owner review 2, R8, fix round 1.) | Commit before rendering; record any version id | A render never invents a version nor names one whose settings it did not use, or that a later replay renames. |
|
||||
| 2026-11-03 | `.chronos` files: format 2 opens its workspace project (a copy of one gives that project its settings as one undo step; a project the home lacks falls back to Main); format 1 gives its settings to the sequence's Main, opened in the workspace. *Save project file* still writes format 1. (Owner review 2, R8.) | Refuse format 1 | Older files and the file association keep working. |
|
||||
| 2026-11-03 | Edit picker: the workspace's projects (saved last first) above the library's sequences; each state is read from its home after the list shows; the search filters both; Enter opens a library match first, a project only when no sequence matches. A row's context menu and Delete offer Remove local copy, also for a copy that cannot open. (Owner review 2, R8.) | One merged list | The picker's keyboard behaviour and paging stay as they were. |
|
||||
| 2026-11-03 | Settings › Workspace (after Storage): *Folder* with *Open* and *Change…* (a plan, projects left and found; it closes an open workspace project and moves nothing; the default is stored as no setting), *Sync* (After each version, on) and *Kept versions*. Reset all and Import keep `WorkspaceFolder` and `WorkspaceRecent`; Export leaves them out. Moving the folder with its projects, the size limit and the plan's other settings are 5c. (Owner review 2, R8, fix round 2.) | An editable path that moves the projects now | The folder holds this PC's unsent work: moving it needs its own plan and confirmation. |
|
||||
@@ -626,24 +626,43 @@ One line per decision: date · decision · alternative · reason.
|
||||
| 2026-11-04 | `ChronosAddress` refuses a link-local IPv6 address with a zone index (`fe80::1%12`): *Invalid address*. | Keep the zone as `%25` | `Uri` and the connection would drop the zone, failing later with a less clear error; the LAN address or name works. |
|
||||
| 2026-11-04 | Screenshot baselines are captured on the development PC (Europe/Rome time zone) from a Release build and committed to `tests/visual/baselines` (156 screens, owner review 3, R2); CI no longer pushes its screenshots to a `ci-screenshots` branch, the branch is deleted, and the `windows` job's token is read-only. Until a Windows runner is registered (on that PC, or a new set accepted from the runner's PC), `screenshots diff` runs locally before a pull request that changes a screen. | Keep accepting from `ci-screenshots`; merge that branch | The owner chose it: no Windows runner exists, so CI never produced a set taken at `SampleData.Now`, and the old `ci-screenshots` commit predates the fixed clock; a branch that only CI writes and that never merges is noise once baselines live in `main`. |
|
||||
| 2026-11-04 | While `--capture` freezes `AppClock`, what the screens measure on the machine is shown as fixed sample values: free space 1.2 TB (`ArchiveLocations.FreeSpace` and the import plan's totals), a server latency of 12 ms, and the last sync comparison at the frozen moment taking 0.4 s. | Raise the diff tolerance; leave them measured | Measured, they moved the Server screens by 0.13–0.15 % (the latency's width shifts the rest of the status line) and the Import screens to the 0.05 % limit (the PC's free space), so baselines failed at random; a larger tolerance would hide real changes. |
|
||||
| 2026-11-04 | Server home (owner review 2, R8, phase 5b): a server sequence's projects live under `/api/v1/sequences/{id}/projects` (list, create, rename, delete, head, versions, push, frames) on the same `ProjectService` as a PC's archive, gated by the `projects` capability; the desktop reaches them through `ServerProjectHome` over the signed-in session's `ChronosClient`. A server out of reach, an expired sign-in, a 503 (busy lease, offline archive, `projects_unreadable`), a 409 `folder_in_use` and a server without the projects are `HomeUnavailableException` (the workspace shows Offline and its work waits); a 404 `sequence`/`project`/`version` and a refused name are `ProjectException`s; other refusals keep their `ChronosApiException`. | A separate server-side project store | One implementation of the rules 5a hardened (leases, sidecars, journals, merges); the workspace treats both homes alike. |
|
||||
| 2026-11-04 | A deleted project's head answers 404 `project` on the server, as `IProjectHome.HeadAsync` answers NotFound on a PC's archive (5a): the workspace reads Gone from the head alone. The original 5b's `IProjectHome.IsLiveAsync` and `WorkspaceStatus.Gone` are dropped in the port. | Keep the head readable and ask `IsLiveAsync` (the original 5b) | Final 5a already decides Gone from the head; one rule for both homes, and one request fewer per status. A deleted project's versions stay readable (`/versions`). |
|
||||
| 2026-11-04 | Push outcomes gain `too_large` (422, `PushOutcome.TooLarge`, final 5a's 64 MiB limit), a version over the limit read by the server is 413 `too_large`, and `ProjectsUnreadableException` is 503 `projects_unreadable`; both are caught before the `IOException` → 409 `folder_in_use` mapping. The workspace words them for the home (`Errors.Workspace.VersionTooLarge.Server`). | Let them fall through as `folder_in_use` | They are not a folder in use: too large is final, unreadable is worth retrying. |
|
||||
| 2026-11-04 | `ProjectService` tells what each call changed (`ProjectChangeSet` to `ArchiveServiceOptions.ProjectsChanged`) after the lease is let go, compared from the projects read before the reconcile and after the call; the server turns it into `projectChanged` events and its background `ProjectCatchUp` runs `CatchUpAsync`. The catch-up of a read-only archive (`ReadOnlyCatchUpAsync`) tells nothing. | Tell inside the lease; diff the index | Subscribers never run under a sequence's lease; the before/after read is the only one that sees records the reconcile healed. |
|
||||
| 2026-11-04 | Kept versions on a server home are pruned as on a PC's archive: each version file goes only after `HoldsAsync` read that version back from the home with the same hash (one request per version). | One listing of the server's versions (the original 5b) | Final 5a's rule: a listing does not prove the stored bytes; pruning is rare and small. |
|
||||
| 2026-11-04 | The workspace copy of a server's sequence (`WorkspaceJobs.CopyFromServer`) downloads through the desktop's session (`ISyncConnector`), never this PC's archive: one frames version with its aliases, each proxy (else the thumbnail standing in, `FileKind` thumb) hashed as it arrives and checked on disk, four at a time, resumable from final 5a's `copy:frame:fv:folder` checkpoint, the editor's current file never overwritten (other bytes under `ProxyName(id, sha)`), the space checked against the server's proxy sizes (the manifest has no file sizes), a cancelled first copy cleared like 5a's. | Copy through the proxy cache | The cache is the proxy editor's; the workspace owns its media. |
|
||||
| 2026-11-04 | Texts of a server's project are their key's `.Server` form when one exists (`WorkspaceText.ForHome`), else the key itself; the chip says *Server newer* and *Not on server*. | Format "the library" / "the server" into one text | Word order and articles differ by language; a missing form falls back to the library's text, never to a key. |
|
||||
| 2026-11-04 | A server's project renders what the server holds: before a render (`ProjectMenuViewModel.ReadyToRenderAsync`) unsaved or unsent work is offered to be saved and sent; Offline, Gone, Damaged or media removed hold the render. In step, the jobs name the version alone; out of step, the portable settings travel and only the project is recorded. An analysis's Auto values reaching Main at the server are taken by the next `projectChanged` (pushed) within 2 minutes, with Sync automatically. | Render the workspace's settings always | The server renders with its originals; only a version it holds can be named. |
|
||||
| 2026-11-04 | Edit opens a server's sequence as a workspace project when the server has the `projects` capability (`OpenServerWorkspaceAsync`), with final 5a's refusals (a copy this Chronos cannot read, a damaged or newer Main listed disabled, a workspace folder refused). The *sequence left the index* refusal applies only to projects of this PC's archive. An older server's sequences open with proxies as before. | Refuse every project whose sequence is not in the index | A server's sequence is never in this PC's index. |
|
||||
| 2026-11-04 | `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. Supersedes "no frames stamp" of the first 5b port. | Read the frames each time | Review 5b: every status of every server project downloaded the whole frame list. |
|
||||
| 2026-11-04 | 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-11-04 | 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-11-04 | 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-11-04 | 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-11-04 | `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-11-04 | `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-11-04 | 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-11-04 | `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-11-04 | 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-11-04 | 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-11-04 | 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-10-26 | Server home (owner review 2, R8, phase 5b): a server sequence's projects live under `/api/v1/sequences/{id}/projects` (list, create, rename, delete, head, versions, push, frames) on the same `ProjectService` as a PC's archive, gated by the `projects` capability; the desktop reaches them through `ServerProjectHome` over the signed-in session's `ChronosClient`. A server out of reach, an expired sign-in, a 503 (busy lease, offline archive, `projects_unreadable`), a 409 `folder_in_use` and a server without the projects are `HomeUnavailableException` (the workspace shows Offline and its work waits); a 404 `sequence`/`project`/`version` and a refused name are `ProjectException`s; other refusals keep their `ChronosApiException`. | A separate server-side project store | One implementation of the rules 5a hardened (leases, sidecars, journals, merges); the workspace treats both homes alike. |
|
||||
| 2026-10-26 | A deleted project's head answers 404 `project` on the server, as `IProjectHome.HeadAsync` answers NotFound on a PC's archive (5a): the workspace reads Gone from the head alone. | Keep the head readable and ask a separate `IsLiveAsync` | 5a already decides Gone from the head; one rule for both homes, and one request fewer per status. A deleted project's versions stay readable (`/versions`). |
|
||||
| 2026-10-26 | Push outcomes gain `too_large` (422, `PushOutcome.TooLarge`, final 5a's 64 MiB limit), a version over the limit read by the server is 413 `too_large`, and `ProjectsUnreadableException` is 503 `projects_unreadable`; both are caught before the `IOException` → 409 `folder_in_use` mapping. The workspace words them for the home (`Errors.Workspace.VersionTooLarge.Server`). | Let them fall through as `folder_in_use` | They are not a folder in use: too large is final, unreadable is worth retrying. |
|
||||
| 2026-10-26 | `ProjectService` tells what each call changed (`ProjectChangeSet` to `ArchiveServiceOptions.ProjectsChanged`) after the lease is let go, compared from the projects read before the reconcile and after the call; the server turns it into `projectChanged` events and its background `ProjectCatchUp` runs `CatchUpAsync`. | Tell inside the lease; diff the index | Subscribers never run under a sequence's lease; the before/after read is the only one that sees records the reconcile healed. |
|
||||
| 2026-10-26 | Kept versions on a server home are pruned as on a PC's archive: each version file goes only after `HoldsAsync` read that version back from the home with the same hash (one request per version). | One listing of the server's versions | Final 5a's rule: a listing does not prove the stored bytes; pruning is rare and small. |
|
||||
| 2026-10-26 | The workspace copy of a server's sequence (`WorkspaceJobs.CopyFromServer`) downloads through the desktop's session (`ISyncConnector`), never this PC's archive: one frames version with its aliases, each proxy (else the thumbnail standing in, `FileKind` thumb) hashed as it arrives and checked on disk, four at a time, resumable from final 5a's `copy:frame:fv:folder` checkpoint, the editor's current file never overwritten (other bytes under `ProxyName(id, sha)`), the space checked against the server's proxy sizes (the manifest has no file sizes), a cancelled first copy cleared like 5a's. | Copy through the proxy cache | The cache is the proxy editor's; the workspace owns its media. |
|
||||
| 2026-10-26 | Texts of a server's project are their key's `.Server` form when one exists (`WorkspaceText.ForHome`), else the key itself; the chip says *Server newer* and *Not on server*. | Format "the library" / "the server" into one text | Word order and articles differ by language; a missing form falls back to the library's text, never to a key. |
|
||||
| 2026-10-26 | A server's project renders what the server holds: before a render (`ProjectMenuViewModel.ReadyToRenderAsync`) unsaved or unsent work is offered to be saved and sent; Offline, Gone, Damaged or media removed hold the render. In step, the jobs name the version alone; out of step, the portable settings travel and only the project is recorded. An analysis's Auto values reaching Main at the server are taken by the next `projectChanged` (pushed) within 2 minutes, with Sync automatically. | Render the workspace's settings always | The server renders with its originals; only a version it holds can be named. |
|
||||
| 2026-10-26 | Edit opens a server's sequence as a workspace project when the server has the `projects` capability (`OpenServerWorkspaceAsync`), with final 5a's refusals (a copy this Chronos cannot read, a damaged or newer Main listed disabled, a workspace folder refused). The *sequence left the index* refusal applies only to projects of this PC's archive. An older server's sequences open with proxies as before. | Refuse every project whose sequence is not in the index | A server's sequence is never in this PC's index. |
|
||||
| 2026-10-26 | Unknown sequence, project or version is 404 `not_found` with details `sequence`, `project` or `version`; the push's refusals keep their own codes (`project_diverged`, `hash_mismatch`, `newer_format`, `invalid_version`, `too_large`). | Codes `sequence_not_found`, `project_not_found`, `version_not_found` | Every other endpoint answers 404 that way (§14.3); clients check one code. |
|
||||
| 2026-10-26 | A push answers `ProjectPushResultDto` (outcome, stored version, head) for 200, 201, 409 and 422, refusals with `code` and `message` too; `ChronosClient.PushProjectVersionAsync` returns it for those statuses without throwing. | An ApiError for refusals | A divergence needs the head; the stored version is what the workspace keeps; generic error readers still read code and message. |
|
||||
| 2026-10-26 | The server numbers a pushed version head + 1 and records the pushing account as its author, and the version's client name, else the token's. | Keep the author the client sent | On a server, versions are by accounts; the content hash covers only the settings; the workspace keeps the stored version, as with its archive. |
|
||||
| 2026-10-26 | Version pages use numbers: newest first below `before` (default 50), oldest first above `after` (default 100), 1–200, `more` read with one extra. | Opaque cursors | Numbers are contiguous, and a workspace pulls after its base's number. |
|
||||
| 2026-10-26 | Deleting a project needs Delete and the sequence's owner, the project's maker or an admin. Main is never deleted (409 `main_cannot_be_deleted`); the API can rename it, the panel cannot. | Delete alone; refuse renaming Main | Like deleting a sequence, while the maker may remove their own project on another's sequence; the engine allows the rename, and the panel shows Main in its language. |
|
||||
| 2026-10-26 | Main's head mirrored into the settings also sends `sequenceChanged` `settings`. | Only `projectChanged` | Older clients and desktop syncs read the settings and react to `sequenceChanged`. |
|
||||
| 2026-10-26 | `ProjectCatchUp`, a server background service, catches a sequence's projects up (`ProjectService.CatchUpAsync`) after a settings `PATCH`, an analysis's Auto values or a conversion's Replace: one sequence at a time, a sequence asked again while it waits caught up once, a busy lease tried again after 5 s, 30 s and 2 minutes, and only for sequences that already have a Main. It runs after an event and is no schedule (R10 is about recurring work). | Wait for the next project call | A workspace with Main checked out learns at once that its home moved; Main stays lazy, and no project files are written for sequences nobody opened as projects. |
|
||||
| 2026-10-26 | `projectChanged` goes to every signed-in subscriber of the event stream. | Filter by account | Sequences and projects are visible to every reader, as with `sequenceChanged`. |
|
||||
| 2026-10-26 | A render job's `projectVersionId` must be a version of a project of its sequence and names that project; `projectId` alone, without settings, is pinned to the project's head when the job is queued; a deleted project's versions still render. | Render the head at run time | The render records the version it rendered. |
|
||||
| 2026-10-26 | Render nodes get a version's settings (or the job's portable settings) already placed on the frames their claim lists, read as one frames version (`SequenceEndpoints.SnapshotOfAsync`); a version that is not the sequence's fails the job (`Errors.Render.ProjectVersion`). | Send portable settings for nodes to place | Older nodes keep working; the same placement as the server's own render. |
|
||||
| 2026-10-26 | The capability `projects` in `server/info`; the API stays version 1. | API version 2 | An additive change: old clients ignore it, new clients fall back on servers without it. |
|
||||
| 2026-10-26 | `GET …/projects/frames` answers every frame (`FrameDto`, index order) and the replaced tombstones as aliases (`RemovedPhotoDto`), as of one frames version, in one answer. | Pages with a frames-version guard | As the manifest does; placement needs one frames version. |
|
||||
| 2026-10-26 | The panel's Projects section: Main in the panel's language, with a mark only once renamed; Rename and Delete only for the others, Delete confirmed by name; no create, push or restore. | The desktop's project menu | R6: the panel manages, never edits. |
|
||||
| 2026-10-26 | `HomePhotos` is public. | Duplicate it in the server | The server builds a home's photos exactly as the archive does. |
|
||||
| 2026-10-26 | A server is a project home only while this PC is signed in to it (`SyncHost.ProjectHome`: one shared `ChronosClient` for the session's address and token, replaced at a new sign-in); otherwise its projects read Offline and still open from the workspace. Projects name the server by `SyncService.ServerKey` of the address they were made with. | Keep a token per server in each project file | One sign-in and one trust store; nothing new to protect; work never waits on a sign-in to be edited. |
|
||||
| 2026-10-26 | A project file of a server's sequence names an archive id made from the server's key (`ServerProjectHome.ArchiveIdOf`: a version 8 UUID from the SHA-256 of `chronos-server-archive:<key>`), with the server's name and no path. | Guid.Empty or a new random id | Stable per server, never one of this PC's archives, and older readers accept it. |
|
||||
| 2026-10-26 | The copy from a server downloads as the sync does (`SyncTransfers.DownloadFirstAsync`: the proxy, else the thumbnail) and checks a hash taken as the bytes arrive, then the file on disk; its downloads are not held on a metered connection. | A separate downloader; hold them like uploads | The server's manifest has no hash of a proxy; one code path with the sync; only uploads have the metered option (Server › Pause uploads on metered). |
|
||||
| 2026-10-26 | The editor of a server's workspace project runs analyses and renders as the server's jobs (`ServerJobs`, shared with `RemoteSequenceSource`). | This PC's engine | Renders run where the originals are (R8); one event-following code path. |
|
||||
| 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 | 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 | `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. |
|
||||
Reference in new issue
Block a user