From 32a0e9bbc1f002cd7f62df7e198f5e95ce7362af Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 12 Oct 2026 14:45:15 +0000 Subject: [PATCH] fix(diagnostics,analysis): server bundle names the SQLite build; a resumed deep run leaves proxied frames' tiers alone MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - The server's diagnostics bundle lists the SQLite compile options next to the database line when the index is SQLite (BRIEF §6.2), as the desktop bundle does; before, they reached only one early log line. - A deep analysis resumed after an interrupted run decodes the frames that run found unreadable again to confirm them; a frame read from its proxy is now skipped, so the proxy's tier is never recorded as the original's. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC --- src/Titano.Data/Processing/SequenceAnalyser.cs | 3 ++- src/Titano.Server/Api/DiagnosticsEndpoints.cs | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Titano.Data/Processing/SequenceAnalyser.cs b/src/Titano.Data/Processing/SequenceAnalyser.cs index 9a320d71..b89a9fd9 100644 --- a/src/Titano.Data/Processing/SequenceAnalyser.cs +++ b/src/Titano.Data/Processing/SequenceAnalyser.cs @@ -144,8 +144,9 @@ internal sealed class SequenceAnalyser(TitanoDatabase db, ProcessingOptions opti var read = source.Read.ToHashSet(); foreach (var index in report.Issues.Undecodable) { + // A frame read from its proxy says nothing about its original's tier. if (index >= frames.Count || read.Contains(index) || frames.Files[index] is not { } path - || (frames.Frames[index].Flags & SequenceFrames.NotAnalysed) != 0) continue; + || (frames.Frames[index].Flags & SequenceFrames.NotAnalysed) != 0 || frames.Proxied is { } proxied && proxied[index]) continue; var frame = frames.Frames[index]; try { diff --git a/src/Titano.Server/Api/DiagnosticsEndpoints.cs b/src/Titano.Server/Api/DiagnosticsEndpoints.cs index 802ef10d..6159b65d 100644 --- a/src/Titano.Server/Api/DiagnosticsEndpoints.cs +++ b/src/Titano.Server/Api/DiagnosticsEndpoints.cs @@ -71,6 +71,9 @@ public static class DiagnosticsEndpoints sb.Append(DiagnosticsArchive.SystemReport()); sb.AppendLine(CultureInfo.InvariantCulture, $"Uptime {time.GetUtcNow() - state.StartedAt:d\\.hh\\:mm\\:ss}"); sb.AppendLine(CultureInfo.InvariantCulture, $"Database {state.Database} ({options.Database})"); + // The SQLite build's options (BRIEF §6.2) explain behaviour differences between Windows versions. + if (options.Database == DatabaseKind.Sqlite) + sb.AppendLine("SQLite compile options: " + string.Join(' ', Titano.Data.Sqlite.SqliteDatabase.CompileOptions)); sb.AppendLine(CultureInfo.InvariantCulture, $"TLS {options.TlsMode} {state.TlsFingerprint}"); sb.AppendLine(CultureInfo.InvariantCulture, $"Workers {jobs.Workers}"); sb.AppendLine(CultureInfo.InvariantCulture, $"Archive {options.ArchivePath} ({Space(options.ArchivePath)})");