Skip to content

Scaling

Knowledge is spread across an organization, and the people closest to a subject should keep it. In OKForest, each team keeps its own Knowledge Tree, and an account’s trees together are its Forest: browsed and searched as one by its people, and by their AI assistants over MCP. This guide is about growing from one tree to many.

One tree is the right start for most organizations: a repository named for its scope (company-okf), with a folder for each subject. It’s one place to look, one set of types and conventions, and nothing to decide about where a page belongs. The company template starts one, laid out by subject.

Split when a part of the tree differs from the rest in one of these ways, not just because it’s big:

  • Who keeps it. A tree has its own editors, who decide on every change. When Finance and HR each want to own their pages, give each a tree: changes to the Finance tree go to Finance’s editors, and nobody else’s queue.
  • Who reads it. People read trees through groves, not folders, so knowledge that only some people should read (compensation, security, a deal in progress) belongs in its own tree. An assistant reads exactly what its person reads, so keeping it out of a tree keeps it out of everyone else’s answers.
  • How it changes. A tree that follows a fixed tag or commit, such as a published standard, stays put while the others move.
  • How big it is. OKForest indexes up to 50 MB of markdown text in a tree, and up to 1 MB in one markdown file; Stats warns past 90% of either. Files that aren’t markdown, such as PDFs, don’t count. Long before that, a tree that’s hard to keep in your head is a sign to split it by subject.

A tree is a whole OKF bundle: a folder with its own root index.md, which declares its OKF version, and its own .okforest/ settings and types. A folder inside a tree isn’t one, so you can’t point a new tree at it: its pages would lose their types and settings, their links from the tree’s root would break, and both trees would hold the same pages. Splitting means moving the folder out, to be a bundle of its own.

Say you started from the company template, and Finance now wants its own tree for okf/finance/:

  1. Move the folder out, either beside okf/ in the same repository (as finance/, a second tree in the same repository), or into a repository of its own (acme/finance-okf). Moving it within the repository keeps its history with git mv; to take it to a new repository with its history, a tool such as git filter-repo can.
  2. Make it a bundle. Its index.md becomes the root: give it front matter declaring okf_version: "0.3", and a title and description. Add a log.md, a .okforest/settings.yaml with the tree’s name, and copies of the types its pages use from okf/.okforest/types/ (the finance pages are Processes: process.schema.json and process.template.md).
  3. Fix what pointed across. Paths from the root change: in the new tree, /finance/budgeting.md is /budgeting.md. A link can’t cross from one tree to another, so what pointed between them needs a full address instead: each finance page’s x-owner: /people/roles/cfo, and the CFO role’s links to the finance pages, now name the other tree’s page by its address in OKForest or on GitHub. Take Finance’s entry out of the company tree’s root index.md. npx okforest validate on each tree lists what’s left (okf/broken-link).
  4. Add it to OKForest: add the tree (its repository, and its folder if it shares one), choose its editors, and add it to the groves of the people who read it. The company tree is read again at its next commit.

Its pages get new concept IDs with the new tree (company:finance/budgeting becomes finance:budgeting), so a bookmark or a link from elsewhere to an old page stops working. If those matter, leave a deprecated page at each old path, linking to the new one.

A grove is a group of trees shared with people and groups, as readers or as grove admins. A tree can be in several groves: an “IT-Public” tree can be in both an “IT” grove and an “All Public” one. Share a grove with groups rather than one person at a time, so people read what their team does as they join and leave it. Access and security has the details.

Public OKF trees can sit beside your own: add one by its GitHub address, and it’s searched with the rest, read-only.

Assistants search every tree a person reads at once, and search filters by type and tag across them. That works best when trees agree:

  • The same type names for the same kinds of page (Policy, Metric, Runbook), with the same fields in their schemas. A shared template repository, like the company template, keeps new trees in step.
  • One home for each concept. Keep a concept in the tree of the team that owns it, and have other trees link to it, rather than copying it. A copy drifts, and then an assistant finds two answers.
  • A shared tag vocabulary. OKForest warns about near-duplicate tags and types within a tree; get_inventory lists each tree’s, to compare.
  • The same OKF version. Each tree is checked by the version it declares; upgrade trees together, so the same rules apply across the Forest.
  • Checks and Freshness, for each tree, list what breaks the rules and what’s due for review; an assistant can run check_freshness across every tree at once.
  • Stats shows each tree’s size against the limits, and Usage how often the account’s trees are read and searched, by people and by their AI assistants.
  • Graph shows how a tree’s concepts link, which are most linked to, and which nothing links to, the pages an assistant is least likely to reach.

Best practices covers keeping each tree’s pages right.