refactor: update sleep session logic, models, and agent protocols
This commit is contained in:
@@ -56,6 +56,12 @@ Baby monitor - self-hosted web app for tracking infant sleep. Dual-stack monorep
|
||||
- **Frontend JS Slop**: NEVER create `.js` or `.jsx` files for the frontend. Use only TypeScript (`.ts`, `.tsx`). Write clean, type-safe code.
|
||||
- **Assumption Error**: NEVER assume the content of ANY files. ALWAYS read the target file to confirm its structure and implementation before modifying or referencing it.
|
||||
|
||||
## MANDATORY EXECUTION PROTOCOLS (INJECTABLE)
|
||||
|
||||
The following protocols must be strictly adhered to upon injection:
|
||||
- **Read Before Edit**: ALWAYS read the entire target file before performing any `edit` operation.
|
||||
- **Post-Edit Verification**: Immediately after an edit, verify that no lines have been duplicated.
|
||||
- **Stability Check**: Following any code change, run both backend and frontend services AND the full test suite to ensure system stability.
|
||||
## COMMANDS
|
||||
|
||||
### Backend Development
|
||||
|
||||
Reference in New Issue
Block a user