okforest/okf-version-current
The tree declares the current OKF version, 0.3: one behind it should move when ready, and one ahead of this validator needs a newer one.
A bundle’s root index.md declares the OKF version it was written to (§12), and OKForest checks it by that version’s rules, so a tree moves to a new version when it says so, not when a tool updates. OKF doesn’t ask a bundle to move, which is why this is an OKForest convention: a tree on an older version is told the current one, 0.3, to move when it’s ready. Declare the new version, then fix what’s reported: Upgrade a tree to OKF 0.3 goes through it, and OKF lists what changed. A tree that declares a version newer than this validator knows is checked by the newest rules it does know, so update okforest, or the GitHub Action.
Example
Section titled “Example”This file breaks the rule:
---okf_version: "0.2"---
# Metrics
* [Monthly churn](churn.md) - The share of customers who cancel in a month.okforest validate reports:
index.md 2:1 warning This tree declares OKF 0.2; 0.3 is current. Move when you're ready: declare `okf_version: "0.3"` and fix what's then reported (how: https://www.okforest.ai/docs/guides/upgrade-to-okf-0-3/). okforest/okf-version-currentFixed:
---okf_version: "0.3"---
# Metrics
* [Monthly churn](churn.md) - The share of customers who cancel in a month.