diff --git a/memory/.dream_cursor b/memory/.dream_cursor index 755152b..e24b797 100644 --- a/memory/.dream_cursor +++ b/memory/.dream_cursor @@ -1 +1 @@ -359 \ No newline at end of file +361 \ No newline at end of file diff --git a/memory/MEMORY.md b/memory/MEMORY.md index dc40cb3..b20eaa1 100644 --- a/memory/MEMORY.md +++ b/memory/MEMORY.md @@ -87,7 +87,9 @@ This file stores important information that should persist across sessions. - Wiki lint rule: lint is report-only, never make destructive edits to existing wiki pages without user confirmation - Wiki compilation runs in isolated background sessions without user interaction (batch/hands-off mode) - Wiki idempotency rule: if wiki pages already exist for a source, treat as done, move raw file to `_done/`, skip reconciliation +- Duplicate wiki sources (same URL as an already-compiled source) must be detected and moved to `_hard/` - Every processed source must be moved out of `cml/raw/` to prevent cron reprocessing +- Wiki graph regeneration: run `wiki_graph_lint.py` + `wiki_graph_extract.py` after each ingest batch that adds graph metadata - Wiki source pages need explicit `slug` field (e.g. `slug: source-flash-attention`) and `graph.node_id` + `canonical: true` to avoid UNIQUE constraint collision with concept/entity pages sharing the same filename stem - `wiki_graph_extract.py` patched: skip duplicate slugs (first wins) instead of crashing on `nodes.slug` UNIQUE constraint