feat(memory): add lifecycle operations

This commit is contained in:
2026-05-15 09:30:46 +02:00
parent 876f97c288
commit 1be8019fa1
6 changed files with 710 additions and 2 deletions

View File

@@ -86,6 +86,13 @@ per-node policy checks, returns source-grounded context items, preserves denied
diagnostics without leaking denied node text, and emits an audit event in the
result envelope.
The lifecycle slice is implemented with deterministic local operations:
`apply_retention()` marks stale memories for review or transitions old memories
to `delete_requested`; `refresh_memory()` clears stale markers; and
`compact_memory()` creates a provenance/source-span preserving summary node,
optionally retiring the source nodes. Each mutating operation appends a memory
event and returns audit metadata.
## P17.1 - Import and map Markitect memory contracts
```task
@@ -158,7 +165,7 @@ Output: service/domain API, permission tests, and denied-access diagnostics.
```task
id: KONT-WP-0017-T004
status: todo
status: done
priority: high
state_hub_task_id: "853807fe-53ac-440e-823f-8d9b0b7ce4b7"
```