memory graph and services

This commit is contained in:
2026-05-15 01:35:58 +02:00
parent 8f732fc868
commit 9d31dcf2af
11 changed files with 1665 additions and 9 deletions

View File

@@ -3,7 +3,7 @@ id: MKTT-WP-0016
type: workplan
title: "Memory Graph Profile Contract And Context Package Compiler"
domain: markitect
status: todo
status: in_progress
owner: markitect-tool
topic_slug: markitect
planning_priority: P2
@@ -102,6 +102,27 @@ or external policy services required. The first version should be deterministic
and local-first, with runtime responsibilities handed off to
`kontextual-engine` or future memory-runtime packages.
## Implementation Update - 2026-05-15
Initial implementation is available in `src/markitect_tool/memory/graph.py`.
It adds deterministic memory profile, graph, event, and selection models;
contract validation helpers; profile planning; and graph-selection compilation
into existing `ContextPackage` objects.
The CLI surface from this workplan is implemented:
```text
mkt memory blueprint validate <file>
mkt memory blueprint plan <file>
mkt memory graph validate <file>
mkt memory graph pack <selection-file>
```
Examples and documentation now live in `docs/memory-graph-contract.md` and
`examples/memory/*graph*.yaml`. The remaining refinement is fixture breadth:
add invalid fixtures and richer conversation/knowledge examples before closing
the workplan fully.
## Out Of Scope
- Durable graph/event persistence.
@@ -117,7 +138,7 @@ and local-first, with runtime responsibilities handed off to
```task
id: MKTT-WP-0016-T001
status: todo
status: done
priority: high
state_hub_task_id: "e1523ffb-47e6-4017-88e5-907586297416"
```
@@ -143,7 +164,7 @@ fixture examples. Runtime storage and graph query execution are out of scope.
```task
id: MKTT-WP-0016-T002
status: todo
status: done
priority: high
state_hub_task_id: "a5b871ea-1f5b-4065-bae2-04765da3bc96"
```
@@ -168,7 +189,7 @@ runtime event logs. Persisting event logs belongs outside `markitect-tool`.
```task
id: MKTT-WP-0016-T003
status: todo
status: done
priority: high
state_hub_task_id: "07c94925-c593-4acb-8f2b-b6c61744deff"
```
@@ -195,7 +216,7 @@ retention, compaction, latency, or policy decisions.
```task
id: MKTT-WP-0016-T004
status: todo
status: in_progress
priority: medium
state_hub_task_id: "afcd7ce9-e657-4779-b3b2-0ae3f8e2d66e"
```
@@ -218,7 +239,7 @@ SQLite graph store or runtime query service in this workplan.
```task
id: MKTT-WP-0016-T005
status: todo
status: done
priority: high
state_hub_task_id: "5dfbe77e-f926-4ce8-a8c3-3c10aec0f2f6"
```
@@ -241,7 +262,7 @@ tests.
```task
id: MKTT-WP-0016-T006
status: todo
status: done
priority: medium
state_hub_task_id: "07fb3f0d-aaf7-4bc0-a7a3-0fd4983776bb"
```
@@ -265,7 +286,7 @@ Output: CLI commands, docs, and tests.
```task
id: MKTT-WP-0016-T007
status: todo
status: in_progress
priority: medium
state_hub_task_id: "ff78d449-0738-4f1b-a018-2efed3d8e878"
```