94 lines
8.9 KiB
Markdown
94 lines
8.9 KiB
Markdown
---
|
||
pageType: source
|
||
id: source.bridge.workspace-4c6d747f.memory-2026-10-07-fa9c8c96
|
||
title: "Memory Bridge (main): 2026-10-07"
|
||
sourceType: memory-bridge
|
||
sourcePath: /home/owner/.openclaw/workspace/memory/2026-10-07.md
|
||
bridgeRelativePath: memory/2026-10-07.md
|
||
bridgeWorkspaceDir: /home/owner/.openclaw/workspace
|
||
bridgeAgentIds:
|
||
- main
|
||
status: active
|
||
updatedAt: 2026-10-07T20:19:56.795Z
|
||
---
|
||
|
||
# Memory Bridge (main): 2026-10-07
|
||
|
||
## Bridge Source
|
||
- Workspace: `/home/owner/.openclaw/workspace`
|
||
- Relative path: `memory/2026-10-07.md`
|
||
- Kind: `markdown`
|
||
- Agents: main
|
||
- Updated: 2026-10-07T20:19:56.795Z
|
||
|
||
## Content
|
||
```markdown
|
||
# 2026-10-07
|
||
|
||
## PJ03141 instruction translation (completed, 17:55 MSK)
|
||
|
||
- **Task:** Sergey asked to translate the MAYEKAWA refrigeration control panel instruction from Nextcloud into Russian and place the PDF in the same folder.
|
||
- **Source:** `/arno.nextcloud/PJ03141 REF CONTROL PANEL INSTRUCTION.docx` (untouched in Nextcloud).
|
||
- **Result:** `/arno.nextcloud/PJ03141 REF CONTROL PANEL INSTRUCTION (RU).pdf` — 2 710 936 bytes, 38 pages. 409 units translated in 4 batches (coder-agent), injected into a copy of the DOCX (108/108 media files preserved by MD5), rendered via LibreOffice docker.
|
||
- **Audit:** evaluator-agent PASS (coverage, fidelity, consistency, integrity). Found 2 real defects + 1 I found later:
|
||
- unit 128 «бромный насос (RSW pump)» → «насос рассола (RSW pump)» (RSW = рассол/brine, NOT bromine)
|
||
- units 113, 177 «охлаждающей спирали» → «охлаждающего змеевика»
|
||
- **CHANGELOG.md** updated with the correction entry.
|
||
|
||
## Reusable technical lesson: JP-font DOCX → Cyrillic rendering
|
||
|
||
**This is the key durable finding of the session.** The DOCX referenced Japanese fonts (HG丸ゴシックM-PRO, MS 明朝, MS ゴシック, MS P明朝, MS Pゴシック, メイリオ) that do NOT exist in the `lscr.io/linuxserver/libreoffice` container. LibreOffice substituted them, and the substitution rendered the **Cyrillic heading with broken/garbage glyphs** (Latin m, Greek Delta mixed in) — while the PDF **text layer was 100% correct** (pypdf extract fine, all pages had Cyrillic). `pdffonts` showed NotoSerif embedded as TrueType/WinAnsi — an encoding that cannot even hold Cyrillic.
|
||
|
||
**Fix that worked (5151+56 = 5207 font attrs remapped):**
|
||
- In each `word/*.xml`, replace Japanese font names **only in `w:ascii`, `w:hAnsi`, `w:cs` slots** → `DejaVu Sans` (sans JP names) / `DejaVu Serif` (serif JP names).
|
||
- **Leave `w:eastAsia` slots untouched** — Japanese text (a couple of source fragments, full-width marks) still falls back to Noto Sans CJK present in the container.
|
||
- Re-render PDF. Title and content verified clean via vision model.
|
||
- Container font inventory (102 fonts): DejaVu Sans/Serif/Mono, Liberation Sans/Serif/Mono, Free*, Noto Sans/Serif (+CJK HK/JP/KR/SC/TC), OpenSymbol, Noto Sans Mono/Symbols. **No Japanese fonts at all.**
|
||
|
||
**Visual verification route:** render page PNG via `pdftoppm`, base64 → `curl http://192.168.1.200:11434/api/chat` with model `qwen3-vl:32b` (works, Ollama on Dell 192.168.1.200). Use body files to avoid quoting issues. A 120-dpi full page is enough; 200-dpi crop for a single heading.
|
||
|
||
**Lesson:** for any future JP-sourced DOCX→PDF with Cyrillic, check font references in the XML FIRST (`w:ascii="..."`), and proactively remap missing JP fonts before the first render. Do not trust a "correct" text layer as proof that glyphs rendered.
|
||
|
||
## Notes
|
||
|
||
- The evaluator reported the original (pre-font-fix) PDF as 43 pages; the corrected render is 38 pages — the font remap changed layout/pagination. Both are valid renders of the same content; 38 is the final shipped count. Keep 38 in memory.
|
||
- Nextcloud upload path that works: `files_binary.py upload <local> <remote-path>` (HTTP 201), and `nextcloud.js files delete --path` for replacement. Credentials from `~/.openclaw/.env` via `set -a; . ~/.openclaw/.env`.
|
||
## Closure (18:20 MSK)
|
||
|
||
- Sergey confirmed: «отлично. файл на месте» — PJ03141 RU translation task **accepted and closed**. No follow-up required.
|
||
- Durable takeaway (reuse next time a Japanese-sourced DOCX must go to PDF with Cyrillic): font references in the DOCX XML are the real risk, not the translated text. Check `w:ascii`/`w:hAnsi` slots for missing JP fonts *before* the first LibreOffice render and remap them to DejaVu (see lesson above). A clean pypdf text layer does **not** prove glyphs rendered — vision-check the rendered PNG.
|
||
|
||
## 23:11 МСК — контроль очереди задач + UX длинных задач в мобильном
|
||
|
||
### Вопрос: как реализован контроль очереди задач
|
||
Ответил по факту (проверено на диске): 3 уровня.
|
||
1. **Wiki-ingest очередь** (собственная, файловая): `skills/wiki-ingest/state/events.db` (SQLite) + `events/failed.jsonl`. Fire по отпечаткам файлов (путь+mtime_ns+size+sha256), одна партия = один детерминированный event_id, цикл claim→renew→complete/fail, lease 7200с, renew каждые 300с, 3 фэйла → dead-letter + ручной `rearm`. Два исполнителя конкурируют: main-agent (проверка перед каждым ответом) и cron 30м — это дедупликация. Живое состояние: очередь пуста, последний ingest 2026-10-05.
|
||
2. **Субагент-задачи** (нативный OpenClaw, не файлы): у каждого run свой runId, лимит runTimeoutSeconds (3600с), статус через `subagents list` без поллинга, завершения приходят как completion-события. Нормировка батчей — AGENTS §6.1.
|
||
3. **Cron/автоматизации** (шеддер гейтвея): сейчас 2 job — `mail-check` (every 15м, trigger) и `searxng-weekly-update` (вс 04:00 МСК). Main-agent к ним read-only; правка — только setup-agent.
|
||
|
||
### UX-жалоба пользователя + решение
|
||
Сержа: во время большой задачи по переводу (PJ03141, закрыта ранее) в мобильном приложении было непонятно «работает или проблемы», хаотично лезла информация от субагентов.
|
||
Причины (изучены доки: progress-drafts, subagent-yield-handoff, subagents/announce, progress-card, web/notifications):
|
||
- на каждое completion-событие сабагента я отвечал коротким сообщением → ливень из 6+ мелких сообщений в случайном порядке;
|
||
- между событиями молча жду субагентов (тишина ≠ проблема, но и не сигнал);
|
||
- прогресс-карта обновляется, но в мобильном приложении свёрнута по умолчанию и не раскрывается автоматически.
|
||
|
||
Решения:
|
||
1. **Моя дисциплина (взял на себя, без согласия):** на completion-события сабагентов не отвечать; писать пользователю только по вехам («4/4 частей», «PDF собран», финал). Промежуточные события — молча.
|
||
2. **Живой статус в Telegram (ЖДЁТ СОГЛАСИЯ СЕРГЕЯ, как на 23:11):** `channels.telegram.streaming.progress.toolProgress: true` через setup-agent (mode "progress" у Telegram стоит по дефолту). Даёт одно живое обновляемое сообщение вместо N разрозненных.
|
||
3. **Push в мобильном приложении (делает сам Сержа):** Settings → Notifications → включить «Agent finished» и «Background task failures» (по умолчанию выкл) — сигнал «готово/упало» при заблокированном экране.
|
||
4. Знаковое ограничение: мобильная прогресс-карта не авто-раскрывается — обходится п.2-3.
|
||
|
||
### Дубль-события после компакции
|
||
Рантайм повторно дослал старые completion-события PJ03141 (4 дубля + аудит + 2 CHANGELOG) — сверил с фактом и отбросил, повторного исполнения не было. Паттерн: после компакции возможны ре-доставленные completion-события — сверять перед исполнением, не повторять работу.
|
||
|
||
```
|
||
|
||
## Notes
|
||
<!-- openclaw:human:start -->
|
||
<!-- openclaw:human:end -->
|
||
|
||
## Related
|
||
<!-- openclaw:wiki:related:start -->
|
||
- No related pages yet.
|
||
<!-- openclaw:wiki:related:end -->
|