wait-category-analysis
Pass
Audited by Gen Agent Trust Hub on Nov 18, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- Database Diagnostic Command Execution: The skill utilizes T-SQL commands to query database performance metadata. It accesses system dynamic management views such as
sys.dm_os_wait_statsand Query Store tables to identify which resource categories (e.g., CPU, IO, Locks) are causing slowness. - Time-Based Snapshotting: To provide accurate real-time data, the skill takes snapshots separated by a configurable delay using
WAITFOR DELAY. This is a standard diagnostic pattern for calculating wait deltas and does not affect database integrity. - Separation of Diagnostics and Remediation: The skill maintains a clear boundary between data collection and state-changing actions. Administrative commands like
ALTER DATABASEorsp_query_store_force_planare categorized as recommendations and require explicit user authorization before execution. - Platform Environment Validation: Initial steps verify the SQL engine edition and Query Store status, ensuring that diagnostic commands are compatible with the target environment (e.g., Azure SQL vs. on-premises SQL Server) and reducing the risk of execution errors.
Audit Metadata