Add 3 Tier-2 issue-classification arms to the shared FactScorer#1517
Merged
Conversation
Restore three classifications the deprecated Dashboard's report.* / config.critical_issues SQL made but the ported shared analysis engine had dropped. All three are pure FactScorer additions over facts the collectors already emit (no collector/schema/install change), so they light up in Lite, the Dashboard, and Darling recommendations at once; each cites its source SQL line in a code comment. - Query Store disabled: INFO advisory folded into DB_CONFIG, detected as query_store_on_count < database_count (install/50:83). - Security-cache (TokenAndPermUserStore) growth: flat WARNING when the USERSTORE_TOKENPERM clerk >= 1 GB, off the context-only MEMORY_CLERKS fact (install/50:562,583). - Runnable-queue / worker pressure: standalone ScoreCpuFact arm on total_runnable_tasks_count tiered > 50/20/10 plus the small-box runnable_tasks_warning fallback (install/47:1839-1844); additive to and distinct from the #1494 THREADPOOL amplifier, which is unchanged. Advice wired for the new/expanded root keys (MEMORY_CLERKS + RUNNABLE_TASKS blocks; Query Store folded into ComposeDbConfig) so the cards are not contentless, sourced from the Dashboard's own message/recommendation text. FactScorer tests added in both Lite.Tests and Dashboard.Tests (tiers fire at the right band, stay silent below the bar, existing arms unchanged). The Lite clean-server seeder now defaults Query Store ON (the healthy value) so the QS-off arm stays dormant in fixtures not exercising it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
erikdarlingdata
added a commit
that referenced
this pull request
Jul 14, 2026
…-arms-batch1 # Conflicts: # CHANGELOG.md
…-arms-batch1 # Conflicts: # CHANGELOG.md
This was referenced Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Restores three problem classifications the deprecated Dashboard's
report.*/config.critical_issuesSQL made but the ported shared analysis engine (PerformanceMonitor.Analysis, one code path for Lite + Dashboard + Darling) had dropped. All three are pureFactScoreradditions over facts the collectors already emit — no collector, schema, orinstall/*.sqlchange — so they light up in all three apps' recommendations at once. Every threshold cites its source Dashboard SQL line in a code comment.Arm 1 — Query Store disabled (INFO)
ScoreDatabaseConfigFact:query_store_on_count < database_count(user DBs only; system DBs excluded from both counts by the collectors) → low0.3base folded into the existingDB_CONFIGfinding, which roots at any positive severity (aConfigAdvisoryRootKey). INFO band (< 0.75) matches the Dashboard.Source:
install/50_configuration_issues_analyzer.sql:83(severity = N'INFO').Arm 2 — Security-cache (TokenAndPermUserStore) growth (WARNING)
ScoreMemoryFact: reads theUSERSTORE_TOKENPERMclerk size (MB) from the otherwise context-onlyMEMORY_CLERKSfact (the fact carries each top-clerk's MB keyed byclerk_type, andMemoryClerksCollectorstoresclerk_type = sys.dm_os_memory_clerks.type). Flat WARNING (0.9) at>= 1 GB, matching the Dashboard's single WARNING tier with no size escalation.Source:
install/50_configuration_issues_analyzer.sql:562(WARNING),:583(pages_kb / 1024 / 1024 >= 1.0).Arm 3 — Runnable-queue / worker pressure (STANDALONE)
ScoreCpuFact: a standalone arm rooting the collectedcpu_scheduler_statssnapshot ontotal_runnable_tasks_count, tiered> 50→ 1.0,> 20→ 0.75,> 10→ 0.5, plus the collector'srunnable_tasks_warning(SUM(runnable) >= cpu_count) small-box HIGH fallback. Additive to and distinct from the #1494THREADPOOLrunnable-queue amplifier, which is unchanged and still fires independently. Base maxes at 1.0 (WARNING) like every base fact — the CRITICAL band is reached only via amplifier corroboration (the runnable-queue → THREADPOOL escalation).Source:
install/47_create_reporting_views.sql:1839-1844(report.cpu_scheduler_pressurepressure_level CASE).Advice wiring
So the new/expanded root keys don't render contentless cards, advice is wired (sourced from the Dashboard's own message / recommendation SQL): new static
MEMORY_CLERKS+RUNNABLE_TASKSblocks inFactAdvice, and Query Store folded intoComposeDbConfig(lists "N with Query Store off" + enable-QS remediation).Collector changes
None. All three arms read facts/metadata the three collector families already emit identically (
DB_CONFIG.query_store_on_count/database_count,MEMORY_CLERKS[USERSTORE_TOKENPERM],RUNNABLE_TASKS.total_runnable_tasks_count/runnable_tasks_warning). No fact-key-inventory pin is affected (no new fact keys).Tests
FactScorertests in bothLite.TestsandDashboard.Tests(mirrored, Recs Stage B (severity): cap tuning-class CXPACKET, escalate meltdowns through THREADPOOL #1494 style): every tier fires at the right band, stays silent below the bar, and a co-present worseDB_CONFIGissue is left unchanged.TestDataSeeder.SeedDatabaseConfigAsync) now defaults Query Store ON (the healthy value, like the rcsi-on / CHECKSUM defaults beside it) so the QS-off arm stays dormant in fixtures not exercising it; the arm itself is covered directly with hand-built facts.Lite.TestsFactScorer + Inference + Scenario + Collector + AnalysisService = 173 passed;Dashboard.TestsFactScorer + FactAdvice + Inference = 170 passed. Darling analysis project builds. No Installer/live-server tests run.🤖 Generated with Claude Code