feat: owner review 2 phase 5a: workspace and projects with a local home (#14)
CI / Build and test (push) Successful in 9m43s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 27s
CI / PostgreSQL 16 integration (push) Failing after 8m41s
CI / PostgreSQL 17 integration (push) Successful in 12m37s
CI / Docker image (push) Successful in 56s
Release / Build, test and publish (push) Successful in 14m59s
Release / Server image (push) Successful in 1m51s
CI / Build and test (push) Successful in 9m43s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 27s
CI / PostgreSQL 16 integration (push) Failing after 8m41s
CI / PostgreSQL 17 integration (push) Successful in 12m37s
CI / Docker image (push) Successful in 56s
Release / Build, test and publish (push) Successful in 14m59s
Release / Server image (push) Successful in 1m51s
Edit opens a sequence as a project of a workspace folder outside the library. Projects have linear version histories kept as sidecars in .chronos/projects/, Main mirrors the sequence's settings, and sync merges setting by setting. Migration 0009, JobKind.WorkspaceCopy = 20, Settings › Workspace, and 241 new strings in 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 #14.
This commit is contained in:
1 parent
efa87f68ce
commit
9b24cf74fc
370 files changed
+29237
-287
No files matched your search
+209
-10
@@ -283,6 +283,17 @@ sequence manifest atomically (write temp → fsync → rename).
|
||||
| Server-connected | server archive; local proxies/thumbs cache | server DB via API; local SQLite caches only | server (managed formats), render nodes (MP4), or this PC after downloading originals |
|
||||
| Mixed | both; each sequence has an `origin` and a `sync state` | both | as above |
|
||||
|
||||
Workspace and projects (amended 2026-10-26, R8). The desktop edits in a **workspace**, a folder
|
||||
on a fast disk outside every library (default `%LOCALAPPDATA%\Chronos\workspace`, or
|
||||
`.\data\workspace` for a portable copy), never inside the library. A sequence's **home** is
|
||||
where it lives: this PC's archive (phase 5a) or a server (phase 5b). The home keeps the
|
||||
sequence's **projects**: Main, which is the sequence's own settings, and other named sets of
|
||||
edits ("4K landscape", "Vertical social"), each with a linear history of versions pushed and
|
||||
pulled like git, with no branches. The workspace holds a working copy of a project: its
|
||||
working state, its versions and the sequence's proxies (originals from phase 5c). Final
|
||||
renders run where the originals are. A local-only library works the same way, its archive
|
||||
being the home.
|
||||
|
||||
---
|
||||
|
||||
## 5. Domain model
|
||||
@@ -303,7 +314,23 @@ Primary entities (identical concepts in SQLite and PostgreSQL; ids are UUIDv7 st
|
||||
preview info (offset/length), light stats (mean log-luminance, clip fractions) once
|
||||
analysed, flags (missing, corrupt, duplicate, excluded).
|
||||
- **Render** — id, sequence id, preset name, settings JSON, output relative path, codec,
|
||||
width, height, fps, duration, bytes, created, produced by (client id / server / node).
|
||||
width, height, fps, duration, bytes, created, produced by (client id / server / node),
|
||||
project id and project version id (the project and version rendered, the version only
|
||||
when the home holds it with the settings rendered; amended 2026-10-26, R8).
|
||||
- **Project** (amended 2026-10-26, R8) — id, sequence id, name (1–60 characters, unique
|
||||
among the sequence's live projects), is main (one live Main per sequence), head version
|
||||
id and number, mirrored version id and mirrored settings version (Main: the version and
|
||||
the settings version of its last mirror into the sequence's settings), created by,
|
||||
created, updated, deleted. Derived from the project's sidecars (§7) and rebuilt from them.
|
||||
- **ProjectVersion** (amended 2026-10-26, R8) — id (UUIDv7 made by the client), project
|
||||
id, parent id, number (1…, unique per project), kind (commit, merge, restore, imported,
|
||||
external), author, client name, note, settings JSON in the portable form (every frame
|
||||
position parked by photo, canonical text, stored as text and never re-encoded), content
|
||||
hash (SHA-256 of that text's UTF-8 bytes), settings format, frames version, restored
|
||||
from, created, stored (when the home took it; none while only a workspace has it).
|
||||
Immutable once stored.
|
||||
- **Workspace** (amended 2026-10-26, R8) — no table: a folder that describes itself
|
||||
(`workspace.json` and one folder per project, §12.3).
|
||||
- **Job** — id, kind (scan, rebuild, verify, light-analyse, deep-analyse, proxies,
|
||||
thumbs, render, import, upload-commit, maintenance; backup, cleanup, and the read-only
|
||||
duplicates and orphans reports; empty-trash, stored as 18, which erases exactly the trash
|
||||
@@ -313,7 +340,9 @@ Primary entities (identical concepts in SQLite and PostgreSQL; ids are UUIDv7 st
|
||||
and holds the rest of it when paused, cancelled or failed: amended 2026-10-26, R7; convert,
|
||||
stored as 19, a conversion of exactly the photos a confirmed plan lists, its targets the
|
||||
sequences, each converted all or nothing into its own frames or a new sequence: amended
|
||||
2026-10-26, R7), target ids, state (queued, running, paused, done, failed, cancelled),
|
||||
2026-10-26, R7; workspace-copy, stored as 20, the copy of a sequence's proxies and deep
|
||||
report into a workspace project's media, run by the desktop only: amended 2026-10-26, R8),
|
||||
target ids, state (queued, running, paused, done, failed, cancelled),
|
||||
progress (done/total, fps, eta), log tail, created by, node id, attempts, error, schedule id
|
||||
(the schedule that queued it; amended 2026-10-26, R10).
|
||||
- **Schedule** (amended 2026-10-26, R10) — id, system key (set, and unique, on a host's
|
||||
@@ -348,7 +377,9 @@ Indexes: `frame(sequence_id, index)`, `frame(sha256)`, `frame(captured_at)`,
|
||||
`sequence(archive_id, first_capture)`, `sequence(camera_model)`, tags, jobs by state and by
|
||||
schedule, `schedules(enabled, next_run)` (amended 2026-10-26, R10),
|
||||
`frame_removals(sequence_id, sha256)` (the key) and `frame_removals(sha256)` (migration 0008;
|
||||
amended 2026-10-26, R6).
|
||||
amended 2026-10-26, R6), `projects(sequence_id, name)` and `projects(sequence_id)` where
|
||||
Main, both on live rows only, `project_versions(project_id, number)` (migration 0009, with
|
||||
`renders.project_id` and `renders.project_version_id`; amended 2026-10-26, R8).
|
||||
Paging everywhere (keyset pagination on `(first_capture, id)`).
|
||||
|
||||
---
|
||||
@@ -437,7 +468,8 @@ The archive is the source of truth; the database is an index that can be rebuilt
|
||||
│ └── .chronos/
|
||||
│ ├── sequence.json sidecar manifest (below)
|
||||
│ ├── analysis.json full deep-analysis report
|
||||
│ ├── project.json render settings (the "project")
|
||||
│ ├── project.json render settings (the "project"; Main's head, below)
|
||||
│ ├── projects/ <project id>/project.json + versions/000001-<version id>.json …; .trash/: deleted projects (below; amended 2026-10-26, R8)
|
||||
│ ├── thumbs.pack packed thumbnails (one file per sequence, indexed; avoids 100k tiny files on SMB)
|
||||
│ ├── rename-files.json the file renames of a Reorganize a crash interrupted (below; amended 2026-10-26, R7)
|
||||
│ └── *.pending.json journals of an ingest, a photo deletion, a frame replacement (replace.pending.json, a conversion or its undo; amended 2026-10-26, R7) or a restore a crash interrupted (below)
|
||||
@@ -595,6 +627,49 @@ moves each original into the trash, New sequence leaves it where it is.
|
||||
job this index does not know (another host's on a shared archive) keeps both while any of
|
||||
their files was written within 90 days, then both go.
|
||||
|
||||
Projects (amended 2026-10-26, R8; §5, §12.3, §14.5). A sequence's projects live in its
|
||||
`.chronos/projects/`, and the sidecars are the truth: a full scan or a rebuild takes them
|
||||
back into the index, and every project operation first brings the index in line with them,
|
||||
under the sequence's lease (a read waits at most 3 s for it, then answers from the index).
|
||||
- `<project id>/project.json` is the record (`chronos-project-record` v1: id, sequence id,
|
||||
name, is Main, head `{id, number}`, `mirrored` `{id, number}` for Main, created, created
|
||||
by, updated, deleted). Its `updated` time never goes back: each write stamps now or 1 ms
|
||||
past the record it replaces. Older builds ignore `mirrored`.
|
||||
- `<project id>/versions/000001-<version id>.json` holds one immutable version
|
||||
(`chronos-project-version` v1), its settings as a JSON string checked against its content
|
||||
hash. A version file is at most 64 MiB, refused before it is written. A version is
|
||||
written first, then the record, then the index in one transaction; a version file past
|
||||
its record that follows the head is adopted, any other moved to `versions/.stray`.
|
||||
Nothing is ever deleted.
|
||||
- A deletion moves the project's folder into `projects/.trash/<id>-<ticks>`, then writes
|
||||
the deleted record there. Main cannot be deleted. The projects' trash is never emptied
|
||||
by Chronos (Empty trash does not see it); it leaves with its sequence's folder.
|
||||
- A deletion is never inferred from a missing folder or a record that cannot be read: only
|
||||
a record that says deleted, or a folder in the projects' trash, deletes. The trash is read
|
||||
before the live folders, so a deletion is never undone; a version another PC pushed into
|
||||
the live folder before the deletion reached it is moved beside the deleted record, into
|
||||
the trash folder's `versions/`, never deleted. A record that cannot be read holds
|
||||
its project back: listed as the index has it, nothing written for it, writes refused
|
||||
until it reads again.
|
||||
- Main mirrors the sequence's settings: its head is written to `project.json` and to the
|
||||
index's settings, so analyses, the Library, renders and server sync keep reading them.
|
||||
Main is made lazily, from the settings as they are, the first time a project of the
|
||||
sequence is asked for. Settings another path writes (an older Chronos, the API, an
|
||||
analysis, sync) become an *external* version of Main at the next project operation; a
|
||||
mirror a crash cut short is completed, and if the settings also moved meanwhile, one
|
||||
*merge* version is made in which the settings written meanwhile win where both changed.
|
||||
A mirror never writes over settings written in `project.json` since this index last knew
|
||||
what it held: it takes them in first.
|
||||
- The index heals the sidecars from what it knows: a project whose folder is gone is
|
||||
written back from the index; a record behind the index (a projects folder put back from
|
||||
a backup) gets the missing version files, then the index's head and, when it is older,
|
||||
the index's name; a record that is lost is written again from the index only once the
|
||||
folder has looked the same for 2 minutes and no trash folder holds the project, so a
|
||||
record a sync tool is still bringing wins. A folder with versions and no record, of a
|
||||
project no index knows, is a creation cut short: it holds nothing back and is left as it
|
||||
is. One Main per sequence is decided from the records (the oldest that says Main); any
|
||||
other becomes an ordinary project with every version kept.
|
||||
|
||||
Rules: originals are immutable (never rewritten; edits are settings; a conversion takes an
|
||||
original out of its sequence only into the trash, amended 2026-10-26, R7); every write of a
|
||||
sidecar goes to a temp file, `fsync`, rename; the folder name is derived from templates at
|
||||
@@ -1030,11 +1105,15 @@ player smoke test on Windows CI.
|
||||
hero, keyframes) wait as pending frames until a restore brings the photos back, and the
|
||||
others follow their photos without a settings edit. *Delete…* still moves whole sequences
|
||||
into the archive's trash, which lists photo entries too (§12.5).
|
||||
- Open (a card, the Archive manager's Open, Jobs' Open; amended 2026-10-26, R8) opens a
|
||||
sequence of this PC in Edit as a project of the workspace (§12.3): the project of that
|
||||
sequence opened last on this PC, else *Open in workspace* asks which. A server-only
|
||||
sequence still opens with proxies (§14.5) until the server home (phase 5b).
|
||||
|
||||
### 12.3 Edit (amended 2026-10-16, R7; formerly "Sequence editor")
|
||||
### 12.3 Edit (amended 2026-10-16, R7; formerly "Sequence editor"; amended 2026-10-26, R8)
|
||||
|
||||
```
|
||||
│ ← Harbour sunset ▾ · 3,600 frames · Canon EOS R5 · 2 s interval · 2 h 00 m [Analyse] [Optimise all] [Render ▾] │
|
||||
│ ← Harbour sunset ▾ · [Main ● In sync ▾] · 3,600 frames · Canon EOS R5 · 2 s · 2 h 00 m [Analyse] [Optimise all] [Render ▾] │
|
||||
│ ✓ Analysis ── ▲ Frames ── ✓ Exposure ── ✓ Motion ── ✓ Camera ── ✓ Time ── ⑦ Stack ── ⑧ Export │ ← the path
|
||||
├──────────────────────────────────────────────────────────────────┬──────────────────────────────────┤
|
||||
│ ┌──────────────────────────────────────────────────────────────┐ │ Exposure │
|
||||
@@ -1056,7 +1135,12 @@ player smoke test on Windows CI.
|
||||
sequence whose proxies are still coming, or one that cannot open, leaves it open), its
|
||||
last edit saved first, or discarded on the user's word and then never written. The
|
||||
Library, Jobs, the Server screen, project files and the command line still open
|
||||
sequences in Edit; ← goes back to the Library.
|
||||
sequences in Edit; ← goes back to the Library. Amended 2026-10-26, R8: the picker has two
|
||||
groups, *Workspace* (the workspace's projects, the one saved last first, each with its
|
||||
state chip read from its home after the list shows) above *Library*; the search filters
|
||||
both, and Enter opens a library match, a project only when no sequence matches. A
|
||||
Workspace row's context menu and the Delete key offer *Remove local copy*, also for a copy
|
||||
that cannot open.
|
||||
- The steps form a guided path, freely navigable: **Analysis** (every finding of the
|
||||
analyses with the step that deals with it; light, flicker, exposure steps received,
|
||||
shake and flagged frames; Analyse), **Frames** (virtualized table: index, time,
|
||||
@@ -1086,6 +1170,85 @@ player smoke test on Windows CI.
|
||||
- While a job runs on this sequence, settings that would change the rules mid-render are
|
||||
disabled; viewing tools stay live.
|
||||
|
||||
Workspace (amended 2026-10-26, R8; §4.4, §7). Edit opens a sequence of this PC's archive only
|
||||
as a project of the workspace, and never writes into the library; a capture (sample data)
|
||||
keeps editing the library, and a server sequence keeps opening with proxies until phase 5b.
|
||||
- Which project: the one of that sequence opened last on this PC. Otherwise *Open in
|
||||
workspace* asks: **Project** (an existing one, Main first, made from the sequence's
|
||||
settings as they are; or New, with a name of 1–60 characters unique in the sequence) and
|
||||
**Media** (*Proxies*; *Originals* is disabled until phase 5c and its tooltip says why),
|
||||
with the copy's size and the drive's free space (*Not enough space* below the size plus
|
||||
0.5 GB). A Main this Chronos cannot read (saved by a newer Chronos, or damaged) is listed
|
||||
disabled with the reason; asked for alone, or with nothing else to offer, it is refused at
|
||||
once, a damaged one offering *Remove local copy*. The project is then checked out and its
|
||||
proxies copied by a *Workspace copy* job, followed like a server sequence's proxies (the
|
||||
picker line, a toast with a Jobs link); it opens when the copy is done, and the open
|
||||
sequence stays open meanwhile.
|
||||
- The workspace folder holds `workspace.json` and one folder per project:
|
||||
`project.chronos` (the working state, a project file of format 2 with a `workspace`
|
||||
section: project, name, Main, home, base version, media; at most 64 MiB), `media/`
|
||||
(`media.json`, `proxies/`, `analysis.json`), `versions/` (the versions taken from the
|
||||
home and those not sent yet; `versions/.replaced` keeps every version a sync replaced),
|
||||
`sync.json` (a conflict, a restore, or the journal of a sync under way), `exports/`, and
|
||||
the lease `.lock.lease`. A workspace folder inside a library is refused before anything
|
||||
is written, with *Choose folder*.
|
||||
- The editor writes only the working state, atomically under the project's lease a moment
|
||||
after each edit, merged photo by photo with what a sync or a copy wrote. Where a sync and
|
||||
the editor changed the same setting, it asks (keep mine, take the library's).
|
||||
- Beside the title, the project button (its name; Main in the UI language) with a state
|
||||
chip: In sync, Changed, Not sent, Library newer, Conflict, Offline, No media, Syncing,
|
||||
Not in library (the home deleted it: its copy can only be discarded), Damaged (a version
|
||||
saved here cannot be read: nothing is saved, sent or taken until it is repaired from the
|
||||
home's copy). The chip is read again a moment after each edit. Its ▾ menu:
|
||||
- *Save version…* (Ctrl+S): a note, Enter saves. With Sync automatically on, the version
|
||||
is sent at once.
|
||||
- *Sync*: take the library's new versions, then send yours. A push whose parent is the
|
||||
library's head goes straight in; otherwise the library's versions are taken, yours are
|
||||
replayed on them (a version that changes nothing once replayed is not sent) and the
|
||||
working state is merged setting by setting, pending frames photo by photo.
|
||||
- *History…*: the versions, newest first: number, kind (Saved, Merged, Restored,
|
||||
Imported, Outside change), the PC, time, note, Not sent or Current. *Compare* lists the
|
||||
settings that differ from now (heroes, exclusions and keyframes by name, several photos
|
||||
counted); *Restore* makes a version the project as one undo step, unsaved changes saved
|
||||
as a version first, and a toast offers Undo.
|
||||
- *Open project…* (another project of the home), *New project…* (from this project's
|
||||
last version in the library), *Rename…*, *Delete project…* (never Main; confirmed; it
|
||||
sends everything first, then the project goes to the library's project trash with all
|
||||
its versions).
|
||||
- *Remove local copy…*: a plan (files, size, versions not sent, unsaved changes,
|
||||
conflict). *Remove* only when everything is in the library, whose head and the base are
|
||||
read back and checked against their hashes first; *Send first* sends what is missing,
|
||||
then removes; *Discard changes* asks for the project's name to be typed. The copy's
|
||||
files, every one but the media, go to `<workspace>/.trash/<id>-<time>`; the media are
|
||||
deleted. A removal that cannot move a file puts everything back and says so.
|
||||
- Conflicts are asked only when a merge finds settings both sides changed, and list this
|
||||
side's value as the working state holds it: *Keep mine*, *Take library's* (one undo step;
|
||||
the toast's Undo brings back only those settings), *Save both* (your versions go to a
|
||||
sibling project "<name> (<PC>)" and this one takes the library's) or *Later* (the chip
|
||||
says Conflict, Save version is disabled and the next Sync asks again). A choice settles
|
||||
only the conflict shown: if the library moved again, the dialog asks again. A conflict
|
||||
met by an automatic sync waits for the open dialog to close. A project the library holds
|
||||
in a newer Chronos's format is never merged: only *Save both* and *Later*; with nothing
|
||||
unsent, the project takes it read-only.
|
||||
- A project read-only (a newer Chronos's settings) says so with a toast and disabled
|
||||
controls; an edit not stored yet when such settings arrive is kept in
|
||||
`versions/.replaced` (*Edit kept aside*).
|
||||
- When the library's photos changed since the copy (added, removed, converted, verified),
|
||||
a banner offers *Update media*: the media are copied again and positions follow their
|
||||
photos.
|
||||
- Renders of a workspace project run on this PC's engine at the library, with the
|
||||
originals and the project's portable settings embedded, one job per preset; they record
|
||||
the project, and the version only while no version waits to be sent and the library
|
||||
holds that version with the settings rendered.
|
||||
Analyses run at the library; with Sync automatically on, Main takes an analysis' Auto
|
||||
values.
|
||||
- `.chronos` files: format 2 opens its workspace project (a copy of one gives it its
|
||||
settings as one undo step; a project the library lacks falls back to Main); format 1
|
||||
gives its settings to the sequence's Main. *Save project file* still writes format 1.
|
||||
- Not yet (phase 5c): originals in the workspace and renders from them, moving the
|
||||
workspace folder with its projects, emptying `<workspace>/.trash`, automatic clean-up and
|
||||
the size limit. The server home is phase 5b.
|
||||
|
||||
### 12.4 Import (cards)
|
||||
|
||||
```
|
||||
@@ -1313,6 +1476,10 @@ R10; a tab, not a rail entry, so a schedule and the jobs it queued are side by s
|
||||
schedule's background run raises a toast only when it fails, unless it is upkeep the next
|
||||
run repeats (scan, thumbnails, proxies, light analysis, clean-up); Run now raises one only
|
||||
when it queued nothing.
|
||||
- *Workspace copy* jobs (amended 2026-10-26, R8; §12.3) are listed like any job; Open opens
|
||||
their sequence in Edit. Cancelling a first copy removes the media it wrote, once it has
|
||||
stopped and only while no other copy of that project waits or runs; a paused copy keeps
|
||||
them and resumes.
|
||||
|
||||
Global job bar mirrors the active job.
|
||||
|
||||
@@ -1345,9 +1512,20 @@ toast is up joining it; on the Archive screen it never replaces an open dialog,
|
||||
that one closes: amended 2026-10-26, R7), Import (defaults, session rules, verify,
|
||||
post-actions), Analysis (widths, thresholds, deep analysis auto-run), Rendering (quality
|
||||
profile, memory 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),
|
||||
with a level per job kind, encoders detected, hardware preference; amended 2026-10-16, R2;
|
||||
Workspace copy listed, high by default, as Download: amended 2026-10-26, R8),
|
||||
Formats (per
|
||||
format tier on this PC, codec install links), Server (last servers, trusted fingerprints,
|
||||
format tier on this PC, codec install links), Storage, Workspace (amended 2026-10-26, R8:
|
||||
*Folder*, the path read-only with *Open* and *Change…*, which shows a plan (projects left,
|
||||
projects found), closes an open workspace project and moves nothing, the old folder's
|
||||
projects coming back when it is chosen again; *Sync* *After each version*, on by default:
|
||||
each saved version is sent at once and the library's new ones taken; *Kept versions* 5, 10,
|
||||
20, 50, 100 or 200, default 20: how many of the library's versions each project keeps on
|
||||
this PC besides its base and those not sent, an older one dropped only once the library
|
||||
gives it back unchanged; Reset restores Sync and Kept versions; Reset all and Import keep
|
||||
the folder and the projects opened last, Export leaves them out. Moving the folder with its
|
||||
projects, the size limit, the default media, version on render, clean after and the
|
||||
project to open come in phase 5c), Server (last servers, trusted fingerprints,
|
||||
render node), Updates (check on start; latest version: check now, download, releases page),
|
||||
Advanced (portable mode, data folder; logs: the logs folder, *Log level* (Trace…Error,
|
||||
default Info), *Keep logs* (1–365 days, default 14), *File size* (MB, default 50, or No
|
||||
@@ -1782,6 +1960,21 @@ sequence saved into another sequence's folder (the Export folder picker), before
|
||||
program moved that sequence away and the first one into its folder, keeps naming the old
|
||||
path; the file is intact, moved with the other sequence.
|
||||
|
||||
Projects (amended 2026-10-26, R8; §7, §12.3). A project's history is linear, with no
|
||||
branches, and its home numbers the versions. A workspace pushes its versions in order; a
|
||||
push is stored only when it names the head as its parent, is portable, of a settings format
|
||||
the home knows, matches its content hash and fits 64 MiB, and a repeat of a stored version
|
||||
is answered as stored. Otherwise the workspace pulls the home's new versions, replays its
|
||||
own on them and merges the working state field by field (pending frames photo by photo);
|
||||
only settings both sides changed are a conflict. Versions are compared and placed by photo
|
||||
(the portable form), so photos added, a copy's other frame order, a Verify that hashed a
|
||||
photo or a conversion that replaced one never move a position. Only Main's head is
|
||||
mirrored into the sequence's settings, so only Main crosses to a linked server copy,
|
||||
through the settings sync above; other projects never leave their home. A home that is
|
||||
read-only or out of reach leaves the versions waiting in the workspace. Phase 5a's home is
|
||||
this PC's archive; the server home (API under `/sequences/{id}/projects`, the
|
||||
`projectChanged` event) is phase 5b.
|
||||
|
||||
### 14.6 Job engine
|
||||
|
||||
Persistent queue in the DB; jobs run one at a time, and the parallelism (configurable,
|
||||
@@ -1795,7 +1988,12 @@ 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.)
|
||||
job's own follow-ups never interrupt it. (Amended 2026-10-16, R2.) The desktop's *Workspace
|
||||
copy* (`workspace-copy`, stored as 20) is high by default, as Download is, since Edit waits
|
||||
for it; a server never runs it, because it writes into the folder its parameters name. A
|
||||
handler may clean up after a cancel: cancelling a paused or failed job no handler runs calls
|
||||
it, and cancelling a paused job whose run has not ended waits for that run to end first
|
||||
(amended 2026-10-26, R8).
|
||||
|
||||
Scheduled jobs (amended 2026-10-26, R10). Recurring work is queued only by schedules (§5),
|
||||
shown in Jobs › Scheduled on the desktop (§12.6) and the admin panel (§14.8): no job is
|
||||
@@ -2536,6 +2734,7 @@ questions asked and the answers; DECISIONS rows give the reasons.
|
||||
| 2026-10-26 | Owner review 2, R7 (Reorganize) | §5, §7, §12.2, §12.5, §12.8, §14.3, §14.5, §14.8 | Reorganize on the desktop (Archive manager, Library, the toast of Settings › Archive) and the admin panel (Library, the toast of Archive): folder, file and title templates applied to sequences already filed, behind a dry run that lists each sequence's changes, the photos that keep their names and why (in place outside `originals/`, never hashed, missing) and the sequences that stay whole (unreadable sidecar); applied by the `move` job of exactly the confirmed plan (fingerprint), which holds the rest when paused, cancelled or failed and lets a sequence still receiving photos keep its file names; crash-safe plan and file journals (two-phase renames through hidden temporary names, recovery by the next writer); a sequence of the plan left as it was inside a moving folder goes with it; the index, frames and exports follow a moved folder in one transaction, on this index and at another index's next scan; writers take the folder under the lease, never create a left one again and never write into a folder another sequence took; `POST /api/v1/archive/reorganize` with a kept, bounded plan cache and `sequenceChanged` `reorganized`; Rename… and Move… replaced. |
|
||||
| 2026-10-26 | Owner review 2, R7 (naming) | §7.1, §13, §14.3 | One naming rule for import, upload and Reorganize: the sequence's camera and lens, `{n}` its place, a frame without a time at the sequence's start; template rules everywhere a template is typed or sent (no folder level scans skip, one a value such as a title gives escaped with `_`; a file template keeps the extension, tells photos apart, holds no slash; long names shortened before `.{ext}`; titles as text), held to a template only when it is given anew; `invalid_template` names the rule. |
|
||||
| 2026-10-26 | Owner review 2, R7 (conversion) | §5, §7, §8.1, §8.3, §8.7, §9, §12.2, §12.4, §12.5, §13, §14.3, §14.4, §14.5, §14.8, §14.9 | Convert after import on the desktop (the Archive manager's set, the Library's selection) and the admin panel (the Library's selection): JPEG with a quality, TIFF-16 or linear DNG (the archival choice, scene-referred so a RAW's highlights above white and colours outside sRGB survive), Replace or New sequence chosen at every run and never remembered, behind a dry run that lists each sequence's photos, sizes and the photos that stay as they are with why, and the free space where the conversion writes; Replace confirmed by typing; the `convert` job (stored as 19) converts exactly the photos confirmed, one sequence at a time and all or nothing, resumable through its journals and staging, never twice at once; full-resolution decodes only (the managed decoders first, never a 16-bit file from an 8-bit RAW development; the server leaves what it cannot read to a PC), what Chronos reads from a photo never changed (profiles carried, a linear DNG of sRGB values only), Exif carried, every file verified by the server's decoders; Replace swaps the files of the frames in place under a crash-safe journal, the originals going into a replaced trash entry that Undo or Restore swaps back and that Empty erases only while the archive on disk shows each conversion intact, or deleted on its own word (a tombstone, the trash, an erasure record); import still copies byte for byte and the card keeps a converted photo's copy; sync and the ingest count every encoding of a photo as one; `POST /api/v1/archive/convert` with the plan cache it shares with Reorganize, `sequenceChanged` `converted` and `created`, the audit `archive_converted`. |
|
||||
| 2026-10-26 | Owner review 2, R8 (phase 5a: workspace and projects, local home) | §4.4, §5, §7, §12.2, §12.3, §12.6, §12.8, §14.5, §14.6 | A sequence's home (this PC's archive) keeps its projects: Main, mirrored both ways with the sequence's settings so older clients and sync keep working, and other named projects, each a linear history of immutable versions in the portable form (positions parked by photo, SHA-256 of canonical text), stored as sidecars in `.chronos/projects/` and indexed by migration 0009 (`projects`, `project_versions`, `renders.project_id`/`project_version_id`); deletions only on the archive's word, the trash read first; Edit opens only workspace projects: *Open in workspace* (project, proxies), the `workspace-copy` job (stored as 20, desktop only, hash-verified, resumable, space checked), the working state in a folder outside the library, the project button with its state chip and menu (Save version, Sync, History with Compare and Restore, Open, New, Rename, Delete, Remove local copy), push and pull with replay and field-level merge, conflicts only when both sides changed a setting (Keep mine, Take library's, Save both, Later), renders at the home with the settings embedded; Settings › Workspace (folder, sync, kept versions). The server home is phase 5b; originals, local render, clean-up and the rest of Settings › Workspace are phase 5c. |
|
||||
|
||||
## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated)
|
||||
|
||||
|
||||
Reference in new issue
Block a user