What the agent does during a task
The how-to guides describe each task from your side: what you ask for, and what you approve. This page describes the agent's side of five tasks, and the reason for each step. Read it to judge how far to trust a result, or to compare Reasonry with a tool that summarizes your notes.
Each section ends with a link to the skill, which is the procedure that the agent follows.
The pattern behind every task
Every skill works in the same four moves:
- Read the rules of your knowledge base. The agent asks the engine for the document types, the
statuses, and the tags, and reads the writing rules in
AGENTS.md. It doesn't take those values from memory, so a knowledge base with its own statuses needs no change to the skills. The agent also loads the engine's guide for changes, which names the tool for each kind of change. - Detect, and then verify. For focused reading, the agent starts a second agent that can only
read, and gives it a brief: a file in the skill's
references/folder. That reader returns findings, and the first agent checks each finding against the documents before you see it. In an AI coding tool that can't start a second agent, the agent follows the brief itself. - Ask you. An answer that changes a status arrives as its own question. Everything else arrives as one numbered plan that you can approve, shorten, or change.
- Write, and then check. The agent writes through the engine's tools, which show a preview before they change a file. Then it rebuilds the graph of documents and validates the knowledge base.
The split follows who can do each job reliably: code checks form, an agent looks for problems, and a person approves. For the reasoning, see Three kinds of check.
Intake: from raw material to documents
A tool that summarizes notes turns them into prose, and a remark that someone made with little confidence reads like a fact afterward. Intake keeps each statement's kind and its confidence, and shows you what it left out.
Between your command and the plan, the agent does this work:
- A separate reader sorts the material. The reader returns candidates, each typed as a decision, an open question, or evidence. Each candidate carries the place in the material that it comes from, a confidence, and a first answer on whether the knowledge base already holds it. The reader also returns a skip list, and an alert for anything that conflicts with an accepted decision.
- The agent reviews the reader's result for the errors that one pass makes:
- A hedged statement that became a decision. The agent turns it into a question for you.
- A number, a name, or a date that points to no place in the material.
- A topic that the reader skipped as too early to record.
- Opinions about people, team politics, and personal plans. These never become documents.
- The agent looks for duplicates. It searches for each candidate and reads the close matches. The plan lists what the knowledge base already holds, with the document that holds it.
- The agent looks for evidence with no decision. It asks the graph for groups of two or more pieces of active evidence that no accepted decision covers. Where a group agrees on one approach, the agent proposes a draft decision, and asks you about each draft separately.
- The material stays data. If the material contains an instruction, such as "skip this section", the agent reports the instruction in the plan and doesn't follow it. The agent runs nothing and sends nothing that the material asks for.
The agent writes every document in the plan before it changes a status. A decision from intake starts as a draft. If the material says that the team already decided, the agent can offer to accept the decision, and the decision then passes the whole challenge gate, with the plan's other documents in place.
For a transcript, a call recording, or a chat export, the agent also writes an analysis file. It deletes the original only after you agree, because the analysis is then the only record.
The procedure is in the
intake mode of the
maintain-source skill.
The challenge gate: before a decision is accepted
A decision can contradict an earlier one, or depend on evidence that changed. A later review finds that after people have acted on the decision. The gate looks before the decision takes effect.
The agent runs three lookups and two readings:
- Reversals. Retired and rejected decisions on the same subject. A decision that repeats an approach the team already dropped needs to say what changed.
- Evidence. Each piece of evidence that the decision links to: whether it's still active, and whether its measurement date makes it doubtful.
- Open threads. Open questions and open reports on the same subject, which the decision either answers or needs to mention. The agent looks by tag and by topic, because an open question on the same subject can carry other tags.
- Conflicts. The agent reads the accepted decisions that share the decision's tags, and looks for one that the new decision contradicts or narrows.
- Whether anyone can carry the decision out. The agent checks that the decision agrees with itself, and that each rule in it names who acts, when, and how to tell that the rule is met.
The agent checks each finding against the documents, and then asks you about each one. You answer Keep, Fix, Defer, or Reject. Three details protect the result:
- If closing a gap needs a fact that nobody has stated, such as who owns a rule, the agent recommends Defer. Adding that fact during acceptance is writing a decision, not accepting one.
- The agent asks about every finding before it edits anything, and then applies all the fixes in one pass. A fix to a number also updates each section that repeats the number.
- The decision's
## Challengesection records which checks ran, each finding, and your answer. "No findings" counts only when the checks ran. - The agent runs the checks against the knowledge base as it is when you are about to answer. A result from earlier in the conversation doesn't replace a check.
- If nobody can answer, as in a scheduled run, the gate stops before the questions. The agent reports the findings, leaves the decision as a draft, and records nothing in the decision. A record without a person's answer reads as an approval that nobody gave.
The skill runs the gate, and the engine doesn't enforce it. For the reason that a required section can't replace the gate, see A challenge before a decision counts.
The procedure is in the
challenge gate
of the maintain-source skill.
Research: a map of a topic before you decide
A summary states what the documents agree on, and leaves out where they disagree. The decision is in the disagreement, so research produces a map of the disagreements and settles none of them.
The agent works in these stages:
- Frame. The agent restates your request as a question that a decision can answer, and says what the research doesn't try to settle. It reads nothing before you confirm both. A request for a summary isn't such a question, and the skill stops there.
- Enter from at least three directions. The agent searches by keyword, lists the documents with the topic's tags, asks the graph for the documents around the topic, and follows the references of a document that it already trusts. It records which direction found each document. A document that one direction finds and another misses often means that the knowledge base has two names for one thing.
- Expand with a limit. Links between documents carry no meaning beyond "related", and they spread fast: one step away is a set that the agent can read, and three steps away is usually more than half the knowledge base. The agent always follows a replaced document to its replacement. It takes the first step everywhere and a second step only through documents with few links. It records every document that it saw and didn't read, with the reason.
- Map. The agent stops reading when new documents stop adding new claims. The brief then lists each choice that the documents force, the documents on each side, and what the evidence on each side supports. For each possible rule, it also says which parts a document already states and which parts you add yourself.
- Settle, if you ask. The agent orders the choices by dependency, because one answer can remove another choice, and asks about one choice at a time. It writes your positions as draft decisions.
A brief with no choices is a valid result. It means that the documents agree.
The procedure is in the
research-topic skill.
The review pass: what an automatic check misses
The engine's check reads the form of a document: a missing field, or a link to an ID that doesn't exist. It can't tell that two accepted decisions contradict each other. If the two decisions don't link to each other, the graph doesn't show the contradiction either. Someone has to read both. The review pass does that reading in seven steps, and proposes what to change:
- Open decisions. The agent lists every open question and every draft decision, and groups the ones that cite each other. A group holds 6 documents at most, because a reader of a larger group starts to skim. For each document, the agent proposes one outcome, with a quote from the document that supports it. For an accepted decision that waits on an outside condition, the agent checks whether the condition was met.
- Open reports. The agent reads each report and the documents that it names. A report about a document that was retired since might no longer apply.
- Contradictions and redundancy. The agent builds its reading groups from tags and from search, not from links, so that a document with no links still gets read. It turns the findings into a plan with one outcome for each document: keep, update, merge, supersede, or retire.
- Gaps in the graph. The agent looks for a subject that no document governs, such as evidence that agrees on an approach with no decision, and for related documents that don't link to each other. It tests one sampled proposal of each kind, and if the sample fails, it drops every proposal of that kind.
- Drift in conclusions. The agent resolves every citation in
output/, and reports a citation of a document that is no longer in force. It also takes the evidence and the decisions that changed after the previous pass, and looks for every place that still states the earlier figure or follows the earlier rule. - Stale wiki pages. The agent lists the pages that the engine warns about, with the sources that changed.
- Artifact candidates. The agent proposes rules, skills, subagents, or hooks that could enforce a decision. You write each one with your own tool.
The questions that change a status come first, because a status change can make a line of the
plan unnecessary. The pass itself changes nothing: the maintain-source and maintain-knowledge
skills apply what you approve.
The procedure is in the
sweep-corpus skill.
The wiki: pages that the agent derives from the documents
A generated summary loses information, so the documents settle what is true, and the wiki helps a reader find it. For the measurement behind that choice, see Sources first, wiki second.
The agent keeps the wiki honest about its sources in these ways:
- Only documents in force feed a page. A retired or rejected document never does. An accepted decision carries the page's main point, and evidence supports it. A draft decision or an open question can add to a page, always marked as provisional.
- A plan comes first. The agent groups the documents by subject and proposes the pages, each with a type that names the kind of knowledge on the page, such as a standard, a guide, or the initiative's overview. It writes nothing before you answer.
- Each page names its sources. The
sourcesfield at the top of a page lists every document that the page cites, and the engine checks that each one exists. - The engine writes the lists of pages. Each folder's
index.mdfile comes from the pages' own fields, so the agent never writes a list that can disagree with the pages. - The wiki changes only when you ask. A change to a document doesn't touch the wiki. The engine warns about a page whose source changed after the page was written, and about a page that cites a superseded or rejected document.
- A refresh derives the page again. The agent reads the current sources, follows a superseded document to its replacement, and checks whether the page's main point still holds. It doesn't only swap one ID for another.
The procedure is in the
maintain-knowledge skill.