Auto-sync 2026-10-09 19:45:02

This commit is contained in:
Sergey 2026-10-09 19:45:02 +00:00
parent 318be3be96
commit 519f0d07a8

View file

@ -4,8 +4,8 @@ id: source.agents
title: AGENTS
sourceType: local-file
sourcePath: /home/owner/.openclaw/workspace/AGENTS.md
ingestedAt: 2026-10-09T16:28:36.103Z
updatedAt: 2026-10-09T16:28:36.103Z
ingestedAt: 2026-10-09T19:41:53.125Z
updatedAt: 2026-10-09T19:41:53.125Z
status: active
---
@ -14,8 +14,8 @@ status: active
## Source
- Type: `local-file`
- Path: `/home/owner/.openclaw/workspace/AGENTS.md`
- Bytes: 33631
- Updated: 2026-10-09T16:28:36.103Z
- Bytes: 34246
- Updated: 2026-10-09T19:41:53.125Z
## Content
````text
@ -391,7 +391,7 @@ Any change to wiki source files triggers automatic wiki ingest:
1. Before every reply, main-agent запускает: `python3 /home/owner/.openclaw/workspace/skills/wiki-ingest/scripts/wiki_ingest_check.py --trigger`
2. `fire:false` → skip (ноль действий).
3. `fire:true` → main-agent делает claim: `python3 .../wiki_ingest_check.py claim <event_id> --by main-agent`
- `claimed:true` → spawn setup-agent subagent (исключение из §1, как и раньше): «wiki ingest event <event_id>: wiki_apply entities/concepts/syntheses из changed-файлов → идемпотентный CHANGELOG (одна запись на event_id) → MEMORY.md только через заменяемые маркеры при реальном изменении → complete <event_id> <claim_token> (или fail при ошибке)».
- `claimed:true` → spawn setup-agent subagent (исключение из §1, как и раньше): «wiki ingest event <event_id>: wiki_apply entities/concepts/syntheses из changed-файлов (новые страницы = `wiki_apply op=create_synthesis`; обновление существующих страниц/claims — только surgical-путь, см. ниже блок запрета op=metadata «claims-regression hardening») → идемпотентный CHANGELOG (одна запись на event_id) → MEMORY.md только через заменяемые маркеры при реальном изменении → complete <event_id> <claim_token> (или fail при ошибке)».
- `claimed:false` (in_progress/already_done) → skip: событие уже занято cron'ом или обработано — это и есть дедупликация.
- **Lease (Step 1, 2026-08-23):** lease = **7200s** (страховочный запас). renew — основной механизм защиты длинного ingest: worker ОБЯЗАН вызывать `renew <event_id> <claim_token>` каждые **300с** во время обработки. Если renew вернул `ok:false` (чужой токен / истёкший lease / другой статус) → НЕМЕДЛЕННЫЙ abort: worker перестаёт считать себя владельцем, обработку НЕ продолжает, логирует "lost ownership, aborting".
4. Cron `wiki-ingest-event` (30m) идёт по тому же протоколу claim/complete — оба пути конкурируют за один и тот же event_id, один выигрывает.
@ -403,7 +403,7 @@ Any change to wiki source files triggers automatic wiki ingest:
- EXCEPTION TO §1: The main-agent is explicitly AUTHORIZED to launch `sessions_spawn` WITHOUT user permission ONLY for this internal background wiki-ingest task.
- Automated `sessions_spawn` for any other purpose remains strictly forbidden.
- MUST NOT skip ingestion even if user doesn't mention it.
- Setup-agent MUST create/update entities, concepts, syntheses, claims.
- Setup-agent MUST create/update entities, concepts, syntheses, claims (средства и ограничения — см. ниже блок запрета op=metadata «claims-regression hardening»).
- Setup-agent MUST update CHANGELOG.md after wiki mutations.
### Страховка (cron)
@ -419,7 +419,7 @@ Any change to wiki source files triggers automatic wiki ingest:
`wiki_apply op=metadata` (alias `update_metadata`) is FORBIDDEN for updating metadata of existing live vault pages — for all agents (main, setup, coder, evaluator, humanizer, ingest workers).
Reason (dist audit 2026-10-09, read-only, OpenClaw 2026.9.8, shared chunk `presentation-D3laNf80.mjs`): `buildUpdatedFrontmatter` (~L2808) FULL-REPLACES the `claims` frontmatter array — a non-empty subset silently deletes every other claim; an empty array deletes the key. No merge, no validation. The audit confirmed `op=metadata` is the ONLY writer of claims frontmatter on live pages; auto-paths (ingest / compile / lint / autoCompile / bridge) write only source/dashboard/lint pages and the compile cache; `create_synthesis` only creates new pages (safe).
Reason (dist audit 2026-10-09, read-only, OpenClaw 2026.9.8, shared chunk `presentation-D3laNf80.mjs`): `buildUpdatedFrontmatter` (~L2808) FULL-REPLACES the `claims` frontmatter array — a non-empty subset silently deletes every other claim; an empty array deletes the key. No merge, no validation. The audit confirmed `op=metadata` is the ONLY writer of claims frontmatter on live pages; auto-paths (ingest / compile / lint / autoCompile / bridge) and the canonical `openclaw wiki ingest` do NOT write the claims frontmatter of live pages; the canonical ingest additionally rebuilds Related/sources links on syntheses plus index/report files (confirmed 2026-10-09: 7 vault files touched by std ingest 19:28–19:35, claims line-identical); `create_synthesis` only creates new pages (safe).
Allowed paths:
1. **Metadata/claim edits of an EXISTING live page — SURGICAL only** (python3 line edits / direct YAML edits): read the page → edit the target lines only → verify: (a) YAML frontmatter parses; (b) claim count before/after = expected delta exactly; (c) `wiki_lint` → 0 new errors.