Skip to main content

Module lifecycle_store

Module lifecycle_store 

Source
Expand description

Lifecycle ledger store: append-only JSONL + 投影缓存的统一入口。

这个 module 的物理拆分:

  • mod.rs:对外类型与 LifecycleStore / LifecycleProjection 实现、常量、顶层 helper
  • api.rs:对外 mutation 与查询 API(原 lifecycle_store.rs 里的 pub fn)
  • projection.rs:投影缓存 + 快照读写 + fingerprint
  • internal.rs:私有的 ID/scope/timestamp/写入/状态转移辅助
  • tests.rs:单元测试

外部 use crate::lifecycle_store::xxx 的路径保持不变。

Structs§

LedgerEntry
LifecycleProjection
LifecycleStore
ProposeMemoryRequest
RecordMemoryRequest
TransitionMetadata

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