fix(diagnostics,analysis): server bundle names the SQLite build; a resumed deep run leaves proxied frames' tiers alone

- 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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-12 14:45:15 +00:00
1 parent df3b6bd616
commit 32a0e9bbc1
2 files changed
+5 -1

No files matched your search

@@ -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
{
@@ -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)})");