Three loose ends from the 1.7.3 review.
Custom masks were flagged and left alone on a CPU change. Growing one is not a
judgement call - the CPUs that appeared were not part of a selection made
before they existed - and shrinking is safe while something is still selected,
so both now happen automatically. Two cases stay with the user: a mask that
would be left selecting nothing, and a mask a power plan association is using,
where a silent resize would change what that automation does without saying so.
Those are named in the Masks tab instead.
A different CPU with the same thread count is also caught now, by comparing the
topology signature stored in the mask's selection against the running machine.
That signature is what CpuSelectionMigrationMetadata.ReviewRequired was being
computed from in four places and read from in none; this is the first thing to
actually use it. The flag itself is still unread, and is now redundant here.
A rule's cores could only be changed from the Process tab, which needs the
process to be running - so the cores of a rule for a game you are not currently
playing were the one thing about it you could not edit. The saved-rules editor
now shows them and can set them from any saved CPU mask, through the same
migration path the Process tab uses. The per-core picker stays where it is
rather than being duplicated.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Built-in masks are re-derived when the logical CPU count changes, because
ThreadPilot knows what "All Cores" is supposed to mean. A mask the user drew
is not ThreadPilot's to redraw: only they know whether the CPUs that appeared
belong in it. Until now those masks just kept selecting the old cores in
silence, under a name that no longer described them.
The Masks tab now says which ones need a look, and only when the core count
came from a successful topology detection - resizing or accusing on the
strength of Environment.ProcessorCount, which under-reports under affinity
limits, would be worse than saying nothing.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Replaces the project's license from GNU GPL v3 to the GNU Affero General Public License v3: updated LICENSE (full AGPL text) and updated license headers across source files. Adds InternalsVisibleTo("ThreadPilot.Core.Tests") (plus using System.Runtime.CompilerServices) in AssemblyInfo to allow test access to internal types. Also introduces Services/TaskSafety.cs and two new test files under Tests/ThreadPilot.Core.Tests to cover task safety. These changes apply the AGPLv3 terms and enable internal API access for unit tests.