From 0a3ce91498d0753028b47b2df30f5ca74d6568d5 Mon Sep 17 00:00:00 2001 From: w33ble Date: Mon, 12 Jan 2026 10:54:45 -0700 Subject: [PATCH] chore: update agents file, have the agent update the memory-bank --- AGENTS.md | 19 ++++++++++++++----- memory-bank/activeContext.md | 15 ++++++--------- memory-bank/progress.md | 2 ++ memory-bank/systemPatterns.md | 3 +-- 4 files changed, 23 insertions(+), 16 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 1007bda..8c33520 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -29,6 +29,14 @@ * **I am honest about failures:** If a tool call fails or I am confused by a requirement, I will stop immediately and ask for clarification rather than "hallucinating" a fix. * **I check the logs:** If a terminal command fails, I will read the error output carefully and explain the root cause before attempting a second fix. +## 6. Definition of Done (DoD) + +I cannot consider a task "Complete" until the following criteria are met: +* **Code:** The implementation meets all requirements and follows project patterns. +* **Quality:** Tests pass and no new linting errors are introduced. +* **Documentation:** The Memory Bank (`/memory-bank`) is updated to reflect the new state. +* **Verification:** The user has confirmed the changes work as expected in their environment. + --- # Project Management & Context Rules @@ -67,11 +75,12 @@ At the start of every session, I MUST: - I only perform tasks listed in `memory-bank/progress.md` or as requested by the user. - If I discover a new pattern or make a technical decision (e.g., "we use absolute imports"), I must immediately update `systemPatterns.md`. -### Phase C: Task Completion -Before calling `attempt_completion`, I MUST: -1. Update `memory-bank/activeContext.md` with a summary of changes. -2. Update `memory-bank/progress.md` by checking off completed items. -3. **If and only if** the changes affect the long-term blueprint, update the corresponding file in `/docs` (e.g., updating `API.md` after adding a route). +### Phase C: Task Completion (The "DoD" Check) + +**CRITICAL:** I MUST NOT call `attempt_completion` until the following documentation steps are finished: +1. **Sync Memory Bank:** Update `memory-bank/activeContext.md` with the latest decisions/changes and `memory-bank/progress.md` with completed milestones. +2. **Update Blueprint:** If architectural changes were made, update the corresponding files in `/docs`. +3. **Final Verification:** Ask the user to verify the feature. Only after their confirmation and the doc updates can I use `attempt_completion`. ## 3. Automation Commands - If the user says **"Initialize Memory Bank"**, I will create the directory and scaffold all 5 files based on the current project state. diff --git a/memory-bank/activeContext.md b/memory-bank/activeContext.md index 5e4b8c0..3fccec6 100644 --- a/memory-bank/activeContext.md +++ b/memory-bank/activeContext.md @@ -1,19 +1,16 @@ # Active Context ## Current Status -- Initializing the project environment. -- Documentation phase (Memory Bank & Blueprint). +- Project completed and deployed to Firebase. +- Stable maintenance mode. ## Recent Changes -- Created `memory-bank/projectBrief.md`. -- Created `memory-bank/productContext.md`. -- Implemented unit conversion on toggle in `src/main.ts`. -- Extracted `convertUnits` utility and added tests. +- Updated `AGENTS.md` to include a "Definition of Done" and strict "Phase C" documentation requirements. +- Linked documentation updates explicitly to the `attempt_completion` tool in the protocol. +- Synchronized Memory Bank to reflect completed project state. ## Current Focus -- Completing Memory Bank initialization. -- Drafting PRD and Architecture. -- Setting up the Vite/TypeScript/Tailwind environment. +- Monitoring for bugs and preparing for future enhancements. ## Active Decisions - **Dark Mode Implementation**: Adopted a Dracula Midnight theme (`#21222c` background) as the primary interface style. Added custom Dracula color palette to `tailwind.config.js`. diff --git a/memory-bank/progress.md b/memory-bank/progress.md index 63e5a37..f190684 100644 --- a/memory-bank/progress.md +++ b/memory-bank/progress.md @@ -17,3 +17,5 @@ - [x] Implement `index.html` UI - [x] Implement `src/main.ts` glue code - [x] Verify build output +- [x] Update `AGENTS.md` with strict documentation rules +- [x] Synchronize Memory Bank status diff --git a/memory-bank/systemPatterns.md b/memory-bank/systemPatterns.md index 451ff09..c3cac63 100644 --- a/memory-bank/systemPatterns.md +++ b/memory-bank/systemPatterns.md @@ -20,11 +20,10 @@ - `style.css`: Tailwind entry point. - `docs/`: Permanent documentation (PRD, Architecture). - `memory-bank/`: AI operational context. -- `tests/`: Unit tests. +- `src/calculator.test.ts`: Unit tests. ## Calculation Constants (Defaults) - Grid Width/Depth: 42mm - Grid Height Unit: 7mm - Base Thickness: 4.8mm (typical baseplate height above surface) - Bin Lip/Bottom: 0.7mm (typical clearance/thickness to account for in vertical units) - - *Note: These defaults will be refined during implementation based on official specs.*