docs: phase 4a fix rounds 4 and 5
The phase 4a docs were written before the last two fix rounds landed. They
now describe the code at 8c2b9f1b: a sequence left as it was inside a moving
folder is taken along instead of keeping that folder in place; a held plan on
an offline archive keeps its plan and fails as offline; render filing answers
503 folder_moved; a rebase never moves the rows of the sequence that took the
old folder (with its known limitation); every writer refuses a folder another
sequence holds (SequenceFolders.Holds). Three DECISIONS rows added, six
updated; five fix rounds in STATUS and the request.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 31d479c5f4dd0b7076b39331246815e95895a1fa)
This commit is contained in:
1 parent
8c2b9f1bfe
commit
23403f1c07
6 files changed
+71
-46
No files matched your search
+33
-17
@@ -499,6 +499,11 @@ step being one sequence and the sequences nested in a folder that moves with it:
|
||||
folder of that exact name), and in one transaction the index follows: the sequence's folder
|
||||
and title, its frames' paths and the paths of the exports that moved with the folder. Only
|
||||
then are files renamed; once its folder moved, a step always goes to its end.
|
||||
- A sequence of the plan that an earlier step left as it was inside a folder that moves later
|
||||
(it changed after the plan, or the folder that was to carry it stayed) goes with that folder,
|
||||
under the same leases, keeping its title and file names. Before a held plan resumes, a folder
|
||||
that moves may hold only such sequences and those of the steps still to come; any other
|
||||
refuses the plan, which is then given up.
|
||||
- File renames run under `rename-files.json` in the sequence's `.chronos/`: every file first to
|
||||
a hidden temporary name beside it (`.chronos-rename-<token>-<n>.tmp`), then every file to its
|
||||
new name, so chains and swaps of names never meet a name another file holds and no file is
|
||||
@@ -1028,6 +1033,8 @@ the same (§14.8), through the same engine and job.
|
||||
deleted since named in its log. It changes one step at a time. Pause or cancel stops
|
||||
between two steps and holds the rest for the job's resume or retry; a failed job holds it too
|
||||
(also when the archive's volume went away), and its retry completes it while it still fits.
|
||||
A retry while the archive is still offline fails as offline and keeps the plan: a plan
|
||||
journal it cannot reach is never taken for one completed.
|
||||
An archive open completes a plan an interruption left (a crash, a yield to another job, the
|
||||
program closing), not one its job holds.
|
||||
- What changed after the dry run: a sequence moved or gone, one indexed inside a folder that
|
||||
@@ -1036,10 +1043,11 @@ the same (§14.8), through the same engine and job.
|
||||
steps done stay, and a new dry run is needed. Photos changed since (a sequence still
|
||||
receiving them) refuse nothing: that sequence keeps its file names, and its folder and title
|
||||
change while the templates still give them from its first photo as it is now, otherwise it
|
||||
stays as it was, with any folder around it that was to move with it. A photo in use or a new
|
||||
name taken keeps that sequence's file names (every file back). These sequences are listed in
|
||||
the job's log, and the job fails at the end, after the others changed, saying how many; its
|
||||
retry plans again.
|
||||
stays as it was, and so do the sequences its folder was to carry. A sequence left as it was
|
||||
inside a folder that a later step moves goes with that folder, keeping its title and file
|
||||
names, so the folder around it still moves. A photo in use or a new name taken keeps that
|
||||
sequence's file names (every file back). These sequences are listed in the job's log, and
|
||||
the job fails at the end, after the others changed, saying how many; its retry plans again.
|
||||
- Deleting sequences of the archive is refused while a Reorganize job runs or is paused. The
|
||||
Archive and Library screens read the archive again when it ends; an editor open on a
|
||||
sequence it changed reloads where the sequence is now after that sequence's step.
|
||||
@@ -1342,12 +1350,13 @@ Reorganize (amended 2026-10-26, R7; ManageArchive; §7, §12.5, §14.8):
|
||||
expand.
|
||||
- Writers that file into a sequence's folder take it from the index row read under the
|
||||
sequence's lease, so they write where a Reorganize put it. Completing a render upload or a
|
||||
render node's result that cannot be filed for now (the sequence held past the lease wait, the
|
||||
archive offline or read-only, or the sequence's folder not where the index has it after
|
||||
another program moved it) answers 503 and keeps the upload receiving, to be completed again
|
||||
(`sequence_busy` and `archive_offline` for the first two); the node keeps its job. A proxy
|
||||
upload answers 503 `sequence_busy` while the sequence is held, 404 `frame` when the sequence
|
||||
or its folder is gone.
|
||||
render node's result that cannot be filed for now answers 503 and keeps the upload
|
||||
receiving, to be completed again: `sequence_busy` (the sequence held past the lease wait),
|
||||
`archive_offline` (the archive offline or read-only) or `folder_moved` (the sequence's folder
|
||||
not where the index has it, or holding another sequence, after another program moved them;
|
||||
the server's next scan finds it). The node keeps its job while it retries. A proxy upload
|
||||
answers 503 `sequence_busy` while the sequence is held, 404 `frame` when the sequence or its
|
||||
folder is gone, or the folder is another sequence's.
|
||||
|
||||
Uploads (amended 2026-10-26, R3, R6): `server/info` lists `extensions`, the photo file
|
||||
extensions the archive files (lower case, no dot), which the admin panel's dialog keeps to. A
|
||||
@@ -1463,12 +1472,19 @@ an archive, a Reorganize by one index (or a folder moved by hand) is found by th
|
||||
scan, which moves the sequence's row, its frames and the paths of the exports that moved with
|
||||
the folder (a file or, for an image sequence, a folder; an export written at the old place
|
||||
after the move keeps its path there, and another sequence's export saved inside follows only
|
||||
when it moved with the folder). Until that scan nothing writes into the old place, which would
|
||||
create it again: *Save both* and *Take server* answer that the folder is not where the index
|
||||
has it (try again after the next scan), and so do the editor's saves, a render job as it
|
||||
starts, exports fetched by sync and a proxy pass at each batch; a deep analysis that loses its
|
||||
folder records nothing. A render of the other program whose folder moves while it runs is not
|
||||
stopped.
|
||||
when it moved with the folder). The other program may also have moved another sequence into
|
||||
the old folder (its sidecar names that sequence): the moving sequence's exports then follow to
|
||||
its new folder, and an export of the sequence that took the old folder never follows, so no
|
||||
row names another sequence's file. Until that scan nothing writes into the old place, which
|
||||
would create it again, nor into another sequence that took it: *Save both* and *Take server*
|
||||
answer that the folder is not where the index has it (try again after the next scan), and so
|
||||
do a render job as it starts, exports fetched by sync, a proxy pass, and a thumbnail pass that
|
||||
finds another sequence's sidecar there; the editor's save says the sequence is no longer in
|
||||
the archive, and a deep analysis that loses its folder records nothing. A render of the other
|
||||
program whose folder moves while it runs is not stopped. Known limitation: an export a
|
||||
sequence saved into another sequence's folder (the Export folder picker), before the other
|
||||
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.
|
||||
|
||||
### 14.6 Job engine
|
||||
|
||||
@@ -2191,7 +2207,7 @@ questions asked and the answers; DECISIONS rows give the reasons.
|
||||
| 2026-10-26 | Owner review 2, R11 | §12.8, §14.1, §14.3, §14.8, §14.9, §19.6 | Log settings: file and console levels apart on the server (`CHRONOS_LOG_LEVEL` locks both, `CHRONOS_LOG_CONSOLE_LEVEL` the console), retention, a file size limit with numbered parts, a total size limit, daily or hourly rotation, audit retention and the diagnostics share, in the admin panel's Settings › Logs (applied at once, `lockedBy` naming the variable) and the desktop's Settings › Advanced (from the first log line); the server's files take Debug and Trace when asked; logging never fails a job. |
|
||||
| 2026-10-26 | Owner review 2, R6 | §5, §7, §12.2, §12.5, §14.3, §14.4, §14.5, §14.8 | The admin panel manages, never edits: a Library page (filters from facets, cards or list, keyboard selection, mass Analyse, Proxies, Thumbnails, Verify, Tags, Export CSV and Delete), a sequence's page with a photo viewer, cover, downloads and photo deletion, and the trash view with Restore and Empty; photos deleted into `trash/photos` under journals, a photo never hashed hashed as it goes, tombstones in the sidecar (`removed`) and the index (`frame_removals`, migration 0008) that keep sync and uploads from bringing a deleted photo back unless the user restores it or uploads it again on purpose; trash kinds, restore reasons, and Empty as the `empty-trash` job behind a dry run, a typed confirmation and a fingerprint, never scheduled; the library, trash and bulk endpoints; the panel's files revalidated (`no-cache`, ETag). |
|
||||
| 2026-10-26 | Owner review 2, R3 | §14.3, §14.4, §14.8 | Upload from the admin panel into an existing or a new sequence (file picker, drag and drop, no folders), hashed in the browser by a self-tested in-house SHA-256 in a module worker, the capture time read from Exif, sent in resumable chunks through the upload API and verified by the server; `server/info` lists the photo extensions; hidden dot files are refused for every client. |
|
||||
| 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); 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 and never create a left one again; `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 (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. |
|
||||
|
||||
## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated)
|
||||
|
||||
Reference in new issue
Block a user