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
3.0 KiB
type, purpose, answers, cites, status, reversible
| type | purpose | answers | cites | status | reversible | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Decision | Make a decision or blueprint findable by filename alone, not just by prose convention. |
|
|
live | rename back; every link this change touches was mechanically rewritten, so the reverse rewrite is the same mechanism run backward |
024 — register filenames carry the R-/B- prefix
Supersedes 022's filename
ruling. R-022 kept OKF/decisions/NNN-<slug>.md and
OKF/blueprints/NNN-<slug>.md bare on disk — "a reading aid, not an
identity" — on the reasoning that renaming breaks every link for no
gain over the prose prefix. That trade flips once filename search is
itself a workflow: ls OKF/decisions/ | grep R-024, a fuzzy-finder
match on B- or R-, or a shell glob all need the prefix in the
filename, not just in prose that quotes it. Effective now:
OKF/decisions/NNN-<slug>.md → R-NNN-<slug>.md,
OKF/blueprints/NNN-<slug>.md → B-NNN-<slug>.md. Ferry D-n files
(OKF/ferries/<topic>/D-<n>-<slug>.md) are untouched — they already
carry their prefix, which is the collision R-022 exists to avoid.
The number stays permanent and un-renumbered — only the prefix is
added; R-024 and the historical 024 are the same decision.
status: superseded-by-NNN values stay bare, per R-022's original
carve-out — they identify a number, not a filename or a prose sentence.
A cites: entry that names a register page in prose, or a traces-to
field, keeps R-022's prose form (R-NNN).
Considered options
Retrofit forward-only (new files get the prefix, existing ones
don't) was rejected for the reason R-022 already gave for the same
choice: two dialects on disk is the defect, not a saving. A migration
retroactively renames every existing decision and blueprint file and
repairs every real link that resolves to one; a bare, unlinked prose
number in LEARNINGS.md is not retrofitted, matching R-022's append-only
exemption for that page specifically.
Editing R-022 in place instead of superseding it was rejected — R-022 remains an accurate record of the reasoning at the time it was written; rewriting it would erase the trail future readers need to see why the bare-filename choice was made before being reversed.
Consequences
OKF/blueprints/andOKF/ferries/gain their ownindex.md, delegating fromOKF/index.mdthe waydecisions/andlearnings/already do — the direct per-directory listing this decision's filename search assumes did not exist for those two before.skills/loop/blueprint/SKILL.md's numbering step andokf-check's number-extraction both read[0-9]{3}today; both need theR-/B-prefix accounted for. Not fixed by this decision — the migration blueprint that performs the rename owns that.