Maintain the wiki and write deliverables
The knowledge base reaches a reader in three forms: a wiki page for a reader who looks for what the documents settle, a deliverable for a specific audience, and an exported bundle for a tool that reads files. The agent derives a wiki page from the documents and can derive it again, and a person owns a deliverable and edits it by hand. An agent that can run an MCP server needs none of the three and connects to the knowledge base: see Connect a consumer repository.
The wiki changes only when you ask. If a document changes, the wiki stays as it is, and the
engine's check warns about each page that is out of date. The wiki tasks and the export use the
maintain-knowledge skill. For the rules that keep a page true to its sources, see
The wiki: pages that the agent derives from the documents.
Generate the pages for an initiative
Generate the pages the first time, and after a large change to the initiative.
-
Run the skill with the initiative:
/reasonry:maintain-knowledge generate INITIATIVE -
Read the page plan. Each line is one page, with its type, the question that the page answers, and its sources. The type is a short name for the kind of knowledge on the page, such as
Standard,Guide, orOverview. The following plan is for the knowledge base from the tutorial, with some columns left out:### Page Plan — team-tooling| # | Page Path | Type | Reader Question | Canonical Sources || --- | --- | --- | --- | --- || 1 | `wiki/team-tooling/overview.md` | Overview | Where does the team-tooling initiative stand, and where do I start? | team-tooling/CHARTER, DEC-TT-0001 || 2 | `wiki/team-tooling/code-review-turnaround.md` | Standard | What does the team require for pull-request review turnaround, and what's still open about it? | DEC-TT-0001 |The plan also lists the pages that the agent decided against, with the reason for each one.
-
Approve the plan, strike pages, or change them. The agent writes nothing before your answer.
The agent writes the pages to wiki/INITIATIVE/, rebuilds the graph, which writes the folder's
index.md file, and validates the knowledge base.
Generate one page
To add one page, name its subject, or pass a page candidate from a review pass:
/reasonry:maintain-knowledge generate one page in INITIATIVE: SUBJECT
Refresh stale pages
A page is out of date in two cases: a source changed after the page was written, or the page cites a
document that was superseded or rejected. The check counts each case as a warning in its xrefs
line. To list the warnings, run npx -y @push-based/reasonry@2 validate --target=xrefs. For the
wording of each warning, see The check warns about stale wiki
pages.
-
Run the skill. With no target, the agent takes every page that the engine warns about. To narrow the run, name a page's path, a source ID, or a page type:
/reasonry:maintain-knowledge refresh INITIATIVE -
Read the plan. For each page, the plan says which sources changed, whether the page's main point still holds, and which sections the agent rewrites.
-
Approve the plan. The agent rewrites the pages and validates the knowledge base. The warnings for those pages are gone.
Remove a page
Ask the agent to remove the page by its path. The agent lists every page and document that links to the page, proposes the cleanup as one plan, and deletes the page after you approve:
/reasonry:maintain-knowledge remove PAGE_PATH
Write a deliverable
A deliverable is a document that you write from the knowledge base for a specific audience: a
status report, an onboarding guide, a proposal, or a summary for another team. Deliverables live in
the output/documents/ folder. Reasonry has no skill for them. You ask the agent in plain words,
and the rule "Cite what you build on" makes the agent name the source of each claim. The rule is in
the "When you write" section of the knowledge base's AGENTS.md file. To change the rule, edit
that section.
-
Ask the agent for the document. Name the audience, the question that the document answers, and the initiatives that it draws on. For example:
Write a one-page summary of the code review rules for a team that joins next month. Use theteam-tooling initiative, and save it in output/documents/. -
Check the citations. Each claim that isn't obvious ends with a line that names the document and the section that the claim comes from. The line has this form:
_Source: DOCUMENT_ID §SECTION_For example, a claim from the Decision section of the accepted decision
DEC-TT-0001ends with_Source: DEC-TT-0001 §Decision_. If the source isn't an accepted decision, the citation adds the document's type and status, such as_Source: Q-TT-0001 §Open Questions (question, open)_. -
Check what each claim builds on. The same rule says which documents can support a claim:
- An accepted decision and active evidence support a claim.
- An open question shows only that something is undecided.
- A wiki page points to the documents. It doesn't support a claim by itself.
- If evidence and an accepted decision conflict, the decision takes precedence.
-
Edit the text as you need, and commit the file.
Keep a deliverable current
A deliverable goes out of date when the documents that it cites change. The check doesn't read the
output/ folder, so it doesn't warn you. The review pass does. Its step "Drift in conclusions"
reports these problems in output/:
- A citation of a document that is no longer in force, or that doesn't exist.
- A citation that lacks the type and the status, or that names a status that the document no longer has.
- A deliverable that still states a figure or follows a rule that a later document replaced.
To check the deliverables without a full pass, ask for that step alone:
/reasonry:sweep-corpus only drift in conclusions
Then ask the agent to update the deliverable from the current documents, and review the change.
Export a bundle
Export a bundle for a consumer that can't connect to the reasonry-keeper server, such as a tool
that reads Open Knowledge Format (OKF) files.
-
Ask for the export, and name the topic, the consumer, and the initiative:
/reasonry:maintain-knowledge export TOPIC for CONSUMER from INITIATIVE -
Review the list of concepts. Each concept comes with the pages and documents that feed it, and the list says what the agent leaves out. Draft decisions and open questions stay out unless you add one.
-
Approve the list. The agent writes nothing outside the list.
The agent writes the bundle to output/okf/CONSUMER-YYYY-MM/. If the knowledge base changes,
export the bundle again, and don't edit it by hand.