diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md index 9b5bf642..bc9b8e36 100644 --- a/docs/DECISIONS.md +++ b/docs/DECISIONS.md @@ -125,3 +125,21 @@ One line per decision: date · decision · alternative · reason. | 2026-10-02 | `xaml-lint` checks keyed value resources against the property type (GridLength for column/row sizes, Thickness, CornerRadius, Double). | Rely on Windows smoke tests | A Double used as a column width compiles and only fails when the template loads on Windows; the lint now fails on Linux too. | | 2026-10-02 | Languages with more plural forms add `key.few` / `key.many` beside the English `key.one` / `key.other`; `i18n check` accepts them, compares their placeholders with English `other` and lets any plural form omit the count. | One English-shaped key set for every language | "Rendered once" style forms cannot cover Russian 21 or Arabic 3–10 otherwise. | | 2026-10-02 | Translations go through `i18n missing` (TSV out) and `i18n import` (TSV in) against `i18n/GLOSSARY.md` plus a per-language `glossary.tsv`; each language is translated and then reviewed by a second pass. | Edit resx by hand | Same path for machine translation and community corrections; keys, placeholders and budgets are validated in one place. | +| 2026-10-03 | `ProjectSettings.FromJson` lays the JSON over the serialised default project: objects merge, arrays and scalars replace, a null never replaces an object. | Deserialise directly | The source-generated reader turns missing members into null/0, so a partial or empty settings JSON lost whole sections. | +| 2026-10-03 | Light analysis is queued by the engine after an import and after a scan that indexed something (Background priority, skipping sequences already queued); deep analysis after an import is queued by the import post-action of the card profile. | Screens queue analyses | The advisor's recommendations exist without user action (§1.1) and nothing is queued twice. | +| 2026-10-03 | Analysis jobs log a failing sequence and continue; the checkpoint `next;i,j` makes a retry analyse only the failed ones; an offline archive stops the job at once. Sequence presets are written to the job log, advice fills Auto values only. | Fail the batch at the first error / apply presets | One bad sequence does not block a library-wide analysis; presets are a user choice. | +| 2026-10-03 | Render jobs whose every output is managed (AVI MJPEG, image sequences, GIF, APNG) run on the server engine. MP4 jobs wait for render nodes, matched by codec and per-encoder size, at least the node timeout and while an online node can encode them; then the server writes MJPEG/AVI at the same size and frame rate and says so in the job log (§14.7). A job the server started resumes only there. | Never render on the server / fall back immediately | A restarting node keeps its jobs and no job waits forever. Replaces the 2026-10-02 row "Render jobs never run on the server engine". | +| 2026-10-03 | Selective claims (`ISelectiveJobHandler.AcceptsAsync`) look at the first 100 queued jobs of selective kinds per claim; other kinds keep the atomic claim. | Scan the whole queue | Bounded cost per claim; documented limit. | +| 2026-10-03 | `POST /jobs` splits a batch into one job per preset; a render node fails a batch job instead of rendering only the main preset; a node registering again requeues jobs its previous run abandoned. Proxies have no hash: fetched whole on retry; originals are resumed and SHA-256 verified. | Nodes render batches | One output per job keeps progress, retries and uploads simple. | +| 2026-10-03 | A render on the server ignores the client's export folder and always writes to the sequence's `exports/`. | Honour the folder | The server never writes outside its archive. | +| 2026-10-03 | Sync state lives in a client-side `sync_links` table (one row per server sequence, linked to its local copy); server-only sequences appear on the Server screen, not in the Library. | Columns on `sequences` | One local copy per server; server-only rows need a home. The server-connected Library mode stays with the Library. | +| 2026-10-03 | Uploads create the server sequence by sending the first original under the session key `titano-sync:`; every original is re-hashed before sending and a mismatch fails the job. | `POST /sequences` | The server cannot store uploads into an empty sequence created that way; originals are sacred. | +| 2026-10-03 | Sync conflicts: any field changed differently on both sides is a conflict settled against the versions shown (Keep mine / Take server confirm the differing settings; Save both takes the server's and keeps this PC's settings as `.titano/project.this-pc-