[Slice 3/4] arise 反应式核:崩溃恢复契约(Crash Recovery / At-most-once) #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
拆自 #1(arise 反应式核 / Reactive Core PRD,Phase 1)。本片是该 PRD 的第 3/4 片,建立在 #3(Slice 2: Self-message Control)之上。
What to build
把 Outbox + Sent Log 从"够用即可"升级为真正满足 ADR-0013 崩溃恢复契约的持久化实现,端到端验证:进程崩溃重启后,不重放、不丢单、不产生孤儿消息。
具体包含:
nonebot-plugin-orm(SQLAlchemy 2.0 async + Alembic)引入依赖,Outbox(待发队列)+ Sent Log(已发日志)各自建表迁移。不引入qdrant-client/向量检索(Phase 2 范围)。self_recall;Acceptance criteria
self_recall(半截回复被接受保留,而非被清理/撤回)。nonebot-plugin-orm标准流程,registry 组织方式为 Phase 2 将追加的画像/事件/knowledge 等表预留空间(不要求提前建那些表,只要求不产生"假设只有这两张表"的隐式耦合)。Blocked by