Skip to content

CPU topology v2 phase 8: add persistent rules engine foundation#14

Merged
PrimeBuild-pc merged 2 commits into
mainfrom
codex/cpu-topology-v2-phase-8-persistent-rules-engine-foundation
May 20, 2026
Merged

CPU topology v2 phase 8: add persistent rules engine foundation#14
PrimeBuild-pc merged 2 commits into
mainfrom
codex/cpu-topology-v2-phase-8-persistent-rules-engine-foundation

Conversation

@PrimeBuild-pc
Copy link
Copy Markdown
Owner

Summary

  • Adds foundation models for PersistentProcessRule and PersistentRuleApplyResult.
  • Adds a testable persistent rule matcher for process name and executable path matching.
  • Adds a foundation PersistentRulesEngine that applies matching saved affinity/priority rules through existing safe services without adding a background loop.
  • Adds a small JSON-backed rule store and DI registrations.
  • Adds safe persistent-rules copy using the required Apply at process start wording.

Safety scope

  • No Windows Service.
  • No installer changes.
  • No registry affinity or IFEO affinity.
  • No anti-cheat bypass promises.
  • No preset generator, profile migration, or core-mask migration changes.
  • No UI redesign, automatic startup registration, version bump, release notes, tag, or merge.

Tests

  • Matcher: process-name, executable-path, path priority, disabled rules, missing process path, null paths.
  • Engine: CpuSelection, legacy affinity, priority, Realtime guardrail failure, access denied, anti-cheat/protected, process exited, disabled rules, multiple matching rules.
  • Storage: missing file, save/load roundtrip for CpuSelection and legacy affinity, corrupt JSON.

Validation

  • dotnet test "ThreadPilot_1.sln" --configuration Release --no-restore
  • Result: 260 passed, 0 failed, 0 skipped.

Deferred

  • Runtime process-monitor hook for Apply at process start.
  • Any Windows Service or startup registration.
  • UI management for persistent rules.
  • Registry/IFEO persistence expansion.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 20, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 89.67136% with 22 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
Services/PersistentRulesEngine.cs 93.38% 1 Missing and 8 partials ⚠️
Services/PersistentProcessRuleJsonStore.cs 82.75% 2 Missing and 3 partials ⚠️
Services/PersistentProcessRuleMatcher.cs 78.94% 2 Missing and 2 partials ⚠️
Services/ServiceConfiguration.cs 0.00% 3 Missing ⚠️
Services/StoragePaths.cs 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@PrimeBuild-pc PrimeBuild-pc merged commit bffbdee into main May 20, 2026
3 checks passed
@PrimeBuild-pc PrimeBuild-pc deleted the codex/cpu-topology-v2-phase-8-persistent-rules-engine-foundation branch May 20, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants