refactor!: rename Titano to Chronos and move CI and releases to Gitea
CI / Build and test (pull_request) Failing after 2m3s
CI / PostgreSQL 16 integration (pull_request) Skipped
CI / PostgreSQL 17 integration (pull_request) Skipped
CI / Docker image (pull_request) Skipped
CI / Windows tests and installer (pull_request) Skipped
CI / YAML check (pull_request) Successful in 4s

The owner renamed the product and moved the repository to the self-hosted
Gitea (https://gitea.encke-hake.ts.net/BalboSoft/Chronos) for more control,
and asked for Actions and a first automatic release with the server package
and the Windows exe (docs/requests/2026-10-23-chronos-gitea.md).

- Chronos everywhere: a byte-exact rename of contents and paths, then a
  per-language review of the forms the old name's ending had dictated.
- Gitea instead of GitHub: the update check, licence, issue and support
  links read ChronosReleasesUrl; the update check takes the highest stable
  version, offers a pre-release build its final release and reports a
  repository it cannot see as a failed check. EULA, security policy and
  Gitea issue forms live at the repository root.
- Gitea Actions for the Linux act_runner (.gitea/workflows): CI, release,
  nightly image and performance gates in the .NET SDK container with git
  checkout. The release cross-compiles the Windows programs, checks their
  icon, version and DPI manifest, packs installers and zips, publishes the
  Gitea release and pushes the server image (REGISTRY_TOKEN). Windows-only
  tests run in an opt-in job on a Windows runner (WINDOWS_RUNNER).
- New Chronos.Tools commands: zip, gitea-release, postgres-ci (replaces the
  docker-exec script, which Gitea's service containers do not allow) and
  pe-check.

BREAKING CHANGE: programs, settings, data folders, file types, environment
variables and the Docker image use the new name; nothing is migrated from
Titano, which never had a release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-10-23 11:34:48 +02:00
1 parent c99842cc86
commit 5f27a86406
1799 files changed
+11728 -10668

No files matched your search

+230 -143
View File
@@ -1,12 +1,12 @@
# Titano — Build Brief for Claude Code
# Chronos — Build Brief for Claude Code
> This document is the complete specification and standing instruction set for building the
> Titano time-lapse ecosystem from scratch. It is written to be read by Claude Code at the
> Chronos time-lapse ecosystem from scratch. It is written to be read by Claude Code at the
> start of every session (via `CLAUDE.md`, see Appendix A) and to be the single source of
> truth for scope, architecture, constraints and delivery order.
>
> Working name: **Titano**. Three shipped programs — **Titano** (Windows desktop client),
> **Titano Server** (Linux/Docker and Windows), **Titano Uploader** (Windows) — sharing one
> Working name: **Chronos**. Three shipped programs — **Chronos** (Windows desktop client),
> **Chronos Server** (Linux/Docker and Windows), **Chronos Uploader** (Windows) — sharing one
> engine. Target audience: photographers, astro/landscape shooters, construction and
> weather-cam operators, hobbyists worldwide.
@@ -17,7 +17,7 @@
### 0.1 Kickoff message
Paste this as the first message in Claude Code, from an empty repository that contains only
this file at `docs/BRIEF.md` and the prototype dump at `docs/reference/titano-prototype.md`:
this file at `docs/BRIEF.md` and the prototype dump at `docs/reference/chronos-prototype.md`:
```
Read docs/BRIEF.md completely before doing anything. It is the full specification for this
@@ -37,14 +37,14 @@ irreversible; otherwise decide, record it in docs/DECISIONS.md, and continue.
`Microsoft.AspNetCore.App`, `Microsoft.WindowsDesktop.App`, the Windows SDK targeting
pack), or an operating-system API reached by P/Invoke or COM interop, is implemented
in-house. CI fails the build if a `PackageReference` appears (§19.2). The prototype in
`docs/reference/titano-prototype.md` proves this is workable: it decodes images with WIC,
`docs/reference/chronos-prototype.md` proves this is workable: it decodes images with WIC,
encodes video with Media Foundation, parses EXIF/TIFF/XMP with its own parsers, and
writes its own MP4 container.
2. **No external processes.** No FFmpeg, no ExifTool, no ImageMagick, no PowerShell
scripts at runtime. The only OS executables/dialogs the product may invoke are listed in
§8.6 (format-volume dialog, shell "open with", browser launch for links).
3. **Cross-platform core, Windows-only presentation.** `Titano.Core`, `Titano.Data`,
`Titano.Protocol` and `Titano.Server` target `net10.0` and must build and pass tests on
3. **Cross-platform core, Windows-only presentation.** `Chronos.Core`, `Chronos.Data`,
`Chronos.Protocol` and `Chronos.Server` target `net10.0` and must build and pass tests on
Linux. Windows-only code lives in `*.Windows` projects or the desktop apps.
4. **English everywhere in the codebase**: identifiers, comments, commit messages, docs.
The prototype is written in Italian; port the algorithms, not the language.
@@ -62,14 +62,15 @@ irreversible; otherwise decide, record it in docs/DECISIONS.md, and continue.
8. **User data is sacred.** Never delete, move or format anything without (a) a verified
hash match of every copied file and (b) an explicit user action. Every destructive
operation is dry-run-able and shows its plan first.
9. **Definition of Done for every phase:** builds green on `windows-latest` and
`ubuntu-latest`; all tests green; no new warnings; `docs/DECISIONS.md` and
`docs/CHANGELOG.md` updated; a short "how to try it" note in the phase report;
localization completeness check passes for `en` and `it`.
9. **Definition of Done for every phase:** CI green on Gitea Actions (§19.1: the Linux
jobs; the `windows` job once a Windows runner is registered, until then the Windows-only
tests run on a Windows PC; amended 2026-10-23, R3); all tests green; no new warnings;
`docs/DECISIONS.md` and `docs/CHANGELOG.md` updated; a short "how to try it" note in the
phase report; localization completeness check passes for `en` and `it`.
10. **Commit style:** Conventional Commits (`feat(core): …`, `fix(server): …`), small
commits, one concern each. Never commit generated binaries, fixtures downloaded by
scripts, or secrets.
11. **Reference prototype:** `docs/reference/titano-prototype.md` is a Repomix dump of the
11. **Reference prototype:** `docs/reference/chronos-prototype.md` is a Repomix dump of the
previous single-program prototype (C#/.NET 10, WinForms, zero packages). Its engine
(metadata parsing, deflicker, holy-grail transitions, optical flow, motion blur,
stabilization, virtual camera, time remap, stacking, Media Foundation encoding, MP4
@@ -81,7 +82,7 @@ irreversible; otherwise decide, record it in docs/DECISIONS.md, and continue.
## 1. Product vision
Titano turns folders of photos (RAW, JPEG, HEIC…) into finished time-lapse videos and keeps
Chronos turns folders of photos (RAW, JPEG, HEIC…) into finished time-lapse videos and keeps
a lifetime archive of shoots organised, verified and searchable — on one PC or on a shared
server.
@@ -94,7 +95,7 @@ server.
Foundation) to purpose-built presets, from 720p previews to 8K 10-bit archives.
- **Archive** hundreds of thousands of photos across years and cameras, on local or network
drives, with an index that can always be rebuilt from the files themselves.
- **Share** through Titano Server: central archive, users with logins, uploads from the
- **Share** through Chronos Server: central archive, users with logins, uploads from the
tiny Uploader, sync of projects, server-side jobs, render delegation to GPU-equipped
clients, and a web admin panel — deployable as a Docker container (Unraid template
included) or on Windows.
@@ -169,9 +170,9 @@ through the in-house wire-protocol client (§6.3).
Microsoft "Raw Image Extension" gives full decode of everything else.
- **Video encoding** on Linux has no OS encoder API; the server produces pure-managed
outputs (MJPEG-AVI, image sequences, GIF, APNG) itself and delegates MP4/H.264/HEVC/AV1
jobs to **render nodes** — Titano clients that volunteer their GPU (§14.7). An in-house
jobs to **render nodes** — Chronos clients that volunteer their GPU (§14.7). An in-house
intra-only H.264 encoder is a P2 universal fallback (§11.6).
- **Testing** uses an in-house runner (`Titano.Testing`, §20.1), not xUnit/NUnit.
- **Testing** uses an in-house runner (`Chronos.Testing`, §20.1), not xUnit/NUnit.
- **HEIC/HEIF** cannot be decoded in-house (HEVC intra decoder is out of scope): Windows
clients decode via WIC (HEIF + HEVC extensions); the server stores originals and relies on
proxies produced by a Windows client or render node.
@@ -181,36 +182,36 @@ through the in-house wire-protocol client (§6.3).
## 3. Repository layout
```
titano/ (private GitHub repo)
chronos/ (Gitea repository BalboSoft/Chronos; amended 2026-10-23, R2)
├── CLAUDE.md operating rules (Appendix A)
├── Directory.Build.props version, LangVersion, nullable, warnings-as-errors, analyzers
├── Directory.Build.targets zero-package guard, resource generation hooks
├── Titano.slnx
├── Chronos.slnx
├── global.json pins .NET 10 SDK
├── src/
│ ├── Titano.Core/ net10.0 — engine: Metadata, Imaging, Codecs, Analysis, Motion, Video (container/muxers), Archive model, Naming, Localization runtime
│ ├── Titano.Core.Windows/ net10.0-windows — WIC decoder, Media Foundation encoder, DXGI, device APIs, winsqlite3 binding
│ ├── Titano.Data/ net10.0 — IDatabase abstraction, SQL dialects, migrations, repositories, Postgres wire client (Titano.Data.Postgres), SQLite driver surface (implemented by Core.Windows binding)
│ ├── Titano.Protocol/ net10.0 — API DTOs, JSON contexts (source-generated), chunked upload protocol, sync manifests, WebSocket event schema, version negotiation
│ ├── Titano.Server/ net10.0 — ASP.NET Core minimal API, auth, job engine, storage service, admin web UI (embedded static files), Docker entrypoint
│ ├── Titano.App/ net10.0-windows — WPF desktop client
│ ├── Titano.Uploader/ net10.0-windows — WPF uploader (tray-capable)
│ ├── Titano.Setup/ net10.0-windows — in-house installer/uninstaller (self-extracting, Add/Remove Programs, shortcuts, file associations)
│ └── Titano.Tools/ net10.0 — CLI: selftest, diagnose, make-icon, i18n export/check, fixtures fetch, changelog
│ ├── Chronos.Core/ net10.0 — engine: Metadata, Imaging, Codecs, Analysis, Motion, Video (container/muxers), Archive model, Naming, Localization runtime
│ ├── Chronos.Core.Windows/ net10.0-windows — WIC decoder, Media Foundation encoder, DXGI, device APIs, winsqlite3 binding
│ ├── Chronos.Data/ net10.0 — IDatabase abstraction, SQL dialects, migrations, repositories, Postgres wire client (Chronos.Data.Postgres), SQLite driver surface (implemented by Core.Windows binding)
│ ├── Chronos.Protocol/ net10.0 — API DTOs, JSON contexts (source-generated), chunked upload protocol, sync manifests, WebSocket event schema, version negotiation
│ ├── Chronos.Server/ net10.0 — ASP.NET Core minimal API, auth, job engine, storage service, admin web UI (embedded static files), Docker entrypoint
│ ├── Chronos.App/ net10.0-windows — WPF desktop client
│ ├── Chronos.Uploader/ net10.0-windows — WPF uploader (tray-capable)
│ ├── Chronos.Setup/ net10.0-windows — in-house installer/uninstaller (self-extracting, Add/Remove Programs, shortcuts, file associations)
│ └── Chronos.Tools/ net10.0 — CLI: selftest, diagnose, make-icon, i18n export/check, fixtures fetch, changelog
├── tests/
│ ├── Titano.Testing/ in-house test framework + runner (attributes, asserts, fixtures, JUnit XML)
│ ├── Titano.Core.Tests/
│ ├── Titano.Data.Tests/ includes PostgreSQL integration tests (skipped without TITANO_TEST_PG)
│ ├── Titano.Server.Tests/ in-process Kestrel on a random port
│ ├── Titano.App.Tests/ view-model tests + XAML lint (tooltip/resource rules) + screenshot smoke (`--capture`)
│ └── fixtures/ tiny checked-in samples; larger CC0 RAW samples fetched by `Titano.Tools fixtures`
│ ├── Chronos.Testing/ in-house test framework + runner (attributes, asserts, fixtures, JUnit XML)
│ ├── Chronos.Core.Tests/
│ ├── Chronos.Data.Tests/ includes PostgreSQL integration tests (skipped without CHRONOS_TEST_PG)
│ ├── Chronos.Server.Tests/ in-process Kestrel on a random port
│ ├── Chronos.App.Tests/ view-model tests + XAML lint (tooltip/resource rules) + screenshot smoke (`--capture`)
│ └── fixtures/ tiny checked-in samples; larger CC0 RAW samples fetched by `Chronos.Tools fixtures`
├── branding/ icon sources (SVG), generated ICO/PNG sets
├── i18n/ .resx sources (en) + translations, glossary, machine-translation notes
├── deploy/
│ ├── docker/Dockerfile, docker-compose.yml, entrypoint
│ └── unraid/titano.xml
├── .github/workflows/ ci.yml, release.yml, docker.yml
└── docs/ BRIEF.md (this), DECISIONS.md, CHANGELOG.md, ARCHITECTURE.md (generated per phase), reference/titano-prototype.md
│ └── unraid/chronos.xml
├── .gitea/workflows/ ci.yml, release.yml, docker.yml, perf.yml (amended 2026-10-23, R2)
└── docs/ BRIEF.md (this), DECISIONS.md, CHANGELOG.md, ARCHITECTURE.md (generated per phase), reference/chronos-prototype.md
```
Project references: `App` → `Core`, `Core.Windows`, `Data`, `Protocol`. `Server` → `Core`,
@@ -225,7 +226,7 @@ Project references: `App` → `Core`, `Core.Windows`, `Data`, `Protocol`. `Serve
```
┌────────────────────────────────────────────────────────────────┐
│ Titano (WPF client) │
│ Chronos (WPF client) │
│ Library · Edit · Import · Archive manager · Jobs │
│ Local mode: SQLite + local/network archive │
│ Server mode: REST/WS client, proxies cache, render node │
@@ -233,7 +234,7 @@ Project references: `App` → `Core`, `Core.Windows`, `Data`, `Protocol`. `Serve
│ HTTPS REST + WebSocket │ Memory cards (USB/SD)
▼ ▼
┌───────────────────────────────────┐ ┌──────────────────────────┐
│ Titano Server │ │ Titano Uploader (WPF) │
│ Chronos Server │ │ Chronos Uploader (WPF) │
│ Kestrel · API v1 · Auth · Jobs │◄───────────│ queue · watch folders │
│ Storage service · Admin web panel │ HTTPS │ resumable chunk upload │
│ Pure-managed encoders │ └──────────────────────────┘
@@ -246,7 +247,7 @@ Project references: `App` → `Core`, `Core.Windows`, `Data`, `Protocol`. `Serve
### 4.2 Shared engine
`Titano.Core` is the same assembly on client and server: metadata parsing, image codecs,
`Chronos.Core` is the same assembly on client and server: metadata parsing, image codecs,
analysis advisor, render pipeline, container writers. Only the *decoder/encoder providers*
differ per platform, behind two interfaces:
@@ -329,7 +330,7 @@ Paging everywhere (keyset pagination on `(first_capture, id)`).
## 6. Data layer
### 6.1 `Titano.Data` abstraction
### 6.1 `Chronos.Data` abstraction
```csharp
public interface IDatabase : IAsyncDisposable {
@@ -345,30 +346,30 @@ public interface IDbSession : IAsyncDisposable {
```
Hand-written SQL in repositories (`SequenceRepository`, `FrameRepository`, …); no ORM.
Migrations: numbered `.sql` files per dialect in `Titano.Data/Migrations/{sqlite,postgres}/`,
Migrations: numbered `.sql` files per dialect in `Chronos.Data/Migrations/{sqlite,postgres}/`,
applied at startup inside a transaction, recorded in `schema_migrations`. Dialect
differences (types, `RETURNING`, upserts) are confined to SQL files and a small `SqlDialect`
helper.
### 6.2 SQLite (client, and Windows standalone server)
- Binding: `Titano.Core.Windows/Sqlite/WinSqlite3.cs` P/Invoke to `winsqlite3.dll`
- Binding: `Chronos.Core.Windows/Sqlite/WinSqlite3.cs` P/Invoke to `winsqlite3.dll`
(`sqlite3_open_v2`, `prepare_v2`, `step`, `reset`, `finalize`, `bind_*`, `column_*`,
`exec`, `errmsg`, `last_insert_rowid`, `changes`, `busy_timeout`, `libversion`,
`extended_result_codes`). UTF-8 marshalling by hand. Check `sqlite3_libversion() ≥ 3.31`
at startup; probe `PRAGMA compile_options` and never depend on FTS/JSON extensions.
- Pragmas: `journal_mode=WAL`, `synchronous=NORMAL`, `foreign_keys=ON`,
`temp_store=MEMORY`, `cache_size=-65536`, `mmap_size=268435456`.
- Location: `%LOCALAPPDATA%\Titano\titano.db` (never Documents/OneDrive-synced folders —
- Location: `%LOCALAPPDATA%\Chronos\chronos.db` (never Documents/OneDrive-synced folders —
SQLite in a synced folder corrupts). Portable mode: `portable.txt` next to the exe puts
everything under `.\data\`.
- Backups: `VACUUM INTO` nightly copy kept ×3; restore from Settings › Advanced.
### 6.3 PostgreSQL client (`Titano.Data.Postgres`) — in-house wire protocol v3
### 6.3 PostgreSQL client (`Chronos.Data.Postgres`) — in-house wire protocol v3
- TCP + optional TLS via `SslStream` after `SSLRequest`; `sslmode` = disable | prefer |
require | verify-full.
- Startup (`user`, `database`, `application_name=titano-server`, `client_encoding=UTF8`,
- Startup (`user`, `database`, `application_name=chronos-server`, `client_encoding=UTF8`,
`TimeZone=UTC`); authentication: SCRAM-SHA-256 (`Rfc2898DeriveBytes.Pbkdf2`, HMAC-SHA256,
channel binding not required), MD5, cleartext, trust.
- Simple query, extended query (Parse/Bind/Describe/Execute/Sync) with parameters in text
@@ -389,7 +390,7 @@ The archive is the source of truth; the database is an index that can be rebuilt
```
<ArchiveRoot>/
├── .titano/
├── .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)
@@ -398,7 +399,7 @@ The archive is the source of truth; the database is an index that can be rebuilt
│ ├── originals/ IMG_0001.CR2 … names = expanded FileTemplate
│ ├── proxies/ 0001.jpg … (JPEG, long edge per policy; optional, regenerable)
│ ├── exports/ 2026-09-28 Harbour sunset - 4K HEVC.mp4 …
│ └── .titano/
│ └── .chronos/
│ ├── sequence.json sidecar manifest (below)
│ ├── analysis.json full deep-analysis report
│ ├── project.json render settings (the "project")
@@ -480,7 +481,7 @@ dims, delta), `WhiteLevel`, `AsShotNeutral`/`AsShotWhiteXY`, `ColorMatrix1/2` +
`WarpRectilinear`, `FixVignetteRadial`; unknown opcodes ignored with a warning),
`BaselineExposure`. Output: linear Rec.709/sRGB primaries float planes.
### 8.3 Managed codecs (all in `Titano.Core/Codecs`, pure C#, SIMD where it pays)
### 8.3 Managed codecs (all in `Chronos.Core/Codecs`, pure C#, SIMD where it pays)
- `JpegDecoder` (baseline, progressive, restart intervals, 4:4:4/4:2:2/4:2:0/4:1:1/gray,
12-bit optional, ICC ignored), `JpegEncoder` (baseline, quality 1–100, subsampling
@@ -519,7 +520,7 @@ size and budget, never by sequence length; the self-tests assert this.
---
## 9. Metadata model and parsers (`Titano.Core/Metadata`)
## 9. Metadata model and parsers (`Chronos.Core/Metadata`)
Port and extend the prototype's binary parsers: container detection by signature; JPEG
segment scan (APP1 Exif, APP1 XMP + extended XMP, APP2 MPF); TIFF/IFD walker with on-demand
@@ -666,7 +667,7 @@ player smoke test on Windows CI.
---
## 12. Titano desktop client — UI specification
## 12. Chronos desktop client — UI specification
### 12.1 Shell
@@ -813,7 +814,7 @@ player smoke test on Windows CI.
### 12.5 Archive manager
```
│ [Archive: D:\TitanoArchive ▾] [Scan] [Rebuild index] [Verify] [Duplicates] [Orphans] [Adopt folder…] [Maintenance ▾] │
│ [Archive: D:\ChronosArchive ▾] [Scan] [Rebuild index] [Verify] [Duplicates] [Orphans] [Adopt folder…] [Maintenance ▾] │
├──────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ 618,204 photos · 412 sequences · 9.4 TB · 14 cameras · 2019–2026 │
│ ▆▇█▅▂▁▃▆ photos per month (heatmap) ██████░░ storage by year ▉▉▉▍ by camera ▉▉▎ by format │
@@ -896,12 +897,12 @@ Version, build, licence/EULA link, third-party notice (none), diagnostics bundle
---
## 14. Titano Server
## 14. Chronos Server
### 14.1 Stack
ASP.NET Core minimal API on Kestrel (`Microsoft.AspNetCore.App` shared framework, no
packages), `System.Text.Json` source-generated contexts from `Titano.Protocol`, WebSockets
packages), `System.Text.Json` source-generated contexts from `Chronos.Protocol`, WebSockets
for events, in-house structured file logging (`Microsoft.Extensions.Logging` abstractions
are part of the shared framework; the file provider is in-house), in-house rate limiting for
login and uploads, health endpoint, graceful shutdown (jobs checkpoint).
@@ -922,7 +923,7 @@ login and uploads, health endpoint, graceful shutdown (jobs checkpoint).
- Limits: max upload size, chunk size (default 8 MiB), per-user quota, request timeouts,
login rate limit (5/min/IP), audit log.
### 14.3 API v1 (JSON; errors as `{ code, message, details }`; `X-Titano-Api: 1`)
### 14.3 API v1 (JSON; errors as `{ code, message, details }`; `X-Chronos-Api: 1`)
```
POST /api/v1/auth/login {username,password,clientName} → {token,user,mustChangePassword}
@@ -990,7 +991,7 @@ job's own follow-ups never interrupt it. (Amended 2026-10-16, R2.)
### 14.7 Render nodes
A Titano client with "Offer this PC as render node" registers its encoder capabilities
A Chronos client with "Offer this PC as render node" registers its encoder capabilities
and polls/claims render jobs matching them, downloads what it needs (proxies or originals
per job settings), renders with its GPU, uploads the result as a render of the sequence.
Node state shown in admin › Jobs; the server falls back to managed formats when no node is
@@ -1000,7 +1001,7 @@ available and says so in the job log.
```
┌─────────────┬────────────────────────────────────────────────────────────────────────────┐
│ Titano │ Dashboard │
│ Chronos │ Dashboard │
│ ● Dashboard │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ Users │ │ 9.4 TB │ │ 412 seq │ │ 3 jobs │ │ 2 nodes │ │
│ Archive │ │ of 16 TB │ │ 618k pho │ │ running │ │ online │ │
@@ -1023,25 +1024,25 @@ links' tooltips then naming their page; on narrow screens it stays the top bar (
### 14.9 Configuration and Docker
Environment variables (also readable from `/data/server.json`):
`TITANO_ADMIN_USER`, `TITANO_ADMIN_PASSWORD` (used only when no admin exists; forced change
at first login), `TITANO_ARCHIVE_PATH=/archive`, `TITANO_DATA_PATH=/data`,
`TITANO_DB=postgres|sqlite` (Linux: postgres only), `TITANO_DB_HOST`, `TITANO_DB_PORT=5432`,
`TITANO_DB_NAME`, `TITANO_DB_USER`, `TITANO_DB_PASSWORD`, `TITANO_DB_SSLMODE=prefer`,
`TITANO_HTTP_PORT=8080`, `TITANO_HTTPS_PORT=8443`, `TITANO_TLS_MODE=auto|pem|proxy`,
`TITANO_TLS_CERT`, `TITANO_TLS_KEY`, `TITANO_SERVER_NAME`, `TITANO_LANG=en`,
`TITANO_PARALLELISM` (photos the running job processes at once; `TITANO_WORKERS`, its former
name, still sets it), `TITANO_PRIORITY_QUEUE=false`, `TITANO_DISCOVERY=true` (LAN UDP beacon),
`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_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.)
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
`/health`, `linux/amd64` + `linux/arm64`. `docker-compose.yml` with a PostgreSQL 17 service.
Windows: `Titano.Server.exe` runs as console or Windows Service (`sc create`), SQLite or
Windows: `Chronos.Server.exe` runs as console or Windows Service (`sc create`), SQLite or
PostgreSQL.
---
## 15. Titano Uploader
## 15. Chronos Uploader
Single small window (tray-capable), zero analysis: connect + sign in (token saved with
DPAPI), drop zone (files/folders/cards), queue with per-file state, pause/resume, bandwidth
@@ -1053,7 +1054,7 @@ new files after they stop growing), run at startup, minimise to tray, per-sessio
for HEIC/RAW so the server can render without a node.
```
│ Titano Uploader ☁ https://nas.local:8443 · alberto · ● Connected [⚙] │
│ Chronos Uploader ☁ https://nas.local:8443 · alberto · ● Connected [⚙] │
│ ┌────────────────────────────────────────────────────────────────────────────────┐ │
│ │ Drop photos, folders or a card here │ │
│ └────────────────────────────────────────────────────────────────────────────────┘ │
@@ -1072,19 +1073,20 @@ for HEIC/RAW so the server can render without a node.
`Import`, `Archive`, `Server`, `Settings`, `Tooltips`, `Errors`, `Advisor`, `Admin`).
Keys are stable identifiers (`Library.Filter.Year`), never English sentences.
- Runtime: `ResourceManager` + a `Loc` XAML markup extension and `L("key", args)` helper in
`Titano.Core/Localization`; culture switch at runtime without restart (rebinding via a
`Chronos.Core/Localization`; culture switch at runtime without restart (rebinding via a
`LocalizationChanged` event); web admin receives `/api/v1/i18n/{culture}` generated from
the same resx by `Titano.Tools i18n export`.
the same resx by `Chronos.Tools i18n export`.
- Plurals: an in-house minimal CLDR plural-rule table for the shipped languages
(`one/few/many/other`), keys with suffixes (`Photos.Count.one`, `.other`).
- Dates/numbers/units via `CultureInfo`; file sizes localised; RTL via `FlowDirection`
for `ar`, `he`, `fa`, `ur` (mirrored rail and icons where directional).
- Languages (Phase 8, all machine-translated by Claude Code with a glossary, marked as such
in About and open to community review via the public releases repo): `en` (source), `it`,
in About and open to community review via the releases repository): `en` (source), `it`,
`de`, `fr`, `es`, `pt-BR`, `pt-PT`, `nl`, `pl`, `cs`, `sk`, `hu`, `ro`, `sv`, `da`, `nb`,
`fi`, `ru`, `uk`, `tr`, `el`, `bg`, `hr`, `sl`, `lt`, `lv`, `et`, `ja`, `zh-Hans`,
`zh-Hant`, `ko`, `ar`, `he`, `hi`, `id`, `ms`, `vi`, `th`. Add more if effort allows.
- `Titano.Tools i18n check` fails CI when a key is missing in `en` or `it`, when a
(Amended 2026-10-23, R2.)
- `Chronos.Tools i18n check` fails CI when a key is missing in `en` or `it`, when a
placeholder count differs between languages, or when a string exceeds the layout budget
(tooltips ≤ 200 chars, labels ≤ 30 chars unless flagged).
- UI is written to survive +40 % text expansion (German, Finnish): no fixed-width labels.
@@ -1098,7 +1100,7 @@ for HEIC/RAW so the server can render without a node.
reading as camera aperture, clock and sun path at once; single accent colour on a rounded
square (dark) tile; no text. Works at 16 px (segments merge into a ring; the disc
remains).
- Generated programmatically (`Titano.Tools make-icon`): in-house PNG encoder + ICO
- Generated programmatically (`Chronos.Tools make-icon`): in-house PNG encoder + ICO
container (16/20/24/32/48/64/128/256), SVG source kept in `branding/`; variants: Server
(mark + three horizontal bars badge), Uploader (mark + up-arrow badge). Also favicon
for the admin panel and a 1024 px PNG for listings. Prototype `IconGenerator` shows
@@ -1113,82 +1115,161 @@ for HEIC/RAW so the server can render without a node.
- Builds: `dotnet publish -c Release -r win-x64 --self-contained -p:PublishSingleFile=true
-p:PublishReadyToRun=true` for App, Uploader, Setup; server as framework-dependent
Docker image and a self-contained Windows zip/installer. (No trimming: WPF does not
support it.)
- `Titano.Setup` (in-house, WPF, ~one screen): choose components (Titano, Uploader,
Server for Windows), folder, shortcuts, file associations (`.titano` project bundles),
installs to `%LOCALAPPDATA%\Programs\Titano` per user (no admin) or `Program Files`
support it.) The Windows programs are cross-compiled on the Linux runner
(`EnableWindowsTargeting`), and `Chronos.Tools pe-check` stops a release whose executables
lost the GUI subsystem, the icon, the version information or the PerMonitorV2 manifest
(amended 2026-10-23, R3).
- `Chronos.Setup` (in-house, WPF, ~one screen): choose components (Chronos, Uploader,
Server for Windows), folder, shortcuts, file associations (`.chronos` project bundles),
installs to `%LOCALAPPDATA%\Programs\Chronos` per user (no admin) or `Program Files`
(elevated), registers Add/Remove Programs entry with uninstaller, silent mode
(`/S /DIR=`), upgrade in place, keeps user data. Payload appended to the setup exe as a
compressed archive (in-house format on `DeflateStream`) with a manifest and per-file
hashes. If the human later permits a build-time tool, Inno Setup/MSIX are acceptable
alternatives; default is in-house.
- Code signing hook in the release workflow (`signtool` from the Windows SDK) using
secrets when present; unsigned builds are still produced.
- Updates: on start (opt-out) the client calls the GitHub Releases API of the **public
releases repository** (§19.4) and shows a one-line notice with "Download" (P1: download
installer, verify SHA-256 from `SHA256SUMS`, run it).
- Distribution: installers and `SHA256SUMS` on the public releases repo; Docker images on
GHCR (public package); Unraid template in the public repo.
- Code signing hook in the release workflow (Authenticode with `osslsigncode`, the Linux
counterpart of `signtool`; amended 2026-10-23, R3) using secrets when present; unsigned
builds are still produced.
- Updates: on start (opt-out) the client calls the Gitea releases API of the **releases
repository** (§19.4), `<server>/api/v1/repos/<owner>/<name>/releases?draft=false&pre-release=false`,
takes the highest version (a pre-release build is offered the final release of its own
version; a 404, a repository the client cannot see, is a failed check, not "up to date"),
and shows a one-line notice with "Download" (P1: download
installer, verify SHA-256 from `SHA256SUMS`, run it). The repository is the build
property `ChronosReleasesUrl` (default `https://gitea.encke-hake.ts.net/BalboSoft/Chronos`),
which also gives the licence link (`<repository>/src/branch/main/EULA.md`), the issues
link (`<repository>/issues`) and the Add/Remove Programs `URLInfoAbout`. (Amended
2026-10-23, R2.)
- Distribution: installers, zips and `SHA256SUMS` on the Gitea release of the releases
repository; Docker images in the Gitea container registry
(`gitea.encke-hake.ts.net/balbosoft/chronos-server`); Unraid template in the repository
(§19.6); who can reach them today: §19.4. (Amended 2026-10-23, R2.)
---
## 19. CI/CD, Docker, Unraid
### 19.1 `ci.yml` (push, PR)
### 19.1 `ci.yml` (push to `main`, pull requests, manual; amended 2026-10-23, R3)
Matrix `windows-latest` / `ubuntu-latest`: `dotnet --info`, restore (no packages → fast),
build with warnings as errors, run `Titano.Testing` for all test projects (JUnit XML
uploaded and annotated), `dotnet format --verify-no-changes`, `Titano.Tools i18n check`,
XAML lint (App.Tests), zero-package guard, Docker build (no push) on ubuntu; PostgreSQL 16
and 17 service containers for `Titano.Data.Tests`; CC0 RAW fixtures fetched by
`Titano.Tools fixtures` and cached (`actions/cache`).
Gitea Actions in `.gitea/workflows`. The runner is act_runner in Docker mode on the Linux
server that also hosts Gitea, label `ubuntu-latest`, one job at a time. The .NET jobs run
in the container `mcr.microsoft.com/dotnet/sdk:10.0` and check out with plain `git` (the
image has no Node.js, so no JavaScript actions such as `actions/checkout`); no artifacts
and no caches are used; builds use 4 cores (`BUILD_CPUS`). Gitea shows no job summary and
no annotations: `::warning`/`::error` lines appear in the log only. Jobs:
- `build`: `dotnet --info`, build with warnings as errors, zero-package guard,
`Chronos.Tools i18n check`, XAML lint, format check, CC0 RAW fixtures fetched by
`Chronos.Tools fixtures` (a missing sample is a warning in the log and its tests skip),
`Chronos.Testing` for the Core, Data (SQLite), Server and Tools tests (JUnit XML), and the
Windows programs (App, Uploader, Setup) cross-compiled for win-x64, packed with
`pack-installer` and checked with `Chronos.Tools pe-check`.
- `postgres`: PostgreSQL 16 and 17 service containers (host name `postgres`) for
`Chronos.Data.Tests` and `Chronos.Server.Tests`; `Chronos.Tools postgres-ci` prepares the
MD5, cleartext and trust roles and TLS through SQL only, because Gitea gives no id of the
service container.
- `docker`: builds the image with the host's daemon (no push) and smoke-tests `/health`
with PostgreSQL 17 on a network of the run.
- `yaml`: in `ruby:3.3-alpine`, with the sources from the Gitea archive API; checks the
workflows, the `.gitea/ISSUE_TEMPLATE` forms and the compose file.
- `windows` (optional): runs only when the repository variable `WINDOWS_RUNNER` names the
label of a Windows act_runner in host mode with the .NET SDK, Git for Windows (in
`C:/Program Files/Git`, whose bash the job names by path) and PowerShell 7: the Core.Windows and App tests, the `--capture` screenshots and their diff,
and the installer test. Without a Windows runner the Windows-only tests are run locally on
a Windows PC.
`perf.yml` runs the performance gates weekly on SQLite and on PostgreSQL 17 in a service
container; the timings are printed at the end of the log.
### 19.2 Zero-package guard
`Directory.Build.targets` target `AssertNoPackageReferences` fails the build if any
`PackageReference` exists; CI also greps `**/*.csproj` and `**/*.props` and checks that
`obj/project.assets.json` lists no packages. Only `actions/*` and `docker/*` GitHub
Actions are used in workflows.
`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*`)
### 19.3 `release.yml` (tag `v*`, or manual re-publish of an existing tag; amended 2026-10-23, R3)
Version from the tag → `Directory.Build.props`; publish self-contained binaries; build
`Titano-Setup-<ver>.exe`, `Titano-Uploader-Setup-<ver>.exe`, `Titano-Server-win-x64-<ver>.zip`;
sign if secrets present; generate `SHA256SUMS` and the changelog (`Titano.Tools changelog`
from Conventional Commits); build and push multi-arch Docker image to
`ghcr.io/<org>/titano-server:<ver>` and `:latest`; create the GitHub Release **in the
public releases repository** with `gh release create` (the `gh` CLI is preinstalled on
runners) using a fine-grained PAT stored as `RELEASES_TOKEN`; copy `deploy/unraid/
titano.xml` and EULA there.
Job `release`, in the SDK container: the version from the tag
(`vMAJOR.MINOR.PATCH[-PRERELEASE]`) passed as `-p:ChronosVersion`, with
`-p:ChronosReleasesUrl` (the releases repository's address, §18); build and the Linux
tests; self-contained single-file win-x64 publish of App and Uploader (ReadyToRun), Server
and Setup (ReadyToRun), cross-compiled on Linux; `Chronos.Tools pe-check` (GUI subsystem,
icon, version information, PerMonitorV2 manifest); Authenticode signing with
`osslsigncode` when the secrets `SIGN_PFX_BASE64` and `SIGN_PASSWORD` exist; the
installers `Chronos-Setup-<ver>.exe` (components Chronos, Uploader, Server) and
`Chronos-Uploader-Setup-<ver>.exe`, `Chronos-Server-win-x64-<ver>.zip` 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.
### 19.4 Public releases repository
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`
(default the user who pushed the tag), `WINDOWS_RUNNER` (§19.1). Secrets:
`REGISTRY_TOKEN` (needed for images), `RELEASES_TOKEN` (only with `RELEASES_REPO`),
`SIGN_PFX_BASE64` + `SIGN_PASSWORD` (optional signing).
Because release assets of a private repository are not publicly downloadable, a second,
public repository (`titano-releases`) holds only: README (what it is, screenshots,
requirements), EULA/LICENSE, release assets, `SHA256SUMS`, Unraid template, `i18n/`
translations for community review, and issues. The private repo publishes into it; nothing
is developed there. The GHCR package is set to public visibility.
### 19.4 Releases repository (amended 2026-10-23, R2)
By default releases are published in `BalboSoft/Chronos` itself: on the owner's own Gitea
the owner decides who sees the organisation, its releases and its packages, and one
repository needs no second token and no copy step. A separate public repository stays
optional, for when the sources must stay hidden while the releases are public: with the
repository variable `RELEASES_REPO` (owner/name of another repository on the same Gitea)
and the secret `RELEASES_TOKEN`, the release goes there, and for the newest stable release
`release.yml` copies into it `deploy/releases-repo/README.md` (what it is, screenshots,
requirements), `EULA.md`, `SECURITY.md`, `.gitea/ISSUE_TEMPLATE`,
`deploy/unraid/chronos.xml` and `branding/chronos-server.svg` (as `unraid/`), the compose
file and `.env.example` (as `docker/`), `i18n/` translations for community review and
`SHA256SUMS`, rewriting the links to that repository and its image; nothing is developed
there. `EULA.md` and `SECURITY.md` live at the repository root, the issue forms in
`.gitea/ISSUE_TEMPLATE` (Gitea issue-form YAML: name, about, title, labels, body).
Today the `BalboSoft` organisation is not visible to anonymous visitors, so the update
check, release downloads and image pulls work for other people only once the owner makes
the organisation (and its packages) public, or publishes to a public `RELEASES_REPO` (the
image stays in the organisation's registry either way); while it is private,
`docker login gitea.encke-hake.ts.net` is needed before pulling. Gitea has no private
vulnerability reporting: security problems are reported privately to the maintainers (the
contact on the owner's Gitea profile, or an e-mail to them), never in a public issue.
### 19.5 `docker.yml`
Nightly build of `main` to `ghcr.io/<org>/titano-server:nightly`; `deploy/docker/
docker-compose.yml` for users (server + PostgreSQL + volumes).
Nightly build of `main` (02:17 daily) to
`gitea.encke-hake.ts.net/balbosoft/chronos-server:nightly` in the Gitea container registry,
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`.
### 19.6 Unraid template (`deploy/unraid/titano.xml`)
### 19.6 Unraid template (`deploy/unraid/chronos.xml`)
Community Applications XML: repository `ghcr.io/<org>/titano-server:latest`, WebUI
`http://[IP]:[PORT:8080]/admin`, ports 8080/8443, paths `/archive` → `/mnt/user/Timelapse`,
`/data` → `/mnt/user/appdata/titano`, variables from §14.9 (admin user/password, DB
host/port/name/user/password, TLS mode, PUID/PGID, TZ), icon URL from the public repo,
support/project links, description ≤ 2 sentences. Document (in the public README) how to
add the template repository URL in Unraid and to pair with the official PostgreSQL
template.
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`,
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`;
`release.yml` rewrites these exact prefixes for a separate releases repository (§19.4), so
they stay verbatim. (Amended 2026-10-23, R2.) Document (in the README) how to install the
template as a user template (Unraid's template repositories read GitHub and GitLab
addresses, not Gitea's) and to pair it with the official PostgreSQL template.
---
## 20. Testing and quality
### 20.1 `Titano.Testing` (in-house)
### 20.1 `Chronos.Testing` (in-house)
Attributes `[Test]`, `[Theory]` + `[Case(...)]`, `[Skip(reason)]`, `[Timeout(ms)]`,
`[Category]`; assertions with expressive messages (`Assert.Equal`, `Approximately`,
@@ -1211,16 +1292,16 @@ out.xml --filter core`.
in-house MP4 inspector + `MediaPlayer` playback check; `--capture` screenshots of every
screen for visual regression (pixel-diff tolerance) and for the phase report.
- Fixtures: tiny synthetic files checked in; CC0 RAW samples (one per major format, from a
public CC0 sample set) fetched by `Titano.Tools fixtures` into `tests/fixtures/external`
(git-ignored, CI-cached).
public CC0 sample set) fetched by `Chronos.Tools fixtures` into `tests/fixtures/external`
(git-ignored; CI fetches them on every run, without a cache; amended 2026-10-23, R3).
### 20.3 Static rules
Warnings as errors; nullable enabled; `dotnet format`; XAML lint: every `Button`,
`ToggleButton`, `Slider`, `ComboBox`, `CheckBox`, `MenuItem` has a `ToolTip`; no literal
`Content="…"`/`Text="…"` outside resources; no `PackageReference`; no Windows APIs in
`Titano.Core`/`Titano.Data`/`Titano.Protocol`/`Titano.Server` (checked by building them on
Linux); public API of `Titano.Protocol` versioned.
`Chronos.Core`/`Chronos.Data`/`Chronos.Protocol`/`Chronos.Server` (checked by building them on
Linux); public API of `Chronos.Protocol` versioned.
### 20.4 Quality gates carried over from the prototype (regression thresholds)
@@ -1238,20 +1319,22 @@ unobserved exceptions, spill file removed.
- In-house ad delivery, no SDK, no tracking by default: the client fetches a signed
campaign manifest (JSON: id, image URL, link, weight, languages, countries, start/end,
minimum version) from `https://<org>.github.io/titano-releases/ads/manifest.json`
(or a URL set by the human), caches creatives, renders them natively in one slot — the
Export section while a render runs (prototype rationale: the only moment an ad takes
nothing from anyone) — and optionally a small footer slot in Library. Clicks open the
browser. Manifest signature: ECDSA P-256 with an embedded public key.
minimum version) from `ads/manifest.json`, a raw file of the releases repository on Gitea
(by default `https://gitea.encke-hake.ts.net/BalboSoft/Chronos/raw/branch/main/ads/manifest.json`),
or from a URL set by the human (amended 2026-10-23, R2), caches creatives, renders them
natively in one slot — the Export section while a render runs (prototype rationale: the
only moment an ad takes nothing from anyone) — and optionally a small footer slot in
Library. Clicks open the browser. Manifest signature: ECDSA P-256 with an embedded public
key.
- Consent: first-run one-line choice for anonymous impression counting (off by default);
when on, a daily aggregated ping (version, language, country from OS locale, counts) —
no identifiers. Privacy policy link in About and EULA.
- Ad-free: "Titano Pro" licence key (ECDSA-signed, offline validation, tied to a display
- Ad-free: "Chronos Pro" licence key (ECDSA-signed, offline validation, tied to a display
name and edition, no phone-home) entered in Settings › Licence; a server licence makes
all its connected clients ad-free (team scenario). Fallback content when the manifest
is empty: internal tips about the program.
- Everything above is a toggle in Settings for the human's own builds; the feature ships
disabled by default until the human flips a build property `TitanoAdsEnabled=true`.
disabled by default until the human flips a build property `ChronosAdsEnabled=true`.
---
@@ -1262,7 +1345,7 @@ split into sub-phases; order inside a phase is Claude Code's choice.
### Phase 0 — Bootstrap (repo, rules, shells)
Solution, `Directory.Build.*`, `global.json`, `CLAUDE.md`, `DECISIONS.md`, `CHANGELOG.md`;
`Titano.Testing`; zero-package guard; `ci.yml`; i18n infrastructure with `en` + `it`;
`Chronos.Testing`; zero-package guard; `ci.yml`; i18n infrastructure with `en` + `it`;
WPF shell (rail, theme, job bar, status strip, settings skeleton, tooltip lint); server
skeleton (Kestrel, `/health`, `/server/info`, login page, admin shell); Dockerfile builds;
branding mark + ICO generator.
@@ -1272,7 +1355,7 @@ branding mark + ICO generator.
Parsers (§9), managed codecs (§8.3), WIC provider, decode tiers, thumbnails/proxies,
`ImageBuffer`/`FrameWindow` port, fixtures tool, fuzz tests, DNG full pipeline.
*Gate:* every fixture decodes at the expected tier on Windows and Linux; PSNR/round-trip
tests green; `Titano.Tools diagnose <folder>` reports per-file tier and metadata.
tests green; `Chronos.Tools diagnose <folder>` reports per-file tier and metadata.
### Phase 2 — Data layer and archive
SQLite binding, PostgreSQL wire client, migrations, repositories, archive layout, sidecars,
@@ -1311,8 +1394,9 @@ client server mode, Uploader app, LAN discovery.
via server; crash-restart resumes jobs; audit log complete.
### Phase 8 — Worldwide release readiness
All languages (§16), RTL pass, installer, `release.yml`, public releases repo bootstrap
(README, EULA draft, template), Unraid template, update check, diagnostics bundle,
All languages (§16), RTL pass, installer, `release.yml`, releases repository content
(README, EULA draft, template; a separate public repository optional since 2026-10-23, R2),
Unraid template, update check, diagnostics bundle,
accessibility pass, performance pass, docs.
*Gate:* tagged pre-release published end-to-end from CI; install/uninstall/upgrade tested;
Unraid template validated.
@@ -1324,8 +1408,8 @@ Unraid template validated.
## 23. Assumptions and open decisions (for the human; do not block on these)
1. Product name **Titano** kept from the prototype — rename before Phase 0 if desired
(repo-wide rename later is costly).
1. Product name **Chronos**, given by the owner on 2026-10-23 in place of the name kept
from the prototype (amended 2026-10-23, R1); settled.
2. Linux server MP4 output relies on render nodes (and P2 intra-only encoder). If an
FFmpeg subprocess were ever allowed as an *optional, opt-in* backend, it would be a
single `IVideoEncoderProvider`; not planned unless the human approves.
@@ -1351,28 +1435,31 @@ questions asked and the answers; DECISIONS rows give the reasons.
| Date | Request | Sections | What changed |
|---|---|---|---|
| 2026-10-16 | Owner review 1, R4 | §8.1, §8.2 | DNG decodes through the managed decoder (WIC only through the Raw Image Extension, never DNG); a GoPro DNG is GPR only when VC-5; analyses and previews take an adequate embedded preview by choice, renders decode natively. |
| 2026-10-16 | Owner review 1, R2 | §12.8, §14.6, §14.8, §14.9 | Jobs run one at a time; the parallelism is photos the running job processes at once; an optional priority queue by job kind pauses lower jobs and resumes them by itself; `TITANO_PARALLELISM` (former `TITANO_WORKERS`) and `TITANO_PRIORITY_QUEUE`. |
| 2026-10-16 | Owner review 1, R2 | §12.8, §14.6, §14.8, §14.9 | Jobs run one at a time; the parallelism is photos the running job processes at once; an optional priority queue by job kind pauses lower jobs and resumes them by itself; `CHRONOS_PARALLELISM` (former `CHRONOS_WORKERS`) and `CHRONOS_PRIORITY_QUEUE`. |
| 2026-10-16 | Owner review 1, R1 | §12.1, §14.8 | The rail is 200 px and collapses to 48 px of icons with ≡ or Ctrl+B, their tooltips naming the sections, saved at once; the admin panel's sidebar is 256 px and collapses the same way, kept in the browser. |
| 2026-10-16 | Owner review 1, R7 | §4.1, §10.2, §12.1, §12.3 | The Sequence section is now Edit: one sequence at a time, chosen in a picker inside the section (Change sequence, Ctrl+O); the editor's tabs are the steps of a guided, freely navigable path that starts with a new Analysis step, each step showing where it stands, with Previous and Next. |
| 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. |
## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated)
```markdown
# Titano — working rules
# Chronos — working rules
Read docs/BRIEF.md when in doubt; it wins over these notes.
- Zero <PackageReference>. Anything not in the .NET BCL / Microsoft shared frameworks / OS APIs is written here.
- No external processes at runtime (no ffmpeg, exiftool, powershell). Only OS dialogs listed in BRIEF §8.6.
- Titano.Core / Data / Protocol / Server target net10.0 and build on Linux; Windows-only code lives in *.Windows or the desktop apps.
- Chronos.Core / Data / Protocol / Server target net10.0 and build on Linux; Windows-only code lives in *.Windows or the desktop apps.
- English identifiers, comments, commits (Conventional Commits). Prototype in docs/reference is Italian: port algorithms, not language.
- Every UI string is a resource (en source, it translation). Labels ≤ 3 words; explanations only in tooltips; every actionable control has a tooltip; no helper paragraphs.
- Destructive operations: dry-run plan first, hash verification, explicit user action.
- When the brief is silent: choose the simplest safe option, log it in docs/DECISIONS.md, continue. Ask only at phase gates or before irreversible choices.
- Definition of Done per phase: green on windows-latest + ubuntu-latest, tests green, no new warnings, DECISIONS + CHANGELOG updated, i18n check green, phase report with "how to try it".
- Build: dotnet build -c Release; tests: dotnet run --project tests/<X> -- --junit out.xml; tools: dotnet run --project src/Titano.Tools -- <command>.
- Definition of Done per phase: CI green on Gitea Actions (the Linux jobs; the windows job once a Windows runner is registered, until then the Windows-only tests run on a Windows PC), tests green, no new warnings, DECISIONS + CHANGELOG updated, i18n check green, phase report with "how to try it".
- Build: dotnet build -c Release; tests: dotnet run --project tests/<X> -- --junit out.xml; tools: dotnet run --project src/Chronos.Tools -- <command>.
- Current phase and next steps: see docs/STATUS.md (update at every gate).
```
## Appendix B — Prototype module map (grep targets in `docs/reference/titano-prototype.md`)
## Appendix B — Prototype module map (grep targets in `docs/reference/chronos-prototype.md`)
| Prototype (Italian) | New home | Notes |
|---|---|---|
@@ -1386,7 +1473,7 @@ Read docs/BRIEF.md when in doubt; it wins over these notes.
| `Pipeline/MediaImporter, PathTemplate` | `Core/Import`, `Core/Naming` | tokens translated to English |
| `Video/MediaFoundationInterop, VideoEncoderSession, Nv12Converter, CodecLimits` | `Core.Windows/MediaFoundation` | add P010, AV1, capability enumeration |
| `Video/Mp4Muxer, BoxWriter, AnnexBParser, ExportPresets, ExportSettings` | `Core/Video`, `Core/Export` | add `av1C`, new presets |
| `Diagnostics/SelfTest, SyntheticSequence, SequenceDiagnostics, Mp4Inspector, Mp4Playback, AdvancedModuleTests, ExifWriter, IconGenerator, CrashGuard` | `tests/*`, `Titano.Tools`, `Core/Diagnostics` | 63 checks → tests |
| `Diagnostics/SelfTest, SyntheticSequence, SequenceDiagnostics, Mp4Inspector, Mp4Playback, AdvancedModuleTests, ExifWriter, IconGenerator, CrashGuard` | `tests/*`, `Chronos.Tools`, `Core/Diagnostics` | 63 checks → tests |
| `UI/*` (WinForms) | not ported | reuse only the interaction ideas (rail, preview tools, Auto indicator, presets) |
| `UI/SponsorPanel` | Phase 9 only | |