ifp

Garden Patch Home · Decisions

Deep Context as an Architecture for Captured Reasoning

Context

Personal knowledge management systems capture facts and documents but not the reasoning substrate — the web of values, principles, patterns, and cases that lets a person (or an agent acting on their behalf) make decisions consistent with how they actually think. The gap: an agent with access to someone’s notes can retrieve information but cannot reason as that person would, because the connective tissue between pieces of knowledge is implicit, unwritten, or scattered across unstructured prose.

Five requirements drove the architectural choice:

  1. Knowledge captured in typed forms with known internal structure
  2. Forms connected via explicit, traversable typed relations
  3. Operation within small context windows using progressive disclosure
  4. Distinction between what an agent may decide and what requires human judgment
  5. Learning and expansion through use, with appropriate approval gates

Decision

Capture reasoning as typed markdown forms connected by predicate wikilinks into a navigable knowledge graph. Each form type answers a distinct question and carries a structural contract — required sections that make its shape predictable for both human readers and agent traversal.

The architecture operates across three layers: authoring (plain markdown files), semantic (agent traversal via predicates), and trust (Gordian Envelope for signed exchange — future phase). The authoring layer is zero-dependency: no database, no plugin, no schema enforcement. Version control is git.

Sixteen form types organized in five categories (Orientation, Structural, Action, Generative, Governance) cover the full spectrum of reasoning from values and convictions through patterns and cases to inquiries and scenarios. Two precincts — garden (curated nodes) and vault (operational capture) — coexist in the same namespace with shared infrastructure.

Alternatives Considered

Fine-tuning / RLHF — Train a model on the person’s writing to replicate their voice and judgment. Rejected: captures behavioral patterns, not reasoning. A fine-tuned model can sound like the person without understanding why they make specific choices. The reasoning substrate is opaque inside model weights. No auditability, no progressive disclosure, no human override at decision boundaries.

Retrieval-augmented generation (RAG) over documents — Index existing documents and retrieve relevant chunks at query time. Rejected: retrieves but doesn’t structure. RAG finds what someone wrote but not how pieces connect or why one principle takes priority over another. No typed relations, no structural contracts, no traversable graph. Works for information retrieval, not reasoning capture.

Database-backed knowledge graph — Store forms and relations in Neo4j, PostgreSQL, or similar. Rejected: violates zero-tooling floor. The knowledge becomes hostage to a running database. Plain text files in git survive any tool change; databases require maintenance, migration, and specific query languages. The authoring experience degrades when every edit requires a database write.

Tags-only personal knowledge management — Classify notes with YAML tags and retrieve by tag intersection. Rejected: produces sets, not graphs. Tags create flat groupings without typed edges. “Tagged with identity AND privacy” retrieves a set of notes but says nothing about how identity and privacy relate — whether they’re in tension, whether one constrains the other, whether a specific case validates their intersection. Predicates carry semantic meaning that tags cannot.

Hybrid structured/unstructured — Keep most content as unstructured notes with a small structured layer (e.g., databases for key entities). Rejected: the boundary between structured and unstructured becomes the maintenance problem. Which knowledge deserves structure? The deep context approach answers this with the standalone document test — if it produces a standalone document with a known internal structure, it’s a form.

Consequences

Positive — observed through implementation:

Positive — external validation:

Positive — architectural:

Negative — observed:

Sources

Relations