diff --git a/bin/luzia b/bin/luzia index ac8b04e..839550d 100755 --- a/bin/luzia +++ b/bin/luzia @@ -1285,13 +1285,25 @@ When you finish your work, you MUST complete these steps before ending: - Update README.md if user-facing features changed - Add comments to complex code sections -2. **Git Commit**: Commit your changes with a descriptive message: +2. **Run Tests (REQUIRED)**: Before committing, verify your changes don't break existing functionality: + ```bash + # Run project tests (if tests/ directory exists) + if [ -d tests/ ]; then + pytest tests/ -v --tb=short + fi + # If tests fail, FIX THE ISSUES before proceeding to commit + ``` + - If tests fail, debug and fix the failures + - If you added new functionality, add corresponding tests + - Update existing tests if your changes require test modifications + +3. **Git Commit**: Commit your changes with a descriptive message: ```bash git add -A git commit -m "Task: " ``` -3. **Knowledge Graph**: Store key learnings using mcp__shared-projects-memory__store_fact +4. **Knowledge Graph**: Store key learnings using mcp__shared-projects-memory__store_fact Note: The project state was automatically snapshot before this task started. If you need to revert, the previous state can be recovered from git history."""