Files
microdao-daarion/logs/README.md
Apple ef3473db21 snapshot: NODE1 production state 2026-02-09
Complete snapshot of /opt/microdao-daarion/ from NODE1 (144.76.224.179).
This represents the actual running production code that has diverged
significantly from the previous main branch.

Key changes from old main:
- Gateway (http_api.py): expanded from ~40KB to 164KB with full agent support
- Router: new /v1/agents/{id}/infer endpoint with vision + DeepSeek routing
- Behavior Policy: SOWA v2.2 (3-level: FULL/ACK/SILENT)
- Agent Registry: config/agent_registry.yml as single source of truth
- 13 agents configured (was 3)
- Memory service integration
- CrewAI teams and roles

Excluded from snapshot: venv/, .env, data/, backups, .tgz archives

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 08:46:46 -08:00

109 lines
3.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 📝 Система логування — DAARION & MicroDAO
## 📁 Структура
```
logs/
├── README.md # Цей файл
├── CHANGELOG.md # Головний журнал змін
├── sessions/ # Щоденні логи сесій
│ └── YYYY-MM-DD.md # Лог конкретного дня
├── operations/ # Операційні логи (деплої, міграції)
├── incidents/ # Логи інцидентів безпеки
└── daily/ # Автоматичні щоденні звіти
```
---
## 🚀 Швидкий старт
### 1. Встановіть Git hooks
```bash
./scripts/logging/install-hooks.sh
```
### 2. Додайте shell integration (опціонально)
```bash
# Додайте до ~/.zshrc:
source /Users/apple/github-projects/microdao-daarion/scripts/logging/shell-integration.sh
```
### 3. Перезавантажте shell
```bash
source ~/.zshrc
```
---
## 📋 Команди
| Команда | Опис |
|---------|------|
| `session-start "опис"` | Почати нову сесію |
| `session-log "дія"` | Додати запис до сесії |
| `session-end` | Завершити сесію (commit + push) |
| `daarion-note "нотатка"` | Швидка нотатка |
| `git-sync` | Push на всі репозиторії |
---
## 🔄 Автоматичне логування
### Git hooks (автоматично)
- **post-commit** — логує кожен коміт
- **pre-push** — логує кожен push
### Shell integration (опціонально)
- Автоматично створює сесію при вході в директорію проєкту
- Команда `daarion-log "cmd"` — виконує та логує команду
---
## 📊 Приклад сесії
```markdown
# 📅 Session Log: 2026-01-10
**Оператор:** Ivan + AI Assistant
**Проєкт:** DAARION & MicroDAO
---
## 📋 Хронологія дій
- **10:00** — 📦 Commit `a1b2c3d`: Fix authentication bug (3 files)
- **10:15** — 🚀 Push to `origin`
- **10:30** — 📝 Deployed new version to NODE1
- **11:00** — 📦 Commit `e4f5g6h`: Update documentation (2 files)
```
---
## 🔐 Що логується
**Автоматично:**
- Git commits (хеш, повідомлення, кількість файлів)
- Git push операції
- Час кожної дії
**Вручну (через команди):**
- Початок/кінець сесії
- Важливі дії та рішення
- Нотатки та TODO
**НЕ логується:**
- Паролі та секрети
- Вміст файлів
- Особисті дані
---
## 🔗 Синхронізація
Логи автоматично синхронізуються на:
- GitHub (`origin`)
- Gitea (`gitea`)
- GitLab (`gitlab`)
При завершенні сесії (`session-end`) або вручну (`git-sync`).