Expand description
Memory-management paging decisions (Phase 4) and long-term memory management (Phase 7).
The kernel decides when to page working context out/in; SDKs perform how (durable store, embedding search, idle pipeline). No I/O in this module.
Phase 7 extends this module with memory classification and validation rules.
Re-exports§
pub use handle::plan_eviction;pub use handle::plan_spool;pub use handle::EvictionOp;pub use handle::EvictionPlan;pub use handle::Handle;pub use handle::HandleId;pub use handle::HandleKind;pub use handle::HandleTable;pub use handle::Residency;pub use handle::SpoolDecision;
Modules§
- handle
- Primitive P3: the resource handle table + paging (context as address space).
- memory
- Long-term memory management (Phase 7).
Structs§
- Page
InEntry - One knowledge entry supplied by the SDK after a long-term fetch (page-in).
- Page
InRequest - Parsed arguments for a page-in meta-tool call. Retained as the payload type for
crate::syscall::Syscall::PageIn; the request-extraction helper that used to build these from live tool calls was removed when the automatic memory/knowledge tool-call page-in path was retired (that content now flows through the normal tool-result → history path instead — seeapply_page_in’s doc comment).
Enums§
- Memory
Tier Hint - Long-term tier hint for a page-out event (SDK maps to durable vs semantic store).
Functions§
- tier_
hint_ for_ compress - Map a pressure-driven compression action to the recommended long-term tier.