Upgrade a tree to OKF 0.3
OKF 0.3
makes 0.2’s text precise and adds a few optional fields. A tree moves when its
root index.md says so: until then it’s read and checked as 0.2, and
okforest/okf-version-current
warns that 0.3 is current. Nothing breaks while you wait.
Most trees move in one small change: declare the new version, then fix what the checks report. This page goes through what they report, and why.
What changes without you
Section titled “What changes without you”Some of 0.3 applies to every tree, whatever it declares, because the spec says to read 0.2 bundles that way too. OKForest already does:
- Trust counts only current verifications. A verification older than a
page’s
generated.atis of an earlier text, so a page edited after a person verified it is no longer human-reviewed until someone verifies it again (how a page’s trust changes). - A status OKF doesn’t define isn’t
stable. It’s shown as written, andokf/statuswarns about it. - Dates count as timestamps.
stale_after: 2026-12-31is the start of that day in UTC. Astale_afterthat isn’t a date counts as stale.
1. Declare the version
Section titled “1. Declare the version”In the tree’s root index.md:
---okf_version: "0.3"---Keep the quotes: unquoted, 0.3 is a number, which OKF asks you not to
write.
2. Check the tree
Section titled “2. Check the tree”Run the CLI on the tree (0.17.0 or later):
npx okforest@latest validate okfOr push the change on a branch: the GitHub Action annotates the pull request, and once it’s merged, the tree’s Checks in the OKForest App list the same findings. Then fix what’s reported, in roughly this order.
3. Fix what’s reported
Section titled “3. Fix what’s reported”Path fields without a leading /
Section titled “Path fields without a leading /”OKF 0.3 resolves a path field (resource, computation,
executor.resource, attester.resource, superseded_by) without a leading
/ from the page’s own folder, as a link is. 0.2’s examples wrote them from
the tree’s root, so a tree that copied them now points at files that aren’t
there:
computations/revenue-ytd.md 11:3 warning `skills/run-on-bq.md` does not exist from this concept's folder, where OKF 0.3 resolves a path without a leading `/`; from the tree's root, write `/skills/run-on-bq.md`. okf/broken-linkAdd the /, as the message says, or write the path relative to the page
(../skills/run-on-bq.md).
Front matter in log.md
Section titled “Front matter in log.md”log.md has no front matter under 0.3
(okf/log-frontmatter, an error).
Remove the block; the log’s date headings are all it needs.
Your own fields
Section titled “Your own fields”OKF 0.3 reserves every key it doesn’t define for later versions, except
those that start with x-. A field of your own, such as owner, gets a
warning (okf/extension-key): rename it
x-owner. No company’s or tool’s name is needed: the fields are the tree’s
own.
A type’s fields are fields of your own too, so rename them in its
schema (properties and required) and its template in the
same change, or the schema starts reporting the old names as missing.
Markdown that isn’t knowledge
Section titled “Markdown that isn’t knowledge”Under 0.3, a .md file without front matter or a type isn’t a concept: a
README.md or CONTRIBUTING.md no longer has to be listed in
ignore:. It’s skipped, and
okf/not-a-concept says so as a warning.
Keep a file in ignore: to keep Checks quiet about it. A page that is
knowledge but lost its type is skipped the same way, so the warning is
worth reading.
Attested computations
Section titled “Attested computations”Each entry of a computation’s parameters needs a type as well as a name
(okf/attested-computation):
commonly string, integer, number, boolean, date, or timestamp,
or one its runtime defines.
4. Use what’s new, when it helps
Section titled “4. Use what’s new, when it helps”Nothing here is required:
- The tree’s own title and description in the root
index.md’s front matter, besideokf_version, with an optionallicense. OKForest shows the description when.okforest/settings.yamlgives none. superseded_byon a deprecated page, naming its replacement. Deprecate in the OKForest App sets it, and assistants reading the page over MCP are pointed to the replacement.- A deprecated page left behind when a page moves, for links from outside the tree: Move or rename in the App offers it.