The schema
Everything specific to a project lives in one file of its repo, .plancia/schema.yaml. Plancia’s code knows nothing about your folders, your IDs or your status words: the schema says where each kind of item is and how to read it. examples/demo/.plancia/schema.yaml is a complete, commented example on an invented bike workshop.
Top-level keys
| Key | What |
|---|---|
project |
The project’s name |
category |
Free text that groups projects in the web app’s overview (business, personal) |
index |
Globs of the Markdown that is read. Default: every .md file |
exclude |
Globs that are skipped; excluded folders are not even visited |
areas |
Names for parts of the repo, by glob (product: "product/**") |
types |
The kinds of items: where they are and in which format (below) |
citable_ids |
The regular expression of the IDs that count as a citation when written in the text, e.g. '\b([TD]\d+)\b' |
status_words |
Your own status names, mapped to done, in_progress, blocked, open |
log |
Where the log of a day goes, with YYYY, MM, DD for the date: log/YYYY-MM-DD.md |
views |
Screens of the web app declared by the project (below) |
Types and formats
Each entry of types is a kind of item, with a source (a file, a glob, or a list of them) and a format.
| Format | One item per | Reads |
|---|---|---|
lines |
Line that matches pattern |
A regular expression with named groups: id, status, title, and any other field (owner, due). Indented lines below an item belong to it |
table |
Row of a Markdown table | The ID in the first cell (or at the start of another), the title from title_column, the status from status_from or from the section |
file-per-record |
File | The fields of the YAML front matter; the ID from id (or the file name, see id_from_name); the title from name or title, otherwise the first heading, otherwise the file name |
document |
Nothing | Gives the type to the files (logs, notes); they are indexed as documents |
A lines type, for a to-do like - [~] **T5 · Align the deck** — owner: Ana · due: 2026-12-04:
task: source: work/todo.md format: lines pattern: '^- \[(?<status>.)\] \*\*(?<id>T\d+) · (?<title>[^*]+)\*\*.*?owner: (?<owner>[^·]+?)(?: · due: (?<due>[^·]+?))?(?: · |$)' statuses: { " ": to do, "~": in progress, "!": blocked, "x": done }A table type, for decisions kept in two tables under two headings:
decision: source: docs/decisions.md format: table id: 'D\d+' sections: { "Decisions taken": taken, "Decisions open": open }Options of a type
| Option | Formats | What |
|---|---|---|
pattern |
lines |
The regular expression of an item’s line |
statuses |
lines |
From the raw value (~, ✅) to the status name |
id |
table |
The regular expression of the IDs in the rows |
sections |
table |
Only the tables under these headings, each with the status it gives |
tables, title_column, status_from |
table |
Which tables, which column is the title, which column is the status |
fields |
file-per-record |
The front-matter fields to keep, in order |
label, plural |
all | The type’s name on screen |
role |
all | task, decision or blocker: what the screens treat it as, whatever it is called |
id_from_name, id_prefix, status_heading |
file-per-record |
For records without front matter, as ADRs are written: a regular expression on the file name whose first group is the ID, after the prefix ('^(\d+)-' and ADR- make 0007-postgres.md the item ADR-0007), and the heading whose first line is the status (Status). plancia init proposes them for a folder of numbered files with a Status heading |
registry |
table, file-per-record |
People and companies: the ID comes from the title when missing (Jane Doe → jane-doe), rows with the same ID in different files are one item, and the title counts as a citation when written in the text |
Statuses
Plancia decides once what a status means, so every screen and every command agrees. The built-in words in English and Italian (done, in progress, blocked, open, fatto, bloccata…) are known already; status_words adds your own:
status_words: in_progress: [quote] done: [signed, shipped, superseded] blocked: [parked]A status that starts with one of the words and goes on (superseded by D22, done: 2026-03-14) counts as that word. Everywhere, statuses have four colours: green done, yellow in progress or open, red blocked, grey to do.
Citations, history and the radius
- Citations. An ID that matches
citable_ids, written anywhere in the indexed Markdown, is a citation of that item; so is the title of a registry item.plancia radius <ID>lists them with file and line. An ID cited that matches no item is reported bycheck, unless it is history (a log, an archive), struck through (~~B3~~) or in inline code. - Links. Markdown links between files are relations too, and a link to a file that does not exist is a problem. Wikilinks as Obsidian writes them (
[[Note]],[[folder/Note#Heading|text]], also in the front matter) are links as well: the note is found by name, as in a vault. One that leads to no file is a note not written yet, not a problem. - History. A decision that changes gets a new row with the same ID; the row with the most recent date is current and supersedes the others. Two rows with the same ID and the same date but different titles are not versions: they are two items that took the same ID, and
checkreports them; a change made the same day goes in the row itself. A record can also saysupersedes: D9orsuperseded_by: D12in its front matter.plancia show <ID>shows the versions and what each one brought.
Conventions a type can declare
So that the method’s rules hold on any layout:
archive(lines): the file where done items go, each under a heading equal to the title of the file it left.plancia archive --writemoves them; a done item still outside is reported until it moves, as a note. Items keep their sub-items and code blocks; what the archive already holds is never reordered or dropped.auto_archive: true(witharchive): the plugin’s post-edit hook moves the done items by itself, and one left outside is a problem that stops a push. Without it nothing moves until someone runsplancia archive --write.plancia initnever proposes it.status_sectionandstatus_max_kb: the heading of the section where a file says how it stands, and the size beyond which it is reported: it is rewritten, not lengthened.
Views
Screens of the web app, declared by the project:
views: - { name: Work, type: kanban, of: [task, product-step], columns: status } - { name: Suppliers, type: kanban, of: person, where: "roles~supplier", columns: stage } - { name: Roadmap, type: roadmap, of: product-step } - { name: Contacts, type: registry, of: contact, fields: [organization, stage], filters: [stage] }| View | Shows |
|---|---|
kanban |
Columns by a field, the status by default; where filters with field~text |
roadmap |
One file per phase, steps grouped by section |
registry |
A page with search, filters and a table, for people and companies |
Checking a schema
plancia check validates the schema (an unknown key or an invalid regular expression is an error) and the repo against it: lines that look like items but match no pattern, tables not found under their headings, sources that match no file, duplicate IDs, broken links. Adjust until it is clean and plancia find <type> counts what you see in the files.
A pattern runs on every line of its files, on your machine and on the server that indexes the repo. A repetition of a group that itself repeats ((a+)+, (.*)*, (\w+\s?)+) can take minutes on one long line, so the schema refuses it unless each round holds a fixed character that its repeated parts cannot match, as the dot in (?:\.\d+)+ or the # in (?:\s+#\w+)*. Other slow patterns are possible ((a|aa)+): whoever can push to a linked repo can change its schema, so the server trusts the people of that project as much as their code does.
A schema written with the earlier Italian keys (tipi, fonte, formato: righe…) is still read: they are translated to the English ones, which plancia init writes.