# Plan of Action: Facility Monitoring & Advanced Treatments **Status:** Planning Phase **Date:** 2025-12-11 Guided by "Spec Kit" principles, we will proceed in the following order. This ensures requirements are clear before implementation begins. ## 1. Compliance & Security (Priority: High) **Objective:** Specification for CCTV & Monitoring Integration. **Why:** Integration with physical security systems (CCTV) requires careful architectural planning regarding bandwidth, security, and protocol support (RTSP, WebRTC, ONVIF) before any code is written. - [ ] **Create Spec Document:** `docs/specs/013_facility_monitoring.md` - **Scope:** Define integration points for CCTV streams. - **Architecture:** Decide on direct stream vs. proxy (e.g., go2rtc). - **Security:** Define access control for video feeds. - **Hardware Support:** List supported standard protocols (ONVIF, RTSP). ## 2. Data Simulation (Priority: Medium) **Objective:** Enhanced Demo Data for "Treatments". **Why:** To visualize the "Treatment" workflow (IPM/Nutrients) effectively in the UI, we need rich, realistic seed data. - [ ] **Update Spec:** Add "Treatment Workflows" section to `docs/specs/006_cultivation_management.md`. - [ ] **Implementation - Seed Data:** - Update `backend/prisma/seed.js` to include: - Diverse IPM products (Preventative vs Curative). - Complex nutrient recipes. - Historical treatment logs (to show "completed" vs "scheduled" states). ## 3. Order of Operations 1. **Finish Current Deployment:** Ensure `Ceiling Height` features are stable on `nexus-vector`. 2. **Draft Specs:** Write `docs/specs/013_facility_monitoring.md`. 3. **Refine Data Model:** Review if `Treatment` needs expansion based on spec. 4. **Implement Seed Data:** Code the realistic treatment scenarios. 5. **Review:** Present Spec & Data for approval. --- *Awaiting completion of current deployment task (Layout Designer Update) before commencing Step 1.*