← docs · ADR

The wiki is a re-rendered projection of the graph, never edited

The wiki's durable pages — Knowledge clusters, entity pages, the index — are a materialized projection of the graph (Zep/Graphiti). The graph is the single mutable source of truth; a page is a view. Every change to the wiki is a change to the graph (the grill writes curated facts, invalidates, directs clusters), followed by re-rendering the affected pages. Pages are never edited in place.

Status

accepted

Context

graph, seeded from distilled handoffs (raw transcripts contaminate it). Graphiti's episode → entity → community is the Karpathy tiering (raw → entity-page → cluster), so a separate page-structuring engine is redundant — the structure comes from the graph.

the pages relate was the open question.

correction-propagation, staleness, and bidirectional curation would each need manual bookkeeping.

Considered options

two-sources-of-truth drift; a correction must be hunted across pages; provenance is lost.

build artifact (a view), so correction-propagation/staleness/curation derive for free.

Decision

The graph is the only mutable source of truth.

the affected pages. No in-place page edits.

community + neighborhood), not the whole wiki.

template — no LLM. The cluster/thread synthesis prose is agentic but delegated to a cheap router (render = gpt-5.4-mini), not the edge's scarce cognition. The judgment lives upstream — in the graph + Idiom, produced by the edge's Opus-level cognition; the render only expresses it. The render prompt carries the Idiom** (frame in the mentee's terms) + the cluster's current-valid facts + the prior page (continuity).

read-in-full wiki stays bounded while the raw/graph grows unbounded — the access semantics of handoff #4, now a mechanical consequence of the render rather than a rule.

so nothing in the wiki is hand-edited.

Consequences

"just work" — one source of truth, the view always derived.

what page-as-projection needs to stay drift-free. The two choices reinforce each other: disposable projections tolerate a cheap, occasionally imperfect renderer; a cheap renderer affords constant re-render.

gpt-5.4-mini (synthesis render) → template (structure) → gpt-4o-mini/Graphiti (extraction). Scarce cognition touches only the irreducible.

follow. This reverses handoff #4's assumption that clusters might be hand-curated markdown.

is an API call), and ADR-0004 (the render is where consolidate/grill graph-writes become readable pages; it ungates consolidate's persistence-gated cluster write).