astrbot_plugin_private_comp.../docs
YokiiroBW 589a4ce39a fix: settle windows from a durable cursor, align idempotency keys and clocks
_agenda_closed_windows scanned a fixed -3..+1 day range. Past three days of
downtime the missed windows were never settled and left no trace -- "zero
snapshots" and "not due yet" look identical from the data, which is why this
sat in the backlog for four rounds. It now scans forward from a persisted
agenda_last_settled cursor, falling back to the old three days when the cursor
is absent. Catch-up is capped at 30 days and says so in the log rather than
truncating silently. The cursor advances only after both the snapshot and the
reconciliation are written, and never moves backwards.

Two long-deferred contract deviations went with it. reconciliation_id already
carries its own "reconciliation:" prefix and got another one on top; window
snapshots used the internal snapshot id as a business key. Both now go through
_bot_personal_window_key and match the formats the frozen contract recommends.
Records already stored keep their old keys -- settlements and snapshots are
terminal per-window writes, so there is nothing left to update.

The outbox called datetime.now() directly while window attribution used the
plugin's _environment_now. The now parameter had been there all along and no
caller passed it, which is more hidden than not having it at all. All eight
call sites now pass the plugin clock; the test asserts a 2031 timestamp so a
system-clock regression cannot pass.

Companion suite 231 passed, joint E2E 135/135. VM restarted clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 05:09:11 +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: settle windows from a durable cursor, align idempotency keys and clocks 2026-07-27 05:09:11 +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