← knowledge.oriz.in

4-level hierarchy for big knowledge directories

decision decisionsprocessokfknowledgehierarchy

4-level hierarchy for big knowledge directories

Decision

The knowledge/ bundle now allows up to 4 levels of nesting (knowledge/<dir>/<sub>/<file>.md) where the user's "no more than 4–5 files per folder" guidance demands it. As of 2026-06-20, three directories run at 4 levels:

The other directories (rules/, architecture/, policy/, runbooks/, design/) stay flat at 3 levels until they cross the ~15-file threshold.

Why

Three pressures converged:

  1. The user's "no more than 4–5 files per folder" guidance — 4–5 is the comfortable scan-list size.
  2. services/ had 41 files in one flat directory. Unscannable; pickers and graph views were noise-heavy.
  3. decisions/ had 32 files in one flat directory; glossary/ had 28. Both past the same threshold.

3-level was the OKF-conservative default. 4-level is the pragmatic upgrade for big dirs. Going past 4 levels would erode the "path is identity" property OKF relies on, so 4 is the cap.

Implications

Cross-refs