What problem does it solve?
Mock-based unit tests and golden fixtures cannot catch API contract failures like auth token expiry, payload normalization mismatches, firmware version differences, or hardware-specific field assumptions. This Skill guides running, interpreting, and extending the live hardware smoke test harness (scripts/live_smoke.py) so API-facing changes are verified against real UniFi controllers before merge.
Core Features & Use Cases
- Phase-bounded test execution: Run readonly, preview, safe, approved, or inventory phases to bound blast radius, with a human-in-the-loop confirmation gate before any mutation executes.
- Manifest-driven tool classification: Automatically classifies tools into safety tiers (read_only, preview_or_safe_lifecycle, requires_approval, defer_heavy_read) from ToolAnnotations like readOnlyHint and destructiveHint.
- Pre-merge blocking gate: Enforces mandatory live smoke evidence for PRs that change API response parsing, with artifact interpretation guidance for live-smoke-results/ JSON reports.
- Use Case: After modifying how the alarm manager normalizes API payloads, run the readonly and safe phases against your controller, inspect the artifact summaries for contract mismatches, and attach the results as PR merge evidence.
Quick Start
Ask the AI to run the live smoke harness in readonly phase against the network server and interpret the resulting artifact for any API contract failures.