astrbot_plugin_private_comp.../docs
YokiiroBW 2518f7b6bf fix: make the daily plan chain survive startup timing and same-day rewrites
Two defects that only showed up on the real machine, both of which left the
schedule frozen on a fallback plan with nothing in the logs to say so.

The plugin asked for a chat provider 0.8s before AstrBot finished loading
them, wrote a template fallback, and stamped it with today's date -- so the
next 24 hours never retried. Resolution now falls back through get_config()
(4.26.6's Context exposes nothing else) and validates the configured id with
get_provider_by_id, because a configured default is not a loaded instance.
When nothing is ready yet the round is skipped instead of downgraded, up to
DAILY_PLAN_PROVIDER_MAX_WAITS rounds.

Once the model recovered, the real plan still could not reach the archive:
the idempotency key is always daily_plan:<date> but the plan dict never
carried a version, so every rewrite re-sent v1 and the memory side rejected
it as version_conflict. The companion swallowed that -- outbox state is only
touched when enqueue accepts, and a same key/version enqueue does not. Plans
now carry a version watermark drawn from both daily_plan and its history, and
any ok=False archive response logs a warning regardless of outbox state.

Verified on the VM: provider wait counted once and no fallback written, plan
generated at v2 with 10 segments from the model, and the stored record
upserted from the 8-segment fallback to the same v2 content.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 04:16:06 +08:00
..
M6日程拆分与陪伴插件调整评估.md feat: link bot personal memory bridge 2026-07-26 03:14:03 +08:00
OPS陪伴插件全功能盘点与删减评估.md feat: remove ops entertainment integrations 2026-07-26 01:32:07 +08:00
Q7后端接口收口与VM验收记录.md docs: record q7 vm acceptance 2026-07-26 00:14:02 +08:00
Q8前端改造与验收记录.md docs: record q8 vm deployment acceptance 2026-07-26 03:00:48 +08:00
VM部署验收-娱乐功能清理-f4d160c.md docs: clarify vm clock in acceptance record 2026-07-26 01:56:48 +08:00
前端改造要求-Q6-Bot自有存储与用户记忆边界.md docs: add frontend migration contract 2026-07-26 00:14:38 +08:00
对话日程可行性评估.md feat: add temporal companion calendar 2026-07-25 01:35:56 +08:00
运维陪伴错题本.md fix: make the daily plan chain survive startup timing and same-day rewrites 2026-07-27 04:16:06 +08:00
错题本.md feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:40 +08:00