docs: BRIEF, DECISIONS, CHANGELOG and STATUS for owner review 2 phase 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c22121d52b
commit
a34b33d50b
6 files changed
+213
-59
No files matched your search
+113
-38
@@ -683,22 +683,26 @@ player smoke test on Windows CI.
|
||||
│Edit│ content they act on; every command has a tooltip │
|
||||
│ ▣ │ │
|
||||
│Arch│ │
|
||||
│ ⚙ │ │
|
||||
│ ☰ │ │
|
||||
│Jobs│ │
|
||||
│ ☁ │ │
|
||||
│Srv │ │
|
||||
│ │ │
|
||||
│ ⚙ │ │
|
||||
│Set │ │
|
||||
│ ⓘ ├─────────────────────────────────────────────────────────────────────────────┤
|
||||
│ ├─────────────────────────────────────────────────────────────────────────────┤
|
||||
│ │ 412 sequences · 618,204 photos · 9.4 TB · ☁ Connected to "Studio NAS" · 3 jobs │ ← status strip
|
||||
└────┴─────────────────────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
- Left navigation rail (prototype pattern): full names in 200 px, collapsible to 48 px of
|
||||
icons with ≡ or Ctrl+B (state saved at once; a collapsed icon's tooltip names its section
|
||||
before describing it; amended 2026-10-16, R1), badge counts (warnings, running jobs),
|
||||
hover tooltip with section description.
|
||||
- Left navigation rail (prototype pattern): Library, Import, Edit, Archive, Jobs and Server
|
||||
at the top, Settings alone at the bottom (About is the last page of Settings, §12.9;
|
||||
amended 2026-10-26, R5); full names in 200 px, collapsible to 48 px of icons with ≡ or
|
||||
Ctrl+B (state saved at once; a collapsed icon's tooltip names its section before
|
||||
describing it; amended 2026-10-16, R1), badge counts (warnings, running jobs), hover
|
||||
tooltip with section description. The Settings icon is a toothed gear (8 teeth, centre
|
||||
hole), the same in Chronos, the Uploader and the admin panel; the circle with rays is the
|
||||
Sun icon only (amended 2026-10-26, R4).
|
||||
- Fluent theme, system/dark/light, system accent; density "comfortable"; 8 px grid; one
|
||||
typeface (Segoe UI Variable, system fallback for CJK/Arabic/etc.).
|
||||
- Window chrome custom (dark title bar), min size 1200×760; per-monitor DPI.
|
||||
@@ -805,6 +809,16 @@ player smoke test on Windows CI.
|
||||
and profile; unknown cards prompt for a nickname (one field).
|
||||
- Plan before touching disk: sessions, folders to be created, first three file names,
|
||||
duplicates already in the archive (by hash), disk space check.
|
||||
- A picked folder (`Folder…`, and Archive › Adopt folder › Copy into archive…) adds a
|
||||
**Group** row: *Sessions* (as for a card) or *Whole folder* (amended 2026-10-26, R9).
|
||||
Whole folder makes the folder (its subfolders too while Subfolders is on) one sequence
|
||||
per file format: camera bodies and pauses are ignored, formats are not (RAW+JPEG of the
|
||||
same shots stays two sequences, so no frame is doubled). Sessions, gap and minimum are
|
||||
then disabled, their tooltips saying why. The title defaults to the folder's name (a
|
||||
typed title wins; it also fills `{title}`). Each plan row shows the camera, or "n
|
||||
cameras", and the format; Split in Show plan cuts a part off, Merge joins it back. A folder
|
||||
starts on Sessions every time (folders have no profile); cards, drives and the admin
|
||||
panel have no Group choice.
|
||||
- Copy with hash while streaming; verify by re-reading destination; only then delete or
|
||||
format (OS dialog); eject via `IOCTL_STORAGE_EJECT_MEDIA` after `FSCTL_LOCK_VOLUME`.
|
||||
- Destination "Server" streams frames through the client to the server (§14.4); the
|
||||
@@ -865,13 +879,19 @@ budget, spill folder, parallelism = photos the running job processes at once, pr
|
||||
with a level per job kind, encoders detected, hardware preference; amended 2026-10-16, R2),
|
||||
Formats (per
|
||||
format tier on this PC, codec install links), Server (last servers, trusted fingerprints,
|
||||
render node), Updates (check on start), Advanced (portable mode, logs, database backup/
|
||||
restore, reset). Import/export settings as JSON.
|
||||
render node), Updates (check on start; latest version: check now, download, releases page),
|
||||
Advanced (portable mode, data folder, logs, diagnostics bundle, database backup/restore,
|
||||
reset), About last (§12.9). Each action has one place in Settings (amended 2026-10-26, R5).
|
||||
Import/export settings as JSON.
|
||||
|
||||
### 12.9 About
|
||||
|
||||
Version, build, licence/EULA link, third-party notice (none), diagnostics bundle button
|
||||
(zips logs + environment report), update check.
|
||||
The last page of Settings (§12.8), no longer an entry of the rail (amended 2026-10-26, R5):
|
||||
version, build, runtime, system, licence/EULA link, third-party notice (none) and, in every
|
||||
language but English, the machine-translation notice with its review link. Nothing is
|
||||
offered twice: the update check, its notice and the releases page are on Updates, the data
|
||||
folder and the diagnostics bundle button (zips logs + environment report) on Advanced. The
|
||||
update check on start (§18) runs whatever screen is open.
|
||||
|
||||
---
|
||||
|
||||
@@ -884,7 +904,14 @@ Version, build, licence/EULA link, third-party notice (none), diagnostics bundle
|
||||
inherit a "camera profile" (rules shared by all cards of that camera).
|
||||
- Session detection: gap > `SessionGapMinutes`; groups with < `MinimumSessionFrames` merge
|
||||
into the previous session (test shots); each session becomes a sequence; the user can
|
||||
merge/split in the plan.
|
||||
merge/split in the plan. A folder imported as **Whole folder** (§12.4) skips detection:
|
||||
one session per file format whatever the bodies and pauses, broken only by the user's
|
||||
splits. Its session key is `folder-` + the first 16 hex digits of SHA-256(PC name | full
|
||||
path without trailing separator, upper-cased on Windows | format), plus
|
||||
`-yyyyMMdd-HHmmss` of its first photo for a part split off; so an interrupted import
|
||||
resumes into the same sequence and a later import of the folder adds to it. The PC name
|
||||
is in the key because the server files uploads by session key for every user alike
|
||||
(amended 2026-10-26, R9).
|
||||
- Duplicate handling: hash lookup against the archive index (skip/rename/overwrite);
|
||||
"already imported" state remembered per card + file (path, size, mtime) for fast
|
||||
re-inserts.
|
||||
@@ -964,7 +991,12 @@ the hash, moves the file into `originals/` under the layout templates (temp →
|
||||
rename), extracts metadata, appends to `sequence.json`, inserts the DB row, enqueues
|
||||
thumbs/proxies/light analysis, emits `sequenceChanged`. Frames without a target sequence
|
||||
are grouped by the same session rules (§13) into auto-created sequences. Card imports from
|
||||
a connected client use exactly this path.
|
||||
a connected client use exactly this path. `POST /uploads` answers 507 `insufficient_storage`
|
||||
when `/data` lacks the upload's size plus a 64 MiB reserve; before its staging copy,
|
||||
`complete` checks the archive's own volume (never the space path, §14.9) the same way and
|
||||
answers 507 with the upload still receiving, so the client completes it again once there is
|
||||
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).
|
||||
|
||||
### 14.5 Sync
|
||||
|
||||
@@ -1006,36 +1038,58 @@ available and says so in the job log.
|
||||
│ Users │ │ 9.4 TB │ │ 412 seq │ │ 3 jobs │ │ 2 nodes │ │
|
||||
│ Archive │ │ of 16 TB │ │ 618k pho │ │ running │ │ online │ │
|
||||
│ Jobs │ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │
|
||||
│ Settings │ Storage by year ▁▂▃▅▇█ Uploads last 30 days ▂▁▃▆▇▅▂ │
|
||||
│ Logs │ Recent: alberto uploaded 1,020 frames · node "studio-pc" rendered 4K HEVC │
|
||||
│ About │ │
|
||||
│ Logs │ Storage by year ▁▂▃▅▇█ Uploads last 30 days ▂▁▃▆▇▅▂ │
|
||||
│ │ 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 (queue/history/nodes,
|
||||
cancel/retry) · Settings (server name, ports, TLS mode + fingerprint, discovery, jobs:
|
||||
parallelism and priority queue, limits, language, retention) · Logs (tail, download) · About. Same UI rules: tooltips only, light/
|
||||
dark, localised via `/api/v1/i18n`, keyboard accessible. The sidebar is 256 px and collapses
|
||||
to its icons with ≡ or Ctrl+B like the desktop rail, the choice kept in the browser and the
|
||||
links' tooltips then naming their page; on narrow screens it stays the top bar (amended
|
||||
2026-10-16, R1).
|
||||
cancel/retry) · Logs (tail, download) and, docked at the foot of the sidebar above the
|
||||
account, Settings (server name, ports, TLS mode + fingerprint, discovery, jobs: parallelism
|
||||
and priority queue, limits, language, retention). The last group of Settings, About, is
|
||||
read-only: version, API version, database and uptime (the server name and the fingerprint
|
||||
are in the groups above); an old `#/about` link opens Settings on it (amended 2026-10-26,
|
||||
R4, R5). Same UI rules: tooltips only, light/dark, localised via `/api/v1/i18n`, keyboard
|
||||
accessible. The sidebar is 256 px and collapses to its icons with ≡ or Ctrl+B like the
|
||||
desktop rail, the choice kept in the browser and the links' tooltips then naming their page;
|
||||
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).
|
||||
|
||||
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
|
||||
share's primary storage, often the cache) has other figures (another size, or free space
|
||||
more than 64 MiB apart), a second line *Write volume* shows its free space. The figures'
|
||||
tooltip names the volume and its file system (on Linux the mount's type from
|
||||
`/proc/self/mountinfo`, so an Unraid share reads `fuse.shfs`); on such a share without a
|
||||
space path it says the figures are the share's primary storage and to map the share's array
|
||||
view (`/mnt/user0/<share>`) to `/space`. The server's diagnostics report lists the archive,
|
||||
the space path and `/data`, each with free space, file system and mount (amended
|
||||
2026-10-26, R2).
|
||||
|
||||
### 14.9 Configuration and Docker
|
||||
|
||||
Environment variables (also readable from `/data/server.json`):
|
||||
`CHRONOS_ADMIN_USER`, `CHRONOS_ADMIN_PASSWORD` (used only when no admin exists; forced change
|
||||
at first login), `CHRONOS_ARCHIVE_PATH=/archive`, `CHRONOS_DATA_PATH=/data`,
|
||||
`CHRONOS_SPACE_PATH` (`SpacePath` in `server.json`; optional: a folder, e.g. `/space`, whose
|
||||
volume's free space the admin panel shows instead of the archive's; one that cannot be
|
||||
measured falls back to the archive's with one warning, logged at start and again only once
|
||||
it has worked in between; uploads always check the archive's own volume, §14.4),
|
||||
`CHRONOS_DB=postgres|sqlite` (Linux: postgres only), `CHRONOS_DB_HOST`, `CHRONOS_DB_PORT=5432`,
|
||||
`CHRONOS_DB_NAME`, `CHRONOS_DB_USER`, `CHRONOS_DB_PASSWORD`, `CHRONOS_DB_SSLMODE=prefer`,
|
||||
`CHRONOS_HTTP_PORT=8080`, `CHRONOS_HTTPS_PORT=8443`, `CHRONOS_TLS_MODE=auto|pem|proxy`,
|
||||
`CHRONOS_TLS_CERT`, `CHRONOS_TLS_KEY`, `CHRONOS_SERVER_NAME`, `CHRONOS_LANG=en`,
|
||||
`CHRONOS_PARALLELISM` (photos the running job processes at once; `CHRONOS_WORKERS`, its former
|
||||
name, still sets it), `CHRONOS_PRIORITY_QUEUE=false`, `CHRONOS_DISCOVERY=true` (LAN UDP beacon),
|
||||
`PUID`, `PGID`, `TZ`. (Amended 2026-10-16, R2.)
|
||||
`PUID`, `PGID`, `TZ`. (Amended 2026-10-16, R2; 2026-10-26, R2.)
|
||||
|
||||
Dockerfile: multi-stage on `mcr.microsoft.com/dotnet/sdk:10.0` → `aspnet:10.0`, non-root
|
||||
user via `PUID/PGID` entrypoint, volumes `/archive` and `/data`, `HEALTHCHECK` on
|
||||
user via `PUID/PGID` entrypoint, volumes `/archive` and `/data` (the optional read-only
|
||||
`/space` bind mount is not a declared volume; amended 2026-10-26, R2), `HEALTHCHECK` on
|
||||
`/health`, `linux/amd64` + `linux/arm64`. `docker-compose.yml` with a PostgreSQL 17 service.
|
||||
Windows: `Chronos.Server.exe` runs as console or Windows Service (`sc create`), SQLite or
|
||||
PostgreSQL.
|
||||
@@ -1189,7 +1243,7 @@ container; the timings are printed at the end of the log.
|
||||
`obj/project.assets.json` lists no packages. The workflows use only shell (`run`) steps: no
|
||||
third-party actions at all (amended 2026-10-23, R3).
|
||||
|
||||
### 19.3 `release.yml` (tag `v*`, or manual re-publish of an existing tag; amended 2026-10-23, R3)
|
||||
### 19.3 `release.yml` (tag `v*`, or manual re-publish of an existing tag; amended 2026-10-23, R3; amended 2026-10-26, R1)
|
||||
|
||||
Job `release`, in the SDK container: the version from the tag
|
||||
(`vMAJOR.MINOR.PATCH[-PRERELEASE]`) passed as `-p:ChronosVersion`, with
|
||||
@@ -1203,14 +1257,23 @@ installers `Chronos-Setup-<ver>.exe` (components Chronos, Uploader, Server) and
|
||||
`Chronos-win-x64-portable-<ver>.zip` (with `portable.txt`); release notes
|
||||
(`Chronos.Tools changelog` from Conventional Commits) and `SHA256SUMS`; the Gitea release
|
||||
made by `Chronos.Tools gitea-release` (a draft first, every file uploaded and its size
|
||||
verified, then published). Then job `image`, in the runner's default image with the docker
|
||||
CLI and the host's daemon: it builds `linux/amd64` only (arm64 would need QEMU on the host)
|
||||
and pushes `gitea.encke-hake.ts.net/balbosoft/chronos-server:<ver>`, plus `:latest` only
|
||||
for the newest stable release. Pushing needs the repository secret `REGISTRY_TOKEN`, an
|
||||
access token of a user who can write the owner's packages (scope "package: read and
|
||||
write"): the workflow's own token (user `gitea-actions`) is refused by the organisation's
|
||||
registry. Pre-releases (tags with a `-`) get no `:latest`, and the in-app update check
|
||||
ignores them.
|
||||
verified, then published). Then `Chronos.Tools release-channels` decides what the tag moves
|
||||
(amended 2026-10-26, R1): it reads the target repository's published releases
|
||||
(`releases?draft=false&limit=50`), stable and pre-releases alike, ignores drafts and tags
|
||||
that are not `v` + SemVer 2.0, always counts the tag itself, takes a release Gitea flags as
|
||||
a pre-release for one, and compares by SemVer 2.0 precedence (not Gitea's
|
||||
`releases/latest`, which is the most recently created release; equal precedence counts as
|
||||
highest). `latest` is true for the highest stable release and moves the releases
|
||||
repository's content (§19.4); `image_latest` is true for the highest stable release or,
|
||||
while no stable release exists, the highest pre-release, and moves `:latest`. Re-publishing
|
||||
an older tag, or a pre-release once a stable release exists, moves neither. Then job
|
||||
`image`, in the runner's default image with the docker CLI and the host's daemon: it builds
|
||||
`linux/amd64` only (arm64 would need QEMU on the host) and pushes
|
||||
`gitea.encke-hake.ts.net/balbosoft/chronos-server:<ver>`, plus `:latest` when `image_latest`
|
||||
is true. Pushing needs the repository secret `REGISTRY_TOKEN`, an access token of a user who
|
||||
can write the owner's packages (scope "package: read and write"): the workflow's own token
|
||||
(user `gitea-actions`) is refused by the organisation's registry. Pre-releases (tags with a
|
||||
`-`) are published as Gitea pre-releases; the in-app update check ignores them.
|
||||
|
||||
Variables, all optional: `PUBLIC_URL` (default `https://gitea.encke-hake.ts.net`),
|
||||
`RELEASES_REPO` (§19.4), `REGISTRY` (default the host of `PUBLIC_URL`), `REGISTRY_USER`
|
||||
@@ -1249,15 +1312,22 @@ Nightly build of `main` (02:17 daily) to
|
||||
with the host's daemon and the `REGISTRY_TOKEN` secret as in §19.3 (amended 2026-10-23, R3);
|
||||
`deploy/docker/docker-compose.yml` for users (server + PostgreSQL + volumes), downloaded
|
||||
from `https://gitea.encke-hake.ts.net/BalboSoft/Chronos/raw/branch/main/deploy/docker/docker-compose.yml`
|
||||
together with `.../deploy/docker/.env.example`.
|
||||
together with `.../deploy/docker/.env.example`. `:nightly` is never a release: it carries
|
||||
`main` as it was that night (version `0.0.0-nightly.<run>`), for testing only; users follow
|
||||
`:latest` or pin `:<ver>` (amended 2026-10-26, R1).
|
||||
|
||||
### 19.6 Unraid template (`deploy/unraid/chronos.xml`)
|
||||
|
||||
Community Applications XML: repository `gitea.encke-hake.ts.net/balbosoft/chronos-server:latest`,
|
||||
WebUI `http://[IP]:[PORT:8080]/admin`, ports 8080/8443, paths `/archive` →
|
||||
`/mnt/user/Timelapse`, `/data` → `/mnt/user/appdata/chronos`, variables from §14.9 (admin
|
||||
user/password, DB host/port/name/user/password, TLS mode, PUID/PGID, TZ), description ≤ 2
|
||||
sentences. Registry and Project `https://gitea.encke-hake.ts.net/BalboSoft/Chronos`,
|
||||
Community Applications XML: repository `gitea.encke-hake.ts.net/balbosoft/chronos-server:latest`
|
||||
(the newest release: the highest stable release, or the highest pre-release until the first
|
||||
stable one, §19.3; never `:nightly`, so the template finds an image from the first
|
||||
pre-release on; amended 2026-10-26, R1), WebUI `http://[IP]:[PORT:8080]/admin`, ports
|
||||
8080/8443, paths `/archive` → `/mnt/user/Timelapse`, `/space` → `/mnt/user0/Timelapse`
|
||||
(*Array view*, read-only, optional: the same share seen on the array only, so the admin
|
||||
panel shows the array's free space, §14.8), `/data` → `/mnt/user/appdata/chronos`,
|
||||
variables from §14.9 (admin user/password, DB host/port/name/user/password, TLS mode,
|
||||
*Space path* `CHRONOS_SPACE_PATH=/space` (advanced), PUID/PGID, TZ; amended 2026-10-26, R2),
|
||||
description ≤ 2 sentences. Registry and Project `https://gitea.encke-hake.ts.net/BalboSoft/Chronos`,
|
||||
Support `https://gitea.encke-hake.ts.net/BalboSoft/Chronos/issues`, TemplateURL
|
||||
`https://gitea.encke-hake.ts.net/BalboSoft/Chronos/raw/branch/main/deploy/unraid/chronos.xml`,
|
||||
Icon `https://gitea.encke-hake.ts.net/BalboSoft/Chronos/raw/branch/main/branding/chronos-server.svg`;
|
||||
@@ -1442,6 +1512,11 @@ questions asked and the answers; DECISIONS rows give the reasons.
|
||||
| 2026-10-23 | Chronos on Gitea, R1 | whole brief, §23 | The product and its programs are named Chronos (Chronos, Chronos Server, Chronos Uploader) everywhere: projects and namespaces, files, settings, `CHRONOS_*` variables, `%LOCALAPPDATA%\Chronos`, `.chronos` project bundles and folders, the image `chronos-server`; the product name is no longer an open decision. |
|
||||
| 2026-10-23 | Chronos on Gitea, R2 | §3, §16, §18, §19.4, §19.6, §21, §22 | The repository is `BalboSoft/Chronos` on the self-hosted Gitea (`https://gitea.encke-hake.ts.net`): the update check reads the Gitea releases API of `ChronosReleasesUrl`; licence, issue and support links, the Unraid template and the ads manifest point to that repository; images go to the Gitea container registry; releases are published in the repository itself, a separate public releases repository is optional (`RELEASES_REPO`); `EULA.md` and `SECURITY.md` at the root, issue forms in `.gitea/ISSUE_TEMPLATE`. |
|
||||
| 2026-10-23 | Chronos on Gitea, R3 | §0.2, §18, §19.1, §19.2, §19.3, §19.5, §20.2, Appendix A | Gitea Actions on a Linux act_runner in Docker mode: CI jobs build, postgres, docker and yaml, plus a windows job once a Windows runner is registered; shell steps only, no artifacts, caches, job summaries or annotations; the release cross-compiles the Windows programs on Linux, checks them with `pe-check`, signs them with `osslsigncode` when secrets exist, publishes them with `gitea-release` and pushes a `linux/amd64` image with `REGISTRY_TOKEN`; Definition of Done is green on Gitea Actions, the Windows-only tests on a Windows runner or a Windows PC. |
|
||||
| 2026-10-26 | Owner review 2, R1 | §19.3, §19.5, §19.6 | `:latest` follows the highest stable release, or the highest pre-release while none is stable, as decided by `Chronos.Tools release-channels` by SemVer 2.0 precedence; the releases repository's content and the update check still follow stable releases only; `:nightly` is the nightly build of `main`, never a release. |
|
||||
| 2026-10-26 | Owner review 2, R2 | §14.4, §14.8, §14.9, §19.6 | `CHRONOS_SPACE_PATH` (`SpacePath`) names the volume whose free space the admin panel shows, the Unraid template mapping the share's array view `/mnt/user0/<share>` read-only to `/space`; the archive's own volume shows apart as *Write volume* when it differs; the figures' tooltip names the file system (`fuse.shfs` from mountinfo); completing an upload checks the archive's own volume first (507, resumable). |
|
||||
| 2026-10-26 | Owner review 2, R4 | §12.1, §14.8 | The Settings icon is a toothed gear in Chronos, the Uploader and the admin panel; the admin panel docks Settings at the foot of its sidebar (the end of the top bar on narrow screens). |
|
||||
| 2026-10-26 | Owner review 2, R5 | §12.1, §12.8, §12.9, §14.8 | About is the last page of the desktop Settings and the last group of the admin panel's Settings, no longer a rail or sidebar entry; nothing is offered twice (update check and releases on Updates, data folder and diagnostics on Advanced); `#/about` opens the admin Settings on About. |
|
||||
| 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. |
|
||||
|
||||
## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated)
|
||||
|
||||
|
||||
Reference in new issue
Block a user