Why Reasonry is built this way
This page explains what question Reasonry answers, how that differs from other tools that help AI agents keep knowledge, and the reasoning behind each main design choice. For what the agent does during each task, see What the agent does during a task. For how the engine, the plugin, and a workspace divide the work, see Architecture.
How Reasonry differs from other tools
Many tools help AI agents keep knowledge, and they answer different questions. The following table compares the main kinds:
| Kind of tool | The question it answers | Who decides what's true |
|---|---|---|
| LLM wiki | What do my sources say? | The agent |
| Agent memory | What did this user or session say? | An LLM or the agent |
| Company search | Where is that in the company? | A person who marks a page as verified |
| Reasonry | What did the team decide, and does it still hold? | A person, before the decision takes effect |
To answer its question, Reasonry keeps evidence, open questions, and problem reports as documents of their own, next to the decisions. A person answers each challenge point by point, and the answers stay in the decision. When evidence changes, a review pass rechecks the conclusions built on it. A wiki sits on top for reading, and Reasonry flags a page when its sources change.
Design choices
The following sections explain the main design choices and the reasoning behind each one.
Plain files in git
Reasonry starts from Andrej Karpathy's LLM Wiki pattern: a folder of Markdown files that an agent maintains. The pattern is portable and needs no infrastructure, and Reasonry keeps both properties.
A folder alone stops being enough after many documents and agents share it. Nothing gives a document a stable ID, shows whether it's still in force, or checks a change. Reasonry adds those things on top of the files. A database or a graph store can provide them too, at the cost of plain diffs, plain-text search, and the option to take your files elsewhere.
Decisions at the center
A wiki page describes something. A decision commits you to something, and it can be replaced. Reasonry treats an accepted decision as the thing a knowledge base produces. Evidence, open questions, and reports exist to support decisions.
Each workspace defines its own statuses and says which of them are in force.
Sources first, wiki second
A generated summary loses information. In a study of compiled wikis, wikis compiled without seeing the questions scored 2.14 to 2.32 out of 5, against 3.46 for the raw sources. After one or two rounds of refinement, the compiled wikis averaged 3.24, against 3.47.
In Reasonry, the wiki helps you find things, and the source documents settle what's true. The wiki is written from the sources and never changes them, and agents are told to read the source before they rely on a page.
Keyword search
Search in Reasonry runs on your machine with keywords. It needs no embeddings, no model, and no network connection, and the same query on the same files returns the same order. Vector search adds outside services, a cost per document, and an index that can drift from the files.
Search weighs a rare word more than a common word. A query's rare words name the document, and its common words match many documents, so equal weights rank the right document low.
Three kinds of check
A document can pass every automatic check and still be wrong. Reasonry divides the checking by who can do it reliably:
- Code checks what code can decide correctly every time, such as whether a linked document exists.
- Agents judge quality and look for contradictions, and their findings are advice.
- A person approves whatever becomes binding.
Each kind catches what the others miss. A validator can't tell that what a document says is out of date, and people overlook mechanical errors.
A challenge before a decision counts
A decision can contradict an earlier one or depend on stale evidence, and a later review finds that too late. The challenge happens before a decision is accepted, and the answers stay in the decision, so a later reader can see what was considered.
A required section in every decision doesn't do this job, because filler can satisfy it. The value comes from the person's answers.
Changes that preview first
Tools that change a document show the result first and write only when told to. A status change edits
only the lines it needs to, so a real change isn't buried under reordered formatting. The engine has
no tool that deletes a document. Removing a document created in error is a separate mode of the
maintain-source skill.
Separate servers for maintainers and readers
Agents that maintain the knowledge base connect to one server. Agents in other projects connect to another, where the only change they can make is to file a report.
Two servers replace permission checks inside one server, because a permission check is code, and code has bugs. A tool that a server doesn't offer can't be misused.
Simple links
A link between documents has no kind. When a design offers many kinds of link, authors and agents choose the generic one, so the kind carries no information.
Reasonry uses a plain list of document IDs, plus separate fields for resolving, replacing, and refining another document. Each link has no reason field, because an optional reason goes unwritten and a required one fills up with filler.
An engine and a plugin
The engine checks and serves files, and it knows nothing about the procedures. The plugin holds the procedures and uses only the engine's public interface. A test fails if either side crosses that line, so the two can change at their own pace.
An engine upgrade doesn't change your workspace silently. A change to the workspace format comes with
a reasonry migrate step that shows what it would do before you run it.
Tests with planted errors
Reasonry tests its review procedures on a fictional knowledge base. The test hides errors in the documents, along with passages that look like errors and aren't, so an agent that flags everything doesn't score well.
Tests run offline, and a person reads the results. No agent loop changes a procedure to raise a score, because a score can rise without the work improving: an agent can add the phrases that the scorer looks for.
Documents are data
Documents can contain text written to manipulate an agent, especially raw material from outside. Every review procedure tells the agent to treat document text as information and never as instructions.