對話摘要 2026-09-25
description: 2 note(s) today. name: ‘2026-09-25’
2026-09-25
MEMORY.md 每日超標自動精簡檢查
- 檢查時間:2026-09-25(cron
f6cf4ccf) wc -c MEMORY.md= 20448 bytes(≤ 20480 / 20KB 門檻)- 結果:無需精簡 → 未執行 GitHub backup、未發 Telegram 通知(按任務規則 2 直接收工)
Synto Wiki Draft Review(cron b73c5732,07:00 HKT)
- 06:00 pipeline:ingested 1 note(對話摘要-2026-09-24,2133B)、compiled 5 concepts → 5 drafts(mtime 06:00–06:06)
- 界定「新 drafts」=
.drafts/mtime 新過上次 review(2026-09-24 07:00) - linkcheck 5/5 零 broken;逐篇用
diff對比已發佈版(/data/vault/wiki/<name>.md) - ✅ approve 3(全部為已發佈文章更新版,published 仍 123):
- Docker Compose(5620B → 7013B):
生命週期管理改名生命週期與自動化部署、4 段改寫但語義保留(驗證過 GitOps/IaC、Infisical/Vault 執行期注入、PUID、固定 IP、Cloudflare Tunnel 全部仍在) - Infisical(6449 → 6782B):純增量(+Machine Identity/Agent Proxy 補述)
- LiteLLM(6885 → 7204B):diff 只加 lineage/source/tags,內容零改動
- Docker Compose(5620B → 7013B):
- ⚠️ 留低 2:
MEMORY.md 自動精簡— 相對已發佈版倒退(7151 → 6652B):diff 顯示丟失 3 條 工具與教訓 bullet(文件編輯紀律禁寫死 byte 數、Reflection 誤觸發:cron:/sub-豁免、IP 政策禁寫死 public IP)+ See Also 少 Cloudflare Tunnel / Reflection Loopn8n— 改寫+節名重整但無實質增益,反丟失具體要點(容器用expose而非ports、healthcheck 自動重啟告警),並新增同 See Also 重複嘅## 相關服務連結(連結堆砌)
- 指令:
docker exec olw synto approve --vault /data/vault 'Docker Compose.md' 'Infisical.md' 'LiteLLM.md'(逐篇指名,唔可以--all)→docker exec olw python3 /app/scripts/sync.py push→ pushed 4 / updated 4 - 結果:drafts 34 → 31、published 123;已發 Telegram summary
- 新學到嘅判準:draft 比已發佈版細唔一定係好事——regression script 0 dropped paragraphs 只計 >60 字段落,bullet list 縮水要靠
diff才睇得出(今次就係咁揪出 MEMORY 草稿丟失 3 條教訓)
筆記索引
(今日 topic notes 會出現喺 memory/2026-09-25/)
- memory/2026-09-25/cron-stream-truncation-fix.md
- memory/2026-09-25/daily-container-update-cron-failure.md name: daily-container-update-cron-failure description: 診斷「每日容器更新檢查」cron 584cdc3b 為何 2026-09-25 沒完成並即日修補。06:30 準時觸發、掃描跑完(79 容器/73 images、UPDATE=8、UPSTREAM-STALE=1 fastmcp),06:31 成功更新 stirling-pdf,但 06:32:33 整個回合被 LiteLLM APIConnectionError(DeepSeek 串流被 reset、TransferEncodingError 400/ConnectionResetError 104)中斷 → 無 retry、無 Telegram 報告;同錯誤 09-16 08:41 亦打死 Host crontab Watchdog 366cea6f。根因實證:注入的 exception 實為 openai.APIError(status_code=None),classify_model_error() 回 kind=‘unknown’、retryable=False、fallback_eligible=False(對照 openai.APIConnectionError 回 transient/retryable=True),令 retry_chat_model._consume_stream_with_slot 在 emitted=False 下仍即刻 raise、浪費 LLM_MAX_RETRIES=3;LiteLLM deepseek-flash group 無 fallback。12:56 手動補跑、12:59 成功(last_status=success,fastmcp 4.0.7→4.0.9、stirling-pdf 已更新,無欠帳)。13:06 用戶「由你決定點做」授權即時執行 → ① patch providers/model_error_policy.py 加 _is_stream_truncation(限 openai.APIError/anthropic.APIError/httpx.HTTPError +串流截斷 marker)判 transient,成為 overlay 第 10 檔並同步 apply/ensure/verify 三邊 FILES,verify_patches.py 新增第 6 節 3 項檢查、全套 40+ 項 PASS,容器內兩個 tree md5=5e0406725534bfd95d14d57e5d39b32b,真實 exception 字串實測 transient/retryable/fallback=True、無關 APIError 與 400 仍 unknown(litellm 其實無裝在 qwenpaw python,log 內 litellm.APIConnectionError 只係字串);restart 由 detached /home/opc/scripts/qwenpaw-activate-patches.sh 排在約 13:21:44 HKT(延遲 600s,避免中斷匯報),完成後核 md5+verify+Telegram。③ 改為 host crontab 零 LLM(非 n8n):/home/opc/scripts/cron-failure-watchdog.sh+cron-failure-probe.py,*/30 * * * * 掃所有 enabled job state,失敗發 ntfy benho-alerts+Telegram,去重鍵 jid|last_run_at,白名單只自動重跑 584cdc3b;DRYRUN 測兩個分支、正常靜默、crontab append(有 backup)、baseline 同步、CRONTAB_WATCH OK live=8;排除 skipped 狀態(兩個 2026-08 遺留 one-shot job 80b648bd/f44956bd 待決定 disable)。② LiteLLM deepseek-flash:[free-first] 決定暫緩(需 restart 共用 gateway、磁碟 config 與生效內容不一致待查)。教訓:ssh pipe 尾加 </dev/null 會清空目標檔(baseline 曾被寫成 0 bytes,靠 .bak-20260925 救回)、本地檔帶 BOM、pkill -f 會自殺。MEMORY.md 已加精簡行並壓縮舊內容至 20,479 bytes(上限內)。