feat: owner review 2 phase 5c: originals, local render, clean-up and the workspace settings (#18)
CI / Build and test (push) Successful in 9m26s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 8s
Release / Build, test and publish (push) Successful in 14m31s
CI / PostgreSQL 16 integration (push) Successful in 9m53s
CI / PostgreSQL 17 integration (push) Successful in 9m22s
CI / Docker image (push) Successful in 44s
Release / Server image (push) Successful in 1m36s

Originals in the workspace, local render and send home with provenance, the workspace clean-up, size limit and trash, moving the workspace folder, and the complete Settings › Workspace page (owner review 2, R8, phase 5c). One adversarial review round (35 findings, 32 fixed), a copy-cancel race fixed, 184 strings in all 38 languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #18.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-11-04 20:03:52 +01:00
1 parent 81c303f484
commit db389a54f2
364 files changed
+17417 -595

No files matched your search

+35 -4
View File
@@ -596,18 +596,18 @@ 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 | (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 | (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`. Partly superseded by the 2026-11-04 Open project row, phase 5c: Originals can be chosen, Default media preselects, and Open project decides which project opens.) 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. |
| 2026-11-03 | Remove local copy: a plan first (files, size, versions not sent, unsaved changes, conflict, damaged versions counted as unsent). Remove only when everything is at the home, whose head and the base are read back and hash-checked; Send first sends, then removes; Discard changes asks for the project's name typed. Every entry of the copy but `media/` and the lease files moves to `<workspace>/.trash/<id>-<ticks>`, the media are deleted, and a move that fails puts everything back in reverse order. A copy whose project the home deleted goes only by Discard (`Errors.Workspace.DeletedAtHome`). A copy job still running for the project is cancelled first. `<workspace>/.trash` is emptied in 5c. (Owner review 2, R8, fix rounds 1–4.) | Delete the whole folder | Never lose a version, an edit or a file this Chronos does not know. |
| 2026-11-03 | (Partly superseded by the 2026-11-04 rows on originals judged by their bytes and on Remove local copy, phase 5c: originals the home no longer holds go to the trash, unsent local renders block the removal, and Settings › Workspace › Empty… empties the trash.) Remove local copy: a plan first (files, size, versions not sent, unsaved changes, conflict, damaged versions counted as unsent). Remove only when everything is at the home, whose head and the base are read back and hash-checked; Send first sends, then removes; Discard changes asks for the project's name typed. Every entry of the copy but `media/` and the lease files moves to `<workspace>/.trash/<id>-<ticks>`, the media are deleted, and a move that fails puts everything back in reverse order. A copy whose project the home deleted goes only by Discard (`Errors.Workspace.DeletedAtHome`). A copy job still running for the project is cancelled first. `<workspace>/.trash` is emptied in 5c. (Owner review 2, R8, fix rounds 1–4.) | Delete the whole folder | Never lose a version, an edit or a file this Chronos does not know. |
| 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 | (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. |
| 2026-11-03 | (Partly superseded by the 2026-11-04 Settings › Workspace defaults row, phase 5c: the page gains Move…, Size limit, Default media, Version on render, Clean after, Open project and Trash.) 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. |
| 2026-11-03 | Workspace texts: the workspace's strings live in the existing Editor, Tooltips, Settings and Errors areas; the home is called "the library" (the server home will name its server), Main is shown in the UI language (it: Principale), and versions carry the bare PC name (`Environment.MachineName`; History strips `chronos@`, `server@`, `workspace@` and `Chronos on`). (Owner review 2, R8.) | A new Workspace area | No new resource files to translate; the wording matches the rest of the desktop. |
| 2026-11-03 | `ProjectMenuViewModel` reaches the window only through `IWorkspaceUi` (dialogs, `ShowDialogWhenFree`, confirmations, toasts, opening and closing a project). A conflict found by an automatic sync waits for the open dialog and is asked once. (Owner review 2, R8.) | Depend on the shell; replace the open dialog | Its logic is tested without a window, and a background prompt never hides what the user is doing. |
| 2026-11-03 | Leases: `LeaseFile.TryAcquire` and `AcquireAsync` take `createDirectory` (default true); the copy's clean-up passes false. `WorkspaceSync.OpenAsync` reads the working state and the media under the project's lease; a lease still busy after the wait is `Errors.Workspace.Busy`. (Owner review 2, R8, fix rounds 1, 2 and 5.) | Always create the folder; read without the lease | A clean-up must never make a removed project folder again, and the editor never reads a half-written working state. |
@@ -651,7 +651,7 @@ One line per decision: date · decision · alternative · reason.
| 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 | (Partly superseded by the 2026-11-04 Pause metered transfers row, phase 5c: a copy from a server is held on a metered connection.) 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. |
@@ -670,3 +670,34 @@ One line per decision: date · decision · alternative · reason.
| 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. |
| 2026-11-04 | Three job kinds appended after `WorkspaceCopy`: `WorkspaceRender` (stored as 21, `workspace-render`), `WorkspaceSend` (22, `workspace-send`) and `WorkspaceMove` (23, `workspace-move`), registered by the desktop only (`WorkspaceJobs.CreateHandlers` with `WorkspaceJobOptions`: the processing options, `HoldTransfers`, `Moved`, `CurrentRoot`); priority defaults High, Normal and High; listed in Settings › Rendering, not in the server's list. No migration: `renders.project_id`/`project_version_id` came with 0009 and the workspace's state lives in its files. (Owner review 2, R8, phase 5c.) | One workspace job with a mode; a table for the local renders | Each kind has its own parameters, priority and toast; the workspace is a folder that describes itself, so its renders' ledger lives in it. |
| 2026-11-04 | Originals in the workspace: media of kind `originals` are the proxies plus each frame's original at `media/originals/<frame id>-<sha8><ext>` (the original's extension, lower case), with `Original`, `OriginalSha256` and `OriginalBytes` per frame in `media.json`. The copy takes the proxies first, then streams each original into a `.part`, hashing as it copies, compares it with the home's SHA-256 (recording it when the home has none) and reads the written file back; originals already held are hashed again. A frame whose original is missing, damaged, refused (403, 404) or still mismatched after two tries keeps its proxy, and the job succeeds, logging the counts and the first 20 names. A copy of kind Proxies never touches `originals/`. Local renders read only these originals, with no GPR companions. (Owner review 2, R8, phase 5c.) | Fail the copy on the first bad original; name originals by frame id alone | One bad file should not waste a long copy; the SHA-256 prefix tells two encodings of a frame apart while the editor still reads the old one, and decoders go by the extension. |
| 2026-11-04 | Media index format 2 while it holds or names originals or was cleaned (1 otherwise), and `project.chronos` format 3 while its workspace media are Originals (2 otherwise), so a phase-5b Chronos refuses such copies as newer. (Owner review 2, R8, phase 5c review, compat-3.) | Keep formats 1 and 2, relying on unknown members being kept | A 5b Chronos would read them as proxies and, on Remove local copy, delete originals it cannot weigh. An original left held open after Proxies only leaves the index at format 1 (known limitation). |
| 2026-11-04 | Originals are judged by hashing the files on disk, never by `media.json`: on Remove local copy, the clean-up, Proxies only and a stale original after a copy, every file under `media/originals` (named by the index or not; an unreadable index names none) is deleted only when the home's frames, read now, hold that SHA-256 and the frame is not Missing or Corrupt; every other one goes to the workspace's trash (`<id>-<ticks>/originals`), all of them while the home cannot be asked. Archive frames a scan adopted and no Verify hashed have no SHA-256, so their originals go to the trash. The removal plan's count of originals is an estimate. (Owner review 2, R8, phase 5c; review safety-1, safety-2, tests-1.) | Trust the SHA-256 the index recorded | A damaged index, or an original still on disk after the index was rewritten, let originals go without proof; BRIEF rule 8 wants a read-back of the home before any deletion. |
| 2026-11-04 | *Proxies only…*: a plan (originals deleted, size, kept in trash) and an explicit confirmation; checked against `IProjectHome.FramesAsync`; the media index is rewritten as Proxies before any file goes, and a plan the project or the home changed since is refused (`Errors.Workspace.MediaChanged`). Refused while the project has changes, a sync or copy runs, or its sequence's jobs run (`Errors.Workspace.MediaBusy`). *Copy originals…* queues a `WorkspaceCopy` of media Originals. Disabled, each says why in its tooltip. (Owner review 2, R8, phase 5c.) | Delete at once | Deletions are plans first; nothing may name a file that is gone. |
| 2026-11-04 | A cancelled copy of the originals removes its `.part` and `.staging` files and the originals it wrote that the index does not name, deleting only those the home holds byte for byte and moving the rest to the trash. (Owner review 2, R8, phase 5c review, jobs-4.) | Leave them to the clean-up | A cancel should leave the project as it was. |
| 2026-11-04 | *Open in workspace* of a server's sequence shows the copy's size: proxies estimated at 1.5 MB a frame, originals summed from the server's frame sizes, free space from `DriveInfo`. A copy from a server waits while `HoldTransfers` is true (`Archive.Log.WorkspaceCopyHeld`). (Owner review 2, R8, phase 5c; review tests-6.) | No size for a server home, as in 5b | Choosing originals needs their size; the server lists frame sizes, not proxy sizes. |
| 2026-11-04 | Settings › Workspace › *Open project* (`AppSettings.WorkspaceOpenProject`): Last used (default), Main (the last used when the workspace holds no Main), or Ask, which shows the dialog only when the workspace holds 2 or more readable projects of the sequence, the last used preselected. A checkout without the dialog copies `WorkspaceDefaultMedia`. Each open records `WorkspaceOpened[id]`. Values set elsewhere read alike everywhere (`EffectiveOpenPolicy`, `EffectiveDefaultMedia`): an unknown policy as Last used, any case of `originals` as Originals, anything else as Proxies. (Owner review 2, R8, phase 5c; review ui-7.) | Ask every time | A sequence with one project needs no question; the page, the editor and the dialog must agree on a hand-edited value. |
| 2026-11-04 | Settings › Workspace defaults: Size limit 100 GB (25, 50, 100, 200, 500, 1000, No limit = 0), Default media Proxies, Version on render on, Kept versions 20, Clean after 30 days (7, 14, 30, 60, 90, Never = 0), Open project Last used. Default media and Open project are radio buttons, Size limit and Clean after drop-downs with No limit or Never last, their tooltips following the choice; a value below 1 reads No limit or Never, a hand-set positive one is listed in order. The page's Reset restores those rows and Sync, keeping the folder, the trash, `WorkspaceRecent` and `WorkspaceOpened`; Reset all and Import keep `WorkspaceOpened`, Export leaves it out. (Owner review 2, R8, phase 5c.) | No size limit by default | Proxies by default was the owner's answer; a limit keeps a fast disk from filling, and cleaning only ever drops media the home holds. |
| 2026-11-04 | The workspace's usage (*{0} used*, the whole folder with its trash) and the Trash row are measured when the page is shown, after Change…, Empty… and a move ending (*Measuring…* meanwhile), a newer measure cancelling an older one; an I/O or access error hides both lines and is logged. (Owner review 2, R8, phase 5c; review ui-4.) | Measure on a timer | Measuring walks every file of the workspace. |
| 2026-11-04 | Local render (`WorkspaceRender`): `RenderJobHandler`'s pipeline over the originals the media hold, refused (`Errors.Workspace.RenderNoOriginals`, with the count) unless every placed frame has one; always into the project's `exports/` (an export folder setting is ignored), each output under the encoder's hidden temporary name, then renamed; each output hashed and recorded with `RenderId = RenderJobHandler.RenderId(jobId, index)`. The project's lease is held only while the inputs are read and each ledger entry is written. A cancel deletes the temporary files only; a resume renders what the ledger lacks. (Owner review 2, R8, phase 5c.) | Hold the lease for the whole render; render at the home | The editor keeps saving meanwhile; the originals are here now; a stable id makes every send idempotent. |
| 2026-11-04 | The ledger `exports/renders.json` (`chronos-workspace-renders` 1): one entry per output (file, SHA-256, size, preset, codec, size, rate, length, project, version, settings hash, rendered, state pending, sent or failed, sent, error; an unknown state reads as pending), written whole and atomically under the project's lease, each entry read again before it is written. An image-sequence output (a folder) hashes as the SHA-256 of its sorted `relative-path sha256` lines. Send, clean-up and sizes reach a ledger's file only inside `exports/` (`WorkspaceProject.ContainedExportFile`: no rooted, `..`, `.` or ledger names). (Owner review 2, R8, phase 5c; review safety-4.) | Rows in the local index | The ledger moves and is removed with its project; a damaged or hand-edited ledger must never point a delete elsewhere. |
| 2026-11-04 | A local render records a version only when `versions/` holds it with the content hash of the settings rendered; the editor names the head version only when its hash equals them. `RenderJobHandler.ProvenanceAsync` is not shared: the local check reads `versions/`, not the index. (Owner review 2, R8, phase 5c.) | Always record the head | A render must never claim a version it does not show. |
| 2026-11-04 | *Version on render* on: a render of a project with changes saves a version first (when it can), noted *Render*, sent at once with Sync automatically on; an unreachable home leaves it waiting (*Not sent* toast); a failed save or a sync conflict holds the render (*Not rendered*). Off, or a server home that does not render locally: as in 5b. (Owner review 2, R8, phase 5c.) | Render the working state unnamed | The render then names the version it shows. |
| 2026-11-04 | Routing: a project whose media are Originals renders on this PC, its home a server or not; a server home's source submits, lists, cancels and retries `WorkspaceRender` and `WorkspaceSend` on this PC's engine (a job is local when the local index has its row), and the server header and its Cancel never show them (`SequenceJobs.ShownAtHome`). Their Done toasts are the editor's, as for Render, so each is said once. (Owner review 2, R8, phase 5c; review integration-5.) | Send the originals to the server's render | Rendering here is why the originals were copied. |
| 2026-11-04 | Sending: a render's follow-up `WorkspaceSend`, and the Export tab's *Send again*, name no ids (`[]`: every unsent render of the project), one pending send per project; the render queues it whenever it ever recorded an output not sent (a resumed or retried run, other presets failing, a cancel), labelled with the sequence's title. Unsent entries show among the editor's renders as *Not sent* (the exports file, this PC's name). (Owner review 2, R8, phase 5c; review jobs-3, integration-4, ui-1.) | Send only this run's ids | Renders whose earlier send failed, or that a crash left unsent, were never sent again. |
| 2026-11-04 | A send per entry hashes the file again. Refusals of one render mark it failed with one sentence and the others go on, the job then failing (`Errors.Workspace.SendFailed`, n of m): file missing or outside `exports/`, size or SHA-256 changed, its id filed under another sequence (`render_exists`), project mismatch, a server's 400, 409, 413 or 422, an image sequence for a server (`Errors.Workspace.SendSequence`: a server takes one file per render; it stays failed and keeps the project from being cleaned until discarded). Failures that are not the render's leave it pending and fail the job: the version push failed, home unreachable, archive offline, a staged read-back mismatch, 401, 403, 5xx. A home that holds the id already only marks it sent. (Owner review 2, R8, phase 5c.) | Fail the whole send on the first refusal | One bad file must not hold the others, and a retry must never file twice. |
| 2026-11-04 | Before a send the home is asked for the render's version (`GetVersionAsync`); when missing, the send pushes it (`WorkspaceSync.PushAsync`, client name `Environment.MachineName`; a server home's project home through a new default member `ISyncConnector.ProjectHome(BundleHome)`). A version a replay stored under a new id is found by the content hash rendered and the ledger rewritten; otherwise the render goes with its project alone, logged. (Owner review 2, R8, phase 5c; review jobs-1, compat-1.) | Fail with `Errors.Workspace.SendVersion` | A replayed version never comes back under its old id, so every retry failed. |
| 2026-11-04 | Filing in an archive home: the file is copied into the archive's staging as `workspace-render-<id>.part`, flushed and read back against the ledger's SHA-256, then filed under the sequence's lease as the sync files a server's exports (`SyncTransfers.FileRenderAsync`), after checking the project and version are the sequence's; the staged file is always removed. The row takes `ProducedBy` from the processing options, Created from the render time, no settings JSON. An image sequence is filed whole (a staged folder read back by its listing hash, moved, its bytes summed; unique names avoid folders too). (Owner review 2, R8, phase 5c.) | Copy straight into the sequence's folder | A file is checked before it lands, and filed by the one writer that knows the lease. |
| 2026-11-04 | Render provenance on a server: `RenderUploadRequest` and `RenderDto` gain optional `projectId` and `projectVersionId`; the server checks them when the upload starts and when it completes (422 `project_mismatch`), a version alone naming its project and a deleted project still matching (its versions are kept); without them a render is filed as before. The desktop's `GetExportsAsync` does not copy them into the local archive's rows. An older server that drops them is spotted from the returned render and logged (`Archive.Log.WorkspaceSendNoProvenance`); the entry is still marked sent, with no capability check. (Owner review 2, R8, phase 5c; review compat-2.) | A capability for render provenance | The fields are appended and optional, so both sides of any age keep working; a server's project ids mean nothing in a local archive. |
| 2026-11-04 | *Pause metered transfers* (`Server.PauseMeteredTransfers`, the setting still `PauseUploadsOnMetered`): `UploadHold` pauses `UploadCommit`, the sync's `Download`, and `WorkspaceCopy` and `WorkspaceSend` jobs that name a server, never those of this PC's archive; inside the handlers a server copy or send also waits before each transfer while `HoldTransfers()` is true, logging it once. (Owner review 2, R8, phase 5c; review integration-1; supersedes the 2026-10-26 row on the copy's downloads.) | Hold uploads only | A metered connection costs both ways, and the tooltip says *uploads and downloads*. |
| 2026-11-04 | Workspace clean-up (`WorkspaceCleaner`): a project is cleaned only when in sync with its home, asked now (a status error counts as offline), not open in Edit (`WorkspaceHost.OpenProject`, set by the shell), no `WorkspaceCopy`, `WorkspaceRender` or `WorkspaceSend` of it pending (unreadable parameters count) and no move under way, no unsent or failed render, a readable ledger, and media to remove. It removes `media/proxies`, `media/originals` and the sent renders of `exports/`, never `project.chronos`, `versions/`, `sync.json` or `analysis.json`. Under the lease: the media index first (a `Cleaned` time, no frame naming a file: the project reads *No media* and its next open copies again), then the sent renders, then the originals by their bytes, last the proxies; a file held open stays and is logged. (Owner review 2, R8, phase 5c.) | Delete the project folder | Only what the home holds again is removed, and nothing ever names a file that is gone. |
| 2026-11-04 | Clean-up policies: *Clean after* counts from the last opening (`WorkspaceOpened`), else from the bundle's Saved time; *Size limit* counts the project folders (not the trash) and takes the least recently used first while above; 0 turns either off. The size limit also runs after each `WorkspaceCopy` into this workspace (`JobEngine.JobChanged`, one line in `AppServices`), never taking the project just copied. (Owner review 2, R8, phase 5c.) | A size limit counting the trash | Only the user empties the trash, so counting it would clean projects to no end. |
| 2026-11-04 | The desktop system schedule `workspace-cleanup` runs daily at 04:30 with catch-up: steps `workspace-clean` (Clean after, then Size limit) and `workspace-trash` (reports only), app-side cleanup steps like `CacheTrimStep` that run without an archive; seeded by `DesktopScheduleHost`. (Owner review 2, R8, phase 5c.) | A timer of its own | Recurring work is a visible schedule (R10). |
| 2026-11-04 | The workspace's trash (`WorkspaceTrash`, `<workspace>/.trash`): removed copies as `<project id>-<ticks>`, originals set aside under `…/originals`. An entry is filled under `.incoming-<id>-<ticks>`, which listing and Empty leave out, and renamed when whole; one a crash left lists as an entry. Its fingerprint covers each file's relative path, size and modification ticks (entry folders by name only). Only Settings › Workspace › *Empty…* erases it: entries and size, the 6 newest named and the rest counted, the entry count typed (invariant digits), refused when the fingerprint moved (`Errors.Workspace.TrashChanged`); schedules and the size limit never empty it. (Owner review 2, R8, phase 5c; review safety-5.) | A separate trash dialog; erase entries as they are filled | A plan must list exactly what is erased, and a folder's time is updated lazily on NTFS. |
| 2026-11-04 | Remove local copy (5a) now also weighs local renders and originals: unsent renders keep the plan from being safe; *Send first* queues a `WorkspaceSend` (unless one is pending) and the removal is refused (`Errors.Workspace.UnsentRenders`) until they are home; *Discard changes* drops them. Originals the home no longer holds go to the copy's trash entry. The plan shows both counts. (Owner review 2, R8, phase 5c.) | Remove the renders with the copy | A render made here exists nowhere else until it is sent. |
| 2026-11-04 | Moving the workspace folder: the plan surveys every folder named by a project id (leftovers too), then `workspace.json`, then `.trash` (other files stay), their files and bytes, the target's free space, one volume or two, the unsent projects, and a fingerprint of names, sizes and times (lease files left out and not copied across volumes). Refused: the target is the folder or inside it; holds `workspace.json`, `.trash`, `.move.json` or a same-id folder; lies inside a library; lacks room for a copy; a `WorkspaceCopy`, `WorkspaceRender` or `WorkspaceSend` of any workspace, or another move, is pending. Edit closes the open project first and the plan is read again before it is queued. (Owner review 2, R8, phase 5c.) | Move everything in the folder | Only what the workspace owns moves, and the plan the user saw is the one applied. |
| 2026-11-04 | The move (`WorkspaceMover`, `WorkspaceMoveJobHandler`): the journal `<from>/.move.json` (`chronos-workspace-move` 1, stages Moving and Switched, the entries in order, those verified) is written atomically before the first step and after each entry; a run that finds it skips the fingerprint and goes on. One volume: `Directory.Move` per entry; two: each file into a `.part`, hashed while read and read back, renamed with the source's time once both agree. No source file is deleted before every entry is verified and the desktop switched (`Moved`: the setting written on the host's thread, null for the default folder, left alone with a warning when the workspace in use is no longer the source). A resume trusts a target file at its final name when its size matches; the checkpoint `move:<n>` carries progress only. Same volume: drive roots on Windows (UNC paths count as two), the longest mount point on Unix, two in doubt; a rename refused as `ERROR_NOT_SAME_DEVICE` or `EXDEV` before anything moved becomes a copy after a room check. (Owner review 2, R8, phase 5c; review tests-5.) | Delete each project's source once that project is verified | The source stays the workspace until the switch, so a failure at any step loses nothing. |
| 2026-11-04 | A move's failure and cancel: before the switch, renamed entries go back (if that fails the journal stays and the workspace stays held until Resume) and copies at the target are removed, the journal deleted; a user cancel (running, paused or failed) undoes it the same way. After the switch nothing is undone: a source entry goes only while each file still matches its verified copy (name, size, time), one changed since is kept and logged, one held open keeps the journal, and the job ends Done with `Archive.Log.WorkspaceMoveLeft`; the next run clears the rest. A pause, a yield or closing the program keep the journal. A resumed move does not check for other jobs again. (Owner review 2, R8, phase 5c; review safety-3, tests-3.) | Fail the job after the switch | The target is the workspace by then; refusing to resume would strand a half-done move. |
| 2026-11-04 | Jobs and the move: `WorkspaceJobRoots.Resolve` (Data) makes a copy, render or send work in the folder that holds its project now (the one named, a switched move's target, or the folder in use through `CurrentRoot`), and refuses it (`Errors.Workspace.Moving`) while a move of either folder has not switched; a retry after the move then works. The desktop's gate (`WorkspaceHost.IsMoving`: a move job queued, running or paused, followed through `JobChanged` and adopted at start, or a journal in the folder in use) holds checkout, copies, Proxies only, save, sync, conflicts, restore, the picker's lists, rename, delete, Remove local copy, Change, Empty… and the clean-up. A journal at start, also one left in the old folder of a switched move into the folder in use, raises a notice and Settings shows *Resume*; Change… and Move… stay disabled meanwhile, their tooltips saying why. (Owner review 2, R8, phase 5c; review jobs-6, integration-2, integration-3, integration-6, ui-3; final check.) | Gate only the desktop's commands | Engine retries bypassed the gate and wrote into the old folder; choosing another folder before Resume would lose the old copy for good. |
| 2026-11-04 | Phase 5c strings: every new key in en and it with final text; 19 unused keys removed from en and it and `i18n prune` removed 144 orphans from the other cultures; `Errors.Workspace.DiskFull` kept (the copy's space check). The Italian move plan, trash and job kind wordings were revised. (Owner review 2, R8, phase 5c; review ui-8, ui-9.) | Keep unused keys for later | Unused keys cost every translation. |