Files
ThreadPilot/Models/CpuSelectionMigrationMetadata.cs
T
PrimeBuild-pc 9875f7cc4f refactor: delete ReviewRequired, keep the check, point it at saved rules
ReviewRequired was not merely unread - it had the wrong shape. It is a bit
persisted at save time recording a judgement that can only be made at load
time, against whatever CPU is present then. Three writers, no readers: the
mask path, MigrateProcessProfile (whose Save/Load Profile commands are bound
in no XAML), and CpuPresetGenerator (registered in DI with no consumers).

The field goes. The question it was asking does not, so ShouldRequireReview
stays and finally gets a caller - saved rules, which nothing compared against
the running machine. A rule pinning cores that no longer exist did not
announce itself; it failed at apply time through a path that reports it as the
process having exited. The Saved process rules tab now names those rules, and
their cores can be set again from a mask without leaving the page.

ShouldRequireReview no longer compares topology signatures by record equality.
That included fields which can differ between two readings of the same
machine, and a warning that fires on everything teaches people to ignore it.
It now compares what actually changes the meaning of "core 9": the chip and
the shape of it.

Old files keep the serialized flag; it is ignored on read and dropped on the
next save.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-27 00:43:52 +02:00

18 lines
512 B
C#

namespace ThreadPilot.Models
{
public sealed record CpuSelectionMigrationMetadata
{
public bool CreatedFromLegacyAffinityMask { get; init; }
public bool CreatedFromLegacyCoreMask { get; init; }
public string MigrationConfidence { get; init; } = string.Empty;
public string Reason { get; init; } = string.Empty;
public CpuTopologySignature? TopologySignature { get; init; }
public long? SourceLegacyAffinityMask { get; init; }
}
}