Expand description
Lifecycle ledger store: append-only JSONL + 投影缓存的统一入口。
这个 module 的物理拆分:
mod.rs:对外类型与LifecycleStore/LifecycleProjection实现、常量、顶层 helperapi.rs:对外 mutation 与查询 API(原lifecycle_store.rs里的 pub fn)projection.rs:投影缓存 + 快照读写 + fingerprintinternal.rs:私有的 ID/scope/timestamp/写入/状态转移辅助tests.rs:单元测试
外部 use crate::lifecycle_store::xxx 的路径保持不变。
Structs§
- Ledger
Entry - Lifecycle
Projection - Lifecycle
Store - Propose
Memory Request - Record
Memory Request - Transition
Metadata
Functions§
- accept_
memory - accept_
memory_ with_ metadata - archive_
memory - archive_
memory_ with_ metadata - latest_
state_ by_ scope - latest_
state_ by_ state - latest_
state_ entries - ledger_
file_ name - lifecycle_
query_ plan - lifecycle_
root_ from_ config - pending_
review_ entries - project_
latest_ state - promote_
memory_ to_ canonical - promote_
memory_ to_ canonical_ with_ metadata - propose_
ai_ memory - read_
events_ for_ record - read_
projection - record_
manual_ memory - review_
queue_ for_ scope - review_
queue_ plan - wakeup_
ready_ entries - wakeup_
ready_ for_ scope