{"ok":true,"at":1795985256295,"version":"kg/1","health":{"ok":true,"last_run_hours_ago":1.94,"nodes":907,"edges":1329,"communities":91,"modularity":0.7649,"last_error":null,"insights":{"kept":3,"open":15},"kept_rate":1},"practices":[{"id":"schema-first","practice":"Typed schema and deterministic extraction first; a model only inside a fixed schema, with a supporting quote checked against the text.","why":"Model-built graphs drift in vocabulary and invent links; schema-guided, grounded extraction is the main remedy the construction literature reports.","source":{"title":"LLM-empowered knowledge graph construction: a survey (2025)","url":"https://arxiv.org/abs/2510.20345"},"code":"extract(), checkExtraction()","value":6,"unit":"node kinds in the schema","status":"holds"},{"id":"provenance","practice":"Every node and edge records the record it came from.","why":"An insight is only as credible as the facts under it; provenance lets a reader and a loop trace and retract a fact.","source":{"title":"From Local to Global: a GraphRAG approach to query-focused summarization (Edge et al. 2024)","url":"https://arxiv.org/abs/2404.16130"},"code":"kg_nodes.source, kg_edges.source","value":0,"unit":"live facts with no source","status":"holds"},{"id":"incremental-temporal","practice":"Incremental, temporal upkeep: unchanged records cost nothing, changed facts are retired with a timestamp instead of deleted.","why":"Rebuilding a graph from scratch is the main cost of GraphRAG; agent-memory graphs keep validity intervals so history stays queryable.","source":{"title":"Zep: a temporal knowledge graph architecture for agent memory (2025)","url":"https://arxiv.org/abs/2501.13956"},"code":"sync()","value":0,"unit":"retired facts kept as history","status":"holds"},{"id":"entity-resolution","practice":"One id per entity: kind plus a normalised key (case, accents, punctuation, \"et al.\"), plus explicit aliases.","why":"Duplicate entities split evidence and hide the very connections the graph exists to find.","source":{"title":"LightRAG: simple and fast retrieval-augmented generation (Guo et al. 2025)","url":"https://arxiv.org/abs/2410.05779"},"code":"key(), nodeId()","value":0,"unit":"labels that resolve to two ids of one kind","status":"holds"},{"id":"communities","practice":"Find communities and report their quality (modularity) on every run.","why":"Communities are how a graph answers \"what are the themes?\"; GraphRAG summarises Leiden communities for global questions.","source":{"title":"From Louvain to Leiden: guaranteeing well-connected communities (Traag et al. 2019)","url":"https://doi.org/10.1038/s41598-019-41695-z"},"code":"communities(), modularity()","value":0.7649,"unit":"modularity (0.3 or more is clear structure)","status":"holds"},{"id":"links-are-leads","practice":"Predicted links (Adamic-Adar) are leads with a check, never facts written into the graph.","why":"Link prediction finds plausible missing edges, but a prediction stored as fact is how graphs fill with confident errors.","source":{"title":"The link-prediction problem for social networks (Liben-Nowell and Kleinberg 2007)","url":"https://doi.org/10.1002/asi.20591"},"code":"predictLinks(), judge()","value":15,"unit":"open leads awaiting their check","status":"holds"},{"id":"calibrated-insights","practice":"Every insight has a due date and a check that can fail; outcomes re-weight each insight kind.","why":"An insight loop that is never scored cannot improve; scoring turns it into a closed loop (DECISIONS-1).","source":{"title":"Ultrastable DECISIONS-1: every decision is measured","url":"https://ultrastable.io/decisions"},"code":"calibrate(), runKg()","value":1,"unit":"kept share of 3 settled insights","status":"holds"},{"id":"bounded-cost","practice":"Bounded work per run: hub cap and pair cap in link prediction, writes only on change, analysis cached.","why":"A Worker has a CPU budget and D1 bills by rows; an unbounded all-pairs pass is the usual way a graph job breaks its host.","source":{"title":"Cloudflare D1 limits","url":"https://developers.cloudflare.com/d1/platform/limits/"},"code":"predictLinks({ maxHub, maxPairs })","value":1491,"unit":"ms for the last run","status":"holds"},{"id":"fresh","practice":"The graph rebuilds itself on the system clock; a stale or failed run is a failed health check.","why":"A graph that stops updating is a snapshot, and a snapshot is not an autonomous system.","source":{"title":"Ultrastable CLOCKWORK-1: every loop is a clock","url":"https://ultrastable.io/live"},"code":"kgHealth()","value":1.94,"unit":"hours since the last run","status":"holds"}]}