DANIEL KLIEWERThe book

I Compiled My Blog Into a Decision Graph

By
5 min read
I Compiled My Blog Into a Decision Graph

I Compiled My Blog Into a Decision Graph

In the architecture post I argued that agent memory should be compiled, not retrieved: do the expensive reasoning once, emit static, inspectable artifacts, and let the runtime do cheap lookups. This post is the proof. I pointed the Sovereign Knowledge Compiler at every post on this blog and watched it turn writing into structure.

No embeddings. No vector store. No API keys. One local model, running on this laptop.

The numbers are real

I ran the deep-synthesis pass over 153 posts. The whole pipeline — extract, local-LLM distill, convergent memory, decay — finished in 36 minutes on llama3.1:8b via Ollama.

MetricValue
Blog posts compiled153
Facts extracted1,513
Decisions distilled436
Decisions carrying an explicit rationale245
LLM-synthesized facts added1,360
Facts reinforced by usage2,613
Max cross-post concept recurrence148

The most interesting row is the second-to-last. The compiler doesn't just store facts — it watches what the synthesis pass keeps coming back to, and rewards those facts with resistance to decay. That is memory that learns what matters from use, not from a hand-tuned retention policy.

What the compiler decided I believe

The 436 decisions, clustered by theme:

  • Local-first & sovereignty — 81 decisions. The single largest cluster. Use Ollama to run LLMs locally. Keep inference off the cloud. Treat the machine as the boundary.
  • Models & inference — 50. Persona models, local serving, the hybrid OpenAI-compatible-but-redirects-to-Ollama pattern that shows up repeatedly.
  • Architecture & compiler — 47. Graph-structured orchestration, retrieval/generation/decision nodes, blueprints for adaptive systems.
  • Agents & orchestration — 39. "The best agent is one that thinks best as itself, not like a human." "Give your agent wisdom and purpose, not just power."
  • Web & deployment — 38. Django, React, FastAPI, Netlify.
  • Data & annotation — 2. (RLHF-Lab is real, just not a recurring theme.)

245 of those decisions carry a rationale the model surfaced from prose that never stated it as a formal choice. That is the whole point of compiling: the reasoning gets done once and frozen into the artifact, so the runtime never has to re-derive it.

The reinforcement signal told the truth

The first version of this loop only rewarded facts the model verbatim-copied between posts. Maximum reinforcement: 2×. That was honest but useless — it just found sentences I reused.

So I added cross-post concept reinforcement: a fact's resistance scales with how many distinct posts share its concept (its tags), not its literal text. Re-run on the real corpus, the max jumped to 148×. Now the signal reflects themes the blog keeps returning to, not duplicated sentences. In the memory layer, "local-first" survives; a one-off coffee-machine anecdote decays. Usage, not age alone, decides what's kept.

The live demo

Everything above is rendered in a live, interactive Next.js app built entirely from the compiler's output artifacts. Three.js knowledge graph, decision browser, timeline, reinforcement ranking:

→ skc-demo-eta.vercel.app

Drag the concept graph. Hover a node — size is frequency, color is theme, edges are co-occurrence. Switch decision themes. Watch the reinforcement list: the top entries are the ideas this blog cannot stop circling back to.

The demo app is static, deployed to Vercel, and reads a single dataset.json the compiler emitted. The 3D graph, the stats, the cards — none of it was hand-authored. It is the compiled corpus, visualized.

Compiling the blog was the proof. Compiling the whole ecosystem is the point: the Sovereign AI Ecosystem site runs the same Discoverable Knowledge SDK over the book, the blog, the open-source Stack, and the Observatory at once — a cross-cutting concept layer links every post, chapter, and module into one traversable graph, so an agent can follow any idea (recipe, signal router, observatory) across the entire body of work.

Why this matters

The standard story is: dump documents in a vector store, retrieve the top-k at query time, let the model re-reason every time. That re-pays the reasoning cost on every query and never compounds. Compiling flips it:

  • Reasoning happens once, at write time, and is frozen into artifacts.
  • The runtime is cheap — O(1) lookups against static files, no retrieval, no per-query LLM call.
  • Memory is sovereign — it lives locally, converges across devices via CRDTs, and decays by real usage.
  • It is inspectable — every fact, decision, and rationale is a file you can read, diff, and version.

I compiled my own blog and got back a map of what I actually argue for. That map is now a live demo, and the compiler that built it is open source.

The loop is the product. This is what it looks like when the loop runs on your own words.

Related research

Jul 15, 2026

The Sovereign Knowledge Compiler: Compile-Time Memory for Local-First AI Agents

A revised architecture for agent memory that treats cognition as something compiled once into inspectable artifacts rather than retrieved fresh on every query — grounded in how OpenAI's Agents SDK, Mem0, and Hindsight are already converging on distillation, and extended with decay, conflict resolution, and CRDT-based device sync.

Jul 21, 2026

Compiling Medical Evidence: A Clinical Research Compiler That Turns Guidelines and Trials Into a Queryable Knowledge Artifact

How to compile medical guidelines, trials, and literature into a provenance-tracked, queryable Clinical Knowledge Artifact — and deploy a live evidence explorer to Vercel — by extending the Research Compiler Agent SDK into a Clinical Research Compiler.

Jul 21, 2026

A Research Compiler for Scientific Understanding, Not a Better Research Assistant

A research vision: why scientific knowledge needs a new computational architecture. The Clinical Research Compiler SDK is an early prototype of a scientific reasoning compiler that transforms literature into versioned understanding — not a better research assistant.

Jul 20, 2026

Compile-Time Intelligence: Building a Research Compiler Agent That Compiles Knowledge Instead of Re-Reading It

An autonomous Research Compiler Agent that compiles web sources into a persistent, queryable, provenance-tracked Knowledge Artifact — moving semantic computation from runtime inference into reusable artifacts (Compile-Time Intelligence). Built on the Knowledge Compiler SDK; local-first and reproducible.

Jul 16, 2026

The Sovereign Knowledge Compiler Explorer: A Recipe for Compiling Knowledge Into a Static, Living Artifact

A fully static, prerendered knowledge explorer with zero runtime inference — built from a deterministic compile-time curriculum compiler. This is the recipe: how it was made, why it works, and how any human or AI can reconstruct it from a corpus.

Jul 23, 2026

Compiling the State of Human Understanding: A Roadmap for the Scientific State Compiler

A research roadmap: the four compiler directions — Mechanistic Reasoning, Scientific Question, Scientific State, and Discovery — are not competing projects. They are five passes in one architecture that compiles the scientific corpus into a versioned, executable model of human understanding. Here is the full plan.

More from the archive