--- description: Require live environment validation after modifying monitor services globs: - "BoilerMonitor.Manager/**/*.cs" - "BoilerMonitor.Models/**/*.cs" - "LightMonitor.Manager/**/*.cs" - "LightMonitor.Models/**/*.cs" - "NordPool.Manager/**/*.cs" - "NordPool.Models/**/*.cs" - "PowerMonitor.Manager/**/*.cs" - "PowerMonitor.Models/**/*.cs" - "ShowerMonitor.Manager/**/*.cs" - "ShowerMonitor.Models/**/*.cs" - "HomeAssistant.McpServer/**/*.cs" alwaysApply: false --- # Live Validation Required After modifying any Monitor service, Manager, or Models code, the agent MUST validate the change works in the live Home Assistant environment before considering the task complete. ## Mandatory Steps 1. **Build** — run `dotnet build` on the affected project to confirm compilation. 2. **Smoke test** — use the `RunSmokeTest` MCP tool (from the `homeassistant` MCP server) with domains relevant to the changed service. 3. **Entity check** — use `ValidateEntities` to confirm critical entities for the changed service are not `unavailable` or `unknown`. ## Domain Mapping | Service Changed | MCP Domains to Check | |---|---| | BoilerMonitor | `switch,sensor,binary_sensor` | | LightMonitor | `light,person,sun` | | NordPool | `sensor` | | PowerMonitor | `sensor` | | ShowerMonitor | `sensor,switch` | ## When to Skip - If the Home Assistant instance is offline (check via `check_api` first) - If changes are purely to unit tests, documentation, or non-runtime code - If the user explicitly says to skip validation ## On Failure Report the specific entities that failed validation and their current states. Do not silently proceed.