docs: BRIEF, DECISIONS, CHANGELOG and STATUS for owner review 2 phase 3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
81cf58227d
commit
01d0668ac5
5 files changed
+367
-23
No files matched your search
+278
-19
@@ -306,7 +306,9 @@ Primary entities (identical concepts in SQLite and PostgreSQL; ids are UUIDv7 st
|
||||
width, height, fps, duration, bytes, created, produced by (client id / server / node).
|
||||
- **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), target ids, state (queued, running, paused, done, failed,
|
||||
duplicates and orphans reports; empty-trash, stored as 18, which erases exactly the trash
|
||||
entries of a confirmed plan, erases nothing when the trash changed since, and is never
|
||||
scheduled: amended 2026-10-26, R6), 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
|
||||
@@ -318,6 +320,11 @@ Primary entities (identical concepts in SQLite and PostgreSQL; ids are UUIDv7 st
|
||||
jobs, enabled, next run (none while disabled), last run, last job id, last outcome
|
||||
(queued, skipped-pending, skipped-offline, skipped-nothing, unavailable,
|
||||
failed:<reason>), created by, created, updated.
|
||||
- **FrameRemoval** (amended 2026-10-26, R6) — the tombstone of a photo removed from a
|
||||
sequence: sequence id, sha256, replacement sha256 (the converted file that replaced it,
|
||||
R7), reason (deleted, replaced), removed at. Written from the sidecar's `removed` list (§7)
|
||||
at every index sync, so a rebuild keeps it, leaving out content a frame of the sequence
|
||||
holds again; it goes with its sequence row and outlives the trash entry.
|
||||
- **MediaCard** (client) — id, volume serial, filesystem label, capacity, nickname, camera
|
||||
identity (Make/Model/BodySerial from first file), profile JSON, first/last seen, import
|
||||
history (job ids).
|
||||
@@ -334,7 +341,9 @@ Primary entities (identical concepts in SQLite and PostgreSQL; ids are UUIDv7 st
|
||||
|
||||
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).
|
||||
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).
|
||||
Paging everywhere (keyset pagination on `(first_capture, id)`).
|
||||
|
||||
---
|
||||
@@ -411,7 +420,8 @@ The archive is the source of truth; the database is an index that can be rebuilt
|
||||
├── .chronos/
|
||||
│ ├── archive.json { id, name, schemaVersion, created, layoutTemplates, proxyPolicy }
|
||||
│ ├── index-snapshot.bin optional accelerator for rebuild (all sidecars concatenated + hash); ignored if stale
|
||||
│ └── locks/ lease files for concurrent writers (server + client on same share)
|
||||
│ ├── locks/ lease files for concurrent writers (server + client on same share)
|
||||
│ └── trash/ deleted sequences and photos, kept until Empty (below; amended 2026-10-26, R6)
|
||||
├── 2026/
|
||||
│ └── 2026-09-28 Canon EOS R5 - Harbour sunset/ folder = expanded FolderTemplate
|
||||
│ ├── originals/ IMG_0001.CR2 … names = expanded FileTemplate
|
||||
@@ -421,13 +431,48 @@ The archive is the source of truth; the database is an index that can be rebuilt
|
||||
│ ├── sequence.json sidecar manifest (below)
|
||||
│ ├── analysis.json full deep-analysis report
|
||||
│ ├── project.json render settings (the "project")
|
||||
│ └── thumbs.pack packed thumbnails (one file per sequence, indexed; avoids 100k tiny files on SMB)
|
||||
│ ├── thumbs.pack packed thumbnails (one file per sequence, indexed; avoids 100k tiny files on SMB)
|
||||
│ └── *.pending.json journals of an ingest, a photo deletion or a restore a crash interrupted (below)
|
||||
```
|
||||
|
||||
`sequence.json` (canonical, versioned, written atomically):
|
||||
`{ id, title, camera, lens, frames: [{ i, file, size, sha256, capturedAt, exposure, fNumber,
|
||||
iso, focal, bias, wb, orientation, w, h, format, previewOffset, previewLength, flags }],
|
||||
tags, rating, notes, status, versions, createdBy, updatedAt }`.
|
||||
iso, focal, bias, wb, orientation, w, h, format, previewOffset, previewLength, flags, source? }],
|
||||
tags, rating, notes, status, versions, createdBy, updatedAt, removed? }`. Amended 2026-10-26,
|
||||
R6: `removed: [{ sha256, replacement?, reason: Deleted | Replaced, at }]` holds the tombstones
|
||||
of the photos removed from the sequence (§5 FrameRemoval), left out when there are none;
|
||||
`frames[].source: { sha256, format, file, size }` names the file a converted frame was made
|
||||
from, reserved for R7 (read and written, nothing acts on it yet). A build that does not know
|
||||
either field keeps it and writes it back unchanged.
|
||||
|
||||
Trash (amended 2026-10-26, R6). Nothing in it is erased except by *Empty* (§12.5, §14.8):
|
||||
- `trash/<id>[-<time>[-n]]/` with `<name>.json` beside it: a deleted sequence folder, whole
|
||||
(originals, proxies, exports, sidecars), and its record (the index row, renders and
|
||||
tombstones the sidecar may lack).
|
||||
- `trash/photos/<id>-<time>[-n]/originals/…` with `<name>.json` beside it: photos deleted
|
||||
from sequence `<id>`, each original with its XMP companion when no photo that stays shares
|
||||
it, and the record: each photo's frame record, each file's former place, size and SHA-256,
|
||||
the sequence's title and folder, who deleted them, when, and the kind (photos, or replaced
|
||||
for originals a conversion replaced, R7). A photo never hashed is hashed as it goes; one
|
||||
whose original was already missing goes with its record alone.
|
||||
- `trash/.erasing/`: entries moved aside by Empty before they are deleted, so a listing never
|
||||
sees half an entry; leftovers are deleted by the next Empty.
|
||||
- In a sequence's `.chronos/`, `remove.pending.json` is written before a photo deletion's
|
||||
first move and `restore.pending.json` before a restore's; until the sidecar is written the
|
||||
entry's record is `<name>.json.pending`, which the trash never lists, restores or empties.
|
||||
The next writer of the sequence (any `ReadLocked`, a scan, a sequence delete) undoes a
|
||||
deletion the sidecar does not show yet (files back, record and folder gone) and completes
|
||||
one it shows, and settles an interrupted restore under the entry's lease (files back into
|
||||
the entry, or the record without the photos the sidecar lists again). A restore into a new
|
||||
sequence stages each original in `<entry>/.restoring/` (never the archive's staging) and
|
||||
puts it back on any failure.
|
||||
|
||||
Deleting photos writes the sidecar without them (frames version + 1) and with a tombstone of
|
||||
each SHA-256 no photo that stays holds, and clears what covered the frames (light and deep
|
||||
analysis, thumbnails, proxies), which follow as jobs; proxies are renamed and `thumbs.pack`
|
||||
is re-keyed so the frames that stay keep theirs (while a thumbnail pass holds the pack, that
|
||||
pass draws them again). Filing a photo into the sequence again (an import, a restore, an
|
||||
explicit upload again, §14.4) drops its tombstone; emptying the trash does not.
|
||||
|
||||
Rules: originals are immutable (never rewritten; edits are settings); every write of a
|
||||
sidecar goes to a temp file, `fsync`, rename; the folder name is derived from templates at
|
||||
@@ -754,6 +799,12 @@ player smoke test on Windows CI.
|
||||
Upload, Download, Delete, Export list as CSV).
|
||||
- Filters are chips; saved views (e.g. "Night, 4K, not rendered"); search is instant
|
||||
(indexed columns); everything virtualized (in-house `VirtualizingWrapPanel`).
|
||||
- Photos deleted from a sequence (amended 2026-10-26, R6; on the admin panel, §14.8, or by
|
||||
another program sharing the archive) leave it at its next index sync: its count follows,
|
||||
a cover whose photo went is cleared, the project's positions on those photos (exclusions,
|
||||
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).
|
||||
|
||||
### 12.3 Edit (amended 2026-10-16, R7; formerly "Sequence editor")
|
||||
|
||||
@@ -870,6 +921,23 @@ is a Job (resumable, cancellable, logged). Recurring scans, integrity checks, th
|
||||
proxies, analyses, maintenance, backups, clean-ups and reports are schedules in Jobs ›
|
||||
Scheduled (§12.6, §14.6); the buttons here run them once (amended 2026-10-26, R10).
|
||||
|
||||
Maintenance › *Trash…* (amended 2026-10-26, R6) lists the archive's trash (§7), newest
|
||||
first: deleted sequences and photos deleted from sequences, each with its kind, photos,
|
||||
size, folder and when it went, and *Restore*. A sequence goes back as its folder is (into
|
||||
its old place, or "folder (2)" when that is taken; its photos are not re-hashed, Verify does
|
||||
that). Photos are re-hashed against their record and go back into their sequence with their
|
||||
frame records (a name taken since gets `_2`, its companion following), or into a new
|
||||
sequence when theirs is gone, every entry of that sequence joining the same new one. A photo
|
||||
that stays in the trash says why (its files no longer match their record, they could not be
|
||||
moved back, the sequence holds that content already, or its file was missing when it was
|
||||
deleted): one sentence on the dialog's line, or how many stayed when the reasons differ, and
|
||||
the tooltip with each reason and the first names. When no file of an entry matches, nothing
|
||||
moves and the line says so. *Empty…* measures every entry (dry run), lists them, asks for the
|
||||
number of entries to be typed, then queues the *Empty trash* job. The job erases exactly
|
||||
those entries and nothing when the trash changed since; an entry that changes while it runs
|
||||
is kept, and the job then fails after erasing the others. It is the only way the product
|
||||
erases trash entries; no schedule runs it (§14.6).
|
||||
|
||||
### 12.6 Jobs
|
||||
|
||||
Two tabs, a *Queue | Scheduled* segmented control first in the toolbar (amended 2026-10-26,
|
||||
@@ -1036,22 +1104,26 @@ Advanced, §12.8).
|
||||
```
|
||||
POST /api/v1/auth/login {username,password,clientName} → {token,user,mustChangePassword}
|
||||
POST /api/v1/auth/logout · POST /auth/password · GET /auth/me
|
||||
GET /api/v1/server/info name, version, apiVersion, capabilities, tlsFingerprint, formats, limits
|
||||
GET /api/v1/server/info name, version, apiVersion, capabilities, tlsFingerprint, formats, limits, extensions
|
||||
GET /health
|
||||
|
||||
GET /api/v1/users · POST · GET/PATCH/DELETE /users/{id} · POST /users/{id}/reset-password (admin)
|
||||
|
||||
GET /api/v1/sequences?year&camera&status&tag&q&cursor&limit
|
||||
GET /api/v1/sequences?year&camera&status&rendered&tag&q&cursor&limit
|
||||
GET /api/v1/sequences/facets years, camera models (with their label) and tags of the archive, each with its count
|
||||
POST /api/v1/sequences create (title, camera hint) → id
|
||||
GET /api/v1/sequences/{id} · PATCH (title, tags, rating, settings) · DELETE
|
||||
GET /api/v1/sequences/{id}/manifest frames with hashes/sizes/versions (sync)
|
||||
GET /api/v1/sequences/{id}/manifest frames with hashes/sizes/versions, tombstones (sync)
|
||||
GET /api/v1/sequences/{id}/analysis · GET /stats · GET /renders
|
||||
GET /api/v1/sequences/{id}/frames?cursor&limit
|
||||
GET /api/v1/sequences/{id}/thumb the hero frame's thumbnail, else the first frame's (ETag, 304)
|
||||
POST /api/v1/sequences/{id}/frames/delete {frameIds, expectedFramesVersion, dryRun} → {photos, bytes, framesVersion, frameCount, trashEntry}
|
||||
POST /api/v1/sequences/bulk/delete {ids, dryRun} · /bulk/retag {ids, add, remove} · /bulk/jobs {ids, kind} → an item per id
|
||||
GET /api/v1/frames/{id}/original · /proxy · /thumb (streamed, Range supported)
|
||||
|
||||
POST /api/v1/uploads {sequenceId|null, fileName, size, sha256, capturedAt?} → {uploadId, chunkSize, received[]} | 200 {alreadyExists}
|
||||
POST /api/v1/uploads {sequenceId|null, fileName, size, sha256, capturedAt?, sessionKey?, restore?} → {uploadId, chunkSize, received[]} | 200 {alreadyExists, frameId?}
|
||||
PUT /api/v1/uploads/{id}/chunks/{n} body bytes (idempotent) → {received}
|
||||
POST /api/v1/uploads/{id}/complete → frame id (server verifies sha256, commits into layout, updates manifest)
|
||||
POST /api/v1/uploads/{id}/complete[?restore=true] → frame id (server verifies sha256, commits into layout, updates manifest)
|
||||
GET /api/v1/uploads/{id} resume state
|
||||
DELETE /api/v1/uploads/{id}
|
||||
|
||||
@@ -1063,9 +1135,66 @@ WS /api/v1/events {type: jobProgress|jobState|sequenceCh
|
||||
POST /api/v1/nodes/register · POST /nodes/{id}/heartbeat · POST /nodes/{id}/claim → job · POST /nodes/{id}/jobs/{jobId}/result (chunked upload of output)
|
||||
|
||||
GET/PUT /api/v1/archive/settings · POST /archive/scan · /rebuild · /verify · GET /archive/stats · POST /archive/maintenance (admin)
|
||||
GET /api/v1/archive/trash · POST /archive/trash/{name}/restore · POST /archive/trash/empty {names?, dryRun, fingerprint} (admin)
|
||||
GET /api/v1/i18n/{culture} strings for the web admin
|
||||
```
|
||||
|
||||
Library and trash (amended 2026-10-26, R6):
|
||||
- `frames/delete` needs the Delete permission and the sequence's owner or an admin, like
|
||||
deleting the sequence. It takes 1–100,000 ids, under a body limit of its own (100,000 × 48
|
||||
bytes + 4 KiB, about 4.8 MB; other JSON bodies stay at 1 MiB); a dry run answers the
|
||||
photos, bytes and the frames version now, a deletion the frames version after it (the next
|
||||
request's `expectedFramesVersion`), the frame count and the trash entry's name. Errors: 400
|
||||
`bad_request` (`frameIds`); 404 `not_found` (`sequence`); 409 `frames_conflict` (the frames
|
||||
changed since `expectedFramesVersion`, or an id is not the sequence's; details: the frames
|
||||
version now), `sequence_busy` (a job works on it, as for deleting it), `would_empty` (every
|
||||
photo would go: delete the sequence), `photo_unreadable` (a photo never hashed whose
|
||||
original is on disk but cannot be read, so it could leave no tombstone; details: how many,
|
||||
the message naming the first), `sidecar_mismatch`, `folder_in_use`; 413 `too_large`; 503
|
||||
`archive_offline`. Audited `frames_deleted`; publishes `sequenceChanged` `frames`.
|
||||
- The bulk routes take 1–1,000 distinct ids and answer `{items, ok, skipped, dryRun, photos,
|
||||
bytes, job}`, one item per id in the request's order: `ok`, or `skipped` with the reason's
|
||||
code and sentence. *delete* (Delete) moves each sequence as `DELETE /sequences/{id}` does,
|
||||
whole or not at all, and skips `not_found`, `forbidden` (another user's, unless an admin),
|
||||
`sequence_busy`, `archive_root`, `contains_sequences`, `sidecar_mismatch`, `folder_missing`,
|
||||
`archive_offline`, `folder_in_use`. *retag* (Edit) is the PATCH tag edit (trimmed, at most
|
||||
64 characters, at most 50 a sequence, case-insensitive, up to 3 attempts on a settings
|
||||
conflict) and skips `not_found`, `bad_request`, `settings_conflict`. *jobs* (Edit; kind
|
||||
`analyse`, `deep`, `proxies`, `thumbnails` or `verify`) queues one job at user priority over
|
||||
the sequences found (202; 200 when none), a verify targeting their archive with the
|
||||
sequences in its parameters, as `POST /jobs` with `verify` now does too; 400
|
||||
`invalid_job_kind`, 409 `job_unavailable`. 400 `bad_request` (`ids`, `tags`).
|
||||
- `GET /archive/trash` (ManageArchive, like the rest of the trash) answers the entries newest
|
||||
first, `{name, kind: sequence|photos|replaced, sequenceId, title, folder, photos, files,
|
||||
bytes, deletedBy, deletedAt}`, and their total bytes. A name is
|
||||
`<32 hex>[-<14 digits>[-n]]` (a sequence) or `photos-<32 hex>-<14 digits>[-n]` (photos),
|
||||
checked against that shape and never a path.
|
||||
- Restore answers `{name, kind, sequenceId, photos, kept, newSequence, keptReasons,
|
||||
message}`: the photos that stayed and, in the same order, why (`mismatch`, `not_moved`,
|
||||
`in_sequence`, `no_file`), with one sentence per reason in the request's language. Errors:
|
||||
404 `not_found` (`trash_entry`); 409 `sequence_in_library`, `sequence_busy`,
|
||||
`sidecar_mismatch` (the sidecar of the sequence the photos return to is damaged or
|
||||
another's), `folder_in_use`; 422 `trash_mismatch` (no file matches its record any more, or a
|
||||
deleted sequence's own sidecar no longer names it); 503 `archive_offline`. Audited
|
||||
`trash_restored`; publishes `sequenceChanged` `created` (a sequence, or a new one) or
|
||||
`frames`.
|
||||
- Empty: a dry run answers the entries measured on disk, their photos, files and bytes, the
|
||||
plan's `fingerprint` and the names asked for that the trash does not hold (`unknown`); the
|
||||
erase sends the fingerprint back and answers 202 with the `empty-trash` job. Errors: 400
|
||||
`bad_request` (`names`, `fingerprint`); 409 `trash_changed` (details: the fingerprint now),
|
||||
`job_unavailable`; 503 `archive_offline` (offline, and for the erase also read-only; the
|
||||
listing answers it too, offline). The request is audited `trash_empty_requested`; what the
|
||||
job erased is in its log.
|
||||
- The manifest gains `removed: [{sha256, replacement, reason: deleted|replaced, at}]` (null
|
||||
when there are none; covered by its ETag, since a deletion moves the frames version).
|
||||
|
||||
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
|
||||
frame upload whose file name starts with `.` is 400 `invalid_file_name`. A start whose
|
||||
SHA-256 the target sequence tombstoned (and none of its frames holds) answers 200
|
||||
`alreadyExists` without a `frameId`, unless `restore` is true; the completion checks again
|
||||
unless `?restore=true` and answers 409 `photo_removed`, the upload cancelled (§14.4).
|
||||
|
||||
Schedules (amended 2026-10-26, R10; ManageArchive, every change audited): `PUT` and
|
||||
`PATCH` change the fields given; an invalid field is 400 `invalid_schedule` with the field
|
||||
as details (`name`, `recurrence`, `parameters.percent`…); a system schedule is never
|
||||
@@ -1096,6 +1225,53 @@ answers 507 with the upload still receiving, so the client completes it again on
|
||||
room; render uploads and render-node results are checked the same way at completion, and a
|
||||
volume that cannot be measured refuses nothing (amended 2026-10-26, R2).
|
||||
|
||||
Deleted photos (amended 2026-10-26, R6): a photo deleted from a sequence is not filed into it
|
||||
again by an upload. `POST /uploads` answers a SHA-256 the target sequence tombstoned, and none
|
||||
of its frames still holds, with `alreadyExists` and no frame id, so an old client syncing a
|
||||
copy that still has it, or a watch folder sending it again, neither sends it nor counts a
|
||||
failure. `complete` checks again once the upload stops receiving, and the ingest checks the
|
||||
sidecar's tombstones a third time under the sequence's lease, which a deletion takes: a photo
|
||||
deleted while its bytes were on the way is not filed, its upload is cancelled and the answer
|
||||
is 409 `photo_removed` (the protocol client reports it as not sent). Only an explicit user
|
||||
action brings such a photo back by upload: `restore: true` on the start and `?restore=true`
|
||||
on the completion, sent by the admin panel's *Upload again* alone (never by sync, the
|
||||
Uploader or a card import); it is then filed into its own sequence whatever other sequences
|
||||
hold, and filing it drops the tombstone, also after the trash was emptied. A frame upload
|
||||
whose file name starts with `.` (the AppleDouble `._` files a Mac leaves on cards, hidden
|
||||
files) is refused for every client (400 `invalid_file_name`), as the archive scanner leaves
|
||||
such files out.
|
||||
|
||||
The admin panel uploads through the same path (amended 2026-10-26, R3; the dialog, §14.8):
|
||||
- It hashes each photo in the browser with an in-house incremental SHA-256 (FIPS 180-4,
|
||||
`sha256.js`) in a same-origin module worker (`hash-worker.js`, under the panel's
|
||||
`script-src 'self'`) that reads the file in 8 MiB blocks. Before its first hash the worker
|
||||
runs the FIPS 180-4 known answers (the empty message, "abc", the 448- and 896-bit messages,
|
||||
one million "a"), whole and fed in uneven pieces, and, where `crypto.subtle` exists,
|
||||
compares a 1 MiB random buffer with it; on any mismatch it refuses every hash and the
|
||||
dialog uploads nothing (fail closed). The server verifies every upload again.
|
||||
- Each start carries the photo's capture time: the Exif DateTimeOriginal of a JPEG or a
|
||||
TIFF-based file (TIFF, DNG, most RAW formats) read from its first 256 KiB, else the file's
|
||||
modification time as local wall time without an offset; the ingest uses it only for a
|
||||
photo that records no time of its own (a PNG, an export stripped of Exif).
|
||||
- At most two photos and two chunks per photo travel at once (four requests, half the
|
||||
server's eight per account). A call that got no answer, 429 or 503 is retried after 1, 2
|
||||
and 4 s; a completion refused with 409 `upload_state` (another completion is filing that
|
||||
upload) is read again after 1, 2, 4 and then every 8 s, about a minute in all. Two copies
|
||||
of one photo in a run go one after the other, so the second finds the first.
|
||||
- `alreadyExists` with a frame is *Already there*; without one, *Deleted before*, whose row
|
||||
offers *Upload again* between runs (the `restore` above). A quota or permission refusal
|
||||
(401, 403), no space (507), the target sequence gone (404 `sequence`) or a failed self-test
|
||||
stops the remaining photos (*Not sent*) with the server's message. A new target sequence is
|
||||
created once (`POST /sequences`, never retried) and stays the dialog's target.
|
||||
- Cancel aborts, stops the worker and deletes the uploads the run started and did not
|
||||
complete; a photo that failed otherwise keeps its upload receiving, so the next run resumes
|
||||
it, and abandoned uploads expire after the upload retention. While photos are sent, leaving
|
||||
the page asks first and Esc is held, so only Cancel stops the run.
|
||||
- Only files whose extension `server/info` lists, not empty, not starting with `.` and no
|
||||
larger than `limits.maxUploadBytes` are taken. Folders dropped on the dialog are counted
|
||||
(*Folders skipped*) and left out, and it has no folder picker: importing a whole folder
|
||||
stays a desktop feature (R9).
|
||||
|
||||
### 14.5 Sync
|
||||
|
||||
Manifest diff per sequence: originals are content-addressed (never conflict); settings and
|
||||
@@ -1105,6 +1281,22 @@ are uploaded on request. "Edit with proxies, render where the originals are": a
|
||||
open a remote sequence with proxies only and submit a render job to the server, which runs
|
||||
it itself (managed formats) or hands it to a render node.
|
||||
|
||||
Removed photos (amended 2026-10-26, R6). A photo deleted on one side leaves a tombstone there
|
||||
(sidecar `removed`, index `frame_removals`, manifest `removed`), and sync never offers it back:
|
||||
no upload of a photo the server deleted, no download of one this PC deleted; sync never
|
||||
deletes local files either way. A tombstone leaves a photo out only while its own side holds
|
||||
no matching photo (by hash, or by size and capture time while unhashed), so a duplicate that
|
||||
stays or a file put back by hand still syncs. A photo replaced by a converted file (R7)
|
||||
counts as its replacement on both sides, an alias followed up to 8 steps, for the
|
||||
comparison, the transfers and the frame positions. Content known only once hashed is checked
|
||||
then: a download skips an unhashed server frame this PC deleted (or holds as its
|
||||
replacement), and an upload skips an unhashed local frame the server deleted and then runs
|
||||
the archive verify, so the index gets the hashes and the next comparison leaves it out.
|
||||
Known limitations: until the server verifies such a frame, the sync table still counts it as
|
||||
missing here and *Download* fetches and drops it each time; a photo never hashed whose
|
||||
original was already missing when it was deleted leaves no tombstone, so a copy elsewhere
|
||||
(another PC, a card) is not known to be deleted and can come back.
|
||||
|
||||
### 14.6 Job engine
|
||||
|
||||
Persistent queue in the DB; jobs run one at a time, and the parallelism (configurable,
|
||||
@@ -1209,19 +1401,22 @@ available and says so in the job log.
|
||||
┌─────────────┬────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Chronos │ Dashboard │
|
||||
│ ● Dashboard │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
|
||||
│ Users │ │ 9.4 TB │ │ 412 seq │ │ 3 jobs │ │ 2 nodes │ │
|
||||
│ Archive │ │ of 16 TB │ │ 618k pho │ │ running │ │ online │ │
|
||||
│ Jobs │ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │
|
||||
│ Logs │ Storage by year ▁▂▃▅▇█ Uploads last 30 days ▂▁▃▆▇▅▂ │
|
||||
│ │ Recent: alberto uploaded 1,020 frames · node "studio-pc" rendered 4K HEVC │
|
||||
│ Library │ │ 9.4 TB │ │ 412 seq │ │ 3 jobs │ │ 2 nodes │ │
|
||||
│ Users │ │ of 16 TB │ │ 618k pho │ │ running │ │ online │ │
|
||||
│ Archive │ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │
|
||||
│ Jobs │ Storage by year ▁▂▃▅▇█ Uploads last 30 days ▂▁▃▆▇▅▂ │
|
||||
│ Logs │ Recent: alberto uploaded 1,020 frames · node "studio-pc" rendered 4K HEVC │
|
||||
│ │ │
|
||||
│ Settings │ │
|
||||
│ (A) admin ⏻ │ │
|
||||
└─────────────┴────────────────────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
Pages: Login · Dashboard · Users (table; create/edit/disable/reset/roles/quota) · Archive
|
||||
(path, templates, proxy policy, scan/rebuild/verify, stats) · Jobs (two tabs in the header,
|
||||
amended 2026-10-26, R10: *Queue*, the queue/history/nodes with cancel/retry, where
|
||||
Pages: Login · Dashboard · Library (amended 2026-10-26, R6; below) · Users (table;
|
||||
create/edit/disable/reset/roles/quota) · Archive (path, templates, proxy policy,
|
||||
scan/rebuild/verify, stats, and *Trash*, which opens the Library's trash view; R6) · Jobs
|
||||
(two tabs in the header, amended 2026-10-26, R10: *Queue*, the queue/history/nodes with
|
||||
cancel/retry, where
|
||||
`#/jobs?job=<id>` opens a job's log and a job a schedule queued carries a *Scheduled* pill
|
||||
linking to it; *Scheduled* (`#/jobs?tab=schedules`), every schedule of the server, its
|
||||
system schedules first and marked System, with when it runs (in the panel's language), its
|
||||
@@ -1249,6 +1444,68 @@ desktop rail, the choice kept in the browser and the links' tooltips then naming
|
||||
on narrow screens it stays the top bar, Settings at its end (amended 2026-10-16, R1;
|
||||
2026-10-26, R4). Settings has the desktop's gear icon (§12.1).
|
||||
|
||||
Library (amended 2026-10-26, R6), the second page of the sidebar. The panel manages the
|
||||
library and never edits a video: it has no project settings and no render. It browses,
|
||||
views and deletes sequences and photos, restores them from the archive's trash and runs mass
|
||||
operations; it queues no deep analysis (the API's `bulk/jobs` takes `deep`).
|
||||
- `#/library` lists the sequences as cards (DESIGN §4: 16:9 cover, count badge, status
|
||||
glyphs, check box) or a list, the choice kept in the browser; search over title, camera
|
||||
and tag; Year, Camera, Status and Tag filters whose menus come from
|
||||
`GET /sequences/facets`, each value with its count (a camera named as on the desktop, the
|
||||
brand once), Status offering analysed or not, proxies or none, rendered or not, verified or not,
|
||||
warnings and errors; sort newest, oldest, title, most photos, largest; *Load more* by
|
||||
cursor. The filters live in the address, so Back from a sequence finds them again. A cover
|
||||
is the sequence's thumbnail at an address that changes with its cover and its frames
|
||||
version, cached an hour.
|
||||
- Selection by check box, Shift range or the keyboard (one tab stop for the grid, arrows,
|
||||
Space, Shift+Space, Enter opens, Ctrl+A, Esc), and *Select all N* of the filter. The
|
||||
selection's bar: *Analyse*, *Proxies*, *Thumbnails* and *Verify* (one job per 1,000
|
||||
sequences, the toast saying how many were queued), *Tags…* (add and remove), *Export CSV*
|
||||
(title, camera, photos, bytes, first and last capture, tags; built in the browser, a cell
|
||||
a spreadsheet would run as a formula starting with an apostrophe) and *Delete…* (a dry
|
||||
run, then a dialog listing the sequences that cannot go with why, then those that go, at
|
||||
most 500 names; no typed confirmation, since the trash keeps them). Bulk requests are sent
|
||||
in chunks of 1,000.
|
||||
- `#/library?id=<sequence>`: title (edited in place), tags, rating and notes, saved with the
|
||||
same conflict-checked PATCH as the desktop; its facts; its photos in pages of 500 with lazy
|
||||
thumbnails; a photo viewer (the proxy, else the thumbnail; ← and →, Esc; time, exposure,
|
||||
aperture, ISO, focal length, size in pixels and bytes, format, flags, SHA-256); *Set
|
||||
cover*; *Download* the original; *Delete…* of the selected photos (a dry run, then a
|
||||
confirmation that asks for their number to be typed when more than 20 go, the sequence's
|
||||
frames version sent so a changed sequence refuses); *Delete…* of the sequence; its
|
||||
renders, to download; *Add photos* (the upload dialog, R3).
|
||||
- `#/library?view=trash`, also opened from Archive: the trash's entries (kind, sequence,
|
||||
photos, size, deleted by and when), each with *Restore*, whose answer says which photos
|
||||
stayed and why; *Empty…* measures the trash (dry run), lists what goes, asks for the word
|
||||
"empty" in the panel's language (any case), sends back the plan's fingerprint and follows
|
||||
the empty-trash job to its end, reading it again after a reconnect of the events or when
|
||||
it ended before the request answered.
|
||||
- The pages follow `sequenceChanged` and `jobState`: the list reads every loaded row again
|
||||
(1,000 a request) with its filters; a sequence reads itself and its renders again after a
|
||||
job ends (at most every 1.5 s), redraws only what changed, keeps the keyboard focus, and
|
||||
asks again for thumbnails not built yet (from 2 s up to 60 s apart, at most 8 times).
|
||||
`jobState` carries no kind or target, so a page reacts to any job that ends.
|
||||
- The audit log and the Dashboard name photo deletions, trash restores and emptyings asked
|
||||
for.
|
||||
|
||||
Upload (amended 2026-10-26, R3): Library › *Upload* (no sequence) and a sequence's *Add
|
||||
photos* open the upload dialog (§14.4), a module the pages import only on demand.
|
||||
- Target: the given sequence, or a choice between an existing sequence (a search box, then a
|
||||
list) and a new one (title optional), fixed once the first run starts.
|
||||
- Photos: the file picker (several files, the photo extensions only) or a drop on the dialog.
|
||||
Folders, files that are not photos (hidden dot files among them) and files above the size
|
||||
limit are counted in chips and left out.
|
||||
- Each photo shows its state: waiting, hashing %, starting, uploading %, verifying, uploaded,
|
||||
already there, deleted before (with *Upload again*), failed (the reason in the tooltip),
|
||||
cancelled, not sent; a total bar shows photos and bytes.
|
||||
- Buttons: *Upload*, which sends whatever is not on the server yet; *Cancel* while sending;
|
||||
*Close* otherwise. Esc closes only while nothing is being sent.
|
||||
|
||||
The panel's files (amended 2026-10-26, R6) are served with `Cache-Control: no-cache` and an
|
||||
ETag of their content: the browser asks again before each use and an unchanged file costs a
|
||||
304 (`If-None-Match` lists, weak `W/` tags and `*` count), so after an upgrade it never runs
|
||||
new modules next to old cached ones.
|
||||
|
||||
Storage (Dashboard and Archive) shows the space volume: the folder `CHRONOS_SPACE_PATH`
|
||||
names (§14.9) when it can be measured, else the archive's own volume. When a space path is
|
||||
in use and the archive's own volume (the write volume, where uploads land; on Unraid the
|
||||
@@ -1731,6 +1988,8 @@ questions asked and the answers; DECISIONS rows give the reasons.
|
||||
| 2026-10-26 | Owner review 2, R9 | §12.4, §13 | Import › Folder… can group the folder as *Whole folder*: one sequence per file format whatever the cameras and pauses, titled after the folder, with a session key per PC, folder and format so a repeated import adds to the same sequence; desktop only. |
|
||||
| 2026-10-26 | Owner review 2, R10 | §5, §6.2, §7, §12.5, §12.6, §12.8, §14.3, §14.6, §14.8, §14.9, §19.6 | Scheduled jobs: a Schedule entity (migration 0007, `jobs.schedule_id`) with an in-house recurrence form, a scheduler per host that claims runs by compare-and-set, with catch-up and DST rules; every timer that queued work is a visible system schedule (server: archive scan, upload clean-up every 6 h, index backup at 03:00, job history and audit log clean-ups; desktop: archive scan, daily index backup, housekeeping with cache trim), seeded once and kept as the user edits it; new Backup and Cleanup job kinds and duplicates/orphans report jobs; Jobs has Queue and Scheduled tabs on the desktop and the admin panel; `/api/v1/schedules` and the `scheduleChanged` event; one backup retention; the audit retention is the audit clean-up schedule's; Settings › Archive › Rescan every and the admin Settings' job history are gone; the trash is only reported, never emptied. |
|
||||
| 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. |
|
||||
|
||||
## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated)
|
||||
|
||||
|
||||
@@ -5,6 +5,57 @@ commits follow Conventional Commits (release notes are generated from them by `C
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
- Admin panel: **Library**, right after the Dashboard (owner review 2, R6). It manages the library and never edits a
|
||||
video: browse the sequences as cards or a list, search, filter by year, camera, status and tag (each with its
|
||||
count), sort, and load more; select with check boxes, Shift ranges, the keyboard or *Select all* of a filter; then
|
||||
Analyse, Proxies, Thumbnails, Verify, add or remove tags, export a CSV, or delete into the archive's trash after a
|
||||
dry run that lists what goes and what cannot, with why.
|
||||
- Admin panel: a sequence's page: title edited in place, tags, rating and notes; its facts; its photos with a viewer
|
||||
(←/→, Esc, the photo's details); set the cover, download originals and renders, delete photos (their number typed
|
||||
above 20) or the whole sequence. Nothing here edits the video.
|
||||
- Admin panel: the archive's **trash**, from the Library and from Archive: restore an entry, or empty the trash after
|
||||
a dry run and typing "empty"; the emptying runs as a job that erases exactly what the dry run showed.
|
||||
- Admin panel: **Upload** photos from the browser into an existing or a new sequence, with the file picker or by
|
||||
drag and drop (owner review 2, R3). Photos are hashed in the browser by a self-tested in-house SHA-256, dated from
|
||||
their Exif (else the file's time), sent in resumable chunks and verified by the server. Each photo shows its state,
|
||||
with a total, Cancel, and a warning before leaving the page while photos are sent. Folders are skipped: importing a
|
||||
whole folder stays on the desktop.
|
||||
- Deleted photos stay deleted: a tombstone in the sequence's sidecar and the index keeps sync, the Uploader, watch
|
||||
folders and older clients from bringing them back, also after the trash is emptied. A photo comes back only by
|
||||
restoring it from the trash or with *Upload again* on the panel. Sync never deletes your local files. Known
|
||||
limitations: a photo never hashed whose file was already missing when it was deleted leaves no tombstone, so a
|
||||
copy elsewhere (another PC, a card) can come back; on a PC, a photo deleted there that the server has not verified
|
||||
yet still counts as missing in the sync table, and *Download* fetches and discards it until the server verifies it.
|
||||
- Desktop: Archive › Maintenance › *Trash…* lists deleted photos beside deleted sequences, restores both (photos
|
||||
after a hash check, into a new sequence when theirs is gone), says why a photo stayed in the trash, and *Empty…*
|
||||
erases the trash for good after a dry run and typing the number of entries, through a new *Empty trash* job that
|
||||
refuses when the trash changed since. No schedule ever empties the trash.
|
||||
- API v1: `POST /api/v1/sequences/{id}/frames/delete`, `/api/v1/sequences/bulk/delete`, `/bulk/retag` and
|
||||
`/bulk/jobs` (up to 1,000 sequences a request, answered per sequence), `GET /api/v1/sequences/facets`,
|
||||
`GET /api/v1/sequences/{id}/thumb`, `rendered=true|false` on `GET /api/v1/sequences`, `/api/v1/archive/trash`
|
||||
(list, restore, empty with a dry run and its fingerprint), `removed` in the sequence manifest, `extensions` in
|
||||
`GET /api/v1/server/info`, `restore` on an upload's start and completion, and 409 `photo_removed`.
|
||||
|
||||
### Changed
|
||||
- **Upgrade:** the index (SQLite, or the server's PostgreSQL database) moves to schema 8 (migration 0008, photo
|
||||
tombstones) at the first start, one way: an older build refuses the upgraded index, so going back means restoring a
|
||||
copy made before the upgrade.
|
||||
- After photos are deleted from a sequence, its project's exclusions, hero and keyframes on those photos wait for
|
||||
them (a restore puts them back) and the others follow their photos; a cover whose photo went is cleared. Before,
|
||||
positions stayed where they were and could slide onto other photos.
|
||||
- Server: frame uploads whose file name starts with `.` (the `._` files a Mac leaves on cards, hidden files) are
|
||||
refused from every client, as the archive scan leaves them out.
|
||||
- Admin panel: its files are checked with the server before each use (`no-cache` with an ETag), so after an upgrade
|
||||
the browser never mixes new and old pages.
|
||||
- Admin panel: confirmations can list what they concern and ask for a name, a word or a count; arrows mirror in
|
||||
right-to-left languages, as on the desktop.
|
||||
- The audit log and the dashboard name photo deletions, trash restores and requests to empty the trash.
|
||||
|
||||
### Fixed
|
||||
- Server: a verify of chosen sequences (`POST /api/v1/jobs` with `verify`) failed at once, because it targeted the
|
||||
sequences instead of their archive.
|
||||
|
||||
## [0.1.0-rc.4] — 2026-10-27
|
||||
|
||||
### Added
|
||||
|
||||
@@ -473,3 +473,27 @@ One line per decision: date · decision · alternative · reason.
|
||||
| 2026-10-26 | `ServerSettingsDto` carries the log group as a nested `LogSettingsDto`; a `PUT` without it (an older panel) keeps the log settings, and saving applies them at once (`ServerLogging.Apply`). Desktop: Settings › Advanced gets six log rows, applied to the files at once and from the first log line of every launch (`AppLogging.Open`, also a launch that only hands over to the running Chronos), and Advanced gets a Reset section that restores them. (Owner review 2, R11.) | Flat DTO fields; apply the desktop's settings once the app has started | The group mirrors the panel's Logs group. The first line opens a file and prunes, so the defaults would delete what the user keeps longer. |
|
||||
| 2026-10-26 | Logging never fails what logs: `Log.Write` drops a line its sink throws on (anything but `OutOfMemoryException`), `TeeLogSink` isolates each sink, `FileLogSink` drops a line it cannot write (folder removed, disk full, file locked) and tries again at the next line without creating a removed folder again, and the server's `LoggerSink` drops the `AggregateException` Microsoft.Extensions.Logging throws. Before, an unwritable log left a failed job Running and could stop the job engine's worker and the scheduler's loop (seen as intermittent test failures). (Owner review 2, R10, R11.) | Let logging errors surface; create the folder again | Logging runs inside error handling (a job marked failed, a scheduler pass): the job's state and the next run matter more than a line. A removed log folder stays removed, its lines lost until the next start, rather than reappearing behind the user's back. |
|
||||
| 2026-10-26 | Setting a system schedule's age limit above 0 (Settings › Logs › Keep audit, or `CHRONOS_AUDIT_RETENTION_DAYS` at start) also ticks its default steps back on; while an environment variable fixes the age above 0, turning the schedule off, changing the age or unticking those steps is 409 `setting_locked`, and the panel disables those controls. The audit retention in force is 0 while the audit step is unticked. Keep audit and Jobs › Scheduled are last-writer-wins, like every panel setting. (Owner review 2, R10, R11.) | Leave the steps as edited; a separate lock per step | A limit set in Settings must take effect, and a variable's limit must not be undone from the panel. |
|
||||
| 2026-10-26 | Deleted photos go to `.chronos/trash/photos/<sequence id>-<yyyyMMddHHmmss>[-n]/originals/…` next to a `<name>.json` record: each photo's frame record, each file's former place, size and SHA-256, the sequence's title and folder, who deleted them, when, and the kind (`photos`, or `replaced` for a later conversion). An XMP companion goes with its photo when no photo that stays shares its name (listed once per folder, case-insensitively). The trash lists these entries as `photos-<folder>` beside the deleted sequences (`TrashKind` Sequence, Photos, Replaced). A deletion may name the frames version its photos were read at (refused with `frames_conflict` when the frames changed since) and is refused when every photo would go (`would_empty`). (Owner review 2, R6.) | Delete the files; flag the frames excluded; a trash in the index only | BRIEF §0.2 rule 8: nothing is erased until Empty, and the sidecars stay the truth. One listing serves restore and empty for both kinds; a sequence without photos is deleted whole, which keeps its settings and renders. |
|
||||
| 2026-10-26 | A photo deletion writes `remove.pending.json` in the sequence's `.chronos` before its first move, and its record as `<name>.json.pending`, which the trash never lists, restores or empties, until the sidecar is written. A failed move or sidecar write puts back what moved. A crash in between is settled by the next writer of the sequence (`SequenceWriter.ReadLocked`; also a scan and a sequence delete whenever a journal exists): while the sidecar still lists the frames, the files go back and the record and folder go (a file whose place is taken again stays, and its entry is then listed); otherwise the record takes its own name. Once the sidecar is written the deletion stands even if the index cannot follow (logged; the next scan resyncs it). (Owner review 2, R6.) | Publish the record first; change the index first | A crash never leaves a half-deleted sequence, nor half an entry that Restore or Empty could act on. |
|
||||
| 2026-10-26 | A restore into an existing sequence writes `restore.pending.json` before its first move and checks cancellation only before that. Another writer settles it under the sequence's lease and the entry's (taken with `TryAcquire`, owner `chronos@<machine>`): before the sidecar was written the files go back into the entry, after it the record drops the photos the sidecar lists. While the entry is busy (being emptied or restored) the journal stays, another restore into that sequence and the sequence's deletion are refused (`sequence_busy`), and scans do not reconcile it. A restore into a new sequence stages each original in `<entry>/.restoring/<path>` (never `.chronos/staging`, which maintenance sweeps), puts it back on any failure, checks cancellation only between photos and rewrites the record after each photo it files; the next restore of the entry first puts back what a crash left staged. Restore and Empty share the entry's lease `trash-<name>`. (Owner review 2, R6.) | One shared staging folder erased after the restore; no journal | Two restores of entries of one deleted sequence, maintenance and an emptying never touch each other's originals, and no step of a restore can lose one. |
|
||||
| 2026-10-26 | A restore re-hashes every file against its record. A photo stays in the trash with its reason when a file no longer matches (`mismatch`), when its files could not move (`not_moved`), when an intact frame of the sequence holds its content (`in_sequence`; a twin that is missing or damaged does not count, and the photo comes back as its own frame with its id) or when its original was missing at deletion (`no_file`); when no file matches, nothing moves (`TrashMismatchException`, 422 `trash_mismatch`). The others go back with the same frame records, by capture time, a name taken since getting `_2`, `_3`… with its companion following, and their tombstones go. When the sequence is gone the photos go into a new sequence through the ingest with the session key `trash:<sequence id>`, so every entry of that sequence joins one; a companion that cannot follow becomes a record leftover, counted, erased by Empty, never restored. A sequence entry goes back as its folder is, without hashing. The desktop and the API say the reasons (`keptReasons`, one sentence each). (Owner review 2, R6.) | Refuse when the sequence is gone; one sentence for every kept photo | Photos are never stranded, and the user learns why one stayed. |
|
||||
| 2026-10-26 | Tombstones are the sidecar's `removed` list (left out when empty, kept by older builds), copied into `frame_removals` (migration 0008) at every index sync without the content a frame of the sidecar holds again, and gone with the sequence row. A deletion writes one only for a SHA-256 no photo that stays holds. They outlive emptying the trash; a deleted sequence's record keeps them for a restore whose folder lost its sidecar, and a sidecar rebuilt from the photos takes the index's back. Filing that content into the sequence again (an import, a restore, an explicit upload again) drops its tombstone. (Owner review 2, R6.) | Tombstones in the index only, or in the trash records | A rebuild from the sidecars keeps them; a duplicate that stays was not removed; an emptied trash must not let sync bring the photo back. |
|
||||
| 2026-10-26 | Photos never hashed are hashed as they go, for their tombstone. Frames that stay are looked at only when never hashed and of a deleted photo's size: a SHA-256 of their first and last 64 KiB is compared first, the whole file is read only when those match, and the full hash is kept in the sidecar and the index. A dry run blocks a never-hashed original that is on disk but cannot be read (409 `photo_unreadable`; it opens at most 256 of them, and the deletion's own hashing refuses one past those as `folder_in_use`, nothing moved). Known limitation: a never-hashed photo whose original is already missing is deleted without a file and without a tombstone (its record stays, a restore reports `no_file`, Empty erases it), so a copy elsewhere can come back; the edge prints are not stored, so N such originals of one size cost 128 KiB × N reads per deletion until a verify hashes them. (Owner review 2, R6.) | Refuse to delete a photo without a hash; hash every frame that stays | A file that is gone has no content to name, and blocking it would make it undeletable; reading only likely twins keeps a deletion among raw files quick. |
|
||||
| 2026-10-26 | When indexed frames vanish from a sidecar (a deletion here, or by another process sharing the archive), `ProjectPositions` translates the project's positions by photo: those on the photos that went wait as pending frames and come back with a restore, the others follow their photos, and the settings version stays; a hero frame id whose frame is gone is cleared. A deletion or restore clears light and deep analysis, thumbnails and proxies in the sidecar and the row and queues them again: light analysis always, deep analysis at background priority when the sequence had one, thumbnails and proxies always on the server and on the desktop when it had them. Proxies are renamed and `thumbs.pack` re-keyed (`ThumbPackWriter.Rekey`, skipped while a thumbnail pass holds the pack) to follow their frames, and the server's thumbnail locator checks the fingerprint of never-hashed frames too. (Owner review 2, R6.) | Keep positions as they were (the earlier rule); rebuild every proxy and thumbnail | Exclusions, the hero and keyframes must not slide onto other photos; proxies and thumbnails are keyed by index, so moving them lets the passes reuse them and never shows a neighbour's thumbnail. |
|
||||
| 2026-10-26 | Emptying the trash is only an explicit job behind a dry run and a fingerprint. The dry run measures each entry on disk; the fingerprint is the SHA-256 of `kind\|name\|files\|bytes\|deletedAt ticks` per entry, in name order. The `EmptyTrash` job (stored as 18, user priority, normal level in the priority queue) keeps each entry's name and fingerprint: at its start any change of the plan erases nothing, a resumed job checks each remaining entry alone, and under its lease each entry is read and measured again and kept if it changed; an entry moves into `trash/.erasing` and is then deleted, leftovers going at the next emptying; a `replaced` entry goes only while its replacements still match their SHA-256 (re-hashed); a kept entry fails the job at the end. No schedule and no clean-up step empties the trash. The desktop asks for the number of entries to be typed, the panel for the word "empty" in its language. (Owner review 2, R6; BRIEF §0.2 rule 8.) | Erase in the request; a scheduled or age-based emptying | The only erase of user files must be an explicit, confirmed, verified and resumable action that erases exactly what the user saw. |
|
||||
| 2026-10-26 | Trash API under ManageArchive. Entry names are `<id>[-<time>[-n]]` (a sequence) or `photos-<id>-<time>[-n]`, and the API takes only that shape, never a path. Offline, the listing and the emptying answer 503 `archive_offline` (the erase also when read-only). 422 `trash_mismatch` is for an entry none of whose files matches its record, or a sequence entry whose own sidecar no longer names it; 409 `sidecar_mismatch` for a damaged or foreign sidecar of the sequence the photos return to (also on `frames/delete`, and on sequence deletes that settle a journal first). The emptying request is audited `trash_empty_requested` (entries, bytes, names, the job); what was erased is in the job's log. (Owner review 2, R6.) | Names with `/`; an empty listing when offline; audit `trash_emptied` at the request, or from the job | A single URL segment rules out path traversal; an unreachable archive is not an empty trash; an audit entry must not claim an erase the job may still refuse, and the job has no hook into the server's audit. |
|
||||
| 2026-10-26 | `POST /sequences/{id}/frames/delete` needs the Delete permission and the owner or an admin, like `DELETE /sequences/{id}`; each block has its code (`frames_conflict`, with the frames version now, only for changed frames; `sequence_busy`, `would_empty`, `photo_unreadable`, `archive_offline`), and it takes 1–100,000 ids under its own body limit (`FrameDeleteBodyLimit`, 100,000 × 48 + 4096 bytes, about 4.8 MB) set as routing metadata like the proxy route's: a third exception to the 2026-10-02 1 MiB rule, after chunks and proxies. (Owner review 2, R6.) | Lower the id limit to about 20,000 | A sequence of 100,000 photos must be able to lose most of them in one request; the 1 MiB limit stopped at about 26,900 ids. |
|
||||
| 2026-10-26 | Bulk routes take 1–1,000 distinct ids per request and answer each id in order, `ok` or `skipped` with the code and its sentence: delete moves each sequence whole as `DELETE /sequences/{id}` does (another user's is `forbidden` unless the caller is an admin), retag is the PATCH tag edit with up to 3 attempts on a conflict, and jobs queue one job at user priority. A verify of sequences targets their archive with the sequences in its parameters (`ArchiveJobs.Verify`), which also fixes `POST /jobs` with `verify`, whose job failed at once. The panel sends 1,000 ids a request (one job per 1,000 sequences, the toast counting them), lists every page of a filter for *Select all*, and refreshes every loaded row 1,000 a request. (Owner review 2, R6.) | No limit; a server-side "all of the filter" selection | Bounded requests and answers; the same rules as the single-sequence endpoints. |
|
||||
| 2026-10-26 | Uploads keep deleted photos out: a start whose SHA-256 the target sequence tombstoned answers `alreadyExists` without a frame id, unless a frame of the target still holds that content (a stale tombstone refuses no repair); the completion checks again after the upload stops receiving, and the ingest a third time under the sequence's lease, which a deletion takes (`IngestRequest.RefuseRemoved`), answering 409 `photo_removed` with the upload cancelled and its files deleted (`ChronosClient` returns null for it). Only an explicit user action brings such a photo back: `StartUploadRequest.Restore` and `complete?restore=true` (a query, so the uploads table needs no migration), sent by the panel's *Upload again* on a *Deleted before* row between runs, never by sync, the Uploader or a card import; with it no stand-in in another sequence counts, and filing the photo drops its tombstone, also after Empty. The desktop has no such path. (Owner review 2, R3, R6.) | Check at start only; store the flag on the upload; only a restore from the trash brings a photo back | An old client syncing a copy, or a watch folder, must not undo a deletion, and no deletion may land between the last check and the commit; a user who uploads a photo again on purpose means it, also once the trash is emptied. |
|
||||
| 2026-10-26 | Sync tombstones: a `deleted` tombstone keeps the photo from being offered to the side that deleted it (no upload of what the server deleted, no download of what this PC deleted); a `replaced` one is an alias, followed up to 8 steps, compared, transferred and translated as the replacement. A tombstone leaves a photo out only while its side holds no matching photo (by hash, or by size and capture time while unhashed). An unhashed server frame is fetched, hashed and dropped when this PC deleted it; an unhashed local frame the server deleted is not sent, and the archive verify then runs so the next comparison leaves it out. Positions parked for a photo the other copy deleted stay pending; sync never deletes local files. Known limitation: until the server verifies such a frame, the row counts it as missing here and *Download* fetches and drops it each time (fixing it needs size and capture time in the tombstones). (Owner review 2, R6.) | Drop parked positions; delete the local copy; tombstones by size and time now | A deletion on one side is not undone by the other, neither side loses a file, and a restore places the parked positions again. |
|
||||
| 2026-10-26 | The server refuses frame uploads whose file name starts with `.` (400 `invalid_file_name`) from every client, and the panel's dialog counts such files as not photos. (Owner review 2, R3.) | Leave them to each client | The archive scanner leaves hidden files out, so an upload must not file what an import of the same folder would not; the AppleDouble `._` files a Mac leaves on cards were filed through the server import before. |
|
||||
| 2026-10-26 | The panel's Library is the second sidebar entry, with the Image icon (the Dashboard keeps the four tiles of the mockup). The trash is a view of the Library (`#/library?view=trash`, `pages/library/trash.js`) that Archive opens with a *Trash* button. The upload dialog is a module the Library and a sequence import on demand (`import("../upload.js")`, exporting `openUpload({ api, sequence, onDone })`); a test checks that nothing imports it statically and, lexing every admin module, that each top-level function that uses `api` takes it. (Owner review 2, R6, R3.) | A Trash panel inside Archive; static imports | One route and module reachable from both places, beside the deletions that fill it; other pages never load the upload code; CI has no JavaScript engine, so a structural check catches an out-of-scope `api` like the one that broke every web upload during this phase. |
|
||||
| 2026-10-26 | New `GET /api/v1/sequences/facets` (years newest first, camera models most used first with `PathTemplate.CameraName` as their label, tags by key with their first spelling, each with its count, from the server archive's rows) and `rendered=true\|false` on `GET /sequences`. Covers come from `GET /sequences/{id}/thumb` (the hero's thumbnail, else the first frame's; `private, max-age=3600`, ETag) at `?v=<hero>-<framesVersion>`. (Owner review 2, R6.) | Menus built from the loaded page; no cover endpoint | The menus must offer exactly the values the filters take without reading every sequence; a new cover or other photos change the address, while edits of title, tags or rating keep the cached image. |
|
||||
| 2026-10-26 | Panel confirmations: deleting photos asks for their number to be typed when more than 20 go; emptying the trash asks for the localised word "empty" (any case); moving sequences to the trash asks for nothing typed, its dialog listing at most 500 names, the blocked first with why. CSV export is built in the browser from the sequences the page knows (the selection, or all of the filter after *Select all*): ISO dates as recorded, bytes, localised headers, and a cell starting with `=`, `+`, `-`, `@`, tab or CR prefixed with an apostrophe. Selectable grids (cards, list rows, photos) are listboxes with one tab stop; the photo grid stays left to right in right-to-left languages. (Owner review 2, R6.) | A typed confirmation everywhere; a server CSV endpoint | Moving to the trash is undone by Restore, erasing is not; typing a count makes a large deletion's size read; a word is checked the same way in every language; a CSV must be safe to open in a spreadsheet; hundreds of tab stops would make the keyboard useless. |
|
||||
| 2026-10-26 | The panel's pages follow `sequenceChanged` and `jobState`. `jobState` carries no job kind or target, so a sequence page reads itself and its renders after any job ends (at most every 1.5 s) and redraws only what changed, keeping the focus; thumbnails not built yet are asked again from 2 s up to 60 s apart, 8 times at most. After the WebSocket reconnects, `api.events` gives the page a client-only `{ type: "reconnected" }`, on which the trash reads the emptying it follows again (`GET /jobs/{id}`; a job no longer listed is dropped). (Owner review 2, R6.) | Add kind and targets to `jobState` now; refresh on every event | No protocol change in this phase, and archive-wide jobs change every sequence anyway; events lost during a reconnect must not leave Empty disabled. |
|
||||
| 2026-10-26 | The admin panel's files are served with `Cache-Control: no-cache` and their content ETag; `If-None-Match` honours lists, weak `W/` tags and `*`, and an unchanged file answers 304. (Owner review 2, R6.) | `public, max-age=3600` (before); versioned module addresses | With an hour of cache, a browser that loaded the panel before an upgrade could run new modules next to old ones; revalidation sends again only what the upgrade changed, with no build step. |
|
||||
| 2026-10-26 | The web upload hashes with an in-house incremental SHA-256 (`sha256.js`, FIPS 180-4, `Int32Array`, update/digest) in a same-origin module worker (`hash-worker.js`) that reads `file.slice()` in 8 MiB blocks and reports progress. The CSP is unchanged: the panel's policy has no `worker-src` or `child-src`, so the worker falls under `script-src 'self'`, which a test pins. About 120 MB/s under V8 (node 24). (Owner review 2, R3.) | `crypto.subtle.digest`; a JavaScript library | `crypto.subtle` digests one whole buffer, so a large RAW would sit in memory, and the rules allow no third-party code; hashing off the page's thread keeps the dialog responsive. |
|
||||
| 2026-10-26 | The browser's SHA-256 self-tests and fails closed: before its first hash each worker runs the FIPS 180-4 known answers (the empty message, "abc", the 448- and 896-bit messages, one million "a"), whole and fed in uneven pieces, and where `crypto.subtle` exists compares a 1 MiB random buffer with it; on any mismatch every hash is refused and the dialog says so and uploads nothing. The server still verifies every upload. CI has no JavaScript engine, so the vectors, 300 random lengths against `node:crypto` and deliberately broken copies were run once with node 24. (Owner review 2, R3.) | Trust the implementation; let the server's 422 catch a wrong hash | A wrong hash would be refused only after the whole file was sent, and a browser engine fault would fail every upload one by one. |
|
||||
| 2026-10-26 | No folder upload on the web panel: the dialog has no `webkitdirectory` or directory picker (a test checks), and folders dropped on it are detected with `webkitGetAsEntry`, counted as *Folders skipped* and left out. Only files whose extension `server/info` lists (the new optional `extensions`, from `ImageFormatInfo.Known`, the scanner's list), not empty and within `limits.maxUploadBytes`, are taken. (Owner review 2, R3, R9.) | Upload folders; a list of extensions in JavaScript | The owner's request: importing a whole folder stays on the desktop. A copy of the list would drift, and the archive would ignore files that are not photos. |
|
||||
| 2026-10-26 | Web upload pacing: two photos and two chunks per photo at once (four of the server's eight chunks per account); a call with no answer, 429 or 503 retried after 1, 2 and 4 s; 401, 403, 507, an unknown target (404 `sequence`) and a failed self-test stop the remaining photos (*Not sent*) with the server's message; a completion refused with 409 `upload_state` is read again after 1, 2, 4 and then every 8 s, about a minute; two copies of one photo in a run go one after the other. A new target is created by one `POST /sequences`, never retried, and stays the dialog's target. Each start carries the capture time: the Exif DateTimeOriginal of a JPEG or TIFF-based file (from its first 256 KiB, every offset checked), else the file's modification time as local wall time, which the ingest uses only for a photo with no time of its own. (Owner review 2, R3.) | Send everything at once; `capturedAt` null | Room for the user's other clients; a refusal that would refuse every photo stops at once; a lost answer must not create two sequences; photos without Exif keep their order instead of taking their arrival time. |
|
||||
| 2026-10-26 | Cancel deletes, Close keeps: Cancel aborts the requests, stops the worker and deletes the uploads the run started and did not complete; an upload that failed otherwise (507 at completion, say) stays receiving and the next run resumes it (same user, hash, size and sequence), abandoned ones expiring after the upload retention. During a run Esc is held by a capture-phase listener on the document and leaving the page asks first, so only Cancel stops it. (Owner review 2, R3.) | Delete every unfinished upload on Close; let Esc close the dialog | Cancel frees the space at once; a failure the user can fix is resumed without sending the photo again; a stray Esc must not discard uploads. |
|
||||
+12
-2
@@ -16,7 +16,7 @@ by its `windows` job once a Windows runner is registered (`WINDOWS_RUNNER`), and
|
||||
| 8 Release readiness | Release pipeline end to end (installers, portable and server zips, SHA256SUMS, release notes, optional signing, server image in the Gitea container registry, optional separate releases repository), 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). The installer test (silent install of the packed installers, run, upgrade in place, uninstall: files, Add/Remove Programs, shortcuts, file type, user data kept, exit codes) runs in CI's `windows` job on a Windows runner. Pending: 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. 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, `CHRONOS_PRIORITY_QUEUE`) pauses lower jobs and resumes them by themselves; `CHRONOS_PARALLELISM` replaces `CHRONOS_WORKERS`. Phase 3a done: the rail is 200 px and collapses to icons with ≡ or Ctrl+B (tooltips then name the sections, the choice saved at once); the admin panel's sidebar is 256 px and collapses the same way. Phase 3b done: the Sequence section is now Edit, one sequence at a time chosen in a picker inside the section (Change sequence, Ctrl+O; the sequence edited last selected first), and the editor's tabs are the steps of a guided, freely navigable path from a new Analysis step (every finding with the step that deals with it) to Export, each step showing where it stands, with Previous and Next. Next, after owner review 2 (the owner's order): phase 4, the visual crop locked to the output's proportions (R5) and mirroring, 90° rotations, straightening and colour filters (R6). |
|
||||
| 8.2 Chronos on Gitea | Done (request: `docs/requests/2026-10-23-chronos-gitea.md`): Titano renamed Chronos everywhere, translations' grammar included; repository, update check, links, issue forms and registry moved to the self-hosted Gitea; Gitea Actions CI, release, nightly image and performance workflows for the Linux runner, with the Windows programs cross-compiled and checked (`pe-check`); new `Chronos.Tools` commands `zip`, `gitea-release`, `postgres-ci`, `pe-check`. Pre-releases `v0.1.0-rc.1` and `v0.1.0-rc.2` (the update check builds its links from `ChronosReleasesUrl`, since Gitea's use its LAN ROOT_URL) published; `REGISTRY_TOKEN` is set and the `v0.1.0-rc.2` server image is in the registry. |
|
||||
| 8.3 Owner review 2 | In progress (request, answers and plan: `docs/requests/2026-10-26-owner-review-2.md`). Phase 1 done and released as `v0.1.0-rc.3` (one adversarial review round, 19 findings fixed; strings in all 38 languages): `:latest` follows the highest stable release, or the highest pre-release while none is stable (`Chronos.Tools release-channels`), `:nightly` stays the nightly build of `main` (R1); `CHRONOS_SPACE_PATH` and the Unraid template's *Array view* (`/mnt/user0/<share>` read-only at `/space`) make the admin panel show the array's free space, the cache apart as *Write volume*, the file system in the tooltip, and completing an upload checks the archive volume first (507, resumable) (R2); the Settings icon is a toothed gear and the admin panel docks Settings at the foot of its sidebar (R4); About is the last page of Settings on the desktop and the last group of Settings on the admin panel (R5); Import › Folder… › *Whole folder* imports a folder as one sequence per format, titled after the folder (R9). Phase 2 done and released as `v0.1.0-rc.4` (one adversarial review round, 35 findings fixed; strings in all 38 languages): scheduled jobs (R10) — schedules (migration 0007) with an in-house recurrence form, one scheduler per host claiming runs by compare-and-set with catch-up, and Jobs › Scheduled on the desktop and the admin panel (`/api/v1/schedules`, `scheduleChanged`); every timer that queued work is a visible system schedule (server: archive scan, upload clean-up every 6 h, index backup at 03:00, job history and audit log clean-ups; desktop: archive scan, daily index backup, housekeeping with cache trim), the archive still scanned at start; new Backup and Clean-up jobs, duplicates and orphans reports as jobs, one backup retention, the trash only reported; log settings (R11) — file and console levels, retention, file and total size limits, daily or hourly rotation, audit retention (the audit clean-up schedule's) and the diagnostics share in the admin panel's Settings › Logs (`CHRONOS_LOG_*`, `lockedBy`) and the desktop's Settings › Advanced; the server's files take Debug and Trace again, and logging never fails a job. |
|
||||
| 8.3 Owner review 2 | In progress (request, answers and plan: `docs/requests/2026-10-26-owner-review-2.md`). Phase 1 done and released as `v0.1.0-rc.3` (one adversarial review round, 19 findings fixed; strings in all 38 languages): `:latest` follows the highest stable release, or the highest pre-release while none is stable (`Chronos.Tools release-channels`), `:nightly` stays the nightly build of `main` (R1); `CHRONOS_SPACE_PATH` and the Unraid template's *Array view* (`/mnt/user0/<share>` read-only at `/space`) make the admin panel show the array's free space, the cache apart as *Write volume*, the file system in the tooltip, and completing an upload checks the archive volume first (507, resumable) (R2); the Settings icon is a toothed gear and the admin panel docks Settings at the foot of its sidebar (R4); About is the last page of Settings on the desktop and the last group of Settings on the admin panel (R5); Import › Folder… › *Whole folder* imports a folder as one sequence per format, titled after the folder (R9). Phase 2 done and released as `v0.1.0-rc.4` (one adversarial review round, 35 findings fixed; strings in all 38 languages): scheduled jobs (R10) — schedules (migration 0007) with an in-house recurrence form, one scheduler per host claiming runs by compare-and-set with catch-up, and Jobs › Scheduled on the desktop and the admin panel (`/api/v1/schedules`, `scheduleChanged`); every timer that queued work is a visible system schedule (server: archive scan, upload clean-up every 6 h, index backup at 03:00, job history and audit log clean-ups; desktop: archive scan, daily index backup, housekeeping with cache trim), the archive still scanned at start; new Backup and Clean-up jobs, duplicates and orphans reports as jobs, one backup retention, the trash only reported; log settings (R11) — file and console levels, retention, file and total size limits, daily or hourly rotation, audit retention (the audit clean-up schedule's) and the diagnostics share in the admin panel's Settings › Logs (`CHRONOS_LOG_*`, `lockedBy`) and the desktop's Settings › Advanced; the server's files take Debug and Trace again, and logging never fails a job. Phase 3 implemented; release pending (after two adversarial review rounds, their findings fixed; the new strings are in `en` and `it`, the other 36 languages still to translate): the admin panel manages and never edits (R6) — a Library page (facets filters, cards or list, keyboard selection, mass Analyse, Proxies, Thumbnails, Verify, Tags, Export CSV and Delete, 1,000 sequences a request), a sequence's page (inline title, tags, rating, notes, photo viewer, cover, downloads, photo delete) and the trash view (Restore, Empty… behind a dry run, the typed word and a fingerprint); photos deleted into `trash/photos` under crash-safe journals with tombstones in the sidecar and `frame_removals` (migration 0008), so sync and uploads never bring them back unless restored or uploaded again on purpose; trash kinds, restore reasons and the `EmptyTrash` job on the desktop's Trash… too (typed entry count); the panel's files revalidated (`no-cache`, ETag); upload from the panel (R3) — file picker or drop, no folders, a self-tested in-house SHA-256 in a module worker, Exif capture time, resumable chunks. Known limitations: a never-hashed photo whose file was already missing is deleted without a tombstone; an unhashed server frame of a photo deleted on a PC stays *missing here* until the server verifies it; `jobState` carries no kind, so panel pages refresh after any job. |
|
||||
| 9 Monetization | Not started: requires explicit approval (§22). |
|
||||
|
||||
## Verification (2026-10-12)
|
||||
@@ -78,6 +78,15 @@ src/Chronos.App/bin/Release/net10.0-windows/Chronos.exe --capture out/screenshot
|
||||
`server-yyyyMMdd-HH.log` with Debug lines, no restart; with `CHRONOS_LOG_LEVEL` set the two levels are read-only
|
||||
and their tooltip names the variable. Desktop: Settings › Advanced › *Log level* Debug, *Rotation* Hourly, then
|
||||
*Logs* › *Open*.
|
||||
- Admin panel Library: *Library* › filter by year, camera, status or tag, select cards (check box, Shift+click, or
|
||||
Space and Shift+Space) and try *Tags…*, *Verify* or *Delete…* (dry run first); open a sequence, open a photo (←/→,
|
||||
Esc), select 21 photos › *Delete…* (type their number), then the Library's *Trash* › *Restore*, or *Empty…*
|
||||
(type "empty") and watch the job end. Re-uploading a deleted photo from the Uploader or sync does not bring it back.
|
||||
- Web upload: Library › *Upload* › *New sequence*, drop a few JPEGs and a folder › *Upload*: one *Folders skipped*
|
||||
chip, progress per photo, *Uploaded*; upload them again: *Already there*; delete one and upload it again: *Deleted
|
||||
before*, whose *Upload again* files it on the next *Upload*. Esc does nothing while photos are sent.
|
||||
- Desktop trash: Archive › Maintenance › *Trash…* lists photo entries beside deleted sequences; *Restore* says why a
|
||||
photo stayed; *Empty…* measures the trash and asks for the number of entries before the *Empty trash* job.
|
||||
- Project files: Export › *Save project file* writes a `.chronos` file; opening it (double-click or `Chronos.exe <file>`)
|
||||
opens the sequence with those settings in the running Chronos.
|
||||
- Notifications: minimise Chronos and insert a card or finish a job: a Windows notification appears; Ctrl+1…6 and
|
||||
@@ -92,7 +101,8 @@ Owner reviews, in the owner's order (owner review 2 first, then the rest of owne
|
||||
release (owner review 2, R12):
|
||||
|
||||
1. Owner review 2, phase 3: R6 library on the admin panel, photo delete and trash (migration 0008), R3 upload from the
|
||||
admin panel.
|
||||
admin panel — implemented; release pending (translate the new strings into the 36 other languages, run one upload
|
||||
from a browser against a real server, then publish the Docker image and the Windows programs).
|
||||
2. Owner review 2, phase 4a: R7 Reorganize after import.
|
||||
3. Owner review 2, phase 4b: R7 mass conversion.
|
||||
4. Owner review 2, phase 5a: R8 workspace and projects with a local home (migration 0009).
|
||||
|
||||
@@ -70,8 +70,8 @@
|
||||
| Phase | Content | State | Commit |
|
||||
|---|---|---|---|
|
||||
| 1 | R1 `:latest`, R2 array space, R4 gear and Settings at the bottom, R5 About inside Settings, R9 whole-folder import | done 2026-10-26, released as `v0.1.0-rc.3`: BRIEF §12.1, §12.4, §12.8, §12.9, §13, §14.4, §14.8, §14.9, §19.3, §19.5, §19.6, §24; 12 DECISIONS rows dated 2026-10-26 (R1 `:latest` and `release-channels`; R2 space path, mountinfo file system, fall-back warning, write volume, 507 at completion, `VolumeSpace`; R4/R5 admin menu and About group; R4 gear icon and `icons.py` generating `icons.js`; R5 desktop About page; R9 whole-folder grouping and its session key); CHANGELOG [Unreleased]; STATUS 8.3. `:latest` appears with the next pre-release: re-publishing `v0.1.0-rc.2` builds the tag's `Chronos.Tools`, which lacks `release-channels` | `1f089888` |
|
||||
| 2 | R11 log settings, R10 scheduled jobs (migration 0007) | done 2026-10-27, released as `v0.1.0-rc.4` (one adversarial review round, 35 findings fixed; strings in all 38 languages): BRIEF §5, §6.2, §7, §12.5, §12.6, §12.8, §14.1, §14.3, §14.6, §14.8, §14.9, §19.6, §24; 30 DECISIONS rows dated 2026-10-26 (R10 text recurrence form instead of cron, compare-and-set claim, system schedules seeded once, the timers they replace, catch-up, live services that are not schedules, the trash only reported, history and audit purges in clean-ups, one audit retention, scan at start, deep analysis read at run time, 6-hour upload sweep, Scheduled as a Jobs tab, Backup and Cleanup job kinds, 500 sequences per job, index backups and one backup retention, the archive.json timer, schedule API and audit, `scheduleChanged`, time zone, cache trim, desktop toasts, texts and archive reopening; R11 log defaults, rotation and pruning, the Debug/Trace fix, `CHRONOS_LOG_LEVEL` locking both levels, the log settings DTO and desktop rows, logging that never fails a job), six earlier rows marked superseded; CHANGELOG [Unreleased] with the `CHRONOS_LOG_LEVEL` and migration 0007 upgrade notes; STATUS 8.3 | |
|
||||
| 3 | R6 library on the panel, photo delete and trash (migration 0008), R3 web upload | in progress | |
|
||||
| 2 | R11 log settings, R10 scheduled jobs (migration 0007) | done 2026-10-27, released as `v0.1.0-rc.4` (one adversarial review round, 35 findings fixed; strings in all 38 languages): BRIEF §5, §6.2, §7, §12.5, §12.6, §12.8, §14.1, §14.3, §14.6, §14.8, §14.9, §19.6, §24; 30 DECISIONS rows dated 2026-10-26 (R10 text recurrence form instead of cron, compare-and-set claim, system schedules seeded once, the timers they replace, catch-up, live services that are not schedules, the trash only reported, history and audit purges in clean-ups, one audit retention, scan at start, deep analysis read at run time, 6-hour upload sweep, Scheduled as a Jobs tab, Backup and Cleanup job kinds, 500 sequences per job, index backups and one backup retention, the archive.json timer, schedule API and audit, `scheduleChanged`, time zone, cache trim, desktop toasts, texts and archive reopening; R11 log defaults, rotation and pruning, the Debug/Trace fix, `CHRONOS_LOG_LEVEL` locking both levels, the log settings DTO and desktop rows, logging that never fails a job), six earlier rows marked superseded; CHANGELOG [Unreleased] with the `CHRONOS_LOG_LEVEL` and migration 0007 upgrade notes; STATUS 8.3 | `af9eeaab` |
|
||||
| 3 | R6 library on the panel, photo delete and trash (migration 0008), R3 web upload | implemented 2026-10-27, release pending (two adversarial review rounds, findings fixed; new strings in `en` and `it` only so far): BRIEF §5, §7, §12.2, §12.5, §14.3, §14.4, §14.5, §14.8, §24; 24 DECISIONS rows dated 2026-10-26 (R6 photo trash layout, deletion journal and hidden pending record, restore journal and `.restoring` staging under the entry lease, restore rules and kept reasons, tombstones in sidecar and index, never-hashed photos hashed at deletion with the missing ones left without a tombstone as a known limitation, positions and follow-ups, Empty only as an explicit job with a fingerprint and never scheduled, trash API and audit, photo-delete permission and body limit, bulk limits of 1,000 a request and the verify fix, the upload tombstone checks and the explicit restore flag, sync tombstones and aliases, hidden dot files refused, Library navigation and the on-demand upload module, facets and covers, panel confirmations, CSV and grids, live refresh without job kinds, static files `no-cache` with ETag; R3 in-house SHA-256 worker, fail-closed self-test, no folder upload and `server/info` extensions, upload pacing and capture time, Cancel deletes and Close keeps); CHANGELOG [Unreleased] with the migration 0008 upgrade note and the known limitations; STATUS 8.3 | |
|
||||
| 4a | R7 Reorganize after import | todo | |
|
||||
| 4b | R7 mass conversion | todo | |
|
||||
| 5a | R8 workspace and projects with a local home (migration 0009) | todo | |
|
||||
|
||||
Reference in new issue
Block a user