Workspace
A workspace is one knowledge base, seen as files: a folder in git that holds the configuration,
the documents, and the workspace's own rules. This page describes the layout and the values of a
workspace that reasonry init creates from the engine's preset. A workspace owns these values and
can change them in its own files.
To read the values that your workspace uses, ask the agent to call the get_config tool, or run
npx -y @push-based/reasonry@2 compile. To change them, see
Customize a workspace. For the fields of each document, see
Document fields.
Where a workspace lives
A workspace is a repository of its own, or the reasonry folder at the root of another
repository, such as an application's repository. The engine uses the folder where a command or a
server starts when that folder holds a reasonry.config.json file. Otherwise, the engine uses
the reasonry folder in the start folder. The engine looks in no other folder. A server that
starts in the folder that holds the reasonry folder tells the agent, in the server's
instructions, that the paths in the knowledge base are relative to the reasonry folder.
With the --config flag, the workspace is the start folder. The init and migrate commands
take the folder as their PATH argument, and don't apply this rule.
Folder layout
The following listing shows the files and folders of a workspace with one initiative. SLUG is
the initiative's folder name:
reasonry.config.json The workspace's configuration: types, statuses, ID rules, search
AGENTS.md The workspace's rules for agents
CLAUDE.md Imports AGENTS.md for Claude Code
README.md What the folder is, for a person who opens it
graph.json The graph of documents and links, generated by the engine
.git-blame-ignore-revs Commits that last-changed dates skip, such as a migration
source/
initiatives/
SLUG/
initiative.json The initiative's manifest
AGENTS.md The initiative's own rules
context/ The charter and background documents
plan/ Plans, such as a roadmap
decisions/ Decisions
questions/ Open questions
evidence/ Evidence
raw/ Raw material for this initiative
raw/ Raw material, analyses, research briefs, and the intake record
reports/ Reports about problems in the knowledge base
wiki/
index.md The Open Knowledge Format version, and the list of initiatives
SLUG/ The initiative's wiki pages
index.md The list of the folder's pages, written by the engine
output/
documents/ Deliverables that people write from the knowledge base
okf/ Exported bundles
templates/
initiative/ The skeleton that the engine copies for an initiative
reasonry init creates the reasonry.config.json, AGENTS.md, CLAUDE.md, README.md, and
wiki/index.md files, the templates/initiative/ folder, and the empty source/initiatives/,
source/raw/, source/reports/, and output/documents/ folders. Every other file and folder
appears when the first initiative, document, or export needs it.
A document is a Markdown file in a type's folder inside an initiative, or a report in
source/reports/. The type folders are flat, and a document stays in its folder when its status
changes. Files in the raw/ folders and files at an initiative's root aren't documents.
Document types
The following table lists the document types of the preset. PREFIX is the initiative's prefix:
| Type | ID | Folder | Statuses |
|---|---|---|---|
Decision (decision) | DEC-PREFIX-0001 | decisions/ | draft, accepted, rejected, superseded |
Open question (question) | Q-PREFIX-0001 | questions/ | open, resolved, rejected |
Evidence (evidence) | EVID-PREFIX-0001 | evidence/ | active, superseded |
Charter (charter) | CHARTER, one for each initiative | context/ | active, superseded |
Context (context) | CONTEXT-NAME | context/ | active, superseded |
Plan (plan) | PLAN-NAME, such as PLAN-ROADMAP | plan/ | active, superseded |
Report (report) | RPT-0001 | source/reports/ | open, resolved |
A numbered ID is unique in the whole workspace. A named ID and the charter's ID are unique inside one initiative.
Statuses
A document starts in the first status of its type. Each status is either live, which means that readers act on the document, or retired. The following table lists the statuses of the preset:
| Status | Types | Live | What it means |
|---|---|---|---|
draft | Decision | Yes | A proposal. Nobody has to follow it |
accepted | Decision | Yes | In force. A person accepted the decision after the challenge gate |
rejected | Decision, open question | No | The team declined the decision, or dropped the question |
superseded | Decision, evidence, charter, context, plan | No | Another document replaced the document, or the document stopped applying |
open | Open question, report | Yes | Nobody has settled the question, or closed the report |
resolved | Open question, report | No | An accepted decision answers the question, or the maintainers closed the report |
active | Evidence, charter, context, plan | Yes | Current |
The skills and this documentation use two more words, which follow from the statuses:
- A provisional document is a decision or an open question in its first status: a
draftdecision or anopenquestion. It records a proposal or a question, and nobody has to follow it. - A binding document is any other live document, such as an
accepteddecision oractiveevidence.
A superseded document names its successor in the succeeded_by field. If nothing replaces it, a
banner in its body gives the reason. Search ranks every retired document lower.
A workspace can rename the statuses and add types. The engine requires 2 names: superseded for
decisions and evidence, and resolved for reports.
Fields that connect documents
A document's frontmatter connects it to other documents with these fields:
links: A plain list of document IDs, for related documents and for the evidence behind a decision.succeeded_by: On a superseded document, the IDs of its successors.resolves: On a decision, the IDs of the open questions that it answers.refined_by: On a document, the IDs of the documents that refine it.waits_on: On an accepted decision, the outside condition that it waits on, such as a ruling or a purchase. A review pass checks each condition.
Each relation is written on one document only. The graph derives the other direction.
Configuration files
The configuration has 2 levels. The engine loads both strictly: an unknown field and a missing field are errors that name the file and the field, and the engine supplies no default values.
The workspace's configuration
The reasonry.config.json file describes the whole workspace. It has these fields:
$schema: Optional. The URL of the JSON schema of the file, for an editor.version: The version of the configuration's format. The engine reads version3, andreasonry migratebrings an earlier workspace up to it.roots: The folders of the source documents and of the wiki.types: The document types.search: The settings of the keyword search.
The following fragment of the preset shows one type. The fragment is shortened: the file continues with the other 6 types:
"types": {
"decision": {
"label": "Decision",
"id": {
"start": "DEC",
"form": "numbered"
},
"folder": "decisions",
"statuses": [
{
"name": "draft",
"live": true
},
{
"name": "accepted",
"live": true
},
{
"name": "rejected",
"live": false
},
{
"name": "superseded",
"live": false
}
],
"template": {
"required": ["Context", "Decision", "Consequences", "Alternatives Considered"],
"optional": ["Open Questions", "Links", "Challenge"],
"aliases": {},
"flagUnknown": true,
"maxLines": 250,
"summaryMaxSentences": 6,
"noQuestionsIn": ["Decision"]
}
},
The following table lists the fields of a type:
| Field | Required | What it holds |
|---|---|---|
label | Yes | The type's name for a reader |
id.start | Yes | The first part of every ID of the type: uppercase letters and digits |
id.form | Yes | numbered for START-PREFIX-0001, named for START-NAME, or fixed for START alone, one document for each initiative |
folder | Yes, except for report | The type's folder inside an initiative. The report type has none |
statuses | Yes | The statuses in order, each with a name and a live flag. A document starts in the first one |
template | No | The sections and the limits of the body |
The following table lists the fields of a template. The validation reports every departure from a template as a warning:
| Field | Required | What it holds |
|---|---|---|
required | Yes | The second-level headings that every document of the type must have |
optional | Yes | The second-level headings that a document can have |
aliases | Yes | Other spellings of a heading, each mapped to the name in required or optional |
flagUnknown | Yes | Whether a heading outside those lists is a warning |
noQuestionsIn | Yes | The sections that must not contain a question |
maxLines | No | The largest number of lines in a document's file |
summaryMaxSentences | No | The largest number of sentences in the summary field |
summaryMaxWords | No | The largest number of words in the summary field. The preset doesn't set it |
The initiative's manifest
Each initiative's initiative.json file holds what differs between initiatives. The following
manifest comes from the workspace of the
tutorial:
{
"name": "Team tooling",
"prefix": "TT",
"domain": "choosing and changing the team's development tools and working agreements",
"tags": [
"topic/ide-editor",
"topic/version-control",
"topic/ci-cd",
"topic/code-review",
"topic/testing",
"topic/working-agreements",
"kind/decision",
"kind/process",
"kind/reference",
"kind/evidence"
],
"recommends": [
"summary"
]
}
The following table lists the fields of the manifest:
| Field | Required | What it holds |
|---|---|---|
name | No | The initiative's name |
prefix | Yes | The initiative's part of every numbered ID: uppercase letters and digits, such as VT |
domain | Yes | One phrase that says which work needs this knowledge base. The engine builds the activation stanza for consumers from it |
tags | Yes | The tag list. A decision, an open question, or a piece of evidence takes its tags from this list |
recommends | Yes | The frontmatter fields that the validation recommends for each decision, open question, and piece of evidence |
hooks | No | The path of a module, relative to the initiative's folder, that adds the initiative's own validation and parsing for a document type. See Add an initiative's own checks with a hook |
Rules for agents
The workspace's AGENTS.md file holds the rules that every agent follows in the workspace: the
order of precedence, the writing rules in the section "When you write", and the local rules. An
initiative's own AGENTS.md file adds rules for that initiative.
When two rules disagree, the closer one wins, in this order: your decision on the change at hand, the initiative's rules, the workspace's rules, the defaults of the Reasonry skills, the code and the configuration, and last, the patterns in existing documents.
Wiki pages
The wiki is a bundle in Open Knowledge Format (OKF) version 0.3, and a wiki page is a concept of the bundle: a Markdown file with frontmatter. The frontmatter names the page's type, title, and description, the source documents that the page cites, and the time when the page was generated. For each field, see Wiki pages in the reference of the document fields.
OKF has no list of page types and no folder for a type. The type field is a short name for the
kind of knowledge on the page, such as Standard, Guide, or Overview, and the agent chooses
it. A page lives in the folder of its initiative, wiki/SLUG/, or in a subfolder that groups the
pages on one topic. The folder under wiki/ is the page's initiative.
The following listing shows the wiki of one initiative with a topic subfolder:
wiki/
index.md
SLUG/
index.md
overview.md
review-turnaround.md
caching/
index.md
cache-invalidation.md
Each folder that holds pages has an index.md file. The file lists the folder's pages by type,
each with its description, and the folder's subfolders, so that a reader sees what a folder holds
before opening a page. The engine writes these files when it rebuilds the graph, so don't edit
them. The frontmatter of the wiki/index.md file holds the bundle's metadata: okf_version, and
optionally a title, a description, and a license. The engine keeps that frontmatter as you
wrote it. The validation warns about an index.md file that doesn't match the pages of its
folder: to write the file again, run npx -y @push-based/reasonry@2 graph build.
Warnings about stale content
The validation warns about content that is out of date. The skills and this documentation call each warning by a name:
wiki_page_stale: A page's source changed after the page was generated.wiki_source_drift: A page cites a source that was superseded or rejected.stale_ref: Thelinksfield of a live document names a superseded or rejected document.self_superseded_ref: Thelinksfield of a document names a document that it superseded.
The validation report prints a message for each warning, and doesn't print the name. The following
messages, in the order of the preceding list, come from a workspace in which DEC-TT-0002
superseded DEC-TT-0001:
DEC-TT-0001 changed after this page was generated (2026-11-16T14:39:37.000Z) — refresh the page
sources cites superseded DEC-TT-0001 (superseded by DEC-TT-0002) — refresh or re-source this wiki page
links references superseded DEC-TT-0001 (superseded by DEC-TT-0002)
links references DEC-TT-0001, which DEC-TT-0002 itself supersedes — drop it (the supersession record already captures the relationship)
To act on the first two, see Refresh stale pages. A review pass collects the other two: see Run a review pass.