對話摘要 2026-11-26
description: 2 note(s) today. name: ‘2026-11-26’
2026-11-26
Hindsight 1.2.3 → 1.3.0-slim 更新(00:29–00:35)
觸發: 用戶「Hindsight 成日出錯嘅,不過唔緊要,佢有更新,你更新咗 Hindsight 之後,睇吓會唔會解決出錯」。
做咗咩
- 確認 upstream:GitHub
vectorize-io/hindsight最新 release = v1.3.0(2026-11-24,非 prerelease);GHCRlatest-slim`1.3.0-slim` index digestsha256:d311bdee…,arm64 manifestsha256:500d3a4c…。 - 更新前備份:
pg_dump -Fc hindsight→/home/opc/backups/hindsight-pre130-20261126.dump(32MB;DB 98MB)。 - rollback tag:
ghcr.io/vectorize-io/hindsight:rb-1.2.3-20261126(= 舊 image411820087fd3)。 - compose 由浮動
latest-slim→ pin1.3.0-slim(commit7f17199,repooracle-arm-stacks/hindsight/docker-compose.yml)。 - Dockhand git stack id 73:
syncOK(commit 7f17199)→deployjobdb8dffa9…completed(pull 2.01GB)。 - 結果:容器
Up (healthy)、label version1.3.0-slim、alembic migration 跑完、/health= healthy/database connected。
驗證
POST /v1/default/banks/default/memories/recall→ HTTP 200、0.43s、有結果(E2E recall 通)。- 重啟後 log ERROR 只有 2 條,都係 startup 時 LLM connection verification(Gemini 503),之後冇新 ERROR。
🔴 真因(更新解決唔到)
llm_requests 近 24h:error 32(全部 gemini/gemini-3.1-flash-lite)/ success 14(全部係 embedding local-e5-large) → LLM 依賴功能 100% 失敗。
- 錯誤:
GeminiException 503 "This model is currently experiencing high demand",LiteLLM 冇為該 model group 設 fallback → 直接回 503。 - LiteLLM log 2 小時內 639 條相關錯誤;用 master key 直測
gemini/gemini-3.1-flash-lite一樣 503 → Google 側長期過載,唔關 Hindsight 版本事。 async_operations:近 7 日 3 條refresh_mental_model(每日 00:0x)全部failed、retry=3,全部同一 503 原因;近 24h 另有 1 failed / 4 completed。- Hindsight key 白名單只有 gemini + embedding:測
deepseek-flash→ 403key_model_access_denied。 - LiteLLM 全庫只有一個 gemini model group(63 models 中)。
候選替代 model 實測(master key + response_format=json_schema strict)
free-first→ 200 / 1.37s / 正確回{"ok": true}✅(可用)deepseek-first→ 45s timeout(慢)qwen3.8-max→ 403(阿里 token plan 停用)opencode-free-first→ 400 不存在
待決(未做,等用戶)
- LiteLLM 加 fallback:
gemini-3.1-flash-lite→free-first(Hindsight 唔使改);或 - 改 Hindsight
HINDSIGHT_API_LLM_MODEL=free-first+ key 白名單;或 - 兩者一齊。
- 舊 image 2.01GB 暫留 rollback;確認穩定後可刪
rb-1.2.3-20261126同 locallatest-slim舊 tag(磁碟 89%)。
- memory/2026-11-26/hindsight-llm-fallback-fix.md
- memory/2026-11-26/hindsight-update-root-cause-gemini-503.md name: hindsight-update-root-cause-gemini-503 description: Hindsight 由 1.2.3-slim 更新至 1.3.0-slim(上游 11-24 release,commit 7f17199,Dockhand stack 73,pg_dump 備份 32MB、rollback tag rb-1.2.3-20261126,容器 healthy、migration 完成、recall 200/0.43s),但更新未解決「出錯」:真因是 gemini-3.1-flash-lite 長期 503「high demand」(24h 內 32 次 LLM 請求全失敗、14 成功全為本地 embedding;refresh_mental_model 連 3 日 failed retry=3;master key 直測同樣 503;LiteLLM 無 fallback)。候選方案 free-first 實測 200/1.37s 並支援 JSON Schema strict,deepseek-first 45s timeout、qwen3.8-max 403。待用戶決定:LiteLLM 加 fallback(gemini-3.1-flash-lite→free-first)或改 Hindsight model 為 free-first 加 key 白名單;舊 image 佔 2GB 待刪。
Hindsight LLM 後端改用 free-first(2026-11-26 00:39–)
決定(agent 自決):Hindsight 由 gemini/gemini-3.1-flash-lite 改用 LiteLLM free-first。
關鍵:唔可以用 PROVIDER=litellm + MODEL=free-first(SDK 報 LLM Provider NOT provided),
亦唔可以用 openai/free-first(proxy 400 model 不存在)。
正解 = HINDSIGHT_API_LLM_PROVIDER=openai + BASE_URL=http://litellm:4000/v1 + MODEL=free-first
(Hindsight 內建 OpenAICompatibleLLM 直打 proxy /v1)。
- compose 改
${VAR}+ 加HINDSIGHT_API_LLM_OPENAI_COMPATIBLE_JSON_MODE=${...:-true},commit57119e5。 - Dockhand DB 加 3 rows(PROVIDER/BASE_URL/JSON_MODE);deploy job
2f17c61edone。 - 驗證:log
Connection verified: openai/free-first、ERROR=0、容器 healthy。 - 手動 refresh 2 個 mental model:兩個都 completed。
mm-3400e899…(Hindsight 自身設定 knowledge page):content 2691 字 / reflect 18314 字;attempt 1 在 164s 撞 timeout(180s),attempt 2 成功(總 4 分鐘)。mm-7be65181…(技術決策模式):completed 但 LLM 回「沒有相關資訊」。
- 收尾把
HINDSIGHT_API_LLM_TIMEOUT180→300 並 redeploy(jobfce15975),複驗 healthy +Connection verified: openai/free-first。 - 其他 model JSON Schema 實測:只有
cloudflare/@cf/meta/llama-3.3-70b-instruct-fp8-fast穩定(5.2s); DeepSeek 系不支援 schema response_format、NVIDIA 410、Dashscope 額度爆、opencode-* 401。
詳見 memory/2026-11-26/hindsight-llm-fallback-fix.md
每日容器更新檢查(06:30 HKT)
掃描:66 容器 / 59 image → UPDATE=11、UP-TO-DATE=37、LOCAL-BUILD=10、NEEDS-AUTH=1、UPSTREAM-STALE=1。
做咗(2 個)
openserp(Tier A,karust/openserp:latest):apply 腳本UPDATED,image 切換到sha256:725317b7c5ca、healthy、restarts=0;172.21.0.20:7000/回 404(正常,服務有回應)。fastmcp4.2.5 → 4.2.6(自建 image UPSTREAM-STALE):改fastmcp/requirements.txt(fastmcp==4.2.6)+fastmcp/docker-compose.yml(image: fastmcp:4.2.6)→ commitafa675epush →stack-rebuild-deploy.py fastmcp --wait 1500(job3c8f4654)done。arm64 build 實測約 4 分鐘。- 驗證:容器內
pip show fastmcp= 4.2.6、healthy、RestartCount=0;MCPfastmcp__adguard_status實測 200 OK。舊fastmcp:4.2.5已rmi。
- 驗證:容器內
只報告(Tier C,未動):n8n、litellm、infisical、tuwunel、syncthing、nextcloud(app+cron)、redis 7-alpine(MAJOR)、dockhand、ntfy。
⚠️ 異常:caddy:2.11.9-alpine(sandbox-gateway)pinned tag 嘅 digest 變咗 → 唔動,等人手查 changelog。
清理:hindsight:rb-1.2.3-20261126(00:39 改 LLM provider 時遺留、未被任何容器使用)已 rmi。磁碟 73%(51G 可用)。
Telegram 報告已發。
Synto Wiki Draft Review(cron b73c5732,07:00 HKT)
- Baseline:11-25 07:02:06
cron _execute_once … status=success(qwenpaw.log)。 - 新 notes 1 篇:
raw/raw/對話摘要-2026-11-25.md(06:00、2486B)。新 drafts 1 篇:gin.py.md(06:00、4649B)——來源係raw/raw/對話摘要-2026-11-24.md(該篇 11-25 曾LLMTruncatedError,今日重試成功)。 - 審查結論:gin.py.md 留低(不 publish)。理由:
- 標題係錯嘅:LLM 抽出唔存在嘅概念名
gin.py,正文首段自己都寫「原始摘要本身冇提及任何叫 gin.py 嘅程式或腳本」;aliases(_INQUIRY_RE/原因類診斷問句/診斷問句豁免)同標題無關,但係 11-24 摘要第 65 行提到嘅 reflection-loop 內容。 - 性質錯:整篇係「11-24 運維日誌索引頁」,唔係概念條目,內容同既有 docker-compose-是什麼多容器應用完整部署指南---taki官方部落格-httpssharegooglezs3tizo3hoarqqu7/Dockhand/FastMCP 等條目重疊。
- 技術內容本身準確(container-update/sandbox 可寫路徑/封存磁碟回收 4 段全部對得上 11-24 日記),但標題+結構問題屬「明顯錯誤內容」。
- linkcheck:37 links、0 broken、3 draft-only(
actual_server/cadvisor/metube)。
- 標題係錯嘅:LLM 抽出唔存在嘅概念名
- approve:0 篇(未用
--all,backlog 79)。 - 尚未解決嘅上游問題(連續 2 日):
對話摘要-2026-11-25.mdingest 又custom: output hit provider/model context limit (finish_reason=length; no max_tokens sent)。/data/vault/synto.toml:[models.heavy] ctx = 32768、article_max_tokens = 16384、modelfree-first——input 只 2486B 仍撞 output limit,即實際 model output 上限細過 16384,唔係 input 爆窗。待辦(未做,需用戶決定):收細article_max_tokens/concept_draft_soft_cap,或把 heavy model 改為 output limit 明確嘅 model。 - sync:
python3 /app/scripts/sync.py push→pushed 0 / updated 0 / deleted 0,paritylocal 256 == fns 256。 - 計數:drafts 78 → 79、published 123(未變)、Raw failed 1。Telegram summary 已發(
success: true)。 - 提醒:cron prompt 仍寫
synto approve --all,同 runbook 衝突;本輪照 runbook 逐篇判斷,未用--all。