fix: owner review 3 phase 1: server ports for clients, screenshot baselines (#16)
CI / Build and test (push) Successful in 9m36s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 9s
Release / Build, test and publish (push) Successful in 14m4s
CI / PostgreSQL 16 integration (push) Successful in 8m26s
CI / PostgreSQL 17 integration (push) Successful in 8m43s
CI / Docker image (push) Successful in 50s
Release / Server image (push) Successful in 1m23s
CI / Build and test (push) Successful in 9m36s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 9s
Release / Build, test and publish (push) Successful in 14m4s
CI / PostgreSQL 16 integration (push) Successful in 8m26s
CI / PostgreSQL 17 integration (push) Successful in 8m43s
CI / Docker image (push) Successful in 50s
Release / Server image (push) Successful in 1m23s
Clients could not reach a server in a container whose ports are published as other host ports: the panel showed the container's ports, the template had no public HTTP port, and a bare host meant port 443. Public ports become panel settings, the panel shows the client address, both clients default to 8443, and an address that answers as another service is named as not a Chronos server (its certificate never offered for trust). The screenshot baselines are captured on the development PC and committed; measured values are fixed while the capture runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #16.
This commit is contained in:
1 parent
30a5b03f37
commit
255e149087
306 files changed
+2023
-206
No files matched your search
@@ -10,7 +10,7 @@ Companion to `docs/BRIEF.md` (scope, behaviour) and `docs/ui/DESIGN.md` (looks).
|
||||
| `src/Chronos.Core` | net10.0 | Engine shared by every program: metadata, codecs, imaging, analysis, advisor, motion, render, video containers and managed encoders, archive format, naming, import planning, packaging, localization runtime, diagnostics, brand mark |
|
||||
| `src/Chronos.Core.Windows` | net10.0-windows | WIC decoders and codec inventory, Media Foundation encoders, DXGI adapters, removable devices and volume free space, DPAPI, shell launcher, window chrome, power (P/Invoke/COM only) |
|
||||
| `src/Chronos.Data` | net10.0 | `IDatabase`, SQLite binding, PostgreSQL wire client, migrations, repositories, the job engine, the archive engine (`Archiving`), the analysis/render engine (`Processing`) and the client sync engine (`Sync`) |
|
||||
| `src/Chronos.Protocol` | net10.0 | API v1 DTOs, source-generated JSON context, typed `ChronosClient` with certificate pinning and bandwidth limiting |
|
||||
| `src/Chronos.Protocol` | net10.0 | API v1 DTOs, source-generated JSON context, typed `ChronosClient` with certificate pinning and bandwidth limiting, `ChronosAddress` (how both clients read a typed server address) |
|
||||
| `src/Chronos.Server` | net10.0 (Web SDK) | ASP.NET Core minimal API, auth, uploads, sync, jobs, render nodes, events, embedded admin panel, Windows service host |
|
||||
| `src/Chronos.Ui` | net10.0-windows (WPF) | Theme (DESIGN tokens), icons, standard and custom controls, visuals (charts, filmstrip, preview, curve editor, virtualizing grid), `Loc` markup extension, MVVM helpers, notification-area icon |
|
||||
| `src/Chronos.App` | WPF exe `Chronos.exe` | Desktop client |
|
||||
|
||||
+41
-5
@@ -1498,7 +1498,17 @@ Global job bar mirrors the active job.
|
||||
|
||||
First connection shows the certificate fingerprint (trust-on-first-use); login modal;
|
||||
per-sequence sync actions and states; conflict resolution only for settings JSON (keep
|
||||
mine / take server / save both).
|
||||
mine / take server / save both). The address field, here and in the Uploader (§15), reads
|
||||
one rule: no scheme means HTTPS, and then no port means 8443, the server's HTTPS port;
|
||||
`https://<name>` alone keeps 443 (a reverse proxy); a typed port is kept; a bare IPv6
|
||||
address gets its brackets; a link-local one with a zone index is refused. An address that
|
||||
answers but not as a Chronos Server (any redirect, an answer that is not JSON, an error
|
||||
without Chronos's `X-Chronos-Api` header and error code, JSON of another shape, more than
|
||||
1 MB, or plain HTTP on a port reached over HTTPS) fails with one sentence naming the
|
||||
address and the port to check; behind a certificate not
|
||||
trusted yet, `server/info` is read once without checking it and without credentials, and only
|
||||
a Chronos answer leads to the fingerprint question, so another service's certificate is never
|
||||
offered for trust (amended 2026-11-04, owner review 3).
|
||||
|
||||
### 12.8 Settings
|
||||
|
||||
@@ -2119,7 +2129,17 @@ clean-up* schedule's age limit, R10), Logs (amended 2026-10-26, R11: file level
|
||||
level (Trace…None, default Information), keep logs (days), file size (MB), logs total (MB),
|
||||
rotation (daily or hourly, UTC), keep audit (days; the *Audit log clean-up* schedule's age
|
||||
limit, §14.6), diagnostics logs (MB), applied without a restart)). A field an environment
|
||||
variable fixes is read-only, its tooltip naming that variable (`lockedBy`, §14.3; R11). The
|
||||
variable fixes is read-only, its tooltip naming that variable (`lockedBy`, §14.3; R11).
|
||||
Network and TLS (amended 2026-11-04, owner review 3): HTTP port and HTTPS port (in a
|
||||
container *Container HTTP/HTTPS port*, read-only: the template maps them to host ports),
|
||||
*Public HTTP port* and *Public HTTPS port* (empty: the listening port, shown as placeholder;
|
||||
applied at once to LAN discovery and the HTTPS redirect), and a read-only *Client address*
|
||||
with Copy: `https://<the host name the browser used>:<the HTTPS port the page came through,
|
||||
else the public HTTPS port>`, the proxy's address in TLS mode proxy, which is what users type
|
||||
in Chronos and the Uploader; when the page's HTTPS port is not the saved one, a *Use <port>*
|
||||
button fills it in as the Public HTTPS port, and saving a Public HTTPS port other than the
|
||||
page's asks first, as the redirect follows it at once; the discovery tooltip says that a
|
||||
container needs network type Host for it. 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
|
||||
@@ -2270,10 +2290,20 @@ it has worked in between; uploads always check the archive's own volume, §14.4,
|
||||
conversion the tighter of the two, §14.3: amended 2026-10-26, R7),
|
||||
`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_HTTP_PORT=8080`, `CHRONOS_HTTPS_PORT=8443` (in a container, where
|
||||
`DOTNET_RUNNING_IN_CONTAINER=true`, the listening ports are the template's: only these
|
||||
variables change them, which network type Host needs when another service uses 8080 or
|
||||
8443; the admin panel shows them read-only and a `server.json` value is ignored with a
|
||||
warning and removed at the next save), `CHRONOS_PUBLIC_HTTP_PORT` and `CHRONOS_PUBLIC_HTTPS_PORT` (the host
|
||||
ports clients use when a container's ports are published as others: LAN discovery, the HTTPS
|
||||
redirect and the admin panel's client address use them; also the admin panel's *Public
|
||||
HTTP/HTTPS port*, `PublicHttpPort`/`PublicHttpsPort` in `server.json`, applied at once;
|
||||
amended 2026-11-04, owner review 3), `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),
|
||||
name, still sets it), `CHRONOS_PRIORITY_QUEUE=false`, `CHRONOS_DISCOVERY=true` (LAN UDP beacon; it leaves a
|
||||
container only with host networking, Unraid network type Host: amended 2026-11-04, owner
|
||||
review 3),
|
||||
`CHRONOS_LOG_LEVEL` (Trace|Debug|Information|Warning|Error|Critical|None, also `info`,
|
||||
`warn`, `off`; default Information: sets the level of the log files and of the console and
|
||||
locks both in the admin panel), `CHRONOS_LOG_CONSOLE_LEVEL` (the console alone, read after
|
||||
@@ -2536,7 +2566,12 @@ the log variables, *Log level* `CHRONOS_LOG_LEVEL` included, and *Audit retentio
|
||||
`CHRONOS_AUDIT_RETENTION_DAYS` are advanced and empty by default (each description gives
|
||||
the default), so the admin panel's Settings › Logs chooses them; a value given in the
|
||||
template locks its setting; TZ also sets the time zone of the schedules; amended
|
||||
2026-10-26, R10, R11), description ≤ 2 sentences.
|
||||
2026-10-26, R10, R11), *Public HTTP port* `CHRONOS_PUBLIC_HTTP_PORT` and *Public HTTPS port*
|
||||
`CHRONOS_PUBLIC_HTTPS_PORT`, empty by default, next to the ports, whose descriptions say to
|
||||
enter the same host port there when it changes and that network type Host ignores the mapping (the
|
||||
server then listens on 8080 and 8443 itself; the user guide says to add `CHRONOS_HTTP_PORT` /
|
||||
`CHRONOS_HTTPS_PORT` when another service uses either); the overview names the client address and
|
||||
that LAN discovery needs network type Host (amended 2026-11-04, owner review 3), 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`,
|
||||
@@ -2735,6 +2770,7 @@ questions asked and the answers; DECISIONS rows give the reasons.
|
||||
| 2026-10-26 | Owner review 2, R7 (naming) | §7.1, §13, §14.3 | One naming rule for import, upload and Reorganize: the sequence's camera and lens, `{n}` its place, a frame without a time at the sequence's start; template rules everywhere a template is typed or sent (no folder level scans skip, one a value such as a title gives escaped with `_`; a file template keeps the extension, tells photos apart, holds no slash; long names shortened before `.{ext}`; titles as text), held to a template only when it is given anew; `invalid_template` names the rule. |
|
||||
| 2026-10-26 | Owner review 2, R7 (conversion) | §5, §7, §8.1, §8.3, §8.7, §9, §12.2, §12.4, §12.5, §13, §14.3, §14.4, §14.5, §14.8, §14.9 | Convert after import on the desktop (the Archive manager's set, the Library's selection) and the admin panel (the Library's selection): JPEG with a quality, TIFF-16 or linear DNG (the archival choice, scene-referred so a RAW's highlights above white and colours outside sRGB survive), Replace or New sequence chosen at every run and never remembered, behind a dry run that lists each sequence's photos, sizes and the photos that stay as they are with why, and the free space where the conversion writes; Replace confirmed by typing; the `convert` job (stored as 19) converts exactly the photos confirmed, one sequence at a time and all or nothing, resumable through its journals and staging, never twice at once; full-resolution decodes only (the managed decoders first, never a 16-bit file from an 8-bit RAW development; the server leaves what it cannot read to a PC), what Chronos reads from a photo never changed (profiles carried, a linear DNG of sRGB values only), Exif carried, every file verified by the server's decoders; Replace swaps the files of the frames in place under a crash-safe journal, the originals going into a replaced trash entry that Undo or Restore swaps back and that Empty erases only while the archive on disk shows each conversion intact, or deleted on its own word (a tombstone, the trash, an erasure record); import still copies byte for byte and the card keeps a converted photo's copy; sync and the ingest count every encoding of a photo as one; `POST /api/v1/archive/convert` with the plan cache it shares with Reorganize, `sequenceChanged` `converted` and `created`, the audit `archive_converted`. |
|
||||
| 2026-10-26 | Owner review 2, R8 (phase 5a: workspace and projects, local home) | §4.4, §5, §7, §12.2, §12.3, §12.6, §12.8, §14.5, §14.6 | A sequence's home (this PC's archive) keeps its projects: Main, mirrored both ways with the sequence's settings so older clients and sync keep working, and other named projects, each a linear history of immutable versions in the portable form (positions parked by photo, SHA-256 of canonical text), stored as sidecars in `.chronos/projects/` and indexed by migration 0009 (`projects`, `project_versions`, `renders.project_id`/`project_version_id`); deletions only on the archive's word, the trash read first; Edit opens only workspace projects: *Open in workspace* (project, proxies), the `workspace-copy` job (stored as 20, desktop only, hash-verified, resumable, space checked), the working state in a folder outside the library, the project button with its state chip and menu (Save version, Sync, History with Compare and Restore, Open, New, Rename, Delete, Remove local copy), push and pull with replay and field-level merge, conflicts only when both sides changed a setting (Keep mine, Take library's, Save both, Later), renders at the home with the settings embedded; Settings › Workspace (folder, sync, kept versions). The server home is phase 5b; originals, local render, clean-up and the rest of Settings › Workspace are phase 5c. |
|
||||
| 2026-11-04 | Owner review 3 (ports) | §12.7, §14.8, §14.9, §15, §19.6 | The public HTTP/HTTPS ports are server settings as well as variables (a variable locks them), applied at once; in a container the listening ports are locked to the template's; the admin panel's Network and TLS shows the container's ports, the public ports and the client address with Copy; clients read an address without scheme or port as port 8443 and report an address that answers as something else, never offering its certificate for trust; the Unraid template and compose gain *Public HTTP port*. |
|
||||
|
||||
## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated)
|
||||
|
||||
|
||||
@@ -5,6 +5,48 @@ commits follow Conventional Commits (release notes are generated from them by `C
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
- Chronos and the Uploader could not reach a server in a container whose ports are published as other host ports
|
||||
(owner review 3). The admin panel's Settings › Network and TLS listed the container's ports (8080, 8443) as if
|
||||
clients used them. In a container it now shows them read-only as *Container HTTP port* and *Container HTTPS port*,
|
||||
followed by *Public HTTP port* and *Public HTTPS port* (the host ports; empty: the same as the listening ports) and
|
||||
a *Client address* with Copy: exactly what to type in Chronos and in the Uploader. Opened over HTTPS, the client
|
||||
address uses the port the page came through, and when the saved one differs a *Use …* button fills it in as the
|
||||
Public HTTPS port. Saving a Public HTTPS port other than that one asks first, since the panel's link follows it at
|
||||
once.
|
||||
- An address typed without a port (`192.168.1.20`, `nas.local`) now means port 8443, as the placeholder shows;
|
||||
`https://name` alone still means 443 (a reverse proxy), and a typed port is kept. Addresses saved earlier keep their
|
||||
port.
|
||||
- An address that answers but is not a Chronos Server (another service on that port: a web page, a redirect to its
|
||||
sign-in page, a 404 or 401, JSON of another kind) now says *No Chronos server answers at …; check the port*, naming
|
||||
the address with its port. Before, JSON of another kind passed as a server (the Uploader then sent it the
|
||||
password), a 401 read as a wrong password, and another service's self-signed certificate was offered for trust;
|
||||
that certificate is now never offered (redirects of any kind, error pages, JSON errors without Chronos's header and
|
||||
oversized answers included). The HTTP port typed without a scheme (`192.168.1.20:8087`) gives the same message
|
||||
instead of *The server did not answer*. The Uploader's certificate question names the address with its port.
|
||||
- A link-local IPv6 address with a zone (`fe80::1%12`) is refused as an invalid address instead of losing its zone.
|
||||
|
||||
### Changed
|
||||
- The public ports are server settings: edited in the admin panel and applied at once to LAN discovery and the
|
||||
redirect to HTTPS, or set by `CHRONOS_PUBLIC_HTTP_PORT` / `CHRONOS_PUBLIC_HTTPS_PORT`, which lock them. In a
|
||||
container the listening ports change only through `CHRONOS_HTTP_PORT` / `CHRONOS_HTTPS_PORT`; a port saved for them
|
||||
in `server.json` is ignored, with a warning in the log, and removed at the next save of the settings.
|
||||
- The Unraid template and the compose file have *Public HTTP port* (`CHRONOS_PUBLIC_HTTP_PORT`) next to *Public HTTPS
|
||||
port*; the port descriptions say to enter the same host port there. LAN discovery's tooltip, the template and the
|
||||
user guide say that discovery leaves a container only with network type *Host*: on *Bridge*, type the client
|
||||
address.
|
||||
- The screenshot baselines (156 screens) are committed in `tests/visual/baselines`, captured on the development PC
|
||||
(owner review 3); CI no longer pushes its screenshots to the `ci-screenshots` branch, which is deleted.
|
||||
|
||||
### Upgrade note for Unraid
|
||||
- Edit the container: set *Repository* from `…/chronos-server:nightly` to `…/chronos-server:latest`, and set *Public
|
||||
HTTP port* and *Public HTTPS port* to the host ports the template maps (for example 8087 and 8444), or, after the
|
||||
update, enter them in the admin panel's Settings › Network and TLS. Then connect Chronos and the Uploader to the
|
||||
*Client address* shown there (for example `https://192.168.1.20:8444`).
|
||||
- Network type *Host* (for LAN discovery) ignores the port mappings: the server listens on the host's 8080 and 8443.
|
||||
If another service uses either, add the variable `CHRONOS_HTTP_PORT` or `CHRONOS_HTTPS_PORT` with a free port first,
|
||||
and leave the public ports empty.
|
||||
|
||||
## [0.1.0-rc.8] — 2026-11-03
|
||||
|
||||
### Added
|
||||
|
||||
+17
-2
@@ -88,7 +88,7 @@ One line per decision: date · decision · alternative · reason.
|
||||
| 2026-10-02 | Automatic output stops at 4K UHD; no automatic stacking advice. | 8K / temporal-median denoise | 8K stays a manual choice; a median erases moving stars and stillness cannot be verified reliably. |
|
||||
| 2026-10-02 | Apply records a missing-data reason only where no advice exists; Optimise returns modules to Auto and only adds to the user's hero, exclusions, offset or output cap; a preset's own choices are stored as manual values, content-derived values stay Auto. | Overwrite | Manual values stay in force; re-analysis does not undo a chosen preset. |
|
||||
| 2026-10-02 | Advisor namespace is `Chronos.Core.Advice` (class `Advisor`). | `Chronos.Core.Advisor` | A class named like its namespace needed an alias in every `Chronos.Core.*` caller. |
|
||||
| 2026-10-02 | CI also force-pushes each same-repository PR run's screenshots as one commit to the `ci-screenshots` branch (separate job, only it has `contents: write`). | Artifact only | Artifacts need an authenticated download; a branch can be fetched with plain git for visual review. The branch never merges and holds a single commit. |
|
||||
| 2026-10-02 | (Superseded by the 2026-11-04 baselines row: the baselines are captured on the development PC and the `ci-screenshots` branch is gone.) CI also force-pushes each same-repository PR run's screenshots as one commit to the `ci-screenshots` branch (separate job, only it has `contents: write`). | Artifact only | Artifacts need an authenticated download; a branch can be fetched with plain git for visual review. The branch never merges and holds a single commit. |
|
||||
| 2026-10-02 | Export fps is the encoded grid; `Timing.FrameRate` is the playback rate (source frames per video second, default = export fps). Durations are quantised to output periods on rounded 90 kHz boundaries; whole frames are sampled at the period centre. | One fps / free durations | Presets keep their meaning, Interpolated can synthesise slow motion, AVI and image sequences stay exact. |
|
||||
| 2026-10-02 | Adaptive timing is proportional up to 3× the median interval; longer gaps show for 3 + log2(r/3) frames (max 5); pauses ≥ 20× median and ≥ 120 s become a 0.2 s cut. Interpolated fills gaps of up to 3 missing/excluded frames. | Fixed clamps | Bursts stay faithful and long gaps cannot stall the video. |
|
||||
| 2026-10-02 | A non-monotonic time-remap curve is repaired (sorted, clamped, made non-decreasing) with a warning; virtual-camera keyframes are keyed to source frame positions. | Reject the curve / output frame index | The remap is always monotone; keyframes stay on the content when timing or fps change. |
|
||||
@@ -265,7 +265,7 @@ One line per decision: date · decision · alternative · reason.
|
||||
| 2026-10-12 | Container entrypoint: an archive root that PUID:PGID cannot write is given to them (that folder only, `chown` without `-R`) when it is empty or owned by root, as Docker creates a missing bind source. Any other unwritable root, and any existing `.chronos` folder or subfolder they cannot write, stops the container with a one-line error and is never chowned. The data folder is `${CHRONOS_DATA_PATH:-/data}`. This amends the 2026-10-02 row '/archive only checked for write access'. | Recursive chown, or a warning followed by a crash loop | A fresh install never became healthy. The archive may hold terabytes, so its contents are never chowned. |
|
||||
| 2026-10-12 | Screenshot diff (`Chronos.Tools screenshots diff`): a pixel differs when one RGBA channel moves by more than 8 of 255; a screen fails when more than 0.05 % of its pixels differ, when its size changed, when it cannot be read, or when its baseline has no screenshot; differing pixels are drawn magenta over the faded baseline in `<screen>-diff.png` | Exact pixel equality; a perceptual metric (SSIM) | Anti-aliased edges move a few levels between runs; 0.05 % (about 650 pixels of 1440×900) absorbs the measured latency and last-sync time while a moved control, a new colour or a missing picture exceed it; a per-pixel rule is easy to explain and to check by eye in the diff image. |
|
||||
| 2026-10-12 | A screenshot without a baseline fails as soon as `tests/visual/baselines` holds any PNG; before the first baselines the step passes with a warning and a bold job-summary line saying it compared nothing | Always only warn; always fail; a `--require-baselines` switch in ci.yml | Warn-only left every screen, and any screen added later, ungated for good; failing before any baseline exists would keep CI red until a Windows run produced them; a rule that arms itself needs no switch to remember. |
|
||||
| 2026-10-12 | Baselines are accepted only from CI's `ci-screenshots` branch (`screenshots accept`), never from a local capture; the first set is accepted from the first green `windows-latest` run whose code captures at `SampleData.Now`, after the review-fix branches merge, so this change commits none | Commit the current `ci-screenshots` pictures now; capture locally | Fonts, scaling and time zone differ per machine and Linux cannot run the WPF capture; the current `ci-screenshots` commit (of 261ab46) predates the fixed clock, so its times and dates ("12:18 AM", sequences dated from the capture day) would fail every such screen, and parallel branches still change screens. |
|
||||
| 2026-10-12 | (Superseded by the 2026-11-04 baselines row: the baselines are captured on the development PC and the `ci-screenshots` branch is gone.) Baselines are accepted only from CI's `ci-screenshots` branch (`screenshots accept`), never from a local capture; the first set is accepted from the first green `windows-latest` run whose code captures at `SampleData.Now`, after the review-fix branches merge, so this change commits none | Commit the current `ci-screenshots` pictures now; capture locally | Fonts, scaling and time zone differ per machine and Linux cannot run the WPF capture; the current `ci-screenshots` commit (of 261ab46) predates the fixed clock, so its times and dates ("12:18 AM", sequences dated from the capture day) would fail every such screen, and parallel branches still change screens. |
|
||||
| 2026-10-12 | `--capture` runs on a fixed clock (`SampleData.Now`, 2026-10-02 10:18 UTC; `AppClock.Today` frozen for screens laid out around today), English formats and `Motion` off (indeterminate bars stand still) | Mask the changing regions per screen in the diff | The same code then draws the same pixels on any day, so the diff needs no masks; only a measured latency and the last sync time remain, a few dozen pixels. |
|
||||
| 2026-10-12 | Media Foundation playback (BRIEF §20.2) is checked by separate tests: MediaPlayer opens the software H.264 output (and the hardware HEVC Main10 output where an encoder and an HEVC decoder exist), skipped with the reason where Windows Media Player is missing or WPF reports it unusable; a Media Foundation source reader decodes the first frame to the encoded picture on every Windows with Media Foundation | One test that logs and passes without Windows Media Player; playback only in the manual release test | Windows Server runners may lack wmp.dll; a skip shows that the MediaPlayer layer did not run, and the source reader still proves the file decodes. |
|
||||
| 2026-10-12 | CI `installer` job on a clean `windows-latest`: packs 1.0.0 and 1.0.1 installers from the published programs and checks silent install, run, the Add/Remove Programs entry, shortcuts and the .chronos file type, upgrade in place (a file only in 1.0.0 must go, user data kept), the Uploader-only installer, uninstall and the documented exit codes (`.github/scripts/installer-test.ps1`) | Leave it to the manual release test | BRIEF §18 behaviour can only be proven by running the real installers; a clean runner is the closest thing to a user's PC. |
|
||||
@@ -611,3 +611,18 @@ One line per decision: date · decision · alternative · reason.
|
||||
| 2026-11-03 | Workspace texts: the workspace's strings live in the existing Editor, Tooltips, Settings and Errors areas; the home is called "the library" (the server home will name its server), Main is shown in the UI language (it: Principale), and versions carry the bare PC name (`Environment.MachineName`; History strips `chronos@`, `server@`, `workspace@` and `Chronos on`). (Owner review 2, R8.) | A new Workspace area | No new resource files to translate; the wording matches the rest of the desktop. |
|
||||
| 2026-11-03 | `ProjectMenuViewModel` reaches the window only through `IWorkspaceUi` (dialogs, `ShowDialogWhenFree`, confirmations, toasts, opening and closing a project). A conflict found by an automatic sync waits for the open dialog and is asked once. (Owner review 2, R8.) | Depend on the shell; replace the open dialog | Its logic is tested without a window, and a background prompt never hides what the user is doing. |
|
||||
| 2026-11-03 | Leases: `LeaseFile.TryAcquire` and `AcquireAsync` take `createDirectory` (default true); the copy's clean-up passes false. `WorkspaceSync.OpenAsync` reads the working state and the media under the project's lease; a lease still busy after the wait is `Errors.Workspace.Busy`. (Owner review 2, R8, fix rounds 1, 2 and 5.) | Always create the folder; read without the lease | A clean-up must never make a removed project folder again, and the editor never reads a half-written working state. |
|
||||
| 2026-11-04 | Public ports are settings: `PublicHttpPort`/`PublicHttpsPort` in `server.json`, edited in Settings › Network and TLS, locked by `CHRONOS_PUBLIC_HTTP(S)_PORT`, applied at once by setting the shared `ServerOptions` that LAN discovery and the admin redirect read at every use. | Variables only | The owner read the container ports in the panel as the ports to use; the host ports must be settable where the ports are shown, and nothing caches them. |
|
||||
| 2026-11-04 | `ServerSettingsDto` gains `PublicHttpPort`, `PublicHttpsPort` and `InContainer`, appended as optional positional members. In a request a null public port keeps the saved value and 0 clears it; responses send null when unset. | null clears | A client or script of the earlier shape sends no public ports: with null as "clear" every save from it would drop them, or be refused as `setting_locked` when a variable fixes them. |
|
||||
| 2026-11-04 | In a container (`DOTNET_RUNNING_IN_CONTAINER=true`, read in `ServerOptions.Load`; tests set `ServerOptions.InContainer`) the listening ports are locked (listed in `Locked`, `lockedBy` `DOTNET_RUNNING_IN_CONTAINER` unless a `CHRONOS_HTTP(S)_PORT` sets them) and a `server.json` value for them is ignored with a warning at start; the variables still change them. | Keep honouring server.json | The template publishes the default container ports: a port saved from the panel before would leave the container unreachable after a restart. Host networking users who need other ports set the variables. |
|
||||
| 2026-11-04 | Listening ports are validated only when a request changes them. | Always validate | A value the panel cannot change (a container's, the test server's 0) must never block saving the other settings. |
|
||||
| 2026-11-04 | The admin panel's client address is computed in the browser: `https://` + `location.hostname` (IPv6 in brackets) + `:` + the port the page came through when the browser speaks HTTPS to the server itself, else (plain HTTP, only from the server's own machine) the public HTTPS port or HTTPS port (no port when 443); `location.origin` in TLS mode proxy. When the page's HTTPS port is not the saved one (a container's 8443 published as 8444, Public HTTPS port still empty), a *Use 8444* button next to Public HTTPS port fills it in. No other page shows a pairing code or a connect hint, so it appears only in Settings › Network and TLS. | Server-side address | Only the browser knows the host name the LAN uses for the server (an IP, a NAS name); the server sees its container address. |
|
||||
| 2026-11-04 | One address rule for both clients, `Chronos.Protocol.Client.ChronosAddress` (both apps reference Chronos.Protocol, which builds on Linux): no scheme and no port means https on 8443, `https://host` keeps 443, a typed port is kept, a bare IPv6 address is bracketed. Saved addresses carry their scheme, so they keep their port. | A copy per app | The placeholder and the error text say `nas.local:8443`; "192.168.30.23" meant port 443. |
|
||||
| 2026-11-04 | `ChronosClient.GetInfoAsync` throws `NotChronosServerException` when `server/info` is not Chronos's: any 3xx (Chronos never redirects it), any answer that is not JSON whatever its status, more than 1 MB, JSON without a Chronos `ServerInfo` (name, version, API version, lists, limits), or an error without the `X-Chronos-Api` header every Chronos response carries and a Chronos error code. A busy answer (408, 429, 502-504) with JSON or no body cannot tell. On an untrusted certificate it reads `server/info` once more with certificate checks off, no token, no cookies and no redirects, under the same rules, and only a Chronos answer leads to the fingerprint question. Nothing is trusted or stored by that read. | Ask about the fingerprint first | Before, `{}` was accepted as a server (the Uploader then sent the password to it), a 401 read as a wrong password, and the self-signed certificate of another service on port 8443 was offered for trust. |
|
||||
| 2026-11-04 | The not-Chronos error names the normalised address (port included) in new keys `Server.Error.NotChronosAt` and `Uploader.Connect.Error.NotChronosAt`; the old keys stay as they are. | Add {0} to the old keys | The 36 other cultures translate the old keys without the placeholder; changing it would fail the i18n check until they are translated again. |
|
||||
| 2026-11-04 | Saving a public HTTPS port (or clearing it to the listening one) other than both the saved one and the port this page came through over HTTPS asks first (*Send clients to port 8445?*); the server does not check it. | Server-side warning in the log | The HTTPS redirect follows the saved port at once, so a typo would send the panel's link to a dead port or another service's sign-in page; only the browser knows which port really reached the server. Saving other settings never asks. |
|
||||
| 2026-11-04 | `GetInfoAsync`: when TLS fails on an HTTPS address and no certificate was refused (the port speaks plain HTTP: the HTTP port typed without a scheme, `192.168.30.23:8087`), it reads `server/info` over `http://` on the same authority, without credentials; any answer gives `NotChronosServerException` (check the port, the client address), no answer rethrows (unreachable). | Report it as unreachable | The server did answer; the useful advice is the port and the panel's client address. |
|
||||
| 2026-11-04 | In a container, the first save of the settings removes `HttpPort` and `HttpsPort` from `server.json` (also when nothing else changed); the start-up warning says so. | Remove them at load | Load only reads; the panel cannot edit locked ports, so without this the warning came back at every start. |
|
||||
| 2026-11-04 | Host networking: the guide, README and compose comments say the port mappings do nothing there, the server listens on the host's 8080/8443 and `CHRONOS_HTTP_PORT` / `CHRONOS_HTTPS_PORT` move it off ports another service uses (public ports empty). No template entries for them. | Advanced template entries *Listening HTTP/HTTPS port* | On Bridge such an entry would unmap the template's ports; Host users add a variable, which Unraid offers on every container. |
|
||||
| 2026-11-04 | `ChronosAddress` refuses a link-local IPv6 address with a zone index (`fe80::1%12`): *Invalid address*. | Keep the zone as `%25` | `Uri` and the connection would drop the zone, failing later with a less clear error; the LAN address or name works. |
|
||||
| 2026-11-04 | Screenshot baselines are captured on the development PC (Europe/Rome time zone) from a Release build and committed to `tests/visual/baselines` (156 screens, owner review 3, R2); CI no longer pushes its screenshots to a `ci-screenshots` branch, the branch is deleted, and the `windows` job's token is read-only. Until a Windows runner is registered (on that PC, or a new set accepted from the runner's PC), `screenshots diff` runs locally before a pull request that changes a screen. | Keep accepting from `ci-screenshots`; merge that branch | The owner chose it: no Windows runner exists, so CI never produced a set taken at `SampleData.Now`, and the old `ci-screenshots` commit predates the fixed clock; a branch that only CI writes and that never merges is noise once baselines live in `main`. |
|
||||
| 2026-11-04 | While `--capture` freezes `AppClock`, what the screens measure on the machine is shown as fixed sample values: free space 1.2 TB (`ArchiveLocations.FreeSpace` and the import plan's totals), a server latency of 12 ms, and the last sync comparison at the frozen moment taking 0.4 s. | Raise the diff tolerance; leave them measured | Measured, they moved the Server screens by 0.13–0.15 % (the latency's width shifts the rest of the status line) and the Import screens to the 0.05 % limit (the PC's free space), so baselines failed at random; a larger tolerance would hide real changes. |
|
||||
+4
-4
@@ -131,10 +131,10 @@ Phase 8 gate:
|
||||
7. Visibility: make the `BalboSoft` organisation (and its packages) public, or publish to a public `RELEASES_REPO`, so
|
||||
that people without an account can download releases, get update notices and pull the image.
|
||||
8. Windows runner: register an act_runner in host mode on a Windows PC (.NET SDK, Git for Windows, PowerShell 7) and
|
||||
set the repository variable `WINDOWS_RUNNER` to its label. Then arm the screenshot diff: from the `ci-screenshots`
|
||||
commit of the first green `windows` job of a pull request, run `dotnet run --project src/Chronos.Tools --
|
||||
screenshots accept <dir>` and commit the PNGs to `tests/visual/baselines` (its README says how). From then on a
|
||||
visual change, or a screen without a baseline, fails the `windows` job.
|
||||
set the repository variable `WINDOWS_RUNNER` to its label. The screenshot baselines in `tests/visual/baselines`
|
||||
were captured on the development PC (2026-11-04): register the runner on that PC, or accept a new set captured on
|
||||
the runner's PC (its README says how). From then on a visual change, or a screen without a baseline, fails the
|
||||
`windows` job.
|
||||
9. On Windows: install the latest pre-release's setup, upgrade over the previous version, uninstall (with and without
|
||||
user data), silent mode.
|
||||
10. Unraid: install the template as a user template (README › Server image, Compose and Unraid) with the official
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
| 3 | R6 library on the panel, photo delete and trash (migration 0008), R3 web upload | done 2026-10-27, released as `v0.1.0-rc.5` (one adversarial review round and two fix rounds, 40 findings fixed; strings in all 38 languages; tried by hand in a browser): 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 | `9aa818ed` |
|
||||
| 4a | R7 Reorganize after import | done 2026-10-27, released as `v0.1.0-rc.6` (one adversarial review round and six fix rounds; strings in all 38 languages): BRIEF §5, §7, §7.1, §12.2, §12.5, §12.8, §13, §14.3, §14.5, §14.8, §24; 25 DECISIONS rows dated 2026-10-26 (R7 one naming rule `FrameNaming` for import, upload and Reorganize; what Reorganize renames and what stays whole; unique names in index order and XMP companions; the two-phase file journal; step order and checks under the leases; the fingerprint pinning file renames by digest; sequences still receiving photos; a sequence left inside a moving folder taken along; Reorganize as the `move` job with held plans; the whole-plan tally and errors; `sequenceChanged` `reorganized` and the editor reload; exports rebased with their folder; the rows of a sequence that took the old folder never follow; writers under the lease and render filing's 503; a folder another sequence holds refused by every writer; proxy lease batches; case-only and stable folders; template rules; rules held only to templates given anew; the server's plan cache; the reorganize API; panel selection and dialog; the desktop dialog and the Settings toast; render leftovers removed only where the sequence is; originals restored only where the sequence is), three earlier rows marked superseded; CHANGELOG [0.1.0-rc.6] with the template upgrade note and the known limitations; STATUS 8.3 | `7e4a3b48` |
|
||||
| 4b | R7 mass conversion | done 2026-11-02, released as `v0.1.0-rc.7` (one adversarial review round, 42 findings, and two fix rounds; strings in all 38 languages): BRIEF §5, §7, §8.1, §8.3, §8.7, §9, §12.2, §12.4, §12.5, §13, §14.3, §14.4, §14.5, §14.8, §14.9, §24; 26 DECISIONS rows dated 2026-10-26 (R7 conversion after import, import still byte for byte; Replace or New sequence at every run, never remembered; targets and the scene-referred archival DNG; the conversion's decoder order, managed first and no 16-bit file from an 8-bit RAW development; the TIFF reader's refusals; colour profiles carried, converted or refused; the converted files' Exif; a dry run that probes what it promises; exactly the confirmed photos, by digest and ids; the two-stage, resumable job; the purge of staging and journals; free space measured where the conversion writes; no conversion of the same sequences twice; New sequence holding the converted copies alone, saying what it lacks; the Replace swap; the replace journal decided by content; Undo by the job's own entries; replaced entries weighed against the archive on disk; every last copy named before the typed confirmation; sync aliases as equivalence classes; link by content, proxies and downloads following them; the ingest taking a replaced original as present; the plan cache shared with Reorganize; the convert API; the `convert` job kind; failure sentences by cause), four earlier rows marked superseded in part; CHANGELOG [0.1.0-rc.7] with the upgrade note and the known limitations; STATUS 8.3 | `efa87f68` |
|
||||
| 5a | R8 workspace and projects with a local home (migration 0009) | done 2026-11-03, to be released as `v0.1.0-rc.8` (one adversarial review round, 55 findings, and five fix rounds; strings in en and it, the 36 other languages still to translate): BRIEF §4.4, §5, §7, §12.2, §12.3, §12.6, §12.8, §14.5, §14.6, §24; 46 DECISIONS rows dated 2026-11-03 (R8 projects and versions in the index by migration 0009; the sidecars as the truth; the portable form with positions parked by photo and canonical text; placing by photo; unknown members kept; a newer settings format read only; project file format 2; the 64 MiB limits; Main mirroring the settings and `project.json`; the Main catch-up merge; a mirror never written over settings it has not taken in; deletion from the trash read first, late versions moved beside it; lost and behind records; one Main; push rules; `IProjectHome`; the workspace folder and its write order; versions set aside and pruned; conflicts and Save both naming; media learning names; the frames stamp; Gone and Damaged states; newer and damaged copies; Edit opening workspace projects; editor saves; sync; Kept versions; Remove local copy; Delete project; the workspace copy job and its cancel clean-up; renders with project and version; `.chronos` files; the picker; Settings › Workspace; texts; `IWorkspaceUi`; leases), five earlier rows marked superseded in part; CHANGELOG [0.1.0-rc.8] with the migration 0009 upgrade note and the known limitations; STATUS 8.3 | |
|
||||
| 5a | R8 workspace and projects with a local home (migration 0009) | done 2026-11-03, released as `v0.1.0-rc.8` on 2026-11-04 (one adversarial review round, 55 findings, and five fix rounds; strings in en and it, the 36 other languages still to translate): BRIEF §4.4, §5, §7, §12.2, §12.3, §12.6, §12.8, §14.5, §14.6, §24; 46 DECISIONS rows dated 2026-11-03 (R8 projects and versions in the index by migration 0009; the sidecars as the truth; the portable form with positions parked by photo and canonical text; placing by photo; unknown members kept; a newer settings format read only; project file format 2; the 64 MiB limits; Main mirroring the settings and `project.json`; the Main catch-up merge; a mirror never written over settings it has not taken in; deletion from the trash read first, late versions moved beside it; lost and behind records; one Main; push rules; `IProjectHome`; the workspace folder and its write order; versions set aside and pruned; conflicts and Save both naming; media learning names; the frames stamp; Gone and Damaged states; newer and damaged copies; Edit opening workspace projects; editor saves; sync; Kept versions; Remove local copy; Delete project; the workspace copy job and its cancel clean-up; renders with project and version; `.chronos` files; the picker; Settings › Workspace; texts; `IWorkspaceUi`; leases), five earlier rows marked superseded in part; CHANGELOG [0.1.0-rc.8] with the migration 0009 upgrade note and the known limitations; STATUS 8.3 | `9b24cf74` |
|
||||
| 5b | R8 server home | todo | |
|
||||
| 5c | R8 originals, local render, clean-up, Workspace settings | todo | |
|
||||
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
# Owner review 3 (2026-11-04)
|
||||
|
||||
## Owner's text (verbatim, Italian)
|
||||
|
||||
> Ottimo! Ecco altre cose da sistemare:
|
||||
> * ho notato un problema di connessione tra l'uploader e il server. Il server non è configurato sulle porte
|
||||
> preimpostate, potrebbe essere questo il problema? Nelle impostazioni del server vedo che le porte indicate sono
|
||||
> sbagliate
|
||||
> * fai finire il branch degli screen nel branch principale
|
||||
> * elimina i branch vecchi o uniti se ritieni che non servono
|
||||
>
|
||||
> Inoltre verifica lo stato dell'applicazione e delle modifiche in corso, assicurandoti che sia stato tutto fatto e
|
||||
> pubblica la prima release ufficiale su Gitea.
|
||||
>
|
||||
> Alla fine individua il miglior modello di business per questa applicazione, come venderlo, a che prezzo, oppure
|
||||
> integrare la pubblicità o la condivisione di banda, mostrandomi in un elenco di vari modi di monetizzazione, il loro
|
||||
> guadagno previsto, la soddisfazione dell'utente e altri parametri che mi permettano di decidere qual è il miglior
|
||||
> modo di monetizzare questa applicazione, dicendomi anche quale implementeresti tu.
|
||||
|
||||
Two screenshots came with it: the Unraid template (repository `chronos-server:nightly`, network Bridge, host port 8087
|
||||
→ container 8080, host 8444 → container 8443, Public HTTPS port 8444) and the panel's Settings › Network and TLS
|
||||
(HTTP port 8080, HTTPS port 8443).
|
||||
|
||||
## Interpretation
|
||||
|
||||
| Id | Request | Working interpretation |
|
||||
|---|---|---|
|
||||
| R1 | Uploader cannot connect; the panel shows the wrong ports | The panel showed the ports the server listens on inside the container (8080/8443), not the host ports clients must use (8087/8444). The public HTTP port had no template entry, both clients turned a bare host into `https://host:443`, and on the owner's host 8443 is another service (it redirects to its sign-in page). Fix: public ports become panel settings (locked by `CHRONOS_PUBLIC_HTTP(S)_PORT`), the listening ports are read-only in a container, the panel shows the client address with a Copy button, the template gains Public HTTP port, both clients default to 8443 when no scheme and no port are typed, and an address that answers as another service gives a clear "not a Chronos server" error and is never offered for certificate trust. Bridge networking keeps LAN discovery inside Docker: the tooltip and the guide say so. |
|
||||
| R2 | The screenshots branch into `main` | `ci-screenshots` held screenshots taken on CI. The owner chose to capture them again on the development PC and commit them as `tests/visual/baselines` on `main`, then delete the branch. |
|
||||
| R3 | Delete old or merged branches | Old worktrees removed, local branches archived under `refs/archive/<name>` (recoverable), merged remote branches deleted. Kept: `main` and the branches of work not merged yet (phase 5b). |
|
||||
| R4 | Check the state and publish the first official release | The owner chose to finish everything first (owner review 2 phases 5b and 5c, owner review 1 phases 4–6, each with its release candidate), then publish `v1.0.0` as the first stable release. |
|
||||
| R5 | Business model | A comparison of monetization models (sales, prices, subscriptions, ads, bandwidth sharing, …) with expected revenue, user satisfaction and the other criteria, plus a recommendation. Delivered in the conversation; no code. |
|
||||
|
||||
## Questions and answers
|
||||
|
||||
| Question | Answer |
|
||||
|---|---|
|
||||
| What should the first official release contain? | Finish everything first: phases 5b and 5c, then owner review 1 phases 4–6, each with its release candidate; then `v1.0.0`. |
|
||||
| The screenshots branch: merge it, or capture again? | Capture again on this PC and commit them as `tests/visual/baselines`; then delete `ci-screenshots`. |
|
||||
|
||||
## Delivery plan
|
||||
|
||||
| Phase | Content | State | Commit |
|
||||
|---|---|---|---|
|
||||
| 1 | R1 ports, R2 baselines | in progress, to be released as `v0.1.0-rc.9` | |
|
||||
| 2 | R4 owner review 2 phases 5b and 5c | todo | |
|
||||
| 3 | R4 owner review 1 phases 4–6, then `v1.0.0` | todo | |
|
||||
Reference in new issue
Block a user