Work with documents
This guide covers the tasks that create and change documents: start an initiative, add raw material, record one document, accept or replace a decision, settle an open question, close a report, and remove a document that was created in error. For a first run of the main path with example data, see Build your first knowledge base.
The status names in this guide are the ones in the engine's preset. If your knowledge base renamed
them, its names are in the reasonry.config.json file.
Start an initiative
An initiative is a folder for one project or topic, with its own ID prefix and its own tags. Start one when you have a subject that no existing initiative covers.
Before you start, collect what you already have on the subject, such as kickoff notes, a proposal, or a deck. The agent reads the material to propose answers, and you correct them. The material doesn't become documents at this point: you add it as raw material after the initiative exists.
-
Run the skill with a working name or a one-line purpose:
/reasonry:bootstrap-initiative NAME -
If the agent says that an existing initiative covers the subject, choose between that initiative and a separate one. Two initiatives on one subject split its decisions across two sets of IDs.
-
Answer the agent's questions. The agent asks a few questions at a time, and proposes an answer where your material supports one. You settle these values:
- Name: The initiative's name. The agent takes the folder name from it.
- Prefix: The part of every numbered ID that names the initiative, such as
PAYinDEC-PAY-0001. A prefix consists of uppercase letters and digits, and starts with a letter. Keep it to 2 to 4 letters, so that the IDs stay short. You can't change the prefix after the first document. - Domain: One phrase that says which work needs this knowledge base, such as "planning the tram network". Agents in other repositories read the phrase to decide when to consult the knowledge base.
- Goal and scope: Why the initiative exists, what it covers, and what it leaves out.
- Owners and reviewers: The teams that own the decisions and the teams that approve them. Use team names, never a person's name.
- Tags: 4 to 8
topic/*tags for the subject areas, andkind/*tags for the kind of knowledge. Every document takes its tags from this list, so cover the subject areas that you expect. To add a tag later, you edit the initiative'sinitiative.jsonfile. - Rules: Optional. Rules for agents that apply to this initiative only.
-
Read the summary that the agent shows: the values, the ID shapes, the charter text, and the rules. Approve the summary, or say what to change. The agent creates the initiative, validates it, and ends with a report.
-
Review the files, and then commit them. The skill doesn't commit. If your knowledge base tracks the
graph.jsonfile, include that file in the commit.
For a run with example data, see
Start an initiative in the tutorial.
The initiative's folder in source/initiatives/ holds these files:
initiative.json: The name, the prefix, the domain, the tags, and therecommendslist. Therecommendslist comes from the knowledge base's template for initiatives.context/charter.md: The charter, which states the goal and the scope.AGENTS.md: The rules for this initiative. The file stays empty if you gave none.
To change the tags or the template later, see Customize a workspace. To fill the initiative, continue with Add raw material.
Add raw material
Intake turns raw material into documents. Raw material is anything that holds decisions, open questions, or findings: meeting notes, a transcript, a pull request, an article, a chat export. You give the agent a file, approve a plan, and get the documents.
Save the material as a file, because intake reads a file. Paste a chat thread or a web page into a
file first. Put the file in source/raw/, or in the initiative's own raw/ folder, and start its
name with the date, such as 2026-03-10-stakeholder-prep.md. Files in those folders aren't
documents, and the engine doesn't index them.
Run intake
-
Run the skill with the file's path:
/reasonry:maintain-source intake source/raw/FILE -
Read the intake plan. The numbered lines are the documents that the agent wants to create. The plan also lists the supporting files to update, such as the initiative's roadmap, the topics that a document already holds, the skip list, and the action items that the material names. For an example of a plan, see Add your first material in the tutorial.
-
Approve the plan, strike lines by number, or change a line. Read the skip list before you approve: a topic on that list gets no document.
-
Answer the questions that follow the plan. Each one arrives on its own, with options and the agent's recommendation. The agent asks in these cases:
- The material states something with little confidence. The agent asks you, and doesn't write a decision on its own.
- The material says that the team already decided. The agent can offer to accept the decision. If you agree, the agent first asks about each finding of the challenge gate: see Accept a decision. To keep the decision as a draft, tell the agent so.
- Several pieces of evidence agree on an approach that no decision covers. The agent proposes a draft decision.
-
If the material is a transcript, a call recording, or a chat export, check the analysis file. The agent saves an analysis next to the original, with an
-analysissuffix, and asks before it deletes the original. After the deletion, the analysis is the only record of the material.
Check the result
The agent ends with a list of the documents that it wrote. Check these points when you review the documents:
-
A decision stays a draft unless you accepted it in step 4 of the intake. To accept it later, see Accept a decision.
-
The documents paraphrase the material and never link to the raw file. They name roles and teams, not people. To change these writing rules, edit the "When you write" section of the knowledge base's
AGENTS.mdfile. -
The agent adds an entry for the file to
source/raw/decisions-extracted.md, so that you can see later which material produced which document. The entry for the tutorial's notes looks like this:## source/raw/2026-01-19-review-turnaround-notes.md (2026-11-16)- December 2025 PR first-review wait measurement → EVID-TT-0001- First review within 1 working day, enforced by an owning-team daily check → DEC-TT-0001 (draft)- Reviewer-on-duty weekly rotation → Q-TT-0001 (open) -
The wiki doesn't change. To update the pages that the new documents affect, see Maintain the wiki and write deliverables.
For what the agent does between your command and the plan, see Intake: from raw material to documents.
Record one document
Record one document when the content is settled and you know what to write. For material that nobody has sorted yet, use intake.
-
Ask for the document, with the initiative and the subject:
/reasonry:maintain-source create a decision in INITIATIVE: SUBJECT -
If the agent asks, confirm the type. The type follows what the content does:
- A decision commits to an approach.
- An open question holds a question that nobody has settled. A question with a proposed answer is a draft decision, not an open question.
- Evidence measures or audits something.
- A small choice that is cheap to reverse needs no document.
-
Read what the agent found on the same subject. If a document already holds the content, the agent updates that document and creates nothing.
-
Review the preview, and approve it. The agent writes the document with the next free ID.
A new decision is a draft: it records a proposal, and nobody has to follow it.
Accept a decision
A draft decision takes effect when you accept it. Before that, the agent tests the decision against the knowledge base, and you answer each finding. Reasonry calls this the challenge gate.
-
Ask the agent to accept the decision:
/reasonry:maintain-source accept DOCUMENT_ID -
Answer each finding. A finding is something that argues against the decision as written, such as an earlier decision that the team dropped, evidence that is out of date, or an open question on the same subject. Each finding arrives as its own question with these options:
- Keep: the finding stays as a known tension, and the decision mentions it.
- Fix: the agent edits the decision.
- Defer: the decision stays a draft until the finding is settled.
- Reject: the finding ends the decision, and its status becomes
rejected.
-
Give the final answer. The last question names the decision and its sources, and offers three options: accept the decision, which moves it to
accepted, defer it, which keeps it indraft, or reject it. For a run with example data, see Accept the decision in the tutorial.
The agent applies the fixes, changes the status, and records the outcome in the decision's
## Challenge section:
## Challenge
| Finding | Sources | Answer |
| --- | --- | --- |
| Q-TT-0001 (reviewer-on-duty rotation) is open on the same ground | Q-TT-0001 | keep: already named in Alternatives Considered as held open |
Outcome: accepted.
Caution: The skill runs the challenge gate, and the engine doesn't. A direct call to the
transition_status tool accepts a decision without the gate. Accept decisions through the skill.
For the checks that the agent runs and the reason for each one, see The challenge gate: before a decision is accepted.
Replace a decision
Reasonry never deletes a decision that was valid at some point. The new decision replaces it, and
the earlier decision stays in the knowledge base with the status superseded and the ID of its
replacement.
- Record the new decision, and name the decision that it replaces.
- Accept the new decision, as described in Accept a decision.
- Ask the agent to supersede the earlier decision with the new one. The agent shows a preview.
After you approve, the earlier decision gets the status
superseded, the new decision's ID in itssucceeded_byfield, and a banner that says what the new decision took over. - Approve the cleanup of references. The agent lists the documents that still point to the earlier decision, and proposes a change for each one.
To retire a decision that nothing replaces, ask the agent to supersede it, and give the reason. The reason goes into the banner.
Settle an open question
An accepted decision settles an open question. Record and accept the decision, and tell the agent
which question it answers. The agent adds the question's ID to the decision's resolves
field and sets the question's status to resolved. If the decision answers only part of the
question, the question stays open, and the agent narrows its text.
To drop a question without an answer, ask the agent to reject it, and give the reason.
Close a report
A report is a note that something in the knowledge base looks wrong. Agents file reports, and you decide what happens to each one. Ask the agent to close the report, and choose the outcome:
- Act on it: the agent makes the fix first, and then closes the report.
- Decline it: the report closes as
resolved, with the actionno-action-neededand your reason.
To go through all open reports in one conversation, see Run a review pass.
Remove a mistaken document
Remove a document only if it was never valid: a document created in error, a duplicate written the same day, or a test. Every other document retires through Replace a decision.
-
Ask the agent to remove the document, and give the reason:
/reasonry:maintain-source remove DOCUMENT_ID -
Read the list of documents that point to the document. If other documents point to it, retire the document instead, because its ID then stays valid in those documents.
-
Confirm the removal. The agent removes the ID from the other documents and deletes the file.
Warning: A removal keeps nothing in the knowledge base. To get the document back, restore the file from git.