diff --git a/skills/loop/write-OKF/okf-layout.md b/skills/loop/write-OKF/okf-layout.md index e3456e1..ef9fce2 100644 --- a/skills/loop/write-OKF/okf-layout.md +++ b/skills/loop/write-OKF/okf-layout.md @@ -24,7 +24,7 @@ OKF/ ├── modules/ # proposable, never mandatory: .md per code ├── analyses/ # directory / analysis directory a scan found └── LEARNINGS.md # debunked claims, gotchas — append-only, sourced; - # splits into learnings/.md at the cap + # splits into learnings/ (index.md + .md) ``` The spine above is a diagram, not a required page set — `okf-check` @@ -108,8 +108,9 @@ loop, not on disk. and drift rule in [page-warrant.md](page-warrant.md). - **LEARNINGS.md** — what was believed / what is true / source. Never edited retroactively, only appended or superseded. At the cap it splits - into `learnings/.md` and becomes their index; both contracts hold - per page, and supersession then works **across** pages — + into `learnings/`: the page itself moves to `learnings/index.md` and the + themes land beside it as `learnings/.md`; both contracts hold per + page, and supersession then works **across** pages — [split-page.md](split-page.md). ## Rules diff --git a/skills/loop/write-OKF/split-page.md b/skills/loop/write-OKF/split-page.md index 54c03f8..cadd3da 100644 --- a/skills/loop/write-OKF/split-page.md +++ b/skills/loop/write-OKF/split-page.md @@ -33,9 +33,19 @@ repo's layers as they actually are. ## Rewiring the index -The parent becomes an index of its subpages, and `index.md` keeps its -single line to the parent. Subpages are **not** listed in `index.md` — it -is capped too, and would grow with every theme added. +**The parent moves.** `PAGE.md` becomes `/index.md`, the +subpages land beside it, and `index.md`'s single line repoints at the new +parent. Subpages are **not** listed in `index.md` — it is capped too, and +would grow with every theme added. + +The rename is what keeps the bundle reachable: `okf-check`'s `reachable()` +walks on through pages named `index.md` or `MAP.md` and no others, so a +parent that kept its old name would strand every subpage. Widening the +walk was rejected — the narrow rule is what buys the spine guarantee +(every page hangs off the map), and a split is rare enough to pay a rename. + +Links pointing at the old path are repointed in the same change, and a +relative link *inside* the moved page gains the `../` its new depth needs. Three frontmatter obligations, all enforced by `okf-check`: