Filename search needs the prefix on disk, not just in prose; a bare NNN can't tell decisions and blueprints apart by ls or grep. * refactor(okf): rename decision and blueprint files to R-/B- prefix * fix(write-OKF): recognize R-/B- filenames in register_numbers * docs(blueprint): fix numbering step and filename-pattern docs
4.5 KiB
4.5 KiB
type, status, traces-to, sounded, cites, muster, review-base
| type | status | traces-to | sounded | cites | muster | review-base | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Blueprint | locked | ROADMAP.md phase 15 | 2026-09-23 |
|
true | tklwumrx |
030 — migrate decision and blueprint filenames to their R-/B- prefix
Justification
024 rules
that decision and blueprint filenames carry their R-/B- prefix,
rejecting a forward-only retrofit as leaving two dialects on disk. Its
own Consequences name the two callers that read the old bare-NNN
filename shape and would silently misbehave once files are renamed
without them: skills/loop/blueprint/SKILL.md's numbering step and
okf-check's register_numbers(). 029
(implemented) deliberately left the actual rename out of scope — this
blueprint is that second, later piece of
ROADMAP.md phase 15.
Contract
- Every
OKF/decisions/NNN-<slug>.mdis renamed toOKF/decisions/R-NNN-<slug>.md— 24 files,001–024. Content, frontmatter (other than the filename itself) and body text are byte-identical; the number is not renumbered. - Every
OKF/blueprints/NNN-<slug>.mdis renamed toOKF/blueprints/B-NNN-<slug>.md— the 29 existing files (001–029) plus this blueprint itself, which becomesOKF/blueprints/B-B-030-migrate-register-filenames-to-their-prefix.mdonce implemented. A locked blueprint's Contract/Verify prose is not touched — only its filename — so blueprint-format.md's immutability rule is not in tension with this rename. - Every reference to a renamed file — a markdown link target, or a
cites:frontmatter entry — is repointed to the new filename, repo-wide. A bare, unlinked prose number inOKF/LEARNINGS.md/OKF/learnings/is not retrofitted, per 022's precedent, carried forward by 024. skills/loop/blueprint/SKILL.md's numbering step computes the next blueprint number correctly againstB-NNN-<slug>.mdfilenames.okf-check'sregister_numbers()recognizesR-NNN-<slug>.mdandB-NNN-<slug>.mdas naming numbersNNN, soprose_cites's unprefixed-cite check keeps working against the renamed files.skills/loop/blueprint/blueprint-format.md,skills/engineering/model-domain/decision-format.md, andOKF/CONTEXT.md's Blueprint / why-register entry terms document theB-NNN-/R-NNN-filename pattern, not the old bare one.
Seams touched
OKF/decisions/*.md,OKF/blueprints/*.md— renamed.OKF/index.md,OKF/decisions/index.md,OKF/blueprints/index.md,OKF/ferries/index.md,OKF/learnings/*.md— link targets updated.skills/loop/write-OKF/scripts/okf-check—register_numbers().skills/loop/blueprint/SKILL.md— numbering step.skills/loop/blueprint/blueprint-format.md,skills/engineering/model-domain/decision-format.md,OKF/CONTEXT.md— documented filename pattern.
Verify
skills/loop/write-OKF/scripts/render-check .
skills/loop/write-OKF/scripts/okf-check OKF/
skills/loop/write-OKF/scripts/link-check .
skills/productivity/conjure-a-skill/scripts/skill-ref-check skills/
ls OKF/decisions/ | grep -c '^R-[0-9]\{3\}-' # 24
ls OKF/blueprints/ | grep -c '^B-[0-9]\{3\}-' # 30
grep -rE '\]\([^)]*(decisions|blueprints)/[0-9]{3}-' --include='*.md' . \
| grep -v OKF/LEARNINGS.md # empty
All four lints 0 error(s); the two counts match; the final grep for a
surviving bare-filename link outside LEARNINGS.md prose returns
nothing.
Out of scope
- Ferry
D-nfiles or their numbering — untouched; they already carry the prefix that R-022/024 exist to keep distinct. - Any change to
skills/'s own file-naming or entry-point convention. - Retrofitting bare, unlinked prose numbers in
OKF/LEARNINGS.md/OKF/learnings/. - Renumbering any decision or blueprint — the number stays permanent; only the prefix is added.
- New doctrine beyond what 024 already settled — this blueprint is mechanical rename + link repair.