docs: phase 4a fix round 6

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-10-27 21:29:12 +01:00
1 parent f8c445fac3
commit 79cfa9cdb7
4 files changed
+9 -3

No files matched your search

+3 -1
View File
@@ -509,7 +509,9 @@ One line per decision: date · decision · alternative · reason.
| 2026-10-26 | The plan's journal keeps a tally of the whole plan (`RenameJournal.Done`: changed, files, dropped, files kept, titles kept, files busy, newer, carried kept), so the job log covers every run: "Sequences changed: N, files renamed: M", then one line per sequence not changed as planned, with why. The job then fails with one error: kept first ("changed after the plan"), then newer (a sequence file from a newer Chronos, met only when resuming), then busy (a photo in use or its new name taken); sequences kept because the folder around them stayed follow their carrier's reason. (Owner review 2, R7.) | Report only the last run; one generic error | A plan applied over several runs reports what it did as a whole, and each sentence must be true. |
| 2026-10-26 | Each sequence a Reorganize changed is told through `ArchiveServiceOptions.SequenceChanged` (change `reorganized`) once its step is journaled, by its job or by an archive open that completed an interrupted plan, and at once for a step that failed after its folder moved; a failure to tell is logged, never passed on. The server publishes `sequenceChanged` `reorganized` with the row's versions (its open at start has no hook: no client is connected yet); the desktop raises `AppServices.SequenceReorganized`, and an editor open on that local sequence reloads where it is now while the job goes on (`LocalSequenceSource` reads the frames again when the folder changed while it listed them). (Owner review 2, R7.) | One event when the job ends | Steps done before a pause or a failure are told; an open editor would otherwise decode from paths that moved. |
| 2026-10-26 | A folder move rebases the archive-relative paths of the exports inside it in the same transaction as the sequence row and its frames (`RenderRepository.RebaseFolderAsync`, `ArchiveIndexer.RebaseRendersAsync`). An export is a file, or a folder for an image sequence. The sequence's own exports follow unless one was written at the old place after the move (there and not at the new place, the old folder not another sequence's now), and so does one whose old path another sequence's export now names; another sequence's export saved inside (the Export folder picker) follows only when it moved with the folder, and never one of the sequence that holds the old folder now (next row); absolute paths and other folders stay. A scan that finds a sequence in another folder (another index's Reorganize, a folder moved by hand) applies the same rule. (Owner review 2, R7.) | Leave render rows to be recorded again; rebase by sequence only | Exports must stay downloadable and syncable on every host after a move, and a row must keep naming where its file is. |
| 2026-10-26 | When another index moved a sequence out of its folder and another sequence into that folder, this index's rebase of the first one reads once which other sequence the old folder holds now (`SequenceFolders.OtherSequence`, the id its sidecar names): the first sequence's own exports follow to its new folder even when an export of that name is at the old path (it is the other sequence's), and a render row of the sequence that holds the old folder never follows, whatever the scan order (`RenderRepository.RebaseFolderAsync` gives the rule each row's owner). Known limitation: an export that sequence had saved through the Export folder picker into the first one's folder, before it took that folder, keeps naming the old path; the file is intact in the first sequence's new folder, and no scan repairs the row. (Owner review 2, R7.) | Let every row under a taken old folder follow; keep any row whose path still holds a file | When the scan rebased the holder first, its row then followed the other sequence and named that sequence's file, its own export left without a row for good; a row must never name another sequence's file, and the case left out needs an export saved into another sequence's folder before two moves by another program. |
| 2026-10-26 | When another index moved a sequence out of its folder and another sequence into that folder, this index's rebase of the first one reads once which other sequence the old folder holds now (`SequenceFolders.OtherSequence`, the id its sidecar names): the first sequence's own exports follow to its new folder even when an export of that name is at the old path (it is the other sequence's), a render row of the sequence that holds the old folder never follows, whatever the scan order, and no other row counts as left behind at the old path while that folder holds another sequence (a third sequence's export saved there through the picker follows when its file moved with the folder) (`RenderRepository.RebaseFolderAsync` gives the rule each row's owner). Known limitation: an export that sequence had saved through the Export folder picker into the first one's folder, before it took that folder, keeps naming the old path; the file is intact in the first sequence's new folder, and no scan repairs the row. (Owner review 2, R7.) | Let every row under a taken old folder follow; keep any row whose path still holds a file | When the scan rebased the holder first, its row then followed the other sequence and named that sequence's file, its own export left without a row for good; a row must never name another sequence's file, and the case left out needs an export saved into another sequence's folder before two moves by another program. |
| 2026-10-26 | A render job's checkpoint records the sequence's archive-relative folder with the output it chose (`RenderCheckpoint.Folder`; older checkpoints read it as null). On resume, a crash's leftovers are rebased by a folder move and removed only inside the sequence's current exports or outside the archive (an export folder chosen on a client); anywhere else in the archive they are left alone and the render takes the next free name. (Owner review 2, R7.) | Delete the pending output at the path the checkpoint recorded | After another program moved the sequence and another sequence into its folder, that path was the other sequence's export, deleted on resume; leftovers of a crash into an export folder chosen inside the archive are no longer cleaned up, the price of never deleting where the sequence is not. |
| 2026-10-26 | *Download originals* restores the originals flagged missing after its transfers, under the sequence's lease, at each frame's path in the folder the index has then, and only when that folder holds the sequence (`SequenceFolders.Holds`); otherwise it restores nothing, keeps the staged copies for the retry and fails with `Errors.Archive.FolderMoved` after its other work. (Owner review 2, R7.) | Restore at the path read when the job started, without the lease | A folder moved by another program sent the photo into the sequence that took the folder (adopted there at its next scan) or recreated the moved-away folder; after this PC's next scan the retry restores into the new folder. |
| 2026-10-26 | A writer takes a sequence's folder from the index row read under the sequence's lease (`SequenceWriter.FolderAsync`; renders a client or a node sends through `ArchiveService.UnderLeaseAsync`), so it writes where a Reorganize put the sequence and never creates the folder it left. A folder another index moved is not where this index has it until its next scan, and neither is one that holds another sequence now (next row): *Take server* and *Save both*, exports fetched by sync, proxies made and a render job as it starts refuse it with "The folder of this sequence is not where the index has it; try again after the next scan" (`Errors.Archive.FolderMoved`), proxies received with 404 `frame`, the server's render filing with 503 `folder_moved` (`FolderMovedException`) and the editor's save with "This sequence is no longer in the archive"; a deep analysis records nothing. Render filing that meets a sequence held past the lease wait, an offline archive or such a folder answers 503 (`sequence_busy`, `archive_offline`, `folder_moved`) and puts the upload back to receiving, the node keeping its job while its client retries (about 30 s; a node then reports the job failed, and its retry renders again); a proxy upload answers 503 `sequence_busy`, or 404 `frame` once its sequence or folder is gone. (Owner review 2, R7.) | Let writers create the old folder again; answer 409, or 500 as before | A folder created again holds files no index row names; `ChronosClient` retries only 503s and a render node fails its job on any other error, which would discard a finished render (a 500 left the upload stuck in Committing until a restart). |
| 2026-10-26 | A sequence is in the folder the index has for it only while that folder exists and its sidecar, when it has one, names no other sequence (`SequenceFolders.Holds`; a sidecar that cannot be read does not count as another's). Every writer that files into a sequence's folder asks it, so a folder another index moved the sequence out of, and another sequence into, is refused exactly like a missing folder until this index's next scan: settings sync and *Take server* (nothing written), *Save both*'s copy and its clean-up (which deletes nothing in such a folder), exports fetched by sync (the download stays staged), the server's render filing, a render job as it starts, proxies received, proxy passes, the deep analysis's checkpoint and the editor's save; a thumbnail pass refuses a sidecar of another sequence before it opens the pack. (Owner review 2, R7.) | Check only that the folder exists; check the sidecar's id in some writers | With only the folder checked, *Take server* wrote the server's settings into the other sequence's `project.json`, *Save both* wrote this PC's copy into its `.chronos` and a render sent for the sequence was filed among its exports; one check shared by every writer leaves none out. |
| 2026-10-26 | The proxy pass holds the thumbnail lease one batch at a time: a quarter of the lease wait (30 s by default), at least one photo, then lets it go for 750 ms (1.5 × `LeaseFile.LongestPoll`, 500 ms) and reads the folder, sidecar and companions again; a folder gone, or holding another sequence now, stops the job with the folder-moved error (resumed from its checkpoint after the scan), and photos changed between batches leave `ProxiesBuilt` unset. File renames take the thumbnail leases too; the thumbnail pass still holds its lease for its whole run. Cost: up to about 2.5 % on long passes. Another process's thumbnail pass may take the lease in a gap, and one longer than the lease wait then fails the running proxy pass, which resumes from its checkpoint. (Owner review 2, R7.) | Hold the lease for the whole pass; no lease | Another program's Reorganize, sequence deletion or pack compaction waits for one batch instead of failing after two minutes behind an hours-long pass, and no pass writes proxies into a folder that moved. |