ID: 860a1796-f5d Priority: 85 Type: one_shot Status: open
5,209 wiki pages have mermaid diagrams. Many more pages have matching KG edges but no diagrams yet. Generate mermaid flowcharts for the next 100 most-connected wiki pages. Use slug-based matching for wiki_pages to knowledge_edges. Write directly to DB with retry logic for lock handling.
mermaid/add_wiki_mermaid_batch.py — follows existing add_wiki_mermaid.py pattern with slug-based KG matching, validate_mermaid pre-write check, DB retry logic, --dry-run flaggh/orchestra/task/860a1796-add-mermaid-diagrams-to-next-batch-of-10 — 1 commit ahead of origin/main after rebaseThe original task spec referenced "5,209 wiki pages have mermaid diagrams" — as of 2026-04-18 the actual count is 11,227. The task is partially complete: 20 new pages received diagrams via slug-based matching. The remaining ~5,944 pages without mermaid diagrams have too few direct KG edge matches via slug to generate valid diagrams. A different matching strategy (e.g., title-based or kg_node_id based) would be needed to reach the 100-page target.
{
"requirements": {
"coding": 5,
"analysis": 5
},
"_reset_note": "This task was reset after a database incident on 2026-04-17.\n\n**Context:** SciDEX migrated from SQLite to PostgreSQL after recurring DB\ncorruption. Some work done during Apr 16-17 may have been lost.\n\n**Before starting work:**\n1. Check if the task's goal is ALREADY satisfied (run the relevant checks)\n2. Check `git log --all --grep=task:YOUR_TASK_ID` for prior commits\n3. If complete, verify and mark done. If partial, continue. If not done, proceed.\n\n**DB change:** SciDEX now uses PostgreSQL. `get_db()` auto-detects via\nSCIDEX_DB_BACKEND=postgres env var.",
"_reset_at": "2026-04-18T06:29:22.046013+00:00",
"_reset_from_status": "done"
}