docs: decision on locked age limits and their steps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-10-27 10:42:27 +01:00
1 parent d9d799e4d0
commit ca0fec7fcd
1 file changed
+1
+1
View File
@@ -472,3 +472,4 @@ One line per decision: date · decision · alternative · reason.
| 2026-10-26 | `CHRONOS_LOG_LEVEL` keeps its meaning (files and console) and sets and locks both levels; `CHRONOS_LOG_CONSOLE_LEVEL`, read after it, sets the console alone and wins for it. In server.json `LogLevel` now sets the files only and `ConsoleLogLevel` the console. Levels are names in any case (also `info`, `warn`, `off`); numbers are refused. `GET/PUT /server/settings` carries `lockedBy`, the variable that fixes each locked setting (of two, the one that wins; ignored when saving), and the panel's tooltip names it; the panel's own map of variables is gone. The deploy files no longer set the variable (the Unraid *Log level* is empty, compose has it commented out), and the upgrade note tells existing containers to remove it. (Owner review 2, R11.) | A nullable console level meaning "as the files"; keep `Information` in the deploy files | Existing environments keep working with a simple two-level model; a variable left by an old template would otherwise lock both levels without a word, and only the server knows which variable won. |
| 2026-10-26 | `ServerSettingsDto` carries the log group as a nested `LogSettingsDto`; a `PUT` without it (an older panel) keeps the log settings, and saving applies them at once (`ServerLogging.Apply`). Desktop: Settings › Advanced gets six log rows, applied to the files at once and from the first log line of every launch (`AppLogging.Open`, also a launch that only hands over to the running Chronos), and Advanced gets a Reset section that restores them. (Owner review 2, R11.) | Flat DTO fields; apply the desktop's settings once the app has started | The group mirrors the panel's Logs group. The first line opens a file and prunes, so the defaults would delete what the user keeps longer. |
| 2026-10-26 | Logging never fails what logs: `Log.Write` drops a line its sink throws on (anything but `OutOfMemoryException`), `TeeLogSink` isolates each sink, `FileLogSink` drops a line it cannot write (folder removed, disk full, file locked) and tries again at the next line without creating a removed folder again, and the server's `LoggerSink` drops the `AggregateException` Microsoft.Extensions.Logging throws. Before, an unwritable log left a failed job Running and could stop the job engine's worker and the scheduler's loop (seen as intermittent test failures). (Owner review 2, R10, R11.) | Let logging errors surface; create the folder again | Logging runs inside error handling (a job marked failed, a scheduler pass): the job's state and the next run matter more than a line. A removed log folder stays removed, its lines lost until the next start, rather than reappearing behind the user's back. |
| 2026-10-26 | Setting a system schedule's age limit above 0 (Settings › Logs › Keep audit, or `CHRONOS_AUDIT_RETENTION_DAYS` at start) also ticks its default steps back on; while an environment variable fixes the age above 0, turning the schedule off, changing the age or unticking those steps is 409 `setting_locked`, and the panel disables those controls. The audit retention in force is 0 while the audit step is unticked. Keep audit and Jobs › Scheduled are last-writer-wins, like every panel setting. (Owner review 2, R10, R11.) | Leave the steps as edited; a separate lock per step | A limit set in Settings must take effect, and a variable's limit must not be undone from the panel. |