fix: address the phase 5 review

Video trash moves across volumes commit once the verified copy has its
name and leave an undeletable source whole behind a .leftover marker that
the next start settles; deletes rehash under the lease. Restores honour
the names renders are writing, and encoders never overwrite an output.
Routing floors at the stored settings' format, kindless stills read as
stills, star trails restart per loop, and settings the encoder ignored
become render warnings. The Videos section fits beside the player, plays
downloaded server copies, names blocked videos and says why actions are
off; the admin panel offers no download for sequences or missing files
and names a filtered sequence from its record.

Refs #21

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-05 04:11:02 +01:00
1 parent 6d87a1bc6d
commit 1be273d0e4
38 files changed
+958 -160

No files matched your search

+8
View File
@@ -65,6 +65,14 @@ commits follow Conventional Commits (release notes are generated from them by `C
change, saying *This server's Chronos cannot read these settings; update it*.
### Fixed
- Export and Videos, found by the phase's review before any release had them: a video deleted to the trash or restored
across drives while another program holds it open is no longer lost or half-removed (the original stays whole and is
removed at the next start); a restore never lands on a name a render is writing, and a render never overwrites a
file; a video changed since it was recorded can still be restored; a playback-free export never goes to a node that
cannot read its settings; a saved frame stays a still on an older server; star trails grow again in each loop;
encoder settings Windows ignored are listed as warnings; the Videos list fits beside the player, a downloaded server
video plays from its copy, disabled actions say why, and the server panel offers no download for image sequences or
missing files.
- Visual crop, transforms and looks, found by the phase's review before any release had them (one adversarial round, 30
findings, all confirmed and fixed, and a final check that fixed one more): a render whose aspect changed after it
was posted is sized from its preset again, and a job no longer waits for a node that will never take it; settings
+5
View File
@@ -759,3 +759,8 @@ One line per decision: date · decision · alternative · reason.
| 2026-11-05 | Owner review 1 phase 5, open questions without an answer take the plan's defaults: Q1 own section, Ctrl+4; Q2 MediaElement pane with fallback; Q3 "Render" only; Q4 preview stays forward; Q5 reverse trails in program order, boomerang disabled; Q6 loops 1–10, fades 0–30 s (slider 0–10), hold 0–60 s (slider 0–10) (`PlaybackSettings.MaxLoops/MaxFadeSeconds/MaxHoldSeconds`); Q7 PNG, JPEG, TIFF 16-bit; Q8 `<template> - 0123.<ext>`; Q9 unsent workspace renders listed read-only; Q10 no Remove copy; Q11 flat folder; Q12 `%USERPROFILE%\Videos\Chronos`, server unset; Q13 lazy hashing; Q14 copy needs Edit, delete Delete, restore ManageArchive. | Wait for the owner | The brief asks to choose the simplest safe option and continue. |
| 2026-11-05 | Phase 5 groundwork (P0) contracts beyond the plan's list: `PlaybackDirection` string constants; `ProjectSettings.PlaybackVersion`; `RenderKind` (`Of(kind, codec)`); `RenderRules.StillFormat`, `StillCodecs` and a still-aware `RequiredFormat` overload; `ProcessingJobs.Still` (working); `RenderJobParameters.IsStill`; trailing optional `Kind` on `RenderResultRequest` and `RenderUploadRequest`; `ServerSettingsDto.VideosPath` (in Protocol, where the DTO lives); `VideoQueryDto`, `VideoCopyResultDto`, `VideoStates`, `VideoSorts`, `VideoBlockReasons`; `VideoErrors`, `VideoLibraryException`, `VideoTrashNames` in Data; `TrashKind.Videos`; `ArchiveService.Videos` (the `NotImplementedVideoLibrary` stub until P2) registered as `IVideoLibrary` on the server. The capability `videos` is declared but not announced until P3 serves the API. The section's strings use `Shell.Nav.Videos` / `Tooltips.Nav.Videos` (the rail builds `Shell.Nav.<key>`), not the plan's `Shell.Section.Videos`; `Editor.Render` stays until P5 moves the header to the existing `Editor.RenderButton`; `Tooltips.Nav.Archive/Jobs/Server` keep Ctrl+4…6 until P7 shifts the shortcuts. Italian follows the repository's terms ("Renderizza", "serie", "Attività", "Modifica"). Until P1 and P2 land, format 3 is written but `OutputProgram` is forward-only and still jobs are not handled by the render job handler. | Exactly the plan's names | Every later parcel compiles against P0 without touching shared files; the names follow the code that reads them. |
| 2026-11-05 | Phase 5 integration (P8): a workspace project's *Save frame* follows its renders: with the originals on this PC a still is a `WorkspaceRender` job (into `exports/`, recorded in the ledger, sent home later, no server-format gate); with proxies only it is the home's still job (archive `Render` or server) carrying the portable settings and the project id. A render Sync fetches is hashed on arrival and compared with the server's `sha256`; a mismatch is fetched once more, then the job fails. Unused export history, batch and card strings are deleted from English and pruned from every culture; `Tooltips.Export.LoopsNA` and `Videos.Log.Trashed/Restored` stay for their pending callers. | Leave Save frame disabled in workspace projects | Both job kinds already render stills; the routing is the one renders use, so a frame never needs the originals it does not have. |
| 2026-11-05 | Phase 5 review (1): a video delete or restore that copies (across volumes) is committed once the verified copy has its name; a source that cannot be removed then (a file held open) stays whole, since a folder is renamed aside before it is erased, and a `.leftover` marker beside the trash entry lets `RecoverAsync` (and the entry's next restore) remove it after re-hashing, never over a render recorded there since. A delete always re-hashes the file under its lease and brings the row's `sha256` up to date (a warning when it changed). | Undo the whole delete when the source cannot be removed | An undo by a second copy can fail the same way; a verified copy in the trash plus a whole original loses nothing. |
| 2026-11-05 | Phase 5 review (2): a restore picks its free name treating the names this process's renders are writing (`OutputNames`) as taken, and keeps its own reserved until the move is done; encoders commit with `AtomicFile.CommitNew` (no overwrite), so a render whose name was taken by another process fails instead of replacing that file. | Overwrite as before | A restored or copied video must never be replaced by a render that picked the same name. |
| 2026-11-05 | Phase 5 review (3): render routing floors the required settings format at the format of the stored settings text (`max(Version, WrittenFormat)`), so a format-2 node never gets format-3 text even when the playback is the default; a still whose kind an older server dropped is recognised on read (image codec, fps 0, duration 0) in `RenderKind.Of` and the library's SQL filter, instead of refusing the upload. | Gate still uploads by server format | Reading it back costs nothing and keeps older servers working. |
| 2026-11-05 | Phase 5 review (4): settings the encoder refused through ICodecAPI become render warnings (`Export.Encoder.Ignored.<Setting>`) only for values the export names itself: rate control other than VBR, the quality or a given bit rate, a given keyframe interval, B-frames other than the default 2 outside Baseline. Star trails restart their stack at each loop (`ProgramEntry.Pass`). | Fail the render | The encoder's own value still makes a valid video; the warning says which choice did not apply. |
| 2026-11-05 | Phase 5 review (5): the Videos list hides Preset, Format and Date while the player pane is open; a server video downloaded to this PC plays from its copy (`IVideoLibrary.CopiesAsync`); disabled actions say why in the bar and the context menu; the admin panel disables Download for an image sequence (a folder) and a missing file, and names a filtered sequence from its own record when none of its videos is on the page. | Keep the columns and scroll | The player pane is the reason the list is narrow; the hidden facts stay in the row's tooltip and the player. |