feat: jobs run one at a time, parallelism per photo and a priority queue

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

Jobs now run one at a time on the desktop and on the server. Parallelism
(Settings > Rendering, TITANO_PARALLELISM) is how many photos the running
job processes at once: thumbnail and proxy passes draw that many photos
together and still write the pack and checkpoints in frame order, decode
tiers are probed that many at a time, the deep analysis measures that many
frames and a render decodes that many ahead. Wherever originals are
developed whole (TIFF, PNG, RAW without a usable preview), fewer run at
once within the memory budget, which the running job now has whole; the
server's frame window is sized to the host instead of 1 GiB.

A new job waits its turn and pausing the running job starts the next one.
An optional priority queue gives each job kind a level (renders, imports
and downloads high, verifies and proxies low by default): a queued job of
a higher level pauses the running one without asking, and that job goes
back to the queue with its checkpoint and resumes by itself afterwards.
Jobs of the same level, and a job's own follow-ups, never interrupt it.
The Jobs screen and the admin panel show the parallelism and the queue;
Settings > Rendering and the admin panel's Settings set them, at once.

TITANO_WORKERS and the Workers key of server.json still set the
parallelism (1 to 64, with a warning at start for the variable).
Titano.Tools gains i18n prune, which removed the renamed keys from the 36
machine-translated languages; the new strings are translated in all 38.

Found while testing: uploads and imports failed when a pass read the
sidecar while they wrote it (atomic writes now retry the rename while a
reader holds the file, and never for a read-only one), and taking a lease
just released while another process read it failed on Windows (the create
now waits for the reader). Five adversarial review rounds checked the
phase before this commit.

Also updates BRIEF (12.8, 14.6, 14.8, 14.9, 24), DECISIONS, CHANGELOG,
ARCHITECTURE, STATUS, the request file and the compose/Unraid templates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-10-16 14:56:24 +02:00
1 parent 34d03051f5
commit 43b6871cdc
228 files changed
+3535 -793

No files matched your search

+3 -3
View File
@@ -55,8 +55,8 @@ 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), `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 |
| `Jobs` | `JobEngine` (one job at a time; reviews the priority queue and makes a lower running job yield, requeued with its checkpoint), `JobPriorityQueue` (a level per job kind, the claim order, settings round trip), `IJobHandler`, `IJobHandlerProvider`, `JobContext` (progress, checkpoints, follow-up jobs that never interrupt their parent), `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` (thumbnail and proxy passes, several photos at once through `OrderedWork`, which hands results back in frame order), `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`) |
@@ -71,7 +71,7 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S
| `Import` | `CardPool` (inserted cards, remembered cards, folders), camera profiles, plans and choices, destinations (archive, folder, server through `ServerImportSink`), card actions (verified delete, format, eject) |
| `Archive` | `CurrentArchive`, `ArchiveTree`, figures for the charts, maintenance reports, mass rename and move, delete and trash dialogs (`SequenceDeletion`, `DeletePlans`), `ArchiveFailures` |
| `Server` | `ServerSession`, `ConnectFlow` (trust on first use), `SyncHost` (sync engine, agent, metered hold, editor connections, Export Sync), sync table, `RemoteSequenceApi` |
| `Jobs`, `Settings`, `About` | Job list and buffering, `JobNotices` (which job endings raise a toast; `JobEndings` lets a batch speak once); settings rows, encoder and format inventories, `ProcessingTuning` (Settings › Rendering and Analysis applied to each job), `InterfacePriority`, language catalog, naming preview; update check and download |
| `Jobs`, `Settings`, `About` | Job list and buffering, `JobNotices` (which job endings raise a toast; `JobEndings` lets a batch speak once); settings rows, encoder and format inventories, `ProcessingTuning` (Settings › Rendering and Analysis applied to each job: parallelism, memory budget, quality), `InterfacePriority`, language catalog, naming preview; update check and download |
| `Infrastructure` | `AppServices` (composition root), `AppSettings`, `AppEnvironment` (installed or portable), `AppClock` (today's date, frozen by `--capture`), `StartWithWindows` (this copy's sign-in entry), `UiLanguage`, `LiveRegion`, `RenderNodeHost`, `DiagnosticsBundle`, `ShellActions` (BRIEF §8.6), `SingleInstance` (one Titano per data folder; a later launch hands its file over a named pipe, or waits for a closing one to exit and starts in its place), device monitor |
| `DesignTime` | `SampleData`: the archive, jobs and server the screenshots and smoke tests run on, dated from the fixed `SampleData.Now` |
+19 -7
View File
@@ -838,7 +838,9 @@ Sections (list on the left, controls on the right, no descriptions — tooltips
General (language, theme, startup, notifications), Archive (root, templates, proxy policy,
thumbnail size, network polling), Import (defaults, session rules, verify, post-actions),
Analysis (widths, thresholds, deep analysis auto-run), Rendering (quality profile, memory
budget, spill folder, parallelism, encoders detected, hardware preference), Formats (per
budget, spill folder, parallelism = photos the running job processes at once, priority queue
with a level per job kind, encoders detected, hardware preference; amended 2026-10-16, R2),
Formats (per
format tier on this PC, codec install links), Server (last servers, trusted fingerprints,
render node), Updates (check on start), Advanced (portable mode, logs, database backup/
restore, reset). Import/export settings as JSON.
@@ -952,10 +954,17 @@ it itself (managed formats) or hands it to a render node.
### 14.6 Job engine
Persistent queue in the DB; N worker threads (configurable, default = cores/2); job kinds
in §5; checkpoints every 5 s (progress + resumable cursor); crash-safe restart; priorities
Persistent queue in the DB; jobs run one at a time, and the parallelism (configurable,
default = cores/2) is how many photos the running job processes at once; job kinds in §5;
checkpoints every 5 s (progress + resumable cursor); crash-safe restart; priorities
(user-initiated > background analysis); cancellation cooperative; logs per job; retention
of history 90 days.
of history 90 days. By default a new job waits its turn, and pausing the running job lets
the next one start. An optional priority queue (Settings › Rendering on the desktop, the
admin panel's Settings on the server) gives each job kind a level (high, normal, low):
higher kinds are claimed first, and a queued job of a higher level makes the running job
of a lower level yield without asking; that job returns to the queue with its checkpoint
and resumes by itself afterwards. Jobs of the same level never interrupt each other, and a
job's own follow-ups never interrupt it. (Amended 2026-10-16, R2.)
### 14.7 Render nodes
@@ -982,8 +991,8 @@ available and says so in the job log.
Pages: Login · Dashboard · Users (table; create/edit/disable/reset/roles/quota) · Archive
(path, templates, proxy policy, scan/rebuild/verify, stats) · Jobs (queue/history/nodes,
cancel/retry) · Settings (server name, ports, TLS mode + fingerprint, discovery, limits,
language, retention) · Logs (tail, download) · About. Same UI rules: tooltips only, light/
cancel/retry) · Settings (server name, ports, TLS mode + fingerprint, discovery, jobs:
parallelism and priority queue, limits, language, retention) · Logs (tail, download) · About. Same UI rules: tooltips only, light/
dark, localised via `/api/v1/i18n`, keyboard accessible.
### 14.9 Configuration and Docker
@@ -995,7 +1004,9 @@ at first login), `TITANO_ARCHIVE_PATH=/archive`, `TITANO_DATA_PATH=/data`,
`TITANO_DB_NAME`, `TITANO_DB_USER`, `TITANO_DB_PASSWORD`, `TITANO_DB_SSLMODE=prefer`,
`TITANO_HTTP_PORT=8080`, `TITANO_HTTPS_PORT=8443`, `TITANO_TLS_MODE=auto|pem|proxy`,
`TITANO_TLS_CERT`, `TITANO_TLS_KEY`, `TITANO_SERVER_NAME`, `TITANO_LANG=en`,
`TITANO_WORKERS`, `TITANO_DISCOVERY=true` (LAN UDP beacon), `PUID`, `PGID`, `TZ`.
`TITANO_PARALLELISM` (photos the running job processes at once; `TITANO_WORKERS`, its former
name, still sets it), `TITANO_PRIORITY_QUEUE=false`, `TITANO_DISCOVERY=true` (LAN UDP beacon),
`PUID`, `PGID`, `TZ`. (Amended 2026-10-16, R2.)
Dockerfile: multi-stage on `mcr.microsoft.com/dotnet/sdk:10.0` → `aspnet:10.0`, non-root
user via `PUID/PGID` entrypoint, volumes `/archive` and `/data`, `HEALTHCHECK` on
@@ -1315,6 +1326,7 @@ 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. |
| 2026-10-16 | Owner review 1, R2 | §12.8, §14.6, §14.8, §14.9 | Jobs run one at a time; the parallelism is photos the running job processes at once; an optional priority queue by job kind pauses lower jobs and resumes them by itself; `TITANO_PARALLELISM` (former `TITANO_WORKERS`) and `TITANO_PRIORITY_QUEUE`. |
## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated)
+29 -3
View File
@@ -167,6 +167,26 @@ commits follow Conventional Commits (release notes are generated from them by `T
sequence's frames changed since the settings' frame positions were written. `GET /api/v1/sequences/{id}/manifest`
returns frames, frames version and settings of one frames version.
### Changed
- Owner review 1 (2026-10-16, R2, `docs/requests/2026-10-15-owner-review-1.md`):
- jobs run one at a time, on the desktop and on the server. Settings › Rendering › Parallelism (server:
`TITANO_PARALLELISM`, admin panel › Settings › Jobs) is now how many photos the running job processes at once:
thumbnail and proxy passes draw that many photos together, decode tiers are probed that many at a time, the deep
analysis measures that many frames and a render decodes that many ahead (fewer wherever large originals are
developed whole, within the memory budget); the server's renders get a frame window sized to the host (a quarter
of the memory available) instead of 1 GiB; the running job has the whole memory budget;
- a new job waits its turn, and pausing the running job lets the next one start. An optional priority queue
(Settings › Rendering, admin panel › Settings › Jobs, `TITANO_PRIORITY_QUEUE`) gives each job kind a level; by
default renders, imports and downloads are high and verifies and proxies low. A queued job of a higher level pauses
the running one without asking, and that one resumes by itself afterwards from its checkpoint;
- the Jobs screen shows "8 photos at once", and a Priority queue chip while the queue is on; the admin dashboard
shows the parallelism;
- `Titano.Tools i18n prune` removes from the translations the keys English no longer has.
### Deprecated
- `TITANO_WORKERS` and the `Workers` key of `server.json` set the parallelism (photos the running job processes at
once, 1 to 64); the server logs a warning at start when the variable is set. Use `TITANO_PARALLELISM`.
### 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
@@ -178,7 +198,13 @@ commits follow Conventional Commits (release notes are generated from them by `T
- 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).
archive's existing frames are reclassified by the next light analysis (R4);
- an upload or a card import could fail with "Access to the path is denied" (server: 503 `commit_failed`) when a
thumbnail or proxy pass, an analysis or a scan was reading the sequence's sidecar at that moment: the write now
waits a moment for the reader (found while testing phase 2);
- taking a sequence's lease could fail with "Access to the path is denied" when the previous holder had just released
it while another process was reading it (Windows keeps the file pending deletion meanwhile): the lease is now taken
once the reader lets go (found while testing phase 2).
- 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.
@@ -204,8 +230,8 @@ commits follow Conventional Commits (release notes are generated from them by `T
- Release workflow: the server image and its `:latest` tag were pushed before the Windows tests passed, and
publishing an older tag again moved `:latest` back; the image now follows the tests and `:latest` the newest
stable release. Stable release notes started at the last release candidate instead of the previous stable tag.
- Settings › Rendering quality, parallelism and background priority had no effect on jobs. Parallelism Auto is now the
engine's half of the logical cores, and concurrent jobs share the memory budget.
- Settings › Rendering quality, parallelism and background priority had no effect on jobs. Parallelism Auto is now half
the logical cores (owner review 1 makes it the photos the running job processes at once; see Changed).
- A restore staged in Settings › Advanced now runs before the index opens, so it recovers an index that no longer
opens. A copy failing quick_check is set aside before any backup is made, and a restored copy is never applied
twice.
+9
View File
@@ -402,3 +402,12 @@ One line per decision: date · decision · alternative · reason.
| 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. |
| 2026-10-16 | Jobs run one at a time (owner review 1, R2): the engine has one worker by default (`JobEngineOptions.Workers` stays for tests of concurrent claims) and `SetWorkers` is gone. The parallelism reaches the work through the hosts' options, asked at the start of each sequence or job: `ArchiveServiceOptions.Parallelism` (thumbnail and proxy passes, tier probes) and `ProcessingOptions.WithParallelism` (deep analysis threads, render read-ahead and decodes). The running job has the whole memory budget. Refines 2026-10-12 'Settings › Rendering › Parallelism Auto is the job engine's default'. | Keep N workers with per-job caps; a `JobContext.Parallelism` passed through every handler and service | The owner's answer. The hosts already tune both option sets per job, render nodes reuse the desktop tuning, and no handler signature changes. |
| 2026-10-16 | The priority queue gives each job kind a level (high, normal, low), off by default: claim order level → priority → age; a queued job of a higher level that the engine would claim makes the running job of the lowest level yield without asking (cancelled, its checkpoint and a log line saved, then `JobRepository.RequeueAsync` back to Queued unless the user paused or cancelled it meanwhile); it resumes by itself when nothing above it waits. Reviewed at every `Wake` (enqueue, resume, settings saved) and every poll (3 s). Jobs of the same level never interrupt each other, a job's own follow-ups never interrupt it, and only a full engine interrupts. Defaults: render, import and download high; verify and proxies low. | An ordered list of all kinds; asking before pausing | The owner: set priorities so that a render started during a scan pauses the scan without confirmation and the scan resumes afterwards. A total order would make every pair of kinds interrupt each other (each periodic scan would pause hours of deep analysis); follow-ups work on what their parent produces. |
| 2026-10-16 | Thumbnail and proxy passes work on several photos at once through `OrderedWork`: up to the parallelism run on the thread pool (twice as many results wait) and their results come back in frame order on the pass's flow, so the pack writer, the counters and the checkpoints stay sequential and a checkpoint still means every frame before it is done; a parallelism of one runs inline. Decodes that develop originals whole run fewer at once for large originals (`DecodeBudget.PhotosAtOnce`): memory budget ÷ (largest frame × 32 bytes per pixel), 24 MP when no size is known, a size a damaged file claims saturating instead of overflowing. Proxy passes always count; thumbnail passes, deep analyses and every window of a render or its preparation count only the frames a decode at their size develops whole (`DecodeBudget.Developed`, `SequenceFrames.DevelopedPixels`): not a JPEG at least twice the size asked for (it decodes scaled down), not a frame read through its proxy or from a JPEG file, not a RAW's embedded preview of that size when previews are preferred (never in a render; another format's stored preview, such as a JPEG-compressed TIFF strip, may need the file's own tables and fall back to a full decode); a TIFF, a PNG or a developed RAW counts whole, so a render node's originals and a preparation over TIFFs are held back too. A frame window that develops originals gates every decode with that limit, read-ahead and demand loads alike (the window itself caps only its read-ahead). The server's frame window gets the host's memory budget (a quarter of the memory available, as the desktop's Auto) instead of the window's 1 GiB default. Tier probes run that many at a time (`Parallel.ForEachAsync`). | `Parallel.ForEach` with a lock around the pack; a byte semaphore per frame | Output identical to a pass of one photo at a time (tested byte for byte). The frames of a sequence share one size, so a limit per sequence is as good as a gate per frame. |
| 2026-10-16 | Verify, import and scan stay sequential inside their job. | Hash, copy or read metadata in parallel | They are bound by one disk or one card reader, where parallel reads are slower; the verify log keeps its order. |
| 2026-10-16 | Server: `TITANO_PARALLELISM` replaces `TITANO_WORKERS`, which still sets it (TITANO_PARALLELISM wins when both are set) and logs a warning at start; the `Workers` key of `server.json` still sets the parallelism and saving the setting removes it. `TITANO_PRIORITY_QUEUE` sets the queue on or off. The parallelism is 1 to 64 (the admin panel's range); a larger value from the environment or `server.json`, or the default on a machine with more than 128 threads, is brought down to 64, so a value the panel cannot change never blocks saving the others. Both apply at once (no restart), `server.json` keeps only the levels that differ from the defaults, and the admin panel lists the 14 kinds a server runs. `ServerSettingsDto` and `DashboardDto` replace `Workers` with `Parallelism` and add the priority queue. | Keep the name Workers; require a restart | The meaning changed (jobs at once → photos at once) and an older value keeps working. The admin panel ships with the server, so the DTO rename breaks no client. |
| 2026-10-16 | `Titano.Tools i18n prune` removes orphan keys (not in English and not a plural form of an English plural key) from every translation, rewriting only the files that had some, as `import` writes them. | Hand edits; regex | A renamed or removed key otherwise stays an orphan in 36 languages, and resx files are never mass-edited with regular expressions. |
| 2026-10-16 | Desktop: the Jobs toolbar shows "8 photos at once" (Settings › Rendering › Parallelism) and a Priority queue chip while the queue is on, instead of "Workers n / m"; Settings › Rendering lists the 16 job kinds with a level dropdown only while the queue is on; the Jobs list orders the queue with the engine's `JobPriorityQueue.ClaimsBefore`. The Jobs, Settings and Admin mockups follow in phase 6 with the rest of the review. | Keep the workers readout | One job runs at a time, so a count of busy workers says nothing. |
| 2026-10-16 | `AtomicFile` tries the rename over the target again for some 1 s (15 attempts, 10 ms × n) while another handle holds it: a sharing or lock violation, or Windows' "access denied" for an open file that is neither read-only nor a folder (those, like a missing file, fail at once). Sidecars, ingest journals, index snapshots and `project.json` are read whole and at once with `AtomicFile.ReadAllBytes`/`ReadAllText` (sharing read and delete, never a writer in place; above 2 GB an `IOException`, as `File.ReadAllBytes`). Windows refuses `MoveFileEx` over an open file even when the reader shares deletion. | Rename with POSIX semantics (`SetFileInformationByHandle`, Windows interop in Core); take the sequence lease for every sidecar read | Readers hold these files for milliseconds; a lease per read would queue thumbnail passes behind uploads, and Core stays free of Windows interop. Found when the faster passes of phase 2 made an upload's commit fail in the server tests. |
| 2026-10-16 | `LeaseFile.TryCreate` treats "access denied" on creating a lease as the name of a lease just released while a reader still holds it (pending deletion on Windows, since readers share deletion) and tries again for some 130 ms (8 attempts, 1 ms doubling), as it already did for the create-or-check race. | Return "held" at once; stop sharing deletion in readers | Returning "held" makes the caller wait its whole poll back-off for a name free milliseconds later, and readers must never block a release or a takeover. A real permission problem still fails after the short retry. Found when the phase 2 test runs hit it in `MassRenameTests` under load. |
+1 -1
View File
@@ -13,7 +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. |
| 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. Phase 2 done: jobs run one at a time on the desktop and the server; Parallelism is how many photos the running job processes at once (thumbnail and proxy passes, tier probes, deep analysis, render decodes); pausing the running job starts the next; an optional priority queue by job kind (Settings › Rendering, admin panel › Settings › Jobs, `TITANO_PRIORITY_QUEUE`) pauses lower jobs and resumes them by themselves; `TITANO_PARALLELISM` replaces `TITANO_WORKERS`. Next: phase 3, wider collapsible rail and the Edit section as a guided path. |
| 9 Monetization | Not started: requires explicit approval (§22). |
## Verification (2026-10-12)
+1 -1
View File
@@ -58,7 +58,7 @@
| 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 | |
| 2 | R2 jobs one at a time, Parallelism = photos at once, priority queue with automatic pause/resume (desktop + server) | done 2026-10-16: BRIEF §12.8, §14.6, §14.8, §14.9, §24; nine DECISIONS rows dated 2026-10-16 (engine, priority queue, parallel passes and decode budget, sequential IO jobs, server settings, `i18n prune`, Jobs toolbar, atomic writes that wait for a reader, leases taken after a reader lets go); three adversarial review rounds before the commit; levels per kind rather than an ordered list (DECISIONS) | phase 2 commit |
| 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 | |