diff --git a/index.md b/index.md index 26bef29..c060230 100644 --- a/index.md +++ b/index.md @@ -3,9 +3,9 @@ ## Generated - Render mode: `native` -- Total pages: 87 +- Total pages: 88 - Claims: 153 -- Sources: 45 +- Sources: 46 - Entities: 11 - Concepts: 12 - Syntheses: 9 @@ -43,6 +43,7 @@ - [Memory Bridge (main, coder-agent, evaluator-agent, humanizer-agent, setup-agent): 2026-09-02-main-migration](sources/bridge-workspace-4c6d747f-memory-2026-09-02-main-migration-b78051cc.md) - [Memory Bridge (main, coder-agent, evaluator-agent, humanizer-agent, setup-agent): 2026-09-05](sources/bridge-workspace-4c6d747f-memory-2026-09-05-7c425a56.md) - [Memory Bridge (main, coder-agent, evaluator-agent, humanizer-agent, setup-agent): 2026-09-13](sources/bridge-workspace-4c6d747f-memory-2026-09-13-0b06517b.md) +- [Memory Bridge (main, coder-agent, evaluator-agent, humanizer-agent, setup-agent): 2026-09-21](sources/bridge-workspace-4c6d747f-memory-2026-09-21-a637cc59.md) - [Memory Bridge (main, coder-agent, evaluator-agent, humanizer-agent, setup-agent): MEMORY](sources/bridge-workspace-4c6d747f-memory-2d62c497.md) - [MEMORY.md - Persistent System State](sources/memory-md-persistent-system-state.md) - [project rules](sources/project-rules.md) diff --git a/sources/bridge-workspace-4c6d747f-memory-2026-08-22-df8f6b52.md b/sources/archive/bridge-workspace-4c6d747f-memory-2026-08-22-df8f6b52.md similarity index 100% rename from sources/bridge-workspace-4c6d747f-memory-2026-08-22-df8f6b52.md rename to sources/archive/bridge-workspace-4c6d747f-memory-2026-08-22-df8f6b52.md diff --git a/sources/bridge-workspace-4c6d747f-memory-2026-08-23-45a691bb.md b/sources/archive/bridge-workspace-4c6d747f-memory-2026-08-23-45a691bb.md similarity index 100% rename from sources/bridge-workspace-4c6d747f-memory-2026-08-23-45a691bb.md rename to sources/archive/bridge-workspace-4c6d747f-memory-2026-08-23-45a691bb.md diff --git a/sources/bridge-workspace-4c6d747f-memory-2026-08-24-8c5f73e5.md b/sources/archive/bridge-workspace-4c6d747f-memory-2026-08-24-8c5f73e5.md similarity index 100% rename from sources/bridge-workspace-4c6d747f-memory-2026-08-24-8c5f73e5.md rename to sources/archive/bridge-workspace-4c6d747f-memory-2026-08-24-8c5f73e5.md diff --git a/sources/bridge-workspace-4c6d747f-memory-2026-08-26-a2be6b00.md b/sources/archive/bridge-workspace-4c6d747f-memory-2026-08-26-a2be6b00.md similarity index 100% rename from sources/bridge-workspace-4c6d747f-memory-2026-08-26-a2be6b00.md rename to sources/archive/bridge-workspace-4c6d747f-memory-2026-08-26-a2be6b00.md diff --git a/sources/bridge-workspace-4c6d747f-memory-2026-08-27-619ff128.md b/sources/archive/bridge-workspace-4c6d747f-memory-2026-08-27-619ff128.md similarity index 100% rename from sources/bridge-workspace-4c6d747f-memory-2026-08-27-619ff128.md rename to sources/archive/bridge-workspace-4c6d747f-memory-2026-08-27-619ff128.md diff --git a/sources/bridge-workspace-4c6d747f-memory-2026-08-28-d96b9d18.md b/sources/archive/bridge-workspace-4c6d747f-memory-2026-08-28-d96b9d18.md similarity index 100% rename from sources/bridge-workspace-4c6d747f-memory-2026-08-28-d96b9d18.md rename to sources/archive/bridge-workspace-4c6d747f-memory-2026-08-28-d96b9d18.md diff --git a/sources/bridge-workspace-4c6d747f-memory-2026-08-30-85199da4.md b/sources/archive/bridge-workspace-4c6d747f-memory-2026-08-30-85199da4.md similarity index 100% rename from sources/bridge-workspace-4c6d747f-memory-2026-08-30-85199da4.md rename to sources/archive/bridge-workspace-4c6d747f-memory-2026-08-30-85199da4.md diff --git a/sources/bridge-workspace-4c6d747f-memory-2026-08-31-7fc3bf00.md b/sources/archive/bridge-workspace-4c6d747f-memory-2026-08-31-7fc3bf00.md similarity index 100% rename from sources/bridge-workspace-4c6d747f-memory-2026-08-31-7fc3bf00.md rename to sources/archive/bridge-workspace-4c6d747f-memory-2026-08-31-7fc3bf00.md diff --git a/sources/bridge-workspace-4c6d747f-memory-2026-09-02-main-migration-b78051cc.md b/sources/archive/bridge-workspace-4c6d747f-memory-2026-09-02-main-migration-b78051cc.md similarity index 100% rename from sources/bridge-workspace-4c6d747f-memory-2026-09-02-main-migration-b78051cc.md rename to sources/archive/bridge-workspace-4c6d747f-memory-2026-09-02-main-migration-b78051cc.md diff --git a/sources/bridge-workspace-4c6d747f-memory-2026-09-21-a637cc59.md b/sources/bridge-workspace-4c6d747f-memory-2026-09-21-a637cc59.md new file mode 100644 index 0000000..ebf5ace --- /dev/null +++ b/sources/bridge-workspace-4c6d747f-memory-2026-09-21-a637cc59.md @@ -0,0 +1,121 @@ +--- +pageType: source +id: source.bridge.workspace-4c6d747f.memory-2026-09-21-a637cc59 +title: "Memory Bridge (main, coder-agent, evaluator-agent, humanizer-agent, + setup-agent): 2026-09-21" +sourceType: memory-bridge +sourcePath: /home/owner/.openclaw/workspace/memory/2026-09-21.md +bridgeRelativePath: memory/2026-09-21.md +bridgeWorkspaceDir: /home/owner/.openclaw/workspace +bridgeAgentIds: + - main + - coder-agent + - evaluator-agent + - humanizer-agent + - setup-agent +status: active +updatedAt: 2026-09-21T04:29:47.840Z +--- + +# Memory Bridge (main, coder-agent, evaluator-agent, humanizer-agent, setup-agent): 2026-09-21 + +## Bridge Source +- Workspace: `/home/owner/.openclaw/workspace` +- Relative path: `memory/2026-09-21.md` +- Kind: `markdown` +- Agents: main, coder-agent, evaluator-agent, humanizer-agent, setup-agent +- Updated: 2026-09-21T04:29:47.840Z + +## Content +```markdown +# Memory — 2026-09-21 + +## Анализ системы памяти OpenClaw (session start ~06:00 MSK) + +Полный аудит 4-слойной архитектуры памяти: +- **Hot Layer:** workspace files (MEMORY.md, AGENTS.md, SOUL.md, IDENTITY.md, USER.md) — работает +- **Warm Layer:** memory_search (bge-m3-8192), 5 agent SQLite DBs — работает, main DB 296MB +- **Cold Layer:** Obsidian Wiki Vault (bridge mode, 87 pages, 153 claims) — работает, lint issues +- **STM Layer (Hermes):** hermes_memory_core.py — **мёртв**, STM пуст у всех 5 агентов, sweep находит 0 entries каждую ночь +- **Dreaming:** отключён 2026-09-09 (таймауты Ollama на 35B-модели), 12 дней без consolidation + +Ключевая находка: нативный OpenClaw dreaming (memory-core plugin) уже сконфигурирован, просто выключен. Старый кастомный dreaming-sweep грузил ~1.2M input токенов в 35B-модель — причина таймаутов. Нативный dreaming работает с bounded context per phase. + +## Включение нативного dreaming (06:24 MSK) + +- `plugins.entries.memory-core.config.dreaming.enabled`: false → true (hot-apply через `openclaw config set`) +- Модель: `ollama-local/qwen3.8-27b-q5xl` (27B, 20.2GB, ctx 262144) +- Schedule: 03:00 MSK, 3 фазы (light → REM → deep) +- Safety gates: maxPriorEntryLossFraction=0.25, maxPromotedSnippetTokens=160, minScore=0.75, minRecallCount=3, minUniqueQueries=3 +- MEMORY.md §4 обновлён: hermes_cron_sweep.sh → GC-only, consolidation передан нативному dreaming +- CHANGELOG.md: запись [DREAMING_ENABLE] 2026-09-21 + +## .env миграция секретов (завершено ранее, рестарт в этой сессии) + +- 7 переменных вынесено в ~/.openclaw/.env (rights 600) +- Plaintext удалён из openclaw.json +- Backup: openclaw.json.bak.20260920225017-env-migration +- Gateway рестартован, HTTP 200 подтверждён + +## Ручной тест dreaming (06:30 MSK) + +1. `openclaw memory rem-harness --agent main` — работает, без таймаутов. Recall store был пуст. +2. `openclaw memory session-backfill --agent main --apply` — **512 entries** staged в recall store, DREAMS.md создан, 20 corpus files +3. `openclaw memory promote --agent main --limit 5` — "No short-term recall candidates" (ожидаемо: fresh entries без recall signals) +4. Первый автоматический sweep — завтра 03:00 MSK + +## Main DB pruning (06:42–07:10 MSK) + +- Удалено ~130+ archived сессий (26 вручную main-agent, ~100+ setup-agent, 3 доработано) +- Архived sessions осталось: **0** +- zst-архивов: 285 (транскрипты сохранены, восстановимы) +- DB размер: 296MB (не уменьшился — SQLite reusable 36MB, VACUUM недоступен через CLI, автоматически shrink'нется при следующем checkpoint) +- Setup-agent по bulk cleanup timed out (15 мин), но удалил большую часть + +## Wiki lint remediation (07:10–07:29 MSK) + +- **4 errors → 0 errors** + - `entities/transport/ford-mondeo-4.md`: добавлены `id`, `pageType` frontmatter + - `entities/transport/motorcycle.md`: добавлены `id`, `pageType` frontmatter, broken wikilink `projects/garage_maintenance` заменён на текст +- **24 provenance gaps → 0 gaps** + - 22 claims без evidence: добавлен structured evidence (sourceId: source.bridge-workspace-4c6d747f-memory-2d62c497) через Python-скрипт + - sourceIds обновлены через wiki_apply для 4 страниц +- **Итог lint: 0 errors, 1 warning** (project-rules.md freshness — некритично) +- Setup-agent по lint remediation застрял (~20 мин), отменён, работа завершена main-agent напрямую через exec+Python + +## Приоритетная матрица (обновлённая) + +Выполнено: +- ✅ Включить нативный dreaming +- ✅ .env миграция секретов + рестарт +- ✅ Main DB pruning +- ✅ Wiki lint remediation + +Осталось: +1. Bridge source retention (12 снапшотов MEMORY.md → оставить 3) +2. Архивировать dream reports / daily notes (34+55 файлов) +3. Обновить stale docs (memory-core/index.md, TECHDEBT.md) +4. Health check скрипт (weekly cron) +5. Мониторинг первого dreaming sweep (завтра 03:00 MSK) +6. coder-agent vector index rebuild (paused после рестарта) + +## Технические заметки + +- `apply_patch` не может писать в Obsidian vault (вне workspace sandbox) — нужно использовать `exec` + Python +- `edit` с multiline YAML frontmatter ненадёжен (whitespace sensitivity) — лучше Python-скрипт +- `openclaw config set` поддерживает hot-apply без рестарта gateway +- `openclaw memory session-backfill --agent main --apply` — наполняет recall store из session transcripts +- `openclaw memory promote` — не работает на fresh entries (нужны recall signals: minScore=0.75, minRecallCount=3, minUniqueQueries=3) +- VACUUM для SQLite недоступен через openclaw CLI — нужен внешний sqlite3 или gateway restart с WAL checkpoint +- Setup-agent склонен к timeout на больших задачах (15 мин лимит), но успевает сделать большую часть работы + +``` + +## Notes + + + +## Related + +- No related pages yet. + diff --git a/sources/index.md b/sources/index.md index bfad7a5..ff9ee5e 100644 --- a/sources/index.md +++ b/sources/index.md @@ -33,6 +33,7 @@ - [Memory Bridge (main, coder-agent, evaluator-agent, humanizer-agent, setup-agent): 2026-09-02-main-migration](bridge-workspace-4c6d747f-memory-2026-09-02-main-migration-b78051cc.md) - [Memory Bridge (main, coder-agent, evaluator-agent, humanizer-agent, setup-agent): 2026-09-05](bridge-workspace-4c6d747f-memory-2026-09-05-7c425a56.md) - [Memory Bridge (main, coder-agent, evaluator-agent, humanizer-agent, setup-agent): 2026-09-13](bridge-workspace-4c6d747f-memory-2026-09-13-0b06517b.md) +- [Memory Bridge (main, coder-agent, evaluator-agent, humanizer-agent, setup-agent): 2026-09-21](bridge-workspace-4c6d747f-memory-2026-09-21-a637cc59.md) - [Memory Bridge (main, coder-agent, evaluator-agent, humanizer-agent, setup-agent): MEMORY](bridge-workspace-4c6d747f-memory-2d62c497.md) - [MEMORY.md - Persistent System State](memory-md-persistent-system-state.md) - [project rules](project-rules.md)