Skip to content

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.

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.at is 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, and okf/status warns about it.
  • Dates count as timestamps. stale_after: 2026-12-31 is the start of that day in UTC. A stale_after that isn’t a date counts as stale.

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.

Run the CLI on the tree (0.17.0 or later):

Terminal window
npx okforest@latest validate okf

Or 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.

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-link

Add the /, as the message says, or write the path relative to the page (../skills/run-on-bq.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.

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.

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.

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.

Nothing here is required:

  • The tree’s own title and description in the root index.md’s front matter, beside okf_version, with an optional license. OKForest shows the description when .okforest/settings.yaml gives none.
  • superseded_by on 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.