fix: stalled jobs, editor cancellation stops and GoPro DNG decoding

Owner review 1, phase 1 (docs/requests/2026-10-15-owner-review-1.md).

Thumbnail and proxy jobs over several sequences counted sequences while
they checkpointed inside one: the rate decayed until the time left
overflowed TimeSpan, the job failed while publishing progress and again
while saving it, and stayed Running. The throughput is now seeded by the
first window with progress, the time left is bounded (JobEta), saving
progress never throws, image passes count frames, and job speeds use the
right unit (bytes for verify and import).

The debugger stops in WicDecoderProvider.cs when presets changed were
cancelled preview decodes leaving synchronous thread-pool delegates; the
editor's sources, LatestRunner and the render node's proxy task now keep
them in their own tasks, and a cancellation is never an unreadable frame.

GoPro DNGs converted by Adobe software were classified GPR and read only
through their 8-bit preview, and Windows' preview-only DNG decoder was
reported as a native decode. A DNG is GPR only when its raw image is
VC-5, WIC decodes RAW only through the Raw Image Extension and never DNG,
analyses and previews take an adequate embedded preview by choice while
renders develop natively, and frames already indexed as GPR are
reclassified by the next light analysis.

Also records the owner's request (docs/requests), the BRIEF amendments
(§8.1, §8.2, new §24), DECISIONS, CHANGELOG, STATUS and ARCHITECTURE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-10-16 10:20:26 +02:00
1 parent 19265b36c2
commit 34d03051f5
77 files changed
+785 -94

No files matched your search

+3 -3
View File
@@ -29,7 +29,7 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S
| Folder / namespace | Content |
|---|---|
| `Imaging` (+ `Decoders`, `Geometry`, `Thumbnails`) | `ImageBuffer` (planar float, linear light), `IImageDecoderProvider`, `DecoderFactory` (decode tiers: native → embedded preview; `ImageDecoder.Probe` names a file's tier without decoding it), `ManagedDecoderProvider`, `FrameWindow` (read-ahead, memory budget, float32 spill), resampler, thumbnail cache |
| `Imaging` (+ `Decoders`, `Geometry`, `Thumbnails`) | `ImageBuffer` (planar float, linear light), `IImageDecoderProvider`, `DecoderFactory` (decode tiers: native → embedded preview; `ImageDecoder.Probe` names a file's tier without decoding it; `DecodeRequest.PreferPreview` takes an adequate RAW preview by choice for analyses and previews, `DecodedImage.ByChoice`), `ManagedDecoderProvider`, `FrameWindow` (read-ahead, memory budget, float32 spill), resampler, thumbnail cache |
| `Metadata` (+ `Tiff`, `Jpeg`, `Bmff`, `Raf`, `Riff`, `Png`, `Xmp`, `MakerNotes`) | Signature sniffing, Exif/GPS/XMP/MakerNotes, ISO-BMFF (HEIF, CR3), `MetadataReader`, `MetadataBuilder` (all fallback chains), `ExifWriter` |
| `Codecs` (`Jpeg`, `Png`, `Tiff`, `Dng`, `Raw`, `Gif`, `Apng`, `Ico`) | Pure managed codecs; native RAW development (DNG, CR2, NEF, ARW, PEF, RAF) |
| `Analysis` (+ `Deep`) | Luminance statistics, deflicker, regions, holy grail, white balance, colour temperature, light analysis, streaming deep analysis with checkpoints |
@@ -55,7 +55,7 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S
| `Sqlite`, `Postgres` | SQLite P/Invoke binding (winsqlite3 / libsqlite3), in-house PostgreSQL wire protocol v3 client with pool and LISTEN |
| `Migrations/{sqlite,postgres}/NNNN_name.sql` | Embedded, applied in one transaction at open (`MigrationRunner`) |
| `Repositories` | `TitanoDatabase` facade: archives, sequences, frames, tags, renders, jobs, cards, users, tokens, uploads, render nodes, settings, audit; `DatabaseBackups` (daily `VACUUM INTO` copies of an SQLite index kept ×3, restore staged for the next start and carried out before the index opens, so it also recovers one that no longer opens) |
| `Jobs` | `JobEngine` (its number of workers can change while it runs), `IJobHandler`, `IJobHandlerProvider`, `JobContext` (progress, checkpoints, follow-up jobs) |
| `Jobs` | `JobEngine` (its number of workers can change while it runs), `IJobHandler`, `IJobHandlerProvider`, `JobContext` (progress, checkpoints, follow-up jobs), `JobThroughput`/`JobEta` (rate and bounded time left) |
| `Archiving` | `ArchiveService` (create/adopt/open, archive settings written to `archive.json` then the index), `ArchiveIndexer` (scan, rebuild), `ArchiveIngest` (uploads and imports), `ImportService`, `ArchiveVerifier`, `ArchiveImages`, `FrameTiers` (decode tier, `PreviewOnly`/`Undecodable` flags and preview size of frames, written to sidecar and index by the light analysis, deep analysis, renders and image passes), `GprCompanions` (the JPEG of each GoPro GPR, found in the index when an import kept it in another sequence), `ArchiveMaintenance`, `MassRenamer`, `SequenceTrash` (delete into the archive's hidden trash with a dry run, restore; the folder moves back when the index step fails), job handlers |
| `Processing` | `ProcessingService`, `SequenceAnalyser`, `DeepReports` (a saved deep report while it still describes the frames), `SequenceRender`, `ProjectStore`, `ProjectBundles` (a `.titano` file for a sequence, and the sequence a file names), `RenderNodeClient`, job handlers |
| `Sync` | `SyncService` (sync table of one server: compare, link by content, settle conflicts, enqueue transfers), `SyncRules` (status, settings merge and differences, no I/O), `SyncPositions` (the settings' frame positions translated by photo to the frames of the copy they go to), `SyncLinkStore` (`sync_links`, `sync_state`), `SyncTransfers` and `SyncJobHandler` (resumable, hash-verified uploads and downloads as jobs; downloads commit through the archive ingest), `SyncAgent` (background comparison, server events, backoff, offline proxies), `ProxyCache` and `RemoteSequence` (server sequences opened with proxies), `ISyncRemote` (the server calls; `TitanoSyncRemote` over `TitanoClient`) |
@@ -152,7 +152,7 @@ run as server jobs whose progress comes from the events.
| To add | Implement / register |
|---|---|
| An image format or decoder | `IImageDecoderProvider` (managed in `Core/Imaging/Decoders` or `Codecs`, WIC in `Core.Windows`); chained by `DecoderFactory` |
| An image format or decoder | `IImageDecoderProvider` (managed in `Core/Imaging/Decoders` or `Codecs`, WIC in `Core.Windows`: a RAW only through the Raw Image Extension, checked per file); chained by `DecoderFactory` |
| A video encoder | `IVideoEncoderProvider` (`Core/Video/Managed`, `Core.Windows/MediaFoundation`); list it in the host's `ProcessingOptions.Encoders` |
| A background operation | a `JobKind`, an `IJobHandler` (in `Data/Archiving/Jobs` or `Data/Processing/Jobs`) returned by the service's `CreateJobHandlers`; the job engine, Jobs screen, admin and API pick it up |
| A server feature | a static `XxxEndpoints.Map(api)` in `Server/Api` with `.Requires(Permissions…)`, called from `ServerHost.ConfigurePipeline`; DTOs in `Titano.Protocol` with the JSON context |
+18 -2
View File
@@ -437,13 +437,13 @@ preview of the first three names.
| JPEG | jpg jpeg jpe jfif | APP1 Exif/XMP, MPF | WIC or managed | managed (baseline + progressive) |
| PNG | png | eXIf, iTXt XMP | WIC or managed | managed |
| TIFF | tif tiff | IFDs | WIC or managed | managed (strips/tiles; none/PackBits/LZW/Deflate/JPEG) |
| DNG (smartphones: Apple ProRAW, Android, Samsung; DJI; Insta360; Leica; Pentax; Ricoh) | dng | IFDs, MakerNote | WIC (if Raw ext.) or managed full decode | managed full decode |
| DNG (smartphones: Apple ProRAW, Android, Samsung; DJI; Insta360; Leica; Pentax; Ricoh; GoPro files converted by Adobe software) | dng | IFDs, MakerNote | managed full decode (amended 2026-10-16, R4) | managed full decode |
| Canon | cr2 cr3 | cr2: TIFF; cr3: ISO-BMFF `CMT1..4` | WIC (Raw ext.) → managed CR2 (P1) → embedded preview | managed CR2 (P1) → embedded full-size JPEG (CR3 track 1) |
| Nikon | nef nrw | TIFF | WIC → managed NEF (P1) → preview | managed NEF (P1) → preview |
| Sony | arw srf sr2 | TIFF | WIC → managed ARW (P1) → preview | idem |
| Fujifilm | raf | RAF header + TIFF | WIC → managed RAF uncompressed (P1) → preview | idem |
| Olympus/OM, Panasonic, Pentax, Samsung, Hasselblad, Phase One, Leica | orf rw2 raw pef srw 3fr fff iiq rwl | TIFF-like | WIC → managed (P1/P2) → preview | preview (P1: managed decoders as feasible) |
| GoPro | gpr (DNG+VC-5) + jpg sidecar | IFDs | preview/sidecar JPEG; VC-5 out of scope | sidecar JPEG |
| GoPro | gpr (DNG+VC-5; a DNG is GPR only when its raw image is VC-5, amended 2026-10-16, R4) + jpg sidecar | IFDs | preview/sidecar JPEG; VC-5 out of scope | sidecar JPEG |
| HEIF/HEIC/AVIF (iPhone, Samsung, DJI) | heic heif hif avif | ISO-BMFF `Exif` item | WIC (HEIF + HEVC/AV1 extensions) | metadata only; pixels via client-made proxies |
| WebP | webp | RIFF `EXIF` chunk | WIC (WebP ext.) | metadata only (P2: managed VP8L) |
| JPEG XL, JPEG XR, BMP, GIF (single frame) | jxl jxr bmp gif | minimal | WIC if a codec exists | not supported |
@@ -465,6 +465,12 @@ which tier will be used on this machine.
3. **Unavailable** → frame flagged `Undecodable`; excluded from render; listed in the
sequence warnings.
The tier is what the frame can give. Analyses, thumbnails, proxies and the editor's preview
take an embedded preview that is large enough when a RAW has one, by choice and without
changing the frame's tier; renders always decode natively. WIC counts as a native RAW
decoder only when the decoder it chose for the file is the Raw Image Extension (Windows'
in-box DNG decoder reads only the preview). (Amended 2026-10-16, R4.)
The in-house DNG pipeline (server and client): CFA/linear DNG, `Compression` 1/7 (lossless
JPEG SOF3)/8 (Deflate)/34892 (lossy JPEG), `LinearizationTable`, `BlackLevel` (+ repeat
dims, delta), `WhiteLevel`, `AsShotNeutral`/`AsShotWhiteXY`, `ColorMatrix1/2` +
@@ -1300,6 +1306,16 @@ Unraid template validated.
---
## 24. Amendments
The product owner's change requests amend this brief in place; each amended paragraph says
"(amended <date>, R<n>)". The request files in `docs/requests/` keep the owner's words, the
questions asked and the answers; DECISIONS rows give the reasons.
| Date | Request | Sections | What changed |
|---|---|---|---|
| 2026-10-16 | Owner review 1, R4 | §8.1, §8.2 | DNG decodes through the managed decoder (WIC only through the Raw Image Extension, never DNG); a GoPro DNG is GPR only when VC-5; analyses and previews take an adequate embedded preview by choice, renders decode natively. |
## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated)
```markdown
+11
View File
@@ -168,6 +168,17 @@ commits follow Conventional Commits (release notes are generated from them by `T
returns frames, frames version and settings of one frames version.
### Fixed
- Owner review 1 (2026-10-16, `docs/requests/2026-10-15-owner-review-1.md`):
- thumbnail and proxy jobs over several sequences failed after 10–20 minutes with "TimeSpan overflowed" and then
stayed Running; their progress now counts frames, a stalled job shows no time left, and a job's end is always
recorded (R10);
- the Jobs screen showed the speed of hash verification and card import, which count bytes, in fps;
- choosing presets quickly in the editor made the VS Code debugger stop in `WicDecoderProvider.cs`: a cancelled
preview decode left its background task (R4);
- GoPro DNGs converted by Lightroom or DNG Converter were treated as GPR and read only through their 8-bit embedded
preview, and DNGs Windows' preview-only DNG decoder read were reported as decoded natively. Videos now develop them
natively at 16 bits, analyses and the editor preview use the embedded preview when it is large enough, and the
archive's existing frames are reclassified by the next light analysis (R4).
- Opening the repository in VS Code with C# Dev Kit before the first build listed MSB3073 for Titano, the Uploader
and Setup: design-time builds no longer generate the program icons, and log WPF's MC1000 about projects not built
yet as a message.
+5
View File
@@ -397,3 +397,8 @@ One line per decision: date · decision · alternative · reason.
| 2026-10-13 | A deep pass counts as current only when its report describes the frames as this host reads them under the lock, proxies included (`SequenceAnalyser.Describes`), besides an unchanged frames version. Otherwise it replaces only a saved report that does not describe them either (`ReadReport` of the frames as they are). Refines 2026-10-12 'A deep analysis saves `analysis.json` under the sequence lock…'. | Compare frames versions only | A proxy arriving moves no frames version but makes an unreadable verdict on that frame's original stale. A pass that started before it overwrote the report a later pass made from the proxies, then dropped the deep status. |
| 2026-10-15 | VS Code debugs the Windows programs with the C# extension's `coreclr` debugger (`.vscode/launch.json`): Titano, the Uploader, the server, the `--capture` runs of Titano, the Uploader and Setup, `Titano.Tools` and the test programs (these two ask for their arguments). Each launch configuration builds in Debug first (`.vscode/tasks.json`; *Tests* builds the solution) and starts the program's `.exe`. The server's session keeps its data and archive in `out/debug/server` (`TITANO_DATA_PATH`, `TITANO_ARCHIVE_PATH`) and its default ports; Titano and the Uploader use their usual data folder. The build tasks use no reused MSBuild nodes and keep MSB3026 a warning. | C# Dev Kit's `dotnet` launch type with `launchSettings.json`; start `dotnet <program>.dll`; the server's default folders; ports of its own for the server; a portable copy (`portable.txt`) for the desktop programs; reused MSBuild nodes; MSB3026 as an error | The `coreclr` debugger needs only the C# extension. Started as a `.dll`, the process is `dotnet.exe`, which the programs read as their own path (`Environment.ProcessPath`): Setup's payload and the stub of its capture's sample installer, the Run keys and tray icons. A console run creates `%ProgramData%\Titano Server` owned by the developer, which the service then refuses (the console-run data folder rows), and `C:\TitanoArchive` at the drive root. On the default ports the clients reach the debug server as they reach an installed one; the README says to stop the Docker stack or an installed server first. A portable copy would run other code than an installed one (data beside the program, the portable update download). MSB3026 reports a copy that a retry then completes (a file held for a moment by an antivirus or another build): as an error it stopped F5 although the build succeeded, while a copy that never succeeds still fails (MSB3027). Reused MSBuild nodes keep the drive letter's case of the build that started them, while VS Code passes it in lower case: restores mixed both cases, rewrote `project.assets.json` at every build and made C# Dev Kit reload the projects, so no F5 build was a no-op (7 to 14 s for Titano instead of about 5 s). |
| 2026-10-15 | Design-time builds (`DesignTimeBuild=true`: C# Dev Kit, Visual Studio) skip the `TitanoGenerateIcons` target (`Directory.Build.targets`) and log WPF's MC1000 as a message (`Directory.Build.props`). Refines 2026-10-02 'Program icons (ICO) are generated at build time…'. | Build `Titano.Tools` from the design-time build; no warnings as errors in design-time builds; leave it | A design-time build builds no project references, so on a fresh clone `make-icon` ran a `Titano.Tools.dll` that did not exist yet: VS Code listed MSB3073 for Titano, the Uploader and Setup when the folder opened. A design-time build compiles nothing, so it needs no icon. Past that target, the markup compile of their XAML cannot load `Titano.Ui.dll` before the first build: MC1000, which the design-time build makes a warning and warnings as errors made an error again (21 of them). Without warnings as errors they would still be listed, as warnings. Real builds still fail on MC1000. |
| 2026-10-16 | Job throughput: the first two-second window that saw progress seeds the moving average, and below 1e-6 items/s the rate reads unknown; a time left is null when it is not finite, negative or above 365 days, and every stored or reported time left goes through `JobEta`. Saving progress never throws (a failure is logged and the job goes on) and a progress subscriber never fails a job, so a job's final state is always written. Thumbnail and proxy jobs count frames across their targets. Refines 2026-10-02 'Job throughput is a moving average…'. (Owner review 1, R10.) | Clamp the time left only when it is stored; keep counting sequences | The owner's Proxies job over 17 sequences counted sequences while it checkpointed every 10 s inside one of 14,082 frames: each window without progress multiplied the rate by 0.7, the time left passed `TimeSpan`'s limit after 18 minutes and threw in `PublishProgress`, then again in `PersistAsync`, so the job stayed Running for 4 hours until the owner cancelled it. A node-supplied rate and the stored seconds had the same unbounded conversion. |
| 2026-10-16 | The editor's background decodes (`LocalSequenceSource`, `RemoteSequenceSource`), `LatestRunner` and the render node's proxy task keep a superseded decode's `OperationCanceledException` inside their own delegate: the local source catches it in the pool delegate and throws it again after the await, so a cancellation is never reported as an unreadable frame. (Owner review 1, R4.) | `justMyCode: false` in launch.json; providers that return null on cancellation | The owner's "error in WicDecoderProvider.cs when I select some presets" was the cancellation of a preview decode a newer click replaced: it left a synchronous `Task.Run` delegate into the thread pool, where the debugger with Just My Code stops as "not handled by user code"; at runtime it was swallowed and nothing was logged. Throwing on cancellation stays the provider contract. |
| 2026-10-16 | WIC decodes a camera RAW only when the decoder it chose is the Raw Image Extension (CLSID read per file), never a DNG, and never for a request that prefers the embedded preview. Refines 2026-10-02 'Camera RAW is "native" via WIC only when the Raw Image Extension package is installed.' (Owner review 1, R4.) | Trust `CodecInventory` per format; force the Raw Image Extension by CLSID for DNG | With the extension installed, WIC still picks Windows' in-box "DNG Decoder" for every DNG with a JPEG preview; it reads only that 8-bit preview, which the provider labelled native (a smaller preview was a silent downscale). The Raw Image Extension develops DNG to 8 bits and fails on Lightroom's lossy LinearRaw DNGs; the managed decoder develops all of the owner's files at 16 bits. |
| 2026-10-16 | A DNG is GPR only when its raw image is VC-5 (Compression 9) or its extension is .gpr; Make=GoPro alone no longer counts. Frames stored as GPR whose file is not a .gpr are probed again by the next light analysis, which the scan follow-up queues for their sequences, and the format the probe finds replaces the stored one in the sidecar and in `frames.format`. (Owner review 1, R4.) | A migration that rewrites every sidecar; leave existing frames as indexed | The owner's 84,400 GoPro DNGs were converted by Lightroom or DNG Converter (lossy LinearRaw, lossless CFA), which the managed DNG decoder develops, but every one was indexed GPR and preview-only. A light analysis reads only metadata and already probes tiers under the sequence lease. |
| 2026-10-16 | Decode policy, the owner's choice: analyses, thumbnails, proxies and the editor's preview set `DecodeRequest.PreferPreview`, so a RAW gives an embedded preview whose long edge reaches the requested size when it has one and is developed otherwise; renders never set it and develop natively at 16 bits. Such a result is `DecodedImage.ByChoice` and is never recorded as the frame's tier. (Owner review 1, R4.) | Native development everywhere; the preview everywhere | Developing one of the owner's 12 MP DNGs takes 0.8–2.6 s against about 0.1 s for its preview: an analysis of the 84,400 frames would take about 18 hours instead of about 2. Exposure measured on a preview is tone-mapped by the converter, so deflicker corrections computed on it only approximate those of the native pixels the render corrects; the owner chose speed for analysis and quality for videos. |
+1
View File
@@ -13,6 +13,7 @@ Phase plan: docs/BRIEF.md §22. Windows behaviour is verified on CI (`windows-la
| 6 Engine, encoding, editor | Done: render pipeline, MP4/AVI/GIF/APNG/image sequences, Media Foundation H.264/HEVC/AV1 with managed fallbacks; the sequence editor (Frames, Exposure, Camera, Motion and Export tabs, preview tools, section charts, curve editor, undo/redo, batch export) for local and server sequences. Gate: self-test suite green; the in-house inspector validates the containers the tests write; the encoder in use is logged. Playback: MediaPlayer opens the Media Foundation output and a source reader decodes its first frame (Windows tests). The pixel diff of every `--capture` screen against `tests/visual/baselines` (`screenshots diff`, BRIEF §20.2) is wired into CI but not armed: no baseline is committed yet, so the step compares nothing and only warns until the first baselines are accepted from `ci-screenshots` (Next steps). |
| 7 Server, sync, uploader | Done: server (API, auth, uploads, jobs, render nodes, events, admin panel with light and dark themes, Windows service), Uploader, client sync (sync table, conflicts with *Save both*, proxies kept offline, metered pause), server sequences edited with proxies and rendered where the originals are, this PC as a render node. Gate covered in-process: a sequence uploaded from one PC downloads identically on another, interrupted uploads and downloads resume, server events update a PC, renders run on a node and on the server's managed fallback, jobs resume after a restart, sign-ins and administrative actions are audited. The run with two real PCs and the Uploader against the Docker server is part of the release test. |
| 8 Release readiness | Release pipeline end to end (installers, portable and server zips, SHA256SUMS, release notes, optional signing, multi-arch GHCR image, public releases repository content), update check with verified download, scrubbed diagnostics bundles (desktop and server), performance gates, 38 cultures (`en`, `it` and 36 machine translations with glossaries and independent reviews), RTL pass (`ar`, `he`: mirrored windows, left-to-right islands for media, charts, numbers and paths; any right-to-left culture added later follows), accessibility pass (names, live regions, keyboard paths for charts and the curve editor). CI installs the packed installers silently on a clean `windows-latest` runner, runs the installed programs, upgrades in place and uninstalls (files, Add/Remove Programs, shortcuts, file type, user data kept, exit codes). Pending: a tagged pre-release published from CI, the interactive install on a real PC, Unraid template validation on a real server. |
| 8.1 Owner review 1 | In progress (request, answers and plan: `docs/requests/2026-10-15-owner-review-1.md`). Phase 1 done: stalled thumbnail and proxy jobs no longer fail and stay Running (frame-counted progress, bounded time left, final state always written); the editor's cancelled decodes stay in their tasks (no debugger stops in `WicDecoderProvider.cs`); WIC decodes RAW only through the Raw Image Extension and never DNG; GoPro DNGs converted by Adobe software are DNGs, developed natively for videos, read through their embedded preview for analyses and previews, and reclassified in existing archives by the next light analysis. Next: phase 2, jobs one at a time with photo parallelism and a priority queue. |
| 9 Monetization | Not started: requires explicit approval (§22). |
## Verification (2026-10-12)
@@ -0,0 +1,67 @@
# Owner review 1 (2026-10-15)
## Owner's text (verbatim, Italian)
> Ok, ottimo! Lo hai creato in modo fantastico. Ci sono un po' di cose da controllare:
> - la barra laterale allargala e dai la possibilità di comprimerla lasciando solo le icone
> - cambia modo di eseguire le attività, ovvero DEVONO essere eseguita una volta e il parallelismo decide quante foto
> elaborare nello stesso momento
> - Rivedi il menu di esportazione, così occupa troppo e si capiscono bene i dettagli delle esportazioni
> - C'è un errore quando seleziono alcuni preseti in @src/Titano.Core.Windows/Wic/WicDecoderProvider.cs
> - Dai la possibilità di aggiustare la maschera di ritaglio spostandola sull'immagine in modo da fare un ritaglio
> visuale in base alle proporzioni scelte
> - Aggiungi filtri semplici come specchio, capovolgimento, rotazione, ecc ecc
> - Cambia "Sequenza" in "Modifica", posso selezionare solo una sequenza alla volta da modificare e deve essere
> strutturata come un "percorso" da seguire dall'analisi approfondita della sequenza al suo completamento
>
> Fai domande se qualcosa non è chiaro e aggiorna tutta la documentazione in modo che utenti e IA future siano in
> grado di ricostruire il percorso delle modifiche.
> Esegui test approfonditi. All'avvio ci sono già dei time lapse importati. Aggiungi opzioni di esportazione e una
> libreria separata per i video finali.
>
> Modifiche da fare sia lato docker sia lato desktop.
## Interpretation
| Id | Request | Working interpretation |
|---|---|---|
| R1 | Sidebar | Desktop rail wider and collapsible to icons; the server admin panel's sidebar too. |
| R2 | Jobs | One job runs at a time; Parallelism = photos the running job processes at once. Desktop and server. |
| R3 | Export menu | The Export tab and the header's Render menu take too much space and do not make the export details clear (the "non" is missing in the text): compact and clearer. |
| R4 | WicDecoderProvider error | Reproduced: an `OperationCanceledException` from a superseded preview decode leaves a synchronous thread-pool delegate, so the debugger stops in `WicDecoderProvider.cs` (Just My Code). Found while reproducing: WIC decodes the owner's DNGs with Windows' preview-only DNG decoder and labels the 8-bit preview native, and every GoPro DNG is classified GPR, so the archive records them preview-only. |
| R5 | Visual crop | Move and resize the crop mask on the preview, locked to the chosen proportions. |
| R6 | Simple filters | Mirror, flip, 90° rotations, free straighten, colour filters. |
| R7 | Edit path | "Sequence" becomes "Edit" ("Modifica"); one sequence at a time; a guided path from the deep analysis to the finished video. |
| R8 | Export options | Advanced encoding, fades and hold, reverse and boomerang, single frame. |
| R9 | Videos library | One library of the finished videos, desktop and server. |
| R10 | Found in the owner's log | A multi-sequence Proxies job failed with `OverflowException` in `JobContext.Rate()` and stayed Running for 4 hours. |
## Questions and answers
| Question | Answer |
|---|---|
| How must jobs run? | One at a time; Parallelism = photos at once inside it. |
| How guided is the Edit path? | Guided steps, freely navigable (Previous/Next, every step clickable). |
| Which simple filters? | Mirror and flip, 90° rotations, straighten (free angle), colour filters. |
| Where does the videos library live? | Desktop + server, one library. |
| Crop proportions vs the export preset's? | The chosen proportions win; the preset adapts its resolution (4K at 9:16 = 2160×3840). |
| Which export options? | Advanced encoding (rate control, keyframes, B-frames, profile, standard resolutions); fades and hold last frame; reverse, boomerang and loop; single frame. |
| Where are the videos' files? | One list; files stay in each sequence's `exports/` and can be copied (hash-verified) to a separate videos folder (Docker: a `/videos` volume). Delete = trash, never erased. |
| How to decode the GoPro DNGs? | Full quality (Titano's native 16-bit decoding) for videos; the embedded preview for analysis and the editor preview. |
| A long background job runs and the user starts another job? | By default the new job is queued; pausing the running job lets the next one start. Settings get a priority queue by job kind: when on, a job of a higher kind pauses the running one without asking, and the paused job resumes by itself afterwards. |
| Rail width? | 200 px (web panel 256 px), collapse with ≡ or Ctrl+B, collapsed icons name their section in the tooltip. |
| How is the sequence chosen in Edit? | A picker inside Edit (searchable single choice) plus "Change sequence" in the header; the other ways to open stay. |
| Commits? | One commit per verified phase. |
## Delivery plan
| Phase | Content | State | Commit |
|---|---|---|---|
| 1 | Bugs: R10 job throughput/ETA and stuck jobs; R4 cancellation boundary, WIC decoder truth, GoPro DNG classification, decode policy (preview for analysis, native for renders) | done 2026-10-16: BRIEF §8.1, §8.2, §24; five DECISIONS rows dated 2026-10-16; all test suites, i18n check, format, package guard and xaml-lint green | phase 1 commit |
| 2 | R2 jobs one at a time, Parallelism = photos at once, priority queue with automatic pause/resume (desktop + server) | todo | |
| 3 | R1 rail and admin sidebar; R7 Edit section, picker, guided path | todo | |
| 4 | R5 visual crop, proportions win; R6 transforms, straighten, colour filters | todo | |
| 5 | R3 export panel and Render menu; R8 export options; R9 videos library (desktop, server API, admin page, copy folder, trash) | todo | |
| 6 | Docker/Unraid/deploy docs, BRIEF §24 amendments, full verification | todo | |
Each phase updates BRIEF (amended paragraphs), DECISIONS, CHANGELOG, STATUS and this file before its commit.
+12
View File
@@ -0,0 +1,12 @@
# Owner change requests
One file per request from the product owner, named `<date>-<slug>.md`. Each file keeps:
1. the owner's text, verbatim;
2. the working interpretation, numbered (R1, R2, …);
3. the questions asked and the owner's answers;
4. the delivery plan, phase by phase, with each phase's state, commit, BRIEF/DESIGN sections amended and DECISIONS rows.
A request amends the BRIEF: the amended paragraphs say so, and BRIEF §24 lists every amendment with the request that
made it. DECISIONS rows written for a request cite it (`R4`, `owner review 1`). Read the request file first to rebuild
why a part of Titano is the way it is.